]> git.deb.at Git - pkg/abook.git/blob - configure
Merge branch 'dh'
[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.6.0pre2
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"
2704                          || test ! -s conftest.err'
2705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2706   (eval $ac_try) 2>&5
2707   ac_status=$?
2708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709   (exit $ac_status); }; } &&
2710          { ac_try='test -s conftest.$ac_objext'
2711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2712   (eval $ac_try) 2>&5
2713   ac_status=$?
2714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715   (exit $ac_status); }; }; then
2716   ac_compiler_gnu=yes
2717 else
2718   echo "$as_me: failed program was:" >&5
2719 sed 's/^/| /' conftest.$ac_ext >&5
2720
2721 ac_compiler_gnu=no
2722 fi
2723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2724 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2725
2726 fi
2727 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2728 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2729 GCC=`test $ac_compiler_gnu = yes && echo yes`
2730 ac_test_CFLAGS=${CFLAGS+set}
2731 ac_save_CFLAGS=$CFLAGS
2732 CFLAGS="-g"
2733 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2734 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2735 if test "${ac_cv_prog_cc_g+set}" = set; then
2736   echo $ECHO_N "(cached) $ECHO_C" >&6
2737 else
2738   cat >conftest.$ac_ext <<_ACEOF
2739 /* confdefs.h.  */
2740 _ACEOF
2741 cat confdefs.h >>conftest.$ac_ext
2742 cat >>conftest.$ac_ext <<_ACEOF
2743 /* end confdefs.h.  */
2744
2745 int
2746 main ()
2747 {
2748
2749   ;
2750   return 0;
2751 }
2752 _ACEOF
2753 rm -f conftest.$ac_objext
2754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2755   (eval $ac_compile) 2>conftest.er1
2756   ac_status=$?
2757   grep -v '^ *+' conftest.er1 >conftest.err
2758   rm -f conftest.er1
2759   cat conftest.err >&5
2760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761   (exit $ac_status); } &&
2762          { ac_try='test -z "$ac_c_werror_flag"
2763                          || test ! -s conftest.err'
2764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2765   (eval $ac_try) 2>&5
2766   ac_status=$?
2767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768   (exit $ac_status); }; } &&
2769          { ac_try='test -s conftest.$ac_objext'
2770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2771   (eval $ac_try) 2>&5
2772   ac_status=$?
2773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774   (exit $ac_status); }; }; then
2775   ac_cv_prog_cc_g=yes
2776 else
2777   echo "$as_me: failed program was:" >&5
2778 sed 's/^/| /' conftest.$ac_ext >&5
2779
2780 ac_cv_prog_cc_g=no
2781 fi
2782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2783 fi
2784 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2785 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2786 if test "$ac_test_CFLAGS" = set; then
2787   CFLAGS=$ac_save_CFLAGS
2788 elif test $ac_cv_prog_cc_g = yes; then
2789   if test "$GCC" = yes; then
2790     CFLAGS="-g -O2"
2791   else
2792     CFLAGS="-g"
2793   fi
2794 else
2795   if test "$GCC" = yes; then
2796     CFLAGS="-O2"
2797   else
2798     CFLAGS=
2799   fi
2800 fi
2801 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2802 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2803 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2804   echo $ECHO_N "(cached) $ECHO_C" >&6
2805 else
2806   ac_cv_prog_cc_stdc=no
2807 ac_save_CC=$CC
2808 cat >conftest.$ac_ext <<_ACEOF
2809 /* confdefs.h.  */
2810 _ACEOF
2811 cat confdefs.h >>conftest.$ac_ext
2812 cat >>conftest.$ac_ext <<_ACEOF
2813 /* end confdefs.h.  */
2814 #include <stdarg.h>
2815 #include <stdio.h>
2816 #include <sys/types.h>
2817 #include <sys/stat.h>
2818 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2819 struct buf { int x; };
2820 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2821 static char *e (p, i)
2822      char **p;
2823      int i;
2824 {
2825   return p[i];
2826 }
2827 static char *f (char * (*g) (char **, int), char **p, ...)
2828 {
2829   char *s;
2830   va_list v;
2831   va_start (v,p);
2832   s = g (p, va_arg (v,int));
2833   va_end (v);
2834   return s;
2835 }
2836
2837 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2838    function prototypes and stuff, but not '\xHH' hex character constants.
2839    These don't provoke an error unfortunately, instead are silently treated
2840    as 'x'.  The following induces an error, until -std1 is added to get
2841    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2842    array size at least.  It's necessary to write '\x00'==0 to get something
2843    that's true only with -std1.  */
2844 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2845
2846 int test (int i, double x);
2847 struct s1 {int (*f) (int a);};
2848 struct s2 {int (*f) (double a);};
2849 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2850 int argc;
2851 char **argv;
2852 int
2853 main ()
2854 {
2855 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2856   ;
2857   return 0;
2858 }
2859 _ACEOF
2860 # Don't try gcc -ansi; that turns off useful extensions and
2861 # breaks some systems' header files.
2862 # AIX                   -qlanglvl=ansi
2863 # Ultrix and OSF/1      -std1
2864 # HP-UX 10.20 and later -Ae
2865 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2866 # SVR4                  -Xc -D__EXTENSIONS__
2867 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2868 do
2869   CC="$ac_save_CC $ac_arg"
2870   rm -f conftest.$ac_objext
2871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2872   (eval $ac_compile) 2>conftest.er1
2873   ac_status=$?
2874   grep -v '^ *+' conftest.er1 >conftest.err
2875   rm -f conftest.er1
2876   cat conftest.err >&5
2877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878   (exit $ac_status); } &&
2879          { ac_try='test -z "$ac_c_werror_flag"
2880                          || test ! -s conftest.err'
2881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2882   (eval $ac_try) 2>&5
2883   ac_status=$?
2884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885   (exit $ac_status); }; } &&
2886          { ac_try='test -s conftest.$ac_objext'
2887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2888   (eval $ac_try) 2>&5
2889   ac_status=$?
2890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891   (exit $ac_status); }; }; then
2892   ac_cv_prog_cc_stdc=$ac_arg
2893 break
2894 else
2895   echo "$as_me: failed program was:" >&5
2896 sed 's/^/| /' conftest.$ac_ext >&5
2897
2898 fi
2899 rm -f conftest.err conftest.$ac_objext
2900 done
2901 rm -f conftest.$ac_ext conftest.$ac_objext
2902 CC=$ac_save_CC
2903
2904 fi
2905
2906 case "x$ac_cv_prog_cc_stdc" in
2907   x|xno)
2908     echo "$as_me:$LINENO: result: none needed" >&5
2909 echo "${ECHO_T}none needed" >&6 ;;
2910   *)
2911     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2912 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2913     CC="$CC $ac_cv_prog_cc_stdc" ;;
2914 esac
2915
2916 # Some people use a C++ compiler to compile C.  Since we use `exit',
2917 # in C++ we need to declare it.  In case someone uses the same compiler
2918 # for both compiling C and C++ we need to have the C++ compiler decide
2919 # the declaration of exit, since it's the most demanding environment.
2920 cat >conftest.$ac_ext <<_ACEOF
2921 #ifndef __cplusplus
2922   choke me
2923 #endif
2924 _ACEOF
2925 rm -f conftest.$ac_objext
2926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2927   (eval $ac_compile) 2>conftest.er1
2928   ac_status=$?
2929   grep -v '^ *+' conftest.er1 >conftest.err
2930   rm -f conftest.er1
2931   cat conftest.err >&5
2932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933   (exit $ac_status); } &&
2934          { ac_try='test -z "$ac_c_werror_flag"
2935                          || test ! -s conftest.err'
2936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2937   (eval $ac_try) 2>&5
2938   ac_status=$?
2939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940   (exit $ac_status); }; } &&
2941          { ac_try='test -s conftest.$ac_objext'
2942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2943   (eval $ac_try) 2>&5
2944   ac_status=$?
2945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946   (exit $ac_status); }; }; then
2947   for ac_declaration in \
2948    '' \
2949    'extern "C" void std::exit (int) throw (); using std::exit;' \
2950    'extern "C" void std::exit (int); using std::exit;' \
2951    'extern "C" void exit (int) throw ();' \
2952    'extern "C" void exit (int);' \
2953    'void exit (int);'
2954 do
2955   cat >conftest.$ac_ext <<_ACEOF
2956 /* confdefs.h.  */
2957 _ACEOF
2958 cat confdefs.h >>conftest.$ac_ext
2959 cat >>conftest.$ac_ext <<_ACEOF
2960 /* end confdefs.h.  */
2961 $ac_declaration
2962 #include <stdlib.h>
2963 int
2964 main ()
2965 {
2966 exit (42);
2967   ;
2968   return 0;
2969 }
2970 _ACEOF
2971 rm -f conftest.$ac_objext
2972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2973   (eval $ac_compile) 2>conftest.er1
2974   ac_status=$?
2975   grep -v '^ *+' conftest.er1 >conftest.err
2976   rm -f conftest.er1
2977   cat conftest.err >&5
2978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979   (exit $ac_status); } &&
2980          { ac_try='test -z "$ac_c_werror_flag"
2981                          || test ! -s conftest.err'
2982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2983   (eval $ac_try) 2>&5
2984   ac_status=$?
2985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986   (exit $ac_status); }; } &&
2987          { ac_try='test -s conftest.$ac_objext'
2988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2989   (eval $ac_try) 2>&5
2990   ac_status=$?
2991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992   (exit $ac_status); }; }; then
2993   :
2994 else
2995   echo "$as_me: failed program was:" >&5
2996 sed 's/^/| /' conftest.$ac_ext >&5
2997
2998 continue
2999 fi
3000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3001   cat >conftest.$ac_ext <<_ACEOF
3002 /* confdefs.h.  */
3003 _ACEOF
3004 cat confdefs.h >>conftest.$ac_ext
3005 cat >>conftest.$ac_ext <<_ACEOF
3006 /* end confdefs.h.  */
3007 $ac_declaration
3008 int
3009 main ()
3010 {
3011 exit (42);
3012   ;
3013   return 0;
3014 }
3015 _ACEOF
3016 rm -f conftest.$ac_objext
3017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3018   (eval $ac_compile) 2>conftest.er1
3019   ac_status=$?
3020   grep -v '^ *+' conftest.er1 >conftest.err
3021   rm -f conftest.er1
3022   cat conftest.err >&5
3023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024   (exit $ac_status); } &&
3025          { ac_try='test -z "$ac_c_werror_flag"
3026                          || test ! -s conftest.err'
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); }; } &&
3032          { ac_try='test -s conftest.$ac_objext'
3033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3034   (eval $ac_try) 2>&5
3035   ac_status=$?
3036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037   (exit $ac_status); }; }; then
3038   break
3039 else
3040   echo "$as_me: failed program was:" >&5
3041 sed 's/^/| /' conftest.$ac_ext >&5
3042
3043 fi
3044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3045 done
3046 rm -f conftest*
3047 if test -n "$ac_declaration"; then
3048   echo '#ifdef __cplusplus' >>confdefs.h
3049   echo $ac_declaration      >>confdefs.h
3050   echo '#endif'             >>confdefs.h
3051 fi
3052
3053 else
3054   echo "$as_me: failed program was:" >&5
3055 sed 's/^/| /' conftest.$ac_ext >&5
3056
3057 fi
3058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3059 ac_ext=c
3060 ac_cpp='$CPP $CPPFLAGS'
3061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3064
3065 depcc="$CC"   am_compiler_list=
3066
3067 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3068 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3069 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3070   echo $ECHO_N "(cached) $ECHO_C" >&6
3071 else
3072   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3073   # We make a subdir and do the tests there.  Otherwise we can end up
3074   # making bogus files that we don't know about and never remove.  For
3075   # instance it was reported that on HP-UX the gcc test will end up
3076   # making a dummy file named `D' -- because `-MD' means `put the output
3077   # in D'.
3078   mkdir conftest.dir
3079   # Copy depcomp to subdir because otherwise we won't find it if we're
3080   # using a relative directory.
3081   cp "$am_depcomp" conftest.dir
3082   cd conftest.dir
3083   # We will build objects and dependencies in a subdirectory because
3084   # it helps to detect inapplicable dependency modes.  For instance
3085   # both Tru64's cc and ICC support -MD to output dependencies as a
3086   # side effect of compilation, but ICC will put the dependencies in
3087   # the current directory while Tru64 will put them in the object
3088   # directory.
3089   mkdir sub
3090
3091   am_cv_CC_dependencies_compiler_type=none
3092   if test "$am_compiler_list" = ""; then
3093      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3094   fi
3095   for depmode in $am_compiler_list; do
3096     # Setup a source with many dependencies, because some compilers
3097     # like to wrap large dependency lists on column 80 (with \), and
3098     # we should not choose a depcomp mode which is confused by this.
3099     #
3100     # We need to recreate these files for each test, as the compiler may
3101     # overwrite some of them when testing with obscure command lines.
3102     # This happens at least with the AIX C compiler.
3103     : > sub/conftest.c
3104     for i in 1 2 3 4 5 6; do
3105       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3106       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3107       # Solaris 8's {/usr,}/bin/sh.
3108       touch sub/conftst$i.h
3109     done
3110     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3111
3112     case $depmode in
3113     nosideeffect)
3114       # after this tag, mechanisms are not by side-effect, so they'll
3115       # only be used when explicitly requested
3116       if test "x$enable_dependency_tracking" = xyes; then
3117         continue
3118       else
3119         break
3120       fi
3121       ;;
3122     none) break ;;
3123     esac
3124     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3125     # mode.  It turns out that the SunPro C++ compiler does not properly
3126     # handle `-M -o', and we need to detect this.
3127     if depmode=$depmode \
3128        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3129        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3130        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3131          >/dev/null 2>conftest.err &&
3132        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3133        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3134        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3135       # icc doesn't choke on unknown options, it will just issue warnings
3136       # or remarks (even with -Werror).  So we grep stderr for any message
3137       # that says an option was ignored or not supported.
3138       # When given -MP, icc 7.0 and 7.1 complain thusly:
3139       #   icc: Command line warning: ignoring option '-M'; no argument required
3140       # The diagnosis changed in icc 8.0:
3141       #   icc: Command line remark: option '-MP' not supported
3142       if (grep 'ignoring option' conftest.err ||
3143           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3144         am_cv_CC_dependencies_compiler_type=$depmode
3145         break
3146       fi
3147     fi
3148   done
3149
3150   cd ..
3151   rm -rf conftest.dir
3152 else
3153   am_cv_CC_dependencies_compiler_type=none
3154 fi
3155
3156 fi
3157 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3158 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3159 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3160
3161
3162
3163 if
3164   test "x$enable_dependency_tracking" != xno \
3165   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3166   am__fastdepCC_TRUE=
3167   am__fastdepCC_FALSE='#'
3168 else
3169   am__fastdepCC_TRUE='#'
3170   am__fastdepCC_FALSE=
3171 fi
3172
3173
3174 # Make sure we can run config.sub.
3175 $ac_config_sub sun4 >/dev/null 2>&1 ||
3176   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3177 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3178    { (exit 1); exit 1; }; }
3179
3180 echo "$as_me:$LINENO: checking build system type" >&5
3181 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3182 if test "${ac_cv_build+set}" = set; then
3183   echo $ECHO_N "(cached) $ECHO_C" >&6
3184 else
3185   ac_cv_build_alias=$build_alias
3186 test -z "$ac_cv_build_alias" &&
3187   ac_cv_build_alias=`$ac_config_guess`
3188 test -z "$ac_cv_build_alias" &&
3189   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3190 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3191    { (exit 1); exit 1; }; }
3192 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3193   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3194 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3195    { (exit 1); exit 1; }; }
3196
3197 fi
3198 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3199 echo "${ECHO_T}$ac_cv_build" >&6
3200 build=$ac_cv_build
3201 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3202 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3203 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3204
3205
3206 echo "$as_me:$LINENO: checking host system type" >&5
3207 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3208 if test "${ac_cv_host+set}" = set; then
3209   echo $ECHO_N "(cached) $ECHO_C" >&6
3210 else
3211   ac_cv_host_alias=$host_alias
3212 test -z "$ac_cv_host_alias" &&
3213   ac_cv_host_alias=$ac_cv_build_alias
3214 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3215   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3216 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3217    { (exit 1); exit 1; }; }
3218
3219 fi
3220 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3221 echo "${ECHO_T}$ac_cv_host" >&6
3222 host=$ac_cv_host
3223 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3224 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3225 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3226
3227
3228
3229 ac_ext=c
3230 ac_cpp='$CPP $CPPFLAGS'
3231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3234 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3235 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3236 # On Suns, sometimes $CPP names a directory.
3237 if test -n "$CPP" && test -d "$CPP"; then
3238   CPP=
3239 fi
3240 if test -z "$CPP"; then
3241   if test "${ac_cv_prog_CPP+set}" = set; then
3242   echo $ECHO_N "(cached) $ECHO_C" >&6
3243 else
3244       # Double quotes because CPP needs to be expanded
3245     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3246     do
3247       ac_preproc_ok=false
3248 for ac_c_preproc_warn_flag in '' yes
3249 do
3250   # Use a header file that comes with gcc, so configuring glibc
3251   # with a fresh cross-compiler works.
3252   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3253   # <limits.h> exists even on freestanding compilers.
3254   # On the NeXT, cc -E runs the code through the compiler's parser,
3255   # not just through cpp. "Syntax error" is here to catch this case.
3256   cat >conftest.$ac_ext <<_ACEOF
3257 /* confdefs.h.  */
3258 _ACEOF
3259 cat confdefs.h >>conftest.$ac_ext
3260 cat >>conftest.$ac_ext <<_ACEOF
3261 /* end confdefs.h.  */
3262 #ifdef __STDC__
3263 # include <limits.h>
3264 #else
3265 # include <assert.h>
3266 #endif
3267                      Syntax error
3268 _ACEOF
3269 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3270   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3271   ac_status=$?
3272   grep -v '^ *+' conftest.er1 >conftest.err
3273   rm -f conftest.er1
3274   cat conftest.err >&5
3275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276   (exit $ac_status); } >/dev/null; then
3277   if test -s conftest.err; then
3278     ac_cpp_err=$ac_c_preproc_warn_flag
3279     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3280   else
3281     ac_cpp_err=
3282   fi
3283 else
3284   ac_cpp_err=yes
3285 fi
3286 if test -z "$ac_cpp_err"; then
3287   :
3288 else
3289   echo "$as_me: failed program was:" >&5
3290 sed 's/^/| /' conftest.$ac_ext >&5
3291
3292   # Broken: fails on valid input.
3293 continue
3294 fi
3295 rm -f conftest.err conftest.$ac_ext
3296
3297   # OK, works on sane cases.  Now check whether non-existent headers
3298   # can be detected and how.
3299   cat >conftest.$ac_ext <<_ACEOF
3300 /* confdefs.h.  */
3301 _ACEOF
3302 cat confdefs.h >>conftest.$ac_ext
3303 cat >>conftest.$ac_ext <<_ACEOF
3304 /* end confdefs.h.  */
3305 #include <ac_nonexistent.h>
3306 _ACEOF
3307 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3308   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3309   ac_status=$?
3310   grep -v '^ *+' conftest.er1 >conftest.err
3311   rm -f conftest.er1
3312   cat conftest.err >&5
3313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314   (exit $ac_status); } >/dev/null; then
3315   if test -s conftest.err; then
3316     ac_cpp_err=$ac_c_preproc_warn_flag
3317     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3318   else
3319     ac_cpp_err=
3320   fi
3321 else
3322   ac_cpp_err=yes
3323 fi
3324 if test -z "$ac_cpp_err"; then
3325   # Broken: success on invalid input.
3326 continue
3327 else
3328   echo "$as_me: failed program was:" >&5
3329 sed 's/^/| /' conftest.$ac_ext >&5
3330
3331   # Passes both tests.
3332 ac_preproc_ok=:
3333 break
3334 fi
3335 rm -f conftest.err conftest.$ac_ext
3336
3337 done
3338 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3339 rm -f conftest.err conftest.$ac_ext
3340 if $ac_preproc_ok; then
3341   break
3342 fi
3343
3344     done
3345     ac_cv_prog_CPP=$CPP
3346
3347 fi
3348   CPP=$ac_cv_prog_CPP
3349 else
3350   ac_cv_prog_CPP=$CPP
3351 fi
3352 echo "$as_me:$LINENO: result: $CPP" >&5
3353 echo "${ECHO_T}$CPP" >&6
3354 ac_preproc_ok=false
3355 for ac_c_preproc_warn_flag in '' yes
3356 do
3357   # Use a header file that comes with gcc, so configuring glibc
3358   # with a fresh cross-compiler works.
3359   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3360   # <limits.h> exists even on freestanding compilers.
3361   # On the NeXT, cc -E runs the code through the compiler's parser,
3362   # not just through cpp. "Syntax error" is here to catch this case.
3363   cat >conftest.$ac_ext <<_ACEOF
3364 /* confdefs.h.  */
3365 _ACEOF
3366 cat confdefs.h >>conftest.$ac_ext
3367 cat >>conftest.$ac_ext <<_ACEOF
3368 /* end confdefs.h.  */
3369 #ifdef __STDC__
3370 # include <limits.h>
3371 #else
3372 # include <assert.h>
3373 #endif
3374                      Syntax error
3375 _ACEOF
3376 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3377   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3378   ac_status=$?
3379   grep -v '^ *+' conftest.er1 >conftest.err
3380   rm -f conftest.er1
3381   cat conftest.err >&5
3382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383   (exit $ac_status); } >/dev/null; then
3384   if test -s conftest.err; then
3385     ac_cpp_err=$ac_c_preproc_warn_flag
3386     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3387   else
3388     ac_cpp_err=
3389   fi
3390 else
3391   ac_cpp_err=yes
3392 fi
3393 if test -z "$ac_cpp_err"; then
3394   :
3395 else
3396   echo "$as_me: failed program was:" >&5
3397 sed 's/^/| /' conftest.$ac_ext >&5
3398
3399   # Broken: fails on valid input.
3400 continue
3401 fi
3402 rm -f conftest.err conftest.$ac_ext
3403
3404   # OK, works on sane cases.  Now check whether non-existent headers
3405   # can be detected and how.
3406   cat >conftest.$ac_ext <<_ACEOF
3407 /* confdefs.h.  */
3408 _ACEOF
3409 cat confdefs.h >>conftest.$ac_ext
3410 cat >>conftest.$ac_ext <<_ACEOF
3411 /* end confdefs.h.  */
3412 #include <ac_nonexistent.h>
3413 _ACEOF
3414 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3415   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3416   ac_status=$?
3417   grep -v '^ *+' conftest.er1 >conftest.err
3418   rm -f conftest.er1
3419   cat conftest.err >&5
3420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421   (exit $ac_status); } >/dev/null; then
3422   if test -s conftest.err; then
3423     ac_cpp_err=$ac_c_preproc_warn_flag
3424     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3425   else
3426     ac_cpp_err=
3427   fi
3428 else
3429   ac_cpp_err=yes
3430 fi
3431 if test -z "$ac_cpp_err"; then
3432   # Broken: success on invalid input.
3433 continue
3434 else
3435   echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3437
3438   # Passes both tests.
3439 ac_preproc_ok=:
3440 break
3441 fi
3442 rm -f conftest.err conftest.$ac_ext
3443
3444 done
3445 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3446 rm -f conftest.err conftest.$ac_ext
3447 if $ac_preproc_ok; then
3448   :
3449 else
3450   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3451 See \`config.log' for more details." >&5
3452 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3453 See \`config.log' for more details." >&2;}
3454    { (exit 1); exit 1; }; }
3455 fi
3456
3457 ac_ext=c
3458 ac_cpp='$CPP $CPPFLAGS'
3459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3462
3463
3464 echo "$as_me:$LINENO: checking for egrep" >&5
3465 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3466 if test "${ac_cv_prog_egrep+set}" = set; then
3467   echo $ECHO_N "(cached) $ECHO_C" >&6
3468 else
3469   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3470     then ac_cv_prog_egrep='grep -E'
3471     else ac_cv_prog_egrep='egrep'
3472     fi
3473 fi
3474 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3475 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3476  EGREP=$ac_cv_prog_egrep
3477
3478
3479
3480     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
3481 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6
3482 if test "${ac_cv_gnu_library_2+set}" = set; then
3483   echo $ECHO_N "(cached) $ECHO_C" >&6
3484 else
3485   cat >conftest.$ac_ext <<_ACEOF
3486 /* confdefs.h.  */
3487 _ACEOF
3488 cat confdefs.h >>conftest.$ac_ext
3489 cat >>conftest.$ac_ext <<_ACEOF
3490 /* end confdefs.h.  */
3491
3492 #include <features.h>
3493 #ifdef __GNU_LIBRARY__
3494  #if (__GLIBC__ >= 2)
3495   Lucky GNU user
3496  #endif
3497 #endif
3498
3499 _ACEOF
3500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3501   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
3502   ac_cv_gnu_library_2=yes
3503 else
3504   ac_cv_gnu_library_2=no
3505 fi
3506 rm -f conftest*
3507
3508
3509
3510 fi
3511 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
3512 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6
3513
3514     GLIBC2="$ac_cv_gnu_library_2"
3515
3516
3517 if test -n "$ac_tool_prefix"; then
3518   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3519 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3520 echo "$as_me:$LINENO: checking for $ac_word" >&5
3521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3522 if test "${ac_cv_prog_RANLIB+set}" = set; then
3523   echo $ECHO_N "(cached) $ECHO_C" >&6
3524 else
3525   if test -n "$RANLIB"; then
3526   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3527 else
3528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3529 for as_dir in $PATH
3530 do
3531   IFS=$as_save_IFS
3532   test -z "$as_dir" && as_dir=.
3533   for ac_exec_ext in '' $ac_executable_extensions; do
3534   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3535     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3536     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3537     break 2
3538   fi
3539 done
3540 done
3541
3542 fi
3543 fi
3544 RANLIB=$ac_cv_prog_RANLIB
3545 if test -n "$RANLIB"; then
3546   echo "$as_me:$LINENO: result: $RANLIB" >&5
3547 echo "${ECHO_T}$RANLIB" >&6
3548 else
3549   echo "$as_me:$LINENO: result: no" >&5
3550 echo "${ECHO_T}no" >&6
3551 fi
3552
3553 fi
3554 if test -z "$ac_cv_prog_RANLIB"; then
3555   ac_ct_RANLIB=$RANLIB
3556   # Extract the first word of "ranlib", so it can be a program name with args.
3557 set dummy ranlib; ac_word=$2
3558 echo "$as_me:$LINENO: checking for $ac_word" >&5
3559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3560 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3561   echo $ECHO_N "(cached) $ECHO_C" >&6
3562 else
3563   if test -n "$ac_ct_RANLIB"; then
3564   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3565 else
3566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3567 for as_dir in $PATH
3568 do
3569   IFS=$as_save_IFS
3570   test -z "$as_dir" && as_dir=.
3571   for ac_exec_ext in '' $ac_executable_extensions; do
3572   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3573     ac_cv_prog_ac_ct_RANLIB="ranlib"
3574     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3575     break 2
3576   fi
3577 done
3578 done
3579
3580   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3581 fi
3582 fi
3583 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3584 if test -n "$ac_ct_RANLIB"; then
3585   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3586 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3587 else
3588   echo "$as_me:$LINENO: result: no" >&5
3589 echo "${ECHO_T}no" >&6
3590 fi
3591
3592   RANLIB=$ac_ct_RANLIB
3593 else
3594   RANLIB="$ac_cv_prog_RANLIB"
3595 fi
3596
3597 echo "$as_me:$LINENO: checking for library containing strerror" >&5
3598 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
3599 if test "${ac_cv_search_strerror+set}" = set; then
3600   echo $ECHO_N "(cached) $ECHO_C" >&6
3601 else
3602   ac_func_search_save_LIBS=$LIBS
3603 ac_cv_search_strerror=no
3604 cat >conftest.$ac_ext <<_ACEOF
3605 /* confdefs.h.  */
3606 _ACEOF
3607 cat confdefs.h >>conftest.$ac_ext
3608 cat >>conftest.$ac_ext <<_ACEOF
3609 /* end confdefs.h.  */
3610
3611 /* Override any gcc2 internal prototype to avoid an error.  */
3612 #ifdef __cplusplus
3613 extern "C"
3614 #endif
3615 /* We use char because int might match the return type of a gcc2
3616    builtin and then its argument prototype would still apply.  */
3617 char strerror ();
3618 int
3619 main ()
3620 {
3621 strerror ();
3622   ;
3623   return 0;
3624 }
3625 _ACEOF
3626 rm -f conftest.$ac_objext conftest$ac_exeext
3627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3628   (eval $ac_link) 2>conftest.er1
3629   ac_status=$?
3630   grep -v '^ *+' conftest.er1 >conftest.err
3631   rm -f conftest.er1
3632   cat conftest.err >&5
3633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634   (exit $ac_status); } &&
3635          { ac_try='test -z "$ac_c_werror_flag"
3636                          || test ! -s conftest.err'
3637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3638   (eval $ac_try) 2>&5
3639   ac_status=$?
3640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641   (exit $ac_status); }; } &&
3642          { ac_try='test -s conftest$ac_exeext'
3643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3644   (eval $ac_try) 2>&5
3645   ac_status=$?
3646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647   (exit $ac_status); }; }; then
3648   ac_cv_search_strerror="none required"
3649 else
3650   echo "$as_me: failed program was:" >&5
3651 sed 's/^/| /' conftest.$ac_ext >&5
3652
3653 fi
3654 rm -f conftest.err conftest.$ac_objext \
3655       conftest$ac_exeext conftest.$ac_ext
3656 if test "$ac_cv_search_strerror" = no; then
3657   for ac_lib in cposix; do
3658     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3659     cat >conftest.$ac_ext <<_ACEOF
3660 /* confdefs.h.  */
3661 _ACEOF
3662 cat confdefs.h >>conftest.$ac_ext
3663 cat >>conftest.$ac_ext <<_ACEOF
3664 /* end confdefs.h.  */
3665
3666 /* Override any gcc2 internal prototype to avoid an error.  */
3667 #ifdef __cplusplus
3668 extern "C"
3669 #endif
3670 /* We use char because int might match the return type of a gcc2
3671    builtin and then its argument prototype would still apply.  */
3672 char strerror ();
3673 int
3674 main ()
3675 {
3676 strerror ();
3677   ;
3678   return 0;
3679 }
3680 _ACEOF
3681 rm -f conftest.$ac_objext conftest$ac_exeext
3682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3683   (eval $ac_link) 2>conftest.er1
3684   ac_status=$?
3685   grep -v '^ *+' conftest.er1 >conftest.err
3686   rm -f conftest.er1
3687   cat conftest.err >&5
3688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689   (exit $ac_status); } &&
3690          { ac_try='test -z "$ac_c_werror_flag"
3691                          || test ! -s conftest.err'
3692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3693   (eval $ac_try) 2>&5
3694   ac_status=$?
3695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696   (exit $ac_status); }; } &&
3697          { ac_try='test -s conftest$ac_exeext'
3698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3699   (eval $ac_try) 2>&5
3700   ac_status=$?
3701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702   (exit $ac_status); }; }; then
3703   ac_cv_search_strerror="-l$ac_lib"
3704 break
3705 else
3706   echo "$as_me: failed program was:" >&5
3707 sed 's/^/| /' conftest.$ac_ext >&5
3708
3709 fi
3710 rm -f conftest.err conftest.$ac_objext \
3711       conftest$ac_exeext conftest.$ac_ext
3712   done
3713 fi
3714 LIBS=$ac_func_search_save_LIBS
3715 fi
3716 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3717 echo "${ECHO_T}$ac_cv_search_strerror" >&6
3718 if test "$ac_cv_search_strerror" != no; then
3719   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3720
3721 fi
3722
3723 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3724 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3725 if test "${ac_cv_header_stdc+set}" = set; then
3726   echo $ECHO_N "(cached) $ECHO_C" >&6
3727 else
3728   cat >conftest.$ac_ext <<_ACEOF
3729 /* confdefs.h.  */
3730 _ACEOF
3731 cat confdefs.h >>conftest.$ac_ext
3732 cat >>conftest.$ac_ext <<_ACEOF
3733 /* end confdefs.h.  */
3734 #include <stdlib.h>
3735 #include <stdarg.h>
3736 #include <string.h>
3737 #include <float.h>
3738
3739 int
3740 main ()
3741 {
3742
3743   ;
3744   return 0;
3745 }
3746 _ACEOF
3747 rm -f conftest.$ac_objext
3748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3749   (eval $ac_compile) 2>conftest.er1
3750   ac_status=$?
3751   grep -v '^ *+' conftest.er1 >conftest.err
3752   rm -f conftest.er1
3753   cat conftest.err >&5
3754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755   (exit $ac_status); } &&
3756          { ac_try='test -z "$ac_c_werror_flag"
3757                          || test ! -s conftest.err'
3758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3759   (eval $ac_try) 2>&5
3760   ac_status=$?
3761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762   (exit $ac_status); }; } &&
3763          { ac_try='test -s conftest.$ac_objext'
3764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3765   (eval $ac_try) 2>&5
3766   ac_status=$?
3767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768   (exit $ac_status); }; }; then
3769   ac_cv_header_stdc=yes
3770 else
3771   echo "$as_me: failed program was:" >&5
3772 sed 's/^/| /' conftest.$ac_ext >&5
3773
3774 ac_cv_header_stdc=no
3775 fi
3776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3777
3778 if test $ac_cv_header_stdc = yes; then
3779   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3780   cat >conftest.$ac_ext <<_ACEOF
3781 /* confdefs.h.  */
3782 _ACEOF
3783 cat confdefs.h >>conftest.$ac_ext
3784 cat >>conftest.$ac_ext <<_ACEOF
3785 /* end confdefs.h.  */
3786 #include <string.h>
3787
3788 _ACEOF
3789 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3790   $EGREP "memchr" >/dev/null 2>&1; then
3791   :
3792 else
3793   ac_cv_header_stdc=no
3794 fi
3795 rm -f conftest*
3796
3797 fi
3798
3799 if test $ac_cv_header_stdc = yes; then
3800   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3801   cat >conftest.$ac_ext <<_ACEOF
3802 /* confdefs.h.  */
3803 _ACEOF
3804 cat confdefs.h >>conftest.$ac_ext
3805 cat >>conftest.$ac_ext <<_ACEOF
3806 /* end confdefs.h.  */
3807 #include <stdlib.h>
3808
3809 _ACEOF
3810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3811   $EGREP "free" >/dev/null 2>&1; then
3812   :
3813 else
3814   ac_cv_header_stdc=no
3815 fi
3816 rm -f conftest*
3817
3818 fi
3819
3820 if test $ac_cv_header_stdc = yes; then
3821   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3822   if test "$cross_compiling" = yes; then
3823   :
3824 else
3825   cat >conftest.$ac_ext <<_ACEOF
3826 /* confdefs.h.  */
3827 _ACEOF
3828 cat confdefs.h >>conftest.$ac_ext
3829 cat >>conftest.$ac_ext <<_ACEOF
3830 /* end confdefs.h.  */
3831 #include <ctype.h>
3832 #if ((' ' & 0x0FF) == 0x020)
3833 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3834 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3835 #else
3836 # define ISLOWER(c) \
3837                    (('a' <= (c) && (c) <= 'i') \
3838                      || ('j' <= (c) && (c) <= 'r') \
3839                      || ('s' <= (c) && (c) <= 'z'))
3840 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3841 #endif
3842
3843 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3844 int
3845 main ()
3846 {
3847   int i;
3848   for (i = 0; i < 256; i++)
3849     if (XOR (islower (i), ISLOWER (i))
3850         || toupper (i) != TOUPPER (i))
3851       exit(2);
3852   exit (0);
3853 }
3854 _ACEOF
3855 rm -f conftest$ac_exeext
3856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3857   (eval $ac_link) 2>&5
3858   ac_status=$?
3859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3862   (eval $ac_try) 2>&5
3863   ac_status=$?
3864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865   (exit $ac_status); }; }; then
3866   :
3867 else
3868   echo "$as_me: program exited with status $ac_status" >&5
3869 echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3871
3872 ( exit $ac_status )
3873 ac_cv_header_stdc=no
3874 fi
3875 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3876 fi
3877 fi
3878 fi
3879 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3880 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3881 if test $ac_cv_header_stdc = yes; then
3882
3883 cat >>confdefs.h <<\_ACEOF
3884 #define STDC_HEADERS 1
3885 _ACEOF
3886
3887 fi
3888
3889 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3890 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3891 if test "${ac_cv_c_const+set}" = set; then
3892   echo $ECHO_N "(cached) $ECHO_C" >&6
3893 else
3894   cat >conftest.$ac_ext <<_ACEOF
3895 /* confdefs.h.  */
3896 _ACEOF
3897 cat confdefs.h >>conftest.$ac_ext
3898 cat >>conftest.$ac_ext <<_ACEOF
3899 /* end confdefs.h.  */
3900
3901 int
3902 main ()
3903 {
3904 /* FIXME: Include the comments suggested by Paul. */
3905 #ifndef __cplusplus
3906   /* Ultrix mips cc rejects this.  */
3907   typedef int charset[2];
3908   const charset x;
3909   /* SunOS 4.1.1 cc rejects this.  */
3910   char const *const *ccp;
3911   char **p;
3912   /* NEC SVR4.0.2 mips cc rejects this.  */
3913   struct point {int x, y;};
3914   static struct point const zero = {0,0};
3915   /* AIX XL C 1.02.0.0 rejects this.
3916      It does not let you subtract one const X* pointer from another in
3917      an arm of an if-expression whose if-part is not a constant
3918      expression */
3919   const char *g = "string";
3920   ccp = &g + (g ? g-g : 0);
3921   /* HPUX 7.0 cc rejects these. */
3922   ++ccp;
3923   p = (char**) ccp;
3924   ccp = (char const *const *) p;
3925   { /* SCO 3.2v4 cc rejects this.  */
3926     char *t;
3927     char const *s = 0 ? (char *) 0 : (char const *) 0;
3928
3929     *t++ = 0;
3930   }
3931   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3932     int x[] = {25, 17};
3933     const int *foo = &x[0];
3934     ++foo;
3935   }
3936   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3937     typedef const int *iptr;
3938     iptr p = 0;
3939     ++p;
3940   }
3941   { /* AIX XL C 1.02.0.0 rejects this saying
3942        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3943     struct s { int j; const int *ap[3]; };
3944     struct s *b; b->j = 5;
3945   }
3946   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3947     const int foo = 10;
3948   }
3949 #endif
3950
3951   ;
3952   return 0;
3953 }
3954 _ACEOF
3955 rm -f conftest.$ac_objext
3956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3957   (eval $ac_compile) 2>conftest.er1
3958   ac_status=$?
3959   grep -v '^ *+' conftest.er1 >conftest.err
3960   rm -f conftest.er1
3961   cat conftest.err >&5
3962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963   (exit $ac_status); } &&
3964          { ac_try='test -z "$ac_c_werror_flag"
3965                          || test ! -s conftest.err'
3966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3967   (eval $ac_try) 2>&5
3968   ac_status=$?
3969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970   (exit $ac_status); }; } &&
3971          { ac_try='test -s conftest.$ac_objext'
3972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3973   (eval $ac_try) 2>&5
3974   ac_status=$?
3975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976   (exit $ac_status); }; }; then
3977   ac_cv_c_const=yes
3978 else
3979   echo "$as_me: failed program was:" >&5
3980 sed 's/^/| /' conftest.$ac_ext >&5
3981
3982 ac_cv_c_const=no
3983 fi
3984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3985 fi
3986 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3987 echo "${ECHO_T}$ac_cv_c_const" >&6
3988 if test $ac_cv_c_const = no; then
3989
3990 cat >>confdefs.h <<\_ACEOF
3991 #define const
3992 _ACEOF
3993
3994 fi
3995
3996
3997   echo "$as_me:$LINENO: checking for signed" >&5
3998 echo $ECHO_N "checking for signed... $ECHO_C" >&6
3999 if test "${bh_cv_c_signed+set}" = set; then
4000   echo $ECHO_N "(cached) $ECHO_C" >&6
4001 else
4002   cat >conftest.$ac_ext <<_ACEOF
4003 /* confdefs.h.  */
4004 _ACEOF
4005 cat confdefs.h >>conftest.$ac_ext
4006 cat >>conftest.$ac_ext <<_ACEOF
4007 /* end confdefs.h.  */
4008
4009 int
4010 main ()
4011 {
4012 signed char x;
4013   ;
4014   return 0;
4015 }
4016 _ACEOF
4017 rm -f conftest.$ac_objext
4018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4019   (eval $ac_compile) 2>conftest.er1
4020   ac_status=$?
4021   grep -v '^ *+' conftest.er1 >conftest.err
4022   rm -f conftest.er1
4023   cat conftest.err >&5
4024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025   (exit $ac_status); } &&
4026          { ac_try='test -z "$ac_c_werror_flag"
4027                          || test ! -s conftest.err'
4028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4029   (eval $ac_try) 2>&5
4030   ac_status=$?
4031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032   (exit $ac_status); }; } &&
4033          { ac_try='test -s conftest.$ac_objext'
4034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4035   (eval $ac_try) 2>&5
4036   ac_status=$?
4037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038   (exit $ac_status); }; }; then
4039   bh_cv_c_signed=yes
4040 else
4041   echo "$as_me: failed program was:" >&5
4042 sed 's/^/| /' conftest.$ac_ext >&5
4043
4044 bh_cv_c_signed=no
4045 fi
4046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4047 fi
4048 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
4049 echo "${ECHO_T}$bh_cv_c_signed" >&6
4050   if test $bh_cv_c_signed = no; then
4051
4052 cat >>confdefs.h <<\_ACEOF
4053 #define signed
4054 _ACEOF
4055
4056   fi
4057
4058 echo "$as_me:$LINENO: checking for inline" >&5
4059 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4060 if test "${ac_cv_c_inline+set}" = set; then
4061   echo $ECHO_N "(cached) $ECHO_C" >&6
4062 else
4063   ac_cv_c_inline=no
4064 for ac_kw in inline __inline__ __inline; do
4065   cat >conftest.$ac_ext <<_ACEOF
4066 /* confdefs.h.  */
4067 _ACEOF
4068 cat confdefs.h >>conftest.$ac_ext
4069 cat >>conftest.$ac_ext <<_ACEOF
4070 /* end confdefs.h.  */
4071 #ifndef __cplusplus
4072 typedef int foo_t;
4073 static $ac_kw foo_t static_foo () {return 0; }
4074 $ac_kw foo_t foo () {return 0; }
4075 #endif
4076
4077 _ACEOF
4078 rm -f conftest.$ac_objext
4079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4080   (eval $ac_compile) 2>conftest.er1
4081   ac_status=$?
4082   grep -v '^ *+' conftest.er1 >conftest.err
4083   rm -f conftest.er1
4084   cat conftest.err >&5
4085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086   (exit $ac_status); } &&
4087          { ac_try='test -z "$ac_c_werror_flag"
4088                          || test ! -s conftest.err'
4089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4090   (eval $ac_try) 2>&5
4091   ac_status=$?
4092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093   (exit $ac_status); }; } &&
4094          { ac_try='test -s conftest.$ac_objext'
4095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4096   (eval $ac_try) 2>&5
4097   ac_status=$?
4098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099   (exit $ac_status); }; }; then
4100   ac_cv_c_inline=$ac_kw; break
4101 else
4102   echo "$as_me: failed program was:" >&5
4103 sed 's/^/| /' conftest.$ac_ext >&5
4104
4105 fi
4106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4107 done
4108
4109 fi
4110 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4111 echo "${ECHO_T}$ac_cv_c_inline" >&6
4112
4113
4114 case $ac_cv_c_inline in
4115   inline | yes) ;;
4116   *)
4117     case $ac_cv_c_inline in
4118       no) ac_val=;;
4119       *) ac_val=$ac_cv_c_inline;;
4120     esac
4121     cat >>confdefs.h <<_ACEOF
4122 #ifndef __cplusplus
4123 #define inline $ac_val
4124 #endif
4125 _ACEOF
4126     ;;
4127 esac
4128
4129 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4140                   inttypes.h stdint.h unistd.h
4141 do
4142 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4143 echo "$as_me:$LINENO: checking for $ac_header" >&5
4144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4145 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4146   echo $ECHO_N "(cached) $ECHO_C" >&6
4147 else
4148   cat >conftest.$ac_ext <<_ACEOF
4149 /* confdefs.h.  */
4150 _ACEOF
4151 cat confdefs.h >>conftest.$ac_ext
4152 cat >>conftest.$ac_ext <<_ACEOF
4153 /* end confdefs.h.  */
4154 $ac_includes_default
4155
4156 #include <$ac_header>
4157 _ACEOF
4158 rm -f conftest.$ac_objext
4159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4160   (eval $ac_compile) 2>conftest.er1
4161   ac_status=$?
4162   grep -v '^ *+' conftest.er1 >conftest.err
4163   rm -f conftest.er1
4164   cat conftest.err >&5
4165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166   (exit $ac_status); } &&
4167          { ac_try='test -z "$ac_c_werror_flag"
4168                          || test ! -s conftest.err'
4169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4170   (eval $ac_try) 2>&5
4171   ac_status=$?
4172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173   (exit $ac_status); }; } &&
4174          { ac_try='test -s conftest.$ac_objext'
4175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4176   (eval $ac_try) 2>&5
4177   ac_status=$?
4178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179   (exit $ac_status); }; }; then
4180   eval "$as_ac_Header=yes"
4181 else
4182   echo "$as_me: failed program was:" >&5
4183 sed 's/^/| /' conftest.$ac_ext >&5
4184
4185 eval "$as_ac_Header=no"
4186 fi
4187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4188 fi
4189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4190 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4191 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4192   cat >>confdefs.h <<_ACEOF
4193 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4194 _ACEOF
4195
4196 fi
4197
4198 done
4199
4200
4201 echo "$as_me:$LINENO: checking for off_t" >&5
4202 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4203 if test "${ac_cv_type_off_t+set}" = set; then
4204   echo $ECHO_N "(cached) $ECHO_C" >&6
4205 else
4206   cat >conftest.$ac_ext <<_ACEOF
4207 /* confdefs.h.  */
4208 _ACEOF
4209 cat confdefs.h >>conftest.$ac_ext
4210 cat >>conftest.$ac_ext <<_ACEOF
4211 /* end confdefs.h.  */
4212 $ac_includes_default
4213 int
4214 main ()
4215 {
4216 if ((off_t *) 0)
4217   return 0;
4218 if (sizeof (off_t))
4219   return 0;
4220   ;
4221   return 0;
4222 }
4223 _ACEOF
4224 rm -f conftest.$ac_objext
4225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4226   (eval $ac_compile) 2>conftest.er1
4227   ac_status=$?
4228   grep -v '^ *+' conftest.er1 >conftest.err
4229   rm -f conftest.er1
4230   cat conftest.err >&5
4231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232   (exit $ac_status); } &&
4233          { ac_try='test -z "$ac_c_werror_flag"
4234                          || test ! -s conftest.err'
4235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4236   (eval $ac_try) 2>&5
4237   ac_status=$?
4238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239   (exit $ac_status); }; } &&
4240          { ac_try='test -s conftest.$ac_objext'
4241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4242   (eval $ac_try) 2>&5
4243   ac_status=$?
4244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245   (exit $ac_status); }; }; then
4246   ac_cv_type_off_t=yes
4247 else
4248   echo "$as_me: failed program was:" >&5
4249 sed 's/^/| /' conftest.$ac_ext >&5
4250
4251 ac_cv_type_off_t=no
4252 fi
4253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4254 fi
4255 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4256 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4257 if test $ac_cv_type_off_t = yes; then
4258   :
4259 else
4260
4261 cat >>confdefs.h <<_ACEOF
4262 #define off_t long
4263 _ACEOF
4264
4265 fi
4266
4267 echo "$as_me:$LINENO: checking for size_t" >&5
4268 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4269 if test "${ac_cv_type_size_t+set}" = set; then
4270   echo $ECHO_N "(cached) $ECHO_C" >&6
4271 else
4272   cat >conftest.$ac_ext <<_ACEOF
4273 /* confdefs.h.  */
4274 _ACEOF
4275 cat confdefs.h >>conftest.$ac_ext
4276 cat >>conftest.$ac_ext <<_ACEOF
4277 /* end confdefs.h.  */
4278 $ac_includes_default
4279 int
4280 main ()
4281 {
4282 if ((size_t *) 0)
4283   return 0;
4284 if (sizeof (size_t))
4285   return 0;
4286   ;
4287   return 0;
4288 }
4289 _ACEOF
4290 rm -f conftest.$ac_objext
4291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4292   (eval $ac_compile) 2>conftest.er1
4293   ac_status=$?
4294   grep -v '^ *+' conftest.er1 >conftest.err
4295   rm -f conftest.er1
4296   cat conftest.err >&5
4297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298   (exit $ac_status); } &&
4299          { ac_try='test -z "$ac_c_werror_flag"
4300                          || test ! -s conftest.err'
4301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4302   (eval $ac_try) 2>&5
4303   ac_status=$?
4304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305   (exit $ac_status); }; } &&
4306          { ac_try='test -s conftest.$ac_objext'
4307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4308   (eval $ac_try) 2>&5
4309   ac_status=$?
4310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311   (exit $ac_status); }; }; then
4312   ac_cv_type_size_t=yes
4313 else
4314   echo "$as_me: failed program was:" >&5
4315 sed 's/^/| /' conftest.$ac_ext >&5
4316
4317 ac_cv_type_size_t=no
4318 fi
4319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4320 fi
4321 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4322 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4323 if test $ac_cv_type_size_t = yes; then
4324   :
4325 else
4326
4327 cat >>confdefs.h <<_ACEOF
4328 #define size_t unsigned
4329 _ACEOF
4330
4331 fi
4332
4333
4334   echo "$as_me:$LINENO: checking for long long" >&5
4335 echo $ECHO_N "checking for long long... $ECHO_C" >&6
4336 if test "${ac_cv_type_long_long+set}" = set; then
4337   echo $ECHO_N "(cached) $ECHO_C" >&6
4338 else
4339   cat >conftest.$ac_ext <<_ACEOF
4340 /* confdefs.h.  */
4341 _ACEOF
4342 cat confdefs.h >>conftest.$ac_ext
4343 cat >>conftest.$ac_ext <<_ACEOF
4344 /* end confdefs.h.  */
4345 long long ll = 1LL; int i = 63;
4346 int
4347 main ()
4348 {
4349 long long llmax = (long long) -1;
4350      return ll << i | ll >> i | llmax / ll | llmax % ll;
4351   ;
4352   return 0;
4353 }
4354 _ACEOF
4355 rm -f conftest.$ac_objext conftest$ac_exeext
4356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4357   (eval $ac_link) 2>conftest.er1
4358   ac_status=$?
4359   grep -v '^ *+' conftest.er1 >conftest.err
4360   rm -f conftest.er1
4361   cat conftest.err >&5
4362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363   (exit $ac_status); } &&
4364          { ac_try='test -z "$ac_c_werror_flag"
4365                          || test ! -s conftest.err'
4366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4367   (eval $ac_try) 2>&5
4368   ac_status=$?
4369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370   (exit $ac_status); }; } &&
4371          { ac_try='test -s conftest$ac_exeext'
4372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4373   (eval $ac_try) 2>&5
4374   ac_status=$?
4375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376   (exit $ac_status); }; }; then
4377   ac_cv_type_long_long=yes
4378 else
4379   echo "$as_me: failed program was:" >&5
4380 sed 's/^/| /' conftest.$ac_ext >&5
4381
4382 ac_cv_type_long_long=no
4383 fi
4384 rm -f conftest.err conftest.$ac_objext \
4385       conftest$ac_exeext conftest.$ac_ext
4386 fi
4387 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
4388 echo "${ECHO_T}$ac_cv_type_long_long" >&6
4389   if test $ac_cv_type_long_long = yes; then
4390
4391 cat >>confdefs.h <<\_ACEOF
4392 #define HAVE_LONG_LONG 1
4393 _ACEOF
4394
4395   fi
4396
4397
4398   echo "$as_me:$LINENO: checking for long double" >&5
4399 echo $ECHO_N "checking for long double... $ECHO_C" >&6
4400 if test "${gt_cv_c_long_double+set}" = set; then
4401   echo $ECHO_N "(cached) $ECHO_C" >&6
4402 else
4403   if test "$GCC" = yes; then
4404        gt_cv_c_long_double=yes
4405      else
4406        cat >conftest.$ac_ext <<_ACEOF
4407 /* confdefs.h.  */
4408 _ACEOF
4409 cat confdefs.h >>conftest.$ac_ext
4410 cat >>conftest.$ac_ext <<_ACEOF
4411 /* end confdefs.h.  */
4412
4413          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
4414          long double foo = 0.0;
4415          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
4416          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
4417
4418 int
4419 main ()
4420 {
4421
4422   ;
4423   return 0;
4424 }
4425 _ACEOF
4426 rm -f conftest.$ac_objext
4427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4428   (eval $ac_compile) 2>conftest.er1
4429   ac_status=$?
4430   grep -v '^ *+' conftest.er1 >conftest.err
4431   rm -f conftest.er1
4432   cat conftest.err >&5
4433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434   (exit $ac_status); } &&
4435          { ac_try='test -z "$ac_c_werror_flag"
4436                          || test ! -s conftest.err'
4437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4438   (eval $ac_try) 2>&5
4439   ac_status=$?
4440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441   (exit $ac_status); }; } &&
4442          { ac_try='test -s conftest.$ac_objext'
4443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4444   (eval $ac_try) 2>&5
4445   ac_status=$?
4446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447   (exit $ac_status); }; }; then
4448   gt_cv_c_long_double=yes
4449 else
4450   echo "$as_me: failed program was:" >&5
4451 sed 's/^/| /' conftest.$ac_ext >&5
4452
4453 gt_cv_c_long_double=no
4454 fi
4455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4456      fi
4457 fi
4458 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
4459 echo "${ECHO_T}$gt_cv_c_long_double" >&6
4460   if test $gt_cv_c_long_double = yes; then
4461
4462 cat >>confdefs.h <<\_ACEOF
4463 #define HAVE_LONG_DOUBLE 1
4464 _ACEOF
4465
4466   fi
4467
4468
4469   echo "$as_me:$LINENO: checking for wchar_t" >&5
4470 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
4471 if test "${gt_cv_c_wchar_t+set}" = set; then
4472   echo $ECHO_N "(cached) $ECHO_C" >&6
4473 else
4474   cat >conftest.$ac_ext <<_ACEOF
4475 /* confdefs.h.  */
4476 _ACEOF
4477 cat confdefs.h >>conftest.$ac_ext
4478 cat >>conftest.$ac_ext <<_ACEOF
4479 /* end confdefs.h.  */
4480 #include <stddef.h>
4481        wchar_t foo = (wchar_t)'\0';
4482 int
4483 main ()
4484 {
4485
4486   ;
4487   return 0;
4488 }
4489 _ACEOF
4490 rm -f conftest.$ac_objext
4491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4492   (eval $ac_compile) 2>conftest.er1
4493   ac_status=$?
4494   grep -v '^ *+' conftest.er1 >conftest.err
4495   rm -f conftest.er1
4496   cat conftest.err >&5
4497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498   (exit $ac_status); } &&
4499          { ac_try='test -z "$ac_c_werror_flag"
4500                          || test ! -s conftest.err'
4501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4502   (eval $ac_try) 2>&5
4503   ac_status=$?
4504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505   (exit $ac_status); }; } &&
4506          { ac_try='test -s conftest.$ac_objext'
4507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4508   (eval $ac_try) 2>&5
4509   ac_status=$?
4510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511   (exit $ac_status); }; }; then
4512   gt_cv_c_wchar_t=yes
4513 else
4514   echo "$as_me: failed program was:" >&5
4515 sed 's/^/| /' conftest.$ac_ext >&5
4516
4517 gt_cv_c_wchar_t=no
4518 fi
4519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4520 fi
4521 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
4522 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
4523   if test $gt_cv_c_wchar_t = yes; then
4524
4525 cat >>confdefs.h <<\_ACEOF
4526 #define HAVE_WCHAR_T 1
4527 _ACEOF
4528
4529   fi
4530
4531
4532   echo "$as_me:$LINENO: checking for wint_t" >&5
4533 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
4534 if test "${gt_cv_c_wint_t+set}" = set; then
4535   echo $ECHO_N "(cached) $ECHO_C" >&6
4536 else
4537   cat >conftest.$ac_ext <<_ACEOF
4538 /* confdefs.h.  */
4539 _ACEOF
4540 cat confdefs.h >>conftest.$ac_ext
4541 cat >>conftest.$ac_ext <<_ACEOF
4542 /* end confdefs.h.  */
4543 #include <wchar.h>
4544        wint_t foo = (wchar_t)'\0';
4545 int
4546 main ()
4547 {
4548
4549   ;
4550   return 0;
4551 }
4552 _ACEOF
4553 rm -f conftest.$ac_objext
4554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4555   (eval $ac_compile) 2>conftest.er1
4556   ac_status=$?
4557   grep -v '^ *+' conftest.er1 >conftest.err
4558   rm -f conftest.er1
4559   cat conftest.err >&5
4560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561   (exit $ac_status); } &&
4562          { ac_try='test -z "$ac_c_werror_flag"
4563                          || test ! -s conftest.err'
4564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4565   (eval $ac_try) 2>&5
4566   ac_status=$?
4567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568   (exit $ac_status); }; } &&
4569          { ac_try='test -s conftest.$ac_objext'
4570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4571   (eval $ac_try) 2>&5
4572   ac_status=$?
4573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574   (exit $ac_status); }; }; then
4575   gt_cv_c_wint_t=yes
4576 else
4577   echo "$as_me: failed program was:" >&5
4578 sed 's/^/| /' conftest.$ac_ext >&5
4579
4580 gt_cv_c_wint_t=no
4581 fi
4582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4583 fi
4584 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
4585 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
4586   if test $gt_cv_c_wint_t = yes; then
4587
4588 cat >>confdefs.h <<\_ACEOF
4589 #define HAVE_WINT_T 1
4590 _ACEOF
4591
4592   fi
4593
4594
4595   echo "$as_me:$LINENO: checking for inttypes.h" >&5
4596 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
4597 if test "${gl_cv_header_inttypes_h+set}" = set; then
4598   echo $ECHO_N "(cached) $ECHO_C" >&6
4599 else
4600   cat >conftest.$ac_ext <<_ACEOF
4601 /* confdefs.h.  */
4602 _ACEOF
4603 cat confdefs.h >>conftest.$ac_ext
4604 cat >>conftest.$ac_ext <<_ACEOF
4605 /* end confdefs.h.  */
4606 #include <sys/types.h>
4607 #include <inttypes.h>
4608 int
4609 main ()
4610 {
4611 uintmax_t i = (uintmax_t) -1;
4612   ;
4613   return 0;
4614 }
4615 _ACEOF
4616 rm -f conftest.$ac_objext
4617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4618   (eval $ac_compile) 2>conftest.er1
4619   ac_status=$?
4620   grep -v '^ *+' conftest.er1 >conftest.err
4621   rm -f conftest.er1
4622   cat conftest.err >&5
4623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624   (exit $ac_status); } &&
4625          { ac_try='test -z "$ac_c_werror_flag"
4626                          || test ! -s conftest.err'
4627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4628   (eval $ac_try) 2>&5
4629   ac_status=$?
4630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631   (exit $ac_status); }; } &&
4632          { ac_try='test -s conftest.$ac_objext'
4633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4634   (eval $ac_try) 2>&5
4635   ac_status=$?
4636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637   (exit $ac_status); }; }; then
4638   gl_cv_header_inttypes_h=yes
4639 else
4640   echo "$as_me: failed program was:" >&5
4641 sed 's/^/| /' conftest.$ac_ext >&5
4642
4643 gl_cv_header_inttypes_h=no
4644 fi
4645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4646 fi
4647 echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
4648 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6
4649   if test $gl_cv_header_inttypes_h = yes; then
4650
4651 cat >>confdefs.h <<_ACEOF
4652 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
4653 _ACEOF
4654
4655   fi
4656
4657
4658   echo "$as_me:$LINENO: checking for stdint.h" >&5
4659 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
4660 if test "${gl_cv_header_stdint_h+set}" = set; then
4661   echo $ECHO_N "(cached) $ECHO_C" >&6
4662 else
4663   cat >conftest.$ac_ext <<_ACEOF
4664 /* confdefs.h.  */
4665 _ACEOF
4666 cat confdefs.h >>conftest.$ac_ext
4667 cat >>conftest.$ac_ext <<_ACEOF
4668 /* end confdefs.h.  */
4669 #include <sys/types.h>
4670 #include <stdint.h>
4671 int
4672 main ()
4673 {
4674 uintmax_t i = (uintmax_t) -1;
4675   ;
4676   return 0;
4677 }
4678 _ACEOF
4679 rm -f conftest.$ac_objext
4680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4681   (eval $ac_compile) 2>conftest.er1
4682   ac_status=$?
4683   grep -v '^ *+' conftest.er1 >conftest.err
4684   rm -f conftest.er1
4685   cat conftest.err >&5
4686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687   (exit $ac_status); } &&
4688          { ac_try='test -z "$ac_c_werror_flag"
4689                          || test ! -s conftest.err'
4690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4691   (eval $ac_try) 2>&5
4692   ac_status=$?
4693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694   (exit $ac_status); }; } &&
4695          { ac_try='test -s conftest.$ac_objext'
4696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4697   (eval $ac_try) 2>&5
4698   ac_status=$?
4699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700   (exit $ac_status); }; }; then
4701   gl_cv_header_stdint_h=yes
4702 else
4703   echo "$as_me: failed program was:" >&5
4704 sed 's/^/| /' conftest.$ac_ext >&5
4705
4706 gl_cv_header_stdint_h=no
4707 fi
4708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4709 fi
4710 echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
4711 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
4712   if test $gl_cv_header_stdint_h = yes; then
4713
4714 cat >>confdefs.h <<_ACEOF
4715 #define HAVE_STDINT_H_WITH_UINTMAX 1
4716 _ACEOF
4717
4718   fi
4719
4720
4721
4722
4723   echo "$as_me:$LINENO: checking for intmax_t" >&5
4724 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
4725 if test "${gt_cv_c_intmax_t+set}" = set; then
4726   echo $ECHO_N "(cached) $ECHO_C" >&6
4727 else
4728   cat >conftest.$ac_ext <<_ACEOF
4729 /* confdefs.h.  */
4730 _ACEOF
4731 cat confdefs.h >>conftest.$ac_ext
4732 cat >>conftest.$ac_ext <<_ACEOF
4733 /* end confdefs.h.  */
4734
4735 #include <stddef.h>
4736 #include <stdlib.h>
4737 #if HAVE_STDINT_H_WITH_UINTMAX
4738 #include <stdint.h>
4739 #endif
4740 #if HAVE_INTTYPES_H_WITH_UINTMAX
4741 #include <inttypes.h>
4742 #endif
4743
4744 int
4745 main ()
4746 {
4747 intmax_t x = -1;
4748   ;
4749   return 0;
4750 }
4751 _ACEOF
4752 rm -f conftest.$ac_objext
4753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4754   (eval $ac_compile) 2>conftest.er1
4755   ac_status=$?
4756   grep -v '^ *+' conftest.er1 >conftest.err
4757   rm -f conftest.er1
4758   cat conftest.err >&5
4759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760   (exit $ac_status); } &&
4761          { ac_try='test -z "$ac_c_werror_flag"
4762                          || test ! -s conftest.err'
4763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4764   (eval $ac_try) 2>&5
4765   ac_status=$?
4766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767   (exit $ac_status); }; } &&
4768          { ac_try='test -s conftest.$ac_objext'
4769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4770   (eval $ac_try) 2>&5
4771   ac_status=$?
4772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773   (exit $ac_status); }; }; then
4774   gt_cv_c_intmax_t=yes
4775 else
4776   echo "$as_me: failed program was:" >&5
4777 sed 's/^/| /' conftest.$ac_ext >&5
4778
4779 gt_cv_c_intmax_t=no
4780 fi
4781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4782 fi
4783 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
4784 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
4785   if test $gt_cv_c_intmax_t = yes; then
4786
4787 cat >>confdefs.h <<\_ACEOF
4788 #define HAVE_INTMAX_T 1
4789 _ACEOF
4790
4791   fi
4792
4793
4794
4795   echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
4796 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
4797 if test "${gt_cv_func_printf_posix+set}" = set; then
4798   echo $ECHO_N "(cached) $ECHO_C" >&6
4799 else
4800
4801       if test "$cross_compiling" = yes; then
4802
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 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
4811   notposix
4812 #endif
4813
4814 _ACEOF
4815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4816   $EGREP "notposix" >/dev/null 2>&1; then
4817   gt_cv_func_printf_posix="guessing no"
4818 else
4819   gt_cv_func_printf_posix="guessing yes"
4820 fi
4821 rm -f conftest*
4822
4823
4824 else
4825   cat >conftest.$ac_ext <<_ACEOF
4826 /* confdefs.h.  */
4827 _ACEOF
4828 cat confdefs.h >>conftest.$ac_ext
4829 cat >>conftest.$ac_ext <<_ACEOF
4830 /* end confdefs.h.  */
4831
4832 #include <stdio.h>
4833 #include <string.h>
4834 /* The string "%2$d %1$d", with dollar characters protected from the shell's
4835    dollar expansion (possibly an autoconf bug).  */
4836 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
4837 static char buf[100];
4838 int main ()
4839 {
4840   sprintf (buf, format, 33, 55);
4841   return (strcmp (buf, "55 33") != 0);
4842 }
4843 _ACEOF
4844 rm -f conftest$ac_exeext
4845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4846   (eval $ac_link) 2>&5
4847   ac_status=$?
4848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4851   (eval $ac_try) 2>&5
4852   ac_status=$?
4853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854   (exit $ac_status); }; }; then
4855   gt_cv_func_printf_posix=yes
4856 else
4857   echo "$as_me: program exited with status $ac_status" >&5
4858 echo "$as_me: failed program was:" >&5
4859 sed 's/^/| /' conftest.$ac_ext >&5
4860
4861 ( exit $ac_status )
4862 gt_cv_func_printf_posix=no
4863 fi
4864 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4865 fi
4866
4867 fi
4868 echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
4869 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
4870   case $gt_cv_func_printf_posix in
4871     *yes)
4872
4873 cat >>confdefs.h <<\_ACEOF
4874 #define HAVE_POSIX_PRINTF 1
4875 _ACEOF
4876
4877       ;;
4878   esac
4879
4880 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4881 # for constant arguments.  Useless!
4882 echo "$as_me:$LINENO: checking for working alloca.h" >&5
4883 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4884 if test "${ac_cv_working_alloca_h+set}" = set; then
4885   echo $ECHO_N "(cached) $ECHO_C" >&6
4886 else
4887   cat >conftest.$ac_ext <<_ACEOF
4888 /* confdefs.h.  */
4889 _ACEOF
4890 cat confdefs.h >>conftest.$ac_ext
4891 cat >>conftest.$ac_ext <<_ACEOF
4892 /* end confdefs.h.  */
4893 #include <alloca.h>
4894 int
4895 main ()
4896 {
4897 char *p = (char *) alloca (2 * sizeof (int));
4898   ;
4899   return 0;
4900 }
4901 _ACEOF
4902 rm -f conftest.$ac_objext conftest$ac_exeext
4903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4904   (eval $ac_link) 2>conftest.er1
4905   ac_status=$?
4906   grep -v '^ *+' conftest.er1 >conftest.err
4907   rm -f conftest.er1
4908   cat conftest.err >&5
4909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910   (exit $ac_status); } &&
4911          { ac_try='test -z "$ac_c_werror_flag"
4912                          || test ! -s conftest.err'
4913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4914   (eval $ac_try) 2>&5
4915   ac_status=$?
4916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917   (exit $ac_status); }; } &&
4918          { ac_try='test -s conftest$ac_exeext'
4919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4920   (eval $ac_try) 2>&5
4921   ac_status=$?
4922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923   (exit $ac_status); }; }; then
4924   ac_cv_working_alloca_h=yes
4925 else
4926   echo "$as_me: failed program was:" >&5
4927 sed 's/^/| /' conftest.$ac_ext >&5
4928
4929 ac_cv_working_alloca_h=no
4930 fi
4931 rm -f conftest.err conftest.$ac_objext \
4932       conftest$ac_exeext conftest.$ac_ext
4933 fi
4934 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
4935 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
4936 if test $ac_cv_working_alloca_h = yes; then
4937
4938 cat >>confdefs.h <<\_ACEOF
4939 #define HAVE_ALLOCA_H 1
4940 _ACEOF
4941
4942 fi
4943
4944 echo "$as_me:$LINENO: checking for alloca" >&5
4945 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
4946 if test "${ac_cv_func_alloca_works+set}" = set; then
4947   echo $ECHO_N "(cached) $ECHO_C" >&6
4948 else
4949   cat >conftest.$ac_ext <<_ACEOF
4950 /* confdefs.h.  */
4951 _ACEOF
4952 cat confdefs.h >>conftest.$ac_ext
4953 cat >>conftest.$ac_ext <<_ACEOF
4954 /* end confdefs.h.  */
4955 #ifdef __GNUC__
4956 # define alloca __builtin_alloca
4957 #else
4958 # ifdef _MSC_VER
4959 #  include <malloc.h>
4960 #  define alloca _alloca
4961 # else
4962 #  if HAVE_ALLOCA_H
4963 #   include <alloca.h>
4964 #  else
4965 #   ifdef _AIX
4966  #pragma alloca
4967 #   else
4968 #    ifndef alloca /* predefined by HP cc +Olibcalls */
4969 char *alloca ();
4970 #    endif
4971 #   endif
4972 #  endif
4973 # endif
4974 #endif
4975
4976 int
4977 main ()
4978 {
4979 char *p = (char *) alloca (1);
4980   ;
4981   return 0;
4982 }
4983 _ACEOF
4984 rm -f conftest.$ac_objext conftest$ac_exeext
4985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4986   (eval $ac_link) 2>conftest.er1
4987   ac_status=$?
4988   grep -v '^ *+' conftest.er1 >conftest.err
4989   rm -f conftest.er1
4990   cat conftest.err >&5
4991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992   (exit $ac_status); } &&
4993          { ac_try='test -z "$ac_c_werror_flag"
4994                          || test ! -s conftest.err'
4995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4996   (eval $ac_try) 2>&5
4997   ac_status=$?
4998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999   (exit $ac_status); }; } &&
5000          { ac_try='test -s conftest$ac_exeext'
5001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5002   (eval $ac_try) 2>&5
5003   ac_status=$?
5004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005   (exit $ac_status); }; }; then
5006   ac_cv_func_alloca_works=yes
5007 else
5008   echo "$as_me: failed program was:" >&5
5009 sed 's/^/| /' conftest.$ac_ext >&5
5010
5011 ac_cv_func_alloca_works=no
5012 fi
5013 rm -f conftest.err conftest.$ac_objext \
5014       conftest$ac_exeext conftest.$ac_ext
5015 fi
5016 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5017 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5018
5019 if test $ac_cv_func_alloca_works = yes; then
5020
5021 cat >>confdefs.h <<\_ACEOF
5022 #define HAVE_ALLOCA 1
5023 _ACEOF
5024
5025 else
5026   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5027 # that cause trouble.  Some versions do not even contain alloca or
5028 # contain a buggy version.  If you still want to use their alloca,
5029 # use ar to extract alloca.o from them instead of compiling alloca.c.
5030
5031 ALLOCA=alloca.$ac_objext
5032
5033 cat >>confdefs.h <<\_ACEOF
5034 #define C_ALLOCA 1
5035 _ACEOF
5036
5037
5038 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5039 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5040 if test "${ac_cv_os_cray+set}" = set; then
5041   echo $ECHO_N "(cached) $ECHO_C" >&6
5042 else
5043   cat >conftest.$ac_ext <<_ACEOF
5044 /* confdefs.h.  */
5045 _ACEOF
5046 cat confdefs.h >>conftest.$ac_ext
5047 cat >>conftest.$ac_ext <<_ACEOF
5048 /* end confdefs.h.  */
5049 #if defined(CRAY) && ! defined(CRAY2)
5050 webecray
5051 #else
5052 wenotbecray
5053 #endif
5054
5055 _ACEOF
5056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5057   $EGREP "webecray" >/dev/null 2>&1; then
5058   ac_cv_os_cray=yes
5059 else
5060   ac_cv_os_cray=no
5061 fi
5062 rm -f conftest*
5063
5064 fi
5065 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5066 echo "${ECHO_T}$ac_cv_os_cray" >&6
5067 if test $ac_cv_os_cray = yes; then
5068   for ac_func in _getb67 GETB67 getb67; do
5069     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5070 echo "$as_me:$LINENO: checking for $ac_func" >&5
5071 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5072 if eval "test \"\${$as_ac_var+set}\" = set"; then
5073   echo $ECHO_N "(cached) $ECHO_C" >&6
5074 else
5075   cat >conftest.$ac_ext <<_ACEOF
5076 /* confdefs.h.  */
5077 _ACEOF
5078 cat confdefs.h >>conftest.$ac_ext
5079 cat >>conftest.$ac_ext <<_ACEOF
5080 /* end confdefs.h.  */
5081 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5082    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5083 #define $ac_func innocuous_$ac_func
5084
5085 /* System header to define __stub macros and hopefully few prototypes,
5086     which can conflict with char $ac_func (); below.
5087     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5088     <limits.h> exists even on freestanding compilers.  */
5089
5090 #ifdef __STDC__
5091 # include <limits.h>
5092 #else
5093 # include <assert.h>
5094 #endif
5095
5096 #undef $ac_func
5097
5098 /* Override any gcc2 internal prototype to avoid an error.  */
5099 #ifdef __cplusplus
5100 extern "C"
5101 {
5102 #endif
5103 /* We use char because int might match the return type of a gcc2
5104    builtin and then its argument prototype would still apply.  */
5105 char $ac_func ();
5106 /* The GNU C library defines this for functions which it implements
5107     to always fail with ENOSYS.  Some functions are actually named
5108     something starting with __ and the normal name is an alias.  */
5109 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5110 choke me
5111 #else
5112 char (*f) () = $ac_func;
5113 #endif
5114 #ifdef __cplusplus
5115 }
5116 #endif
5117
5118 int
5119 main ()
5120 {
5121 return f != $ac_func;
5122   ;
5123   return 0;
5124 }
5125 _ACEOF
5126 rm -f conftest.$ac_objext conftest$ac_exeext
5127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5128   (eval $ac_link) 2>conftest.er1
5129   ac_status=$?
5130   grep -v '^ *+' conftest.er1 >conftest.err
5131   rm -f conftest.er1
5132   cat conftest.err >&5
5133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134   (exit $ac_status); } &&
5135          { ac_try='test -z "$ac_c_werror_flag"
5136                          || test ! -s conftest.err'
5137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5138   (eval $ac_try) 2>&5
5139   ac_status=$?
5140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141   (exit $ac_status); }; } &&
5142          { ac_try='test -s conftest$ac_exeext'
5143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5144   (eval $ac_try) 2>&5
5145   ac_status=$?
5146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147   (exit $ac_status); }; }; then
5148   eval "$as_ac_var=yes"
5149 else
5150   echo "$as_me: failed program was:" >&5
5151 sed 's/^/| /' conftest.$ac_ext >&5
5152
5153 eval "$as_ac_var=no"
5154 fi
5155 rm -f conftest.err conftest.$ac_objext \
5156       conftest$ac_exeext conftest.$ac_ext
5157 fi
5158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5159 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5160 if test `eval echo '${'$as_ac_var'}'` = yes; then
5161
5162 cat >>confdefs.h <<_ACEOF
5163 #define CRAY_STACKSEG_END $ac_func
5164 _ACEOF
5165
5166     break
5167 fi
5168
5169   done
5170 fi
5171
5172 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5173 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5174 if test "${ac_cv_c_stack_direction+set}" = set; then
5175   echo $ECHO_N "(cached) $ECHO_C" >&6
5176 else
5177   if test "$cross_compiling" = yes; then
5178   ac_cv_c_stack_direction=0
5179 else
5180   cat >conftest.$ac_ext <<_ACEOF
5181 /* confdefs.h.  */
5182 _ACEOF
5183 cat confdefs.h >>conftest.$ac_ext
5184 cat >>conftest.$ac_ext <<_ACEOF
5185 /* end confdefs.h.  */
5186 int
5187 find_stack_direction ()
5188 {
5189   static char *addr = 0;
5190   auto char dummy;
5191   if (addr == 0)
5192     {
5193       addr = &dummy;
5194       return find_stack_direction ();
5195     }
5196   else
5197     return (&dummy > addr) ? 1 : -1;
5198 }
5199
5200 int
5201 main ()
5202 {
5203   exit (find_stack_direction () < 0);
5204 }
5205 _ACEOF
5206 rm -f conftest$ac_exeext
5207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5208   (eval $ac_link) 2>&5
5209   ac_status=$?
5210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5213   (eval $ac_try) 2>&5
5214   ac_status=$?
5215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216   (exit $ac_status); }; }; then
5217   ac_cv_c_stack_direction=1
5218 else
5219   echo "$as_me: program exited with status $ac_status" >&5
5220 echo "$as_me: failed program was:" >&5
5221 sed 's/^/| /' conftest.$ac_ext >&5
5222
5223 ( exit $ac_status )
5224 ac_cv_c_stack_direction=-1
5225 fi
5226 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5227 fi
5228 fi
5229 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5230 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5231
5232 cat >>confdefs.h <<_ACEOF
5233 #define STACK_DIRECTION $ac_cv_c_stack_direction
5234 _ACEOF
5235
5236
5237 fi
5238
5239
5240
5241 for ac_header in stdlib.h unistd.h
5242 do
5243 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5244 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5245   echo "$as_me:$LINENO: checking for $ac_header" >&5
5246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5248   echo $ECHO_N "(cached) $ECHO_C" >&6
5249 fi
5250 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5251 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5252 else
5253   # Is the header compilable?
5254 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5255 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5256 cat >conftest.$ac_ext <<_ACEOF
5257 /* confdefs.h.  */
5258 _ACEOF
5259 cat confdefs.h >>conftest.$ac_ext
5260 cat >>conftest.$ac_ext <<_ACEOF
5261 /* end confdefs.h.  */
5262 $ac_includes_default
5263 #include <$ac_header>
5264 _ACEOF
5265 rm -f conftest.$ac_objext
5266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5267   (eval $ac_compile) 2>conftest.er1
5268   ac_status=$?
5269   grep -v '^ *+' conftest.er1 >conftest.err
5270   rm -f conftest.er1
5271   cat conftest.err >&5
5272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273   (exit $ac_status); } &&
5274          { ac_try='test -z "$ac_c_werror_flag"
5275                          || test ! -s conftest.err'
5276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5277   (eval $ac_try) 2>&5
5278   ac_status=$?
5279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280   (exit $ac_status); }; } &&
5281          { ac_try='test -s conftest.$ac_objext'
5282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5283   (eval $ac_try) 2>&5
5284   ac_status=$?
5285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286   (exit $ac_status); }; }; then
5287   ac_header_compiler=yes
5288 else
5289   echo "$as_me: failed program was:" >&5
5290 sed 's/^/| /' conftest.$ac_ext >&5
5291
5292 ac_header_compiler=no
5293 fi
5294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5295 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5296 echo "${ECHO_T}$ac_header_compiler" >&6
5297
5298 # Is the header present?
5299 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5300 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5301 cat >conftest.$ac_ext <<_ACEOF
5302 /* confdefs.h.  */
5303 _ACEOF
5304 cat confdefs.h >>conftest.$ac_ext
5305 cat >>conftest.$ac_ext <<_ACEOF
5306 /* end confdefs.h.  */
5307 #include <$ac_header>
5308 _ACEOF
5309 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5310   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5311   ac_status=$?
5312   grep -v '^ *+' conftest.er1 >conftest.err
5313   rm -f conftest.er1
5314   cat conftest.err >&5
5315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316   (exit $ac_status); } >/dev/null; then
5317   if test -s conftest.err; then
5318     ac_cpp_err=$ac_c_preproc_warn_flag
5319     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5320   else
5321     ac_cpp_err=
5322   fi
5323 else
5324   ac_cpp_err=yes
5325 fi
5326 if test -z "$ac_cpp_err"; then
5327   ac_header_preproc=yes
5328 else
5329   echo "$as_me: failed program was:" >&5
5330 sed 's/^/| /' conftest.$ac_ext >&5
5331
5332   ac_header_preproc=no
5333 fi
5334 rm -f conftest.err conftest.$ac_ext
5335 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5336 echo "${ECHO_T}$ac_header_preproc" >&6
5337
5338 # So?  What about this header?
5339 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5340   yes:no: )
5341     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5342 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5343     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5344 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5345     ac_header_preproc=yes
5346     ;;
5347   no:yes:* )
5348     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5349 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5350     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5351 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5352     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5353 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5354     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5355 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5356     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5357 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5358     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5359 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5360     (
5361       cat <<\_ASBOX
5362 ## ------------------------------------------ ##
5363 ## Report this to the AC_PACKAGE_NAME lists.  ##
5364 ## ------------------------------------------ ##
5365 _ASBOX
5366     ) |
5367       sed "s/^/$as_me: WARNING:     /" >&2
5368     ;;
5369 esac
5370 echo "$as_me:$LINENO: checking for $ac_header" >&5
5371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5373   echo $ECHO_N "(cached) $ECHO_C" >&6
5374 else
5375   eval "$as_ac_Header=\$ac_header_preproc"
5376 fi
5377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5378 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5379
5380 fi
5381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5382   cat >>confdefs.h <<_ACEOF
5383 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5384 _ACEOF
5385
5386 fi
5387
5388 done
5389
5390
5391 for ac_func in getpagesize
5392 do
5393 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5394 echo "$as_me:$LINENO: checking for $ac_func" >&5
5395 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5396 if eval "test \"\${$as_ac_var+set}\" = set"; then
5397   echo $ECHO_N "(cached) $ECHO_C" >&6
5398 else
5399   cat >conftest.$ac_ext <<_ACEOF
5400 /* confdefs.h.  */
5401 _ACEOF
5402 cat confdefs.h >>conftest.$ac_ext
5403 cat >>conftest.$ac_ext <<_ACEOF
5404 /* end confdefs.h.  */
5405 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5406    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5407 #define $ac_func innocuous_$ac_func
5408
5409 /* System header to define __stub macros and hopefully few prototypes,
5410     which can conflict with char $ac_func (); below.
5411     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5412     <limits.h> exists even on freestanding compilers.  */
5413
5414 #ifdef __STDC__
5415 # include <limits.h>
5416 #else
5417 # include <assert.h>
5418 #endif
5419
5420 #undef $ac_func
5421
5422 /* Override any gcc2 internal prototype to avoid an error.  */
5423 #ifdef __cplusplus
5424 extern "C"
5425 {
5426 #endif
5427 /* We use char because int might match the return type of a gcc2
5428    builtin and then its argument prototype would still apply.  */
5429 char $ac_func ();
5430 /* The GNU C library defines this for functions which it implements
5431     to always fail with ENOSYS.  Some functions are actually named
5432     something starting with __ and the normal name is an alias.  */
5433 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5434 choke me
5435 #else
5436 char (*f) () = $ac_func;
5437 #endif
5438 #ifdef __cplusplus
5439 }
5440 #endif
5441
5442 int
5443 main ()
5444 {
5445 return f != $ac_func;
5446   ;
5447   return 0;
5448 }
5449 _ACEOF
5450 rm -f conftest.$ac_objext conftest$ac_exeext
5451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5452   (eval $ac_link) 2>conftest.er1
5453   ac_status=$?
5454   grep -v '^ *+' conftest.er1 >conftest.err
5455   rm -f conftest.er1
5456   cat conftest.err >&5
5457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458   (exit $ac_status); } &&
5459          { ac_try='test -z "$ac_c_werror_flag"
5460                          || test ! -s conftest.err'
5461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5462   (eval $ac_try) 2>&5
5463   ac_status=$?
5464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465   (exit $ac_status); }; } &&
5466          { ac_try='test -s conftest$ac_exeext'
5467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5468   (eval $ac_try) 2>&5
5469   ac_status=$?
5470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471   (exit $ac_status); }; }; then
5472   eval "$as_ac_var=yes"
5473 else
5474   echo "$as_me: failed program was:" >&5
5475 sed 's/^/| /' conftest.$ac_ext >&5
5476
5477 eval "$as_ac_var=no"
5478 fi
5479 rm -f conftest.err conftest.$ac_objext \
5480       conftest$ac_exeext conftest.$ac_ext
5481 fi
5482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5483 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5484 if test `eval echo '${'$as_ac_var'}'` = yes; then
5485   cat >>confdefs.h <<_ACEOF
5486 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5487 _ACEOF
5488
5489 fi
5490 done
5491
5492 echo "$as_me:$LINENO: checking for working mmap" >&5
5493 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5494 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5495   echo $ECHO_N "(cached) $ECHO_C" >&6
5496 else
5497   if test "$cross_compiling" = yes; then
5498   ac_cv_func_mmap_fixed_mapped=no
5499 else
5500   cat >conftest.$ac_ext <<_ACEOF
5501 /* confdefs.h.  */
5502 _ACEOF
5503 cat confdefs.h >>conftest.$ac_ext
5504 cat >>conftest.$ac_ext <<_ACEOF
5505 /* end confdefs.h.  */
5506 $ac_includes_default
5507 /* malloc might have been renamed as rpl_malloc. */
5508 #undef malloc
5509
5510 /* Thanks to Mike Haertel and Jim Avera for this test.
5511    Here is a matrix of mmap possibilities:
5512         mmap private not fixed
5513         mmap private fixed at somewhere currently unmapped
5514         mmap private fixed at somewhere already mapped
5515         mmap shared not fixed
5516         mmap shared fixed at somewhere currently unmapped
5517         mmap shared fixed at somewhere already mapped
5518    For private mappings, we should verify that changes cannot be read()
5519    back from the file, nor mmap's back from the file at a different
5520    address.  (There have been systems where private was not correctly
5521    implemented like the infamous i386 svr4.0, and systems where the
5522    VM page cache was not coherent with the file system buffer cache
5523    like early versions of FreeBSD and possibly contemporary NetBSD.)
5524    For shared mappings, we should conversely verify that changes get
5525    propagated back to all the places they're supposed to be.
5526
5527    Grep wants private fixed already mapped.
5528    The main things grep needs to know about mmap are:
5529    * does it exist and is it safe to write into the mmap'd area
5530    * how to use it (BSD variants)  */
5531
5532 #include <fcntl.h>
5533 #include <sys/mman.h>
5534
5535 #if !STDC_HEADERS && !HAVE_STDLIB_H
5536 char *malloc ();
5537 #endif
5538
5539 /* This mess was copied from the GNU getpagesize.h.  */
5540 #if !HAVE_GETPAGESIZE
5541 /* Assume that all systems that can run configure have sys/param.h.  */
5542 # if !HAVE_SYS_PARAM_H
5543 #  define HAVE_SYS_PARAM_H 1
5544 # endif
5545
5546 # ifdef _SC_PAGESIZE
5547 #  define getpagesize() sysconf(_SC_PAGESIZE)
5548 # else /* no _SC_PAGESIZE */
5549 #  if HAVE_SYS_PARAM_H
5550 #   include <sys/param.h>
5551 #   ifdef EXEC_PAGESIZE
5552 #    define getpagesize() EXEC_PAGESIZE
5553 #   else /* no EXEC_PAGESIZE */
5554 #    ifdef NBPG
5555 #     define getpagesize() NBPG * CLSIZE
5556 #     ifndef CLSIZE
5557 #      define CLSIZE 1
5558 #     endif /* no CLSIZE */
5559 #    else /* no NBPG */
5560 #     ifdef NBPC
5561 #      define getpagesize() NBPC
5562 #     else /* no NBPC */
5563 #      ifdef PAGESIZE
5564 #       define getpagesize() PAGESIZE
5565 #      endif /* PAGESIZE */
5566 #     endif /* no NBPC */
5567 #    endif /* no NBPG */
5568 #   endif /* no EXEC_PAGESIZE */
5569 #  else /* no HAVE_SYS_PARAM_H */
5570 #   define getpagesize() 8192   /* punt totally */
5571 #  endif /* no HAVE_SYS_PARAM_H */
5572 # endif /* no _SC_PAGESIZE */
5573
5574 #endif /* no HAVE_GETPAGESIZE */
5575
5576 int
5577 main ()
5578 {
5579   char *data, *data2, *data3;
5580   int i, pagesize;
5581   int fd;
5582
5583   pagesize = getpagesize ();
5584
5585   /* First, make a file with some known garbage in it. */
5586   data = (char *) malloc (pagesize);
5587   if (!data)
5588     exit (1);
5589   for (i = 0; i < pagesize; ++i)
5590     *(data + i) = rand ();
5591   umask (0);
5592   fd = creat ("conftest.mmap", 0600);
5593   if (fd < 0)
5594     exit (1);
5595   if (write (fd, data, pagesize) != pagesize)
5596     exit (1);
5597   close (fd);
5598
5599   /* Next, try to mmap the file at a fixed address which already has
5600      something else allocated at it.  If we can, also make sure that
5601      we see the same garbage.  */
5602   fd = open ("conftest.mmap", O_RDWR);
5603   if (fd < 0)
5604     exit (1);
5605   data2 = (char *) malloc (2 * pagesize);
5606   if (!data2)
5607     exit (1);
5608   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
5609   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5610                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
5611     exit (1);
5612   for (i = 0; i < pagesize; ++i)
5613     if (*(data + i) != *(data2 + i))
5614       exit (1);
5615
5616   /* Finally, make sure that changes to the mapped area do not
5617      percolate back to the file as seen by read().  (This is a bug on
5618      some variants of i386 svr4.0.)  */
5619   for (i = 0; i < pagesize; ++i)
5620     *(data2 + i) = *(data2 + i) + 1;
5621   data3 = (char *) malloc (pagesize);
5622   if (!data3)
5623     exit (1);
5624   if (read (fd, data3, pagesize) != pagesize)
5625     exit (1);
5626   for (i = 0; i < pagesize; ++i)
5627     if (*(data + i) != *(data3 + i))
5628       exit (1);
5629   close (fd);
5630   exit (0);
5631 }
5632 _ACEOF
5633 rm -f conftest$ac_exeext
5634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5635   (eval $ac_link) 2>&5
5636   ac_status=$?
5637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5640   (eval $ac_try) 2>&5
5641   ac_status=$?
5642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643   (exit $ac_status); }; }; then
5644   ac_cv_func_mmap_fixed_mapped=yes
5645 else
5646   echo "$as_me: program exited with status $ac_status" >&5
5647 echo "$as_me: failed program was:" >&5
5648 sed 's/^/| /' conftest.$ac_ext >&5
5649
5650 ( exit $ac_status )
5651 ac_cv_func_mmap_fixed_mapped=no
5652 fi
5653 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5654 fi
5655 fi
5656 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5657 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5658 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5659
5660 cat >>confdefs.h <<\_ACEOF
5661 #define HAVE_MMAP 1
5662 _ACEOF
5663
5664 fi
5665 rm -f conftest.mmap
5666
5667
5668     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
5669 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
5670 if test "${ac_cv_gnu_library_2_1+set}" = set; then
5671   echo $ECHO_N "(cached) $ECHO_C" >&6
5672 else
5673   cat >conftest.$ac_ext <<_ACEOF
5674 /* confdefs.h.  */
5675 _ACEOF
5676 cat confdefs.h >>conftest.$ac_ext
5677 cat >>conftest.$ac_ext <<_ACEOF
5678 /* end confdefs.h.  */
5679
5680 #include <features.h>
5681 #ifdef __GNU_LIBRARY__
5682  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
5683   Lucky GNU user
5684  #endif
5685 #endif
5686
5687 _ACEOF
5688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5689   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
5690   ac_cv_gnu_library_2_1=yes
5691 else
5692   ac_cv_gnu_library_2_1=no
5693 fi
5694 rm -f conftest*
5695
5696
5697
5698 fi
5699 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
5700 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
5701
5702     GLIBC21="$ac_cv_gnu_library_2_1"
5703
5704
5705
5706
5707   echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
5708 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
5709 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
5710   echo $ECHO_N "(cached) $ECHO_C" >&6
5711 else
5712
5713       if test "$cross_compiling" = yes; then
5714
5715           # Guess based on the CPU.
5716           case "$host_cpu" in
5717             alpha* | i3456786 | m68k | s390*)
5718               gt_cv_int_divbyzero_sigfpe="guessing yes";;
5719             *)
5720               gt_cv_int_divbyzero_sigfpe="guessing no";;
5721           esac
5722
5723 else
5724   cat >conftest.$ac_ext <<_ACEOF
5725 /* confdefs.h.  */
5726 _ACEOF
5727 cat confdefs.h >>conftest.$ac_ext
5728 cat >>conftest.$ac_ext <<_ACEOF
5729 /* end confdefs.h.  */
5730
5731 #include <stdlib.h>
5732 #include <signal.h>
5733
5734 static void
5735 #ifdef __cplusplus
5736 sigfpe_handler (int sig)
5737 #else
5738 sigfpe_handler (sig) int sig;
5739 #endif
5740 {
5741   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
5742   exit (sig != SIGFPE);
5743 }
5744
5745 int x = 1;
5746 int y = 0;
5747 int z;
5748 int nan;
5749
5750 int main ()
5751 {
5752   signal (SIGFPE, sigfpe_handler);
5753 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
5754 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
5755   signal (SIGTRAP, sigfpe_handler);
5756 #endif
5757 /* Linux/SPARC yields signal SIGILL.  */
5758 #if defined (__sparc__) && defined (__linux__)
5759   signal (SIGILL, sigfpe_handler);
5760 #endif
5761
5762   z = x / y;
5763   nan = y / y;
5764   exit (1);
5765 }
5766
5767 _ACEOF
5768 rm -f conftest$ac_exeext
5769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5770   (eval $ac_link) 2>&5
5771   ac_status=$?
5772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5775   (eval $ac_try) 2>&5
5776   ac_status=$?
5777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778   (exit $ac_status); }; }; then
5779   gt_cv_int_divbyzero_sigfpe=yes
5780 else
5781   echo "$as_me: program exited with status $ac_status" >&5
5782 echo "$as_me: failed program was:" >&5
5783 sed 's/^/| /' conftest.$ac_ext >&5
5784
5785 ( exit $ac_status )
5786 gt_cv_int_divbyzero_sigfpe=no
5787 fi
5788 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5789 fi
5790
5791 fi
5792 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
5793 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
5794   case "$gt_cv_int_divbyzero_sigfpe" in
5795     *yes) value=1;;
5796     *) value=0;;
5797   esac
5798
5799 cat >>confdefs.h <<_ACEOF
5800 #define INTDIV0_RAISES_SIGFPE $value
5801 _ACEOF
5802
5803
5804
5805   echo "$as_me:$LINENO: checking for unsigned long long" >&5
5806 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
5807 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
5808   echo $ECHO_N "(cached) $ECHO_C" >&6
5809 else
5810   cat >conftest.$ac_ext <<_ACEOF
5811 /* confdefs.h.  */
5812 _ACEOF
5813 cat confdefs.h >>conftest.$ac_ext
5814 cat >>conftest.$ac_ext <<_ACEOF
5815 /* end confdefs.h.  */
5816 unsigned long long ull = 1ULL; int i = 63;
5817 int
5818 main ()
5819 {
5820 unsigned long long ullmax = (unsigned long long) -1;
5821      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
5822   ;
5823   return 0;
5824 }
5825 _ACEOF
5826 rm -f conftest.$ac_objext conftest$ac_exeext
5827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5828   (eval $ac_link) 2>conftest.er1
5829   ac_status=$?
5830   grep -v '^ *+' conftest.er1 >conftest.err
5831   rm -f conftest.er1
5832   cat conftest.err >&5
5833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834   (exit $ac_status); } &&
5835          { ac_try='test -z "$ac_c_werror_flag"
5836                          || test ! -s conftest.err'
5837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5838   (eval $ac_try) 2>&5
5839   ac_status=$?
5840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841   (exit $ac_status); }; } &&
5842          { ac_try='test -s conftest$ac_exeext'
5843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5844   (eval $ac_try) 2>&5
5845   ac_status=$?
5846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847   (exit $ac_status); }; }; then
5848   ac_cv_type_unsigned_long_long=yes
5849 else
5850   echo "$as_me: failed program was:" >&5
5851 sed 's/^/| /' conftest.$ac_ext >&5
5852
5853 ac_cv_type_unsigned_long_long=no
5854 fi
5855 rm -f conftest.err conftest.$ac_objext \
5856       conftest$ac_exeext conftest.$ac_ext
5857 fi
5858 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
5859 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
5860   if test $ac_cv_type_unsigned_long_long = yes; then
5861
5862 cat >>confdefs.h <<\_ACEOF
5863 #define HAVE_UNSIGNED_LONG_LONG 1
5864 _ACEOF
5865
5866   fi
5867
5868
5869
5870
5871   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
5872
5873     test $ac_cv_type_unsigned_long_long = yes \
5874       && ac_type='unsigned long long' \
5875       || ac_type='unsigned long'
5876
5877 cat >>confdefs.h <<_ACEOF
5878 #define uintmax_t $ac_type
5879 _ACEOF
5880
5881   else
5882
5883 cat >>confdefs.h <<\_ACEOF
5884 #define HAVE_UINTMAX_T 1
5885 _ACEOF
5886
5887   fi
5888
5889
5890   echo "$as_me:$LINENO: checking for inttypes.h" >&5
5891 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
5892 if test "${gt_cv_header_inttypes_h+set}" = set; then
5893   echo $ECHO_N "(cached) $ECHO_C" >&6
5894 else
5895
5896     cat >conftest.$ac_ext <<_ACEOF
5897 /* confdefs.h.  */
5898 _ACEOF
5899 cat confdefs.h >>conftest.$ac_ext
5900 cat >>conftest.$ac_ext <<_ACEOF
5901 /* end confdefs.h.  */
5902 #include <sys/types.h>
5903 #include <inttypes.h>
5904 int
5905 main ()
5906 {
5907
5908   ;
5909   return 0;
5910 }
5911 _ACEOF
5912 rm -f conftest.$ac_objext
5913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5914   (eval $ac_compile) 2>conftest.er1
5915   ac_status=$?
5916   grep -v '^ *+' conftest.er1 >conftest.err
5917   rm -f conftest.er1
5918   cat conftest.err >&5
5919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920   (exit $ac_status); } &&
5921          { ac_try='test -z "$ac_c_werror_flag"
5922                          || test ! -s conftest.err'
5923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5924   (eval $ac_try) 2>&5
5925   ac_status=$?
5926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927   (exit $ac_status); }; } &&
5928          { ac_try='test -s conftest.$ac_objext'
5929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5930   (eval $ac_try) 2>&5
5931   ac_status=$?
5932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933   (exit $ac_status); }; }; then
5934   gt_cv_header_inttypes_h=yes
5935 else
5936   echo "$as_me: failed program was:" >&5
5937 sed 's/^/| /' conftest.$ac_ext >&5
5938
5939 gt_cv_header_inttypes_h=no
5940 fi
5941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5942
5943 fi
5944 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
5945 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
5946   if test $gt_cv_header_inttypes_h = yes; then
5947
5948 cat >>confdefs.h <<_ACEOF
5949 #define HAVE_INTTYPES_H 1
5950 _ACEOF
5951
5952   fi
5953
5954
5955
5956   if test $gt_cv_header_inttypes_h = yes; then
5957     echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
5958 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
5959 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
5960   echo $ECHO_N "(cached) $ECHO_C" >&6
5961 else
5962
5963         cat >conftest.$ac_ext <<_ACEOF
5964 /* confdefs.h.  */
5965 _ACEOF
5966 cat confdefs.h >>conftest.$ac_ext
5967 cat >>conftest.$ac_ext <<_ACEOF
5968 /* end confdefs.h.  */
5969 #include <inttypes.h>
5970 #ifdef PRId32
5971 char *p = PRId32;
5972 #endif
5973
5974 int
5975 main ()
5976 {
5977
5978   ;
5979   return 0;
5980 }
5981 _ACEOF
5982 rm -f conftest.$ac_objext
5983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5984   (eval $ac_compile) 2>conftest.er1
5985   ac_status=$?
5986   grep -v '^ *+' conftest.er1 >conftest.err
5987   rm -f conftest.er1
5988   cat conftest.err >&5
5989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990   (exit $ac_status); } &&
5991          { ac_try='test -z "$ac_c_werror_flag"
5992                          || test ! -s conftest.err'
5993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5994   (eval $ac_try) 2>&5
5995   ac_status=$?
5996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997   (exit $ac_status); }; } &&
5998          { ac_try='test -s conftest.$ac_objext'
5999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6000   (eval $ac_try) 2>&5
6001   ac_status=$?
6002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003   (exit $ac_status); }; }; then
6004   gt_cv_inttypes_pri_broken=no
6005 else
6006   echo "$as_me: failed program was:" >&5
6007 sed 's/^/| /' conftest.$ac_ext >&5
6008
6009 gt_cv_inttypes_pri_broken=yes
6010 fi
6011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6012
6013 fi
6014 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
6015 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
6016   fi
6017   if test "$gt_cv_inttypes_pri_broken" = yes; then
6018
6019 cat >>confdefs.h <<_ACEOF
6020 #define PRI_MACROS_BROKEN 1
6021 _ACEOF
6022
6023   fi
6024
6025
6026
6027 for ac_header in stdint.h
6028 do
6029 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6031   echo "$as_me:$LINENO: checking for $ac_header" >&5
6032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6034   echo $ECHO_N "(cached) $ECHO_C" >&6
6035 fi
6036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6037 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6038 else
6039   # Is the header compilable?
6040 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6041 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6042 cat >conftest.$ac_ext <<_ACEOF
6043 /* confdefs.h.  */
6044 _ACEOF
6045 cat confdefs.h >>conftest.$ac_ext
6046 cat >>conftest.$ac_ext <<_ACEOF
6047 /* end confdefs.h.  */
6048 $ac_includes_default
6049 #include <$ac_header>
6050 _ACEOF
6051 rm -f conftest.$ac_objext
6052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6053   (eval $ac_compile) 2>conftest.er1
6054   ac_status=$?
6055   grep -v '^ *+' conftest.er1 >conftest.err
6056   rm -f conftest.er1
6057   cat conftest.err >&5
6058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059   (exit $ac_status); } &&
6060          { ac_try='test -z "$ac_c_werror_flag"
6061                          || test ! -s conftest.err'
6062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6063   (eval $ac_try) 2>&5
6064   ac_status=$?
6065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066   (exit $ac_status); }; } &&
6067          { ac_try='test -s conftest.$ac_objext'
6068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6069   (eval $ac_try) 2>&5
6070   ac_status=$?
6071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072   (exit $ac_status); }; }; then
6073   ac_header_compiler=yes
6074 else
6075   echo "$as_me: failed program was:" >&5
6076 sed 's/^/| /' conftest.$ac_ext >&5
6077
6078 ac_header_compiler=no
6079 fi
6080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6081 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6082 echo "${ECHO_T}$ac_header_compiler" >&6
6083
6084 # Is the header present?
6085 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6086 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6087 cat >conftest.$ac_ext <<_ACEOF
6088 /* confdefs.h.  */
6089 _ACEOF
6090 cat confdefs.h >>conftest.$ac_ext
6091 cat >>conftest.$ac_ext <<_ACEOF
6092 /* end confdefs.h.  */
6093 #include <$ac_header>
6094 _ACEOF
6095 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6096   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6097   ac_status=$?
6098   grep -v '^ *+' conftest.er1 >conftest.err
6099   rm -f conftest.er1
6100   cat conftest.err >&5
6101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102   (exit $ac_status); } >/dev/null; then
6103   if test -s conftest.err; then
6104     ac_cpp_err=$ac_c_preproc_warn_flag
6105     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6106   else
6107     ac_cpp_err=
6108   fi
6109 else
6110   ac_cpp_err=yes
6111 fi
6112 if test -z "$ac_cpp_err"; then
6113   ac_header_preproc=yes
6114 else
6115   echo "$as_me: failed program was:" >&5
6116 sed 's/^/| /' conftest.$ac_ext >&5
6117
6118   ac_header_preproc=no
6119 fi
6120 rm -f conftest.err conftest.$ac_ext
6121 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6122 echo "${ECHO_T}$ac_header_preproc" >&6
6123
6124 # So?  What about this header?
6125 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6126   yes:no: )
6127     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6128 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6129     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6130 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6131     ac_header_preproc=yes
6132     ;;
6133   no:yes:* )
6134     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6135 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6136     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6137 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6138     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6139 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6140     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6141 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6142     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6143 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6144     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6145 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6146     (
6147       cat <<\_ASBOX
6148 ## ------------------------------------------ ##
6149 ## Report this to the AC_PACKAGE_NAME lists.  ##
6150 ## ------------------------------------------ ##
6151 _ASBOX
6152     ) |
6153       sed "s/^/$as_me: WARNING:     /" >&2
6154     ;;
6155 esac
6156 echo "$as_me:$LINENO: checking for $ac_header" >&5
6157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6158 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6159   echo $ECHO_N "(cached) $ECHO_C" >&6
6160 else
6161   eval "$as_ac_Header=\$ac_header_preproc"
6162 fi
6163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6164 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6165
6166 fi
6167 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6168   cat >>confdefs.h <<_ACEOF
6169 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6170 _ACEOF
6171
6172 fi
6173
6174 done
6175
6176     echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
6177 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
6178   result=
6179   cat >conftest.$ac_ext <<_ACEOF
6180 /* confdefs.h.  */
6181 _ACEOF
6182 cat confdefs.h >>conftest.$ac_ext
6183 cat >>conftest.$ac_ext <<_ACEOF
6184 /* end confdefs.h.  */
6185
6186 #include <limits.h>
6187 #if HAVE_STDINT_H
6188 #include <stdint.h>
6189 #endif
6190 #ifdef SIZE_MAX
6191 Found it
6192 #endif
6193
6194 _ACEOF
6195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6196   $EGREP "Found it" >/dev/null 2>&1; then
6197   result=yes
6198 fi
6199 rm -f conftest*
6200
6201   if test -z "$result"; then
6202                     if test "$cross_compiling" = yes; then
6203   # Depending upon the size, compute the lo and hi bounds.
6204 cat >conftest.$ac_ext <<_ACEOF
6205 /* confdefs.h.  */
6206 _ACEOF
6207 cat confdefs.h >>conftest.$ac_ext
6208 cat >>conftest.$ac_ext <<_ACEOF
6209 /* end confdefs.h.  */
6210 #include <stddef.h>
6211 int
6212 main ()
6213 {
6214 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
6215 test_array [0] = 0
6216
6217   ;
6218   return 0;
6219 }
6220 _ACEOF
6221 rm -f conftest.$ac_objext
6222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6223   (eval $ac_compile) 2>conftest.er1
6224   ac_status=$?
6225   grep -v '^ *+' conftest.er1 >conftest.err
6226   rm -f conftest.er1
6227   cat conftest.err >&5
6228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229   (exit $ac_status); } &&
6230          { ac_try='test -z "$ac_c_werror_flag"
6231                          || test ! -s conftest.err'
6232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6233   (eval $ac_try) 2>&5
6234   ac_status=$?
6235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236   (exit $ac_status); }; } &&
6237          { ac_try='test -s conftest.$ac_objext'
6238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6239   (eval $ac_try) 2>&5
6240   ac_status=$?
6241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242   (exit $ac_status); }; }; then
6243   ac_lo=0 ac_mid=0
6244   while :; do
6245     cat >conftest.$ac_ext <<_ACEOF
6246 /* confdefs.h.  */
6247 _ACEOF
6248 cat confdefs.h >>conftest.$ac_ext
6249 cat >>conftest.$ac_ext <<_ACEOF
6250 /* end confdefs.h.  */
6251 #include <stddef.h>
6252 int
6253 main ()
6254 {
6255 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
6256 test_array [0] = 0
6257
6258   ;
6259   return 0;
6260 }
6261 _ACEOF
6262 rm -f conftest.$ac_objext
6263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6264   (eval $ac_compile) 2>conftest.er1
6265   ac_status=$?
6266   grep -v '^ *+' conftest.er1 >conftest.err
6267   rm -f conftest.er1
6268   cat conftest.err >&5
6269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270   (exit $ac_status); } &&
6271          { ac_try='test -z "$ac_c_werror_flag"
6272                          || test ! -s conftest.err'
6273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6274   (eval $ac_try) 2>&5
6275   ac_status=$?
6276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277   (exit $ac_status); }; } &&
6278          { ac_try='test -s conftest.$ac_objext'
6279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6280   (eval $ac_try) 2>&5
6281   ac_status=$?
6282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283   (exit $ac_status); }; }; then
6284   ac_hi=$ac_mid; break
6285 else
6286   echo "$as_me: failed program was:" >&5
6287 sed 's/^/| /' conftest.$ac_ext >&5
6288
6289 ac_lo=`expr $ac_mid + 1`
6290                     if test $ac_lo -le $ac_mid; then
6291                       ac_lo= ac_hi=
6292                       break
6293                     fi
6294                     ac_mid=`expr 2 '*' $ac_mid + 1`
6295 fi
6296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6297   done
6298 else
6299   echo "$as_me: failed program was:" >&5
6300 sed 's/^/| /' conftest.$ac_ext >&5
6301
6302 cat >conftest.$ac_ext <<_ACEOF
6303 /* confdefs.h.  */
6304 _ACEOF
6305 cat confdefs.h >>conftest.$ac_ext
6306 cat >>conftest.$ac_ext <<_ACEOF
6307 /* end confdefs.h.  */
6308 #include <stddef.h>
6309 int
6310 main ()
6311 {
6312 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
6313 test_array [0] = 0
6314
6315   ;
6316   return 0;
6317 }
6318 _ACEOF
6319 rm -f conftest.$ac_objext
6320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6321   (eval $ac_compile) 2>conftest.er1
6322   ac_status=$?
6323   grep -v '^ *+' conftest.er1 >conftest.err
6324   rm -f conftest.er1
6325   cat conftest.err >&5
6326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327   (exit $ac_status); } &&
6328          { ac_try='test -z "$ac_c_werror_flag"
6329                          || test ! -s conftest.err'
6330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6331   (eval $ac_try) 2>&5
6332   ac_status=$?
6333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334   (exit $ac_status); }; } &&
6335          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
6341   ac_hi=-1 ac_mid=-1
6342   while :; do
6343     cat >conftest.$ac_ext <<_ACEOF
6344 /* confdefs.h.  */
6345 _ACEOF
6346 cat confdefs.h >>conftest.$ac_ext
6347 cat >>conftest.$ac_ext <<_ACEOF
6348 /* end confdefs.h.  */
6349 #include <stddef.h>
6350 int
6351 main ()
6352 {
6353 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
6354 test_array [0] = 0
6355
6356   ;
6357   return 0;
6358 }
6359 _ACEOF
6360 rm -f conftest.$ac_objext
6361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6362   (eval $ac_compile) 2>conftest.er1
6363   ac_status=$?
6364   grep -v '^ *+' conftest.er1 >conftest.err
6365   rm -f conftest.er1
6366   cat conftest.err >&5
6367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368   (exit $ac_status); } &&
6369          { ac_try='test -z "$ac_c_werror_flag"
6370                          || test ! -s conftest.err'
6371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6372   (eval $ac_try) 2>&5
6373   ac_status=$?
6374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375   (exit $ac_status); }; } &&
6376          { ac_try='test -s conftest.$ac_objext'
6377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6378   (eval $ac_try) 2>&5
6379   ac_status=$?
6380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381   (exit $ac_status); }; }; then
6382   ac_lo=$ac_mid; break
6383 else
6384   echo "$as_me: failed program was:" >&5
6385 sed 's/^/| /' conftest.$ac_ext >&5
6386
6387 ac_hi=`expr '(' $ac_mid ')' - 1`
6388                        if test $ac_mid -le $ac_hi; then
6389                          ac_lo= ac_hi=
6390                          break
6391                        fi
6392                        ac_mid=`expr 2 '*' $ac_mid`
6393 fi
6394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6395   done
6396 else
6397   echo "$as_me: failed program was:" >&5
6398 sed 's/^/| /' conftest.$ac_ext >&5
6399
6400 ac_lo= ac_hi=
6401 fi
6402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6403 fi
6404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6405 # Binary search between lo and hi bounds.
6406 while test "x$ac_lo" != "x$ac_hi"; do
6407   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6408   cat >conftest.$ac_ext <<_ACEOF
6409 /* confdefs.h.  */
6410 _ACEOF
6411 cat confdefs.h >>conftest.$ac_ext
6412 cat >>conftest.$ac_ext <<_ACEOF
6413 /* end confdefs.h.  */
6414 #include <stddef.h>
6415 int
6416 main ()
6417 {
6418 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
6419 test_array [0] = 0
6420
6421   ;
6422   return 0;
6423 }
6424 _ACEOF
6425 rm -f conftest.$ac_objext
6426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6427   (eval $ac_compile) 2>conftest.er1
6428   ac_status=$?
6429   grep -v '^ *+' conftest.er1 >conftest.err
6430   rm -f conftest.er1
6431   cat conftest.err >&5
6432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433   (exit $ac_status); } &&
6434          { ac_try='test -z "$ac_c_werror_flag"
6435                          || test ! -s conftest.err'
6436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6437   (eval $ac_try) 2>&5
6438   ac_status=$?
6439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440   (exit $ac_status); }; } &&
6441          { ac_try='test -s conftest.$ac_objext'
6442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6443   (eval $ac_try) 2>&5
6444   ac_status=$?
6445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446   (exit $ac_status); }; }; then
6447   ac_hi=$ac_mid
6448 else
6449   echo "$as_me: failed program was:" >&5
6450 sed 's/^/| /' conftest.$ac_ext >&5
6451
6452 ac_lo=`expr '(' $ac_mid ')' + 1`
6453 fi
6454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6455 done
6456 case $ac_lo in
6457 ?*) res_hi=$ac_lo;;
6458 '') result=? ;;
6459 esac
6460 else
6461   if test "$cross_compiling" = yes; then
6462   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6463 See \`config.log' for more details." >&5
6464 echo "$as_me: error: cannot run test program while cross compiling
6465 See \`config.log' for more details." >&2;}
6466    { (exit 1); exit 1; }; }
6467 else
6468   cat >conftest.$ac_ext <<_ACEOF
6469 /* confdefs.h.  */
6470 _ACEOF
6471 cat confdefs.h >>conftest.$ac_ext
6472 cat >>conftest.$ac_ext <<_ACEOF
6473 /* end confdefs.h.  */
6474 #include <stddef.h>
6475 long longval () { return ~(size_t)0 / 10; }
6476 unsigned long ulongval () { return ~(size_t)0 / 10; }
6477 #include <stdio.h>
6478 #include <stdlib.h>
6479 int
6480 main ()
6481 {
6482
6483   FILE *f = fopen ("conftest.val", "w");
6484   if (! f)
6485     exit (1);
6486   if ((~(size_t)0 / 10) < 0)
6487     {
6488       long i = longval ();
6489       if (i != (~(size_t)0 / 10))
6490         exit (1);
6491       fprintf (f, "%ld\n", i);
6492     }
6493   else
6494     {
6495       unsigned long i = ulongval ();
6496       if (i != (~(size_t)0 / 10))
6497         exit (1);
6498       fprintf (f, "%lu\n", i);
6499     }
6500   exit (ferror (f) || fclose (f) != 0);
6501
6502   ;
6503   return 0;
6504 }
6505 _ACEOF
6506 rm -f conftest$ac_exeext
6507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6508   (eval $ac_link) 2>&5
6509   ac_status=$?
6510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6513   (eval $ac_try) 2>&5
6514   ac_status=$?
6515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516   (exit $ac_status); }; }; then
6517   res_hi=`cat conftest.val`
6518 else
6519   echo "$as_me: program exited with status $ac_status" >&5
6520 echo "$as_me: failed program was:" >&5
6521 sed 's/^/| /' conftest.$ac_ext >&5
6522
6523 ( exit $ac_status )
6524 result=?
6525 fi
6526 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6527 fi
6528 fi
6529 rm -f conftest.val
6530     if test "$cross_compiling" = yes; then
6531   # Depending upon the size, compute the lo and hi bounds.
6532 cat >conftest.$ac_ext <<_ACEOF
6533 /* confdefs.h.  */
6534 _ACEOF
6535 cat confdefs.h >>conftest.$ac_ext
6536 cat >>conftest.$ac_ext <<_ACEOF
6537 /* end confdefs.h.  */
6538 #include <stddef.h>
6539 int
6540 main ()
6541 {
6542 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
6543 test_array [0] = 0
6544
6545   ;
6546   return 0;
6547 }
6548 _ACEOF
6549 rm -f conftest.$ac_objext
6550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6551   (eval $ac_compile) 2>conftest.er1
6552   ac_status=$?
6553   grep -v '^ *+' conftest.er1 >conftest.err
6554   rm -f conftest.er1
6555   cat conftest.err >&5
6556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557   (exit $ac_status); } &&
6558          { ac_try='test -z "$ac_c_werror_flag"
6559                          || test ! -s conftest.err'
6560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6561   (eval $ac_try) 2>&5
6562   ac_status=$?
6563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564   (exit $ac_status); }; } &&
6565          { ac_try='test -s conftest.$ac_objext'
6566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6567   (eval $ac_try) 2>&5
6568   ac_status=$?
6569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570   (exit $ac_status); }; }; then
6571   ac_lo=0 ac_mid=0
6572   while :; do
6573     cat >conftest.$ac_ext <<_ACEOF
6574 /* confdefs.h.  */
6575 _ACEOF
6576 cat confdefs.h >>conftest.$ac_ext
6577 cat >>conftest.$ac_ext <<_ACEOF
6578 /* end confdefs.h.  */
6579 #include <stddef.h>
6580 int
6581 main ()
6582 {
6583 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
6584 test_array [0] = 0
6585
6586   ;
6587   return 0;
6588 }
6589 _ACEOF
6590 rm -f conftest.$ac_objext
6591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6592   (eval $ac_compile) 2>conftest.er1
6593   ac_status=$?
6594   grep -v '^ *+' conftest.er1 >conftest.err
6595   rm -f conftest.er1
6596   cat conftest.err >&5
6597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598   (exit $ac_status); } &&
6599          { ac_try='test -z "$ac_c_werror_flag"
6600                          || test ! -s conftest.err'
6601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6602   (eval $ac_try) 2>&5
6603   ac_status=$?
6604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605   (exit $ac_status); }; } &&
6606          { ac_try='test -s conftest.$ac_objext'
6607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6608   (eval $ac_try) 2>&5
6609   ac_status=$?
6610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611   (exit $ac_status); }; }; then
6612   ac_hi=$ac_mid; break
6613 else
6614   echo "$as_me: failed program was:" >&5
6615 sed 's/^/| /' conftest.$ac_ext >&5
6616
6617 ac_lo=`expr $ac_mid + 1`
6618                     if test $ac_lo -le $ac_mid; then
6619                       ac_lo= ac_hi=
6620                       break
6621                     fi
6622                     ac_mid=`expr 2 '*' $ac_mid + 1`
6623 fi
6624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6625   done
6626 else
6627   echo "$as_me: failed program was:" >&5
6628 sed 's/^/| /' conftest.$ac_ext >&5
6629
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) < 0)];
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"
6657                          || test ! -s conftest.err'
6658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6659   (eval $ac_try) 2>&5
6660   ac_status=$?
6661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662   (exit $ac_status); }; } &&
6663          { ac_try='test -s conftest.$ac_objext'
6664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6665   (eval $ac_try) 2>&5
6666   ac_status=$?
6667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668   (exit $ac_status); }; }; then
6669   ac_hi=-1 ac_mid=-1
6670   while :; do
6671     cat >conftest.$ac_ext <<_ACEOF
6672 /* confdefs.h.  */
6673 _ACEOF
6674 cat confdefs.h >>conftest.$ac_ext
6675 cat >>conftest.$ac_ext <<_ACEOF
6676 /* end confdefs.h.  */
6677 #include <stddef.h>
6678 int
6679 main ()
6680 {
6681 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
6682 test_array [0] = 0
6683
6684   ;
6685   return 0;
6686 }
6687 _ACEOF
6688 rm -f conftest.$ac_objext
6689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6690   (eval $ac_compile) 2>conftest.er1
6691   ac_status=$?
6692   grep -v '^ *+' conftest.er1 >conftest.err
6693   rm -f conftest.er1
6694   cat conftest.err >&5
6695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696   (exit $ac_status); } &&
6697          { ac_try='test -z "$ac_c_werror_flag"
6698                          || test ! -s conftest.err'
6699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6700   (eval $ac_try) 2>&5
6701   ac_status=$?
6702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703   (exit $ac_status); }; } &&
6704          { ac_try='test -s conftest.$ac_objext'
6705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6706   (eval $ac_try) 2>&5
6707   ac_status=$?
6708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709   (exit $ac_status); }; }; then
6710   ac_lo=$ac_mid; break
6711 else
6712   echo "$as_me: failed program was:" >&5
6713 sed 's/^/| /' conftest.$ac_ext >&5
6714
6715 ac_hi=`expr '(' $ac_mid ')' - 1`
6716                        if test $ac_mid -le $ac_hi; then
6717                          ac_lo= ac_hi=
6718                          break
6719                        fi
6720                        ac_mid=`expr 2 '*' $ac_mid`
6721 fi
6722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6723   done
6724 else
6725   echo "$as_me: failed program was:" >&5
6726 sed 's/^/| /' conftest.$ac_ext >&5
6727
6728 ac_lo= ac_hi=
6729 fi
6730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6731 fi
6732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6733 # Binary search between lo and hi bounds.
6734 while test "x$ac_lo" != "x$ac_hi"; do
6735   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6736   cat >conftest.$ac_ext <<_ACEOF
6737 /* confdefs.h.  */
6738 _ACEOF
6739 cat confdefs.h >>conftest.$ac_ext
6740 cat >>conftest.$ac_ext <<_ACEOF
6741 /* end confdefs.h.  */
6742 #include <stddef.h>
6743 int
6744 main ()
6745 {
6746 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
6747 test_array [0] = 0
6748
6749   ;
6750   return 0;
6751 }
6752 _ACEOF
6753 rm -f conftest.$ac_objext
6754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6755   (eval $ac_compile) 2>conftest.er1
6756   ac_status=$?
6757   grep -v '^ *+' conftest.er1 >conftest.err
6758   rm -f conftest.er1
6759   cat conftest.err >&5
6760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761   (exit $ac_status); } &&
6762          { ac_try='test -z "$ac_c_werror_flag"
6763                          || test ! -s conftest.err'
6764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6765   (eval $ac_try) 2>&5
6766   ac_status=$?
6767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768   (exit $ac_status); }; } &&
6769          { ac_try='test -s conftest.$ac_objext'
6770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6771   (eval $ac_try) 2>&5
6772   ac_status=$?
6773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774   (exit $ac_status); }; }; then
6775   ac_hi=$ac_mid
6776 else
6777   echo "$as_me: failed program was:" >&5
6778 sed 's/^/| /' conftest.$ac_ext >&5
6779
6780 ac_lo=`expr '(' $ac_mid ')' + 1`
6781 fi
6782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6783 done
6784 case $ac_lo in
6785 ?*) res_lo=$ac_lo;;
6786 '') result=? ;;
6787 esac
6788 else
6789   if test "$cross_compiling" = yes; then
6790   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6791 See \`config.log' for more details." >&5
6792 echo "$as_me: error: cannot run test program while cross compiling
6793 See \`config.log' for more details." >&2;}
6794    { (exit 1); exit 1; }; }
6795 else
6796   cat >conftest.$ac_ext <<_ACEOF
6797 /* confdefs.h.  */
6798 _ACEOF
6799 cat confdefs.h >>conftest.$ac_ext
6800 cat >>conftest.$ac_ext <<_ACEOF
6801 /* end confdefs.h.  */
6802 #include <stddef.h>
6803 long longval () { return ~(size_t)0 % 10; }
6804 unsigned long ulongval () { return ~(size_t)0 % 10; }
6805 #include <stdio.h>
6806 #include <stdlib.h>
6807 int
6808 main ()
6809 {
6810
6811   FILE *f = fopen ("conftest.val", "w");
6812   if (! f)
6813     exit (1);
6814   if ((~(size_t)0 % 10) < 0)
6815     {
6816       long i = longval ();
6817       if (i != (~(size_t)0 % 10))
6818         exit (1);
6819       fprintf (f, "%ld\n", i);
6820     }
6821   else
6822     {
6823       unsigned long i = ulongval ();
6824       if (i != (~(size_t)0 % 10))
6825         exit (1);
6826       fprintf (f, "%lu\n", i);
6827     }
6828   exit (ferror (f) || fclose (f) != 0);
6829
6830   ;
6831   return 0;
6832 }
6833 _ACEOF
6834 rm -f conftest$ac_exeext
6835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6836   (eval $ac_link) 2>&5
6837   ac_status=$?
6838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6841   (eval $ac_try) 2>&5
6842   ac_status=$?
6843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844   (exit $ac_status); }; }; then
6845   res_lo=`cat conftest.val`
6846 else
6847   echo "$as_me: program exited with status $ac_status" >&5
6848 echo "$as_me: failed program was:" >&5
6849 sed 's/^/| /' conftest.$ac_ext >&5
6850
6851 ( exit $ac_status )
6852 result=?
6853 fi
6854 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6855 fi
6856 fi
6857 rm -f conftest.val
6858     if test "$cross_compiling" = yes; then
6859   # Depending upon the size, compute the lo and hi bounds.
6860 cat >conftest.$ac_ext <<_ACEOF
6861 /* confdefs.h.  */
6862 _ACEOF
6863 cat confdefs.h >>conftest.$ac_ext
6864 cat >>conftest.$ac_ext <<_ACEOF
6865 /* end confdefs.h.  */
6866 #include <stddef.h>
6867 int
6868 main ()
6869 {
6870 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
6871 test_array [0] = 0
6872
6873   ;
6874   return 0;
6875 }
6876 _ACEOF
6877 rm -f conftest.$ac_objext
6878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6879   (eval $ac_compile) 2>conftest.er1
6880   ac_status=$?
6881   grep -v '^ *+' conftest.er1 >conftest.err
6882   rm -f conftest.er1
6883   cat conftest.err >&5
6884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885   (exit $ac_status); } &&
6886          { ac_try='test -z "$ac_c_werror_flag"
6887                          || test ! -s conftest.err'
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); }; } &&
6893          { ac_try='test -s conftest.$ac_objext'
6894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6895   (eval $ac_try) 2>&5
6896   ac_status=$?
6897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898   (exit $ac_status); }; }; then
6899   ac_lo=0 ac_mid=0
6900   while :; do
6901     cat >conftest.$ac_ext <<_ACEOF
6902 /* confdefs.h.  */
6903 _ACEOF
6904 cat confdefs.h >>conftest.$ac_ext
6905 cat >>conftest.$ac_ext <<_ACEOF
6906 /* end confdefs.h.  */
6907 #include <stddef.h>
6908 int
6909 main ()
6910 {
6911 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
6912 test_array [0] = 0
6913
6914   ;
6915   return 0;
6916 }
6917 _ACEOF
6918 rm -f conftest.$ac_objext
6919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6920   (eval $ac_compile) 2>conftest.er1
6921   ac_status=$?
6922   grep -v '^ *+' conftest.er1 >conftest.err
6923   rm -f conftest.er1
6924   cat conftest.err >&5
6925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926   (exit $ac_status); } &&
6927          { ac_try='test -z "$ac_c_werror_flag"
6928                          || test ! -s conftest.err'
6929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6930   (eval $ac_try) 2>&5
6931   ac_status=$?
6932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933   (exit $ac_status); }; } &&
6934          { ac_try='test -s conftest.$ac_objext'
6935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6936   (eval $ac_try) 2>&5
6937   ac_status=$?
6938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939   (exit $ac_status); }; }; then
6940   ac_hi=$ac_mid; break
6941 else
6942   echo "$as_me: failed program was:" >&5
6943 sed 's/^/| /' conftest.$ac_ext >&5
6944
6945 ac_lo=`expr $ac_mid + 1`
6946                     if test $ac_lo -le $ac_mid; then
6947                       ac_lo= ac_hi=
6948                       break
6949                     fi
6950                     ac_mid=`expr 2 '*' $ac_mid + 1`
6951 fi
6952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6953   done
6954 else
6955   echo "$as_me: failed program was:" >&5
6956 sed 's/^/| /' conftest.$ac_ext >&5
6957
6958 cat >conftest.$ac_ext <<_ACEOF
6959 /* confdefs.h.  */
6960 _ACEOF
6961 cat confdefs.h >>conftest.$ac_ext
6962 cat >>conftest.$ac_ext <<_ACEOF
6963 /* end confdefs.h.  */
6964 #include <stddef.h>
6965 int
6966 main ()
6967 {
6968 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
6969 test_array [0] = 0
6970
6971   ;
6972   return 0;
6973 }
6974 _ACEOF
6975 rm -f conftest.$ac_objext
6976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6977   (eval $ac_compile) 2>conftest.er1
6978   ac_status=$?
6979   grep -v '^ *+' conftest.er1 >conftest.err
6980   rm -f conftest.er1
6981   cat conftest.err >&5
6982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983   (exit $ac_status); } &&
6984          { ac_try='test -z "$ac_c_werror_flag"
6985                          || test ! -s conftest.err'
6986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6987   (eval $ac_try) 2>&5
6988   ac_status=$?
6989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990   (exit $ac_status); }; } &&
6991          { ac_try='test -s conftest.$ac_objext'
6992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6993   (eval $ac_try) 2>&5
6994   ac_status=$?
6995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996   (exit $ac_status); }; }; then
6997   ac_hi=-1 ac_mid=-1
6998   while :; do
6999     cat >conftest.$ac_ext <<_ACEOF
7000 /* confdefs.h.  */
7001 _ACEOF
7002 cat confdefs.h >>conftest.$ac_ext
7003 cat >>conftest.$ac_ext <<_ACEOF
7004 /* end confdefs.h.  */
7005 #include <stddef.h>
7006 int
7007 main ()
7008 {
7009 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
7010 test_array [0] = 0
7011
7012   ;
7013   return 0;
7014 }
7015 _ACEOF
7016 rm -f conftest.$ac_objext
7017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7018   (eval $ac_compile) 2>conftest.er1
7019   ac_status=$?
7020   grep -v '^ *+' conftest.er1 >conftest.err
7021   rm -f conftest.er1
7022   cat conftest.err >&5
7023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024   (exit $ac_status); } &&
7025          { ac_try='test -z "$ac_c_werror_flag"
7026                          || test ! -s conftest.err'
7027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7028   (eval $ac_try) 2>&5
7029   ac_status=$?
7030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031   (exit $ac_status); }; } &&
7032          { ac_try='test -s conftest.$ac_objext'
7033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7034   (eval $ac_try) 2>&5
7035   ac_status=$?
7036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037   (exit $ac_status); }; }; then
7038   ac_lo=$ac_mid; break
7039 else
7040   echo "$as_me: failed program was:" >&5
7041 sed 's/^/| /' conftest.$ac_ext >&5
7042
7043 ac_hi=`expr '(' $ac_mid ')' - 1`
7044                        if test $ac_mid -le $ac_hi; then
7045                          ac_lo= ac_hi=
7046                          break
7047                        fi
7048                        ac_mid=`expr 2 '*' $ac_mid`
7049 fi
7050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7051   done
7052 else
7053   echo "$as_me: failed program was:" >&5
7054 sed 's/^/| /' conftest.$ac_ext >&5
7055
7056 ac_lo= ac_hi=
7057 fi
7058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7059 fi
7060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7061 # Binary search between lo and hi bounds.
7062 while test "x$ac_lo" != "x$ac_hi"; do
7063   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7064   cat >conftest.$ac_ext <<_ACEOF
7065 /* confdefs.h.  */
7066 _ACEOF
7067 cat confdefs.h >>conftest.$ac_ext
7068 cat >>conftest.$ac_ext <<_ACEOF
7069 /* end confdefs.h.  */
7070 #include <stddef.h>
7071 int
7072 main ()
7073 {
7074 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7075 test_array [0] = 0
7076
7077   ;
7078   return 0;
7079 }
7080 _ACEOF
7081 rm -f conftest.$ac_objext
7082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7083   (eval $ac_compile) 2>conftest.er1
7084   ac_status=$?
7085   grep -v '^ *+' conftest.er1 >conftest.err
7086   rm -f conftest.er1
7087   cat conftest.err >&5
7088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089   (exit $ac_status); } &&
7090          { ac_try='test -z "$ac_c_werror_flag"
7091                          || test ! -s conftest.err'
7092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7093   (eval $ac_try) 2>&5
7094   ac_status=$?
7095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096   (exit $ac_status); }; } &&
7097          { ac_try='test -s conftest.$ac_objext'
7098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7099   (eval $ac_try) 2>&5
7100   ac_status=$?
7101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7102   (exit $ac_status); }; }; then
7103   ac_hi=$ac_mid
7104 else
7105   echo "$as_me: failed program was:" >&5
7106 sed 's/^/| /' conftest.$ac_ext >&5
7107
7108 ac_lo=`expr '(' $ac_mid ')' + 1`
7109 fi
7110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7111 done
7112 case $ac_lo in
7113 ?*) fits_in_uint=$ac_lo;;
7114 '') result=? ;;
7115 esac
7116 else
7117   if test "$cross_compiling" = yes; then
7118   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7119 See \`config.log' for more details." >&5
7120 echo "$as_me: error: cannot run test program while cross compiling
7121 See \`config.log' for more details." >&2;}
7122    { (exit 1); exit 1; }; }
7123 else
7124   cat >conftest.$ac_ext <<_ACEOF
7125 /* confdefs.h.  */
7126 _ACEOF
7127 cat confdefs.h >>conftest.$ac_ext
7128 cat >>conftest.$ac_ext <<_ACEOF
7129 /* end confdefs.h.  */
7130 #include <stddef.h>
7131 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
7132 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
7133 #include <stdio.h>
7134 #include <stdlib.h>
7135 int
7136 main ()
7137 {
7138
7139   FILE *f = fopen ("conftest.val", "w");
7140   if (! f)
7141     exit (1);
7142   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
7143     {
7144       long i = longval ();
7145       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7146         exit (1);
7147       fprintf (f, "%ld\n", i);
7148     }
7149   else
7150     {
7151       unsigned long i = ulongval ();
7152       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7153         exit (1);
7154       fprintf (f, "%lu\n", i);
7155     }
7156   exit (ferror (f) || fclose (f) != 0);
7157
7158   ;
7159   return 0;
7160 }
7161 _ACEOF
7162 rm -f conftest$ac_exeext
7163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7164   (eval $ac_link) 2>&5
7165   ac_status=$?
7166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7169   (eval $ac_try) 2>&5
7170   ac_status=$?
7171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172   (exit $ac_status); }; }; then
7173   fits_in_uint=`cat conftest.val`
7174 else
7175   echo "$as_me: program exited with status $ac_status" >&5
7176 echo "$as_me: failed program was:" >&5
7177 sed 's/^/| /' conftest.$ac_ext >&5
7178
7179 ( exit $ac_status )
7180 result=?
7181 fi
7182 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7183 fi
7184 fi
7185 rm -f conftest.val
7186     if test "$fits_in_uint" = 1; then
7187                   cat >conftest.$ac_ext <<_ACEOF
7188 /* confdefs.h.  */
7189 _ACEOF
7190 cat confdefs.h >>conftest.$ac_ext
7191 cat >>conftest.$ac_ext <<_ACEOF
7192 /* end confdefs.h.  */
7193 #include <stddef.h>
7194         extern size_t foo;
7195         extern unsigned long foo;
7196
7197 int
7198 main ()
7199 {
7200
7201   ;
7202   return 0;
7203 }
7204 _ACEOF
7205 rm -f conftest.$ac_objext
7206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7207   (eval $ac_compile) 2>conftest.er1
7208   ac_status=$?
7209   grep -v '^ *+' conftest.er1 >conftest.err
7210   rm -f conftest.er1
7211   cat conftest.err >&5
7212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7213   (exit $ac_status); } &&
7214          { ac_try='test -z "$ac_c_werror_flag"
7215                          || test ! -s conftest.err'
7216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7217   (eval $ac_try) 2>&5
7218   ac_status=$?
7219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220   (exit $ac_status); }; } &&
7221          { ac_try='test -s conftest.$ac_objext'
7222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7223   (eval $ac_try) 2>&5
7224   ac_status=$?
7225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226   (exit $ac_status); }; }; then
7227   fits_in_uint=0
7228 else
7229   echo "$as_me: failed program was:" >&5
7230 sed 's/^/| /' conftest.$ac_ext >&5
7231
7232 fi
7233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7234     fi
7235     if test -z "$result"; then
7236       if test "$fits_in_uint" = 1; then
7237         result="$res_hi$res_lo"U
7238       else
7239         result="$res_hi$res_lo"UL
7240       fi
7241     else
7242             result='~(size_t)0'
7243     fi
7244   fi
7245   echo "$as_me:$LINENO: result: $result" >&5
7246 echo "${ECHO_T}$result" >&6
7247   if test "$result" != yes; then
7248
7249 cat >>confdefs.h <<_ACEOF
7250 #define SIZE_MAX $result
7251 _ACEOF
7252
7253   fi
7254
7255
7256
7257
7258
7259 for ac_header in stdint.h
7260 do
7261 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7263   echo "$as_me:$LINENO: checking for $ac_header" >&5
7264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7265 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7266   echo $ECHO_N "(cached) $ECHO_C" >&6
7267 fi
7268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7269 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7270 else
7271   # Is the header compilable?
7272 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7273 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7274 cat >conftest.$ac_ext <<_ACEOF
7275 /* confdefs.h.  */
7276 _ACEOF
7277 cat confdefs.h >>conftest.$ac_ext
7278 cat >>conftest.$ac_ext <<_ACEOF
7279 /* end confdefs.h.  */
7280 $ac_includes_default
7281 #include <$ac_header>
7282 _ACEOF
7283 rm -f conftest.$ac_objext
7284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7285   (eval $ac_compile) 2>conftest.er1
7286   ac_status=$?
7287   grep -v '^ *+' conftest.er1 >conftest.err
7288   rm -f conftest.er1
7289   cat conftest.err >&5
7290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291   (exit $ac_status); } &&
7292          { ac_try='test -z "$ac_c_werror_flag"
7293                          || test ! -s conftest.err'
7294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7295   (eval $ac_try) 2>&5
7296   ac_status=$?
7297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298   (exit $ac_status); }; } &&
7299          { ac_try='test -s conftest.$ac_objext'
7300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7301   (eval $ac_try) 2>&5
7302   ac_status=$?
7303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304   (exit $ac_status); }; }; then
7305   ac_header_compiler=yes
7306 else
7307   echo "$as_me: failed program was:" >&5
7308 sed 's/^/| /' conftest.$ac_ext >&5
7309
7310 ac_header_compiler=no
7311 fi
7312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7313 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7314 echo "${ECHO_T}$ac_header_compiler" >&6
7315
7316 # Is the header present?
7317 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7318 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7319 cat >conftest.$ac_ext <<_ACEOF
7320 /* confdefs.h.  */
7321 _ACEOF
7322 cat confdefs.h >>conftest.$ac_ext
7323 cat >>conftest.$ac_ext <<_ACEOF
7324 /* end confdefs.h.  */
7325 #include <$ac_header>
7326 _ACEOF
7327 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7328   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7329   ac_status=$?
7330   grep -v '^ *+' conftest.er1 >conftest.err
7331   rm -f conftest.er1
7332   cat conftest.err >&5
7333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334   (exit $ac_status); } >/dev/null; then
7335   if test -s conftest.err; then
7336     ac_cpp_err=$ac_c_preproc_warn_flag
7337     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7338   else
7339     ac_cpp_err=
7340   fi
7341 else
7342   ac_cpp_err=yes
7343 fi
7344 if test -z "$ac_cpp_err"; then
7345   ac_header_preproc=yes
7346 else
7347   echo "$as_me: failed program was:" >&5
7348 sed 's/^/| /' conftest.$ac_ext >&5
7349
7350   ac_header_preproc=no
7351 fi
7352 rm -f conftest.err conftest.$ac_ext
7353 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7354 echo "${ECHO_T}$ac_header_preproc" >&6
7355
7356 # So?  What about this header?
7357 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7358   yes:no: )
7359     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7360 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7361     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7362 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7363     ac_header_preproc=yes
7364     ;;
7365   no:yes:* )
7366     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7367 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7368     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7369 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7370     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7371 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7372     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7373 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7374     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7375 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7376     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7377 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7378     (
7379       cat <<\_ASBOX
7380 ## ------------------------------------------ ##
7381 ## Report this to the AC_PACKAGE_NAME lists.  ##
7382 ## ------------------------------------------ ##
7383 _ASBOX
7384     ) |
7385       sed "s/^/$as_me: WARNING:     /" >&2
7386     ;;
7387 esac
7388 echo "$as_me:$LINENO: checking for $ac_header" >&5
7389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7391   echo $ECHO_N "(cached) $ECHO_C" >&6
7392 else
7393   eval "$as_ac_Header=\$ac_header_preproc"
7394 fi
7395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7396 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7397
7398 fi
7399 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7400   cat >>confdefs.h <<_ACEOF
7401 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7402 _ACEOF
7403
7404 fi
7405
7406 done
7407
7408
7409
7410     echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
7411 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
7412 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
7413   echo $ECHO_N "(cached) $ECHO_C" >&6
7414 else
7415   gt_save_CPPFLAGS="$CPPFLAGS"
7416      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
7417      gt_save_LIBS="$LIBS"
7418      LIBS="$LIBS -framework CoreFoundation"
7419      cat >conftest.$ac_ext <<_ACEOF
7420 /* confdefs.h.  */
7421 _ACEOF
7422 cat confdefs.h >>conftest.$ac_ext
7423 cat >>conftest.$ac_ext <<_ACEOF
7424 /* end confdefs.h.  */
7425 #include <CFPreferences.h>
7426 int
7427 main ()
7428 {
7429 CFPreferencesCopyAppValue(NULL, NULL)
7430   ;
7431   return 0;
7432 }
7433 _ACEOF
7434 rm -f conftest.$ac_objext conftest$ac_exeext
7435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7436   (eval $ac_link) 2>conftest.er1
7437   ac_status=$?
7438   grep -v '^ *+' conftest.er1 >conftest.err
7439   rm -f conftest.er1
7440   cat conftest.err >&5
7441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7442   (exit $ac_status); } &&
7443          { ac_try='test -z "$ac_c_werror_flag"
7444                          || test ! -s conftest.err'
7445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7446   (eval $ac_try) 2>&5
7447   ac_status=$?
7448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449   (exit $ac_status); }; } &&
7450          { ac_try='test -s conftest$ac_exeext'
7451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7452   (eval $ac_try) 2>&5
7453   ac_status=$?
7454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455   (exit $ac_status); }; }; then
7456   gt_cv_func_CFPreferencesCopyAppValue=yes
7457 else
7458   echo "$as_me: failed program was:" >&5
7459 sed 's/^/| /' conftest.$ac_ext >&5
7460
7461 gt_cv_func_CFPreferencesCopyAppValue=no
7462 fi
7463 rm -f conftest.err conftest.$ac_objext \
7464       conftest$ac_exeext conftest.$ac_ext
7465      CPPFLAGS="$gt_save_CPPFLAGS"
7466      LIBS="$gt_save_LIBS"
7467 fi
7468 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
7469 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
7470   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
7471
7472 cat >>confdefs.h <<\_ACEOF
7473 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
7474 _ACEOF
7475
7476   fi
7477     echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
7478 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
7479 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
7480   echo $ECHO_N "(cached) $ECHO_C" >&6
7481 else
7482   gt_save_CPPFLAGS="$CPPFLAGS"
7483      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
7484      gt_save_LIBS="$LIBS"
7485      LIBS="$LIBS -framework CoreFoundation"
7486      cat >conftest.$ac_ext <<_ACEOF
7487 /* confdefs.h.  */
7488 _ACEOF
7489 cat confdefs.h >>conftest.$ac_ext
7490 cat >>conftest.$ac_ext <<_ACEOF
7491 /* end confdefs.h.  */
7492 #include <CFLocale.h>
7493 int
7494 main ()
7495 {
7496 CFLocaleCopyCurrent();
7497   ;
7498   return 0;
7499 }
7500 _ACEOF
7501 rm -f conftest.$ac_objext conftest$ac_exeext
7502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7503   (eval $ac_link) 2>conftest.er1
7504   ac_status=$?
7505   grep -v '^ *+' conftest.er1 >conftest.err
7506   rm -f conftest.er1
7507   cat conftest.err >&5
7508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509   (exit $ac_status); } &&
7510          { ac_try='test -z "$ac_c_werror_flag"
7511                          || test ! -s conftest.err'
7512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7513   (eval $ac_try) 2>&5
7514   ac_status=$?
7515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516   (exit $ac_status); }; } &&
7517          { ac_try='test -s conftest$ac_exeext'
7518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7519   (eval $ac_try) 2>&5
7520   ac_status=$?
7521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522   (exit $ac_status); }; }; then
7523   gt_cv_func_CFLocaleCopyCurrent=yes
7524 else
7525   echo "$as_me: failed program was:" >&5
7526 sed 's/^/| /' conftest.$ac_ext >&5
7527
7528 gt_cv_func_CFLocaleCopyCurrent=no
7529 fi
7530 rm -f conftest.err conftest.$ac_objext \
7531       conftest$ac_exeext conftest.$ac_ext
7532      CPPFLAGS="$gt_save_CPPFLAGS"
7533      LIBS="$gt_save_LIBS"
7534 fi
7535 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
7536 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
7537   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
7538
7539 cat >>confdefs.h <<\_ACEOF
7540 #define HAVE_CFLOCALECOPYCURRENT 1
7541 _ACEOF
7542
7543   fi
7544   INTL_MACOSX_LIBS=
7545   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
7546     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
7547   fi
7548
7549
7550
7551       if test "X$prefix" = "XNONE"; then
7552     acl_final_prefix="$ac_default_prefix"
7553   else
7554     acl_final_prefix="$prefix"
7555   fi
7556   if test "X$exec_prefix" = "XNONE"; then
7557     acl_final_exec_prefix='${prefix}'
7558   else
7559     acl_final_exec_prefix="$exec_prefix"
7560   fi
7561   acl_save_prefix="$prefix"
7562   prefix="$acl_final_prefix"
7563   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7564   prefix="$acl_save_prefix"
7565
7566
7567 # Check whether --with-gnu-ld or --without-gnu-ld was given.
7568 if test "${with_gnu_ld+set}" = set; then
7569   withval="$with_gnu_ld"
7570   test "$withval" = no || with_gnu_ld=yes
7571 else
7572   with_gnu_ld=no
7573 fi;
7574 # Prepare PATH_SEPARATOR.
7575 # The user is always right.
7576 if test "${PATH_SEPARATOR+set}" != set; then
7577   echo "#! /bin/sh" >conf$$.sh
7578   echo  "exit 0"   >>conf$$.sh
7579   chmod +x conf$$.sh
7580   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7581     PATH_SEPARATOR=';'
7582   else
7583     PATH_SEPARATOR=:
7584   fi
7585   rm -f conf$$.sh
7586 fi
7587 ac_prog=ld
7588 if test "$GCC" = yes; then
7589   # Check if gcc -print-prog-name=ld gives a path.
7590   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
7591 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
7592   case $host in
7593   *-*-mingw*)
7594     # gcc leaves a trailing carriage return which upsets mingw
7595     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7596   *)
7597     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7598   esac
7599   case $ac_prog in
7600     # Accept absolute paths.
7601     [\\/]* | [A-Za-z]:[\\/]*)
7602       re_direlt='/[^/][^/]*/\.\./'
7603       # Canonicalize the path of ld
7604       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7605       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7606         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7607       done
7608       test -z "$LD" && LD="$ac_prog"
7609       ;;
7610   "")
7611     # If it fails, then pretend we aren't using GCC.
7612     ac_prog=ld
7613     ;;
7614   *)
7615     # If it is relative, then search for the first ld in PATH.
7616     with_gnu_ld=unknown
7617     ;;
7618   esac
7619 elif test "$with_gnu_ld" = yes; then
7620   echo "$as_me:$LINENO: checking for GNU ld" >&5
7621 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7622 else
7623   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7624 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7625 fi
7626 if test "${acl_cv_path_LD+set}" = set; then
7627   echo $ECHO_N "(cached) $ECHO_C" >&6
7628 else
7629   if test -z "$LD"; then
7630   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7631   for ac_dir in $PATH; do
7632     test -z "$ac_dir" && ac_dir=.
7633     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7634       acl_cv_path_LD="$ac_dir/$ac_prog"
7635       # Check to see if the program is GNU ld.  I'd rather use --version,
7636       # but apparently some GNU ld's only accept -v.
7637       # Break only if it was the GNU/non-GNU ld that we prefer.
7638       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7639       *GNU* | *'with BFD'*)
7640         test "$with_gnu_ld" != no && break ;;
7641       *)
7642         test "$with_gnu_ld" != yes && break ;;
7643       esac
7644     fi
7645   done
7646   IFS="$ac_save_ifs"
7647 else
7648   acl_cv_path_LD="$LD" # Let the user override the test with a path.
7649 fi
7650 fi
7651
7652 LD="$acl_cv_path_LD"
7653 if test -n "$LD"; then
7654   echo "$as_me:$LINENO: result: $LD" >&5
7655 echo "${ECHO_T}$LD" >&6
7656 else
7657   echo "$as_me:$LINENO: result: no" >&5
7658 echo "${ECHO_T}no" >&6
7659 fi
7660 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7661 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7662    { (exit 1); exit 1; }; }
7663 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7664 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
7665 if test "${acl_cv_prog_gnu_ld+set}" = set; then
7666   echo $ECHO_N "(cached) $ECHO_C" >&6
7667 else
7668   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7669 case `$LD -v 2>&1 </dev/null` in
7670 *GNU* | *'with BFD'*)
7671   acl_cv_prog_gnu_ld=yes ;;
7672 *)
7673   acl_cv_prog_gnu_ld=no ;;
7674 esac
7675 fi
7676 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
7677 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
7678 with_gnu_ld=$acl_cv_prog_gnu_ld
7679
7680
7681
7682
7683                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
7684 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
7685 if test "${acl_cv_rpath+set}" = set; then
7686   echo $ECHO_N "(cached) $ECHO_C" >&6
7687 else
7688
7689     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7690     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7691     . ./conftest.sh
7692     rm -f ./conftest.sh
7693     acl_cv_rpath=done
7694
7695 fi
7696 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
7697 echo "${ECHO_T}$acl_cv_rpath" >&6
7698   wl="$acl_cv_wl"
7699   libext="$acl_cv_libext"
7700   shlibext="$acl_cv_shlibext"
7701   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7702   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7703   hardcode_direct="$acl_cv_hardcode_direct"
7704   hardcode_minus_L="$acl_cv_hardcode_minus_L"
7705     # Check whether --enable-rpath or --disable-rpath was given.
7706 if test "${enable_rpath+set}" = set; then
7707   enableval="$enable_rpath"
7708   :
7709 else
7710   enable_rpath=yes
7711 fi;
7712
7713
7714
7715
7716
7717
7718
7719     use_additional=yes
7720
7721   acl_save_prefix="$prefix"
7722   prefix="$acl_final_prefix"
7723   acl_save_exec_prefix="$exec_prefix"
7724   exec_prefix="$acl_final_exec_prefix"
7725
7726     eval additional_includedir=\"$includedir\"
7727     eval additional_libdir=\"$libdir\"
7728
7729   exec_prefix="$acl_save_exec_prefix"
7730   prefix="$acl_save_prefix"
7731
7732
7733 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7734 if test "${with_libiconv_prefix+set}" = set; then
7735   withval="$with_libiconv_prefix"
7736
7737     if test "X$withval" = "Xno"; then
7738       use_additional=no
7739     else
7740       if test "X$withval" = "X"; then
7741
7742   acl_save_prefix="$prefix"
7743   prefix="$acl_final_prefix"
7744   acl_save_exec_prefix="$exec_prefix"
7745   exec_prefix="$acl_final_exec_prefix"
7746
7747           eval additional_includedir=\"$includedir\"
7748           eval additional_libdir=\"$libdir\"
7749
7750   exec_prefix="$acl_save_exec_prefix"
7751   prefix="$acl_save_prefix"
7752
7753       else
7754         additional_includedir="$withval/include"
7755         additional_libdir="$withval/lib"
7756       fi
7757     fi
7758
7759 fi;
7760       LIBICONV=
7761   LTLIBICONV=
7762   INCICONV=
7763   rpathdirs=
7764   ltrpathdirs=
7765   names_already_handled=
7766   names_next_round='iconv '
7767   while test -n "$names_next_round"; do
7768     names_this_round="$names_next_round"
7769     names_next_round=
7770     for name in $names_this_round; do
7771       already_handled=
7772       for n in $names_already_handled; do
7773         if test "$n" = "$name"; then
7774           already_handled=yes
7775           break
7776         fi
7777       done
7778       if test -z "$already_handled"; then
7779         names_already_handled="$names_already_handled $name"
7780                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7781         eval value=\"\$HAVE_LIB$uppername\"
7782         if test -n "$value"; then
7783           if test "$value" = yes; then
7784             eval value=\"\$LIB$uppername\"
7785             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7786             eval value=\"\$LTLIB$uppername\"
7787             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7788           else
7789                                     :
7790           fi
7791         else
7792                               found_dir=
7793           found_la=
7794           found_so=
7795           found_a=
7796           if test $use_additional = yes; then
7797             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7798               found_dir="$additional_libdir"
7799               found_so="$additional_libdir/lib$name.$shlibext"
7800               if test -f "$additional_libdir/lib$name.la"; then
7801                 found_la="$additional_libdir/lib$name.la"
7802               fi
7803             else
7804               if test -f "$additional_libdir/lib$name.$libext"; then
7805                 found_dir="$additional_libdir"
7806                 found_a="$additional_libdir/lib$name.$libext"
7807                 if test -f "$additional_libdir/lib$name.la"; then
7808                   found_la="$additional_libdir/lib$name.la"
7809                 fi
7810               fi
7811             fi
7812           fi
7813           if test "X$found_dir" = "X"; then
7814             for x in $LDFLAGS $LTLIBICONV; do
7815
7816   acl_save_prefix="$prefix"
7817   prefix="$acl_final_prefix"
7818   acl_save_exec_prefix="$exec_prefix"
7819   exec_prefix="$acl_final_exec_prefix"
7820   eval x=\"$x\"
7821   exec_prefix="$acl_save_exec_prefix"
7822   prefix="$acl_save_prefix"
7823
7824               case "$x" in
7825                 -L*)
7826                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7827                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7828                     found_dir="$dir"
7829                     found_so="$dir/lib$name.$shlibext"
7830                     if test -f "$dir/lib$name.la"; then
7831                       found_la="$dir/lib$name.la"
7832                     fi
7833                   else
7834                     if test -f "$dir/lib$name.$libext"; then
7835                       found_dir="$dir"
7836                       found_a="$dir/lib$name.$libext"
7837                       if test -f "$dir/lib$name.la"; then
7838                         found_la="$dir/lib$name.la"
7839                       fi
7840                     fi
7841                   fi
7842                   ;;
7843               esac
7844               if test "X$found_dir" != "X"; then
7845                 break
7846               fi
7847             done
7848           fi
7849           if test "X$found_dir" != "X"; then
7850                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7851             if test "X$found_so" != "X"; then
7852                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7853                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7854               else
7855                                                                                 haveit=
7856                 for x in $ltrpathdirs; do
7857                   if test "X$x" = "X$found_dir"; then
7858                     haveit=yes
7859                     break
7860                   fi
7861                 done
7862                 if test -z "$haveit"; then
7863                   ltrpathdirs="$ltrpathdirs $found_dir"
7864                 fi
7865                                 if test "$hardcode_direct" = yes; then
7866                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7867                 else
7868                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7869                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7870                                                             haveit=
7871                     for x in $rpathdirs; do
7872                       if test "X$x" = "X$found_dir"; then
7873                         haveit=yes
7874                         break
7875                       fi
7876                     done
7877                     if test -z "$haveit"; then
7878                       rpathdirs="$rpathdirs $found_dir"
7879                     fi
7880                   else
7881                                                                                 haveit=
7882                     for x in $LDFLAGS $LIBICONV; do
7883
7884   acl_save_prefix="$prefix"
7885   prefix="$acl_final_prefix"
7886   acl_save_exec_prefix="$exec_prefix"
7887   exec_prefix="$acl_final_exec_prefix"
7888   eval x=\"$x\"
7889   exec_prefix="$acl_save_exec_prefix"
7890   prefix="$acl_save_prefix"
7891
7892                       if test "X$x" = "X-L$found_dir"; then
7893                         haveit=yes
7894                         break
7895                       fi
7896                     done
7897                     if test -z "$haveit"; then
7898                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7899                     fi
7900                     if test "$hardcode_minus_L" != no; then
7901                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7902                     else
7903                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7904                     fi
7905                   fi
7906                 fi
7907               fi
7908             else
7909               if test "X$found_a" != "X"; then
7910                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7911               else
7912                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7913               fi
7914             fi
7915                         additional_includedir=
7916             case "$found_dir" in
7917               */lib | */lib/)
7918                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7919                 additional_includedir="$basedir/include"
7920                 ;;
7921             esac
7922             if test "X$additional_includedir" != "X"; then
7923                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7924                 haveit=
7925                 if test "X$additional_includedir" = "X/usr/local/include"; then
7926                   if test -n "$GCC"; then
7927                     case $host_os in
7928                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7929                     esac
7930                   fi
7931                 fi
7932                 if test -z "$haveit"; then
7933                   for x in $CPPFLAGS $INCICONV; do
7934
7935   acl_save_prefix="$prefix"
7936   prefix="$acl_final_prefix"
7937   acl_save_exec_prefix="$exec_prefix"
7938   exec_prefix="$acl_final_exec_prefix"
7939   eval x=\"$x\"
7940   exec_prefix="$acl_save_exec_prefix"
7941   prefix="$acl_save_prefix"
7942
7943                     if test "X$x" = "X-I$additional_includedir"; then
7944                       haveit=yes
7945                       break
7946                     fi
7947                   done
7948                   if test -z "$haveit"; then
7949                     if test -d "$additional_includedir"; then
7950                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7951                     fi
7952                   fi
7953                 fi
7954               fi
7955             fi
7956                         if test -n "$found_la"; then
7957                                                         save_libdir="$libdir"
7958               case "$found_la" in
7959                 */* | *\\*) . "$found_la" ;;
7960                 *) . "./$found_la" ;;
7961               esac
7962               libdir="$save_libdir"
7963                             for dep in $dependency_libs; do
7964                 case "$dep" in
7965                   -L*)
7966                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7967                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
7968                       haveit=
7969                       if test "X$additional_libdir" = "X/usr/local/lib"; then
7970                         if test -n "$GCC"; then
7971                           case $host_os in
7972                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7973                           esac
7974                         fi
7975                       fi
7976                       if test -z "$haveit"; then
7977                         haveit=
7978                         for x in $LDFLAGS $LIBICONV; do
7979
7980   acl_save_prefix="$prefix"
7981   prefix="$acl_final_prefix"
7982   acl_save_exec_prefix="$exec_prefix"
7983   exec_prefix="$acl_final_exec_prefix"
7984   eval x=\"$x\"
7985   exec_prefix="$acl_save_exec_prefix"
7986   prefix="$acl_save_prefix"
7987
7988                           if test "X$x" = "X-L$additional_libdir"; then
7989                             haveit=yes
7990                             break
7991                           fi
7992                         done
7993                         if test -z "$haveit"; then
7994                           if test -d "$additional_libdir"; then
7995                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7996                           fi
7997                         fi
7998                         haveit=
7999                         for x in $LDFLAGS $LTLIBICONV; do
8000
8001   acl_save_prefix="$prefix"
8002   prefix="$acl_final_prefix"
8003   acl_save_exec_prefix="$exec_prefix"
8004   exec_prefix="$acl_final_exec_prefix"
8005   eval x=\"$x\"
8006   exec_prefix="$acl_save_exec_prefix"
8007   prefix="$acl_save_prefix"
8008
8009                           if test "X$x" = "X-L$additional_libdir"; then
8010                             haveit=yes
8011                             break
8012                           fi
8013                         done
8014                         if test -z "$haveit"; then
8015                           if test -d "$additional_libdir"; then
8016                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8017                           fi
8018                         fi
8019                       fi
8020                     fi
8021                     ;;
8022                   -R*)
8023                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8024                     if test "$enable_rpath" != no; then
8025                                                                   haveit=
8026                       for x in $rpathdirs; do
8027                         if test "X$x" = "X$dir"; then
8028                           haveit=yes
8029                           break
8030                         fi
8031                       done
8032                       if test -z "$haveit"; then
8033                         rpathdirs="$rpathdirs $dir"
8034                       fi
8035                                                                   haveit=
8036                       for x in $ltrpathdirs; do
8037                         if test "X$x" = "X$dir"; then
8038                           haveit=yes
8039                           break
8040                         fi
8041                       done
8042                       if test -z "$haveit"; then
8043                         ltrpathdirs="$ltrpathdirs $dir"
8044                       fi
8045                     fi
8046                     ;;
8047                   -l*)
8048                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8049                     ;;
8050                   *.la)
8051                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8052                     ;;
8053                   *)
8054                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8055                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8056                     ;;
8057                 esac
8058               done
8059             fi
8060           else
8061                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8062             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8063           fi
8064         fi
8065       fi
8066     done
8067   done
8068   if test "X$rpathdirs" != "X"; then
8069     if test -n "$hardcode_libdir_separator"; then
8070                         alldirs=
8071       for found_dir in $rpathdirs; do
8072         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8073       done
8074             acl_save_libdir="$libdir"
8075       libdir="$alldirs"
8076       eval flag=\"$hardcode_libdir_flag_spec\"
8077       libdir="$acl_save_libdir"
8078       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8079     else
8080             for found_dir in $rpathdirs; do
8081         acl_save_libdir="$libdir"
8082         libdir="$found_dir"
8083         eval flag=\"$hardcode_libdir_flag_spec\"
8084         libdir="$acl_save_libdir"
8085         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8086       done
8087     fi
8088   fi
8089   if test "X$ltrpathdirs" != "X"; then
8090             for found_dir in $ltrpathdirs; do
8091       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8092     done
8093   fi
8094
8095
8096
8097
8098
8099
8100
8101
8102   echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8103 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
8104 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8105   echo $ECHO_N "(cached) $ECHO_C" >&6
8106 else
8107   cat >conftest.$ac_ext <<_ACEOF
8108 /* confdefs.h.  */
8109 _ACEOF
8110 cat confdefs.h >>conftest.$ac_ext
8111 cat >>conftest.$ac_ext <<_ACEOF
8112 /* end confdefs.h.  */
8113 $ac_includes_default
8114 int
8115 main ()
8116 {
8117 if ((ptrdiff_t *) 0)
8118   return 0;
8119 if (sizeof (ptrdiff_t))
8120   return 0;
8121   ;
8122   return 0;
8123 }
8124 _ACEOF
8125 rm -f conftest.$ac_objext
8126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8127   (eval $ac_compile) 2>conftest.er1
8128   ac_status=$?
8129   grep -v '^ *+' conftest.er1 >conftest.err
8130   rm -f conftest.er1
8131   cat conftest.err >&5
8132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133   (exit $ac_status); } &&
8134          { ac_try='test -z "$ac_c_werror_flag"
8135                          || test ! -s conftest.err'
8136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8137   (eval $ac_try) 2>&5
8138   ac_status=$?
8139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140   (exit $ac_status); }; } &&
8141          { ac_try='test -s conftest.$ac_objext'
8142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8143   (eval $ac_try) 2>&5
8144   ac_status=$?
8145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146   (exit $ac_status); }; }; then
8147   ac_cv_type_ptrdiff_t=yes
8148 else
8149   echo "$as_me: failed program was:" >&5
8150 sed 's/^/| /' conftest.$ac_ext >&5
8151
8152 ac_cv_type_ptrdiff_t=no
8153 fi
8154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8155 fi
8156 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
8157 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
8158 if test $ac_cv_type_ptrdiff_t = yes; then
8159   :
8160 else
8161
8162 cat >>confdefs.h <<\_ACEOF
8163 #define ptrdiff_t long
8164 _ACEOF
8165
8166
8167 fi
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8180 stdlib.h string.h unistd.h sys/param.h
8181 do
8182 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8184   echo "$as_me:$LINENO: checking for $ac_header" >&5
8185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8187   echo $ECHO_N "(cached) $ECHO_C" >&6
8188 fi
8189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8190 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8191 else
8192   # Is the header compilable?
8193 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8194 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8195 cat >conftest.$ac_ext <<_ACEOF
8196 /* confdefs.h.  */
8197 _ACEOF
8198 cat confdefs.h >>conftest.$ac_ext
8199 cat >>conftest.$ac_ext <<_ACEOF
8200 /* end confdefs.h.  */
8201 $ac_includes_default
8202 #include <$ac_header>
8203 _ACEOF
8204 rm -f conftest.$ac_objext
8205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8206   (eval $ac_compile) 2>conftest.er1
8207   ac_status=$?
8208   grep -v '^ *+' conftest.er1 >conftest.err
8209   rm -f conftest.er1
8210   cat conftest.err >&5
8211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212   (exit $ac_status); } &&
8213          { ac_try='test -z "$ac_c_werror_flag"
8214                          || test ! -s conftest.err'
8215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8216   (eval $ac_try) 2>&5
8217   ac_status=$?
8218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219   (exit $ac_status); }; } &&
8220          { ac_try='test -s conftest.$ac_objext'
8221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8222   (eval $ac_try) 2>&5
8223   ac_status=$?
8224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225   (exit $ac_status); }; }; then
8226   ac_header_compiler=yes
8227 else
8228   echo "$as_me: failed program was:" >&5
8229 sed 's/^/| /' conftest.$ac_ext >&5
8230
8231 ac_header_compiler=no
8232 fi
8233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8234 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8235 echo "${ECHO_T}$ac_header_compiler" >&6
8236
8237 # Is the header present?
8238 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8239 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8240 cat >conftest.$ac_ext <<_ACEOF
8241 /* confdefs.h.  */
8242 _ACEOF
8243 cat confdefs.h >>conftest.$ac_ext
8244 cat >>conftest.$ac_ext <<_ACEOF
8245 /* end confdefs.h.  */
8246 #include <$ac_header>
8247 _ACEOF
8248 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8249   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8250   ac_status=$?
8251   grep -v '^ *+' conftest.er1 >conftest.err
8252   rm -f conftest.er1
8253   cat conftest.err >&5
8254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255   (exit $ac_status); } >/dev/null; then
8256   if test -s conftest.err; then
8257     ac_cpp_err=$ac_c_preproc_warn_flag
8258     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8259   else
8260     ac_cpp_err=
8261   fi
8262 else
8263   ac_cpp_err=yes
8264 fi
8265 if test -z "$ac_cpp_err"; then
8266   ac_header_preproc=yes
8267 else
8268   echo "$as_me: failed program was:" >&5
8269 sed 's/^/| /' conftest.$ac_ext >&5
8270
8271   ac_header_preproc=no
8272 fi
8273 rm -f conftest.err conftest.$ac_ext
8274 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8275 echo "${ECHO_T}$ac_header_preproc" >&6
8276
8277 # So?  What about this header?
8278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8279   yes:no: )
8280     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8281 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8282     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8283 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8284     ac_header_preproc=yes
8285     ;;
8286   no:yes:* )
8287     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8288 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8289     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8290 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8291     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8292 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8293     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8294 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8295     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8296 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8297     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8298 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8299     (
8300       cat <<\_ASBOX
8301 ## ------------------------------------------ ##
8302 ## Report this to the AC_PACKAGE_NAME lists.  ##
8303 ## ------------------------------------------ ##
8304 _ASBOX
8305     ) |
8306       sed "s/^/$as_me: WARNING:     /" >&2
8307     ;;
8308 esac
8309 echo "$as_me:$LINENO: checking for $ac_header" >&5
8310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8311 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8312   echo $ECHO_N "(cached) $ECHO_C" >&6
8313 else
8314   eval "$as_ac_Header=\$ac_header_preproc"
8315 fi
8316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8318
8319 fi
8320 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8321   cat >>confdefs.h <<_ACEOF
8322 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8323 _ACEOF
8324
8325 fi
8326
8327 done
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8353 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8354 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8355 __fsetlocking
8356 do
8357 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8358 echo "$as_me:$LINENO: checking for $ac_func" >&5
8359 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8360 if eval "test \"\${$as_ac_var+set}\" = set"; then
8361   echo $ECHO_N "(cached) $ECHO_C" >&6
8362 else
8363   cat >conftest.$ac_ext <<_ACEOF
8364 /* confdefs.h.  */
8365 _ACEOF
8366 cat confdefs.h >>conftest.$ac_ext
8367 cat >>conftest.$ac_ext <<_ACEOF
8368 /* end confdefs.h.  */
8369 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8370    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8371 #define $ac_func innocuous_$ac_func
8372
8373 /* System header to define __stub macros and hopefully few prototypes,
8374     which can conflict with char $ac_func (); below.
8375     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8376     <limits.h> exists even on freestanding compilers.  */
8377
8378 #ifdef __STDC__
8379 # include <limits.h>
8380 #else
8381 # include <assert.h>
8382 #endif
8383
8384 #undef $ac_func
8385
8386 /* Override any gcc2 internal prototype to avoid an error.  */
8387 #ifdef __cplusplus
8388 extern "C"
8389 {
8390 #endif
8391 /* We use char because int might match the return type of a gcc2
8392    builtin and then its argument prototype would still apply.  */
8393 char $ac_func ();
8394 /* The GNU C library defines this for functions which it implements
8395     to always fail with ENOSYS.  Some functions are actually named
8396     something starting with __ and the normal name is an alias.  */
8397 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8398 choke me
8399 #else
8400 char (*f) () = $ac_func;
8401 #endif
8402 #ifdef __cplusplus
8403 }
8404 #endif
8405
8406 int
8407 main ()
8408 {
8409 return f != $ac_func;
8410   ;
8411   return 0;
8412 }
8413 _ACEOF
8414 rm -f conftest.$ac_objext conftest$ac_exeext
8415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8416   (eval $ac_link) 2>conftest.er1
8417   ac_status=$?
8418   grep -v '^ *+' conftest.er1 >conftest.err
8419   rm -f conftest.er1
8420   cat conftest.err >&5
8421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422   (exit $ac_status); } &&
8423          { ac_try='test -z "$ac_c_werror_flag"
8424                          || test ! -s conftest.err'
8425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8426   (eval $ac_try) 2>&5
8427   ac_status=$?
8428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429   (exit $ac_status); }; } &&
8430          { ac_try='test -s conftest$ac_exeext'
8431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8432   (eval $ac_try) 2>&5
8433   ac_status=$?
8434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435   (exit $ac_status); }; }; then
8436   eval "$as_ac_var=yes"
8437 else
8438   echo "$as_me: failed program was:" >&5
8439 sed 's/^/| /' conftest.$ac_ext >&5
8440
8441 eval "$as_ac_var=no"
8442 fi
8443 rm -f conftest.err conftest.$ac_objext \
8444       conftest$ac_exeext conftest.$ac_ext
8445 fi
8446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8447 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8448 if test `eval echo '${'$as_ac_var'}'` = yes; then
8449   cat >>confdefs.h <<_ACEOF
8450 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8451 _ACEOF
8452
8453 fi
8454 done
8455
8456
8457
8458   echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
8459 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
8460 if test "${ac_cv_have_decl__snprintf+set}" = set; then
8461   echo $ECHO_N "(cached) $ECHO_C" >&6
8462 else
8463   cat >conftest.$ac_ext <<_ACEOF
8464 /* confdefs.h.  */
8465 _ACEOF
8466 cat confdefs.h >>conftest.$ac_ext
8467 cat >>conftest.$ac_ext <<_ACEOF
8468 /* end confdefs.h.  */
8469 #include <stdio.h>
8470 int
8471 main ()
8472 {
8473
8474 #ifndef _snprintf
8475   char *p = (char *) _snprintf;
8476 #endif
8477
8478   ;
8479   return 0;
8480 }
8481 _ACEOF
8482 rm -f conftest.$ac_objext
8483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8484   (eval $ac_compile) 2>conftest.er1
8485   ac_status=$?
8486   grep -v '^ *+' conftest.er1 >conftest.err
8487   rm -f conftest.er1
8488   cat conftest.err >&5
8489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490   (exit $ac_status); } &&
8491          { ac_try='test -z "$ac_c_werror_flag"
8492                          || test ! -s conftest.err'
8493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8494   (eval $ac_try) 2>&5
8495   ac_status=$?
8496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497   (exit $ac_status); }; } &&
8498          { ac_try='test -s conftest.$ac_objext'
8499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8500   (eval $ac_try) 2>&5
8501   ac_status=$?
8502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503   (exit $ac_status); }; }; then
8504   ac_cv_have_decl__snprintf=yes
8505 else
8506   echo "$as_me: failed program was:" >&5
8507 sed 's/^/| /' conftest.$ac_ext >&5
8508
8509 ac_cv_have_decl__snprintf=no
8510 fi
8511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8512 fi
8513 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
8514 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
8515   if test $ac_cv_have_decl__snprintf = yes; then
8516     gt_value=1
8517   else
8518     gt_value=0
8519   fi
8520
8521 cat >>confdefs.h <<_ACEOF
8522 #define HAVE_DECL__SNPRINTF $gt_value
8523 _ACEOF
8524
8525
8526
8527   echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
8528 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
8529 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
8530   echo $ECHO_N "(cached) $ECHO_C" >&6
8531 else
8532   cat >conftest.$ac_ext <<_ACEOF
8533 /* confdefs.h.  */
8534 _ACEOF
8535 cat confdefs.h >>conftest.$ac_ext
8536 cat >>conftest.$ac_ext <<_ACEOF
8537 /* end confdefs.h.  */
8538 #include <stdio.h>
8539 int
8540 main ()
8541 {
8542
8543 #ifndef _snwprintf
8544   char *p = (char *) _snwprintf;
8545 #endif
8546
8547   ;
8548   return 0;
8549 }
8550 _ACEOF
8551 rm -f conftest.$ac_objext
8552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8553   (eval $ac_compile) 2>conftest.er1
8554   ac_status=$?
8555   grep -v '^ *+' conftest.er1 >conftest.err
8556   rm -f conftest.er1
8557   cat conftest.err >&5
8558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559   (exit $ac_status); } &&
8560          { ac_try='test -z "$ac_c_werror_flag"
8561                          || test ! -s conftest.err'
8562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8563   (eval $ac_try) 2>&5
8564   ac_status=$?
8565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566   (exit $ac_status); }; } &&
8567          { ac_try='test -s conftest.$ac_objext'
8568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8569   (eval $ac_try) 2>&5
8570   ac_status=$?
8571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572   (exit $ac_status); }; }; then
8573   ac_cv_have_decl__snwprintf=yes
8574 else
8575   echo "$as_me: failed program was:" >&5
8576 sed 's/^/| /' conftest.$ac_ext >&5
8577
8578 ac_cv_have_decl__snwprintf=no
8579 fi
8580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8581 fi
8582 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
8583 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
8584   if test $ac_cv_have_decl__snwprintf = yes; then
8585     gt_value=1
8586   else
8587     gt_value=0
8588   fi
8589
8590 cat >>confdefs.h <<_ACEOF
8591 #define HAVE_DECL__SNWPRINTF $gt_value
8592 _ACEOF
8593
8594
8595
8596
8597   echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
8598 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
8599 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
8600   echo $ECHO_N "(cached) $ECHO_C" >&6
8601 else
8602   cat >conftest.$ac_ext <<_ACEOF
8603 /* confdefs.h.  */
8604 _ACEOF
8605 cat confdefs.h >>conftest.$ac_ext
8606 cat >>conftest.$ac_ext <<_ACEOF
8607 /* end confdefs.h.  */
8608 #include <stdio.h>
8609 int
8610 main ()
8611 {
8612
8613 #ifndef feof_unlocked
8614   char *p = (char *) feof_unlocked;
8615 #endif
8616
8617   ;
8618   return 0;
8619 }
8620 _ACEOF
8621 rm -f conftest.$ac_objext
8622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8623   (eval $ac_compile) 2>conftest.er1
8624   ac_status=$?
8625   grep -v '^ *+' conftest.er1 >conftest.err
8626   rm -f conftest.er1
8627   cat conftest.err >&5
8628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629   (exit $ac_status); } &&
8630          { ac_try='test -z "$ac_c_werror_flag"
8631                          || test ! -s conftest.err'
8632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8633   (eval $ac_try) 2>&5
8634   ac_status=$?
8635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636   (exit $ac_status); }; } &&
8637          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
8643   ac_cv_have_decl_feof_unlocked=yes
8644 else
8645   echo "$as_me: failed program was:" >&5
8646 sed 's/^/| /' conftest.$ac_ext >&5
8647
8648 ac_cv_have_decl_feof_unlocked=no
8649 fi
8650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8651 fi
8652 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
8653 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
8654   if test $ac_cv_have_decl_feof_unlocked = yes; then
8655     gt_value=1
8656   else
8657     gt_value=0
8658   fi
8659
8660 cat >>confdefs.h <<_ACEOF
8661 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
8662 _ACEOF
8663
8664
8665
8666   echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
8667 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
8668 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
8669   echo $ECHO_N "(cached) $ECHO_C" >&6
8670 else
8671   cat >conftest.$ac_ext <<_ACEOF
8672 /* confdefs.h.  */
8673 _ACEOF
8674 cat confdefs.h >>conftest.$ac_ext
8675 cat >>conftest.$ac_ext <<_ACEOF
8676 /* end confdefs.h.  */
8677 #include <stdio.h>
8678 int
8679 main ()
8680 {
8681
8682 #ifndef fgets_unlocked
8683   char *p = (char *) fgets_unlocked;
8684 #endif
8685
8686   ;
8687   return 0;
8688 }
8689 _ACEOF
8690 rm -f conftest.$ac_objext
8691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8692   (eval $ac_compile) 2>conftest.er1
8693   ac_status=$?
8694   grep -v '^ *+' conftest.er1 >conftest.err
8695   rm -f conftest.er1
8696   cat conftest.err >&5
8697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698   (exit $ac_status); } &&
8699          { ac_try='test -z "$ac_c_werror_flag"
8700                          || test ! -s conftest.err'
8701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8702   (eval $ac_try) 2>&5
8703   ac_status=$?
8704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705   (exit $ac_status); }; } &&
8706          { ac_try='test -s conftest.$ac_objext'
8707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8708   (eval $ac_try) 2>&5
8709   ac_status=$?
8710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711   (exit $ac_status); }; }; then
8712   ac_cv_have_decl_fgets_unlocked=yes
8713 else
8714   echo "$as_me: failed program was:" >&5
8715 sed 's/^/| /' conftest.$ac_ext >&5
8716
8717 ac_cv_have_decl_fgets_unlocked=no
8718 fi
8719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8720 fi
8721 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
8722 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
8723   if test $ac_cv_have_decl_fgets_unlocked = yes; then
8724     gt_value=1
8725   else
8726     gt_value=0
8727   fi
8728
8729 cat >>confdefs.h <<_ACEOF
8730 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
8731 _ACEOF
8732
8733
8734
8735   echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
8736 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
8737 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
8738   echo $ECHO_N "(cached) $ECHO_C" >&6
8739 else
8740   cat >conftest.$ac_ext <<_ACEOF
8741 /* confdefs.h.  */
8742 _ACEOF
8743 cat confdefs.h >>conftest.$ac_ext
8744 cat >>conftest.$ac_ext <<_ACEOF
8745 /* end confdefs.h.  */
8746 #include <stdio.h>
8747 int
8748 main ()
8749 {
8750
8751 #ifndef getc_unlocked
8752   char *p = (char *) getc_unlocked;
8753 #endif
8754
8755   ;
8756   return 0;
8757 }
8758 _ACEOF
8759 rm -f conftest.$ac_objext
8760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8761   (eval $ac_compile) 2>conftest.er1
8762   ac_status=$?
8763   grep -v '^ *+' conftest.er1 >conftest.err
8764   rm -f conftest.er1
8765   cat conftest.err >&5
8766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767   (exit $ac_status); } &&
8768          { ac_try='test -z "$ac_c_werror_flag"
8769                          || test ! -s conftest.err'
8770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8771   (eval $ac_try) 2>&5
8772   ac_status=$?
8773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774   (exit $ac_status); }; } &&
8775          { ac_try='test -s conftest.$ac_objext'
8776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8777   (eval $ac_try) 2>&5
8778   ac_status=$?
8779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780   (exit $ac_status); }; }; then
8781   ac_cv_have_decl_getc_unlocked=yes
8782 else
8783   echo "$as_me: failed program was:" >&5
8784 sed 's/^/| /' conftest.$ac_ext >&5
8785
8786 ac_cv_have_decl_getc_unlocked=no
8787 fi
8788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8789 fi
8790 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
8791 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
8792   if test $ac_cv_have_decl_getc_unlocked = yes; then
8793     gt_value=1
8794   else
8795     gt_value=0
8796   fi
8797
8798 cat >>confdefs.h <<_ACEOF
8799 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8800 _ACEOF
8801
8802
8803
8804   case $gt_cv_func_printf_posix in
8805     *yes) HAVE_POSIX_PRINTF=1 ;;
8806     *) HAVE_POSIX_PRINTF=0 ;;
8807   esac
8808
8809   if test "$ac_cv_func_asprintf" = yes; then
8810     HAVE_ASPRINTF=1
8811   else
8812     HAVE_ASPRINTF=0
8813   fi
8814
8815   if test "$ac_cv_func_snprintf" = yes; then
8816     HAVE_SNPRINTF=1
8817   else
8818     HAVE_SNPRINTF=0
8819   fi
8820
8821   if test "$ac_cv_func_wprintf" = yes; then
8822     HAVE_WPRINTF=1
8823   else
8824     HAVE_WPRINTF=0
8825   fi
8826
8827
8828
8829
8830
8831
8832
8833           am_save_CPPFLAGS="$CPPFLAGS"
8834
8835   for element in $INCICONV; do
8836     haveit=
8837     for x in $CPPFLAGS; do
8838
8839   acl_save_prefix="$prefix"
8840   prefix="$acl_final_prefix"
8841   acl_save_exec_prefix="$exec_prefix"
8842   exec_prefix="$acl_final_exec_prefix"
8843   eval x=\"$x\"
8844   exec_prefix="$acl_save_exec_prefix"
8845   prefix="$acl_save_prefix"
8846
8847       if test "X$x" = "X$element"; then
8848         haveit=yes
8849         break
8850       fi
8851     done
8852     if test -z "$haveit"; then
8853       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8854     fi
8855   done
8856
8857
8858   echo "$as_me:$LINENO: checking for iconv" >&5
8859 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
8860 if test "${am_cv_func_iconv+set}" = set; then
8861   echo $ECHO_N "(cached) $ECHO_C" >&6
8862 else
8863
8864     am_cv_func_iconv="no, consider installing GNU libiconv"
8865     am_cv_lib_iconv=no
8866     cat >conftest.$ac_ext <<_ACEOF
8867 /* confdefs.h.  */
8868 _ACEOF
8869 cat confdefs.h >>conftest.$ac_ext
8870 cat >>conftest.$ac_ext <<_ACEOF
8871 /* end confdefs.h.  */
8872 #include <stdlib.h>
8873 #include <iconv.h>
8874 int
8875 main ()
8876 {
8877 iconv_t cd = iconv_open("","");
8878        iconv(cd,NULL,NULL,NULL,NULL);
8879        iconv_close(cd);
8880   ;
8881   return 0;
8882 }
8883 _ACEOF
8884 rm -f conftest.$ac_objext conftest$ac_exeext
8885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8886   (eval $ac_link) 2>conftest.er1
8887   ac_status=$?
8888   grep -v '^ *+' conftest.er1 >conftest.err
8889   rm -f conftest.er1
8890   cat conftest.err >&5
8891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892   (exit $ac_status); } &&
8893          { ac_try='test -z "$ac_c_werror_flag"
8894                          || test ! -s conftest.err'
8895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8896   (eval $ac_try) 2>&5
8897   ac_status=$?
8898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899   (exit $ac_status); }; } &&
8900          { ac_try='test -s conftest$ac_exeext'
8901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8902   (eval $ac_try) 2>&5
8903   ac_status=$?
8904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905   (exit $ac_status); }; }; then
8906   am_cv_func_iconv=yes
8907 else
8908   echo "$as_me: failed program was:" >&5
8909 sed 's/^/| /' conftest.$ac_ext >&5
8910
8911 fi
8912 rm -f conftest.err conftest.$ac_objext \
8913       conftest$ac_exeext conftest.$ac_ext
8914     if test "$am_cv_func_iconv" != yes; then
8915       am_save_LIBS="$LIBS"
8916       LIBS="$LIBS $LIBICONV"
8917       cat >conftest.$ac_ext <<_ACEOF
8918 /* confdefs.h.  */
8919 _ACEOF
8920 cat confdefs.h >>conftest.$ac_ext
8921 cat >>conftest.$ac_ext <<_ACEOF
8922 /* end confdefs.h.  */
8923 #include <stdlib.h>
8924 #include <iconv.h>
8925 int
8926 main ()
8927 {
8928 iconv_t cd = iconv_open("","");
8929          iconv(cd,NULL,NULL,NULL,NULL);
8930          iconv_close(cd);
8931   ;
8932   return 0;
8933 }
8934 _ACEOF
8935 rm -f conftest.$ac_objext conftest$ac_exeext
8936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8937   (eval $ac_link) 2>conftest.er1
8938   ac_status=$?
8939   grep -v '^ *+' conftest.er1 >conftest.err
8940   rm -f conftest.er1
8941   cat conftest.err >&5
8942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943   (exit $ac_status); } &&
8944          { ac_try='test -z "$ac_c_werror_flag"
8945                          || test ! -s conftest.err'
8946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8947   (eval $ac_try) 2>&5
8948   ac_status=$?
8949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950   (exit $ac_status); }; } &&
8951          { ac_try='test -s conftest$ac_exeext'
8952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8953   (eval $ac_try) 2>&5
8954   ac_status=$?
8955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956   (exit $ac_status); }; }; then
8957   am_cv_lib_iconv=yes
8958         am_cv_func_iconv=yes
8959 else
8960   echo "$as_me: failed program was:" >&5
8961 sed 's/^/| /' conftest.$ac_ext >&5
8962
8963 fi
8964 rm -f conftest.err conftest.$ac_objext \
8965       conftest$ac_exeext conftest.$ac_ext
8966       LIBS="$am_save_LIBS"
8967     fi
8968
8969 fi
8970 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8971 echo "${ECHO_T}$am_cv_func_iconv" >&6
8972   if test "$am_cv_func_iconv" = yes; then
8973
8974 cat >>confdefs.h <<\_ACEOF
8975 #define HAVE_ICONV 1
8976 _ACEOF
8977
8978   fi
8979   if test "$am_cv_lib_iconv" = yes; then
8980     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
8981 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
8982     echo "$as_me:$LINENO: result: $LIBICONV" >&5
8983 echo "${ECHO_T}$LIBICONV" >&6
8984   else
8985             CPPFLAGS="$am_save_CPPFLAGS"
8986     LIBICONV=
8987     LTLIBICONV=
8988   fi
8989
8990
8991
8992   if test "$am_cv_func_iconv" = yes; then
8993     echo "$as_me:$LINENO: checking for iconv declaration" >&5
8994 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8995     if test "${am_cv_proto_iconv+set}" = set; then
8996   echo $ECHO_N "(cached) $ECHO_C" >&6
8997 else
8998
8999       cat >conftest.$ac_ext <<_ACEOF
9000 /* confdefs.h.  */
9001 _ACEOF
9002 cat confdefs.h >>conftest.$ac_ext
9003 cat >>conftest.$ac_ext <<_ACEOF
9004 /* end confdefs.h.  */
9005
9006 #include <stdlib.h>
9007 #include <iconv.h>
9008 extern
9009 #ifdef __cplusplus
9010 "C"
9011 #endif
9012 #if defined(__STDC__) || defined(__cplusplus)
9013 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9014 #else
9015 size_t iconv();
9016 #endif
9017
9018 int
9019 main ()
9020 {
9021
9022   ;
9023   return 0;
9024 }
9025 _ACEOF
9026 rm -f conftest.$ac_objext
9027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9028   (eval $ac_compile) 2>conftest.er1
9029   ac_status=$?
9030   grep -v '^ *+' conftest.er1 >conftest.err
9031   rm -f conftest.er1
9032   cat conftest.err >&5
9033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034   (exit $ac_status); } &&
9035          { ac_try='test -z "$ac_c_werror_flag"
9036                          || test ! -s conftest.err'
9037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9038   (eval $ac_try) 2>&5
9039   ac_status=$?
9040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041   (exit $ac_status); }; } &&
9042          { ac_try='test -s conftest.$ac_objext'
9043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9044   (eval $ac_try) 2>&5
9045   ac_status=$?
9046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047   (exit $ac_status); }; }; then
9048   am_cv_proto_iconv_arg1=""
9049 else
9050   echo "$as_me: failed program was:" >&5
9051 sed 's/^/| /' conftest.$ac_ext >&5
9052
9053 am_cv_proto_iconv_arg1="const"
9054 fi
9055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9056       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);"
9057 fi
9058
9059     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9060     echo "$as_me:$LINENO: result: ${ac_t:-
9061          }$am_cv_proto_iconv" >&5
9062 echo "${ECHO_T}${ac_t:-
9063          }$am_cv_proto_iconv" >&6
9064
9065 cat >>confdefs.h <<_ACEOF
9066 #define ICONV_CONST $am_cv_proto_iconv_arg1
9067 _ACEOF
9068
9069   fi
9070
9071
9072   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9073 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
9074 if test "${am_cv_langinfo_codeset+set}" = set; then
9075   echo $ECHO_N "(cached) $ECHO_C" >&6
9076 else
9077   cat >conftest.$ac_ext <<_ACEOF
9078 /* confdefs.h.  */
9079 _ACEOF
9080 cat confdefs.h >>conftest.$ac_ext
9081 cat >>conftest.$ac_ext <<_ACEOF
9082 /* end confdefs.h.  */
9083 #include <langinfo.h>
9084 int
9085 main ()
9086 {
9087 char* cs = nl_langinfo(CODESET);
9088   ;
9089   return 0;
9090 }
9091 _ACEOF
9092 rm -f conftest.$ac_objext conftest$ac_exeext
9093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9094   (eval $ac_link) 2>conftest.er1
9095   ac_status=$?
9096   grep -v '^ *+' conftest.er1 >conftest.err
9097   rm -f conftest.er1
9098   cat conftest.err >&5
9099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9100   (exit $ac_status); } &&
9101          { ac_try='test -z "$ac_c_werror_flag"
9102                          || test ! -s conftest.err'
9103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9104   (eval $ac_try) 2>&5
9105   ac_status=$?
9106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107   (exit $ac_status); }; } &&
9108          { ac_try='test -s conftest$ac_exeext'
9109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9110   (eval $ac_try) 2>&5
9111   ac_status=$?
9112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113   (exit $ac_status); }; }; then
9114   am_cv_langinfo_codeset=yes
9115 else
9116   echo "$as_me: failed program was:" >&5
9117 sed 's/^/| /' conftest.$ac_ext >&5
9118
9119 am_cv_langinfo_codeset=no
9120 fi
9121 rm -f conftest.err conftest.$ac_objext \
9122       conftest$ac_exeext conftest.$ac_ext
9123
9124 fi
9125 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9126 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
9127   if test $am_cv_langinfo_codeset = yes; then
9128
9129 cat >>confdefs.h <<\_ACEOF
9130 #define HAVE_LANGINFO_CODESET 1
9131 _ACEOF
9132
9133   fi
9134
9135   if test $ac_cv_header_locale_h = yes; then
9136
9137   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9138 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
9139 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
9140   echo $ECHO_N "(cached) $ECHO_C" >&6
9141 else
9142   cat >conftest.$ac_ext <<_ACEOF
9143 /* confdefs.h.  */
9144 _ACEOF
9145 cat confdefs.h >>conftest.$ac_ext
9146 cat >>conftest.$ac_ext <<_ACEOF
9147 /* end confdefs.h.  */
9148 #include <locale.h>
9149 int
9150 main ()
9151 {
9152 return LC_MESSAGES
9153   ;
9154   return 0;
9155 }
9156 _ACEOF
9157 rm -f conftest.$ac_objext conftest$ac_exeext
9158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9159   (eval $ac_link) 2>conftest.er1
9160   ac_status=$?
9161   grep -v '^ *+' conftest.er1 >conftest.err
9162   rm -f conftest.er1
9163   cat conftest.err >&5
9164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165   (exit $ac_status); } &&
9166          { ac_try='test -z "$ac_c_werror_flag"
9167                          || test ! -s conftest.err'
9168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9169   (eval $ac_try) 2>&5
9170   ac_status=$?
9171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172   (exit $ac_status); }; } &&
9173          { ac_try='test -s conftest$ac_exeext'
9174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9175   (eval $ac_try) 2>&5
9176   ac_status=$?
9177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178   (exit $ac_status); }; }; then
9179   gt_cv_val_LC_MESSAGES=yes
9180 else
9181   echo "$as_me: failed program was:" >&5
9182 sed 's/^/| /' conftest.$ac_ext >&5
9183
9184 gt_cv_val_LC_MESSAGES=no
9185 fi
9186 rm -f conftest.err conftest.$ac_objext \
9187       conftest$ac_exeext conftest.$ac_ext
9188 fi
9189 echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
9190 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6
9191   if test $gt_cv_val_LC_MESSAGES = yes; then
9192
9193 cat >>confdefs.h <<\_ACEOF
9194 #define HAVE_LC_MESSAGES 1
9195 _ACEOF
9196
9197   fi
9198
9199   fi
9200
9201   if test -n "$INTL_MACOSX_LIBS"; then
9202     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
9203   fi
9204
9205                       for ac_prog in bison
9206 do
9207   # Extract the first word of "$ac_prog", so it can be a program name with args.
9208 set dummy $ac_prog; ac_word=$2
9209 echo "$as_me:$LINENO: checking for $ac_word" >&5
9210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9211 if test "${ac_cv_prog_INTLBISON+set}" = set; then
9212   echo $ECHO_N "(cached) $ECHO_C" >&6
9213 else
9214   if test -n "$INTLBISON"; then
9215   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9216 else
9217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9218 for as_dir in $PATH
9219 do
9220   IFS=$as_save_IFS
9221   test -z "$as_dir" && as_dir=.
9222   for ac_exec_ext in '' $ac_executable_extensions; do
9223   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9224     ac_cv_prog_INTLBISON="$ac_prog"
9225     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9226     break 2
9227   fi
9228 done
9229 done
9230
9231 fi
9232 fi
9233 INTLBISON=$ac_cv_prog_INTLBISON
9234 if test -n "$INTLBISON"; then
9235   echo "$as_me:$LINENO: result: $INTLBISON" >&5
9236 echo "${ECHO_T}$INTLBISON" >&6
9237 else
9238   echo "$as_me:$LINENO: result: no" >&5
9239 echo "${ECHO_T}no" >&6
9240 fi
9241
9242   test -n "$INTLBISON" && break
9243 done
9244
9245   if test -z "$INTLBISON"; then
9246     ac_verc_fail=yes
9247   else
9248         echo "$as_me:$LINENO: checking version of bison" >&5
9249 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
9250     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9251     case $ac_prog_version in
9252       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9253       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9254          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9255       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9256     esac
9257     echo "$as_me:$LINENO: result: $ac_prog_version" >&5
9258 echo "${ECHO_T}$ac_prog_version" >&6
9259   fi
9260   if test $ac_verc_fail = yes; then
9261     INTLBISON=:
9262   fi
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279     echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
9280 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
9281 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
9282   echo $ECHO_N "(cached) $ECHO_C" >&6
9283 else
9284   gt_save_CPPFLAGS="$CPPFLAGS"
9285      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
9286      gt_save_LIBS="$LIBS"
9287      LIBS="$LIBS -framework CoreFoundation"
9288      cat >conftest.$ac_ext <<_ACEOF
9289 /* confdefs.h.  */
9290 _ACEOF
9291 cat confdefs.h >>conftest.$ac_ext
9292 cat >>conftest.$ac_ext <<_ACEOF
9293 /* end confdefs.h.  */
9294 #include <CFPreferences.h>
9295 int
9296 main ()
9297 {
9298 CFPreferencesCopyAppValue(NULL, NULL)
9299   ;
9300   return 0;
9301 }
9302 _ACEOF
9303 rm -f conftest.$ac_objext conftest$ac_exeext
9304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9305   (eval $ac_link) 2>conftest.er1
9306   ac_status=$?
9307   grep -v '^ *+' conftest.er1 >conftest.err
9308   rm -f conftest.er1
9309   cat conftest.err >&5
9310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311   (exit $ac_status); } &&
9312          { ac_try='test -z "$ac_c_werror_flag"
9313                          || test ! -s conftest.err'
9314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9315   (eval $ac_try) 2>&5
9316   ac_status=$?
9317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318   (exit $ac_status); }; } &&
9319          { ac_try='test -s conftest$ac_exeext'
9320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9321   (eval $ac_try) 2>&5
9322   ac_status=$?
9323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324   (exit $ac_status); }; }; then
9325   gt_cv_func_CFPreferencesCopyAppValue=yes
9326 else
9327   echo "$as_me: failed program was:" >&5
9328 sed 's/^/| /' conftest.$ac_ext >&5
9329
9330 gt_cv_func_CFPreferencesCopyAppValue=no
9331 fi
9332 rm -f conftest.err conftest.$ac_objext \
9333       conftest$ac_exeext conftest.$ac_ext
9334      CPPFLAGS="$gt_save_CPPFLAGS"
9335      LIBS="$gt_save_LIBS"
9336 fi
9337 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
9338 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
9339   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
9340
9341 cat >>confdefs.h <<\_ACEOF
9342 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
9343 _ACEOF
9344
9345   fi
9346     echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
9347 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
9348 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
9349   echo $ECHO_N "(cached) $ECHO_C" >&6
9350 else
9351   gt_save_CPPFLAGS="$CPPFLAGS"
9352      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
9353      gt_save_LIBS="$LIBS"
9354      LIBS="$LIBS -framework CoreFoundation"
9355      cat >conftest.$ac_ext <<_ACEOF
9356 /* confdefs.h.  */
9357 _ACEOF
9358 cat confdefs.h >>conftest.$ac_ext
9359 cat >>conftest.$ac_ext <<_ACEOF
9360 /* end confdefs.h.  */
9361 #include <CFLocale.h>
9362 int
9363 main ()
9364 {
9365 CFLocaleCopyCurrent();
9366   ;
9367   return 0;
9368 }
9369 _ACEOF
9370 rm -f conftest.$ac_objext conftest$ac_exeext
9371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9372   (eval $ac_link) 2>conftest.er1
9373   ac_status=$?
9374   grep -v '^ *+' conftest.er1 >conftest.err
9375   rm -f conftest.er1
9376   cat conftest.err >&5
9377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378   (exit $ac_status); } &&
9379          { ac_try='test -z "$ac_c_werror_flag"
9380                          || test ! -s conftest.err'
9381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9382   (eval $ac_try) 2>&5
9383   ac_status=$?
9384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9385   (exit $ac_status); }; } &&
9386          { ac_try='test -s conftest$ac_exeext'
9387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9388   (eval $ac_try) 2>&5
9389   ac_status=$?
9390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391   (exit $ac_status); }; }; then
9392   gt_cv_func_CFLocaleCopyCurrent=yes
9393 else
9394   echo "$as_me: failed program was:" >&5
9395 sed 's/^/| /' conftest.$ac_ext >&5
9396
9397 gt_cv_func_CFLocaleCopyCurrent=no
9398 fi
9399 rm -f conftest.err conftest.$ac_objext \
9400       conftest$ac_exeext conftest.$ac_ext
9401      CPPFLAGS="$gt_save_CPPFLAGS"
9402      LIBS="$gt_save_LIBS"
9403 fi
9404 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
9405 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
9406   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
9407
9408 cat >>confdefs.h <<\_ACEOF
9409 #define HAVE_CFLOCALECOPYCURRENT 1
9410 _ACEOF
9411
9412   fi
9413   INTL_MACOSX_LIBS=
9414   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
9415     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
9416   fi
9417
9418
9419
9420
9421   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9422 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9423     # Check whether --enable-nls or --disable-nls was given.
9424 if test "${enable_nls+set}" = set; then
9425   enableval="$enable_nls"
9426   USE_NLS=$enableval
9427 else
9428   USE_NLS=yes
9429 fi;
9430   echo "$as_me:$LINENO: result: $USE_NLS" >&5
9431 echo "${ECHO_T}$USE_NLS" >&6
9432
9433
9434
9435
9436     BUILD_INCLUDED_LIBINTL=no
9437     USE_INCLUDED_LIBINTL=no
9438
9439   LIBINTL=
9440   LTLIBINTL=
9441   POSUB=
9442
9443     if test "$USE_NLS" = "yes"; then
9444     gt_use_preinstalled_gnugettext=no
9445
9446       echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
9447 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
9448
9449 # Check whether --with-included-gettext or --without-included-gettext was given.
9450 if test "${with_included_gettext+set}" = set; then
9451   withval="$with_included_gettext"
9452   nls_cv_force_use_gnu_gettext=$withval
9453 else
9454   nls_cv_force_use_gnu_gettext=no
9455 fi;
9456       echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
9457 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
9458
9459       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
9460       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
9461
9462
9463
9464
9465
9466
9467         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
9468 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
9469 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
9470   echo $ECHO_N "(cached) $ECHO_C" >&6
9471 else
9472   cat >conftest.$ac_ext <<_ACEOF
9473 /* confdefs.h.  */
9474 _ACEOF
9475 cat confdefs.h >>conftest.$ac_ext
9476 cat >>conftest.$ac_ext <<_ACEOF
9477 /* end confdefs.h.  */
9478 #include <libintl.h>
9479 extern int _nl_msg_cat_cntr;
9480 extern int *_nl_domain_bindings;
9481 int
9482 main ()
9483 {
9484 bindtextdomain ("", "");
9485 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
9486   ;
9487   return 0;
9488 }
9489 _ACEOF
9490 rm -f conftest.$ac_objext conftest$ac_exeext
9491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9492   (eval $ac_link) 2>conftest.er1
9493   ac_status=$?
9494   grep -v '^ *+' conftest.er1 >conftest.err
9495   rm -f conftest.er1
9496   cat conftest.err >&5
9497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498   (exit $ac_status); } &&
9499          { ac_try='test -z "$ac_c_werror_flag"
9500                          || test ! -s conftest.err'
9501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9502   (eval $ac_try) 2>&5
9503   ac_status=$?
9504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505   (exit $ac_status); }; } &&
9506          { ac_try='test -s conftest$ac_exeext'
9507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9508   (eval $ac_try) 2>&5
9509   ac_status=$?
9510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511   (exit $ac_status); }; }; then
9512   gt_cv_func_gnugettext1_libc=yes
9513 else
9514   echo "$as_me: failed program was:" >&5
9515 sed 's/^/| /' conftest.$ac_ext >&5
9516
9517 gt_cv_func_gnugettext1_libc=no
9518 fi
9519 rm -f conftest.err conftest.$ac_objext \
9520       conftest$ac_exeext conftest.$ac_ext
9521 fi
9522 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
9523 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
9524
9525         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
9526
9527
9528
9529     use_additional=yes
9530
9531   acl_save_prefix="$prefix"
9532   prefix="$acl_final_prefix"
9533   acl_save_exec_prefix="$exec_prefix"
9534   exec_prefix="$acl_final_exec_prefix"
9535
9536     eval additional_includedir=\"$includedir\"
9537     eval additional_libdir=\"$libdir\"
9538
9539   exec_prefix="$acl_save_exec_prefix"
9540   prefix="$acl_save_prefix"
9541
9542
9543 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
9544 if test "${with_libintl_prefix+set}" = set; then
9545   withval="$with_libintl_prefix"
9546
9547     if test "X$withval" = "Xno"; then
9548       use_additional=no
9549     else
9550       if test "X$withval" = "X"; then
9551
9552   acl_save_prefix="$prefix"
9553   prefix="$acl_final_prefix"
9554   acl_save_exec_prefix="$exec_prefix"
9555   exec_prefix="$acl_final_exec_prefix"
9556
9557           eval additional_includedir=\"$includedir\"
9558           eval additional_libdir=\"$libdir\"
9559
9560   exec_prefix="$acl_save_exec_prefix"
9561   prefix="$acl_save_prefix"
9562
9563       else
9564         additional_includedir="$withval/include"
9565         additional_libdir="$withval/lib"
9566       fi
9567     fi
9568
9569 fi;
9570       LIBINTL=
9571   LTLIBINTL=
9572   INCINTL=
9573   rpathdirs=
9574   ltrpathdirs=
9575   names_already_handled=
9576   names_next_round='intl '
9577   while test -n "$names_next_round"; do
9578     names_this_round="$names_next_round"
9579     names_next_round=
9580     for name in $names_this_round; do
9581       already_handled=
9582       for n in $names_already_handled; do
9583         if test "$n" = "$name"; then
9584           already_handled=yes
9585           break
9586         fi
9587       done
9588       if test -z "$already_handled"; then
9589         names_already_handled="$names_already_handled $name"
9590                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9591         eval value=\"\$HAVE_LIB$uppername\"
9592         if test -n "$value"; then
9593           if test "$value" = yes; then
9594             eval value=\"\$LIB$uppername\"
9595             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9596             eval value=\"\$LTLIB$uppername\"
9597             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9598           else
9599                                     :
9600           fi
9601         else
9602                               found_dir=
9603           found_la=
9604           found_so=
9605           found_a=
9606           if test $use_additional = yes; then
9607             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9608               found_dir="$additional_libdir"
9609               found_so="$additional_libdir/lib$name.$shlibext"
9610               if test -f "$additional_libdir/lib$name.la"; then
9611                 found_la="$additional_libdir/lib$name.la"
9612               fi
9613             else
9614               if test -f "$additional_libdir/lib$name.$libext"; then
9615                 found_dir="$additional_libdir"
9616                 found_a="$additional_libdir/lib$name.$libext"
9617                 if test -f "$additional_libdir/lib$name.la"; then
9618                   found_la="$additional_libdir/lib$name.la"
9619                 fi
9620               fi
9621             fi
9622           fi
9623           if test "X$found_dir" = "X"; then
9624             for x in $LDFLAGS $LTLIBINTL; do
9625
9626   acl_save_prefix="$prefix"
9627   prefix="$acl_final_prefix"
9628   acl_save_exec_prefix="$exec_prefix"
9629   exec_prefix="$acl_final_exec_prefix"
9630   eval x=\"$x\"
9631   exec_prefix="$acl_save_exec_prefix"
9632   prefix="$acl_save_prefix"
9633
9634               case "$x" in
9635                 -L*)
9636                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9637                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9638                     found_dir="$dir"
9639                     found_so="$dir/lib$name.$shlibext"
9640                     if test -f "$dir/lib$name.la"; then
9641                       found_la="$dir/lib$name.la"
9642                     fi
9643                   else
9644                     if test -f "$dir/lib$name.$libext"; then
9645                       found_dir="$dir"
9646                       found_a="$dir/lib$name.$libext"
9647                       if test -f "$dir/lib$name.la"; then
9648                         found_la="$dir/lib$name.la"
9649                       fi
9650                     fi
9651                   fi
9652                   ;;
9653               esac
9654               if test "X$found_dir" != "X"; then
9655                 break
9656               fi
9657             done
9658           fi
9659           if test "X$found_dir" != "X"; then
9660                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9661             if test "X$found_so" != "X"; then
9662                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9663                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9664               else
9665                                                                                 haveit=
9666                 for x in $ltrpathdirs; do
9667                   if test "X$x" = "X$found_dir"; then
9668                     haveit=yes
9669                     break
9670                   fi
9671                 done
9672                 if test -z "$haveit"; then
9673                   ltrpathdirs="$ltrpathdirs $found_dir"
9674                 fi
9675                                 if test "$hardcode_direct" = yes; then
9676                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9677                 else
9678                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9679                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9680                                                             haveit=
9681                     for x in $rpathdirs; do
9682                       if test "X$x" = "X$found_dir"; then
9683                         haveit=yes
9684                         break
9685                       fi
9686                     done
9687                     if test -z "$haveit"; then
9688                       rpathdirs="$rpathdirs $found_dir"
9689                     fi
9690                   else
9691                                                                                 haveit=
9692                     for x in $LDFLAGS $LIBINTL; do
9693
9694   acl_save_prefix="$prefix"
9695   prefix="$acl_final_prefix"
9696   acl_save_exec_prefix="$exec_prefix"
9697   exec_prefix="$acl_final_exec_prefix"
9698   eval x=\"$x\"
9699   exec_prefix="$acl_save_exec_prefix"
9700   prefix="$acl_save_prefix"
9701
9702                       if test "X$x" = "X-L$found_dir"; then
9703                         haveit=yes
9704                         break
9705                       fi
9706                     done
9707                     if test -z "$haveit"; then
9708                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9709                     fi
9710                     if test "$hardcode_minus_L" != no; then
9711                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9712                     else
9713                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9714                     fi
9715                   fi
9716                 fi
9717               fi
9718             else
9719               if test "X$found_a" != "X"; then
9720                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9721               else
9722                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9723               fi
9724             fi
9725                         additional_includedir=
9726             case "$found_dir" in
9727               */lib | */lib/)
9728                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9729                 additional_includedir="$basedir/include"
9730                 ;;
9731             esac
9732             if test "X$additional_includedir" != "X"; then
9733                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9734                 haveit=
9735                 if test "X$additional_includedir" = "X/usr/local/include"; then
9736                   if test -n "$GCC"; then
9737                     case $host_os in
9738                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9739                     esac
9740                   fi
9741                 fi
9742                 if test -z "$haveit"; then
9743                   for x in $CPPFLAGS $INCINTL; do
9744
9745   acl_save_prefix="$prefix"
9746   prefix="$acl_final_prefix"
9747   acl_save_exec_prefix="$exec_prefix"
9748   exec_prefix="$acl_final_exec_prefix"
9749   eval x=\"$x\"
9750   exec_prefix="$acl_save_exec_prefix"
9751   prefix="$acl_save_prefix"
9752
9753                     if test "X$x" = "X-I$additional_includedir"; then
9754                       haveit=yes
9755                       break
9756                     fi
9757                   done
9758                   if test -z "$haveit"; then
9759                     if test -d "$additional_includedir"; then
9760                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9761                     fi
9762                   fi
9763                 fi
9764               fi
9765             fi
9766                         if test -n "$found_la"; then
9767                                                         save_libdir="$libdir"
9768               case "$found_la" in
9769                 */* | *\\*) . "$found_la" ;;
9770                 *) . "./$found_la" ;;
9771               esac
9772               libdir="$save_libdir"
9773                             for dep in $dependency_libs; do
9774                 case "$dep" in
9775                   -L*)
9776                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9777                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9778                       haveit=
9779                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9780                         if test -n "$GCC"; then
9781                           case $host_os in
9782                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9783                           esac
9784                         fi
9785                       fi
9786                       if test -z "$haveit"; then
9787                         haveit=
9788                         for x in $LDFLAGS $LIBINTL; do
9789
9790   acl_save_prefix="$prefix"
9791   prefix="$acl_final_prefix"
9792   acl_save_exec_prefix="$exec_prefix"
9793   exec_prefix="$acl_final_exec_prefix"
9794   eval x=\"$x\"
9795   exec_prefix="$acl_save_exec_prefix"
9796   prefix="$acl_save_prefix"
9797
9798                           if test "X$x" = "X-L$additional_libdir"; then
9799                             haveit=yes
9800                             break
9801                           fi
9802                         done
9803                         if test -z "$haveit"; then
9804                           if test -d "$additional_libdir"; then
9805                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9806                           fi
9807                         fi
9808                         haveit=
9809                         for x in $LDFLAGS $LTLIBINTL; do
9810
9811   acl_save_prefix="$prefix"
9812   prefix="$acl_final_prefix"
9813   acl_save_exec_prefix="$exec_prefix"
9814   exec_prefix="$acl_final_exec_prefix"
9815   eval x=\"$x\"
9816   exec_prefix="$acl_save_exec_prefix"
9817   prefix="$acl_save_prefix"
9818
9819                           if test "X$x" = "X-L$additional_libdir"; then
9820                             haveit=yes
9821                             break
9822                           fi
9823                         done
9824                         if test -z "$haveit"; then
9825                           if test -d "$additional_libdir"; then
9826                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9827                           fi
9828                         fi
9829                       fi
9830                     fi
9831                     ;;
9832                   -R*)
9833                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9834                     if test "$enable_rpath" != no; then
9835                                                                   haveit=
9836                       for x in $rpathdirs; do
9837                         if test "X$x" = "X$dir"; then
9838                           haveit=yes
9839                           break
9840                         fi
9841                       done
9842                       if test -z "$haveit"; then
9843                         rpathdirs="$rpathdirs $dir"
9844                       fi
9845                                                                   haveit=
9846                       for x in $ltrpathdirs; do
9847                         if test "X$x" = "X$dir"; then
9848                           haveit=yes
9849                           break
9850                         fi
9851                       done
9852                       if test -z "$haveit"; then
9853                         ltrpathdirs="$ltrpathdirs $dir"
9854                       fi
9855                     fi
9856                     ;;
9857                   -l*)
9858                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9859                     ;;
9860                   *.la)
9861                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9862                     ;;
9863                   *)
9864                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9865                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9866                     ;;
9867                 esac
9868               done
9869             fi
9870           else
9871                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9872             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9873           fi
9874         fi
9875       fi
9876     done
9877   done
9878   if test "X$rpathdirs" != "X"; then
9879     if test -n "$hardcode_libdir_separator"; then
9880                         alldirs=
9881       for found_dir in $rpathdirs; do
9882         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9883       done
9884             acl_save_libdir="$libdir"
9885       libdir="$alldirs"
9886       eval flag=\"$hardcode_libdir_flag_spec\"
9887       libdir="$acl_save_libdir"
9888       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9889     else
9890             for found_dir in $rpathdirs; do
9891         acl_save_libdir="$libdir"
9892         libdir="$found_dir"
9893         eval flag=\"$hardcode_libdir_flag_spec\"
9894         libdir="$acl_save_libdir"
9895         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9896       done
9897     fi
9898   fi
9899   if test "X$ltrpathdirs" != "X"; then
9900             for found_dir in $ltrpathdirs; do
9901       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9902     done
9903   fi
9904
9905           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
9906 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
9907 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
9908   echo $ECHO_N "(cached) $ECHO_C" >&6
9909 else
9910   gt_save_CPPFLAGS="$CPPFLAGS"
9911             CPPFLAGS="$CPPFLAGS $INCINTL"
9912             gt_save_LIBS="$LIBS"
9913             LIBS="$LIBS $LIBINTL"
9914                         cat >conftest.$ac_ext <<_ACEOF
9915 /* confdefs.h.  */
9916 _ACEOF
9917 cat confdefs.h >>conftest.$ac_ext
9918 cat >>conftest.$ac_ext <<_ACEOF
9919 /* end confdefs.h.  */
9920 #include <libintl.h>
9921 extern int _nl_msg_cat_cntr;
9922 extern
9923 #ifdef __cplusplus
9924 "C"
9925 #endif
9926 const char *_nl_expand_alias (const char *);
9927 int
9928 main ()
9929 {
9930 bindtextdomain ("", "");
9931 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
9932   ;
9933   return 0;
9934 }
9935 _ACEOF
9936 rm -f conftest.$ac_objext conftest$ac_exeext
9937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9938   (eval $ac_link) 2>conftest.er1
9939   ac_status=$?
9940   grep -v '^ *+' conftest.er1 >conftest.err
9941   rm -f conftest.er1
9942   cat conftest.err >&5
9943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944   (exit $ac_status); } &&
9945          { ac_try='test -z "$ac_c_werror_flag"
9946                          || test ! -s conftest.err'
9947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9948   (eval $ac_try) 2>&5
9949   ac_status=$?
9950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951   (exit $ac_status); }; } &&
9952          { ac_try='test -s conftest$ac_exeext'
9953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9954   (eval $ac_try) 2>&5
9955   ac_status=$?
9956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957   (exit $ac_status); }; }; then
9958   gt_cv_func_gnugettext1_libintl=yes
9959 else
9960   echo "$as_me: failed program was:" >&5
9961 sed 's/^/| /' conftest.$ac_ext >&5
9962
9963 gt_cv_func_gnugettext1_libintl=no
9964 fi
9965 rm -f conftest.err conftest.$ac_objext \
9966       conftest$ac_exeext conftest.$ac_ext
9967                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9968               LIBS="$LIBS $LIBICONV"
9969               cat >conftest.$ac_ext <<_ACEOF
9970 /* confdefs.h.  */
9971 _ACEOF
9972 cat confdefs.h >>conftest.$ac_ext
9973 cat >>conftest.$ac_ext <<_ACEOF
9974 /* end confdefs.h.  */
9975 #include <libintl.h>
9976 extern int _nl_msg_cat_cntr;
9977 extern
9978 #ifdef __cplusplus
9979 "C"
9980 #endif
9981 const char *_nl_expand_alias (const char *);
9982 int
9983 main ()
9984 {
9985 bindtextdomain ("", "");
9986 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
9987   ;
9988   return 0;
9989 }
9990 _ACEOF
9991 rm -f conftest.$ac_objext conftest$ac_exeext
9992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9993   (eval $ac_link) 2>conftest.er1
9994   ac_status=$?
9995   grep -v '^ *+' conftest.er1 >conftest.err
9996   rm -f conftest.er1
9997   cat conftest.err >&5
9998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999   (exit $ac_status); } &&
10000          { ac_try='test -z "$ac_c_werror_flag"
10001                          || test ! -s conftest.err'
10002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10003   (eval $ac_try) 2>&5
10004   ac_status=$?
10005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006   (exit $ac_status); }; } &&
10007          { ac_try='test -s conftest$ac_exeext'
10008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10009   (eval $ac_try) 2>&5
10010   ac_status=$?
10011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012   (exit $ac_status); }; }; then
10013   LIBINTL="$LIBINTL $LIBICONV"
10014                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10015                 gt_cv_func_gnugettext1_libintl=yes
10016
10017 else
10018   echo "$as_me: failed program was:" >&5
10019 sed 's/^/| /' conftest.$ac_ext >&5
10020
10021 fi
10022 rm -f conftest.err conftest.$ac_objext \
10023       conftest$ac_exeext conftest.$ac_ext
10024             fi
10025             CPPFLAGS="$gt_save_CPPFLAGS"
10026             LIBS="$gt_save_LIBS"
10027 fi
10028 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
10029 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
10030         fi
10031
10032                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
10033            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
10034                 && test "$PACKAGE" != gettext-runtime \
10035                 && test "$PACKAGE" != gettext-tools; }; then
10036           gt_use_preinstalled_gnugettext=yes
10037         else
10038                     LIBINTL=
10039           LTLIBINTL=
10040           INCINTL=
10041         fi
10042
10043
10044         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10045                               nls_cv_use_gnu_gettext=yes
10046         fi
10047       fi
10048
10049       if test "$nls_cv_use_gnu_gettext" = "yes"; then
10050                 BUILD_INCLUDED_LIBINTL=yes
10051         USE_INCLUDED_LIBINTL=yes
10052         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
10053         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
10054         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
10055       fi
10056
10057       CATOBJEXT=
10058       if test "$gt_use_preinstalled_gnugettext" = "yes" \
10059          || test "$nls_cv_use_gnu_gettext" = "yes"; then
10060                 CATOBJEXT=.gmo
10061       fi
10062
10063
10064     if test -n "$INTL_MACOSX_LIBS"; then
10065       if test "$gt_use_preinstalled_gnugettext" = "yes" \
10066          || test "$nls_cv_use_gnu_gettext" = "yes"; then
10067                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
10068         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
10069       fi
10070     fi
10071
10072     if test "$gt_use_preinstalled_gnugettext" = "yes" \
10073        || test "$nls_cv_use_gnu_gettext" = "yes"; then
10074
10075 cat >>confdefs.h <<\_ACEOF
10076 #define ENABLE_NLS 1
10077 _ACEOF
10078
10079     else
10080       USE_NLS=no
10081     fi
10082   fi
10083
10084   echo "$as_me:$LINENO: checking whether to use NLS" >&5
10085 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
10086   echo "$as_me:$LINENO: result: $USE_NLS" >&5
10087 echo "${ECHO_T}$USE_NLS" >&6
10088   if test "$USE_NLS" = "yes"; then
10089     echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10090 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
10091     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10092       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10093         gt_source="external libintl"
10094       else
10095         gt_source="libc"
10096       fi
10097     else
10098       gt_source="included intl directory"
10099     fi
10100     echo "$as_me:$LINENO: result: $gt_source" >&5
10101 echo "${ECHO_T}$gt_source" >&6
10102   fi
10103
10104   if test "$USE_NLS" = "yes"; then
10105
10106     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10107       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10108         echo "$as_me:$LINENO: checking how to link with libintl" >&5
10109 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
10110         echo "$as_me:$LINENO: result: $LIBINTL" >&5
10111 echo "${ECHO_T}$LIBINTL" >&6
10112
10113   for element in $INCINTL; do
10114     haveit=
10115     for x in $CPPFLAGS; do
10116
10117   acl_save_prefix="$prefix"
10118   prefix="$acl_final_prefix"
10119   acl_save_exec_prefix="$exec_prefix"
10120   exec_prefix="$acl_final_exec_prefix"
10121   eval x=\"$x\"
10122   exec_prefix="$acl_save_exec_prefix"
10123   prefix="$acl_save_prefix"
10124
10125       if test "X$x" = "X$element"; then
10126         haveit=yes
10127         break
10128       fi
10129     done
10130     if test -z "$haveit"; then
10131       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10132     fi
10133   done
10134
10135       fi
10136
10137
10138 cat >>confdefs.h <<\_ACEOF
10139 #define HAVE_GETTEXT 1
10140 _ACEOF
10141
10142
10143 cat >>confdefs.h <<\_ACEOF
10144 #define HAVE_DCGETTEXT 1
10145 _ACEOF
10146
10147     fi
10148
10149         POSUB=po
10150   fi
10151
10152
10153             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
10154       BUILD_INCLUDED_LIBINTL=yes
10155     fi
10156
10157
10158
10159
10160
10161         nls_cv_header_intl=
10162     nls_cv_header_libgt=
10163
10164         DATADIRNAME=share
10165
10166
10167         INSTOBJEXT=.mo
10168
10169
10170         GENCAT=gencat
10171
10172
10173         INTLOBJS=
10174     if test "$USE_INCLUDED_LIBINTL" = yes; then
10175       INTLOBJS="\$(GETTOBJS)"
10176     fi
10177
10178
10179         INTL_LIBTOOL_SUFFIX_PREFIX=
10180
10181
10182
10183     INTLLIBS="$LIBINTL"
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195         abook_localedir="$datadir/locale"
10196                         abook_localedir=`(      test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10197                 eval tmp_abook_prefix=\""$abook_localedir"\"
10198                 eval echo $tmp_abook_prefix
10199                 )`
10200
10201 localedir="\$(datadir)/locale"
10202
10203
10204 # Check whether --with-localedir or --without-localedir was given.
10205 if test "${with_localedir+set}" = set; then
10206   withval="$with_localedir"
10207
10208 fi;
10209 if test "x$with_localedir" != "x"; then
10210         abook_localedir="$with_localedir"
10211         localedir="$with_localedir"
10212 fi
10213
10214
10215 cat >>confdefs.h <<_ACEOF
10216 #define LOCALEDIR "$abook_localedir"
10217 _ACEOF
10218
10219
10220
10221
10222
10223 if test x$USE_INCLUDED_LIBINTL = xyes; then
10224   USE_INCLUDED_INTL_H_TRUE=
10225   USE_INCLUDED_INTL_H_FALSE='#'
10226 else
10227   USE_INCLUDED_INTL_H_TRUE='#'
10228   USE_INCLUDED_INTL_H_FALSE=
10229 fi
10230
10231
10232
10233 ac_ext=c
10234 ac_cpp='$CPP $CPPFLAGS'
10235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10238 if test -n "$ac_tool_prefix"; then
10239   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10240 set dummy ${ac_tool_prefix}gcc; ac_word=$2
10241 echo "$as_me:$LINENO: checking for $ac_word" >&5
10242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10243 if test "${ac_cv_prog_CC+set}" = set; then
10244   echo $ECHO_N "(cached) $ECHO_C" >&6
10245 else
10246   if test -n "$CC"; then
10247   ac_cv_prog_CC="$CC" # Let the user override the test.
10248 else
10249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10250 for as_dir in $PATH
10251 do
10252   IFS=$as_save_IFS
10253   test -z "$as_dir" && as_dir=.
10254   for ac_exec_ext in '' $ac_executable_extensions; do
10255   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10256     ac_cv_prog_CC="${ac_tool_prefix}gcc"
10257     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10258     break 2
10259   fi
10260 done
10261 done
10262
10263 fi
10264 fi
10265 CC=$ac_cv_prog_CC
10266 if test -n "$CC"; then
10267   echo "$as_me:$LINENO: result: $CC" >&5
10268 echo "${ECHO_T}$CC" >&6
10269 else
10270   echo "$as_me:$LINENO: result: no" >&5
10271 echo "${ECHO_T}no" >&6
10272 fi
10273
10274 fi
10275 if test -z "$ac_cv_prog_CC"; then
10276   ac_ct_CC=$CC
10277   # Extract the first word of "gcc", so it can be a program name with args.
10278 set dummy gcc; ac_word=$2
10279 echo "$as_me:$LINENO: checking for $ac_word" >&5
10280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10281 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10282   echo $ECHO_N "(cached) $ECHO_C" >&6
10283 else
10284   if test -n "$ac_ct_CC"; then
10285   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10286 else
10287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10288 for as_dir in $PATH
10289 do
10290   IFS=$as_save_IFS
10291   test -z "$as_dir" && as_dir=.
10292   for ac_exec_ext in '' $ac_executable_extensions; do
10293   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10294     ac_cv_prog_ac_ct_CC="gcc"
10295     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10296     break 2
10297   fi
10298 done
10299 done
10300
10301 fi
10302 fi
10303 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10304 if test -n "$ac_ct_CC"; then
10305   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10306 echo "${ECHO_T}$ac_ct_CC" >&6
10307 else
10308   echo "$as_me:$LINENO: result: no" >&5
10309 echo "${ECHO_T}no" >&6
10310 fi
10311
10312   CC=$ac_ct_CC
10313 else
10314   CC="$ac_cv_prog_CC"
10315 fi
10316
10317 if test -z "$CC"; then
10318   if test -n "$ac_tool_prefix"; then
10319   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10320 set dummy ${ac_tool_prefix}cc; ac_word=$2
10321 echo "$as_me:$LINENO: checking for $ac_word" >&5
10322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10323 if test "${ac_cv_prog_CC+set}" = set; then
10324   echo $ECHO_N "(cached) $ECHO_C" >&6
10325 else
10326   if test -n "$CC"; then
10327   ac_cv_prog_CC="$CC" # Let the user override the test.
10328 else
10329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10330 for as_dir in $PATH
10331 do
10332   IFS=$as_save_IFS
10333   test -z "$as_dir" && as_dir=.
10334   for ac_exec_ext in '' $ac_executable_extensions; do
10335   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10336     ac_cv_prog_CC="${ac_tool_prefix}cc"
10337     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10338     break 2
10339   fi
10340 done
10341 done
10342
10343 fi
10344 fi
10345 CC=$ac_cv_prog_CC
10346 if test -n "$CC"; then
10347   echo "$as_me:$LINENO: result: $CC" >&5
10348 echo "${ECHO_T}$CC" >&6
10349 else
10350   echo "$as_me:$LINENO: result: no" >&5
10351 echo "${ECHO_T}no" >&6
10352 fi
10353
10354 fi
10355 if test -z "$ac_cv_prog_CC"; then
10356   ac_ct_CC=$CC
10357   # Extract the first word of "cc", so it can be a program name with args.
10358 set dummy cc; ac_word=$2
10359 echo "$as_me:$LINENO: checking for $ac_word" >&5
10360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10361 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10362   echo $ECHO_N "(cached) $ECHO_C" >&6
10363 else
10364   if test -n "$ac_ct_CC"; then
10365   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10366 else
10367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10368 for as_dir in $PATH
10369 do
10370   IFS=$as_save_IFS
10371   test -z "$as_dir" && as_dir=.
10372   for ac_exec_ext in '' $ac_executable_extensions; do
10373   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10374     ac_cv_prog_ac_ct_CC="cc"
10375     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10376     break 2
10377   fi
10378 done
10379 done
10380
10381 fi
10382 fi
10383 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10384 if test -n "$ac_ct_CC"; then
10385   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10386 echo "${ECHO_T}$ac_ct_CC" >&6
10387 else
10388   echo "$as_me:$LINENO: result: no" >&5
10389 echo "${ECHO_T}no" >&6
10390 fi
10391
10392   CC=$ac_ct_CC
10393 else
10394   CC="$ac_cv_prog_CC"
10395 fi
10396
10397 fi
10398 if test -z "$CC"; then
10399   # Extract the first word of "cc", so it can be a program name with args.
10400 set dummy cc; ac_word=$2
10401 echo "$as_me:$LINENO: checking for $ac_word" >&5
10402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10403 if test "${ac_cv_prog_CC+set}" = set; then
10404   echo $ECHO_N "(cached) $ECHO_C" >&6
10405 else
10406   if test -n "$CC"; then
10407   ac_cv_prog_CC="$CC" # Let the user override the test.
10408 else
10409   ac_prog_rejected=no
10410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10411 for as_dir in $PATH
10412 do
10413   IFS=$as_save_IFS
10414   test -z "$as_dir" && as_dir=.
10415   for ac_exec_ext in '' $ac_executable_extensions; do
10416   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10417     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10418        ac_prog_rejected=yes
10419        continue
10420      fi
10421     ac_cv_prog_CC="cc"
10422     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10423     break 2
10424   fi
10425 done
10426 done
10427
10428 if test $ac_prog_rejected = yes; then
10429   # We found a bogon in the path, so make sure we never use it.
10430   set dummy $ac_cv_prog_CC
10431   shift
10432   if test $# != 0; then
10433     # We chose a different compiler from the bogus one.
10434     # However, it has the same basename, so the bogon will be chosen
10435     # first if we set CC to just the basename; use the full file name.
10436     shift
10437     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10438   fi
10439 fi
10440 fi
10441 fi
10442 CC=$ac_cv_prog_CC
10443 if test -n "$CC"; then
10444   echo "$as_me:$LINENO: result: $CC" >&5
10445 echo "${ECHO_T}$CC" >&6
10446 else
10447   echo "$as_me:$LINENO: result: no" >&5
10448 echo "${ECHO_T}no" >&6
10449 fi
10450
10451 fi
10452 if test -z "$CC"; then
10453   if test -n "$ac_tool_prefix"; then
10454   for ac_prog in cl
10455   do
10456     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10457 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10458 echo "$as_me:$LINENO: checking for $ac_word" >&5
10459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10460 if test "${ac_cv_prog_CC+set}" = set; then
10461   echo $ECHO_N "(cached) $ECHO_C" >&6
10462 else
10463   if test -n "$CC"; then
10464   ac_cv_prog_CC="$CC" # Let the user override the test.
10465 else
10466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10467 for as_dir in $PATH
10468 do
10469   IFS=$as_save_IFS
10470   test -z "$as_dir" && as_dir=.
10471   for ac_exec_ext in '' $ac_executable_extensions; do
10472   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10473     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10474     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10475     break 2
10476   fi
10477 done
10478 done
10479
10480 fi
10481 fi
10482 CC=$ac_cv_prog_CC
10483 if test -n "$CC"; then
10484   echo "$as_me:$LINENO: result: $CC" >&5
10485 echo "${ECHO_T}$CC" >&6
10486 else
10487   echo "$as_me:$LINENO: result: no" >&5
10488 echo "${ECHO_T}no" >&6
10489 fi
10490
10491     test -n "$CC" && break
10492   done
10493 fi
10494 if test -z "$CC"; then
10495   ac_ct_CC=$CC
10496   for ac_prog in cl
10497 do
10498   # Extract the first word of "$ac_prog", so it can be a program name with args.
10499 set dummy $ac_prog; ac_word=$2
10500 echo "$as_me:$LINENO: checking for $ac_word" >&5
10501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10502 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10503   echo $ECHO_N "(cached) $ECHO_C" >&6
10504 else
10505   if test -n "$ac_ct_CC"; then
10506   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10507 else
10508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10509 for as_dir in $PATH
10510 do
10511   IFS=$as_save_IFS
10512   test -z "$as_dir" && as_dir=.
10513   for ac_exec_ext in '' $ac_executable_extensions; do
10514   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10515     ac_cv_prog_ac_ct_CC="$ac_prog"
10516     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10517     break 2
10518   fi
10519 done
10520 done
10521
10522 fi
10523 fi
10524 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10525 if test -n "$ac_ct_CC"; then
10526   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10527 echo "${ECHO_T}$ac_ct_CC" >&6
10528 else
10529   echo "$as_me:$LINENO: result: no" >&5
10530 echo "${ECHO_T}no" >&6
10531 fi
10532
10533   test -n "$ac_ct_CC" && break
10534 done
10535
10536   CC=$ac_ct_CC
10537 fi
10538
10539 fi
10540
10541
10542 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10543 See \`config.log' for more details." >&5
10544 echo "$as_me: error: no acceptable C compiler found in \$PATH
10545 See \`config.log' for more details." >&2;}
10546    { (exit 1); exit 1; }; }
10547
10548 # Provide some information about the compiler.
10549 echo "$as_me:$LINENO:" \
10550      "checking for C compiler version" >&5
10551 ac_compiler=`set X $ac_compile; echo $2`
10552 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10553   (eval $ac_compiler --version </dev/null >&5) 2>&5
10554   ac_status=$?
10555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556   (exit $ac_status); }
10557 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10558   (eval $ac_compiler -v </dev/null >&5) 2>&5
10559   ac_status=$?
10560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561   (exit $ac_status); }
10562 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10563   (eval $ac_compiler -V </dev/null >&5) 2>&5
10564   ac_status=$?
10565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566   (exit $ac_status); }
10567
10568 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10569 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10570 if test "${ac_cv_c_compiler_gnu+set}" = set; then
10571   echo $ECHO_N "(cached) $ECHO_C" >&6
10572 else
10573   cat >conftest.$ac_ext <<_ACEOF
10574 /* confdefs.h.  */
10575 _ACEOF
10576 cat confdefs.h >>conftest.$ac_ext
10577 cat >>conftest.$ac_ext <<_ACEOF
10578 /* end confdefs.h.  */
10579
10580 int
10581 main ()
10582 {
10583 #ifndef __GNUC__
10584        choke me
10585 #endif
10586
10587   ;
10588   return 0;
10589 }
10590 _ACEOF
10591 rm -f conftest.$ac_objext
10592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10593   (eval $ac_compile) 2>conftest.er1
10594   ac_status=$?
10595   grep -v '^ *+' conftest.er1 >conftest.err
10596   rm -f conftest.er1
10597   cat conftest.err >&5
10598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599   (exit $ac_status); } &&
10600          { ac_try='test -z "$ac_c_werror_flag"
10601                          || test ! -s conftest.err'
10602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10603   (eval $ac_try) 2>&5
10604   ac_status=$?
10605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606   (exit $ac_status); }; } &&
10607          { ac_try='test -s conftest.$ac_objext'
10608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10609   (eval $ac_try) 2>&5
10610   ac_status=$?
10611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612   (exit $ac_status); }; }; then
10613   ac_compiler_gnu=yes
10614 else
10615   echo "$as_me: failed program was:" >&5
10616 sed 's/^/| /' conftest.$ac_ext >&5
10617
10618 ac_compiler_gnu=no
10619 fi
10620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10621 ac_cv_c_compiler_gnu=$ac_compiler_gnu
10622
10623 fi
10624 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10625 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10626 GCC=`test $ac_compiler_gnu = yes && echo yes`
10627 ac_test_CFLAGS=${CFLAGS+set}
10628 ac_save_CFLAGS=$CFLAGS
10629 CFLAGS="-g"
10630 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10631 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10632 if test "${ac_cv_prog_cc_g+set}" = set; then
10633   echo $ECHO_N "(cached) $ECHO_C" >&6
10634 else
10635   cat >conftest.$ac_ext <<_ACEOF
10636 /* confdefs.h.  */
10637 _ACEOF
10638 cat confdefs.h >>conftest.$ac_ext
10639 cat >>conftest.$ac_ext <<_ACEOF
10640 /* end confdefs.h.  */
10641
10642 int
10643 main ()
10644 {
10645
10646   ;
10647   return 0;
10648 }
10649 _ACEOF
10650 rm -f conftest.$ac_objext
10651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10652   (eval $ac_compile) 2>conftest.er1
10653   ac_status=$?
10654   grep -v '^ *+' conftest.er1 >conftest.err
10655   rm -f conftest.er1
10656   cat conftest.err >&5
10657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658   (exit $ac_status); } &&
10659          { ac_try='test -z "$ac_c_werror_flag"
10660                          || test ! -s conftest.err'
10661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10662   (eval $ac_try) 2>&5
10663   ac_status=$?
10664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665   (exit $ac_status); }; } &&
10666          { ac_try='test -s conftest.$ac_objext'
10667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10668   (eval $ac_try) 2>&5
10669   ac_status=$?
10670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671   (exit $ac_status); }; }; then
10672   ac_cv_prog_cc_g=yes
10673 else
10674   echo "$as_me: failed program was:" >&5
10675 sed 's/^/| /' conftest.$ac_ext >&5
10676
10677 ac_cv_prog_cc_g=no
10678 fi
10679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10680 fi
10681 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10682 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
10683 if test "$ac_test_CFLAGS" = set; then
10684   CFLAGS=$ac_save_CFLAGS
10685 elif test $ac_cv_prog_cc_g = yes; then
10686   if test "$GCC" = yes; then
10687     CFLAGS="-g -O2"
10688   else
10689     CFLAGS="-g"
10690   fi
10691 else
10692   if test "$GCC" = yes; then
10693     CFLAGS="-O2"
10694   else
10695     CFLAGS=
10696   fi
10697 fi
10698 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10699 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10700 if test "${ac_cv_prog_cc_stdc+set}" = set; then
10701   echo $ECHO_N "(cached) $ECHO_C" >&6
10702 else
10703   ac_cv_prog_cc_stdc=no
10704 ac_save_CC=$CC
10705 cat >conftest.$ac_ext <<_ACEOF
10706 /* confdefs.h.  */
10707 _ACEOF
10708 cat confdefs.h >>conftest.$ac_ext
10709 cat >>conftest.$ac_ext <<_ACEOF
10710 /* end confdefs.h.  */
10711 #include <stdarg.h>
10712 #include <stdio.h>
10713 #include <sys/types.h>
10714 #include <sys/stat.h>
10715 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
10716 struct buf { int x; };
10717 FILE * (*rcsopen) (struct buf *, struct stat *, int);
10718 static char *e (p, i)
10719      char **p;
10720      int i;
10721 {
10722   return p[i];
10723 }
10724 static char *f (char * (*g) (char **, int), char **p, ...)
10725 {
10726   char *s;
10727   va_list v;
10728   va_start (v,p);
10729   s = g (p, va_arg (v,int));
10730   va_end (v);
10731   return s;
10732 }
10733
10734 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
10735    function prototypes and stuff, but not '\xHH' hex character constants.
10736    These don't provoke an error unfortunately, instead are silently treated
10737    as 'x'.  The following induces an error, until -std1 is added to get
10738    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
10739    array size at least.  It's necessary to write '\x00'==0 to get something
10740    that's true only with -std1.  */
10741 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10742
10743 int test (int i, double x);
10744 struct s1 {int (*f) (int a);};
10745 struct s2 {int (*f) (double a);};
10746 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10747 int argc;
10748 char **argv;
10749 int
10750 main ()
10751 {
10752 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
10753   ;
10754   return 0;
10755 }
10756 _ACEOF
10757 # Don't try gcc -ansi; that turns off useful extensions and
10758 # breaks some systems' header files.
10759 # AIX                   -qlanglvl=ansi
10760 # Ultrix and OSF/1      -std1
10761 # HP-UX 10.20 and later -Ae
10762 # HP-UX older versions  -Aa -D_HPUX_SOURCE
10763 # SVR4                  -Xc -D__EXTENSIONS__
10764 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10765 do
10766   CC="$ac_save_CC $ac_arg"
10767   rm -f conftest.$ac_objext
10768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10769   (eval $ac_compile) 2>conftest.er1
10770   ac_status=$?
10771   grep -v '^ *+' conftest.er1 >conftest.err
10772   rm -f conftest.er1
10773   cat conftest.err >&5
10774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775   (exit $ac_status); } &&
10776          { ac_try='test -z "$ac_c_werror_flag"
10777                          || test ! -s conftest.err'
10778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10779   (eval $ac_try) 2>&5
10780   ac_status=$?
10781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782   (exit $ac_status); }; } &&
10783          { ac_try='test -s conftest.$ac_objext'
10784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10785   (eval $ac_try) 2>&5
10786   ac_status=$?
10787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788   (exit $ac_status); }; }; then
10789   ac_cv_prog_cc_stdc=$ac_arg
10790 break
10791 else
10792   echo "$as_me: failed program was:" >&5
10793 sed 's/^/| /' conftest.$ac_ext >&5
10794
10795 fi
10796 rm -f conftest.err conftest.$ac_objext
10797 done
10798 rm -f conftest.$ac_ext conftest.$ac_objext
10799 CC=$ac_save_CC
10800
10801 fi
10802
10803 case "x$ac_cv_prog_cc_stdc" in
10804   x|xno)
10805     echo "$as_me:$LINENO: result: none needed" >&5
10806 echo "${ECHO_T}none needed" >&6 ;;
10807   *)
10808     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10809 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10810     CC="$CC $ac_cv_prog_cc_stdc" ;;
10811 esac
10812
10813 # Some people use a C++ compiler to compile C.  Since we use `exit',
10814 # in C++ we need to declare it.  In case someone uses the same compiler
10815 # for both compiling C and C++ we need to have the C++ compiler decide
10816 # the declaration of exit, since it's the most demanding environment.
10817 cat >conftest.$ac_ext <<_ACEOF
10818 #ifndef __cplusplus
10819   choke me
10820 #endif
10821 _ACEOF
10822 rm -f conftest.$ac_objext
10823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10824   (eval $ac_compile) 2>conftest.er1
10825   ac_status=$?
10826   grep -v '^ *+' conftest.er1 >conftest.err
10827   rm -f conftest.er1
10828   cat conftest.err >&5
10829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830   (exit $ac_status); } &&
10831          { ac_try='test -z "$ac_c_werror_flag"
10832                          || test ! -s conftest.err'
10833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10834   (eval $ac_try) 2>&5
10835   ac_status=$?
10836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837   (exit $ac_status); }; } &&
10838          { ac_try='test -s conftest.$ac_objext'
10839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10840   (eval $ac_try) 2>&5
10841   ac_status=$?
10842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843   (exit $ac_status); }; }; then
10844   for ac_declaration in \
10845    '' \
10846    'extern "C" void std::exit (int) throw (); using std::exit;' \
10847    'extern "C" void std::exit (int); using std::exit;' \
10848    'extern "C" void exit (int) throw ();' \
10849    'extern "C" void exit (int);' \
10850    'void exit (int);'
10851 do
10852   cat >conftest.$ac_ext <<_ACEOF
10853 /* confdefs.h.  */
10854 _ACEOF
10855 cat confdefs.h >>conftest.$ac_ext
10856 cat >>conftest.$ac_ext <<_ACEOF
10857 /* end confdefs.h.  */
10858 $ac_declaration
10859 #include <stdlib.h>
10860 int
10861 main ()
10862 {
10863 exit (42);
10864   ;
10865   return 0;
10866 }
10867 _ACEOF
10868 rm -f conftest.$ac_objext
10869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10870   (eval $ac_compile) 2>conftest.er1
10871   ac_status=$?
10872   grep -v '^ *+' conftest.er1 >conftest.err
10873   rm -f conftest.er1
10874   cat conftest.err >&5
10875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876   (exit $ac_status); } &&
10877          { ac_try='test -z "$ac_c_werror_flag"
10878                          || test ! -s conftest.err'
10879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10880   (eval $ac_try) 2>&5
10881   ac_status=$?
10882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883   (exit $ac_status); }; } &&
10884          { ac_try='test -s conftest.$ac_objext'
10885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10886   (eval $ac_try) 2>&5
10887   ac_status=$?
10888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889   (exit $ac_status); }; }; then
10890   :
10891 else
10892   echo "$as_me: failed program was:" >&5
10893 sed 's/^/| /' conftest.$ac_ext >&5
10894
10895 continue
10896 fi
10897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10898   cat >conftest.$ac_ext <<_ACEOF
10899 /* confdefs.h.  */
10900 _ACEOF
10901 cat confdefs.h >>conftest.$ac_ext
10902 cat >>conftest.$ac_ext <<_ACEOF
10903 /* end confdefs.h.  */
10904 $ac_declaration
10905 int
10906 main ()
10907 {
10908 exit (42);
10909   ;
10910   return 0;
10911 }
10912 _ACEOF
10913 rm -f conftest.$ac_objext
10914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10915   (eval $ac_compile) 2>conftest.er1
10916   ac_status=$?
10917   grep -v '^ *+' conftest.er1 >conftest.err
10918   rm -f conftest.er1
10919   cat conftest.err >&5
10920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921   (exit $ac_status); } &&
10922          { ac_try='test -z "$ac_c_werror_flag"
10923                          || test ! -s conftest.err'
10924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10925   (eval $ac_try) 2>&5
10926   ac_status=$?
10927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928   (exit $ac_status); }; } &&
10929          { ac_try='test -s conftest.$ac_objext'
10930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10931   (eval $ac_try) 2>&5
10932   ac_status=$?
10933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934   (exit $ac_status); }; }; then
10935   break
10936 else
10937   echo "$as_me: failed program was:" >&5
10938 sed 's/^/| /' conftest.$ac_ext >&5
10939
10940 fi
10941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10942 done
10943 rm -f conftest*
10944 if test -n "$ac_declaration"; then
10945   echo '#ifdef __cplusplus' >>confdefs.h
10946   echo $ac_declaration      >>confdefs.h
10947   echo '#endif'             >>confdefs.h
10948 fi
10949
10950 else
10951   echo "$as_me: failed program was:" >&5
10952 sed 's/^/| /' conftest.$ac_ext >&5
10953
10954 fi
10955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10956 ac_ext=c
10957 ac_cpp='$CPP $CPPFLAGS'
10958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10961
10962 depcc="$CC"   am_compiler_list=
10963
10964 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
10965 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
10966 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
10967   echo $ECHO_N "(cached) $ECHO_C" >&6
10968 else
10969   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10970   # We make a subdir and do the tests there.  Otherwise we can end up
10971   # making bogus files that we don't know about and never remove.  For
10972   # instance it was reported that on HP-UX the gcc test will end up
10973   # making a dummy file named `D' -- because `-MD' means `put the output
10974   # in D'.
10975   mkdir conftest.dir
10976   # Copy depcomp to subdir because otherwise we won't find it if we're
10977   # using a relative directory.
10978   cp "$am_depcomp" conftest.dir
10979   cd conftest.dir
10980   # We will build objects and dependencies in a subdirectory because
10981   # it helps to detect inapplicable dependency modes.  For instance
10982   # both Tru64's cc and ICC support -MD to output dependencies as a
10983   # side effect of compilation, but ICC will put the dependencies in
10984   # the current directory while Tru64 will put them in the object
10985   # directory.
10986   mkdir sub
10987
10988   am_cv_CC_dependencies_compiler_type=none
10989   if test "$am_compiler_list" = ""; then
10990      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10991   fi
10992   for depmode in $am_compiler_list; do
10993     # Setup a source with many dependencies, because some compilers
10994     # like to wrap large dependency lists on column 80 (with \), and
10995     # we should not choose a depcomp mode which is confused by this.
10996     #
10997     # We need to recreate these files for each test, as the compiler may
10998     # overwrite some of them when testing with obscure command lines.
10999     # This happens at least with the AIX C compiler.
11000     : > sub/conftest.c
11001     for i in 1 2 3 4 5 6; do
11002       echo '#include "conftst'$i'.h"' >> sub/conftest.c
11003       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11004       # Solaris 8's {/usr,}/bin/sh.
11005       touch sub/conftst$i.h
11006     done
11007     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11008
11009     case $depmode in
11010     nosideeffect)
11011       # after this tag, mechanisms are not by side-effect, so they'll
11012       # only be used when explicitly requested
11013       if test "x$enable_dependency_tracking" = xyes; then
11014         continue
11015       else
11016         break
11017       fi
11018       ;;
11019     none) break ;;
11020     esac
11021     # We check with `-c' and `-o' for the sake of the "dashmstdout"
11022     # mode.  It turns out that the SunPro C++ compiler does not properly
11023     # handle `-M -o', and we need to detect this.
11024     if depmode=$depmode \
11025        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
11026        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11027        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
11028          >/dev/null 2>conftest.err &&
11029        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11030        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
11031        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11032       # icc doesn't choke on unknown options, it will just issue warnings
11033       # or remarks (even with -Werror).  So we grep stderr for any message
11034       # that says an option was ignored or not supported.
11035       # When given -MP, icc 7.0 and 7.1 complain thusly:
11036       #   icc: Command line warning: ignoring option '-M'; no argument required
11037       # The diagnosis changed in icc 8.0:
11038       #   icc: Command line remark: option '-MP' not supported
11039       if (grep 'ignoring option' conftest.err ||
11040           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11041         am_cv_CC_dependencies_compiler_type=$depmode
11042         break
11043       fi
11044     fi
11045   done
11046
11047   cd ..
11048   rm -rf conftest.dir
11049 else
11050   am_cv_CC_dependencies_compiler_type=none
11051 fi
11052
11053 fi
11054 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
11055 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
11056 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11057
11058
11059
11060 if
11061   test "x$enable_dependency_tracking" != xno \
11062   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11063   am__fastdepCC_TRUE=
11064   am__fastdepCC_FALSE='#'
11065 else
11066   am__fastdepCC_TRUE='#'
11067   am__fastdepCC_FALSE=
11068 fi
11069
11070
11071 echo "$as_me:$LINENO: checking for library containing strerror" >&5
11072 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
11073 if test "${ac_cv_search_strerror+set}" = set; then
11074   echo $ECHO_N "(cached) $ECHO_C" >&6
11075 else
11076   ac_func_search_save_LIBS=$LIBS
11077 ac_cv_search_strerror=no
11078 cat >conftest.$ac_ext <<_ACEOF
11079 /* confdefs.h.  */
11080 _ACEOF
11081 cat confdefs.h >>conftest.$ac_ext
11082 cat >>conftest.$ac_ext <<_ACEOF
11083 /* end confdefs.h.  */
11084
11085 /* Override any gcc2 internal prototype to avoid an error.  */
11086 #ifdef __cplusplus
11087 extern "C"
11088 #endif
11089 /* We use char because int might match the return type of a gcc2
11090    builtin and then its argument prototype would still apply.  */
11091 char strerror ();
11092 int
11093 main ()
11094 {
11095 strerror ();
11096   ;
11097   return 0;
11098 }
11099 _ACEOF
11100 rm -f conftest.$ac_objext conftest$ac_exeext
11101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11102   (eval $ac_link) 2>conftest.er1
11103   ac_status=$?
11104   grep -v '^ *+' conftest.er1 >conftest.err
11105   rm -f conftest.er1
11106   cat conftest.err >&5
11107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108   (exit $ac_status); } &&
11109          { ac_try='test -z "$ac_c_werror_flag"
11110                          || test ! -s conftest.err'
11111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11112   (eval $ac_try) 2>&5
11113   ac_status=$?
11114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115   (exit $ac_status); }; } &&
11116          { ac_try='test -s conftest$ac_exeext'
11117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11118   (eval $ac_try) 2>&5
11119   ac_status=$?
11120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121   (exit $ac_status); }; }; then
11122   ac_cv_search_strerror="none required"
11123 else
11124   echo "$as_me: failed program was:" >&5
11125 sed 's/^/| /' conftest.$ac_ext >&5
11126
11127 fi
11128 rm -f conftest.err conftest.$ac_objext \
11129       conftest$ac_exeext conftest.$ac_ext
11130 if test "$ac_cv_search_strerror" = no; then
11131   for ac_lib in cposix; do
11132     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11133     cat >conftest.$ac_ext <<_ACEOF
11134 /* confdefs.h.  */
11135 _ACEOF
11136 cat confdefs.h >>conftest.$ac_ext
11137 cat >>conftest.$ac_ext <<_ACEOF
11138 /* end confdefs.h.  */
11139
11140 /* Override any gcc2 internal prototype to avoid an error.  */
11141 #ifdef __cplusplus
11142 extern "C"
11143 #endif
11144 /* We use char because int might match the return type of a gcc2
11145    builtin and then its argument prototype would still apply.  */
11146 char strerror ();
11147 int
11148 main ()
11149 {
11150 strerror ();
11151   ;
11152   return 0;
11153 }
11154 _ACEOF
11155 rm -f conftest.$ac_objext conftest$ac_exeext
11156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11157   (eval $ac_link) 2>conftest.er1
11158   ac_status=$?
11159   grep -v '^ *+' conftest.er1 >conftest.err
11160   rm -f conftest.er1
11161   cat conftest.err >&5
11162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163   (exit $ac_status); } &&
11164          { ac_try='test -z "$ac_c_werror_flag"
11165                          || test ! -s conftest.err'
11166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11167   (eval $ac_try) 2>&5
11168   ac_status=$?
11169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170   (exit $ac_status); }; } &&
11171          { ac_try='test -s conftest$ac_exeext'
11172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11173   (eval $ac_try) 2>&5
11174   ac_status=$?
11175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176   (exit $ac_status); }; }; then
11177   ac_cv_search_strerror="-l$ac_lib"
11178 break
11179 else
11180   echo "$as_me: failed program was:" >&5
11181 sed 's/^/| /' conftest.$ac_ext >&5
11182
11183 fi
11184 rm -f conftest.err conftest.$ac_objext \
11185       conftest$ac_exeext conftest.$ac_ext
11186   done
11187 fi
11188 LIBS=$ac_func_search_save_LIBS
11189 fi
11190 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
11191 echo "${ECHO_T}$ac_cv_search_strerror" >&6
11192 if test "$ac_cv_search_strerror" != no; then
11193   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
11194
11195 fi
11196
11197 echo "$as_me:$LINENO: checking for function prototypes" >&5
11198 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
11199 if test "$ac_cv_prog_cc_stdc" != no; then
11200   echo "$as_me:$LINENO: result: yes" >&5
11201 echo "${ECHO_T}yes" >&6
11202
11203 cat >>confdefs.h <<\_ACEOF
11204 #define PROTOTYPES 1
11205 _ACEOF
11206
11207
11208 cat >>confdefs.h <<\_ACEOF
11209 #define __PROTOTYPES 1
11210 _ACEOF
11211
11212 else
11213   echo "$as_me:$LINENO: result: no" >&5
11214 echo "${ECHO_T}no" >&6
11215 fi
11216
11217
11218 if test "$ac_cv_prog_cc_stdc" != no; then
11219   U= ANSI2KNR=
11220 else
11221   U=_ ANSI2KNR=./ansi2knr
11222 fi
11223 # Ensure some checks needed by ansi2knr itself.
11224
11225
11226 for ac_header in string.h
11227 do
11228 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11229 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11230   echo "$as_me:$LINENO: checking for $ac_header" >&5
11231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11233   echo $ECHO_N "(cached) $ECHO_C" >&6
11234 fi
11235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11236 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11237 else
11238   # Is the header compilable?
11239 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11240 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11241 cat >conftest.$ac_ext <<_ACEOF
11242 /* confdefs.h.  */
11243 _ACEOF
11244 cat confdefs.h >>conftest.$ac_ext
11245 cat >>conftest.$ac_ext <<_ACEOF
11246 /* end confdefs.h.  */
11247 $ac_includes_default
11248 #include <$ac_header>
11249 _ACEOF
11250 rm -f conftest.$ac_objext
11251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11252   (eval $ac_compile) 2>conftest.er1
11253   ac_status=$?
11254   grep -v '^ *+' conftest.er1 >conftest.err
11255   rm -f conftest.er1
11256   cat conftest.err >&5
11257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11258   (exit $ac_status); } &&
11259          { ac_try='test -z "$ac_c_werror_flag"
11260                          || test ! -s conftest.err'
11261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11262   (eval $ac_try) 2>&5
11263   ac_status=$?
11264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265   (exit $ac_status); }; } &&
11266          { ac_try='test -s conftest.$ac_objext'
11267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11268   (eval $ac_try) 2>&5
11269   ac_status=$?
11270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271   (exit $ac_status); }; }; then
11272   ac_header_compiler=yes
11273 else
11274   echo "$as_me: failed program was:" >&5
11275 sed 's/^/| /' conftest.$ac_ext >&5
11276
11277 ac_header_compiler=no
11278 fi
11279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11280 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11281 echo "${ECHO_T}$ac_header_compiler" >&6
11282
11283 # Is the header present?
11284 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11285 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11286 cat >conftest.$ac_ext <<_ACEOF
11287 /* confdefs.h.  */
11288 _ACEOF
11289 cat confdefs.h >>conftest.$ac_ext
11290 cat >>conftest.$ac_ext <<_ACEOF
11291 /* end confdefs.h.  */
11292 #include <$ac_header>
11293 _ACEOF
11294 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11295   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11296   ac_status=$?
11297   grep -v '^ *+' conftest.er1 >conftest.err
11298   rm -f conftest.er1
11299   cat conftest.err >&5
11300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301   (exit $ac_status); } >/dev/null; then
11302   if test -s conftest.err; then
11303     ac_cpp_err=$ac_c_preproc_warn_flag
11304     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11305   else
11306     ac_cpp_err=
11307   fi
11308 else
11309   ac_cpp_err=yes
11310 fi
11311 if test -z "$ac_cpp_err"; then
11312   ac_header_preproc=yes
11313 else
11314   echo "$as_me: failed program was:" >&5
11315 sed 's/^/| /' conftest.$ac_ext >&5
11316
11317   ac_header_preproc=no
11318 fi
11319 rm -f conftest.err conftest.$ac_ext
11320 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11321 echo "${ECHO_T}$ac_header_preproc" >&6
11322
11323 # So?  What about this header?
11324 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11325   yes:no: )
11326     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11327 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11328     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11329 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11330     ac_header_preproc=yes
11331     ;;
11332   no:yes:* )
11333     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11334 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11335     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11336 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11337     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11338 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11339     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11340 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11341     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11342 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11343     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11344 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11345     (
11346       cat <<\_ASBOX
11347 ## ------------------------------------------ ##
11348 ## Report this to the AC_PACKAGE_NAME lists.  ##
11349 ## ------------------------------------------ ##
11350 _ASBOX
11351     ) |
11352       sed "s/^/$as_me: WARNING:     /" >&2
11353     ;;
11354 esac
11355 echo "$as_me:$LINENO: checking for $ac_header" >&5
11356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11358   echo $ECHO_N "(cached) $ECHO_C" >&6
11359 else
11360   eval "$as_ac_Header=\$ac_header_preproc"
11361 fi
11362 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11363 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11364
11365 fi
11366 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11367   cat >>confdefs.h <<_ACEOF
11368 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11369 _ACEOF
11370
11371 fi
11372
11373 done
11374
11375
11376 if test "x$U" != "x"; then
11377         { { echo "$as_me:$LINENO: error: Compiler not ANSI compliant" >&5
11378 echo "$as_me: error: Compiler not ANSI compliant" >&2;}
11379    { (exit 1); exit 1; }; }
11380 fi
11381 echo "$as_me:$LINENO: checking for inline" >&5
11382 echo $ECHO_N "checking for inline... $ECHO_C" >&6
11383 if test "${ac_cv_c_inline+set}" = set; then
11384   echo $ECHO_N "(cached) $ECHO_C" >&6
11385 else
11386   ac_cv_c_inline=no
11387 for ac_kw in inline __inline__ __inline; do
11388   cat >conftest.$ac_ext <<_ACEOF
11389 /* confdefs.h.  */
11390 _ACEOF
11391 cat confdefs.h >>conftest.$ac_ext
11392 cat >>conftest.$ac_ext <<_ACEOF
11393 /* end confdefs.h.  */
11394 #ifndef __cplusplus
11395 typedef int foo_t;
11396 static $ac_kw foo_t static_foo () {return 0; }
11397 $ac_kw foo_t foo () {return 0; }
11398 #endif
11399
11400 _ACEOF
11401 rm -f conftest.$ac_objext
11402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11403   (eval $ac_compile) 2>conftest.er1
11404   ac_status=$?
11405   grep -v '^ *+' conftest.er1 >conftest.err
11406   rm -f conftest.er1
11407   cat conftest.err >&5
11408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409   (exit $ac_status); } &&
11410          { ac_try='test -z "$ac_c_werror_flag"
11411                          || test ! -s conftest.err'
11412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11413   (eval $ac_try) 2>&5
11414   ac_status=$?
11415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416   (exit $ac_status); }; } &&
11417          { ac_try='test -s conftest.$ac_objext'
11418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11419   (eval $ac_try) 2>&5
11420   ac_status=$?
11421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422   (exit $ac_status); }; }; then
11423   ac_cv_c_inline=$ac_kw; break
11424 else
11425   echo "$as_me: failed program was:" >&5
11426 sed 's/^/| /' conftest.$ac_ext >&5
11427
11428 fi
11429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11430 done
11431
11432 fi
11433 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
11434 echo "${ECHO_T}$ac_cv_c_inline" >&6
11435
11436
11437 case $ac_cv_c_inline in
11438   inline | yes) ;;
11439   *)
11440     case $ac_cv_c_inline in
11441       no) ac_val=;;
11442       *) ac_val=$ac_cv_c_inline;;
11443     esac
11444     cat >>confdefs.h <<_ACEOF
11445 #ifndef __cplusplus
11446 #define inline $ac_val
11447 #endif
11448 _ACEOF
11449     ;;
11450 esac
11451
11452 # Find a good install program.  We prefer a C program (faster),
11453 # so one script is as good as another.  But avoid the broken or
11454 # incompatible versions:
11455 # SysV /etc/install, /usr/sbin/install
11456 # SunOS /usr/etc/install
11457 # IRIX /sbin/install
11458 # AIX /bin/install
11459 # AmigaOS /C/install, which installs bootblocks on floppy discs
11460 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11461 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11462 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11463 # OS/2's system install, which has a completely different semantic
11464 # ./install, which can be erroneously created by make from ./install.sh.
11465 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11466 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11467 if test -z "$INSTALL"; then
11468 if test "${ac_cv_path_install+set}" = set; then
11469   echo $ECHO_N "(cached) $ECHO_C" >&6
11470 else
11471   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11472 for as_dir in $PATH
11473 do
11474   IFS=$as_save_IFS
11475   test -z "$as_dir" && as_dir=.
11476   # Account for people who put trailing slashes in PATH elements.
11477 case $as_dir/ in
11478   ./ | .// | /cC/* | \
11479   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11480   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11481   /usr/ucb/* ) ;;
11482   *)
11483     # OSF1 and SCO ODT 3.0 have their own names for install.
11484     # Don't use installbsd from OSF since it installs stuff as root
11485     # by default.
11486     for ac_prog in ginstall scoinst install; do
11487       for ac_exec_ext in '' $ac_executable_extensions; do
11488         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11489           if test $ac_prog = install &&
11490             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11491             # AIX install.  It has an incompatible calling convention.
11492             :
11493           elif test $ac_prog = install &&
11494             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11495             # program-specific install script used by HP pwplus--don't use.
11496             :
11497           else
11498             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11499             break 3
11500           fi
11501         fi
11502       done
11503     done
11504     ;;
11505 esac
11506 done
11507
11508
11509 fi
11510   if test "${ac_cv_path_install+set}" = set; then
11511     INSTALL=$ac_cv_path_install
11512   else
11513     # As a last resort, use the slow shell script.  We don't cache a
11514     # path for INSTALL within a source directory, because that will
11515     # break other packages using the cache if that directory is
11516     # removed, or if the path is relative.
11517     INSTALL=$ac_install_sh
11518   fi
11519 fi
11520 echo "$as_me:$LINENO: result: $INSTALL" >&5
11521 echo "${ECHO_T}$INSTALL" >&6
11522
11523 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11524 # It thinks the first close brace ends the variable substitution.
11525 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11526
11527 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11528
11529 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11530
11531 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11532 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11533 if test "${ac_cv_header_stdc+set}" = set; then
11534   echo $ECHO_N "(cached) $ECHO_C" >&6
11535 else
11536   cat >conftest.$ac_ext <<_ACEOF
11537 /* confdefs.h.  */
11538 _ACEOF
11539 cat confdefs.h >>conftest.$ac_ext
11540 cat >>conftest.$ac_ext <<_ACEOF
11541 /* end confdefs.h.  */
11542 #include <stdlib.h>
11543 #include <stdarg.h>
11544 #include <string.h>
11545 #include <float.h>
11546
11547 int
11548 main ()
11549 {
11550
11551   ;
11552   return 0;
11553 }
11554 _ACEOF
11555 rm -f conftest.$ac_objext
11556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11557   (eval $ac_compile) 2>conftest.er1
11558   ac_status=$?
11559   grep -v '^ *+' conftest.er1 >conftest.err
11560   rm -f conftest.er1
11561   cat conftest.err >&5
11562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563   (exit $ac_status); } &&
11564          { ac_try='test -z "$ac_c_werror_flag"
11565                          || test ! -s conftest.err'
11566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11567   (eval $ac_try) 2>&5
11568   ac_status=$?
11569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570   (exit $ac_status); }; } &&
11571          { ac_try='test -s conftest.$ac_objext'
11572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11573   (eval $ac_try) 2>&5
11574   ac_status=$?
11575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576   (exit $ac_status); }; }; then
11577   ac_cv_header_stdc=yes
11578 else
11579   echo "$as_me: failed program was:" >&5
11580 sed 's/^/| /' conftest.$ac_ext >&5
11581
11582 ac_cv_header_stdc=no
11583 fi
11584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11585
11586 if test $ac_cv_header_stdc = yes; then
11587   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11588   cat >conftest.$ac_ext <<_ACEOF
11589 /* confdefs.h.  */
11590 _ACEOF
11591 cat confdefs.h >>conftest.$ac_ext
11592 cat >>conftest.$ac_ext <<_ACEOF
11593 /* end confdefs.h.  */
11594 #include <string.h>
11595
11596 _ACEOF
11597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11598   $EGREP "memchr" >/dev/null 2>&1; then
11599   :
11600 else
11601   ac_cv_header_stdc=no
11602 fi
11603 rm -f conftest*
11604
11605 fi
11606
11607 if test $ac_cv_header_stdc = yes; then
11608   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11609   cat >conftest.$ac_ext <<_ACEOF
11610 /* confdefs.h.  */
11611 _ACEOF
11612 cat confdefs.h >>conftest.$ac_ext
11613 cat >>conftest.$ac_ext <<_ACEOF
11614 /* end confdefs.h.  */
11615 #include <stdlib.h>
11616
11617 _ACEOF
11618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11619   $EGREP "free" >/dev/null 2>&1; then
11620   :
11621 else
11622   ac_cv_header_stdc=no
11623 fi
11624 rm -f conftest*
11625
11626 fi
11627
11628 if test $ac_cv_header_stdc = yes; then
11629   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11630   if test "$cross_compiling" = yes; then
11631   :
11632 else
11633   cat >conftest.$ac_ext <<_ACEOF
11634 /* confdefs.h.  */
11635 _ACEOF
11636 cat confdefs.h >>conftest.$ac_ext
11637 cat >>conftest.$ac_ext <<_ACEOF
11638 /* end confdefs.h.  */
11639 #include <ctype.h>
11640 #if ((' ' & 0x0FF) == 0x020)
11641 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11642 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11643 #else
11644 # define ISLOWER(c) \
11645                    (('a' <= (c) && (c) <= 'i') \
11646                      || ('j' <= (c) && (c) <= 'r') \
11647                      || ('s' <= (c) && (c) <= 'z'))
11648 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11649 #endif
11650
11651 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11652 int
11653 main ()
11654 {
11655   int i;
11656   for (i = 0; i < 256; i++)
11657     if (XOR (islower (i), ISLOWER (i))
11658         || toupper (i) != TOUPPER (i))
11659       exit(2);
11660   exit (0);
11661 }
11662 _ACEOF
11663 rm -f conftest$ac_exeext
11664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11665   (eval $ac_link) 2>&5
11666   ac_status=$?
11667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11670   (eval $ac_try) 2>&5
11671   ac_status=$?
11672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673   (exit $ac_status); }; }; then
11674   :
11675 else
11676   echo "$as_me: program exited with status $ac_status" >&5
11677 echo "$as_me: failed program was:" >&5
11678 sed 's/^/| /' conftest.$ac_ext >&5
11679
11680 ( exit $ac_status )
11681 ac_cv_header_stdc=no
11682 fi
11683 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11684 fi
11685 fi
11686 fi
11687 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11688 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11689 if test $ac_cv_header_stdc = yes; then
11690
11691 cat >>confdefs.h <<\_ACEOF
11692 #define STDC_HEADERS 1
11693 _ACEOF
11694
11695 fi
11696
11697
11698
11699
11700
11701 for ac_header in unistd.h locale.h sys/ioctl.h iconv.h
11702 do
11703 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11704 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11705   echo "$as_me:$LINENO: checking for $ac_header" >&5
11706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11707 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11708   echo $ECHO_N "(cached) $ECHO_C" >&6
11709 fi
11710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11711 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11712 else
11713   # Is the header compilable?
11714 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11715 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11716 cat >conftest.$ac_ext <<_ACEOF
11717 /* confdefs.h.  */
11718 _ACEOF
11719 cat confdefs.h >>conftest.$ac_ext
11720 cat >>conftest.$ac_ext <<_ACEOF
11721 /* end confdefs.h.  */
11722 $ac_includes_default
11723 #include <$ac_header>
11724 _ACEOF
11725 rm -f conftest.$ac_objext
11726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11727   (eval $ac_compile) 2>conftest.er1
11728   ac_status=$?
11729   grep -v '^ *+' conftest.er1 >conftest.err
11730   rm -f conftest.er1
11731   cat conftest.err >&5
11732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733   (exit $ac_status); } &&
11734          { ac_try='test -z "$ac_c_werror_flag"
11735                          || test ! -s conftest.err'
11736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11737   (eval $ac_try) 2>&5
11738   ac_status=$?
11739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740   (exit $ac_status); }; } &&
11741          { ac_try='test -s conftest.$ac_objext'
11742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11743   (eval $ac_try) 2>&5
11744   ac_status=$?
11745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746   (exit $ac_status); }; }; then
11747   ac_header_compiler=yes
11748 else
11749   echo "$as_me: failed program was:" >&5
11750 sed 's/^/| /' conftest.$ac_ext >&5
11751
11752 ac_header_compiler=no
11753 fi
11754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11755 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11756 echo "${ECHO_T}$ac_header_compiler" >&6
11757
11758 # Is the header present?
11759 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11760 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11761 cat >conftest.$ac_ext <<_ACEOF
11762 /* confdefs.h.  */
11763 _ACEOF
11764 cat confdefs.h >>conftest.$ac_ext
11765 cat >>conftest.$ac_ext <<_ACEOF
11766 /* end confdefs.h.  */
11767 #include <$ac_header>
11768 _ACEOF
11769 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11770   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11771   ac_status=$?
11772   grep -v '^ *+' conftest.er1 >conftest.err
11773   rm -f conftest.er1
11774   cat conftest.err >&5
11775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776   (exit $ac_status); } >/dev/null; then
11777   if test -s conftest.err; then
11778     ac_cpp_err=$ac_c_preproc_warn_flag
11779     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11780   else
11781     ac_cpp_err=
11782   fi
11783 else
11784   ac_cpp_err=yes
11785 fi
11786 if test -z "$ac_cpp_err"; then
11787   ac_header_preproc=yes
11788 else
11789   echo "$as_me: failed program was:" >&5
11790 sed 's/^/| /' conftest.$ac_ext >&5
11791
11792   ac_header_preproc=no
11793 fi
11794 rm -f conftest.err conftest.$ac_ext
11795 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11796 echo "${ECHO_T}$ac_header_preproc" >&6
11797
11798 # So?  What about this header?
11799 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11800   yes:no: )
11801     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11802 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11803     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11804 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11805     ac_header_preproc=yes
11806     ;;
11807   no:yes:* )
11808     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11809 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11810     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11811 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11812     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11813 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11814     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11815 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11816     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11817 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11818     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11819 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11820     (
11821       cat <<\_ASBOX
11822 ## ------------------------------------------ ##
11823 ## Report this to the AC_PACKAGE_NAME lists.  ##
11824 ## ------------------------------------------ ##
11825 _ASBOX
11826     ) |
11827       sed "s/^/$as_me: WARNING:     /" >&2
11828     ;;
11829 esac
11830 echo "$as_me:$LINENO: checking for $ac_header" >&5
11831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11832 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11833   echo $ECHO_N "(cached) $ECHO_C" >&6
11834 else
11835   eval "$as_ac_Header=\$ac_header_preproc"
11836 fi
11837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11838 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11839
11840 fi
11841 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11842   cat >>confdefs.h <<_ACEOF
11843 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11844 _ACEOF
11845
11846 fi
11847
11848 done
11849
11850 if test "${ac_cv_header_stdarg_h+set}" = set; then
11851   echo "$as_me:$LINENO: checking for stdarg.h" >&5
11852 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
11853 if test "${ac_cv_header_stdarg_h+set}" = set; then
11854   echo $ECHO_N "(cached) $ECHO_C" >&6
11855 fi
11856 echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
11857 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
11858 else
11859   # Is the header compilable?
11860 echo "$as_me:$LINENO: checking stdarg.h usability" >&5
11861 echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6
11862 cat >conftest.$ac_ext <<_ACEOF
11863 /* confdefs.h.  */
11864 _ACEOF
11865 cat confdefs.h >>conftest.$ac_ext
11866 cat >>conftest.$ac_ext <<_ACEOF
11867 /* end confdefs.h.  */
11868 $ac_includes_default
11869 #include <stdarg.h>
11870 _ACEOF
11871 rm -f conftest.$ac_objext
11872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11873   (eval $ac_compile) 2>conftest.er1
11874   ac_status=$?
11875   grep -v '^ *+' conftest.er1 >conftest.err
11876   rm -f conftest.er1
11877   cat conftest.err >&5
11878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879   (exit $ac_status); } &&
11880          { ac_try='test -z "$ac_c_werror_flag"
11881                          || test ! -s conftest.err'
11882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11883   (eval $ac_try) 2>&5
11884   ac_status=$?
11885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886   (exit $ac_status); }; } &&
11887          { ac_try='test -s conftest.$ac_objext'
11888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11889   (eval $ac_try) 2>&5
11890   ac_status=$?
11891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892   (exit $ac_status); }; }; then
11893   ac_header_compiler=yes
11894 else
11895   echo "$as_me: failed program was:" >&5
11896 sed 's/^/| /' conftest.$ac_ext >&5
11897
11898 ac_header_compiler=no
11899 fi
11900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11901 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11902 echo "${ECHO_T}$ac_header_compiler" >&6
11903
11904 # Is the header present?
11905 echo "$as_me:$LINENO: checking stdarg.h presence" >&5
11906 echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6
11907 cat >conftest.$ac_ext <<_ACEOF
11908 /* confdefs.h.  */
11909 _ACEOF
11910 cat confdefs.h >>conftest.$ac_ext
11911 cat >>conftest.$ac_ext <<_ACEOF
11912 /* end confdefs.h.  */
11913 #include <stdarg.h>
11914 _ACEOF
11915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11916   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11917   ac_status=$?
11918   grep -v '^ *+' conftest.er1 >conftest.err
11919   rm -f conftest.er1
11920   cat conftest.err >&5
11921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922   (exit $ac_status); } >/dev/null; then
11923   if test -s conftest.err; then
11924     ac_cpp_err=$ac_c_preproc_warn_flag
11925     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11926   else
11927     ac_cpp_err=
11928   fi
11929 else
11930   ac_cpp_err=yes
11931 fi
11932 if test -z "$ac_cpp_err"; then
11933   ac_header_preproc=yes
11934 else
11935   echo "$as_me: failed program was:" >&5
11936 sed 's/^/| /' conftest.$ac_ext >&5
11937
11938   ac_header_preproc=no
11939 fi
11940 rm -f conftest.err conftest.$ac_ext
11941 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11942 echo "${ECHO_T}$ac_header_preproc" >&6
11943
11944 # So?  What about this header?
11945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11946   yes:no: )
11947     { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
11948 echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11949     { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
11950 echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
11951     ac_header_preproc=yes
11952     ;;
11953   no:yes:* )
11954     { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
11955 echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
11956     { echo "$as_me:$LINENO: WARNING: stdarg.h:     check for missing prerequisite headers?" >&5
11957 echo "$as_me: WARNING: stdarg.h:     check for missing prerequisite headers?" >&2;}
11958     { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
11959 echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
11960     { echo "$as_me:$LINENO: WARNING: stdarg.h:     section \"Present But Cannot Be Compiled\"" >&5
11961 echo "$as_me: WARNING: stdarg.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11962     { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
11963 echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
11964     { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
11965 echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;}
11966     (
11967       cat <<\_ASBOX
11968 ## ------------------------------------------ ##
11969 ## Report this to the AC_PACKAGE_NAME lists.  ##
11970 ## ------------------------------------------ ##
11971 _ASBOX
11972     ) |
11973       sed "s/^/$as_me: WARNING:     /" >&2
11974     ;;
11975 esac
11976 echo "$as_me:$LINENO: checking for stdarg.h" >&5
11977 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
11978 if test "${ac_cv_header_stdarg_h+set}" = set; then
11979   echo $ECHO_N "(cached) $ECHO_C" >&6
11980 else
11981   ac_cv_header_stdarg_h=$ac_header_preproc
11982 fi
11983 echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
11984 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
11985
11986 fi
11987 if test $ac_cv_header_stdarg_h = yes; then
11988
11989 cat >>confdefs.h <<\_ACEOF
11990 #define HAVE_STDARG_H 1
11991 _ACEOF
11992
11993 else
11994   { { echo "$as_me:$LINENO: error: *** stdarg.h is missing on your system ***" >&5
11995 echo "$as_me: error: *** stdarg.h is missing on your system ***" >&2;}
11996    { (exit 1); exit 1; }; }
11997 fi
11998
11999
12000 echo "$as_me:$LINENO: checking for working strcoll" >&5
12001 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
12002 if test "${ac_cv_func_strcoll_works+set}" = set; then
12003   echo $ECHO_N "(cached) $ECHO_C" >&6
12004 else
12005   if test "$cross_compiling" = yes; then
12006   ac_cv_func_strcoll_works=no
12007 else
12008   cat >conftest.$ac_ext <<_ACEOF
12009 /* confdefs.h.  */
12010 _ACEOF
12011 cat confdefs.h >>conftest.$ac_ext
12012 cat >>conftest.$ac_ext <<_ACEOF
12013 /* end confdefs.h.  */
12014 $ac_includes_default
12015 int
12016 main ()
12017 {
12018 exit (strcoll ("abc", "def") >= 0 ||
12019          strcoll ("ABC", "DEF") >= 0 ||
12020          strcoll ("123", "456") >= 0)
12021   ;
12022   return 0;
12023 }
12024 _ACEOF
12025 rm -f conftest$ac_exeext
12026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12027   (eval $ac_link) 2>&5
12028   ac_status=$?
12029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12032   (eval $ac_try) 2>&5
12033   ac_status=$?
12034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035   (exit $ac_status); }; }; then
12036   ac_cv_func_strcoll_works=yes
12037 else
12038   echo "$as_me: program exited with status $ac_status" >&5
12039 echo "$as_me: failed program was:" >&5
12040 sed 's/^/| /' conftest.$ac_ext >&5
12041
12042 ( exit $ac_status )
12043 ac_cv_func_strcoll_works=no
12044 fi
12045 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12046 fi
12047 fi
12048 echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
12049 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
12050 if test $ac_cv_func_strcoll_works = yes; then
12051
12052 cat >>confdefs.h <<\_ACEOF
12053 #define HAVE_STRCOLL 1
12054 _ACEOF
12055
12056 fi
12057
12058
12059 for ac_func in setlocale
12060 do
12061 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12062 echo "$as_me:$LINENO: checking for $ac_func" >&5
12063 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12064 if eval "test \"\${$as_ac_var+set}\" = set"; then
12065   echo $ECHO_N "(cached) $ECHO_C" >&6
12066 else
12067   cat >conftest.$ac_ext <<_ACEOF
12068 /* confdefs.h.  */
12069 _ACEOF
12070 cat confdefs.h >>conftest.$ac_ext
12071 cat >>conftest.$ac_ext <<_ACEOF
12072 /* end confdefs.h.  */
12073 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12074    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12075 #define $ac_func innocuous_$ac_func
12076
12077 /* System header to define __stub macros and hopefully few prototypes,
12078     which can conflict with char $ac_func (); below.
12079     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12080     <limits.h> exists even on freestanding compilers.  */
12081
12082 #ifdef __STDC__
12083 # include <limits.h>
12084 #else
12085 # include <assert.h>
12086 #endif
12087
12088 #undef $ac_func
12089
12090 /* Override any gcc2 internal prototype to avoid an error.  */
12091 #ifdef __cplusplus
12092 extern "C"
12093 {
12094 #endif
12095 /* We use char because int might match the return type of a gcc2
12096    builtin and then its argument prototype would still apply.  */
12097 char $ac_func ();
12098 /* The GNU C library defines this for functions which it implements
12099     to always fail with ENOSYS.  Some functions are actually named
12100     something starting with __ and the normal name is an alias.  */
12101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12102 choke me
12103 #else
12104 char (*f) () = $ac_func;
12105 #endif
12106 #ifdef __cplusplus
12107 }
12108 #endif
12109
12110 int
12111 main ()
12112 {
12113 return f != $ac_func;
12114   ;
12115   return 0;
12116 }
12117 _ACEOF
12118 rm -f conftest.$ac_objext conftest$ac_exeext
12119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12120   (eval $ac_link) 2>conftest.er1
12121   ac_status=$?
12122   grep -v '^ *+' conftest.er1 >conftest.err
12123   rm -f conftest.er1
12124   cat conftest.err >&5
12125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126   (exit $ac_status); } &&
12127          { ac_try='test -z "$ac_c_werror_flag"
12128                          || test ! -s conftest.err'
12129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12130   (eval $ac_try) 2>&5
12131   ac_status=$?
12132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133   (exit $ac_status); }; } &&
12134          { ac_try='test -s conftest$ac_exeext'
12135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12136   (eval $ac_try) 2>&5
12137   ac_status=$?
12138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139   (exit $ac_status); }; }; then
12140   eval "$as_ac_var=yes"
12141 else
12142   echo "$as_me: failed program was:" >&5
12143 sed 's/^/| /' conftest.$ac_ext >&5
12144
12145 eval "$as_ac_var=no"
12146 fi
12147 rm -f conftest.err conftest.$ac_objext \
12148       conftest$ac_exeext conftest.$ac_ext
12149 fi
12150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12151 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12152 if test `eval echo '${'$as_ac_var'}'` = yes; then
12153   cat >>confdefs.h <<_ACEOF
12154 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12155 _ACEOF
12156
12157 fi
12158 done
12159
12160
12161 ac_widec_funcs=yes
12162 if test "${ac_cv_header_wchar_h+set}" = set; then
12163   echo "$as_me:$LINENO: checking for wchar.h" >&5
12164 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
12165 if test "${ac_cv_header_wchar_h+set}" = set; then
12166   echo $ECHO_N "(cached) $ECHO_C" >&6
12167 fi
12168 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
12169 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
12170 else
12171   # Is the header compilable?
12172 echo "$as_me:$LINENO: checking wchar.h usability" >&5
12173 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6
12174 cat >conftest.$ac_ext <<_ACEOF
12175 /* confdefs.h.  */
12176 _ACEOF
12177 cat confdefs.h >>conftest.$ac_ext
12178 cat >>conftest.$ac_ext <<_ACEOF
12179 /* end confdefs.h.  */
12180 $ac_includes_default
12181 #include <wchar.h>
12182 _ACEOF
12183 rm -f conftest.$ac_objext
12184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12185   (eval $ac_compile) 2>conftest.er1
12186   ac_status=$?
12187   grep -v '^ *+' conftest.er1 >conftest.err
12188   rm -f conftest.er1
12189   cat conftest.err >&5
12190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191   (exit $ac_status); } &&
12192          { ac_try='test -z "$ac_c_werror_flag"
12193                          || test ! -s conftest.err'
12194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12195   (eval $ac_try) 2>&5
12196   ac_status=$?
12197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198   (exit $ac_status); }; } &&
12199          { ac_try='test -s conftest.$ac_objext'
12200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12201   (eval $ac_try) 2>&5
12202   ac_status=$?
12203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204   (exit $ac_status); }; }; then
12205   ac_header_compiler=yes
12206 else
12207   echo "$as_me: failed program was:" >&5
12208 sed 's/^/| /' conftest.$ac_ext >&5
12209
12210 ac_header_compiler=no
12211 fi
12212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12213 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12214 echo "${ECHO_T}$ac_header_compiler" >&6
12215
12216 # Is the header present?
12217 echo "$as_me:$LINENO: checking wchar.h presence" >&5
12218 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6
12219 cat >conftest.$ac_ext <<_ACEOF
12220 /* confdefs.h.  */
12221 _ACEOF
12222 cat confdefs.h >>conftest.$ac_ext
12223 cat >>conftest.$ac_ext <<_ACEOF
12224 /* end confdefs.h.  */
12225 #include <wchar.h>
12226 _ACEOF
12227 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12228   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12229   ac_status=$?
12230   grep -v '^ *+' conftest.er1 >conftest.err
12231   rm -f conftest.er1
12232   cat conftest.err >&5
12233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234   (exit $ac_status); } >/dev/null; then
12235   if test -s conftest.err; then
12236     ac_cpp_err=$ac_c_preproc_warn_flag
12237     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12238   else
12239     ac_cpp_err=
12240   fi
12241 else
12242   ac_cpp_err=yes
12243 fi
12244 if test -z "$ac_cpp_err"; then
12245   ac_header_preproc=yes
12246 else
12247   echo "$as_me: failed program was:" >&5
12248 sed 's/^/| /' conftest.$ac_ext >&5
12249
12250   ac_header_preproc=no
12251 fi
12252 rm -f conftest.err conftest.$ac_ext
12253 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12254 echo "${ECHO_T}$ac_header_preproc" >&6
12255
12256 # So?  What about this header?
12257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12258   yes:no: )
12259     { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
12260 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12261     { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
12262 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
12263     ac_header_preproc=yes
12264     ;;
12265   no:yes:* )
12266     { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
12267 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
12268     { echo "$as_me:$LINENO: WARNING: wchar.h:     check for missing prerequisite headers?" >&5
12269 echo "$as_me: WARNING: wchar.h:     check for missing prerequisite headers?" >&2;}
12270     { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
12271 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
12272     { echo "$as_me:$LINENO: WARNING: wchar.h:     section \"Present But Cannot Be Compiled\"" >&5
12273 echo "$as_me: WARNING: wchar.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12274     { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
12275 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
12276     { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
12277 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
12278     (
12279       cat <<\_ASBOX
12280 ## ------------------------------------------ ##
12281 ## Report this to the AC_PACKAGE_NAME lists.  ##
12282 ## ------------------------------------------ ##
12283 _ASBOX
12284     ) |
12285       sed "s/^/$as_me: WARNING:     /" >&2
12286     ;;
12287 esac
12288 echo "$as_me:$LINENO: checking for wchar.h" >&5
12289 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6
12290 if test "${ac_cv_header_wchar_h+set}" = set; then
12291   echo $ECHO_N "(cached) $ECHO_C" >&6
12292 else
12293   ac_cv_header_wchar_h=$ac_header_preproc
12294 fi
12295 echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
12296 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6
12297
12298 fi
12299 if test $ac_cv_header_wchar_h = yes; then
12300
12301         ac_have_wchar_h=yes
12302
12303 cat >>confdefs.h <<\_ACEOF
12304 #define HAVE_WCHAR_H 1
12305 _ACEOF
12306
12307 else
12308   ac_have_wchar_h=no
12309 fi
12310
12311
12312
12313
12314
12315
12316 for ac_func in mbtowc wcwidth mbrtowc mbsinit
12317 do
12318 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12319 echo "$as_me:$LINENO: checking for $ac_func" >&5
12320 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12321 if eval "test \"\${$as_ac_var+set}\" = set"; then
12322   echo $ECHO_N "(cached) $ECHO_C" >&6
12323 else
12324   cat >conftest.$ac_ext <<_ACEOF
12325 /* confdefs.h.  */
12326 _ACEOF
12327 cat confdefs.h >>conftest.$ac_ext
12328 cat >>conftest.$ac_ext <<_ACEOF
12329 /* end confdefs.h.  */
12330 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12331    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12332 #define $ac_func innocuous_$ac_func
12333
12334 /* System header to define __stub macros and hopefully few prototypes,
12335     which can conflict with char $ac_func (); below.
12336     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12337     <limits.h> exists even on freestanding compilers.  */
12338
12339 #ifdef __STDC__
12340 # include <limits.h>
12341 #else
12342 # include <assert.h>
12343 #endif
12344
12345 #undef $ac_func
12346
12347 /* Override any gcc2 internal prototype to avoid an error.  */
12348 #ifdef __cplusplus
12349 extern "C"
12350 {
12351 #endif
12352 /* We use char because int might match the return type of a gcc2
12353    builtin and then its argument prototype would still apply.  */
12354 char $ac_func ();
12355 /* The GNU C library defines this for functions which it implements
12356     to always fail with ENOSYS.  Some functions are actually named
12357     something starting with __ and the normal name is an alias.  */
12358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12359 choke me
12360 #else
12361 char (*f) () = $ac_func;
12362 #endif
12363 #ifdef __cplusplus
12364 }
12365 #endif
12366
12367 int
12368 main ()
12369 {
12370 return f != $ac_func;
12371   ;
12372   return 0;
12373 }
12374 _ACEOF
12375 rm -f conftest.$ac_objext conftest$ac_exeext
12376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12377   (eval $ac_link) 2>conftest.er1
12378   ac_status=$?
12379   grep -v '^ *+' conftest.er1 >conftest.err
12380   rm -f conftest.er1
12381   cat conftest.err >&5
12382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383   (exit $ac_status); } &&
12384          { ac_try='test -z "$ac_c_werror_flag"
12385                          || test ! -s conftest.err'
12386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12387   (eval $ac_try) 2>&5
12388   ac_status=$?
12389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390   (exit $ac_status); }; } &&
12391          { ac_try='test -s conftest$ac_exeext'
12392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12393   (eval $ac_try) 2>&5
12394   ac_status=$?
12395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396   (exit $ac_status); }; }; then
12397   eval "$as_ac_var=yes"
12398 else
12399   echo "$as_me: failed program was:" >&5
12400 sed 's/^/| /' conftest.$ac_ext >&5
12401
12402 eval "$as_ac_var=no"
12403 fi
12404 rm -f conftest.err conftest.$ac_objext \
12405       conftest$ac_exeext conftest.$ac_ext
12406 fi
12407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12408 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12409 if test `eval echo '${'$as_ac_var'}'` = yes; then
12410   cat >>confdefs.h <<_ACEOF
12411 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12412 _ACEOF
12413
12414 else
12415   ac_widec_funcs=no
12416 fi
12417 done
12418
12419 echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5
12420 echo $ECHO_N "checking whether wcwidth is declared... $ECHO_C" >&6
12421 if test "${ac_cv_have_decl_wcwidth+set}" = set; then
12422   echo $ECHO_N "(cached) $ECHO_C" >&6
12423 else
12424   cat >conftest.$ac_ext <<_ACEOF
12425 /* confdefs.h.  */
12426 _ACEOF
12427 cat confdefs.h >>conftest.$ac_ext
12428 cat >>conftest.$ac_ext <<_ACEOF
12429 /* end confdefs.h.  */
12430 $ac_includes_default
12431 int
12432 main ()
12433 {
12434 #ifndef wcwidth
12435   char *p = (char *) wcwidth;
12436 #endif
12437
12438   ;
12439   return 0;
12440 }
12441 _ACEOF
12442 rm -f conftest.$ac_objext
12443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12444   (eval $ac_compile) 2>conftest.er1
12445   ac_status=$?
12446   grep -v '^ *+' conftest.er1 >conftest.err
12447   rm -f conftest.er1
12448   cat conftest.err >&5
12449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450   (exit $ac_status); } &&
12451          { ac_try='test -z "$ac_c_werror_flag"
12452                          || test ! -s conftest.err'
12453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12454   (eval $ac_try) 2>&5
12455   ac_status=$?
12456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457   (exit $ac_status); }; } &&
12458          { ac_try='test -s conftest.$ac_objext'
12459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12460   (eval $ac_try) 2>&5
12461   ac_status=$?
12462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463   (exit $ac_status); }; }; then
12464   ac_cv_have_decl_wcwidth=yes
12465 else
12466   echo "$as_me: failed program was:" >&5
12467 sed 's/^/| /' conftest.$ac_ext >&5
12468
12469 ac_cv_have_decl_wcwidth=no
12470 fi
12471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12472 fi
12473 echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5
12474 echo "${ECHO_T}$ac_cv_have_decl_wcwidth" >&6
12475 if test $ac_cv_have_decl_wcwidth = yes; then
12476
12477 cat >>confdefs.h <<_ACEOF
12478 #define HAVE_DECL_WCWIDTH 1
12479 _ACEOF
12480
12481
12482 else
12483   cat >>confdefs.h <<_ACEOF
12484 #define HAVE_DECL_WCWIDTH 0
12485 _ACEOF
12486
12487
12488 fi
12489
12490
12491 echo "$as_me:$LINENO: checking for wchar_t" >&5
12492 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
12493 if test "${ac_cv_type_wchar_t+set}" = set; then
12494   echo $ECHO_N "(cached) $ECHO_C" >&6
12495 else
12496   cat >conftest.$ac_ext <<_ACEOF
12497 /* confdefs.h.  */
12498 _ACEOF
12499 cat confdefs.h >>conftest.$ac_ext
12500 cat >>conftest.$ac_ext <<_ACEOF
12501 /* end confdefs.h.  */
12502 $ac_includes_default
12503 int
12504 main ()
12505 {
12506 if ((wchar_t *) 0)
12507   return 0;
12508 if (sizeof (wchar_t))
12509   return 0;
12510   ;
12511   return 0;
12512 }
12513 _ACEOF
12514 rm -f conftest.$ac_objext
12515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12516   (eval $ac_compile) 2>conftest.er1
12517   ac_status=$?
12518   grep -v '^ *+' conftest.er1 >conftest.err
12519   rm -f conftest.er1
12520   cat conftest.err >&5
12521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522   (exit $ac_status); } &&
12523          { ac_try='test -z "$ac_c_werror_flag"
12524                          || test ! -s conftest.err'
12525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12526   (eval $ac_try) 2>&5
12527   ac_status=$?
12528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529   (exit $ac_status); }; } &&
12530          { ac_try='test -s conftest.$ac_objext'
12531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12532   (eval $ac_try) 2>&5
12533   ac_status=$?
12534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535   (exit $ac_status); }; }; then
12536   ac_cv_type_wchar_t=yes
12537 else
12538   echo "$as_me: failed program was:" >&5
12539 sed 's/^/| /' conftest.$ac_ext >&5
12540
12541 ac_cv_type_wchar_t=no
12542 fi
12543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12544 fi
12545 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
12546 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
12547 if test $ac_cv_type_wchar_t = yes; then
12548   :
12549 else
12550   ac_widec_funcs=no
12551 fi
12552
12553
12554 if test x$ac_widec_funcs = xyes -a x$ac_have_wchar_h = xyes; then
12555         ac_widec_possible=yes
12556 else
12557         ac_widec_possible=no
12558 fi
12559
12560
12561 abook_cv_curses=/usr
12562
12563 # Check whether --with-curses or --without-curses was given.
12564 if test "${with_curses+set}" = set; then
12565   withval="$with_curses"
12566   if test $withval != yes; then
12567                 abook_cv_curses=$withval
12568         fi
12569         if test x$abook_cv_curses != x/usr; then
12570                 LDFLAGS="-L${abook_cv_curses}/lib $LDFLAGS"
12571                 CPPFLAGS="$CPPFLAGS -I${abook_cv_curses}/include"
12572         fi
12573 fi;
12574
12575 echo "$as_me:$LINENO: checking for initscr in -lncursesw" >&5
12576 echo $ECHO_N "checking for initscr in -lncursesw... $ECHO_C" >&6
12577 if test "${ac_cv_lib_ncursesw_initscr+set}" = set; then
12578   echo $ECHO_N "(cached) $ECHO_C" >&6
12579 else
12580   ac_check_lib_save_LIBS=$LIBS
12581 LIBS="-lncursesw  $LIBS"
12582 cat >conftest.$ac_ext <<_ACEOF
12583 /* confdefs.h.  */
12584 _ACEOF
12585 cat confdefs.h >>conftest.$ac_ext
12586 cat >>conftest.$ac_ext <<_ACEOF
12587 /* end confdefs.h.  */
12588
12589 /* Override any gcc2 internal prototype to avoid an error.  */
12590 #ifdef __cplusplus
12591 extern "C"
12592 #endif
12593 /* We use char because int might match the return type of a gcc2
12594    builtin and then its argument prototype would still apply.  */
12595 char initscr ();
12596 int
12597 main ()
12598 {
12599 initscr ();
12600   ;
12601   return 0;
12602 }
12603 _ACEOF
12604 rm -f conftest.$ac_objext conftest$ac_exeext
12605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12606   (eval $ac_link) 2>conftest.er1
12607   ac_status=$?
12608   grep -v '^ *+' conftest.er1 >conftest.err
12609   rm -f conftest.er1
12610   cat conftest.err >&5
12611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612   (exit $ac_status); } &&
12613          { ac_try='test -z "$ac_c_werror_flag"
12614                          || test ! -s conftest.err'
12615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12616   (eval $ac_try) 2>&5
12617   ac_status=$?
12618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619   (exit $ac_status); }; } &&
12620          { ac_try='test -s conftest$ac_exeext'
12621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12622   (eval $ac_try) 2>&5
12623   ac_status=$?
12624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625   (exit $ac_status); }; }; then
12626   ac_cv_lib_ncursesw_initscr=yes
12627 else
12628   echo "$as_me: failed program was:" >&5
12629 sed 's/^/| /' conftest.$ac_ext >&5
12630
12631 ac_cv_lib_ncursesw_initscr=no
12632 fi
12633 rm -f conftest.err conftest.$ac_objext \
12634       conftest$ac_exeext conftest.$ac_ext
12635 LIBS=$ac_check_lib_save_LIBS
12636 fi
12637 echo "$as_me:$LINENO: result: $ac_cv_lib_ncursesw_initscr" >&5
12638 echo "${ECHO_T}$ac_cv_lib_ncursesw_initscr" >&6
12639 if test $ac_cv_lib_ncursesw_initscr = yes; then
12640   LIBS="$LIBS -lncursesw"
12641         if test x$abook_cv_curses = x/usr -a -d /usr/include/ncursesw; then
12642                 CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
12643         fi
12644
12645 for ac_header in ncurses.h
12646 do
12647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12649   echo "$as_me:$LINENO: checking for $ac_header" >&5
12650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12652   echo $ECHO_N "(cached) $ECHO_C" >&6
12653 fi
12654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12655 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12656 else
12657   # Is the header compilable?
12658 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12660 cat >conftest.$ac_ext <<_ACEOF
12661 /* confdefs.h.  */
12662 _ACEOF
12663 cat confdefs.h >>conftest.$ac_ext
12664 cat >>conftest.$ac_ext <<_ACEOF
12665 /* end confdefs.h.  */
12666 $ac_includes_default
12667 #include <$ac_header>
12668 _ACEOF
12669 rm -f conftest.$ac_objext
12670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12671   (eval $ac_compile) 2>conftest.er1
12672   ac_status=$?
12673   grep -v '^ *+' conftest.er1 >conftest.err
12674   rm -f conftest.er1
12675   cat conftest.err >&5
12676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677   (exit $ac_status); } &&
12678          { ac_try='test -z "$ac_c_werror_flag"
12679                          || test ! -s conftest.err'
12680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12681   (eval $ac_try) 2>&5
12682   ac_status=$?
12683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684   (exit $ac_status); }; } &&
12685          { ac_try='test -s conftest.$ac_objext'
12686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12687   (eval $ac_try) 2>&5
12688   ac_status=$?
12689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690   (exit $ac_status); }; }; then
12691   ac_header_compiler=yes
12692 else
12693   echo "$as_me: failed program was:" >&5
12694 sed 's/^/| /' conftest.$ac_ext >&5
12695
12696 ac_header_compiler=no
12697 fi
12698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12699 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12700 echo "${ECHO_T}$ac_header_compiler" >&6
12701
12702 # Is the header present?
12703 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12704 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12705 cat >conftest.$ac_ext <<_ACEOF
12706 /* confdefs.h.  */
12707 _ACEOF
12708 cat confdefs.h >>conftest.$ac_ext
12709 cat >>conftest.$ac_ext <<_ACEOF
12710 /* end confdefs.h.  */
12711 #include <$ac_header>
12712 _ACEOF
12713 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12714   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12715   ac_status=$?
12716   grep -v '^ *+' conftest.er1 >conftest.err
12717   rm -f conftest.er1
12718   cat conftest.err >&5
12719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720   (exit $ac_status); } >/dev/null; then
12721   if test -s conftest.err; then
12722     ac_cpp_err=$ac_c_preproc_warn_flag
12723     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12724   else
12725     ac_cpp_err=
12726   fi
12727 else
12728   ac_cpp_err=yes
12729 fi
12730 if test -z "$ac_cpp_err"; then
12731   ac_header_preproc=yes
12732 else
12733   echo "$as_me: failed program was:" >&5
12734 sed 's/^/| /' conftest.$ac_ext >&5
12735
12736   ac_header_preproc=no
12737 fi
12738 rm -f conftest.err conftest.$ac_ext
12739 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12740 echo "${ECHO_T}$ac_header_preproc" >&6
12741
12742 # So?  What about this header?
12743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12744   yes:no: )
12745     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12746 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12747     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12748 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12749     ac_header_preproc=yes
12750     ;;
12751   no:yes:* )
12752     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12753 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12754     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12755 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12756     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12757 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12758     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12759 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12760     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12761 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12762     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12763 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12764     (
12765       cat <<\_ASBOX
12766 ## ------------------------------------------ ##
12767 ## Report this to the AC_PACKAGE_NAME lists.  ##
12768 ## ------------------------------------------ ##
12769 _ASBOX
12770     ) |
12771       sed "s/^/$as_me: WARNING:     /" >&2
12772     ;;
12773 esac
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 else
12779   eval "$as_ac_Header=\$ac_header_preproc"
12780 fi
12781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12783
12784 fi
12785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12786   cat >>confdefs.h <<_ACEOF
12787 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12788 _ACEOF
12789
12790 fi
12791
12792 done
12793
12794 else
12795
12796         ac_widec_possible=no
12797         echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
12798 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
12799 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
12800   echo $ECHO_N "(cached) $ECHO_C" >&6
12801 else
12802   ac_check_lib_save_LIBS=$LIBS
12803 LIBS="-lncurses  $LIBS"
12804 cat >conftest.$ac_ext <<_ACEOF
12805 /* confdefs.h.  */
12806 _ACEOF
12807 cat confdefs.h >>conftest.$ac_ext
12808 cat >>conftest.$ac_ext <<_ACEOF
12809 /* end confdefs.h.  */
12810
12811 /* Override any gcc2 internal prototype to avoid an error.  */
12812 #ifdef __cplusplus
12813 extern "C"
12814 #endif
12815 /* We use char because int might match the return type of a gcc2
12816    builtin and then its argument prototype would still apply.  */
12817 char initscr ();
12818 int
12819 main ()
12820 {
12821 initscr ();
12822   ;
12823   return 0;
12824 }
12825 _ACEOF
12826 rm -f conftest.$ac_objext conftest$ac_exeext
12827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12828   (eval $ac_link) 2>conftest.er1
12829   ac_status=$?
12830   grep -v '^ *+' conftest.er1 >conftest.err
12831   rm -f conftest.er1
12832   cat conftest.err >&5
12833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834   (exit $ac_status); } &&
12835          { ac_try='test -z "$ac_c_werror_flag"
12836                          || test ! -s conftest.err'
12837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12838   (eval $ac_try) 2>&5
12839   ac_status=$?
12840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841   (exit $ac_status); }; } &&
12842          { ac_try='test -s conftest$ac_exeext'
12843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12844   (eval $ac_try) 2>&5
12845   ac_status=$?
12846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847   (exit $ac_status); }; }; then
12848   ac_cv_lib_ncurses_initscr=yes
12849 else
12850   echo "$as_me: failed program was:" >&5
12851 sed 's/^/| /' conftest.$ac_ext >&5
12852
12853 ac_cv_lib_ncurses_initscr=no
12854 fi
12855 rm -f conftest.err conftest.$ac_objext \
12856       conftest$ac_exeext conftest.$ac_ext
12857 LIBS=$ac_check_lib_save_LIBS
12858 fi
12859 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
12860 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
12861 if test $ac_cv_lib_ncurses_initscr = yes; then
12862   LIBS="$LIBS -lncurses"
12863                 if test x$abook_cv_curses = x/usr -a -d /usr/include/ncurses; then
12864                         CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
12865                 fi
12866
12867 for ac_header in ncurses.h
12868 do
12869 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12871   echo "$as_me:$LINENO: checking for $ac_header" >&5
12872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12874   echo $ECHO_N "(cached) $ECHO_C" >&6
12875 fi
12876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12877 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12878 else
12879   # Is the header compilable?
12880 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12881 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12882 cat >conftest.$ac_ext <<_ACEOF
12883 /* confdefs.h.  */
12884 _ACEOF
12885 cat confdefs.h >>conftest.$ac_ext
12886 cat >>conftest.$ac_ext <<_ACEOF
12887 /* end confdefs.h.  */
12888 $ac_includes_default
12889 #include <$ac_header>
12890 _ACEOF
12891 rm -f conftest.$ac_objext
12892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12893   (eval $ac_compile) 2>conftest.er1
12894   ac_status=$?
12895   grep -v '^ *+' conftest.er1 >conftest.err
12896   rm -f conftest.er1
12897   cat conftest.err >&5
12898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899   (exit $ac_status); } &&
12900          { ac_try='test -z "$ac_c_werror_flag"
12901                          || test ! -s conftest.err'
12902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12903   (eval $ac_try) 2>&5
12904   ac_status=$?
12905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906   (exit $ac_status); }; } &&
12907          { ac_try='test -s conftest.$ac_objext'
12908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12909   (eval $ac_try) 2>&5
12910   ac_status=$?
12911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912   (exit $ac_status); }; }; then
12913   ac_header_compiler=yes
12914 else
12915   echo "$as_me: failed program was:" >&5
12916 sed 's/^/| /' conftest.$ac_ext >&5
12917
12918 ac_header_compiler=no
12919 fi
12920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12921 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12922 echo "${ECHO_T}$ac_header_compiler" >&6
12923
12924 # Is the header present?
12925 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12926 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12927 cat >conftest.$ac_ext <<_ACEOF
12928 /* confdefs.h.  */
12929 _ACEOF
12930 cat confdefs.h >>conftest.$ac_ext
12931 cat >>conftest.$ac_ext <<_ACEOF
12932 /* end confdefs.h.  */
12933 #include <$ac_header>
12934 _ACEOF
12935 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12936   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12937   ac_status=$?
12938   grep -v '^ *+' conftest.er1 >conftest.err
12939   rm -f conftest.er1
12940   cat conftest.err >&5
12941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942   (exit $ac_status); } >/dev/null; then
12943   if test -s conftest.err; then
12944     ac_cpp_err=$ac_c_preproc_warn_flag
12945     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12946   else
12947     ac_cpp_err=
12948   fi
12949 else
12950   ac_cpp_err=yes
12951 fi
12952 if test -z "$ac_cpp_err"; then
12953   ac_header_preproc=yes
12954 else
12955   echo "$as_me: failed program was:" >&5
12956 sed 's/^/| /' conftest.$ac_ext >&5
12957
12958   ac_header_preproc=no
12959 fi
12960 rm -f conftest.err conftest.$ac_ext
12961 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12962 echo "${ECHO_T}$ac_header_preproc" >&6
12963
12964 # So?  What about this header?
12965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12966   yes:no: )
12967     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12968 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12969     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12970 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12971     ac_header_preproc=yes
12972     ;;
12973   no:yes:* )
12974     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12975 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12976     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12977 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12978     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12979 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12980     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12981 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12982     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12983 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12984     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12985 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12986     (
12987       cat <<\_ASBOX
12988 ## ------------------------------------------ ##
12989 ## Report this to the AC_PACKAGE_NAME lists.  ##
12990 ## ------------------------------------------ ##
12991 _ASBOX
12992     ) |
12993       sed "s/^/$as_me: WARNING:     /" >&2
12994     ;;
12995 esac
12996 echo "$as_me:$LINENO: checking for $ac_header" >&5
12997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12999   echo $ECHO_N "(cached) $ECHO_C" >&6
13000 else
13001   eval "$as_ac_Header=\$ac_header_preproc"
13002 fi
13003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13004 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13005
13006 fi
13007 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13008   cat >>confdefs.h <<_ACEOF
13009 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13010 _ACEOF
13011
13012 fi
13013
13014 done
13015
13016 else
13017
13018 echo "$as_me:$LINENO: checking for initscr" >&5
13019 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
13020 if test "${ac_cv_func_initscr+set}" = set; then
13021   echo $ECHO_N "(cached) $ECHO_C" >&6
13022 else
13023   cat >conftest.$ac_ext <<_ACEOF
13024 /* confdefs.h.  */
13025 _ACEOF
13026 cat confdefs.h >>conftest.$ac_ext
13027 cat >>conftest.$ac_ext <<_ACEOF
13028 /* end confdefs.h.  */
13029 /* Define initscr to an innocuous variant, in case <limits.h> declares initscr.
13030    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13031 #define initscr innocuous_initscr
13032
13033 /* System header to define __stub macros and hopefully few prototypes,
13034     which can conflict with char initscr (); below.
13035     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13036     <limits.h> exists even on freestanding compilers.  */
13037
13038 #ifdef __STDC__
13039 # include <limits.h>
13040 #else
13041 # include <assert.h>
13042 #endif
13043
13044 #undef initscr
13045
13046 /* Override any gcc2 internal prototype to avoid an error.  */
13047 #ifdef __cplusplus
13048 extern "C"
13049 {
13050 #endif
13051 /* We use char because int might match the return type of a gcc2
13052    builtin and then its argument prototype would still apply.  */
13053 char initscr ();
13054 /* The GNU C library defines this for functions which it implements
13055     to always fail with ENOSYS.  Some functions are actually named
13056     something starting with __ and the normal name is an alias.  */
13057 #if defined (__stub_initscr) || defined (__stub___initscr)
13058 choke me
13059 #else
13060 char (*f) () = initscr;
13061 #endif
13062 #ifdef __cplusplus
13063 }
13064 #endif
13065
13066 int
13067 main ()
13068 {
13069 return f != initscr;
13070   ;
13071   return 0;
13072 }
13073 _ACEOF
13074 rm -f conftest.$ac_objext conftest$ac_exeext
13075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13076   (eval $ac_link) 2>conftest.er1
13077   ac_status=$?
13078   grep -v '^ *+' conftest.er1 >conftest.err
13079   rm -f conftest.er1
13080   cat conftest.err >&5
13081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082   (exit $ac_status); } &&
13083          { ac_try='test -z "$ac_c_werror_flag"
13084                          || test ! -s conftest.err'
13085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13086   (eval $ac_try) 2>&5
13087   ac_status=$?
13088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089   (exit $ac_status); }; } &&
13090          { ac_try='test -s conftest$ac_exeext'
13091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13092   (eval $ac_try) 2>&5
13093   ac_status=$?
13094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095   (exit $ac_status); }; }; then
13096   ac_cv_func_initscr=yes
13097 else
13098   echo "$as_me: failed program was:" >&5
13099 sed 's/^/| /' conftest.$ac_ext >&5
13100
13101 ac_cv_func_initscr=no
13102 fi
13103 rm -f conftest.err conftest.$ac_objext \
13104       conftest$ac_exeext conftest.$ac_ext
13105 fi
13106 echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
13107 echo "${ECHO_T}$ac_cv_func_initscr" >&6
13108 if test $ac_cv_func_initscr = yes; then
13109   :
13110 else
13111
13112 case $host_os in #(vi
13113 freebsd*) #(vi
13114         echo "$as_me:$LINENO: checking for tgoto in -lmytinfo" >&5
13115 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
13116 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
13117   echo $ECHO_N "(cached) $ECHO_C" >&6
13118 else
13119   ac_check_lib_save_LIBS=$LIBS
13120 LIBS="-lmytinfo  $LIBS"
13121 cat >conftest.$ac_ext <<_ACEOF
13122 /* confdefs.h.  */
13123 _ACEOF
13124 cat confdefs.h >>conftest.$ac_ext
13125 cat >>conftest.$ac_ext <<_ACEOF
13126 /* end confdefs.h.  */
13127
13128 /* Override any gcc2 internal prototype to avoid an error.  */
13129 #ifdef __cplusplus
13130 extern "C"
13131 #endif
13132 /* We use char because int might match the return type of a gcc2
13133    builtin and then its argument prototype would still apply.  */
13134 char tgoto ();
13135 int
13136 main ()
13137 {
13138 tgoto ();
13139   ;
13140   return 0;
13141 }
13142 _ACEOF
13143 rm -f conftest.$ac_objext conftest$ac_exeext
13144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13145   (eval $ac_link) 2>conftest.er1
13146   ac_status=$?
13147   grep -v '^ *+' conftest.er1 >conftest.err
13148   rm -f conftest.er1
13149   cat conftest.err >&5
13150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151   (exit $ac_status); } &&
13152          { ac_try='test -z "$ac_c_werror_flag"
13153                          || test ! -s conftest.err'
13154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13155   (eval $ac_try) 2>&5
13156   ac_status=$?
13157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158   (exit $ac_status); }; } &&
13159          { ac_try='test -s conftest$ac_exeext'
13160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13161   (eval $ac_try) 2>&5
13162   ac_status=$?
13163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164   (exit $ac_status); }; }; then
13165   ac_cv_lib_mytinfo_tgoto=yes
13166 else
13167   echo "$as_me: failed program was:" >&5
13168 sed 's/^/| /' conftest.$ac_ext >&5
13169
13170 ac_cv_lib_mytinfo_tgoto=no
13171 fi
13172 rm -f conftest.err conftest.$ac_objext \
13173       conftest$ac_exeext conftest.$ac_ext
13174 LIBS=$ac_check_lib_save_LIBS
13175 fi
13176 echo "$as_me:$LINENO: result: $ac_cv_lib_mytinfo_tgoto" >&5
13177 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
13178 if test $ac_cv_lib_mytinfo_tgoto = yes; then
13179   LIBS="-lmytinfo $LIBS"
13180 fi
13181
13182         ;;
13183 hpux10.*|hpux11.*)
13184         echo "$as_me:$LINENO: checking for initscr in -lcur_colr" >&5
13185 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
13186 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
13187   echo $ECHO_N "(cached) $ECHO_C" >&6
13188 else
13189   ac_check_lib_save_LIBS=$LIBS
13190 LIBS="-lcur_colr  $LIBS"
13191 cat >conftest.$ac_ext <<_ACEOF
13192 /* confdefs.h.  */
13193 _ACEOF
13194 cat confdefs.h >>conftest.$ac_ext
13195 cat >>conftest.$ac_ext <<_ACEOF
13196 /* end confdefs.h.  */
13197
13198 /* Override any gcc2 internal prototype to avoid an error.  */
13199 #ifdef __cplusplus
13200 extern "C"
13201 #endif
13202 /* We use char because int might match the return type of a gcc2
13203    builtin and then its argument prototype would still apply.  */
13204 char initscr ();
13205 int
13206 main ()
13207 {
13208 initscr ();
13209   ;
13210   return 0;
13211 }
13212 _ACEOF
13213 rm -f conftest.$ac_objext conftest$ac_exeext
13214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13215   (eval $ac_link) 2>conftest.er1
13216   ac_status=$?
13217   grep -v '^ *+' conftest.er1 >conftest.err
13218   rm -f conftest.er1
13219   cat conftest.err >&5
13220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221   (exit $ac_status); } &&
13222          { ac_try='test -z "$ac_c_werror_flag"
13223                          || test ! -s conftest.err'
13224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13225   (eval $ac_try) 2>&5
13226   ac_status=$?
13227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228   (exit $ac_status); }; } &&
13229          { ac_try='test -s conftest$ac_exeext'
13230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13231   (eval $ac_try) 2>&5
13232   ac_status=$?
13233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234   (exit $ac_status); }; }; then
13235   ac_cv_lib_cur_colr_initscr=yes
13236 else
13237   echo "$as_me: failed program was:" >&5
13238 sed 's/^/| /' conftest.$ac_ext >&5
13239
13240 ac_cv_lib_cur_colr_initscr=no
13241 fi
13242 rm -f conftest.err conftest.$ac_objext \
13243       conftest$ac_exeext conftest.$ac_ext
13244 LIBS=$ac_check_lib_save_LIBS
13245 fi
13246 echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_initscr" >&5
13247 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
13248 if test $ac_cv_lib_cur_colr_initscr = yes; then
13249
13250                 LIBS="-lcur_colr $LIBS"
13251                 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
13252                 ac_cv_func_initscr=yes
13253
13254 else
13255
13256         echo "$as_me:$LINENO: checking for initscr in -lHcurses" >&5
13257 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
13258 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
13259   echo $ECHO_N "(cached) $ECHO_C" >&6
13260 else
13261   ac_check_lib_save_LIBS=$LIBS
13262 LIBS="-lHcurses  $LIBS"
13263 cat >conftest.$ac_ext <<_ACEOF
13264 /* confdefs.h.  */
13265 _ACEOF
13266 cat confdefs.h >>conftest.$ac_ext
13267 cat >>conftest.$ac_ext <<_ACEOF
13268 /* end confdefs.h.  */
13269
13270 /* Override any gcc2 internal prototype to avoid an error.  */
13271 #ifdef __cplusplus
13272 extern "C"
13273 #endif
13274 /* We use char because int might match the return type of a gcc2
13275    builtin and then its argument prototype would still apply.  */
13276 char initscr ();
13277 int
13278 main ()
13279 {
13280 initscr ();
13281   ;
13282   return 0;
13283 }
13284 _ACEOF
13285 rm -f conftest.$ac_objext conftest$ac_exeext
13286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13287   (eval $ac_link) 2>conftest.er1
13288   ac_status=$?
13289   grep -v '^ *+' conftest.er1 >conftest.err
13290   rm -f conftest.er1
13291   cat conftest.err >&5
13292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293   (exit $ac_status); } &&
13294          { ac_try='test -z "$ac_c_werror_flag"
13295                          || test ! -s conftest.err'
13296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13297   (eval $ac_try) 2>&5
13298   ac_status=$?
13299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300   (exit $ac_status); }; } &&
13301          { ac_try='test -s conftest$ac_exeext'
13302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13303   (eval $ac_try) 2>&5
13304   ac_status=$?
13305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306   (exit $ac_status); }; }; then
13307   ac_cv_lib_Hcurses_initscr=yes
13308 else
13309   echo "$as_me: failed program was:" >&5
13310 sed 's/^/| /' conftest.$ac_ext >&5
13311
13312 ac_cv_lib_Hcurses_initscr=no
13313 fi
13314 rm -f conftest.err conftest.$ac_objext \
13315       conftest$ac_exeext conftest.$ac_ext
13316 LIBS=$ac_check_lib_save_LIBS
13317 fi
13318 echo "$as_me:$LINENO: result: $ac_cv_lib_Hcurses_initscr" >&5
13319 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
13320 if test $ac_cv_lib_Hcurses_initscr = yes; then
13321
13322                 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
13323                 LIBS="-lHcurses $LIBS"
13324                 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
13325                 ac_cv_func_initscr=yes
13326
13327 fi
13328
13329 fi
13330
13331         ;;
13332 linux*) # Suse Linux does not follow /usr/lib convention
13333         LIBS="$LIBS -L/lib"
13334         ;;
13335 esac
13336
13337 if test ".$With5lib" != ".no" ; then
13338 if test -d /usr/5lib ; then
13339         # SunOS 3.x or 4.x
13340         CPPFLAGS="$CPPFLAGS -I/usr/5include"
13341         LIBS="$LIBS -L/usr/5lib"
13342 fi
13343 fi
13344
13345 if test ".$ac_cv_func_initscr" != .yes ; then
13346         cf_save_LIBS="$LIBS"
13347         cf_term_lib=""
13348         cf_curs_lib=""
13349
13350         # Check for library containing tgoto.  Do this before curses library
13351         # because it may be needed to link the test-case for initscr.
13352         echo "$as_me:$LINENO: checking for tgoto" >&5
13353 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
13354 if test "${ac_cv_func_tgoto+set}" = set; then
13355   echo $ECHO_N "(cached) $ECHO_C" >&6
13356 else
13357   cat >conftest.$ac_ext <<_ACEOF
13358 /* confdefs.h.  */
13359 _ACEOF
13360 cat confdefs.h >>conftest.$ac_ext
13361 cat >>conftest.$ac_ext <<_ACEOF
13362 /* end confdefs.h.  */
13363 /* Define tgoto to an innocuous variant, in case <limits.h> declares tgoto.
13364    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13365 #define tgoto innocuous_tgoto
13366
13367 /* System header to define __stub macros and hopefully few prototypes,
13368     which can conflict with char tgoto (); below.
13369     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13370     <limits.h> exists even on freestanding compilers.  */
13371
13372 #ifdef __STDC__
13373 # include <limits.h>
13374 #else
13375 # include <assert.h>
13376 #endif
13377
13378 #undef tgoto
13379
13380 /* Override any gcc2 internal prototype to avoid an error.  */
13381 #ifdef __cplusplus
13382 extern "C"
13383 {
13384 #endif
13385 /* We use char because int might match the return type of a gcc2
13386    builtin and then its argument prototype would still apply.  */
13387 char tgoto ();
13388 /* The GNU C library defines this for functions which it implements
13389     to always fail with ENOSYS.  Some functions are actually named
13390     something starting with __ and the normal name is an alias.  */
13391 #if defined (__stub_tgoto) || defined (__stub___tgoto)
13392 choke me
13393 #else
13394 char (*f) () = tgoto;
13395 #endif
13396 #ifdef __cplusplus
13397 }
13398 #endif
13399
13400 int
13401 main ()
13402 {
13403 return f != tgoto;
13404   ;
13405   return 0;
13406 }
13407 _ACEOF
13408 rm -f conftest.$ac_objext conftest$ac_exeext
13409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13410   (eval $ac_link) 2>conftest.er1
13411   ac_status=$?
13412   grep -v '^ *+' conftest.er1 >conftest.err
13413   rm -f conftest.er1
13414   cat conftest.err >&5
13415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416   (exit $ac_status); } &&
13417          { ac_try='test -z "$ac_c_werror_flag"
13418                          || test ! -s conftest.err'
13419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13420   (eval $ac_try) 2>&5
13421   ac_status=$?
13422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423   (exit $ac_status); }; } &&
13424          { ac_try='test -s conftest$ac_exeext'
13425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13426   (eval $ac_try) 2>&5
13427   ac_status=$?
13428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429   (exit $ac_status); }; }; then
13430   ac_cv_func_tgoto=yes
13431 else
13432   echo "$as_me: failed program was:" >&5
13433 sed 's/^/| /' conftest.$ac_ext >&5
13434
13435 ac_cv_func_tgoto=no
13436 fi
13437 rm -f conftest.err conftest.$ac_objext \
13438       conftest$ac_exeext conftest.$ac_ext
13439 fi
13440 echo "$as_me:$LINENO: result: $ac_cv_func_tgoto" >&5
13441 echo "${ECHO_T}$ac_cv_func_tgoto" >&6
13442 if test $ac_cv_func_tgoto = yes; then
13443   cf_term_lib=predefined
13444 else
13445
13446                 for cf_term_lib in termcap termlib unknown
13447                 do
13448                         as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
13449 echo "$as_me:$LINENO: checking for tgoto in -l$cf_term_lib" >&5
13450 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
13451 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
13452   echo $ECHO_N "(cached) $ECHO_C" >&6
13453 else
13454   ac_check_lib_save_LIBS=$LIBS
13455 LIBS="-l$cf_term_lib  $LIBS"
13456 cat >conftest.$ac_ext <<_ACEOF
13457 /* confdefs.h.  */
13458 _ACEOF
13459 cat confdefs.h >>conftest.$ac_ext
13460 cat >>conftest.$ac_ext <<_ACEOF
13461 /* end confdefs.h.  */
13462
13463 /* Override any gcc2 internal prototype to avoid an error.  */
13464 #ifdef __cplusplus
13465 extern "C"
13466 #endif
13467 /* We use char because int might match the return type of a gcc2
13468    builtin and then its argument prototype would still apply.  */
13469 char tgoto ();
13470 int
13471 main ()
13472 {
13473 tgoto ();
13474   ;
13475   return 0;
13476 }
13477 _ACEOF
13478 rm -f conftest.$ac_objext conftest$ac_exeext
13479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13480   (eval $ac_link) 2>conftest.er1
13481   ac_status=$?
13482   grep -v '^ *+' conftest.er1 >conftest.err
13483   rm -f conftest.er1
13484   cat conftest.err >&5
13485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486   (exit $ac_status); } &&
13487          { ac_try='test -z "$ac_c_werror_flag"
13488                          || test ! -s conftest.err'
13489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13490   (eval $ac_try) 2>&5
13491   ac_status=$?
13492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13493   (exit $ac_status); }; } &&
13494          { ac_try='test -s conftest$ac_exeext'
13495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13496   (eval $ac_try) 2>&5
13497   ac_status=$?
13498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499   (exit $ac_status); }; }; then
13500   eval "$as_ac_Lib=yes"
13501 else
13502   echo "$as_me: failed program was:" >&5
13503 sed 's/^/| /' conftest.$ac_ext >&5
13504
13505 eval "$as_ac_Lib=no"
13506 fi
13507 rm -f conftest.err conftest.$ac_objext \
13508       conftest$ac_exeext conftest.$ac_ext
13509 LIBS=$ac_check_lib_save_LIBS
13510 fi
13511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
13512 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
13513 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13514   break
13515 fi
13516
13517                 done
13518
13519 fi
13520
13521
13522         # Check for library containing initscr
13523         test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
13524         for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
13525         do
13526                 as_ac_Lib=`echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
13527 echo "$as_me:$LINENO: checking for initscr in -l$cf_curs_lib" >&5
13528 echo $ECHO_N "checking for initscr in -l$cf_curs_lib... $ECHO_C" >&6
13529 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
13530   echo $ECHO_N "(cached) $ECHO_C" >&6
13531 else
13532   ac_check_lib_save_LIBS=$LIBS
13533 LIBS="-l$cf_curs_lib  $LIBS"
13534 cat >conftest.$ac_ext <<_ACEOF
13535 /* confdefs.h.  */
13536 _ACEOF
13537 cat confdefs.h >>conftest.$ac_ext
13538 cat >>conftest.$ac_ext <<_ACEOF
13539 /* end confdefs.h.  */
13540
13541 /* Override any gcc2 internal prototype to avoid an error.  */
13542 #ifdef __cplusplus
13543 extern "C"
13544 #endif
13545 /* We use char because int might match the return type of a gcc2
13546    builtin and then its argument prototype would still apply.  */
13547 char initscr ();
13548 int
13549 main ()
13550 {
13551 initscr ();
13552   ;
13553   return 0;
13554 }
13555 _ACEOF
13556 rm -f conftest.$ac_objext conftest$ac_exeext
13557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13558   (eval $ac_link) 2>conftest.er1
13559   ac_status=$?
13560   grep -v '^ *+' conftest.er1 >conftest.err
13561   rm -f conftest.er1
13562   cat conftest.err >&5
13563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564   (exit $ac_status); } &&
13565          { ac_try='test -z "$ac_c_werror_flag"
13566                          || test ! -s conftest.err'
13567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13568   (eval $ac_try) 2>&5
13569   ac_status=$?
13570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571   (exit $ac_status); }; } &&
13572          { ac_try='test -s conftest$ac_exeext'
13573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13574   (eval $ac_try) 2>&5
13575   ac_status=$?
13576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577   (exit $ac_status); }; }; then
13578   eval "$as_ac_Lib=yes"
13579 else
13580   echo "$as_me: failed program was:" >&5
13581 sed 's/^/| /' conftest.$ac_ext >&5
13582
13583 eval "$as_ac_Lib=no"
13584 fi
13585 rm -f conftest.err conftest.$ac_objext \
13586       conftest$ac_exeext conftest.$ac_ext
13587 LIBS=$ac_check_lib_save_LIBS
13588 fi
13589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
13590 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
13591 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13592   break
13593 fi
13594
13595         done
13596         test $cf_curs_lib = unknown && { { echo "$as_me:$LINENO: error: no curses library found" >&5
13597 echo "$as_me: error: no curses library found" >&2;}
13598    { (exit 1); exit 1; }; }
13599
13600         LIBS="-l$cf_curs_lib $cf_save_LIBS"
13601         if test "$cf_term_lib" = unknown ; then
13602                 echo "$as_me:$LINENO: checking if we can link with $cf_curs_lib library" >&5
13603 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
13604                 cat >conftest.$ac_ext <<_ACEOF
13605 /* confdefs.h.  */
13606 _ACEOF
13607 cat confdefs.h >>conftest.$ac_ext
13608 cat >>conftest.$ac_ext <<_ACEOF
13609 /* end confdefs.h.  */
13610 #include <${cf_cv_ncurses_header-curses.h}>
13611 int
13612 main ()
13613 {
13614 initscr()
13615   ;
13616   return 0;
13617 }
13618 _ACEOF
13619 rm -f conftest.$ac_objext conftest$ac_exeext
13620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13621   (eval $ac_link) 2>conftest.er1
13622   ac_status=$?
13623   grep -v '^ *+' conftest.er1 >conftest.err
13624   rm -f conftest.er1
13625   cat conftest.err >&5
13626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627   (exit $ac_status); } &&
13628          { ac_try='test -z "$ac_c_werror_flag"
13629                          || test ! -s conftest.err'
13630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13631   (eval $ac_try) 2>&5
13632   ac_status=$?
13633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634   (exit $ac_status); }; } &&
13635          { ac_try='test -s conftest$ac_exeext'
13636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13637   (eval $ac_try) 2>&5
13638   ac_status=$?
13639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640   (exit $ac_status); }; }; then
13641   cf_result=yes
13642 else
13643   echo "$as_me: failed program was:" >&5
13644 sed 's/^/| /' conftest.$ac_ext >&5
13645
13646 cf_result=no
13647 fi
13648 rm -f conftest.err conftest.$ac_objext \
13649       conftest$ac_exeext conftest.$ac_ext
13650                 echo "$as_me:$LINENO: result: $cf_result" >&5
13651 echo "${ECHO_T}$cf_result" >&6
13652                 test $cf_result = no && { { echo "$as_me:$LINENO: error: Cannot link curses library" >&5
13653 echo "$as_me: error: Cannot link curses library" >&2;}
13654    { (exit 1); exit 1; }; }
13655         elif test "$cf_term_lib" != predefined ; then
13656                 echo "$as_me:$LINENO: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
13657 echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6
13658                 cat >conftest.$ac_ext <<_ACEOF
13659 /* confdefs.h.  */
13660 _ACEOF
13661 cat confdefs.h >>conftest.$ac_ext
13662 cat >>conftest.$ac_ext <<_ACEOF
13663 /* end confdefs.h.  */
13664 #include <${cf_cv_ncurses_header-curses.h}>
13665 int
13666 main ()
13667 {
13668 initscr(); tgoto((char *)0, 0, 0);
13669   ;
13670   return 0;
13671 }
13672 _ACEOF
13673 rm -f conftest.$ac_objext conftest$ac_exeext
13674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13675   (eval $ac_link) 2>conftest.er1
13676   ac_status=$?
13677   grep -v '^ *+' conftest.er1 >conftest.err
13678   rm -f conftest.er1
13679   cat conftest.err >&5
13680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681   (exit $ac_status); } &&
13682          { ac_try='test -z "$ac_c_werror_flag"
13683                          || test ! -s conftest.err'
13684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13685   (eval $ac_try) 2>&5
13686   ac_status=$?
13687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688   (exit $ac_status); }; } &&
13689          { ac_try='test -s conftest$ac_exeext'
13690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13691   (eval $ac_try) 2>&5
13692   ac_status=$?
13693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694   (exit $ac_status); }; }; then
13695   cf_result=no
13696 else
13697   echo "$as_me: failed program was:" >&5
13698 sed 's/^/| /' conftest.$ac_ext >&5
13699
13700
13701                         LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
13702                         cat >conftest.$ac_ext <<_ACEOF
13703 /* confdefs.h.  */
13704 _ACEOF
13705 cat confdefs.h >>conftest.$ac_ext
13706 cat >>conftest.$ac_ext <<_ACEOF
13707 /* end confdefs.h.  */
13708 #include <${cf_cv_ncurses_header-curses.h}>
13709 int
13710 main ()
13711 {
13712 initscr()
13713   ;
13714   return 0;
13715 }
13716 _ACEOF
13717 rm -f conftest.$ac_objext conftest$ac_exeext
13718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13719   (eval $ac_link) 2>conftest.er1
13720   ac_status=$?
13721   grep -v '^ *+' conftest.er1 >conftest.err
13722   rm -f conftest.er1
13723   cat conftest.err >&5
13724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725   (exit $ac_status); } &&
13726          { ac_try='test -z "$ac_c_werror_flag"
13727                          || test ! -s conftest.err'
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); }; } &&
13733          { ac_try='test -s conftest$ac_exeext'
13734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13735   (eval $ac_try) 2>&5
13736   ac_status=$?
13737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738   (exit $ac_status); }; }; then
13739   cf_result=yes
13740 else
13741   echo "$as_me: failed program was:" >&5
13742 sed 's/^/| /' conftest.$ac_ext >&5
13743
13744 cf_result=error
13745 fi
13746 rm -f conftest.err conftest.$ac_objext \
13747       conftest$ac_exeext conftest.$ac_ext
13748
13749 fi
13750 rm -f conftest.err conftest.$ac_objext \
13751       conftest$ac_exeext conftest.$ac_ext
13752                 echo "$as_me:$LINENO: result: $cf_result" >&5
13753 echo "${ECHO_T}$cf_result" >&6
13754         fi
13755 fi
13756
13757
13758 fi
13759
13760 fi
13761
13762
13763 fi
13764
13765
13766
13767
13768 abook_cv_readline=/usr
13769
13770 # Check whether --with-readline or --without-readline was given.
13771 if test "${with_readline+set}" = set; then
13772   withval="$with_readline"
13773   if test $withval != yes; then
13774                 abook_cv_readline=$withval
13775         fi
13776         if test x$abook_cv_readline != x/usr; then
13777                 LDFLAGS="-L${abook_cv_readline}/lib $LDFLAGS"
13778                 CPPFLAGS="$CPPFLAGS -I${abook_cv_readline}/include"
13779         fi
13780 fi;
13781
13782
13783   echo "$as_me:$LINENO: checking for a readline compatible library" >&5
13784 echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6
13785 if test "${ac_cv_lib_readline+set}" = set; then
13786   echo $ECHO_N "(cached) $ECHO_C" >&6
13787 else
13788
13789     ORIG_LIBS="$LIBS"
13790     for readline_lib in readline edit editline; do
13791       for termcap_lib in "" termcap curses ncurses; do
13792         if test -z "$termcap_lib"; then
13793           TRY_LIB="-l$readline_lib"
13794         else
13795           TRY_LIB="-l$readline_lib -l$termcap_lib"
13796         fi
13797         LIBS="$ORIG_LIBS $TRY_LIB"
13798         cat >conftest.$ac_ext <<_ACEOF
13799 /* confdefs.h.  */
13800 _ACEOF
13801 cat confdefs.h >>conftest.$ac_ext
13802 cat >>conftest.$ac_ext <<_ACEOF
13803 /* end confdefs.h.  */
13804
13805 /* Override any gcc2 internal prototype to avoid an error.  */
13806 #ifdef __cplusplus
13807 extern "C"
13808 #endif
13809 /* We use char because int might match the return type of a gcc2
13810    builtin and then its argument prototype would still apply.  */
13811 char readline ();
13812 int
13813 main ()
13814 {
13815 readline ();
13816   ;
13817   return 0;
13818 }
13819 _ACEOF
13820 rm -f conftest.$ac_objext conftest$ac_exeext
13821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13822   (eval $ac_link) 2>conftest.er1
13823   ac_status=$?
13824   grep -v '^ *+' conftest.er1 >conftest.err
13825   rm -f conftest.er1
13826   cat conftest.err >&5
13827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828   (exit $ac_status); } &&
13829          { ac_try='test -z "$ac_c_werror_flag"
13830                          || test ! -s conftest.err'
13831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13832   (eval $ac_try) 2>&5
13833   ac_status=$?
13834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835   (exit $ac_status); }; } &&
13836          { ac_try='test -s conftest$ac_exeext'
13837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13838   (eval $ac_try) 2>&5
13839   ac_status=$?
13840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841   (exit $ac_status); }; }; then
13842   ac_cv_lib_readline="$TRY_LIB"
13843 else
13844   echo "$as_me: failed program was:" >&5
13845 sed 's/^/| /' conftest.$ac_ext >&5
13846
13847 fi
13848 rm -f conftest.err conftest.$ac_objext \
13849       conftest$ac_exeext conftest.$ac_ext
13850         if test -n "$ac_cv_lib_readline"; then
13851           break
13852         fi
13853       done
13854       if test -n "$ac_cv_lib_readline"; then
13855         break
13856       fi
13857     done
13858     if test -z "$ac_cv_lib_readline"; then
13859       ac_cv_lib_readline="no"
13860     fi
13861     LIBS="$ORIG_LIBS"
13862
13863 fi
13864 echo "$as_me:$LINENO: result: $ac_cv_lib_readline" >&5
13865 echo "${ECHO_T}$ac_cv_lib_readline" >&6
13866
13867   if test "$ac_cv_lib_readline" != "no"; then
13868     LIBS="$LIBS $ac_cv_lib_readline"
13869
13870 cat >>confdefs.h <<\_ACEOF
13871 #define HAVE_LIBREADLINE 1
13872 _ACEOF
13873
13874
13875
13876 for ac_header in readline.h readline/readline.h
13877 do
13878 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13879 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13880   echo "$as_me:$LINENO: checking for $ac_header" >&5
13881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13883   echo $ECHO_N "(cached) $ECHO_C" >&6
13884 fi
13885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13886 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13887 else
13888   # Is the header compilable?
13889 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13890 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13891 cat >conftest.$ac_ext <<_ACEOF
13892 /* confdefs.h.  */
13893 _ACEOF
13894 cat confdefs.h >>conftest.$ac_ext
13895 cat >>conftest.$ac_ext <<_ACEOF
13896 /* end confdefs.h.  */
13897 $ac_includes_default
13898 #include <$ac_header>
13899 _ACEOF
13900 rm -f conftest.$ac_objext
13901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13902   (eval $ac_compile) 2>conftest.er1
13903   ac_status=$?
13904   grep -v '^ *+' conftest.er1 >conftest.err
13905   rm -f conftest.er1
13906   cat conftest.err >&5
13907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908   (exit $ac_status); } &&
13909          { ac_try='test -z "$ac_c_werror_flag"
13910                          || test ! -s conftest.err'
13911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13912   (eval $ac_try) 2>&5
13913   ac_status=$?
13914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915   (exit $ac_status); }; } &&
13916          { ac_try='test -s conftest.$ac_objext'
13917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13918   (eval $ac_try) 2>&5
13919   ac_status=$?
13920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921   (exit $ac_status); }; }; then
13922   ac_header_compiler=yes
13923 else
13924   echo "$as_me: failed program was:" >&5
13925 sed 's/^/| /' conftest.$ac_ext >&5
13926
13927 ac_header_compiler=no
13928 fi
13929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13930 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13931 echo "${ECHO_T}$ac_header_compiler" >&6
13932
13933 # Is the header present?
13934 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13935 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13936 cat >conftest.$ac_ext <<_ACEOF
13937 /* confdefs.h.  */
13938 _ACEOF
13939 cat confdefs.h >>conftest.$ac_ext
13940 cat >>conftest.$ac_ext <<_ACEOF
13941 /* end confdefs.h.  */
13942 #include <$ac_header>
13943 _ACEOF
13944 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13945   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13946   ac_status=$?
13947   grep -v '^ *+' conftest.er1 >conftest.err
13948   rm -f conftest.er1
13949   cat conftest.err >&5
13950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951   (exit $ac_status); } >/dev/null; then
13952   if test -s conftest.err; then
13953     ac_cpp_err=$ac_c_preproc_warn_flag
13954     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13955   else
13956     ac_cpp_err=
13957   fi
13958 else
13959   ac_cpp_err=yes
13960 fi
13961 if test -z "$ac_cpp_err"; then
13962   ac_header_preproc=yes
13963 else
13964   echo "$as_me: failed program was:" >&5
13965 sed 's/^/| /' conftest.$ac_ext >&5
13966
13967   ac_header_preproc=no
13968 fi
13969 rm -f conftest.err conftest.$ac_ext
13970 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13971 echo "${ECHO_T}$ac_header_preproc" >&6
13972
13973 # So?  What about this header?
13974 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13975   yes:no: )
13976     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13977 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13978     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13979 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13980     ac_header_preproc=yes
13981     ;;
13982   no:yes:* )
13983     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13984 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13985     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13986 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13987     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13988 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13989     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13990 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13991     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13992 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13993     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13994 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13995     (
13996       cat <<\_ASBOX
13997 ## ------------------------------------------ ##
13998 ## Report this to the AC_PACKAGE_NAME lists.  ##
13999 ## ------------------------------------------ ##
14000 _ASBOX
14001     ) |
14002       sed "s/^/$as_me: WARNING:     /" >&2
14003     ;;
14004 esac
14005 echo "$as_me:$LINENO: checking for $ac_header" >&5
14006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14008   echo $ECHO_N "(cached) $ECHO_C" >&6
14009 else
14010   eval "$as_ac_Header=\$ac_header_preproc"
14011 fi
14012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14013 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14014
14015 fi
14016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14017   cat >>confdefs.h <<_ACEOF
14018 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14019 _ACEOF
14020
14021 fi
14022
14023 done
14024
14025     echo "$as_me:$LINENO: checking whether readline supports history" >&5
14026 echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6
14027 if test "${ac_cv_lib_readline_history+set}" = set; then
14028   echo $ECHO_N "(cached) $ECHO_C" >&6
14029 else
14030
14031       ac_cv_lib_readline_history="no"
14032       cat >conftest.$ac_ext <<_ACEOF
14033 /* confdefs.h.  */
14034 _ACEOF
14035 cat confdefs.h >>conftest.$ac_ext
14036 cat >>conftest.$ac_ext <<_ACEOF
14037 /* end confdefs.h.  */
14038
14039 /* Override any gcc2 internal prototype to avoid an error.  */
14040 #ifdef __cplusplus
14041 extern "C"
14042 #endif
14043 /* We use char because int might match the return type of a gcc2
14044    builtin and then its argument prototype would still apply.  */
14045 char add_history ();
14046 int
14047 main ()
14048 {
14049 add_history ();
14050   ;
14051   return 0;
14052 }
14053 _ACEOF
14054 rm -f conftest.$ac_objext conftest$ac_exeext
14055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14056   (eval $ac_link) 2>conftest.er1
14057   ac_status=$?
14058   grep -v '^ *+' conftest.er1 >conftest.err
14059   rm -f conftest.er1
14060   cat conftest.err >&5
14061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062   (exit $ac_status); } &&
14063          { ac_try='test -z "$ac_c_werror_flag"
14064                          || test ! -s conftest.err'
14065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14066   (eval $ac_try) 2>&5
14067   ac_status=$?
14068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069   (exit $ac_status); }; } &&
14070          { ac_try='test -s conftest$ac_exeext'
14071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14072   (eval $ac_try) 2>&5
14073   ac_status=$?
14074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075   (exit $ac_status); }; }; then
14076   ac_cv_lib_readline_history="yes"
14077 else
14078   echo "$as_me: failed program was:" >&5
14079 sed 's/^/| /' conftest.$ac_ext >&5
14080
14081 fi
14082 rm -f conftest.err conftest.$ac_objext \
14083       conftest$ac_exeext conftest.$ac_ext
14084
14085 fi
14086 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_history" >&5
14087 echo "${ECHO_T}$ac_cv_lib_readline_history" >&6
14088     if test "$ac_cv_lib_readline_history" = "yes"; then
14089
14090 cat >>confdefs.h <<\_ACEOF
14091 #define HAVE_READLINE_HISTORY 1
14092 _ACEOF
14093
14094
14095
14096 for ac_header in history.h readline/history.h
14097 do
14098 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14100   echo "$as_me:$LINENO: checking for $ac_header" >&5
14101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14103   echo $ECHO_N "(cached) $ECHO_C" >&6
14104 fi
14105 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14106 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14107 else
14108   # Is the header compilable?
14109 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14110 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14111 cat >conftest.$ac_ext <<_ACEOF
14112 /* confdefs.h.  */
14113 _ACEOF
14114 cat confdefs.h >>conftest.$ac_ext
14115 cat >>conftest.$ac_ext <<_ACEOF
14116 /* end confdefs.h.  */
14117 $ac_includes_default
14118 #include <$ac_header>
14119 _ACEOF
14120 rm -f conftest.$ac_objext
14121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14122   (eval $ac_compile) 2>conftest.er1
14123   ac_status=$?
14124   grep -v '^ *+' conftest.er1 >conftest.err
14125   rm -f conftest.er1
14126   cat conftest.err >&5
14127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128   (exit $ac_status); } &&
14129          { ac_try='test -z "$ac_c_werror_flag"
14130                          || test ! -s conftest.err'
14131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14132   (eval $ac_try) 2>&5
14133   ac_status=$?
14134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135   (exit $ac_status); }; } &&
14136          { ac_try='test -s conftest.$ac_objext'
14137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14138   (eval $ac_try) 2>&5
14139   ac_status=$?
14140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141   (exit $ac_status); }; }; then
14142   ac_header_compiler=yes
14143 else
14144   echo "$as_me: failed program was:" >&5
14145 sed 's/^/| /' conftest.$ac_ext >&5
14146
14147 ac_header_compiler=no
14148 fi
14149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14150 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14151 echo "${ECHO_T}$ac_header_compiler" >&6
14152
14153 # Is the header present?
14154 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14155 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14156 cat >conftest.$ac_ext <<_ACEOF
14157 /* confdefs.h.  */
14158 _ACEOF
14159 cat confdefs.h >>conftest.$ac_ext
14160 cat >>conftest.$ac_ext <<_ACEOF
14161 /* end confdefs.h.  */
14162 #include <$ac_header>
14163 _ACEOF
14164 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14165   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14166   ac_status=$?
14167   grep -v '^ *+' conftest.er1 >conftest.err
14168   rm -f conftest.er1
14169   cat conftest.err >&5
14170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171   (exit $ac_status); } >/dev/null; then
14172   if test -s conftest.err; then
14173     ac_cpp_err=$ac_c_preproc_warn_flag
14174     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14175   else
14176     ac_cpp_err=
14177   fi
14178 else
14179   ac_cpp_err=yes
14180 fi
14181 if test -z "$ac_cpp_err"; then
14182   ac_header_preproc=yes
14183 else
14184   echo "$as_me: failed program was:" >&5
14185 sed 's/^/| /' conftest.$ac_ext >&5
14186
14187   ac_header_preproc=no
14188 fi
14189 rm -f conftest.err conftest.$ac_ext
14190 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14191 echo "${ECHO_T}$ac_header_preproc" >&6
14192
14193 # So?  What about this header?
14194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14195   yes:no: )
14196     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14197 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14198     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14199 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14200     ac_header_preproc=yes
14201     ;;
14202   no:yes:* )
14203     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14204 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14205     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14206 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14207     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14208 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14209     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14210 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14211     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14212 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14213     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14214 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14215     (
14216       cat <<\_ASBOX
14217 ## ------------------------------------------ ##
14218 ## Report this to the AC_PACKAGE_NAME lists.  ##
14219 ## ------------------------------------------ ##
14220 _ASBOX
14221     ) |
14222       sed "s/^/$as_me: WARNING:     /" >&2
14223     ;;
14224 esac
14225 echo "$as_me:$LINENO: checking for $ac_header" >&5
14226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14227 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14228   echo $ECHO_N "(cached) $ECHO_C" >&6
14229 else
14230   eval "$as_ac_Header=\$ac_header_preproc"
14231 fi
14232 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14233 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14234
14235 fi
14236 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14237   cat >>confdefs.h <<_ACEOF
14238 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14239 _ACEOF
14240
14241 fi
14242
14243 done
14244
14245     fi
14246   fi
14247
14248
14249
14250 if test x$ac_cv_lib_readline = xno -o x$ac_cv_lib_readline_history = xno; then
14251         { { echo "$as_me:$LINENO: error: *** readline library not found or it doesn't support history ***" >&5
14252 echo "$as_me: error: *** readline library not found or it doesn't support history ***" >&2;}
14253    { (exit 1); exit 1; }; }
14254 fi
14255
14256
14257 if test x$ac_widec_possible = xyes; then
14258
14259 cat >>confdefs.h <<\_ACEOF
14260 #define HANDLE_MULTIBYTE 1
14261 _ACEOF
14262
14263 fi
14264
14265
14266 for ac_func in resizeterm
14267 do
14268 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14269 echo "$as_me:$LINENO: checking for $ac_func" >&5
14270 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14271 if eval "test \"\${$as_ac_var+set}\" = set"; then
14272   echo $ECHO_N "(cached) $ECHO_C" >&6
14273 else
14274   cat >conftest.$ac_ext <<_ACEOF
14275 /* confdefs.h.  */
14276 _ACEOF
14277 cat confdefs.h >>conftest.$ac_ext
14278 cat >>conftest.$ac_ext <<_ACEOF
14279 /* end confdefs.h.  */
14280 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14281    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14282 #define $ac_func innocuous_$ac_func
14283
14284 /* System header to define __stub macros and hopefully few prototypes,
14285     which can conflict with char $ac_func (); below.
14286     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14287     <limits.h> exists even on freestanding compilers.  */
14288
14289 #ifdef __STDC__
14290 # include <limits.h>
14291 #else
14292 # include <assert.h>
14293 #endif
14294
14295 #undef $ac_func
14296
14297 /* Override any gcc2 internal prototype to avoid an error.  */
14298 #ifdef __cplusplus
14299 extern "C"
14300 {
14301 #endif
14302 /* We use char because int might match the return type of a gcc2
14303    builtin and then its argument prototype would still apply.  */
14304 char $ac_func ();
14305 /* The GNU C library defines this for functions which it implements
14306     to always fail with ENOSYS.  Some functions are actually named
14307     something starting with __ and the normal name is an alias.  */
14308 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14309 choke me
14310 #else
14311 char (*f) () = $ac_func;
14312 #endif
14313 #ifdef __cplusplus
14314 }
14315 #endif
14316
14317 int
14318 main ()
14319 {
14320 return f != $ac_func;
14321   ;
14322   return 0;
14323 }
14324 _ACEOF
14325 rm -f conftest.$ac_objext conftest$ac_exeext
14326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14327   (eval $ac_link) 2>conftest.er1
14328   ac_status=$?
14329   grep -v '^ *+' conftest.er1 >conftest.err
14330   rm -f conftest.er1
14331   cat conftest.err >&5
14332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333   (exit $ac_status); } &&
14334          { ac_try='test -z "$ac_c_werror_flag"
14335                          || test ! -s conftest.err'
14336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14337   (eval $ac_try) 2>&5
14338   ac_status=$?
14339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340   (exit $ac_status); }; } &&
14341          { ac_try='test -s conftest$ac_exeext'
14342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14343   (eval $ac_try) 2>&5
14344   ac_status=$?
14345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346   (exit $ac_status); }; }; then
14347   eval "$as_ac_var=yes"
14348 else
14349   echo "$as_me: failed program was:" >&5
14350 sed 's/^/| /' conftest.$ac_ext >&5
14351
14352 eval "$as_ac_var=no"
14353 fi
14354 rm -f conftest.err conftest.$ac_objext \
14355       conftest$ac_exeext conftest.$ac_ext
14356 fi
14357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14358 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14359 if test `eval echo '${'$as_ac_var'}'` = yes; then
14360   cat >>confdefs.h <<_ACEOF
14361 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14362 _ACEOF
14363
14364 fi
14365 done
14366
14367
14368
14369
14370 for ac_func in snprintf vsnprintf
14371 do
14372 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14373 echo "$as_me:$LINENO: checking for $ac_func" >&5
14374 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14375 if eval "test \"\${$as_ac_var+set}\" = set"; then
14376   echo $ECHO_N "(cached) $ECHO_C" >&6
14377 else
14378   cat >conftest.$ac_ext <<_ACEOF
14379 /* confdefs.h.  */
14380 _ACEOF
14381 cat confdefs.h >>conftest.$ac_ext
14382 cat >>conftest.$ac_ext <<_ACEOF
14383 /* end confdefs.h.  */
14384 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14385    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14386 #define $ac_func innocuous_$ac_func
14387
14388 /* System header to define __stub macros and hopefully few prototypes,
14389     which can conflict with char $ac_func (); below.
14390     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14391     <limits.h> exists even on freestanding compilers.  */
14392
14393 #ifdef __STDC__
14394 # include <limits.h>
14395 #else
14396 # include <assert.h>
14397 #endif
14398
14399 #undef $ac_func
14400
14401 /* Override any gcc2 internal prototype to avoid an error.  */
14402 #ifdef __cplusplus
14403 extern "C"
14404 {
14405 #endif
14406 /* We use char because int might match the return type of a gcc2
14407    builtin and then its argument prototype would still apply.  */
14408 char $ac_func ();
14409 /* The GNU C library defines this for functions which it implements
14410     to always fail with ENOSYS.  Some functions are actually named
14411     something starting with __ and the normal name is an alias.  */
14412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14413 choke me
14414 #else
14415 char (*f) () = $ac_func;
14416 #endif
14417 #ifdef __cplusplus
14418 }
14419 #endif
14420
14421 int
14422 main ()
14423 {
14424 return f != $ac_func;
14425   ;
14426   return 0;
14427 }
14428 _ACEOF
14429 rm -f conftest.$ac_objext conftest$ac_exeext
14430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14431   (eval $ac_link) 2>conftest.er1
14432   ac_status=$?
14433   grep -v '^ *+' conftest.er1 >conftest.err
14434   rm -f conftest.er1
14435   cat conftest.err >&5
14436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437   (exit $ac_status); } &&
14438          { ac_try='test -z "$ac_c_werror_flag"
14439                          || test ! -s conftest.err'
14440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14441   (eval $ac_try) 2>&5
14442   ac_status=$?
14443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444   (exit $ac_status); }; } &&
14445          { ac_try='test -s conftest$ac_exeext'
14446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14447   (eval $ac_try) 2>&5
14448   ac_status=$?
14449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450   (exit $ac_status); }; }; then
14451   eval "$as_ac_var=yes"
14452 else
14453   echo "$as_me: failed program was:" >&5
14454 sed 's/^/| /' conftest.$ac_ext >&5
14455
14456 eval "$as_ac_var=no"
14457 fi
14458 rm -f conftest.err conftest.$ac_objext \
14459       conftest$ac_exeext conftest.$ac_ext
14460 fi
14461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14462 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14463 if test `eval echo '${'$as_ac_var'}'` = yes; then
14464   cat >>confdefs.h <<_ACEOF
14465 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14466 _ACEOF
14467
14468 fi
14469 done
14470
14471
14472 # Check whether --enable-debug or --disable-debug was given.
14473 if test "${enable_debug+set}" = set; then
14474   enableval="$enable_debug"
14475   case "${enableval}" in
14476         yes) debug=true ;;
14477         no) debug=false ;;
14478         *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
14479 echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
14480    { (exit 1); exit 1; }; } ;;
14481         esac
14482 else
14483   debug=false
14484 fi;
14485
14486 if test x$debug = xtrue; then
14487         CPPFLAGS="-DDEBUG=1 $CPPFLAGS"
14488         CFLAGS="-g $CFLAGS"
14489 fi
14490
14491 if test x$GCC = xyes; then
14492         CFLAGS="-Wall $CFLAGS"
14493 fi
14494
14495                                         ac_config_files="$ac_config_files Makefile abook.spec intl/Makefile po/Makefile.in"
14496 cat >confcache <<\_ACEOF
14497 # This file is a shell script that caches the results of configure
14498 # tests run on this system so they can be shared between configure
14499 # scripts and configure runs, see configure's option --config-cache.
14500 # It is not useful on other systems.  If it contains results you don't
14501 # want to keep, you may remove or edit it.
14502 #
14503 # config.status only pays attention to the cache file if you give it
14504 # the --recheck option to rerun configure.
14505 #
14506 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14507 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14508 # following values.
14509
14510 _ACEOF
14511
14512 # The following way of writing the cache mishandles newlines in values,
14513 # but we know of no workaround that is simple, portable, and efficient.
14514 # So, don't put newlines in cache variables' values.
14515 # Ultrix sh set writes to stderr and can't be redirected directly,
14516 # and sets the high bit in the cache file unless we assign to the vars.
14517 {
14518   (set) 2>&1 |
14519     case `(ac_space=' '; set | grep ac_space) 2>&1` in
14520     *ac_space=\ *)
14521       # `set' does not quote correctly, so add quotes (double-quote
14522       # substitution turns \\\\ into \\, and sed turns \\ into \).
14523       sed -n \
14524         "s/'/'\\\\''/g;
14525           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14526       ;;
14527     *)
14528       # `set' quotes correctly as required by POSIX, so do not add quotes.
14529       sed -n \
14530         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14531       ;;
14532     esac;
14533 } |
14534   sed '
14535      t clear
14536      : clear
14537      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14538      t end
14539      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14540      : end' >>confcache
14541 if diff $cache_file confcache >/dev/null 2>&1; then :; else
14542   if test -w $cache_file; then
14543     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14544     cat confcache >$cache_file
14545   else
14546     echo "not updating unwritable cache $cache_file"
14547   fi
14548 fi
14549 rm -f confcache
14550
14551 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14552 # Let make expand exec_prefix.
14553 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14554
14555 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14556 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14557 # trailing colons and then remove the whole line if VPATH becomes empty
14558 # (actually we leave an empty line to preserve line numbers).
14559 if test "x$srcdir" = x.; then
14560   ac_vpsub='/^[  ]*VPATH[        ]*=/{
14561 s/:*\$(srcdir):*/:/;
14562 s/:*\${srcdir}:*/:/;
14563 s/:*@srcdir@:*/:/;
14564 s/^\([^=]*=[     ]*\):*/\1/;
14565 s/:*$//;
14566 s/^[^=]*=[       ]*$//;
14567 }'
14568 fi
14569
14570 DEFS=-DHAVE_CONFIG_H
14571
14572 ac_libobjs=
14573 ac_ltlibobjs=
14574 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14575   # 1. Remove the extension, and $U if already installed.
14576   ac_i=`echo "$ac_i" |
14577          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14578   # 2. Add them.
14579   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14580   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14581 done
14582 LIBOBJS=$ac_libobjs
14583
14584 LTLIBOBJS=$ac_ltlibobjs
14585
14586
14587 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14588   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14589 Usually this means the macro was only invoked conditionally." >&5
14590 echo "$as_me: error: conditional \"AMDEP\" was never defined.
14591 Usually this means the macro was only invoked conditionally." >&2;}
14592    { (exit 1); exit 1; }; }
14593 fi
14594 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14595   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14596 Usually this means the macro was only invoked conditionally." >&5
14597 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14598 Usually this means the macro was only invoked conditionally." >&2;}
14599    { (exit 1); exit 1; }; }
14600 fi
14601 if test -z "${USE_INCLUDED_INTL_H_TRUE}" && test -z "${USE_INCLUDED_INTL_H_FALSE}"; then
14602   { { echo "$as_me:$LINENO: error: conditional \"USE_INCLUDED_INTL_H\" was never defined.
14603 Usually this means the macro was only invoked conditionally." >&5
14604 echo "$as_me: error: conditional \"USE_INCLUDED_INTL_H\" was never defined.
14605 Usually this means the macro was only invoked conditionally." >&2;}
14606    { (exit 1); exit 1; }; }
14607 fi
14608 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14609   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14610 Usually this means the macro was only invoked conditionally." >&5
14611 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14612 Usually this means the macro was only invoked conditionally." >&2;}
14613    { (exit 1); exit 1; }; }
14614 fi
14615
14616 : ${CONFIG_STATUS=./config.status}
14617 ac_clean_files_save=$ac_clean_files
14618 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14619 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14620 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14621 cat >$CONFIG_STATUS <<_ACEOF
14622 #! $SHELL
14623 # Generated by $as_me.
14624 # Run this file to recreate the current configuration.
14625 # Compiler output produced by configure, useful for debugging
14626 # configure, is in config.log if it exists.
14627
14628 debug=false
14629 ac_cs_recheck=false
14630 ac_cs_silent=false
14631 SHELL=\${CONFIG_SHELL-$SHELL}
14632 _ACEOF
14633
14634 cat >>$CONFIG_STATUS <<\_ACEOF
14635 ## --------------------- ##
14636 ## M4sh Initialization.  ##
14637 ## --------------------- ##
14638
14639 # Be Bourne compatible
14640 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14641   emulate sh
14642   NULLCMD=:
14643   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14644   # is contrary to our usage.  Disable this feature.
14645   alias -g '${1+"$@"}'='"$@"'
14646 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14647   set -o posix
14648 fi
14649 DUALCASE=1; export DUALCASE # for MKS sh
14650
14651 # Support unset when possible.
14652 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14653   as_unset=unset
14654 else
14655   as_unset=false
14656 fi
14657
14658
14659 # Work around bugs in pre-3.0 UWIN ksh.
14660 $as_unset ENV MAIL MAILPATH
14661 PS1='$ '
14662 PS2='> '
14663 PS4='+ '
14664
14665 # NLS nuisances.
14666 for as_var in \
14667   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14668   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14669   LC_TELEPHONE LC_TIME
14670 do
14671   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14672     eval $as_var=C; export $as_var
14673   else
14674     $as_unset $as_var
14675   fi
14676 done
14677
14678 # Required to use basename.
14679 if expr a : '\(a\)' >/dev/null 2>&1; then
14680   as_expr=expr
14681 else
14682   as_expr=false
14683 fi
14684
14685 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14686   as_basename=basename
14687 else
14688   as_basename=false
14689 fi
14690
14691
14692 # Name of the executable.
14693 as_me=`$as_basename "$0" ||
14694 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14695          X"$0" : 'X\(//\)$' \| \
14696          X"$0" : 'X\(/\)$' \| \
14697          .     : '\(.\)' 2>/dev/null ||
14698 echo X/"$0" |
14699     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14700           /^X\/\(\/\/\)$/{ s//\1/; q; }
14701           /^X\/\(\/\).*/{ s//\1/; q; }
14702           s/.*/./; q'`
14703
14704
14705 # PATH needs CR, and LINENO needs CR and PATH.
14706 # Avoid depending upon Character Ranges.
14707 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14708 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14709 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14710 as_cr_digits='0123456789'
14711 as_cr_alnum=$as_cr_Letters$as_cr_digits
14712
14713 # The user is always right.
14714 if test "${PATH_SEPARATOR+set}" != set; then
14715   echo "#! /bin/sh" >conf$$.sh
14716   echo  "exit 0"   >>conf$$.sh
14717   chmod +x conf$$.sh
14718   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14719     PATH_SEPARATOR=';'
14720   else
14721     PATH_SEPARATOR=:
14722   fi
14723   rm -f conf$$.sh
14724 fi
14725
14726
14727   as_lineno_1=$LINENO
14728   as_lineno_2=$LINENO
14729   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14730   test "x$as_lineno_1" != "x$as_lineno_2" &&
14731   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
14732   # Find who we are.  Look in the path if we contain no path at all
14733   # relative or not.
14734   case $0 in
14735     *[\\/]* ) as_myself=$0 ;;
14736     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14737 for as_dir in $PATH
14738 do
14739   IFS=$as_save_IFS
14740   test -z "$as_dir" && as_dir=.
14741   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14742 done
14743
14744        ;;
14745   esac
14746   # We did not find ourselves, most probably we were run as `sh COMMAND'
14747   # in which case we are not to be found in the path.
14748   if test "x$as_myself" = x; then
14749     as_myself=$0
14750   fi
14751   if test ! -f "$as_myself"; then
14752     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14753 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14754    { (exit 1); exit 1; }; }
14755   fi
14756   case $CONFIG_SHELL in
14757   '')
14758     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14759 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14760 do
14761   IFS=$as_save_IFS
14762   test -z "$as_dir" && as_dir=.
14763   for as_base in sh bash ksh sh5; do
14764          case $as_dir in
14765          /*)
14766            if ("$as_dir/$as_base" -c '
14767   as_lineno_1=$LINENO
14768   as_lineno_2=$LINENO
14769   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14770   test "x$as_lineno_1" != "x$as_lineno_2" &&
14771   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
14772              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14773              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14774              CONFIG_SHELL=$as_dir/$as_base
14775              export CONFIG_SHELL
14776              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14777            fi;;
14778          esac
14779        done
14780 done
14781 ;;
14782   esac
14783
14784   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14785   # uniformly replaced by the line number.  The first 'sed' inserts a
14786   # line-number line before each line; the second 'sed' does the real
14787   # work.  The second script uses 'N' to pair each line-number line
14788   # with the numbered line, and appends trailing '-' during
14789   # substitution so that $LINENO is not a special case at line end.
14790   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14791   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
14792   sed '=' <$as_myself |
14793     sed '
14794       N
14795       s,$,-,
14796       : loop
14797       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14798       t loop
14799       s,-$,,
14800       s,^['$as_cr_digits']*\n,,
14801     ' >$as_me.lineno &&
14802   chmod +x $as_me.lineno ||
14803     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14804 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14805    { (exit 1); exit 1; }; }
14806
14807   # Don't try to exec as it changes $[0], causing all sort of problems
14808   # (the dirname of $[0] is not the place where we might find the
14809   # original and so on.  Autoconf is especially sensible to this).
14810   . ./$as_me.lineno
14811   # Exit status is that of the last command.
14812   exit
14813 }
14814
14815
14816 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14817   *c*,-n*) ECHO_N= ECHO_C='
14818 ' ECHO_T='      ' ;;
14819   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14820   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
14821 esac
14822
14823 if expr a : '\(a\)' >/dev/null 2>&1; then
14824   as_expr=expr
14825 else
14826   as_expr=false
14827 fi
14828
14829 rm -f conf$$ conf$$.exe conf$$.file
14830 echo >conf$$.file
14831 if ln -s conf$$.file conf$$ 2>/dev/null; then
14832   # We could just check for DJGPP; but this test a) works b) is more generic
14833   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14834   if test -f conf$$.exe; then
14835     # Don't use ln at all; we don't have any links
14836     as_ln_s='cp -p'
14837   else
14838     as_ln_s='ln -s'
14839   fi
14840 elif ln conf$$.file conf$$ 2>/dev/null; then
14841   as_ln_s=ln
14842 else
14843   as_ln_s='cp -p'
14844 fi
14845 rm -f conf$$ conf$$.exe conf$$.file
14846
14847 if mkdir -p . 2>/dev/null; then
14848   as_mkdir_p=:
14849 else
14850   test -d ./-p && rmdir ./-p
14851   as_mkdir_p=false
14852 fi
14853
14854 as_executable_p="test -f"
14855
14856 # Sed expression to map a string onto a valid CPP name.
14857 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14858
14859 # Sed expression to map a string onto a valid variable name.
14860 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14861
14862
14863 # IFS
14864 # We need space, tab and new line, in precisely that order.
14865 as_nl='
14866 '
14867 IFS="   $as_nl"
14868
14869 # CDPATH.
14870 $as_unset CDPATH
14871
14872 exec 6>&1
14873
14874 # Open the log real soon, to keep \$[0] and so on meaningful, and to
14875 # report actual input values of CONFIG_FILES etc. instead of their
14876 # values after options handling.  Logging --version etc. is OK.
14877 exec 5>>config.log
14878 {
14879   echo
14880   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14881 ## Running $as_me. ##
14882 _ASBOX
14883 } >&5
14884 cat >&5 <<_CSEOF
14885
14886 This file was extended by $as_me, which was
14887 generated by GNU Autoconf 2.59.  Invocation command line was
14888
14889   CONFIG_FILES    = $CONFIG_FILES
14890   CONFIG_HEADERS  = $CONFIG_HEADERS
14891   CONFIG_LINKS    = $CONFIG_LINKS
14892   CONFIG_COMMANDS = $CONFIG_COMMANDS
14893   $ $0 $@
14894
14895 _CSEOF
14896 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14897 echo >&5
14898 _ACEOF
14899
14900 # Files that config.status was made for.
14901 if test -n "$ac_config_files"; then
14902   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14903 fi
14904
14905 if test -n "$ac_config_headers"; then
14906   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14907 fi
14908
14909 if test -n "$ac_config_links"; then
14910   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14911 fi
14912
14913 if test -n "$ac_config_commands"; then
14914   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14915 fi
14916
14917 cat >>$CONFIG_STATUS <<\_ACEOF
14918
14919 ac_cs_usage="\
14920 \`$as_me' instantiates files from templates according to the
14921 current configuration.
14922
14923 Usage: $0 [OPTIONS] [FILE]...
14924
14925   -h, --help       print this help, then exit
14926   -V, --version    print version number, then exit
14927   -q, --quiet      do not print progress messages
14928   -d, --debug      don't remove temporary files
14929       --recheck    update $as_me by reconfiguring in the same conditions
14930   --file=FILE[:TEMPLATE]
14931                    instantiate the configuration file FILE
14932   --header=FILE[:TEMPLATE]
14933                    instantiate the configuration header FILE
14934
14935 Configuration files:
14936 $config_files
14937
14938 Configuration headers:
14939 $config_headers
14940
14941 Configuration commands:
14942 $config_commands
14943
14944 Report bugs to <bug-autoconf@gnu.org>."
14945 _ACEOF
14946
14947 cat >>$CONFIG_STATUS <<_ACEOF
14948 ac_cs_version="\\
14949 config.status
14950 configured by $0, generated by GNU Autoconf 2.59,
14951   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14952
14953 Copyright (C) 2003 Free Software Foundation, Inc.
14954 This config.status script is free software; the Free Software Foundation
14955 gives unlimited permission to copy, distribute and modify it."
14956 srcdir=$srcdir
14957 INSTALL="$INSTALL"
14958 _ACEOF
14959
14960 cat >>$CONFIG_STATUS <<\_ACEOF
14961 # If no file are specified by the user, then we need to provide default
14962 # value.  By we need to know if files were specified by the user.
14963 ac_need_defaults=:
14964 while test $# != 0
14965 do
14966   case $1 in
14967   --*=*)
14968     ac_option=`expr "x$1" : 'x\([^=]*\)='`
14969     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14970     ac_shift=:
14971     ;;
14972   -*)
14973     ac_option=$1
14974     ac_optarg=$2
14975     ac_shift=shift
14976     ;;
14977   *) # This is not an option, so the user has probably given explicit
14978      # arguments.
14979      ac_option=$1
14980      ac_need_defaults=false;;
14981   esac
14982
14983   case $ac_option in
14984   # Handling of the options.
14985 _ACEOF
14986 cat >>$CONFIG_STATUS <<\_ACEOF
14987   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14988     ac_cs_recheck=: ;;
14989   --version | --vers* | -V )
14990     echo "$ac_cs_version"; exit 0 ;;
14991   --he | --h)
14992     # Conflict between --help and --header
14993     { { echo "$as_me:$LINENO: error: ambiguous option: $1
14994 Try \`$0 --help' for more information." >&5
14995 echo "$as_me: error: ambiguous option: $1
14996 Try \`$0 --help' for more information." >&2;}
14997    { (exit 1); exit 1; }; };;
14998   --help | --hel | -h )
14999     echo "$ac_cs_usage"; exit 0 ;;
15000   --debug | --d* | -d )
15001     debug=: ;;
15002   --file | --fil | --fi | --f )
15003     $ac_shift
15004     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15005     ac_need_defaults=false;;
15006   --header | --heade | --head | --hea )
15007     $ac_shift
15008     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15009     ac_need_defaults=false;;
15010   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15011   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15012     ac_cs_silent=: ;;
15013
15014   # This is an error.
15015   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15016 Try \`$0 --help' for more information." >&5
15017 echo "$as_me: error: unrecognized option: $1
15018 Try \`$0 --help' for more information." >&2;}
15019    { (exit 1); exit 1; }; } ;;
15020
15021   *) ac_config_targets="$ac_config_targets $1" ;;
15022
15023   esac
15024   shift
15025 done
15026
15027 ac_configure_extra_args=
15028
15029 if $ac_cs_silent; then
15030   exec 6>/dev/null
15031   ac_configure_extra_args="$ac_configure_extra_args --silent"
15032 fi
15033
15034 _ACEOF
15035 cat >>$CONFIG_STATUS <<_ACEOF
15036 if \$ac_cs_recheck; then
15037   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15038   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15039 fi
15040
15041 _ACEOF
15042
15043 cat >>$CONFIG_STATUS <<_ACEOF
15044 #
15045 # INIT-COMMANDS section.
15046 #
15047
15048 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15049     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
15050     # from automake.
15051     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15052     # Capture the value of LINGUAS because we need it to compute CATALOGS.
15053     LINGUAS="${LINGUAS-%UNSET%}"
15054
15055 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15056
15057 _ACEOF
15058
15059
15060
15061 cat >>$CONFIG_STATUS <<\_ACEOF
15062 for ac_config_target in $ac_config_targets
15063 do
15064   case "$ac_config_target" in
15065   # Handling of arguments.
15066   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15067   "abook.spec" ) CONFIG_FILES="$CONFIG_FILES abook.spec" ;;
15068   "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
15069   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
15070   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15071   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15072   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15073   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15074 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15075    { (exit 1); exit 1; }; };;
15076   esac
15077 done
15078
15079 # If the user did not use the arguments to specify the items to instantiate,
15080 # then the envvar interface is used.  Set only those that are not.
15081 # We use the long form for the default assignment because of an extremely
15082 # bizarre bug on SunOS 4.1.3.
15083 if $ac_need_defaults; then
15084   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15085   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15086   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15087 fi
15088
15089 # Have a temporary directory for convenience.  Make it in the build tree
15090 # simply because there is no reason to put it here, and in addition,
15091 # creating and moving files from /tmp can sometimes cause problems.
15092 # Create a temporary directory, and hook for its removal unless debugging.
15093 $debug ||
15094 {
15095   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15096   trap '{ (exit 1); exit 1; }' 1 2 13 15
15097 }
15098
15099 # Create a (secure) tmp directory for tmp files.
15100
15101 {
15102   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15103   test -n "$tmp" && test -d "$tmp"
15104 }  ||
15105 {
15106   tmp=./confstat$$-$RANDOM
15107   (umask 077 && mkdir $tmp)
15108 } ||
15109 {
15110    echo "$me: cannot create a temporary directory in ." >&2
15111    { (exit 1); exit 1; }
15112 }
15113
15114 _ACEOF
15115
15116 cat >>$CONFIG_STATUS <<_ACEOF
15117
15118 #
15119 # CONFIG_FILES section.
15120 #
15121
15122 # No need to generate the scripts if there are no CONFIG_FILES.
15123 # This happens for instance when ./config.status config.h
15124 if test -n "\$CONFIG_FILES"; then
15125   # Protect against being on the right side of a sed subst in config.status.
15126   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15127    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15128 s,@SHELL@,$SHELL,;t t
15129 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15130 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15131 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15132 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15133 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15134 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15135 s,@exec_prefix@,$exec_prefix,;t t
15136 s,@prefix@,$prefix,;t t
15137 s,@program_transform_name@,$program_transform_name,;t t
15138 s,@bindir@,$bindir,;t t
15139 s,@sbindir@,$sbindir,;t t
15140 s,@libexecdir@,$libexecdir,;t t
15141 s,@datadir@,$datadir,;t t
15142 s,@sysconfdir@,$sysconfdir,;t t
15143 s,@sharedstatedir@,$sharedstatedir,;t t
15144 s,@localstatedir@,$localstatedir,;t t
15145 s,@libdir@,$libdir,;t t
15146 s,@includedir@,$includedir,;t t
15147 s,@oldincludedir@,$oldincludedir,;t t
15148 s,@infodir@,$infodir,;t t
15149 s,@mandir@,$mandir,;t t
15150 s,@build_alias@,$build_alias,;t t
15151 s,@host_alias@,$host_alias,;t t
15152 s,@target_alias@,$target_alias,;t t
15153 s,@DEFS@,$DEFS,;t t
15154 s,@ECHO_C@,$ECHO_C,;t t
15155 s,@ECHO_N@,$ECHO_N,;t t
15156 s,@ECHO_T@,$ECHO_T,;t t
15157 s,@LIBS@,$LIBS,;t t
15158 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15159 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15160 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15161 s,@CYGPATH_W@,$CYGPATH_W,;t t
15162 s,@PACKAGE@,$PACKAGE,;t t
15163 s,@VERSION@,$VERSION,;t t
15164 s,@ACLOCAL@,$ACLOCAL,;t t
15165 s,@AUTOCONF@,$AUTOCONF,;t t
15166 s,@AUTOMAKE@,$AUTOMAKE,;t t
15167 s,@AUTOHEADER@,$AUTOHEADER,;t t
15168 s,@MAKEINFO@,$MAKEINFO,;t t
15169 s,@install_sh@,$install_sh,;t t
15170 s,@STRIP@,$STRIP,;t t
15171 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15172 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
15173 s,@mkdir_p@,$mkdir_p,;t t
15174 s,@AWK@,$AWK,;t t
15175 s,@SET_MAKE@,$SET_MAKE,;t t
15176 s,@am__leading_dot@,$am__leading_dot,;t t
15177 s,@AMTAR@,$AMTAR,;t t
15178 s,@am__tar@,$am__tar,;t t
15179 s,@am__untar@,$am__untar,;t t
15180 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
15181 s,@USE_NLS@,$USE_NLS,;t t
15182 s,@MSGFMT@,$MSGFMT,;t t
15183 s,@GMSGFMT@,$GMSGFMT,;t t
15184 s,@XGETTEXT@,$XGETTEXT,;t t
15185 s,@MSGMERGE@,$MSGMERGE,;t t
15186 s,@CC@,$CC,;t t
15187 s,@CFLAGS@,$CFLAGS,;t t
15188 s,@LDFLAGS@,$LDFLAGS,;t t
15189 s,@CPPFLAGS@,$CPPFLAGS,;t t
15190 s,@ac_ct_CC@,$ac_ct_CC,;t t
15191 s,@EXEEXT@,$EXEEXT,;t t
15192 s,@OBJEXT@,$OBJEXT,;t t
15193 s,@DEPDIR@,$DEPDIR,;t t
15194 s,@am__include@,$am__include,;t t
15195 s,@am__quote@,$am__quote,;t t
15196 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
15197 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
15198 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
15199 s,@CCDEPMODE@,$CCDEPMODE,;t t
15200 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
15201 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
15202 s,@build@,$build,;t t
15203 s,@build_cpu@,$build_cpu,;t t
15204 s,@build_vendor@,$build_vendor,;t t
15205 s,@build_os@,$build_os,;t t
15206 s,@host@,$host,;t t
15207 s,@host_cpu@,$host_cpu,;t t
15208 s,@host_vendor@,$host_vendor,;t t
15209 s,@host_os@,$host_os,;t t
15210 s,@CPP@,$CPP,;t t
15211 s,@EGREP@,$EGREP,;t t
15212 s,@GLIBC2@,$GLIBC2,;t t
15213 s,@RANLIB@,$RANLIB,;t t
15214 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15215 s,@ALLOCA@,$ALLOCA,;t t
15216 s,@GLIBC21@,$GLIBC21,;t t
15217 s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
15218 s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
15219 s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
15220 s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
15221 s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
15222 s,@LIBICONV@,$LIBICONV,;t t
15223 s,@LTLIBICONV@,$LTLIBICONV,;t t
15224 s,@INTLBISON@,$INTLBISON,;t t
15225 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
15226 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
15227 s,@CATOBJEXT@,$CATOBJEXT,;t t
15228 s,@DATADIRNAME@,$DATADIRNAME,;t t
15229 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
15230 s,@GENCAT@,$GENCAT,;t t
15231 s,@INTLOBJS@,$INTLOBJS,;t t
15232 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
15233 s,@INTLLIBS@,$INTLLIBS,;t t
15234 s,@LIBINTL@,$LIBINTL,;t t
15235 s,@LTLIBINTL@,$LTLIBINTL,;t t
15236 s,@POSUB@,$POSUB,;t t
15237 s,@localedir@,$localedir,;t t
15238 s,@USE_INCLUDED_INTL_H_TRUE@,$USE_INCLUDED_INTL_H_TRUE,;t t
15239 s,@USE_INCLUDED_INTL_H_FALSE@,$USE_INCLUDED_INTL_H_FALSE,;t t
15240 s,@U@,$U,;t t
15241 s,@ANSI2KNR@,$ANSI2KNR,;t t
15242 s,@LIBOBJS@,$LIBOBJS,;t t
15243 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15244 CEOF
15245
15246 _ACEOF
15247
15248   cat >>$CONFIG_STATUS <<\_ACEOF
15249   # Split the substitutions into bite-sized pieces for seds with
15250   # small command number limits, like on Digital OSF/1 and HP-UX.
15251   ac_max_sed_lines=48
15252   ac_sed_frag=1 # Number of current file.
15253   ac_beg=1 # First line for current file.
15254   ac_end=$ac_max_sed_lines # Line after last line for current file.
15255   ac_more_lines=:
15256   ac_sed_cmds=
15257   while $ac_more_lines; do
15258     if test $ac_beg -gt 1; then
15259       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15260     else
15261       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15262     fi
15263     if test ! -s $tmp/subs.frag; then
15264       ac_more_lines=false
15265     else
15266       # The purpose of the label and of the branching condition is to
15267       # speed up the sed processing (if there are no `@' at all, there
15268       # is no need to browse any of the substitutions).
15269       # These are the two extra sed commands mentioned above.
15270       (echo ':t
15271   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15272       if test -z "$ac_sed_cmds"; then
15273         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15274       else
15275         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15276       fi
15277       ac_sed_frag=`expr $ac_sed_frag + 1`
15278       ac_beg=$ac_end
15279       ac_end=`expr $ac_end + $ac_max_sed_lines`
15280     fi
15281   done
15282   if test -z "$ac_sed_cmds"; then
15283     ac_sed_cmds=cat
15284   fi
15285 fi # test -n "$CONFIG_FILES"
15286
15287 _ACEOF
15288 cat >>$CONFIG_STATUS <<\_ACEOF
15289 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15290   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15291   case $ac_file in
15292   - | *:- | *:-:* ) # input from stdin
15293         cat >$tmp/stdin
15294         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15295         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15296   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15297         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15298   * )   ac_file_in=$ac_file.in ;;
15299   esac
15300
15301   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15302   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15303 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15304          X"$ac_file" : 'X\(//\)[^/]' \| \
15305          X"$ac_file" : 'X\(//\)$' \| \
15306          X"$ac_file" : 'X\(/\)' \| \
15307          .     : '\(.\)' 2>/dev/null ||
15308 echo X"$ac_file" |
15309     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15310           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15311           /^X\(\/\/\)$/{ s//\1/; q; }
15312           /^X\(\/\).*/{ s//\1/; q; }
15313           s/.*/./; q'`
15314   { if $as_mkdir_p; then
15315     mkdir -p "$ac_dir"
15316   else
15317     as_dir="$ac_dir"
15318     as_dirs=
15319     while test ! -d "$as_dir"; do
15320       as_dirs="$as_dir $as_dirs"
15321       as_dir=`(dirname "$as_dir") 2>/dev/null ||
15322 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15323          X"$as_dir" : 'X\(//\)[^/]' \| \
15324          X"$as_dir" : 'X\(//\)$' \| \
15325          X"$as_dir" : 'X\(/\)' \| \
15326          .     : '\(.\)' 2>/dev/null ||
15327 echo X"$as_dir" |
15328     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15329           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15330           /^X\(\/\/\)$/{ s//\1/; q; }
15331           /^X\(\/\).*/{ s//\1/; q; }
15332           s/.*/./; q'`
15333     done
15334     test ! -n "$as_dirs" || mkdir $as_dirs
15335   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15336 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15337    { (exit 1); exit 1; }; }; }
15338
15339   ac_builddir=.
15340
15341 if test "$ac_dir" != .; then
15342   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15343   # A "../" for each directory in $ac_dir_suffix.
15344   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15345 else
15346   ac_dir_suffix= ac_top_builddir=
15347 fi
15348
15349 case $srcdir in
15350   .)  # No --srcdir option.  We are building in place.
15351     ac_srcdir=.
15352     if test -z "$ac_top_builddir"; then
15353        ac_top_srcdir=.
15354     else
15355        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15356     fi ;;
15357   [\\/]* | ?:[\\/]* )  # Absolute path.
15358     ac_srcdir=$srcdir$ac_dir_suffix;
15359     ac_top_srcdir=$srcdir ;;
15360   *) # Relative path.
15361     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15362     ac_top_srcdir=$ac_top_builddir$srcdir ;;
15363 esac
15364
15365 # Do not use `cd foo && pwd` to compute absolute paths, because
15366 # the directories may not exist.
15367 case `pwd` in
15368 .) ac_abs_builddir="$ac_dir";;
15369 *)
15370   case "$ac_dir" in
15371   .) ac_abs_builddir=`pwd`;;
15372   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15373   *) ac_abs_builddir=`pwd`/"$ac_dir";;
15374   esac;;
15375 esac
15376 case $ac_abs_builddir in
15377 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15378 *)
15379   case ${ac_top_builddir}. in
15380   .) ac_abs_top_builddir=$ac_abs_builddir;;
15381   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15382   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15383   esac;;
15384 esac
15385 case $ac_abs_builddir in
15386 .) ac_abs_srcdir=$ac_srcdir;;
15387 *)
15388   case $ac_srcdir in
15389   .) ac_abs_srcdir=$ac_abs_builddir;;
15390   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15391   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15392   esac;;
15393 esac
15394 case $ac_abs_builddir in
15395 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15396 *)
15397   case $ac_top_srcdir in
15398   .) ac_abs_top_srcdir=$ac_abs_builddir;;
15399   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15400   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15401   esac;;
15402 esac
15403
15404
15405   case $INSTALL in
15406   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15407   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
15408   esac
15409
15410   if test x"$ac_file" != x-; then
15411     { echo "$as_me:$LINENO: creating $ac_file" >&5
15412 echo "$as_me: creating $ac_file" >&6;}
15413     rm -f "$ac_file"
15414   fi
15415   # Let's still pretend it is `configure' which instantiates (i.e., don't
15416   # use $as_me), people would be surprised to read:
15417   #    /* config.h.  Generated by config.status.  */
15418   if test x"$ac_file" = x-; then
15419     configure_input=
15420   else
15421     configure_input="$ac_file.  "
15422   fi
15423   configure_input=$configure_input"Generated from `echo $ac_file_in |
15424                                      sed 's,.*/,,'` by configure."
15425
15426   # First look for the input files in the build tree, otherwise in the
15427   # src tree.
15428   ac_file_inputs=`IFS=:
15429     for f in $ac_file_in; do
15430       case $f in
15431       -) echo $tmp/stdin ;;
15432       [\\/$]*)
15433          # Absolute (can't be DOS-style, as IFS=:)
15434          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15435 echo "$as_me: error: cannot find input file: $f" >&2;}
15436    { (exit 1); exit 1; }; }
15437          echo "$f";;
15438       *) # Relative
15439          if test -f "$f"; then
15440            # Build tree
15441            echo "$f"
15442          elif test -f "$srcdir/$f"; then
15443            # Source tree
15444            echo "$srcdir/$f"
15445          else
15446            # /dev/null tree
15447            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15448 echo "$as_me: error: cannot find input file: $f" >&2;}
15449    { (exit 1); exit 1; }; }
15450          fi;;
15451       esac
15452     done` || { (exit 1); exit 1; }
15453 _ACEOF
15454 cat >>$CONFIG_STATUS <<_ACEOF
15455   sed "$ac_vpsub
15456 $extrasub
15457 _ACEOF
15458 cat >>$CONFIG_STATUS <<\_ACEOF
15459 :t
15460 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15461 s,@configure_input@,$configure_input,;t t
15462 s,@srcdir@,$ac_srcdir,;t t
15463 s,@abs_srcdir@,$ac_abs_srcdir,;t t
15464 s,@top_srcdir@,$ac_top_srcdir,;t t
15465 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15466 s,@builddir@,$ac_builddir,;t t
15467 s,@abs_builddir@,$ac_abs_builddir,;t t
15468 s,@top_builddir@,$ac_top_builddir,;t t
15469 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15470 s,@INSTALL@,$ac_INSTALL,;t t
15471 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15472   rm -f $tmp/stdin
15473   if test x"$ac_file" != x-; then
15474     mv $tmp/out $ac_file
15475   else
15476     cat $tmp/out
15477     rm -f $tmp/out
15478   fi
15479
15480 done
15481 _ACEOF
15482 cat >>$CONFIG_STATUS <<\_ACEOF
15483
15484 #
15485 # CONFIG_HEADER section.
15486 #
15487
15488 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15489 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15490 #
15491 # ac_d sets the value in "#define NAME VALUE" lines.
15492 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
15493 ac_dB='[         ].*$,\1#\2'
15494 ac_dC=' '
15495 ac_dD=',;t'
15496 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15497 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
15498 ac_uB='$,\1#\2define\3'
15499 ac_uC=' '
15500 ac_uD=',;t'
15501
15502 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
15503   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15504   case $ac_file in
15505   - | *:- | *:-:* ) # input from stdin
15506         cat >$tmp/stdin
15507         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15508         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15509   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15510         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15511   * )   ac_file_in=$ac_file.in ;;
15512   esac
15513
15514   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15515 echo "$as_me: creating $ac_file" >&6;}
15516
15517   # First look for the input files in the build tree, otherwise in the
15518   # src tree.
15519   ac_file_inputs=`IFS=:
15520     for f in $ac_file_in; do
15521       case $f in
15522       -) echo $tmp/stdin ;;
15523       [\\/$]*)
15524          # Absolute (can't be DOS-style, as IFS=:)
15525          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15526 echo "$as_me: error: cannot find input file: $f" >&2;}
15527    { (exit 1); exit 1; }; }
15528          # Do quote $f, to prevent DOS paths from being IFS'd.
15529          echo "$f";;
15530       *) # Relative
15531          if test -f "$f"; then
15532            # Build tree
15533            echo "$f"
15534          elif test -f "$srcdir/$f"; then
15535            # Source tree
15536            echo "$srcdir/$f"
15537          else
15538            # /dev/null tree
15539            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15540 echo "$as_me: error: cannot find input file: $f" >&2;}
15541    { (exit 1); exit 1; }; }
15542          fi;;
15543       esac
15544     done` || { (exit 1); exit 1; }
15545   # Remove the trailing spaces.
15546   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
15547
15548 _ACEOF
15549
15550 # Transform confdefs.h into two sed scripts, `conftest.defines' and
15551 # `conftest.undefs', that substitutes the proper values into
15552 # config.h.in to produce config.h.  The first handles `#define'
15553 # templates, and the second `#undef' templates.
15554 # And first: Protect against being on the right side of a sed subst in
15555 # config.status.  Protect against being in an unquoted here document
15556 # in config.status.
15557 rm -f conftest.defines conftest.undefs
15558 # Using a here document instead of a string reduces the quoting nightmare.
15559 # Putting comments in sed scripts is not portable.
15560 #
15561 # `end' is used to avoid that the second main sed command (meant for
15562 # 0-ary CPP macros) applies to n-ary macro definitions.
15563 # See the Autoconf documentation for `clear'.
15564 cat >confdef2sed.sed <<\_ACEOF
15565 s/[\\&,]/\\&/g
15566 s,[\\$`],\\&,g
15567 t clear
15568 : clear
15569 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
15570 t end
15571 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15572 : end
15573 _ACEOF
15574 # If some macros were called several times there might be several times
15575 # the same #defines, which is useless.  Nevertheless, we may not want to
15576 # sort them, since we want the *last* AC-DEFINE to be honored.
15577 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15578 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15579 rm -f confdef2sed.sed
15580
15581 # This sed command replaces #undef with comments.  This is necessary, for
15582 # example, in the case of _POSIX_SOURCE, which is predefined and required
15583 # on some systems where configure will not decide to define it.
15584 cat >>conftest.undefs <<\_ACEOF
15585 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
15586 _ACEOF
15587
15588 # Break up conftest.defines because some shells have a limit on the size
15589 # of here documents, and old seds have small limits too (100 cmds).
15590 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15591 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15592 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15593 echo '  :' >>$CONFIG_STATUS
15594 rm -f conftest.tail
15595 while grep . conftest.defines >/dev/null
15596 do
15597   # Write a limited-size here document to $tmp/defines.sed.
15598   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15599   # Speed up: don't consider the non `#define' lines.
15600   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
15601   # Work around the forget-to-reset-the-flag bug.
15602   echo 't clr' >>$CONFIG_STATUS
15603   echo ': clr' >>$CONFIG_STATUS
15604   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15605   echo 'CEOF
15606   sed -f $tmp/defines.sed $tmp/in >$tmp/out
15607   rm -f $tmp/in
15608   mv $tmp/out $tmp/in
15609 ' >>$CONFIG_STATUS
15610   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15611   rm -f conftest.defines
15612   mv conftest.tail conftest.defines
15613 done
15614 rm -f conftest.defines
15615 echo '  fi # grep' >>$CONFIG_STATUS
15616 echo >>$CONFIG_STATUS
15617
15618 # Break up conftest.undefs because some shells have a limit on the size
15619 # of here documents, and old seds have small limits too (100 cmds).
15620 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
15621 rm -f conftest.tail
15622 while grep . conftest.undefs >/dev/null
15623 do
15624   # Write a limited-size here document to $tmp/undefs.sed.
15625   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15626   # Speed up: don't consider the non `#undef'
15627   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
15628   # Work around the forget-to-reset-the-flag bug.
15629   echo 't clr' >>$CONFIG_STATUS
15630   echo ': clr' >>$CONFIG_STATUS
15631   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
15632   echo 'CEOF
15633   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15634   rm -f $tmp/in
15635   mv $tmp/out $tmp/in
15636 ' >>$CONFIG_STATUS
15637   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15638   rm -f conftest.undefs
15639   mv conftest.tail conftest.undefs
15640 done
15641 rm -f conftest.undefs
15642
15643 cat >>$CONFIG_STATUS <<\_ACEOF
15644   # Let's still pretend it is `configure' which instantiates (i.e., don't
15645   # use $as_me), people would be surprised to read:
15646   #    /* config.h.  Generated by config.status.  */
15647   if test x"$ac_file" = x-; then
15648     echo "/* Generated by configure.  */" >$tmp/config.h
15649   else
15650     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
15651   fi
15652   cat $tmp/in >>$tmp/config.h
15653   rm -f $tmp/in
15654   if test x"$ac_file" != x-; then
15655     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
15656       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15657 echo "$as_me: $ac_file is unchanged" >&6;}
15658     else
15659       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15660 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15661          X"$ac_file" : 'X\(//\)[^/]' \| \
15662          X"$ac_file" : 'X\(//\)$' \| \
15663          X"$ac_file" : 'X\(/\)' \| \
15664          .     : '\(.\)' 2>/dev/null ||
15665 echo X"$ac_file" |
15666     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15667           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15668           /^X\(\/\/\)$/{ s//\1/; q; }
15669           /^X\(\/\).*/{ s//\1/; q; }
15670           s/.*/./; q'`
15671       { if $as_mkdir_p; then
15672     mkdir -p "$ac_dir"
15673   else
15674     as_dir="$ac_dir"
15675     as_dirs=
15676     while test ! -d "$as_dir"; do
15677       as_dirs="$as_dir $as_dirs"
15678       as_dir=`(dirname "$as_dir") 2>/dev/null ||
15679 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15680          X"$as_dir" : 'X\(//\)[^/]' \| \
15681          X"$as_dir" : 'X\(//\)$' \| \
15682          X"$as_dir" : 'X\(/\)' \| \
15683          .     : '\(.\)' 2>/dev/null ||
15684 echo X"$as_dir" |
15685     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15686           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15687           /^X\(\/\/\)$/{ s//\1/; q; }
15688           /^X\(\/\).*/{ s//\1/; q; }
15689           s/.*/./; q'`
15690     done
15691     test ! -n "$as_dirs" || mkdir $as_dirs
15692   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15693 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15694    { (exit 1); exit 1; }; }; }
15695
15696       rm -f $ac_file
15697       mv $tmp/config.h $ac_file
15698     fi
15699   else
15700     cat $tmp/config.h
15701     rm -f $tmp/config.h
15702   fi
15703 # Compute $ac_file's index in $config_headers.
15704 _am_stamp_count=1
15705 for _am_header in $config_headers :; do
15706   case $_am_header in
15707     $ac_file | $ac_file:* )
15708       break ;;
15709     * )
15710       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15711   esac
15712 done
15713 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
15714 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15715          X$ac_file : 'X\(//\)[^/]' \| \
15716          X$ac_file : 'X\(//\)$' \| \
15717          X$ac_file : 'X\(/\)' \| \
15718          .     : '\(.\)' 2>/dev/null ||
15719 echo X$ac_file |
15720     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15721           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15722           /^X\(\/\/\)$/{ s//\1/; q; }
15723           /^X\(\/\).*/{ s//\1/; q; }
15724           s/.*/./; q'`/stamp-h$_am_stamp_count
15725 done
15726 _ACEOF
15727 cat >>$CONFIG_STATUS <<\_ACEOF
15728
15729 #
15730 # CONFIG_COMMANDS section.
15731 #
15732 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15733   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15734   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15735   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15736 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15737          X"$ac_dest" : 'X\(//\)[^/]' \| \
15738          X"$ac_dest" : 'X\(//\)$' \| \
15739          X"$ac_dest" : 'X\(/\)' \| \
15740          .     : '\(.\)' 2>/dev/null ||
15741 echo X"$ac_dest" |
15742     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15743           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15744           /^X\(\/\/\)$/{ s//\1/; q; }
15745           /^X\(\/\).*/{ s//\1/; q; }
15746           s/.*/./; q'`
15747   { if $as_mkdir_p; then
15748     mkdir -p "$ac_dir"
15749   else
15750     as_dir="$ac_dir"
15751     as_dirs=
15752     while test ! -d "$as_dir"; do
15753       as_dirs="$as_dir $as_dirs"
15754       as_dir=`(dirname "$as_dir") 2>/dev/null ||
15755 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15756          X"$as_dir" : 'X\(//\)[^/]' \| \
15757          X"$as_dir" : 'X\(//\)$' \| \
15758          X"$as_dir" : 'X\(/\)' \| \
15759          .     : '\(.\)' 2>/dev/null ||
15760 echo X"$as_dir" |
15761     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15762           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15763           /^X\(\/\/\)$/{ s//\1/; q; }
15764           /^X\(\/\).*/{ s//\1/; q; }
15765           s/.*/./; q'`
15766     done
15767     test ! -n "$as_dirs" || mkdir $as_dirs
15768   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15769 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15770    { (exit 1); exit 1; }; }; }
15771
15772   ac_builddir=.
15773
15774 if test "$ac_dir" != .; then
15775   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15776   # A "../" for each directory in $ac_dir_suffix.
15777   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15778 else
15779   ac_dir_suffix= ac_top_builddir=
15780 fi
15781
15782 case $srcdir in
15783   .)  # No --srcdir option.  We are building in place.
15784     ac_srcdir=.
15785     if test -z "$ac_top_builddir"; then
15786        ac_top_srcdir=.
15787     else
15788        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15789     fi ;;
15790   [\\/]* | ?:[\\/]* )  # Absolute path.
15791     ac_srcdir=$srcdir$ac_dir_suffix;
15792     ac_top_srcdir=$srcdir ;;
15793   *) # Relative path.
15794     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15795     ac_top_srcdir=$ac_top_builddir$srcdir ;;
15796 esac
15797
15798 # Do not use `cd foo && pwd` to compute absolute paths, because
15799 # the directories may not exist.
15800 case `pwd` in
15801 .) ac_abs_builddir="$ac_dir";;
15802 *)
15803   case "$ac_dir" in
15804   .) ac_abs_builddir=`pwd`;;
15805   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15806   *) ac_abs_builddir=`pwd`/"$ac_dir";;
15807   esac;;
15808 esac
15809 case $ac_abs_builddir in
15810 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15811 *)
15812   case ${ac_top_builddir}. in
15813   .) ac_abs_top_builddir=$ac_abs_builddir;;
15814   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15815   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15816   esac;;
15817 esac
15818 case $ac_abs_builddir in
15819 .) ac_abs_srcdir=$ac_srcdir;;
15820 *)
15821   case $ac_srcdir in
15822   .) ac_abs_srcdir=$ac_abs_builddir;;
15823   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15824   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15825   esac;;
15826 esac
15827 case $ac_abs_builddir in
15828 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15829 *)
15830   case $ac_top_srcdir in
15831   .) ac_abs_top_srcdir=$ac_abs_builddir;;
15832   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15833   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15834   esac;;
15835 esac
15836
15837
15838   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15839 echo "$as_me: executing $ac_dest commands" >&6;}
15840   case $ac_dest in
15841     default-1 )
15842     for ac_file in $CONFIG_FILES; do
15843       # Support "outfile[:infile[:infile...]]"
15844       case "$ac_file" in
15845         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15846       esac
15847       # PO directories have a Makefile.in generated from Makefile.in.in.
15848       case "$ac_file" in */Makefile.in)
15849         # Adjust a relative srcdir.
15850         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15851         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
15852         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15853         # In autoconf-2.13 it is called $ac_given_srcdir.
15854         # In autoconf-2.50 it is called $srcdir.
15855         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15856         case "$ac_given_srcdir" in
15857           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15858           /*) top_srcdir="$ac_given_srcdir" ;;
15859           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
15860         esac
15861         # Treat a directory as a PO directory if and only if it has a
15862         # POTFILES.in file. This allows packages to have multiple PO
15863         # directories under different names or in different locations.
15864         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15865           rm -f "$ac_dir/POTFILES"
15866           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15867           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15868           POMAKEFILEDEPS="POTFILES.in"
15869           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
15870           # on $ac_dir but don't depend on user-specified configuration
15871           # parameters.
15872           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15873             # The LINGUAS file contains the set of available languages.
15874             if test -n "$OBSOLETE_ALL_LINGUAS"; then
15875               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15876             fi
15877             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15878             # Hide the ALL_LINGUAS assigment from automake.
15879             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15880             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15881           else
15882             # The set of available languages was given in configure.in.
15883             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15884           fi
15885           # Compute POFILES
15886           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15887           # Compute UPDATEPOFILES
15888           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15889           # Compute DUMMYPOFILES
15890           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15891           # Compute GMOFILES
15892           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
15893           case "$ac_given_srcdir" in
15894             .) srcdirpre= ;;
15895             *) srcdirpre='$(srcdir)/' ;;
15896           esac
15897           POFILES=
15898           UPDATEPOFILES=
15899           DUMMYPOFILES=
15900           GMOFILES=
15901           for lang in $ALL_LINGUAS; do
15902             POFILES="$POFILES $srcdirpre$lang.po"
15903             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15904             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15905             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15906           done
15907           # CATALOGS depends on both $ac_dir and the user's LINGUAS
15908           # environment variable.
15909           INST_LINGUAS=
15910           if test -n "$ALL_LINGUAS"; then
15911             for presentlang in $ALL_LINGUAS; do
15912               useit=no
15913               if test "%UNSET%" != "$LINGUAS"; then
15914                 desiredlanguages="$LINGUAS"
15915               else
15916                 desiredlanguages="$ALL_LINGUAS"
15917               fi
15918               for desiredlang in $desiredlanguages; do
15919                 # Use the presentlang catalog if desiredlang is
15920                 #   a. equal to presentlang, or
15921                 #   b. a variant of presentlang (because in this case,
15922                 #      presentlang can be used as a fallback for messages
15923                 #      which are not translated in the desiredlang catalog).
15924                 case "$desiredlang" in
15925                   "$presentlang"*) useit=yes;;
15926                 esac
15927               done
15928               if test $useit = yes; then
15929                 INST_LINGUAS="$INST_LINGUAS $presentlang"
15930               fi
15931             done
15932           fi
15933           CATALOGS=
15934           if test -n "$INST_LINGUAS"; then
15935             for lang in $INST_LINGUAS; do
15936               CATALOGS="$CATALOGS $lang.gmo"
15937             done
15938           fi
15939           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15940           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"
15941         fi
15942         ;;
15943       esac
15944     done ;;
15945     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
15946   # Strip MF so we end up with the name of the file.
15947   mf=`echo "$mf" | sed -e 's/:.*$//'`
15948   # Check whether this is an Automake generated Makefile or not.
15949   # We used to match only the files named `Makefile.in', but
15950   # some people rename them; so instead we look at the file content.
15951   # Grep'ing the first line is not enough: some people post-process
15952   # each Makefile.in and add a new line on top of each file to say so.
15953   # So let's grep whole file.
15954   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
15955     dirpart=`(dirname "$mf") 2>/dev/null ||
15956 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15957          X"$mf" : 'X\(//\)[^/]' \| \
15958          X"$mf" : 'X\(//\)$' \| \
15959          X"$mf" : 'X\(/\)' \| \
15960          .     : '\(.\)' 2>/dev/null ||
15961 echo X"$mf" |
15962     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15963           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15964           /^X\(\/\/\)$/{ s//\1/; q; }
15965           /^X\(\/\).*/{ s//\1/; q; }
15966           s/.*/./; q'`
15967   else
15968     continue
15969   fi
15970   # Extract the definition of DEPDIR, am__include, and am__quote
15971   # from the Makefile without running `make'.
15972   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15973   test -z "$DEPDIR" && continue
15974   am__include=`sed -n 's/^am__include = //p' < "$mf"`
15975   test -z "am__include" && continue
15976   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15977   # When using ansi2knr, U may be empty or an underscore; expand it
15978   U=`sed -n 's/^U = //p' < "$mf"`
15979   # Find all dependency output files, they are included files with
15980   # $(DEPDIR) in their names.  We invoke sed twice because it is the
15981   # simplest approach to changing $(DEPDIR) to its actual value in the
15982   # expansion.
15983   for file in `sed -n "
15984     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15985        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15986     # Make sure the directory exists.
15987     test -f "$dirpart/$file" && continue
15988     fdir=`(dirname "$file") 2>/dev/null ||
15989 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15990          X"$file" : 'X\(//\)[^/]' \| \
15991          X"$file" : 'X\(//\)$' \| \
15992          X"$file" : 'X\(/\)' \| \
15993          .     : '\(.\)' 2>/dev/null ||
15994 echo X"$file" |
15995     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15996           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15997           /^X\(\/\/\)$/{ s//\1/; q; }
15998           /^X\(\/\).*/{ s//\1/; q; }
15999           s/.*/./; q'`
16000     { if $as_mkdir_p; then
16001     mkdir -p $dirpart/$fdir
16002   else
16003     as_dir=$dirpart/$fdir
16004     as_dirs=
16005     while test ! -d "$as_dir"; do
16006       as_dirs="$as_dir $as_dirs"
16007       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16008 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16009          X"$as_dir" : 'X\(//\)[^/]' \| \
16010          X"$as_dir" : 'X\(//\)$' \| \
16011          X"$as_dir" : 'X\(/\)' \| \
16012          .     : '\(.\)' 2>/dev/null ||
16013 echo X"$as_dir" |
16014     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16015           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16016           /^X\(\/\/\)$/{ s//\1/; q; }
16017           /^X\(\/\).*/{ s//\1/; q; }
16018           s/.*/./; q'`
16019     done
16020     test ! -n "$as_dirs" || mkdir $as_dirs
16021   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
16022 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
16023    { (exit 1); exit 1; }; }; }
16024
16025     # echo "creating $dirpart/$file"
16026     echo '# dummy' > "$dirpart/$file"
16027   done
16028 done
16029  ;;
16030   esac
16031 done
16032 _ACEOF
16033
16034 cat >>$CONFIG_STATUS <<\_ACEOF
16035
16036 { (exit 0); exit 0; }
16037 _ACEOF
16038 chmod +x $CONFIG_STATUS
16039 ac_clean_files=$ac_clean_files_save
16040
16041
16042 # configure is writing to config.log, and then calls config.status.
16043 # config.status does its own redirection, appending to config.log.
16044 # Unfortunately, on DOS this fails, as config.log is still kept open
16045 # by configure, so config.status won't be able to write to it; its
16046 # output is simply discarded.  So we exec the FD to /dev/null,
16047 # effectively closing config.log, so it can be properly (re)opened and
16048 # appended to by config.status.  When coming back to configure, we
16049 # need to make the FD available again.
16050 if test "$no_create" != yes; then
16051   ac_cs_success=:
16052   ac_config_status_args=
16053   test "$silent" = yes &&
16054     ac_config_status_args="$ac_config_status_args --quiet"
16055   exec 5>/dev/null
16056   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16057   exec 5>>config.log
16058   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16059   # would make configure fail if this is the last instruction.
16060   $ac_cs_success || { (exit 1); exit 1; }
16061 fi
16062
16063