]> git.decadent.org.uk Git - ap-utils.git/blob - configure
Imported Upstream version 1.4.2~pre1~a
[ap-utils.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="lib/snmp.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 AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE RANLIB ac_ct_RANLIB CPP EGREP LIBOBJS MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE build build_cpu build_vendor build_os host host_cpu host_vendor host_os ALLOCA GLIBC21 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 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-dependency-tracking Speeds up one-time builds
853   --enable-dependency-tracking  Do not reject slow dependency extractors
854   --disable-nls           do not use Native Language Support
855   --disable-rpath         do not hardcode runtime library paths
856  --disable-regdomain     disable regulation domain channel restrictions
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
868 Some influential environment variables:
869   CC          C compiler command
870   CFLAGS      C compiler flags
871   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
872               nonstandard directory <lib dir>
873   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
874               headers in a nonstandard directory <include dir>
875   CPP         C preprocessor
876
877 Use these variables to override the choices made by `configure' or to help
878 it to find libraries and programs with nonstandard names/locations.
879
880 _ACEOF
881 fi
882
883 if test "$ac_init_help" = "recursive"; then
884   # If there are subdirs, report their specific --help.
885   ac_popdir=`pwd`
886   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
887     test -d $ac_dir || continue
888     ac_builddir=.
889
890 if test "$ac_dir" != .; then
891   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
892   # A "../" for each directory in $ac_dir_suffix.
893   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
894 else
895   ac_dir_suffix= ac_top_builddir=
896 fi
897
898 case $srcdir in
899   .)  # No --srcdir option.  We are building in place.
900     ac_srcdir=.
901     if test -z "$ac_top_builddir"; then
902        ac_top_srcdir=.
903     else
904        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
905     fi ;;
906   [\\/]* | ?:[\\/]* )  # Absolute path.
907     ac_srcdir=$srcdir$ac_dir_suffix;
908     ac_top_srcdir=$srcdir ;;
909   *) # Relative path.
910     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
911     ac_top_srcdir=$ac_top_builddir$srcdir ;;
912 esac
913
914 # Do not use `cd foo && pwd` to compute absolute paths, because
915 # the directories may not exist.
916 case `pwd` in
917 .) ac_abs_builddir="$ac_dir";;
918 *)
919   case "$ac_dir" in
920   .) ac_abs_builddir=`pwd`;;
921   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
922   *) ac_abs_builddir=`pwd`/"$ac_dir";;
923   esac;;
924 esac
925 case $ac_abs_builddir in
926 .) ac_abs_top_builddir=${ac_top_builddir}.;;
927 *)
928   case ${ac_top_builddir}. in
929   .) ac_abs_top_builddir=$ac_abs_builddir;;
930   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
931   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
932   esac;;
933 esac
934 case $ac_abs_builddir in
935 .) ac_abs_srcdir=$ac_srcdir;;
936 *)
937   case $ac_srcdir in
938   .) ac_abs_srcdir=$ac_abs_builddir;;
939   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
940   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
941   esac;;
942 esac
943 case $ac_abs_builddir in
944 .) ac_abs_top_srcdir=$ac_top_srcdir;;
945 *)
946   case $ac_top_srcdir in
947   .) ac_abs_top_srcdir=$ac_abs_builddir;;
948   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
949   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
950   esac;;
951 esac
952
953     cd $ac_dir
954     # Check for guested configure; otherwise get Cygnus style configure.
955     if test -f $ac_srcdir/configure.gnu; then
956       echo
957       $SHELL $ac_srcdir/configure.gnu  --help=recursive
958     elif test -f $ac_srcdir/configure; then
959       echo
960       $SHELL $ac_srcdir/configure  --help=recursive
961     elif test -f $ac_srcdir/configure.ac ||
962            test -f $ac_srcdir/configure.in; then
963       echo
964       $ac_configure --help
965     else
966       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
967     fi
968     cd $ac_popdir
969   done
970 fi
971
972 test -n "$ac_init_help" && exit 0
973 if $ac_init_version; then
974   cat <<\_ACEOF
975
976 Copyright (C) 2003 Free Software Foundation, Inc.
977 This configure script is free software; the Free Software Foundation
978 gives unlimited permission to copy, distribute and modify it.
979 _ACEOF
980   exit 0
981 fi
982 exec 5>config.log
983 cat >&5 <<_ACEOF
984 This file contains any messages produced by compilers while
985 running configure, to aid debugging if configure makes a mistake.
986
987 It was created by $as_me, which was
988 generated by GNU Autoconf 2.59.  Invocation command line was
989
990   $ $0 $@
991
992 _ACEOF
993 {
994 cat <<_ASUNAME
995 ## --------- ##
996 ## Platform. ##
997 ## --------- ##
998
999 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1000 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1001 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1002 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1003 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1004
1005 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1006 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1007
1008 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1009 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1010 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1011 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1012 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1013 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1014 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1015
1016 _ASUNAME
1017
1018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1019 for as_dir in $PATH
1020 do
1021   IFS=$as_save_IFS
1022   test -z "$as_dir" && as_dir=.
1023   echo "PATH: $as_dir"
1024 done
1025
1026 } >&5
1027
1028 cat >&5 <<_ACEOF
1029
1030
1031 ## ----------- ##
1032 ## Core tests. ##
1033 ## ----------- ##
1034
1035 _ACEOF
1036
1037
1038 # Keep a trace of the command line.
1039 # Strip out --no-create and --no-recursion so they do not pile up.
1040 # Strip out --silent because we don't want to record it for future runs.
1041 # Also quote any args containing shell meta-characters.
1042 # Make two passes to allow for proper duplicate-argument suppression.
1043 ac_configure_args=
1044 ac_configure_args0=
1045 ac_configure_args1=
1046 ac_sep=
1047 ac_must_keep_next=false
1048 for ac_pass in 1 2
1049 do
1050   for ac_arg
1051   do
1052     case $ac_arg in
1053     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1054     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1055     | -silent | --silent | --silen | --sile | --sil)
1056       continue ;;
1057     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1058       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1059     esac
1060     case $ac_pass in
1061     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1062     2)
1063       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1064       if test $ac_must_keep_next = true; then
1065         ac_must_keep_next=false # Got value, back to normal.
1066       else
1067         case $ac_arg in
1068           *=* | --config-cache | -C | -disable-* | --disable-* \
1069           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1070           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1071           | -with-* | --with-* | -without-* | --without-* | --x)
1072             case "$ac_configure_args0 " in
1073               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1074             esac
1075             ;;
1076           -* ) ac_must_keep_next=true ;;
1077         esac
1078       fi
1079       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1080       # Get rid of the leading space.
1081       ac_sep=" "
1082       ;;
1083     esac
1084   done
1085 done
1086 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1087 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1088
1089 # When interrupted or exit'd, cleanup temporary files, and complete
1090 # config.log.  We remove comments because anyway the quotes in there
1091 # would cause problems or look ugly.
1092 # WARNING: Be sure not to use single quotes in there, as some shells,
1093 # such as our DU 5.0 friend, will then `close' the trap.
1094 trap 'exit_status=$?
1095   # Save into config.log some information that might help in debugging.
1096   {
1097     echo
1098
1099     cat <<\_ASBOX
1100 ## ---------------- ##
1101 ## Cache variables. ##
1102 ## ---------------- ##
1103 _ASBOX
1104     echo
1105     # The following way of writing the cache mishandles newlines in values,
1106 {
1107   (set) 2>&1 |
1108     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1109     *ac_space=\ *)
1110       sed -n \
1111         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1112           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1113       ;;
1114     *)
1115       sed -n \
1116         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1117       ;;
1118     esac;
1119 }
1120     echo
1121
1122     cat <<\_ASBOX
1123 ## ----------------- ##
1124 ## Output variables. ##
1125 ## ----------------- ##
1126 _ASBOX
1127     echo
1128     for ac_var in $ac_subst_vars
1129     do
1130       eval ac_val=$`echo $ac_var`
1131       echo "$ac_var='"'"'$ac_val'"'"'"
1132     done | sort
1133     echo
1134
1135     if test -n "$ac_subst_files"; then
1136       cat <<\_ASBOX
1137 ## ------------- ##
1138 ## Output files. ##
1139 ## ------------- ##
1140 _ASBOX
1141       echo
1142       for ac_var in $ac_subst_files
1143       do
1144         eval ac_val=$`echo $ac_var`
1145         echo "$ac_var='"'"'$ac_val'"'"'"
1146       done | sort
1147       echo
1148     fi
1149
1150     if test -s confdefs.h; then
1151       cat <<\_ASBOX
1152 ## ----------- ##
1153 ## confdefs.h. ##
1154 ## ----------- ##
1155 _ASBOX
1156       echo
1157       sed "/^$/d" confdefs.h | sort
1158       echo
1159     fi
1160     test "$ac_signal" != 0 &&
1161       echo "$as_me: caught signal $ac_signal"
1162     echo "$as_me: exit $exit_status"
1163   } >&5
1164   rm -f core *.core &&
1165   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1166     exit $exit_status
1167      ' 0
1168 for ac_signal in 1 2 13 15; do
1169   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1170 done
1171 ac_signal=0
1172
1173 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1174 rm -rf conftest* confdefs.h
1175 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1176 echo >confdefs.h
1177
1178 # Predefined preprocessor variables.
1179
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_NAME "$PACKAGE_NAME"
1182 _ACEOF
1183
1184
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1187 _ACEOF
1188
1189
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1192 _ACEOF
1193
1194
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_STRING "$PACKAGE_STRING"
1197 _ACEOF
1198
1199
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1202 _ACEOF
1203
1204
1205 # Let the site file select an alternate cache file if it wants to.
1206 # Prefer explicitly selected file to automatically selected ones.
1207 if test -z "$CONFIG_SITE"; then
1208   if test "x$prefix" != xNONE; then
1209     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1210   else
1211     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1212   fi
1213 fi
1214 for ac_site_file in $CONFIG_SITE; do
1215   if test -r "$ac_site_file"; then
1216     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1217 echo "$as_me: loading site script $ac_site_file" >&6;}
1218     sed 's/^/| /' "$ac_site_file" >&5
1219     . "$ac_site_file"
1220   fi
1221 done
1222
1223 if test -r "$cache_file"; then
1224   # Some versions of bash will fail to source /dev/null (special
1225   # files actually), so we avoid doing that.
1226   if test -f "$cache_file"; then
1227     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1228 echo "$as_me: loading cache $cache_file" >&6;}
1229     case $cache_file in
1230       [\\/]* | ?:[\\/]* ) . $cache_file;;
1231       *)                      . ./$cache_file;;
1232     esac
1233   fi
1234 else
1235   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1236 echo "$as_me: creating cache $cache_file" >&6;}
1237   >$cache_file
1238 fi
1239
1240 # Check that the precious variables saved in the cache have kept the same
1241 # value.
1242 ac_cache_corrupted=false
1243 for ac_var in `(set) 2>&1 |
1244                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1245   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1246   eval ac_new_set=\$ac_env_${ac_var}_set
1247   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1248   eval ac_new_val="\$ac_env_${ac_var}_value"
1249   case $ac_old_set,$ac_new_set in
1250     set,)
1251       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1252 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1253       ac_cache_corrupted=: ;;
1254     ,set)
1255       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1256 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1257       ac_cache_corrupted=: ;;
1258     ,);;
1259     *)
1260       if test "x$ac_old_val" != "x$ac_new_val"; then
1261         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1262 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1263         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1264 echo "$as_me:   former value:  $ac_old_val" >&2;}
1265         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1266 echo "$as_me:   current value: $ac_new_val" >&2;}
1267         ac_cache_corrupted=:
1268       fi;;
1269   esac
1270   # Pass precious variables to config.status.
1271   if test "$ac_new_set" = set; then
1272     case $ac_new_val in
1273     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1274       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1275     *) ac_arg=$ac_var=$ac_new_val ;;
1276     esac
1277     case " $ac_configure_args " in
1278       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1279       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1280     esac
1281   fi
1282 done
1283 if $ac_cache_corrupted; then
1284   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1285 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1286   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1287 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1288    { (exit 1); exit 1; }; }
1289 fi
1290
1291 ac_ext=c
1292 ac_cpp='$CPP $CPPFLAGS'
1293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315 ac_aux_dir=
1316 for ac_dir in config $srcdir/config; do
1317   if test -f $ac_dir/install-sh; then
1318     ac_aux_dir=$ac_dir
1319     ac_install_sh="$ac_aux_dir/install-sh -c"
1320     break
1321   elif 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/shtool; then
1326     ac_aux_dir=$ac_dir
1327     ac_install_sh="$ac_aux_dir/shtool install -c"
1328     break
1329   fi
1330 done
1331 if test -z "$ac_aux_dir"; then
1332   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1333 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1334    { (exit 1); exit 1; }; }
1335 fi
1336 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1337 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1338 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1339
1340 am__api_version="1.7"
1341 # Find a good install program.  We prefer a C program (faster),
1342 # so one script is as good as another.  But avoid the broken or
1343 # incompatible versions:
1344 # SysV /etc/install, /usr/sbin/install
1345 # SunOS /usr/etc/install
1346 # IRIX /sbin/install
1347 # AIX /bin/install
1348 # AmigaOS /C/install, which installs bootblocks on floppy discs
1349 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1350 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1351 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1352 # OS/2's system install, which has a completely different semantic
1353 # ./install, which can be erroneously created by make from ./install.sh.
1354 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1355 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1356 if test -z "$INSTALL"; then
1357 if test "${ac_cv_path_install+set}" = set; then
1358   echo $ECHO_N "(cached) $ECHO_C" >&6
1359 else
1360   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1361 for as_dir in $PATH
1362 do
1363   IFS=$as_save_IFS
1364   test -z "$as_dir" && as_dir=.
1365   # Account for people who put trailing slashes in PATH elements.
1366 case $as_dir/ in
1367   ./ | .// | /cC/* | \
1368   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1369   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1370   /usr/ucb/* ) ;;
1371   *)
1372     # OSF1 and SCO ODT 3.0 have their own names for install.
1373     # Don't use installbsd from OSF since it installs stuff as root
1374     # by default.
1375     for ac_prog in ginstall scoinst install; do
1376       for ac_exec_ext in '' $ac_executable_extensions; do
1377         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1378           if test $ac_prog = install &&
1379             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1380             # AIX install.  It has an incompatible calling convention.
1381             :
1382           elif test $ac_prog = install &&
1383             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1384             # program-specific install script used by HP pwplus--don't use.
1385             :
1386           else
1387             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1388             break 3
1389           fi
1390         fi
1391       done
1392     done
1393     ;;
1394 esac
1395 done
1396
1397
1398 fi
1399   if test "${ac_cv_path_install+set}" = set; then
1400     INSTALL=$ac_cv_path_install
1401   else
1402     # As a last resort, use the slow shell script.  We don't cache a
1403     # path for INSTALL within a source directory, because that will
1404     # break other packages using the cache if that directory is
1405     # removed, or if the path is relative.
1406     INSTALL=$ac_install_sh
1407   fi
1408 fi
1409 echo "$as_me:$LINENO: result: $INSTALL" >&5
1410 echo "${ECHO_T}$INSTALL" >&6
1411
1412 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1413 # It thinks the first close brace ends the variable substitution.
1414 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1415
1416 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1417
1418 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1419
1420 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1421 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1422 # Just in case
1423 sleep 1
1424 echo timestamp > conftest.file
1425 # Do `set' in a subshell so we don't clobber the current shell's
1426 # arguments.  Must try -L first in case configure is actually a
1427 # symlink; some systems play weird games with the mod time of symlinks
1428 # (eg FreeBSD returns the mod time of the symlink's containing
1429 # directory).
1430 if (
1431    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1432    if test "$*" = "X"; then
1433       # -L didn't work.
1434       set X `ls -t $srcdir/configure conftest.file`
1435    fi
1436    rm -f conftest.file
1437    if test "$*" != "X $srcdir/configure conftest.file" \
1438       && test "$*" != "X conftest.file $srcdir/configure"; then
1439
1440       # If neither matched, then we have a broken ls.  This can happen
1441       # if, for instance, CONFIG_SHELL is bash and it inherits a
1442       # broken ls alias from the environment.  This has actually
1443       # happened.  Such a system could not be considered "sane".
1444       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1445 alias in your environment" >&5
1446 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1447 alias in your environment" >&2;}
1448    { (exit 1); exit 1; }; }
1449    fi
1450
1451    test "$2" = conftest.file
1452    )
1453 then
1454    # Ok.
1455    :
1456 else
1457    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1458 Check your system clock" >&5
1459 echo "$as_me: error: newly created file is older than distributed files!
1460 Check your system clock" >&2;}
1461    { (exit 1); exit 1; }; }
1462 fi
1463 echo "$as_me:$LINENO: result: yes" >&5
1464 echo "${ECHO_T}yes" >&6
1465 test "$program_prefix" != NONE &&
1466   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1467 # Use a double $ so make ignores it.
1468 test "$program_suffix" != NONE &&
1469   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1470 # Double any \ or $.  echo might interpret backslashes.
1471 # By default was `s,x,x', remove it if useless.
1472 cat <<\_ACEOF >conftest.sed
1473 s/[\\$]/&&/g;s/;s,x,x,$//
1474 _ACEOF
1475 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1476 rm conftest.sed
1477
1478
1479 # expand $ac_aux_dir to an absolute path
1480 am_aux_dir=`cd $ac_aux_dir && pwd`
1481
1482 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1483 # Use eval to expand $SHELL
1484 if eval "$MISSING --run true"; then
1485   am_missing_run="$MISSING --run "
1486 else
1487   am_missing_run=
1488   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1489 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1490 fi
1491
1492 for ac_prog in gawk mawk nawk awk
1493 do
1494   # Extract the first word of "$ac_prog", so it can be a program name with args.
1495 set dummy $ac_prog; ac_word=$2
1496 echo "$as_me:$LINENO: checking for $ac_word" >&5
1497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1498 if test "${ac_cv_prog_AWK+set}" = set; then
1499   echo $ECHO_N "(cached) $ECHO_C" >&6
1500 else
1501   if test -n "$AWK"; then
1502   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1503 else
1504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1505 for as_dir in $PATH
1506 do
1507   IFS=$as_save_IFS
1508   test -z "$as_dir" && as_dir=.
1509   for ac_exec_ext in '' $ac_executable_extensions; do
1510   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1511     ac_cv_prog_AWK="$ac_prog"
1512     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1513     break 2
1514   fi
1515 done
1516 done
1517
1518 fi
1519 fi
1520 AWK=$ac_cv_prog_AWK
1521 if test -n "$AWK"; then
1522   echo "$as_me:$LINENO: result: $AWK" >&5
1523 echo "${ECHO_T}$AWK" >&6
1524 else
1525   echo "$as_me:$LINENO: result: no" >&5
1526 echo "${ECHO_T}no" >&6
1527 fi
1528
1529   test -n "$AWK" && break
1530 done
1531
1532 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1533 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1534 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1535 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1536   echo $ECHO_N "(cached) $ECHO_C" >&6
1537 else
1538   cat >conftest.make <<\_ACEOF
1539 all:
1540         @echo 'ac_maketemp="$(MAKE)"'
1541 _ACEOF
1542 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1543 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1544 if test -n "$ac_maketemp"; then
1545   eval ac_cv_prog_make_${ac_make}_set=yes
1546 else
1547   eval ac_cv_prog_make_${ac_make}_set=no
1548 fi
1549 rm -f conftest.make
1550 fi
1551 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1552   echo "$as_me:$LINENO: result: yes" >&5
1553 echo "${ECHO_T}yes" >&6
1554   SET_MAKE=
1555 else
1556   echo "$as_me:$LINENO: result: no" >&5
1557 echo "${ECHO_T}no" >&6
1558   SET_MAKE="MAKE=${MAKE-make}"
1559 fi
1560
1561 rm -rf .tst 2>/dev/null
1562 mkdir .tst 2>/dev/null
1563 if test -d .tst; then
1564   am__leading_dot=.
1565 else
1566   am__leading_dot=_
1567 fi
1568 rmdir .tst 2>/dev/null
1569
1570  # test to see if srcdir already configured
1571 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1572    test -f $srcdir/config.status; then
1573   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1574 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1575    { (exit 1); exit 1; }; }
1576 fi
1577
1578 # test whether we have cygpath
1579 if test -z "$CYGPATH_W"; then
1580   if (cygpath --version) >/dev/null 2>/dev/null; then
1581     CYGPATH_W='cygpath -w'
1582   else
1583     CYGPATH_W=echo
1584   fi
1585 fi
1586
1587
1588 # Define the identity of the package.
1589  PACKAGE=ap-utils
1590  VERSION=1.4.2-pre1a
1591
1592
1593 cat >>confdefs.h <<_ACEOF
1594 #define PACKAGE "$PACKAGE"
1595 _ACEOF
1596
1597
1598 cat >>confdefs.h <<_ACEOF
1599 #define VERSION "$VERSION"
1600 _ACEOF
1601
1602 # Some tools Automake needs.
1603
1604 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1605
1606
1607 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1608
1609
1610 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1611
1612
1613 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1614
1615
1616 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1617
1618
1619 AMTAR=${AMTAR-"${am_missing_run}tar"}
1620
1621 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1622
1623 # Installed binaries are usually stripped using `strip' when the user
1624 # run `make install-strip'.  However `strip' might not be the right
1625 # tool to use in cross-compilation environments, therefore Automake
1626 # will honor the `STRIP' environment variable to overrule this program.
1627 if test "$cross_compiling" != no; then
1628   if test -n "$ac_tool_prefix"; then
1629   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1630 set dummy ${ac_tool_prefix}strip; ac_word=$2
1631 echo "$as_me:$LINENO: checking for $ac_word" >&5
1632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1633 if test "${ac_cv_prog_STRIP+set}" = set; then
1634   echo $ECHO_N "(cached) $ECHO_C" >&6
1635 else
1636   if test -n "$STRIP"; then
1637   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1638 else
1639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1640 for as_dir in $PATH
1641 do
1642   IFS=$as_save_IFS
1643   test -z "$as_dir" && as_dir=.
1644   for ac_exec_ext in '' $ac_executable_extensions; do
1645   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1646     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1647     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1648     break 2
1649   fi
1650 done
1651 done
1652
1653 fi
1654 fi
1655 STRIP=$ac_cv_prog_STRIP
1656 if test -n "$STRIP"; then
1657   echo "$as_me:$LINENO: result: $STRIP" >&5
1658 echo "${ECHO_T}$STRIP" >&6
1659 else
1660   echo "$as_me:$LINENO: result: no" >&5
1661 echo "${ECHO_T}no" >&6
1662 fi
1663
1664 fi
1665 if test -z "$ac_cv_prog_STRIP"; then
1666   ac_ct_STRIP=$STRIP
1667   # Extract the first word of "strip", so it can be a program name with args.
1668 set dummy strip; ac_word=$2
1669 echo "$as_me:$LINENO: checking for $ac_word" >&5
1670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1671 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1672   echo $ECHO_N "(cached) $ECHO_C" >&6
1673 else
1674   if test -n "$ac_ct_STRIP"; then
1675   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1676 else
1677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1678 for as_dir in $PATH
1679 do
1680   IFS=$as_save_IFS
1681   test -z "$as_dir" && as_dir=.
1682   for ac_exec_ext in '' $ac_executable_extensions; do
1683   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1684     ac_cv_prog_ac_ct_STRIP="strip"
1685     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1686     break 2
1687   fi
1688 done
1689 done
1690
1691   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1692 fi
1693 fi
1694 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1695 if test -n "$ac_ct_STRIP"; then
1696   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1697 echo "${ECHO_T}$ac_ct_STRIP" >&6
1698 else
1699   echo "$as_me:$LINENO: result: no" >&5
1700 echo "${ECHO_T}no" >&6
1701 fi
1702
1703   STRIP=$ac_ct_STRIP
1704 else
1705   STRIP="$ac_cv_prog_STRIP"
1706 fi
1707
1708 fi
1709 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1710
1711 # We need awk for the "check" target.  The system "awk" is bad on
1712 # some platforms.
1713
1714
1715
1716           ac_config_headers="$ac_config_headers config.h"
1717
1718
1719 ac_aux_dir=config
1720 ac_config_guess=config/config.guess
1721 ac_config_sub=config/config.sub
1722
1723 # Checks for programs.
1724 ac_ext=c
1725 ac_cpp='$CPP $CPPFLAGS'
1726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1729 if test -n "$ac_tool_prefix"; then
1730   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1731 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1732 echo "$as_me:$LINENO: checking for $ac_word" >&5
1733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1734 if test "${ac_cv_prog_CC+set}" = set; then
1735   echo $ECHO_N "(cached) $ECHO_C" >&6
1736 else
1737   if test -n "$CC"; then
1738   ac_cv_prog_CC="$CC" # Let the user override the test.
1739 else
1740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1741 for as_dir in $PATH
1742 do
1743   IFS=$as_save_IFS
1744   test -z "$as_dir" && as_dir=.
1745   for ac_exec_ext in '' $ac_executable_extensions; do
1746   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1747     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1748     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1749     break 2
1750   fi
1751 done
1752 done
1753
1754 fi
1755 fi
1756 CC=$ac_cv_prog_CC
1757 if test -n "$CC"; then
1758   echo "$as_me:$LINENO: result: $CC" >&5
1759 echo "${ECHO_T}$CC" >&6
1760 else
1761   echo "$as_me:$LINENO: result: no" >&5
1762 echo "${ECHO_T}no" >&6
1763 fi
1764
1765 fi
1766 if test -z "$ac_cv_prog_CC"; then
1767   ac_ct_CC=$CC
1768   # Extract the first word of "gcc", so it can be a program name with args.
1769 set dummy gcc; ac_word=$2
1770 echo "$as_me:$LINENO: checking for $ac_word" >&5
1771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1772 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1773   echo $ECHO_N "(cached) $ECHO_C" >&6
1774 else
1775   if test -n "$ac_ct_CC"; then
1776   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1777 else
1778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1779 for as_dir in $PATH
1780 do
1781   IFS=$as_save_IFS
1782   test -z "$as_dir" && as_dir=.
1783   for ac_exec_ext in '' $ac_executable_extensions; do
1784   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1785     ac_cv_prog_ac_ct_CC="gcc"
1786     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1787     break 2
1788   fi
1789 done
1790 done
1791
1792 fi
1793 fi
1794 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1795 if test -n "$ac_ct_CC"; then
1796   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1797 echo "${ECHO_T}$ac_ct_CC" >&6
1798 else
1799   echo "$as_me:$LINENO: result: no" >&5
1800 echo "${ECHO_T}no" >&6
1801 fi
1802
1803   CC=$ac_ct_CC
1804 else
1805   CC="$ac_cv_prog_CC"
1806 fi
1807
1808 if test -z "$CC"; then
1809   if test -n "$ac_tool_prefix"; then
1810   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1811 set dummy ${ac_tool_prefix}cc; ac_word=$2
1812 echo "$as_me:$LINENO: checking for $ac_word" >&5
1813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1814 if test "${ac_cv_prog_CC+set}" = set; then
1815   echo $ECHO_N "(cached) $ECHO_C" >&6
1816 else
1817   if test -n "$CC"; then
1818   ac_cv_prog_CC="$CC" # Let the user override the test.
1819 else
1820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1821 for as_dir in $PATH
1822 do
1823   IFS=$as_save_IFS
1824   test -z "$as_dir" && as_dir=.
1825   for ac_exec_ext in '' $ac_executable_extensions; do
1826   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1827     ac_cv_prog_CC="${ac_tool_prefix}cc"
1828     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1829     break 2
1830   fi
1831 done
1832 done
1833
1834 fi
1835 fi
1836 CC=$ac_cv_prog_CC
1837 if test -n "$CC"; then
1838   echo "$as_me:$LINENO: result: $CC" >&5
1839 echo "${ECHO_T}$CC" >&6
1840 else
1841   echo "$as_me:$LINENO: result: no" >&5
1842 echo "${ECHO_T}no" >&6
1843 fi
1844
1845 fi
1846 if test -z "$ac_cv_prog_CC"; then
1847   ac_ct_CC=$CC
1848   # Extract the first word of "cc", so it can be a program name with args.
1849 set dummy cc; ac_word=$2
1850 echo "$as_me:$LINENO: checking for $ac_word" >&5
1851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1852 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1853   echo $ECHO_N "(cached) $ECHO_C" >&6
1854 else
1855   if test -n "$ac_ct_CC"; then
1856   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1857 else
1858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1859 for as_dir in $PATH
1860 do
1861   IFS=$as_save_IFS
1862   test -z "$as_dir" && as_dir=.
1863   for ac_exec_ext in '' $ac_executable_extensions; do
1864   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1865     ac_cv_prog_ac_ct_CC="cc"
1866     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1867     break 2
1868   fi
1869 done
1870 done
1871
1872 fi
1873 fi
1874 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1875 if test -n "$ac_ct_CC"; then
1876   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1877 echo "${ECHO_T}$ac_ct_CC" >&6
1878 else
1879   echo "$as_me:$LINENO: result: no" >&5
1880 echo "${ECHO_T}no" >&6
1881 fi
1882
1883   CC=$ac_ct_CC
1884 else
1885   CC="$ac_cv_prog_CC"
1886 fi
1887
1888 fi
1889 if test -z "$CC"; then
1890   # Extract the first word of "cc", so it can be a program name with args.
1891 set dummy cc; ac_word=$2
1892 echo "$as_me:$LINENO: checking for $ac_word" >&5
1893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1894 if test "${ac_cv_prog_CC+set}" = set; then
1895   echo $ECHO_N "(cached) $ECHO_C" >&6
1896 else
1897   if test -n "$CC"; then
1898   ac_cv_prog_CC="$CC" # Let the user override the test.
1899 else
1900   ac_prog_rejected=no
1901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1902 for as_dir in $PATH
1903 do
1904   IFS=$as_save_IFS
1905   test -z "$as_dir" && as_dir=.
1906   for ac_exec_ext in '' $ac_executable_extensions; do
1907   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1908     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1909        ac_prog_rejected=yes
1910        continue
1911      fi
1912     ac_cv_prog_CC="cc"
1913     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1914     break 2
1915   fi
1916 done
1917 done
1918
1919 if test $ac_prog_rejected = yes; then
1920   # We found a bogon in the path, so make sure we never use it.
1921   set dummy $ac_cv_prog_CC
1922   shift
1923   if test $# != 0; then
1924     # We chose a different compiler from the bogus one.
1925     # However, it has the same basename, so the bogon will be chosen
1926     # first if we set CC to just the basename; use the full file name.
1927     shift
1928     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1929   fi
1930 fi
1931 fi
1932 fi
1933 CC=$ac_cv_prog_CC
1934 if test -n "$CC"; then
1935   echo "$as_me:$LINENO: result: $CC" >&5
1936 echo "${ECHO_T}$CC" >&6
1937 else
1938   echo "$as_me:$LINENO: result: no" >&5
1939 echo "${ECHO_T}no" >&6
1940 fi
1941
1942 fi
1943 if test -z "$CC"; then
1944   if test -n "$ac_tool_prefix"; then
1945   for ac_prog in cl
1946   do
1947     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1948 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1949 echo "$as_me:$LINENO: checking for $ac_word" >&5
1950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1951 if test "${ac_cv_prog_CC+set}" = set; then
1952   echo $ECHO_N "(cached) $ECHO_C" >&6
1953 else
1954   if test -n "$CC"; then
1955   ac_cv_prog_CC="$CC" # Let the user override the test.
1956 else
1957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1958 for as_dir in $PATH
1959 do
1960   IFS=$as_save_IFS
1961   test -z "$as_dir" && as_dir=.
1962   for ac_exec_ext in '' $ac_executable_extensions; do
1963   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1964     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1965     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1966     break 2
1967   fi
1968 done
1969 done
1970
1971 fi
1972 fi
1973 CC=$ac_cv_prog_CC
1974 if test -n "$CC"; then
1975   echo "$as_me:$LINENO: result: $CC" >&5
1976 echo "${ECHO_T}$CC" >&6
1977 else
1978   echo "$as_me:$LINENO: result: no" >&5
1979 echo "${ECHO_T}no" >&6
1980 fi
1981
1982     test -n "$CC" && break
1983   done
1984 fi
1985 if test -z "$CC"; then
1986   ac_ct_CC=$CC
1987   for ac_prog in cl
1988 do
1989   # Extract the first word of "$ac_prog", so it can be a program name with args.
1990 set dummy $ac_prog; ac_word=$2
1991 echo "$as_me:$LINENO: checking for $ac_word" >&5
1992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1993 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1994   echo $ECHO_N "(cached) $ECHO_C" >&6
1995 else
1996   if test -n "$ac_ct_CC"; then
1997   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1998 else
1999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2000 for as_dir in $PATH
2001 do
2002   IFS=$as_save_IFS
2003   test -z "$as_dir" && as_dir=.
2004   for ac_exec_ext in '' $ac_executable_extensions; do
2005   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2006     ac_cv_prog_ac_ct_CC="$ac_prog"
2007     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2008     break 2
2009   fi
2010 done
2011 done
2012
2013 fi
2014 fi
2015 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2016 if test -n "$ac_ct_CC"; then
2017   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2018 echo "${ECHO_T}$ac_ct_CC" >&6
2019 else
2020   echo "$as_me:$LINENO: result: no" >&5
2021 echo "${ECHO_T}no" >&6
2022 fi
2023
2024   test -n "$ac_ct_CC" && break
2025 done
2026
2027   CC=$ac_ct_CC
2028 fi
2029
2030 fi
2031
2032
2033 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2034 See \`config.log' for more details." >&5
2035 echo "$as_me: error: no acceptable C compiler found in \$PATH
2036 See \`config.log' for more details." >&2;}
2037    { (exit 1); exit 1; }; }
2038
2039 # Provide some information about the compiler.
2040 echo "$as_me:$LINENO:" \
2041      "checking for C compiler version" >&5
2042 ac_compiler=`set X $ac_compile; echo $2`
2043 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2044   (eval $ac_compiler --version </dev/null >&5) 2>&5
2045   ac_status=$?
2046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2047   (exit $ac_status); }
2048 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2049   (eval $ac_compiler -v </dev/null >&5) 2>&5
2050   ac_status=$?
2051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052   (exit $ac_status); }
2053 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2054   (eval $ac_compiler -V </dev/null >&5) 2>&5
2055   ac_status=$?
2056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057   (exit $ac_status); }
2058
2059 cat >conftest.$ac_ext <<_ACEOF
2060 /* confdefs.h.  */
2061 _ACEOF
2062 cat confdefs.h >>conftest.$ac_ext
2063 cat >>conftest.$ac_ext <<_ACEOF
2064 /* end confdefs.h.  */
2065
2066 int
2067 main ()
2068 {
2069
2070   ;
2071   return 0;
2072 }
2073 _ACEOF
2074 ac_clean_files_save=$ac_clean_files
2075 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2076 # Try to create an executable without -o first, disregard a.out.
2077 # It will help us diagnose broken compilers, and finding out an intuition
2078 # of exeext.
2079 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2080 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2081 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2082 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2083   (eval $ac_link_default) 2>&5
2084   ac_status=$?
2085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086   (exit $ac_status); }; then
2087   # Find the output, starting from the most likely.  This scheme is
2088 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2089 # resort.
2090
2091 # Be careful to initialize this variable, since it used to be cached.
2092 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2093 ac_cv_exeext=
2094 # b.out is created by i960 compilers.
2095 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2096 do
2097   test -f "$ac_file" || continue
2098   case $ac_file in
2099     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2100         ;;
2101     conftest.$ac_ext )
2102         # This is the source file.
2103         ;;
2104     [ab].out )
2105         # We found the default executable, but exeext='' is most
2106         # certainly right.
2107         break;;
2108     *.* )
2109         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2110         # FIXME: I believe we export ac_cv_exeext for Libtool,
2111         # but it would be cool to find out if it's true.  Does anybody
2112         # maintain Libtool? --akim.
2113         export ac_cv_exeext
2114         break;;
2115     * )
2116         break;;
2117   esac
2118 done
2119 else
2120   echo "$as_me: failed program was:" >&5
2121 sed 's/^/| /' conftest.$ac_ext >&5
2122
2123 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2124 See \`config.log' for more details." >&5
2125 echo "$as_me: error: C compiler cannot create executables
2126 See \`config.log' for more details." >&2;}
2127    { (exit 77); exit 77; }; }
2128 fi
2129
2130 ac_exeext=$ac_cv_exeext
2131 echo "$as_me:$LINENO: result: $ac_file" >&5
2132 echo "${ECHO_T}$ac_file" >&6
2133
2134 # Check the compiler produces executables we can run.  If not, either
2135 # the compiler is broken, or we cross compile.
2136 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2137 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2138 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2139 # If not cross compiling, check that we can run a simple program.
2140 if test "$cross_compiling" != yes; then
2141   if { ac_try='./$ac_file'
2142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2143   (eval $ac_try) 2>&5
2144   ac_status=$?
2145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146   (exit $ac_status); }; }; then
2147     cross_compiling=no
2148   else
2149     if test "$cross_compiling" = maybe; then
2150         cross_compiling=yes
2151     else
2152         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2153 If you meant to cross compile, use \`--host'.
2154 See \`config.log' for more details." >&5
2155 echo "$as_me: error: cannot run C compiled programs.
2156 If you meant to cross compile, use \`--host'.
2157 See \`config.log' for more details." >&2;}
2158    { (exit 1); exit 1; }; }
2159     fi
2160   fi
2161 fi
2162 echo "$as_me:$LINENO: result: yes" >&5
2163 echo "${ECHO_T}yes" >&6
2164
2165 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2166 ac_clean_files=$ac_clean_files_save
2167 # Check the compiler produces executables we can run.  If not, either
2168 # the compiler is broken, or we cross compile.
2169 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2170 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2171 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2172 echo "${ECHO_T}$cross_compiling" >&6
2173
2174 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2175 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2177   (eval $ac_link) 2>&5
2178   ac_status=$?
2179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180   (exit $ac_status); }; then
2181   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2182 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2183 # work properly (i.e., refer to `conftest.exe'), while it won't with
2184 # `rm'.
2185 for ac_file in conftest.exe conftest conftest.*; do
2186   test -f "$ac_file" || continue
2187   case $ac_file in
2188     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2189     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2190           export ac_cv_exeext
2191           break;;
2192     * ) break;;
2193   esac
2194 done
2195 else
2196   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2197 See \`config.log' for more details." >&5
2198 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2199 See \`config.log' for more details." >&2;}
2200    { (exit 1); exit 1; }; }
2201 fi
2202
2203 rm -f conftest$ac_cv_exeext
2204 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2205 echo "${ECHO_T}$ac_cv_exeext" >&6
2206
2207 rm -f conftest.$ac_ext
2208 EXEEXT=$ac_cv_exeext
2209 ac_exeext=$EXEEXT
2210 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2211 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2212 if test "${ac_cv_objext+set}" = set; then
2213   echo $ECHO_N "(cached) $ECHO_C" >&6
2214 else
2215   cat >conftest.$ac_ext <<_ACEOF
2216 /* confdefs.h.  */
2217 _ACEOF
2218 cat confdefs.h >>conftest.$ac_ext
2219 cat >>conftest.$ac_ext <<_ACEOF
2220 /* end confdefs.h.  */
2221
2222 int
2223 main ()
2224 {
2225
2226   ;
2227   return 0;
2228 }
2229 _ACEOF
2230 rm -f conftest.o conftest.obj
2231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2232   (eval $ac_compile) 2>&5
2233   ac_status=$?
2234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235   (exit $ac_status); }; then
2236   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2237   case $ac_file in
2238     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2239     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2240        break;;
2241   esac
2242 done
2243 else
2244   echo "$as_me: failed program was:" >&5
2245 sed 's/^/| /' conftest.$ac_ext >&5
2246
2247 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2248 See \`config.log' for more details." >&5
2249 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2250 See \`config.log' for more details." >&2;}
2251    { (exit 1); exit 1; }; }
2252 fi
2253
2254 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2255 fi
2256 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2257 echo "${ECHO_T}$ac_cv_objext" >&6
2258 OBJEXT=$ac_cv_objext
2259 ac_objext=$OBJEXT
2260 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2261 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2262 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2263   echo $ECHO_N "(cached) $ECHO_C" >&6
2264 else
2265   cat >conftest.$ac_ext <<_ACEOF
2266 /* confdefs.h.  */
2267 _ACEOF
2268 cat confdefs.h >>conftest.$ac_ext
2269 cat >>conftest.$ac_ext <<_ACEOF
2270 /* end confdefs.h.  */
2271
2272 int
2273 main ()
2274 {
2275 #ifndef __GNUC__
2276        choke me
2277 #endif
2278
2279   ;
2280   return 0;
2281 }
2282 _ACEOF
2283 rm -f conftest.$ac_objext
2284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2285   (eval $ac_compile) 2>conftest.er1
2286   ac_status=$?
2287   grep -v '^ *+' conftest.er1 >conftest.err
2288   rm -f conftest.er1
2289   cat conftest.err >&5
2290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291   (exit $ac_status); } &&
2292          { ac_try='test -z "$ac_c_werror_flag"
2293                          || test ! -s conftest.err'
2294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2295   (eval $ac_try) 2>&5
2296   ac_status=$?
2297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298   (exit $ac_status); }; } &&
2299          { ac_try='test -s conftest.$ac_objext'
2300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2301   (eval $ac_try) 2>&5
2302   ac_status=$?
2303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304   (exit $ac_status); }; }; then
2305   ac_compiler_gnu=yes
2306 else
2307   echo "$as_me: failed program was:" >&5
2308 sed 's/^/| /' conftest.$ac_ext >&5
2309
2310 ac_compiler_gnu=no
2311 fi
2312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2313 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2314
2315 fi
2316 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2317 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2318 GCC=`test $ac_compiler_gnu = yes && echo yes`
2319 ac_test_CFLAGS=${CFLAGS+set}
2320 ac_save_CFLAGS=$CFLAGS
2321 CFLAGS="-g"
2322 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2323 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2324 if test "${ac_cv_prog_cc_g+set}" = set; then
2325   echo $ECHO_N "(cached) $ECHO_C" >&6
2326 else
2327   cat >conftest.$ac_ext <<_ACEOF
2328 /* confdefs.h.  */
2329 _ACEOF
2330 cat confdefs.h >>conftest.$ac_ext
2331 cat >>conftest.$ac_ext <<_ACEOF
2332 /* end confdefs.h.  */
2333
2334 int
2335 main ()
2336 {
2337
2338   ;
2339   return 0;
2340 }
2341 _ACEOF
2342 rm -f conftest.$ac_objext
2343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2344   (eval $ac_compile) 2>conftest.er1
2345   ac_status=$?
2346   grep -v '^ *+' conftest.er1 >conftest.err
2347   rm -f conftest.er1
2348   cat conftest.err >&5
2349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350   (exit $ac_status); } &&
2351          { ac_try='test -z "$ac_c_werror_flag"
2352                          || test ! -s conftest.err'
2353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2354   (eval $ac_try) 2>&5
2355   ac_status=$?
2356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357   (exit $ac_status); }; } &&
2358          { ac_try='test -s conftest.$ac_objext'
2359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2360   (eval $ac_try) 2>&5
2361   ac_status=$?
2362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363   (exit $ac_status); }; }; then
2364   ac_cv_prog_cc_g=yes
2365 else
2366   echo "$as_me: failed program was:" >&5
2367 sed 's/^/| /' conftest.$ac_ext >&5
2368
2369 ac_cv_prog_cc_g=no
2370 fi
2371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2372 fi
2373 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2374 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2375 if test "$ac_test_CFLAGS" = set; then
2376   CFLAGS=$ac_save_CFLAGS
2377 elif test $ac_cv_prog_cc_g = yes; then
2378   if test "$GCC" = yes; then
2379     CFLAGS="-g -O2"
2380   else
2381     CFLAGS="-g"
2382   fi
2383 else
2384   if test "$GCC" = yes; then
2385     CFLAGS="-O2"
2386   else
2387     CFLAGS=
2388   fi
2389 fi
2390 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2391 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2392 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2393   echo $ECHO_N "(cached) $ECHO_C" >&6
2394 else
2395   ac_cv_prog_cc_stdc=no
2396 ac_save_CC=$CC
2397 cat >conftest.$ac_ext <<_ACEOF
2398 /* confdefs.h.  */
2399 _ACEOF
2400 cat confdefs.h >>conftest.$ac_ext
2401 cat >>conftest.$ac_ext <<_ACEOF
2402 /* end confdefs.h.  */
2403 #include <stdarg.h>
2404 #include <stdio.h>
2405 #include <sys/types.h>
2406 #include <sys/stat.h>
2407 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2408 struct buf { int x; };
2409 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2410 static char *e (p, i)
2411      char **p;
2412      int i;
2413 {
2414   return p[i];
2415 }
2416 static char *f (char * (*g) (char **, int), char **p, ...)
2417 {
2418   char *s;
2419   va_list v;
2420   va_start (v,p);
2421   s = g (p, va_arg (v,int));
2422   va_end (v);
2423   return s;
2424 }
2425
2426 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2427    function prototypes and stuff, but not '\xHH' hex character constants.
2428    These don't provoke an error unfortunately, instead are silently treated
2429    as 'x'.  The following induces an error, until -std1 is added to get
2430    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2431    array size at least.  It's necessary to write '\x00'==0 to get something
2432    that's true only with -std1.  */
2433 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2434
2435 int test (int i, double x);
2436 struct s1 {int (*f) (int a);};
2437 struct s2 {int (*f) (double a);};
2438 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2439 int argc;
2440 char **argv;
2441 int
2442 main ()
2443 {
2444 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2445   ;
2446   return 0;
2447 }
2448 _ACEOF
2449 # Don't try gcc -ansi; that turns off useful extensions and
2450 # breaks some systems' header files.
2451 # AIX                   -qlanglvl=ansi
2452 # Ultrix and OSF/1      -std1
2453 # HP-UX 10.20 and later -Ae
2454 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2455 # SVR4                  -Xc -D__EXTENSIONS__
2456 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2457 do
2458   CC="$ac_save_CC $ac_arg"
2459   rm -f conftest.$ac_objext
2460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2461   (eval $ac_compile) 2>conftest.er1
2462   ac_status=$?
2463   grep -v '^ *+' conftest.er1 >conftest.err
2464   rm -f conftest.er1
2465   cat conftest.err >&5
2466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467   (exit $ac_status); } &&
2468          { ac_try='test -z "$ac_c_werror_flag"
2469                          || test ! -s conftest.err'
2470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2471   (eval $ac_try) 2>&5
2472   ac_status=$?
2473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474   (exit $ac_status); }; } &&
2475          { ac_try='test -s conftest.$ac_objext'
2476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2477   (eval $ac_try) 2>&5
2478   ac_status=$?
2479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480   (exit $ac_status); }; }; then
2481   ac_cv_prog_cc_stdc=$ac_arg
2482 break
2483 else
2484   echo "$as_me: failed program was:" >&5
2485 sed 's/^/| /' conftest.$ac_ext >&5
2486
2487 fi
2488 rm -f conftest.err conftest.$ac_objext
2489 done
2490 rm -f conftest.$ac_ext conftest.$ac_objext
2491 CC=$ac_save_CC
2492
2493 fi
2494
2495 case "x$ac_cv_prog_cc_stdc" in
2496   x|xno)
2497     echo "$as_me:$LINENO: result: none needed" >&5
2498 echo "${ECHO_T}none needed" >&6 ;;
2499   *)
2500     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2501 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2502     CC="$CC $ac_cv_prog_cc_stdc" ;;
2503 esac
2504
2505 # Some people use a C++ compiler to compile C.  Since we use `exit',
2506 # in C++ we need to declare it.  In case someone uses the same compiler
2507 # for both compiling C and C++ we need to have the C++ compiler decide
2508 # the declaration of exit, since it's the most demanding environment.
2509 cat >conftest.$ac_ext <<_ACEOF
2510 #ifndef __cplusplus
2511   choke me
2512 #endif
2513 _ACEOF
2514 rm -f conftest.$ac_objext
2515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2516   (eval $ac_compile) 2>conftest.er1
2517   ac_status=$?
2518   grep -v '^ *+' conftest.er1 >conftest.err
2519   rm -f conftest.er1
2520   cat conftest.err >&5
2521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522   (exit $ac_status); } &&
2523          { ac_try='test -z "$ac_c_werror_flag"
2524                          || test ! -s conftest.err'
2525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2526   (eval $ac_try) 2>&5
2527   ac_status=$?
2528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529   (exit $ac_status); }; } &&
2530          { ac_try='test -s conftest.$ac_objext'
2531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532   (eval $ac_try) 2>&5
2533   ac_status=$?
2534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535   (exit $ac_status); }; }; then
2536   for ac_declaration in \
2537    '' \
2538    'extern "C" void std::exit (int) throw (); using std::exit;' \
2539    'extern "C" void std::exit (int); using std::exit;' \
2540    'extern "C" void exit (int) throw ();' \
2541    'extern "C" void exit (int);' \
2542    'void exit (int);'
2543 do
2544   cat >conftest.$ac_ext <<_ACEOF
2545 /* confdefs.h.  */
2546 _ACEOF
2547 cat confdefs.h >>conftest.$ac_ext
2548 cat >>conftest.$ac_ext <<_ACEOF
2549 /* end confdefs.h.  */
2550 $ac_declaration
2551 #include <stdlib.h>
2552 int
2553 main ()
2554 {
2555 exit (42);
2556   ;
2557   return 0;
2558 }
2559 _ACEOF
2560 rm -f conftest.$ac_objext
2561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2562   (eval $ac_compile) 2>conftest.er1
2563   ac_status=$?
2564   grep -v '^ *+' conftest.er1 >conftest.err
2565   rm -f conftest.er1
2566   cat conftest.err >&5
2567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568   (exit $ac_status); } &&
2569          { ac_try='test -z "$ac_c_werror_flag"
2570                          || test ! -s conftest.err'
2571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2572   (eval $ac_try) 2>&5
2573   ac_status=$?
2574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575   (exit $ac_status); }; } &&
2576          { ac_try='test -s conftest.$ac_objext'
2577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2578   (eval $ac_try) 2>&5
2579   ac_status=$?
2580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581   (exit $ac_status); }; }; then
2582   :
2583 else
2584   echo "$as_me: failed program was:" >&5
2585 sed 's/^/| /' conftest.$ac_ext >&5
2586
2587 continue
2588 fi
2589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2590   cat >conftest.$ac_ext <<_ACEOF
2591 /* confdefs.h.  */
2592 _ACEOF
2593 cat confdefs.h >>conftest.$ac_ext
2594 cat >>conftest.$ac_ext <<_ACEOF
2595 /* end confdefs.h.  */
2596 $ac_declaration
2597 int
2598 main ()
2599 {
2600 exit (42);
2601   ;
2602   return 0;
2603 }
2604 _ACEOF
2605 rm -f conftest.$ac_objext
2606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2607   (eval $ac_compile) 2>conftest.er1
2608   ac_status=$?
2609   grep -v '^ *+' conftest.er1 >conftest.err
2610   rm -f conftest.er1
2611   cat conftest.err >&5
2612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613   (exit $ac_status); } &&
2614          { ac_try='test -z "$ac_c_werror_flag"
2615                          || test ! -s conftest.err'
2616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2617   (eval $ac_try) 2>&5
2618   ac_status=$?
2619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620   (exit $ac_status); }; } &&
2621          { ac_try='test -s conftest.$ac_objext'
2622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623   (eval $ac_try) 2>&5
2624   ac_status=$?
2625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626   (exit $ac_status); }; }; then
2627   break
2628 else
2629   echo "$as_me: failed program was:" >&5
2630 sed 's/^/| /' conftest.$ac_ext >&5
2631
2632 fi
2633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2634 done
2635 rm -f conftest*
2636 if test -n "$ac_declaration"; then
2637   echo '#ifdef __cplusplus' >>confdefs.h
2638   echo $ac_declaration      >>confdefs.h
2639   echo '#endif'             >>confdefs.h
2640 fi
2641
2642 else
2643   echo "$as_me: failed program was:" >&5
2644 sed 's/^/| /' conftest.$ac_ext >&5
2645
2646 fi
2647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2648 ac_ext=c
2649 ac_cpp='$CPP $CPPFLAGS'
2650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2653 DEPDIR="${am__leading_dot}deps"
2654
2655           ac_config_commands="$ac_config_commands depfiles"
2656
2657
2658 am_make=${MAKE-make}
2659 cat > confinc << 'END'
2660 am__doit:
2661         @echo done
2662 .PHONY: am__doit
2663 END
2664 # If we don't find an include directive, just comment out the code.
2665 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2666 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2667 am__include="#"
2668 am__quote=
2669 _am_result=none
2670 # First try GNU make style include.
2671 echo "include confinc" > confmf
2672 # We grep out `Entering directory' and `Leaving directory'
2673 # messages which can occur if `w' ends up in MAKEFLAGS.
2674 # In particular we don't look at `^make:' because GNU make might
2675 # be invoked under some other name (usually "gmake"), in which
2676 # case it prints its new name instead of `make'.
2677 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2678    am__include=include
2679    am__quote=
2680    _am_result=GNU
2681 fi
2682 # Now try BSD make style include.
2683 if test "$am__include" = "#"; then
2684    echo '.include "confinc"' > confmf
2685    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2686       am__include=.include
2687       am__quote="\""
2688       _am_result=BSD
2689    fi
2690 fi
2691
2692
2693 echo "$as_me:$LINENO: result: $_am_result" >&5
2694 echo "${ECHO_T}$_am_result" >&6
2695 rm -f confinc confmf
2696
2697 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2698 if test "${enable_dependency_tracking+set}" = set; then
2699   enableval="$enable_dependency_tracking"
2700
2701 fi;
2702 if test "x$enable_dependency_tracking" != xno; then
2703   am_depcomp="$ac_aux_dir/depcomp"
2704   AMDEPBACKSLASH='\'
2705 fi
2706
2707
2708 if test "x$enable_dependency_tracking" != xno; then
2709   AMDEP_TRUE=
2710   AMDEP_FALSE='#'
2711 else
2712   AMDEP_TRUE='#'
2713   AMDEP_FALSE=
2714 fi
2715
2716
2717
2718
2719 depcc="$CC"   am_compiler_list=
2720
2721 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2722 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2723 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2724   echo $ECHO_N "(cached) $ECHO_C" >&6
2725 else
2726   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2727   # We make a subdir and do the tests there.  Otherwise we can end up
2728   # making bogus files that we don't know about and never remove.  For
2729   # instance it was reported that on HP-UX the gcc test will end up
2730   # making a dummy file named `D' -- because `-MD' means `put the output
2731   # in D'.
2732   mkdir conftest.dir
2733   # Copy depcomp to subdir because otherwise we won't find it if we're
2734   # using a relative directory.
2735   cp "$am_depcomp" conftest.dir
2736   cd conftest.dir
2737   # We will build objects and dependencies in a subdirectory because
2738   # it helps to detect inapplicable dependency modes.  For instance
2739   # both Tru64's cc and ICC support -MD to output dependencies as a
2740   # side effect of compilation, but ICC will put the dependencies in
2741   # the current directory while Tru64 will put them in the object
2742   # directory.
2743   mkdir sub
2744
2745   am_cv_CC_dependencies_compiler_type=none
2746   if test "$am_compiler_list" = ""; then
2747      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2748   fi
2749   for depmode in $am_compiler_list; do
2750     # Setup a source with many dependencies, because some compilers
2751     # like to wrap large dependency lists on column 80 (with \), and
2752     # we should not choose a depcomp mode which is confused by this.
2753     #
2754     # We need to recreate these files for each test, as the compiler may
2755     # overwrite some of them when testing with obscure command lines.
2756     # This happens at least with the AIX C compiler.
2757     : > sub/conftest.c
2758     for i in 1 2 3 4 5 6; do
2759       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2760       : > sub/conftst$i.h
2761     done
2762     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2763
2764     case $depmode in
2765     nosideeffect)
2766       # after this tag, mechanisms are not by side-effect, so they'll
2767       # only be used when explicitly requested
2768       if test "x$enable_dependency_tracking" = xyes; then
2769         continue
2770       else
2771         break
2772       fi
2773       ;;
2774     none) break ;;
2775     esac
2776     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2777     # mode.  It turns out that the SunPro C++ compiler does not properly
2778     # handle `-M -o', and we need to detect this.
2779     if depmode=$depmode \
2780        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2781        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2782        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2783          >/dev/null 2>conftest.err &&
2784        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2785        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2786        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2787       # icc doesn't choke on unknown options, it will just issue warnings
2788       # (even with -Werror).  So we grep stderr for any message
2789       # that says an option was ignored.
2790       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2791         am_cv_CC_dependencies_compiler_type=$depmode
2792         break
2793       fi
2794     fi
2795   done
2796
2797   cd ..
2798   rm -rf conftest.dir
2799 else
2800   am_cv_CC_dependencies_compiler_type=none
2801 fi
2802
2803 fi
2804 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2805 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2806 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2807
2808
2809
2810 if
2811   test "x$enable_dependency_tracking" != xno \
2812   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2813   am__fastdepCC_TRUE=
2814   am__fastdepCC_FALSE='#'
2815 else
2816   am__fastdepCC_TRUE='#'
2817   am__fastdepCC_FALSE=
2818 fi
2819
2820
2821 if test -n "$ac_tool_prefix"; then
2822   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2823 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2824 echo "$as_me:$LINENO: checking for $ac_word" >&5
2825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2826 if test "${ac_cv_prog_RANLIB+set}" = set; then
2827   echo $ECHO_N "(cached) $ECHO_C" >&6
2828 else
2829   if test -n "$RANLIB"; then
2830   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2831 else
2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833 for as_dir in $PATH
2834 do
2835   IFS=$as_save_IFS
2836   test -z "$as_dir" && as_dir=.
2837   for ac_exec_ext in '' $ac_executable_extensions; do
2838   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2839     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2840     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2841     break 2
2842   fi
2843 done
2844 done
2845
2846 fi
2847 fi
2848 RANLIB=$ac_cv_prog_RANLIB
2849 if test -n "$RANLIB"; then
2850   echo "$as_me:$LINENO: result: $RANLIB" >&5
2851 echo "${ECHO_T}$RANLIB" >&6
2852 else
2853   echo "$as_me:$LINENO: result: no" >&5
2854 echo "${ECHO_T}no" >&6
2855 fi
2856
2857 fi
2858 if test -z "$ac_cv_prog_RANLIB"; then
2859   ac_ct_RANLIB=$RANLIB
2860   # Extract the first word of "ranlib", so it can be a program name with args.
2861 set dummy ranlib; ac_word=$2
2862 echo "$as_me:$LINENO: checking for $ac_word" >&5
2863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2864 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2865   echo $ECHO_N "(cached) $ECHO_C" >&6
2866 else
2867   if test -n "$ac_ct_RANLIB"; then
2868   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2869 else
2870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871 for as_dir in $PATH
2872 do
2873   IFS=$as_save_IFS
2874   test -z "$as_dir" && as_dir=.
2875   for ac_exec_ext in '' $ac_executable_extensions; do
2876   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2877     ac_cv_prog_ac_ct_RANLIB="ranlib"
2878     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2879     break 2
2880   fi
2881 done
2882 done
2883
2884   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2885 fi
2886 fi
2887 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2888 if test -n "$ac_ct_RANLIB"; then
2889   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2890 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2891 else
2892   echo "$as_me:$LINENO: result: no" >&5
2893 echo "${ECHO_T}no" >&6
2894 fi
2895
2896   RANLIB=$ac_ct_RANLIB
2897 else
2898   RANLIB="$ac_cv_prog_RANLIB"
2899 fi
2900
2901
2902 # Checks for header files.
2903
2904 ac_ext=c
2905 ac_cpp='$CPP $CPPFLAGS'
2906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2909 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2910 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2911 # On Suns, sometimes $CPP names a directory.
2912 if test -n "$CPP" && test -d "$CPP"; then
2913   CPP=
2914 fi
2915 if test -z "$CPP"; then
2916   if test "${ac_cv_prog_CPP+set}" = set; then
2917   echo $ECHO_N "(cached) $ECHO_C" >&6
2918 else
2919       # Double quotes because CPP needs to be expanded
2920     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2921     do
2922       ac_preproc_ok=false
2923 for ac_c_preproc_warn_flag in '' yes
2924 do
2925   # Use a header file that comes with gcc, so configuring glibc
2926   # with a fresh cross-compiler works.
2927   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2928   # <limits.h> exists even on freestanding compilers.
2929   # On the NeXT, cc -E runs the code through the compiler's parser,
2930   # not just through cpp. "Syntax error" is here to catch this case.
2931   cat >conftest.$ac_ext <<_ACEOF
2932 /* confdefs.h.  */
2933 _ACEOF
2934 cat confdefs.h >>conftest.$ac_ext
2935 cat >>conftest.$ac_ext <<_ACEOF
2936 /* end confdefs.h.  */
2937 #ifdef __STDC__
2938 # include <limits.h>
2939 #else
2940 # include <assert.h>
2941 #endif
2942                      Syntax error
2943 _ACEOF
2944 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2945   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2946   ac_status=$?
2947   grep -v '^ *+' conftest.er1 >conftest.err
2948   rm -f conftest.er1
2949   cat conftest.err >&5
2950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951   (exit $ac_status); } >/dev/null; then
2952   if test -s conftest.err; then
2953     ac_cpp_err=$ac_c_preproc_warn_flag
2954     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2955   else
2956     ac_cpp_err=
2957   fi
2958 else
2959   ac_cpp_err=yes
2960 fi
2961 if test -z "$ac_cpp_err"; then
2962   :
2963 else
2964   echo "$as_me: failed program was:" >&5
2965 sed 's/^/| /' conftest.$ac_ext >&5
2966
2967   # Broken: fails on valid input.
2968 continue
2969 fi
2970 rm -f conftest.err conftest.$ac_ext
2971
2972   # OK, works on sane cases.  Now check whether non-existent headers
2973   # can be detected and how.
2974   cat >conftest.$ac_ext <<_ACEOF
2975 /* confdefs.h.  */
2976 _ACEOF
2977 cat confdefs.h >>conftest.$ac_ext
2978 cat >>conftest.$ac_ext <<_ACEOF
2979 /* end confdefs.h.  */
2980 #include <ac_nonexistent.h>
2981 _ACEOF
2982 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2983   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2984   ac_status=$?
2985   grep -v '^ *+' conftest.er1 >conftest.err
2986   rm -f conftest.er1
2987   cat conftest.err >&5
2988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989   (exit $ac_status); } >/dev/null; then
2990   if test -s conftest.err; then
2991     ac_cpp_err=$ac_c_preproc_warn_flag
2992     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2993   else
2994     ac_cpp_err=
2995   fi
2996 else
2997   ac_cpp_err=yes
2998 fi
2999 if test -z "$ac_cpp_err"; then
3000   # Broken: success on invalid input.
3001 continue
3002 else
3003   echo "$as_me: failed program was:" >&5
3004 sed 's/^/| /' conftest.$ac_ext >&5
3005
3006   # Passes both tests.
3007 ac_preproc_ok=:
3008 break
3009 fi
3010 rm -f conftest.err conftest.$ac_ext
3011
3012 done
3013 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3014 rm -f conftest.err conftest.$ac_ext
3015 if $ac_preproc_ok; then
3016   break
3017 fi
3018
3019     done
3020     ac_cv_prog_CPP=$CPP
3021
3022 fi
3023   CPP=$ac_cv_prog_CPP
3024 else
3025   ac_cv_prog_CPP=$CPP
3026 fi
3027 echo "$as_me:$LINENO: result: $CPP" >&5
3028 echo "${ECHO_T}$CPP" >&6
3029 ac_preproc_ok=false
3030 for ac_c_preproc_warn_flag in '' yes
3031 do
3032   # Use a header file that comes with gcc, so configuring glibc
3033   # with a fresh cross-compiler works.
3034   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3035   # <limits.h> exists even on freestanding compilers.
3036   # On the NeXT, cc -E runs the code through the compiler's parser,
3037   # not just through cpp. "Syntax error" is here to catch this case.
3038   cat >conftest.$ac_ext <<_ACEOF
3039 /* confdefs.h.  */
3040 _ACEOF
3041 cat confdefs.h >>conftest.$ac_ext
3042 cat >>conftest.$ac_ext <<_ACEOF
3043 /* end confdefs.h.  */
3044 #ifdef __STDC__
3045 # include <limits.h>
3046 #else
3047 # include <assert.h>
3048 #endif
3049                      Syntax error
3050 _ACEOF
3051 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3052   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3053   ac_status=$?
3054   grep -v '^ *+' conftest.er1 >conftest.err
3055   rm -f conftest.er1
3056   cat conftest.err >&5
3057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058   (exit $ac_status); } >/dev/null; then
3059   if test -s conftest.err; then
3060     ac_cpp_err=$ac_c_preproc_warn_flag
3061     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3062   else
3063     ac_cpp_err=
3064   fi
3065 else
3066   ac_cpp_err=yes
3067 fi
3068 if test -z "$ac_cpp_err"; then
3069   :
3070 else
3071   echo "$as_me: failed program was:" >&5
3072 sed 's/^/| /' conftest.$ac_ext >&5
3073
3074   # Broken: fails on valid input.
3075 continue
3076 fi
3077 rm -f conftest.err conftest.$ac_ext
3078
3079   # OK, works on sane cases.  Now check whether non-existent headers
3080   # can be detected and how.
3081   cat >conftest.$ac_ext <<_ACEOF
3082 /* confdefs.h.  */
3083 _ACEOF
3084 cat confdefs.h >>conftest.$ac_ext
3085 cat >>conftest.$ac_ext <<_ACEOF
3086 /* end confdefs.h.  */
3087 #include <ac_nonexistent.h>
3088 _ACEOF
3089 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3090   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3091   ac_status=$?
3092   grep -v '^ *+' conftest.er1 >conftest.err
3093   rm -f conftest.er1
3094   cat conftest.err >&5
3095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096   (exit $ac_status); } >/dev/null; then
3097   if test -s conftest.err; then
3098     ac_cpp_err=$ac_c_preproc_warn_flag
3099     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3100   else
3101     ac_cpp_err=
3102   fi
3103 else
3104   ac_cpp_err=yes
3105 fi
3106 if test -z "$ac_cpp_err"; then
3107   # Broken: success on invalid input.
3108 continue
3109 else
3110   echo "$as_me: failed program was:" >&5
3111 sed 's/^/| /' conftest.$ac_ext >&5
3112
3113   # Passes both tests.
3114 ac_preproc_ok=:
3115 break
3116 fi
3117 rm -f conftest.err conftest.$ac_ext
3118
3119 done
3120 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3121 rm -f conftest.err conftest.$ac_ext
3122 if $ac_preproc_ok; then
3123   :
3124 else
3125   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3126 See \`config.log' for more details." >&5
3127 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3128 See \`config.log' for more details." >&2;}
3129    { (exit 1); exit 1; }; }
3130 fi
3131
3132 ac_ext=c
3133 ac_cpp='$CPP $CPPFLAGS'
3134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3137
3138
3139 echo "$as_me:$LINENO: checking for egrep" >&5
3140 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3141 if test "${ac_cv_prog_egrep+set}" = set; then
3142   echo $ECHO_N "(cached) $ECHO_C" >&6
3143 else
3144   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3145     then ac_cv_prog_egrep='grep -E'
3146     else ac_cv_prog_egrep='egrep'
3147     fi
3148 fi
3149 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3150 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3151  EGREP=$ac_cv_prog_egrep
3152
3153
3154 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3155 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3156 if test "${ac_cv_header_stdc+set}" = set; then
3157   echo $ECHO_N "(cached) $ECHO_C" >&6
3158 else
3159   cat >conftest.$ac_ext <<_ACEOF
3160 /* confdefs.h.  */
3161 _ACEOF
3162 cat confdefs.h >>conftest.$ac_ext
3163 cat >>conftest.$ac_ext <<_ACEOF
3164 /* end confdefs.h.  */
3165 #include <stdlib.h>
3166 #include <stdarg.h>
3167 #include <string.h>
3168 #include <float.h>
3169
3170 int
3171 main ()
3172 {
3173
3174   ;
3175   return 0;
3176 }
3177 _ACEOF
3178 rm -f conftest.$ac_objext
3179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3180   (eval $ac_compile) 2>conftest.er1
3181   ac_status=$?
3182   grep -v '^ *+' conftest.er1 >conftest.err
3183   rm -f conftest.er1
3184   cat conftest.err >&5
3185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186   (exit $ac_status); } &&
3187          { ac_try='test -z "$ac_c_werror_flag"
3188                          || test ! -s conftest.err'
3189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3190   (eval $ac_try) 2>&5
3191   ac_status=$?
3192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193   (exit $ac_status); }; } &&
3194          { ac_try='test -s conftest.$ac_objext'
3195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3196   (eval $ac_try) 2>&5
3197   ac_status=$?
3198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199   (exit $ac_status); }; }; then
3200   ac_cv_header_stdc=yes
3201 else
3202   echo "$as_me: failed program was:" >&5
3203 sed 's/^/| /' conftest.$ac_ext >&5
3204
3205 ac_cv_header_stdc=no
3206 fi
3207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3208
3209 if test $ac_cv_header_stdc = yes; then
3210   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3211   cat >conftest.$ac_ext <<_ACEOF
3212 /* confdefs.h.  */
3213 _ACEOF
3214 cat confdefs.h >>conftest.$ac_ext
3215 cat >>conftest.$ac_ext <<_ACEOF
3216 /* end confdefs.h.  */
3217 #include <string.h>
3218
3219 _ACEOF
3220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3221   $EGREP "memchr" >/dev/null 2>&1; then
3222   :
3223 else
3224   ac_cv_header_stdc=no
3225 fi
3226 rm -f conftest*
3227
3228 fi
3229
3230 if test $ac_cv_header_stdc = yes; then
3231   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3232   cat >conftest.$ac_ext <<_ACEOF
3233 /* confdefs.h.  */
3234 _ACEOF
3235 cat confdefs.h >>conftest.$ac_ext
3236 cat >>conftest.$ac_ext <<_ACEOF
3237 /* end confdefs.h.  */
3238 #include <stdlib.h>
3239
3240 _ACEOF
3241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3242   $EGREP "free" >/dev/null 2>&1; then
3243   :
3244 else
3245   ac_cv_header_stdc=no
3246 fi
3247 rm -f conftest*
3248
3249 fi
3250
3251 if test $ac_cv_header_stdc = yes; then
3252   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3253   if test "$cross_compiling" = yes; then
3254   :
3255 else
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 #include <ctype.h>
3263 #if ((' ' & 0x0FF) == 0x020)
3264 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3265 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3266 #else
3267 # define ISLOWER(c) \
3268                    (('a' <= (c) && (c) <= 'i') \
3269                      || ('j' <= (c) && (c) <= 'r') \
3270                      || ('s' <= (c) && (c) <= 'z'))
3271 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3272 #endif
3273
3274 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3275 int
3276 main ()
3277 {
3278   int i;
3279   for (i = 0; i < 256; i++)
3280     if (XOR (islower (i), ISLOWER (i))
3281         || toupper (i) != TOUPPER (i))
3282       exit(2);
3283   exit (0);
3284 }
3285 _ACEOF
3286 rm -f conftest$ac_exeext
3287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3288   (eval $ac_link) 2>&5
3289   ac_status=$?
3290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3293   (eval $ac_try) 2>&5
3294   ac_status=$?
3295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296   (exit $ac_status); }; }; then
3297   :
3298 else
3299   echo "$as_me: program exited with status $ac_status" >&5
3300 echo "$as_me: failed program was:" >&5
3301 sed 's/^/| /' conftest.$ac_ext >&5
3302
3303 ( exit $ac_status )
3304 ac_cv_header_stdc=no
3305 fi
3306 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3307 fi
3308 fi
3309 fi
3310 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3311 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3312 if test $ac_cv_header_stdc = yes; then
3313
3314 cat >>confdefs.h <<\_ACEOF
3315 #define STDC_HEADERS 1
3316 _ACEOF
3317
3318 fi
3319
3320 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3321 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3322 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3323   echo $ECHO_N "(cached) $ECHO_C" >&6
3324 else
3325   cat >conftest.$ac_ext <<_ACEOF
3326 /* confdefs.h.  */
3327 _ACEOF
3328 cat confdefs.h >>conftest.$ac_ext
3329 cat >>conftest.$ac_ext <<_ACEOF
3330 /* end confdefs.h.  */
3331 #include <sys/types.h>
3332 #include <sys/wait.h>
3333 #ifndef WEXITSTATUS
3334 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3335 #endif
3336 #ifndef WIFEXITED
3337 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3338 #endif
3339
3340 int
3341 main ()
3342 {
3343   int s;
3344   wait (&s);
3345   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3346   ;
3347   return 0;
3348 }
3349 _ACEOF
3350 rm -f conftest.$ac_objext
3351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3352   (eval $ac_compile) 2>conftest.er1
3353   ac_status=$?
3354   grep -v '^ *+' conftest.er1 >conftest.err
3355   rm -f conftest.er1
3356   cat conftest.err >&5
3357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358   (exit $ac_status); } &&
3359          { ac_try='test -z "$ac_c_werror_flag"
3360                          || test ! -s conftest.err'
3361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3362   (eval $ac_try) 2>&5
3363   ac_status=$?
3364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365   (exit $ac_status); }; } &&
3366          { ac_try='test -s conftest.$ac_objext'
3367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3368   (eval $ac_try) 2>&5
3369   ac_status=$?
3370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371   (exit $ac_status); }; }; then
3372   ac_cv_header_sys_wait_h=yes
3373 else
3374   echo "$as_me: failed program was:" >&5
3375 sed 's/^/| /' conftest.$ac_ext >&5
3376
3377 ac_cv_header_sys_wait_h=no
3378 fi
3379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3380 fi
3381 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3382 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3383 if test $ac_cv_header_sys_wait_h = yes; then
3384
3385 cat >>confdefs.h <<\_ACEOF
3386 #define HAVE_SYS_WAIT_H 1
3387 _ACEOF
3388
3389 fi
3390
3391 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3402                   inttypes.h stdint.h unistd.h
3403 do
3404 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3405 echo "$as_me:$LINENO: checking for $ac_header" >&5
3406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3408   echo $ECHO_N "(cached) $ECHO_C" >&6
3409 else
3410   cat >conftest.$ac_ext <<_ACEOF
3411 /* confdefs.h.  */
3412 _ACEOF
3413 cat confdefs.h >>conftest.$ac_ext
3414 cat >>conftest.$ac_ext <<_ACEOF
3415 /* end confdefs.h.  */
3416 $ac_includes_default
3417
3418 #include <$ac_header>
3419 _ACEOF
3420 rm -f conftest.$ac_objext
3421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3422   (eval $ac_compile) 2>conftest.er1
3423   ac_status=$?
3424   grep -v '^ *+' conftest.er1 >conftest.err
3425   rm -f conftest.er1
3426   cat conftest.err >&5
3427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428   (exit $ac_status); } &&
3429          { ac_try='test -z "$ac_c_werror_flag"
3430                          || test ! -s conftest.err'
3431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3432   (eval $ac_try) 2>&5
3433   ac_status=$?
3434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435   (exit $ac_status); }; } &&
3436          { ac_try='test -s conftest.$ac_objext'
3437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3438   (eval $ac_try) 2>&5
3439   ac_status=$?
3440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441   (exit $ac_status); }; }; then
3442   eval "$as_ac_Header=yes"
3443 else
3444   echo "$as_me: failed program was:" >&5
3445 sed 's/^/| /' conftest.$ac_ext >&5
3446
3447 eval "$as_ac_Header=no"
3448 fi
3449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3450 fi
3451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3452 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3453 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3454   cat >>confdefs.h <<_ACEOF
3455 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3456 _ACEOF
3457
3458 fi
3459
3460 done
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473 for ac_header in arpa/inet.h fcntl.h malloc.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/socket.h syslog.h unistd.h
3474 do
3475 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3477   echo "$as_me:$LINENO: checking for $ac_header" >&5
3478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3480   echo $ECHO_N "(cached) $ECHO_C" >&6
3481 fi
3482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3484 else
3485   # Is the header compilable?
3486 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3487 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3488 cat >conftest.$ac_ext <<_ACEOF
3489 /* confdefs.h.  */
3490 _ACEOF
3491 cat confdefs.h >>conftest.$ac_ext
3492 cat >>conftest.$ac_ext <<_ACEOF
3493 /* end confdefs.h.  */
3494 $ac_includes_default
3495 #include <$ac_header>
3496 _ACEOF
3497 rm -f conftest.$ac_objext
3498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3499   (eval $ac_compile) 2>conftest.er1
3500   ac_status=$?
3501   grep -v '^ *+' conftest.er1 >conftest.err
3502   rm -f conftest.er1
3503   cat conftest.err >&5
3504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505   (exit $ac_status); } &&
3506          { ac_try='test -z "$ac_c_werror_flag"
3507                          || test ! -s conftest.err'
3508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3509   (eval $ac_try) 2>&5
3510   ac_status=$?
3511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512   (exit $ac_status); }; } &&
3513          { ac_try='test -s conftest.$ac_objext'
3514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3515   (eval $ac_try) 2>&5
3516   ac_status=$?
3517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518   (exit $ac_status); }; }; then
3519   ac_header_compiler=yes
3520 else
3521   echo "$as_me: failed program was:" >&5
3522 sed 's/^/| /' conftest.$ac_ext >&5
3523
3524 ac_header_compiler=no
3525 fi
3526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3527 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3528 echo "${ECHO_T}$ac_header_compiler" >&6
3529
3530 # Is the header present?
3531 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3532 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3533 cat >conftest.$ac_ext <<_ACEOF
3534 /* confdefs.h.  */
3535 _ACEOF
3536 cat confdefs.h >>conftest.$ac_ext
3537 cat >>conftest.$ac_ext <<_ACEOF
3538 /* end confdefs.h.  */
3539 #include <$ac_header>
3540 _ACEOF
3541 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3542   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3543   ac_status=$?
3544   grep -v '^ *+' conftest.er1 >conftest.err
3545   rm -f conftest.er1
3546   cat conftest.err >&5
3547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548   (exit $ac_status); } >/dev/null; then
3549   if test -s conftest.err; then
3550     ac_cpp_err=$ac_c_preproc_warn_flag
3551     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3552   else
3553     ac_cpp_err=
3554   fi
3555 else
3556   ac_cpp_err=yes
3557 fi
3558 if test -z "$ac_cpp_err"; then
3559   ac_header_preproc=yes
3560 else
3561   echo "$as_me: failed program was:" >&5
3562 sed 's/^/| /' conftest.$ac_ext >&5
3563
3564   ac_header_preproc=no
3565 fi
3566 rm -f conftest.err conftest.$ac_ext
3567 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3568 echo "${ECHO_T}$ac_header_preproc" >&6
3569
3570 # So?  What about this header?
3571 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3572   yes:no: )
3573     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3574 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3575     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3576 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3577     ac_header_preproc=yes
3578     ;;
3579   no:yes:* )
3580     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3581 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3582     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3583 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3584     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3585 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3586     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3587 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3588     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3589 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3590     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3591 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3592     (
3593       cat <<\_ASBOX
3594 ## ------------------------------------------ ##
3595 ## Report this to the AC_PACKAGE_NAME lists.  ##
3596 ## ------------------------------------------ ##
3597 _ASBOX
3598     ) |
3599       sed "s/^/$as_me: WARNING:     /" >&2
3600     ;;
3601 esac
3602 echo "$as_me:$LINENO: checking for $ac_header" >&5
3603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3605   echo $ECHO_N "(cached) $ECHO_C" >&6
3606 else
3607   eval "$as_ac_Header=\$ac_header_preproc"
3608 fi
3609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3611
3612 fi
3613 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3614   cat >>confdefs.h <<_ACEOF
3615 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3616 _ACEOF
3617
3618 fi
3619
3620 done
3621
3622
3623 # Checks for typedefs, structures, and compiler characteristics.
3624 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3625 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3626 if test "${ac_cv_c_const+set}" = set; then
3627   echo $ECHO_N "(cached) $ECHO_C" >&6
3628 else
3629   cat >conftest.$ac_ext <<_ACEOF
3630 /* confdefs.h.  */
3631 _ACEOF
3632 cat confdefs.h >>conftest.$ac_ext
3633 cat >>conftest.$ac_ext <<_ACEOF
3634 /* end confdefs.h.  */
3635
3636 int
3637 main ()
3638 {
3639 /* FIXME: Include the comments suggested by Paul. */
3640 #ifndef __cplusplus
3641   /* Ultrix mips cc rejects this.  */
3642   typedef int charset[2];
3643   const charset x;
3644   /* SunOS 4.1.1 cc rejects this.  */
3645   char const *const *ccp;
3646   char **p;
3647   /* NEC SVR4.0.2 mips cc rejects this.  */
3648   struct point {int x, y;};
3649   static struct point const zero = {0,0};
3650   /* AIX XL C 1.02.0.0 rejects this.
3651      It does not let you subtract one const X* pointer from another in
3652      an arm of an if-expression whose if-part is not a constant
3653      expression */
3654   const char *g = "string";
3655   ccp = &g + (g ? g-g : 0);
3656   /* HPUX 7.0 cc rejects these. */
3657   ++ccp;
3658   p = (char**) ccp;
3659   ccp = (char const *const *) p;
3660   { /* SCO 3.2v4 cc rejects this.  */
3661     char *t;
3662     char const *s = 0 ? (char *) 0 : (char const *) 0;
3663
3664     *t++ = 0;
3665   }
3666   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3667     int x[] = {25, 17};
3668     const int *foo = &x[0];
3669     ++foo;
3670   }
3671   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3672     typedef const int *iptr;
3673     iptr p = 0;
3674     ++p;
3675   }
3676   { /* AIX XL C 1.02.0.0 rejects this saying
3677        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3678     struct s { int j; const int *ap[3]; };
3679     struct s *b; b->j = 5;
3680   }
3681   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3682     const int foo = 10;
3683   }
3684 #endif
3685
3686   ;
3687   return 0;
3688 }
3689 _ACEOF
3690 rm -f conftest.$ac_objext
3691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3692   (eval $ac_compile) 2>conftest.er1
3693   ac_status=$?
3694   grep -v '^ *+' conftest.er1 >conftest.err
3695   rm -f conftest.er1
3696   cat conftest.err >&5
3697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698   (exit $ac_status); } &&
3699          { ac_try='test -z "$ac_c_werror_flag"
3700                          || test ! -s conftest.err'
3701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3702   (eval $ac_try) 2>&5
3703   ac_status=$?
3704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705   (exit $ac_status); }; } &&
3706          { ac_try='test -s conftest.$ac_objext'
3707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3708   (eval $ac_try) 2>&5
3709   ac_status=$?
3710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711   (exit $ac_status); }; }; then
3712   ac_cv_c_const=yes
3713 else
3714   echo "$as_me: failed program was:" >&5
3715 sed 's/^/| /' conftest.$ac_ext >&5
3716
3717 ac_cv_c_const=no
3718 fi
3719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3720 fi
3721 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3722 echo "${ECHO_T}$ac_cv_c_const" >&6
3723 if test $ac_cv_c_const = no; then
3724
3725 cat >>confdefs.h <<\_ACEOF
3726 #define const
3727 _ACEOF
3728
3729 fi
3730
3731 echo "$as_me:$LINENO: checking for pid_t" >&5
3732 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
3733 if test "${ac_cv_type_pid_t+set}" = set; then
3734   echo $ECHO_N "(cached) $ECHO_C" >&6
3735 else
3736   cat >conftest.$ac_ext <<_ACEOF
3737 /* confdefs.h.  */
3738 _ACEOF
3739 cat confdefs.h >>conftest.$ac_ext
3740 cat >>conftest.$ac_ext <<_ACEOF
3741 /* end confdefs.h.  */
3742 $ac_includes_default
3743 int
3744 main ()
3745 {
3746 if ((pid_t *) 0)
3747   return 0;
3748 if (sizeof (pid_t))
3749   return 0;
3750   ;
3751   return 0;
3752 }
3753 _ACEOF
3754 rm -f conftest.$ac_objext
3755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3756   (eval $ac_compile) 2>conftest.er1
3757   ac_status=$?
3758   grep -v '^ *+' conftest.er1 >conftest.err
3759   rm -f conftest.er1
3760   cat conftest.err >&5
3761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762   (exit $ac_status); } &&
3763          { ac_try='test -z "$ac_c_werror_flag"
3764                          || test ! -s conftest.err'
3765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3766   (eval $ac_try) 2>&5
3767   ac_status=$?
3768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769   (exit $ac_status); }; } &&
3770          { ac_try='test -s conftest.$ac_objext'
3771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3772   (eval $ac_try) 2>&5
3773   ac_status=$?
3774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775   (exit $ac_status); }; }; then
3776   ac_cv_type_pid_t=yes
3777 else
3778   echo "$as_me: failed program was:" >&5
3779 sed 's/^/| /' conftest.$ac_ext >&5
3780
3781 ac_cv_type_pid_t=no
3782 fi
3783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3784 fi
3785 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
3786 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
3787 if test $ac_cv_type_pid_t = yes; then
3788   :
3789 else
3790
3791 cat >>confdefs.h <<_ACEOF
3792 #define pid_t int
3793 _ACEOF
3794
3795 fi
3796
3797 echo "$as_me:$LINENO: checking for size_t" >&5
3798 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3799 if test "${ac_cv_type_size_t+set}" = set; then
3800   echo $ECHO_N "(cached) $ECHO_C" >&6
3801 else
3802   cat >conftest.$ac_ext <<_ACEOF
3803 /* confdefs.h.  */
3804 _ACEOF
3805 cat confdefs.h >>conftest.$ac_ext
3806 cat >>conftest.$ac_ext <<_ACEOF
3807 /* end confdefs.h.  */
3808 $ac_includes_default
3809 int
3810 main ()
3811 {
3812 if ((size_t *) 0)
3813   return 0;
3814 if (sizeof (size_t))
3815   return 0;
3816   ;
3817   return 0;
3818 }
3819 _ACEOF
3820 rm -f conftest.$ac_objext
3821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3822   (eval $ac_compile) 2>conftest.er1
3823   ac_status=$?
3824   grep -v '^ *+' conftest.er1 >conftest.err
3825   rm -f conftest.er1
3826   cat conftest.err >&5
3827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828   (exit $ac_status); } &&
3829          { ac_try='test -z "$ac_c_werror_flag"
3830                          || test ! -s conftest.err'
3831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3832   (eval $ac_try) 2>&5
3833   ac_status=$?
3834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835   (exit $ac_status); }; } &&
3836          { ac_try='test -s conftest.$ac_objext'
3837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3838   (eval $ac_try) 2>&5
3839   ac_status=$?
3840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841   (exit $ac_status); }; }; then
3842   ac_cv_type_size_t=yes
3843 else
3844   echo "$as_me: failed program was:" >&5
3845 sed 's/^/| /' conftest.$ac_ext >&5
3846
3847 ac_cv_type_size_t=no
3848 fi
3849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3850 fi
3851 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3852 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3853 if test $ac_cv_type_size_t = yes; then
3854   :
3855 else
3856
3857 cat >>confdefs.h <<_ACEOF
3858 #define size_t unsigned
3859 _ACEOF
3860
3861 fi
3862
3863 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
3864 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
3865 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
3866   echo $ECHO_N "(cached) $ECHO_C" >&6
3867 else
3868   cat >conftest.$ac_ext <<_ACEOF
3869 /* confdefs.h.  */
3870 _ACEOF
3871 cat confdefs.h >>conftest.$ac_ext
3872 cat >>conftest.$ac_ext <<_ACEOF
3873 /* end confdefs.h.  */
3874
3875 #include <sys/types.h>
3876 #include <sys/socket.h>
3877
3878
3879 int
3880 main ()
3881 {
3882 static struct sockaddr ac_aggr;
3883 if (ac_aggr.sa_len)
3884 return 0;
3885   ;
3886   return 0;
3887 }
3888 _ACEOF
3889 rm -f conftest.$ac_objext
3890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3891   (eval $ac_compile) 2>conftest.er1
3892   ac_status=$?
3893   grep -v '^ *+' conftest.er1 >conftest.err
3894   rm -f conftest.er1
3895   cat conftest.err >&5
3896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897   (exit $ac_status); } &&
3898          { ac_try='test -z "$ac_c_werror_flag"
3899                          || test ! -s conftest.err'
3900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3901   (eval $ac_try) 2>&5
3902   ac_status=$?
3903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904   (exit $ac_status); }; } &&
3905          { ac_try='test -s conftest.$ac_objext'
3906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3907   (eval $ac_try) 2>&5
3908   ac_status=$?
3909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910   (exit $ac_status); }; }; then
3911   ac_cv_member_struct_sockaddr_sa_len=yes
3912 else
3913   echo "$as_me: failed program was:" >&5
3914 sed 's/^/| /' conftest.$ac_ext >&5
3915
3916 cat >conftest.$ac_ext <<_ACEOF
3917 /* confdefs.h.  */
3918 _ACEOF
3919 cat confdefs.h >>conftest.$ac_ext
3920 cat >>conftest.$ac_ext <<_ACEOF
3921 /* end confdefs.h.  */
3922
3923 #include <sys/types.h>
3924 #include <sys/socket.h>
3925
3926
3927 int
3928 main ()
3929 {
3930 static struct sockaddr ac_aggr;
3931 if (sizeof ac_aggr.sa_len)
3932 return 0;
3933   ;
3934   return 0;
3935 }
3936 _ACEOF
3937 rm -f conftest.$ac_objext
3938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3939   (eval $ac_compile) 2>conftest.er1
3940   ac_status=$?
3941   grep -v '^ *+' conftest.er1 >conftest.err
3942   rm -f conftest.er1
3943   cat conftest.err >&5
3944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945   (exit $ac_status); } &&
3946          { ac_try='test -z "$ac_c_werror_flag"
3947                          || test ! -s conftest.err'
3948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3949   (eval $ac_try) 2>&5
3950   ac_status=$?
3951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952   (exit $ac_status); }; } &&
3953          { ac_try='test -s conftest.$ac_objext'
3954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3955   (eval $ac_try) 2>&5
3956   ac_status=$?
3957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958   (exit $ac_status); }; }; then
3959   ac_cv_member_struct_sockaddr_sa_len=yes
3960 else
3961   echo "$as_me: failed program was:" >&5
3962 sed 's/^/| /' conftest.$ac_ext >&5
3963
3964 ac_cv_member_struct_sockaddr_sa_len=no
3965 fi
3966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3967 fi
3968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3969 fi
3970 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
3971 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
3972 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
3973
3974 cat >>confdefs.h <<\_ACEOF
3975 #define HAVE_SA_LEN 1
3976 _ACEOF
3977
3978 fi
3979
3980
3981 # Checks for library functions.
3982 echo "$as_me:$LINENO: checking for working memcmp" >&5
3983 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
3984 if test "${ac_cv_func_memcmp_working+set}" = set; then
3985   echo $ECHO_N "(cached) $ECHO_C" >&6
3986 else
3987   if test "$cross_compiling" = yes; then
3988   ac_cv_func_memcmp_working=no
3989 else
3990   cat >conftest.$ac_ext <<_ACEOF
3991 /* confdefs.h.  */
3992 _ACEOF
3993 cat confdefs.h >>conftest.$ac_ext
3994 cat >>conftest.$ac_ext <<_ACEOF
3995 /* end confdefs.h.  */
3996 $ac_includes_default
3997 int
3998 main ()
3999 {
4000
4001   /* Some versions of memcmp are not 8-bit clean.  */
4002   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4003   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
4004     exit (1);
4005
4006   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
4007      or more and with at least one buffer not starting on a 4-byte boundary.
4008      William Lewis provided this test program.   */
4009   {
4010     char foo[21];
4011     char bar[21];
4012     int i;
4013     for (i = 0; i < 4; i++)
4014       {
4015         char *a = foo + i;
4016         char *b = bar + i;
4017         strcpy (a, "--------01111111");
4018         strcpy (b, "--------10000000");
4019         if (memcmp (a, b, 16) >= 0)
4020           exit (1);
4021       }
4022     exit (0);
4023   }
4024
4025   ;
4026   return 0;
4027 }
4028 _ACEOF
4029 rm -f conftest$ac_exeext
4030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4031   (eval $ac_link) 2>&5
4032   ac_status=$?
4033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4036   (eval $ac_try) 2>&5
4037   ac_status=$?
4038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039   (exit $ac_status); }; }; then
4040   ac_cv_func_memcmp_working=yes
4041 else
4042   echo "$as_me: program exited with status $ac_status" >&5
4043 echo "$as_me: failed program was:" >&5
4044 sed 's/^/| /' conftest.$ac_ext >&5
4045
4046 ( exit $ac_status )
4047 ac_cv_func_memcmp_working=no
4048 fi
4049 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4050 fi
4051 fi
4052 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
4053 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
4054 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
4055     "memcmp.$ac_objext"   | \
4056   *" memcmp.$ac_objext"   | \
4057     "memcmp.$ac_objext "* | \
4058   *" memcmp.$ac_objext "* ) ;;
4059   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
4060 esac
4061
4062
4063 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4064 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4065 if test "${ac_cv_type_signal+set}" = set; then
4066   echo $ECHO_N "(cached) $ECHO_C" >&6
4067 else
4068   cat >conftest.$ac_ext <<_ACEOF
4069 /* confdefs.h.  */
4070 _ACEOF
4071 cat confdefs.h >>conftest.$ac_ext
4072 cat >>conftest.$ac_ext <<_ACEOF
4073 /* end confdefs.h.  */
4074 #include <sys/types.h>
4075 #include <signal.h>
4076 #ifdef signal
4077 # undef signal
4078 #endif
4079 #ifdef __cplusplus
4080 extern "C" void (*signal (int, void (*)(int)))(int);
4081 #else
4082 void (*signal ()) ();
4083 #endif
4084
4085 int
4086 main ()
4087 {
4088 int i;
4089   ;
4090   return 0;
4091 }
4092 _ACEOF
4093 rm -f conftest.$ac_objext
4094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4095   (eval $ac_compile) 2>conftest.er1
4096   ac_status=$?
4097   grep -v '^ *+' conftest.er1 >conftest.err
4098   rm -f conftest.er1
4099   cat conftest.err >&5
4100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101   (exit $ac_status); } &&
4102          { ac_try='test -z "$ac_c_werror_flag"
4103                          || test ! -s conftest.err'
4104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4105   (eval $ac_try) 2>&5
4106   ac_status=$?
4107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108   (exit $ac_status); }; } &&
4109          { ac_try='test -s conftest.$ac_objext'
4110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4111   (eval $ac_try) 2>&5
4112   ac_status=$?
4113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114   (exit $ac_status); }; }; then
4115   ac_cv_type_signal=void
4116 else
4117   echo "$as_me: failed program was:" >&5
4118 sed 's/^/| /' conftest.$ac_ext >&5
4119
4120 ac_cv_type_signal=int
4121 fi
4122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4123 fi
4124 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4125 echo "${ECHO_T}$ac_cv_type_signal" >&6
4126
4127 cat >>confdefs.h <<_ACEOF
4128 #define RETSIGTYPE $ac_cv_type_signal
4129 _ACEOF
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140 for ac_func in alarm inet_ntoa socket strtol sysinfo fork malloc free
4141 do
4142 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4143 echo "$as_me:$LINENO: checking for $ac_func" >&5
4144 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4145 if eval "test \"\${$as_ac_var+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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4155    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4156 #define $ac_func innocuous_$ac_func
4157
4158 /* System header to define __stub macros and hopefully few prototypes,
4159     which can conflict with char $ac_func (); below.
4160     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4161     <limits.h> exists even on freestanding compilers.  */
4162
4163 #ifdef __STDC__
4164 # include <limits.h>
4165 #else
4166 # include <assert.h>
4167 #endif
4168
4169 #undef $ac_func
4170
4171 /* Override any gcc2 internal prototype to avoid an error.  */
4172 #ifdef __cplusplus
4173 extern "C"
4174 {
4175 #endif
4176 /* We use char because int might match the return type of a gcc2
4177    builtin and then its argument prototype would still apply.  */
4178 char $ac_func ();
4179 /* The GNU C library defines this for functions which it implements
4180     to always fail with ENOSYS.  Some functions are actually named
4181     something starting with __ and the normal name is an alias.  */
4182 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4183 choke me
4184 #else
4185 char (*f) () = $ac_func;
4186 #endif
4187 #ifdef __cplusplus
4188 }
4189 #endif
4190
4191 int
4192 main ()
4193 {
4194 return f != $ac_func;
4195   ;
4196   return 0;
4197 }
4198 _ACEOF
4199 rm -f conftest.$ac_objext conftest$ac_exeext
4200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4201   (eval $ac_link) 2>conftest.er1
4202   ac_status=$?
4203   grep -v '^ *+' conftest.er1 >conftest.err
4204   rm -f conftest.er1
4205   cat conftest.err >&5
4206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207   (exit $ac_status); } &&
4208          { ac_try='test -z "$ac_c_werror_flag"
4209                          || test ! -s conftest.err'
4210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4211   (eval $ac_try) 2>&5
4212   ac_status=$?
4213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214   (exit $ac_status); }; } &&
4215          { ac_try='test -s conftest$ac_exeext'
4216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4217   (eval $ac_try) 2>&5
4218   ac_status=$?
4219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220   (exit $ac_status); }; }; then
4221   eval "$as_ac_var=yes"
4222 else
4223   echo "$as_me: failed program was:" >&5
4224 sed 's/^/| /' conftest.$ac_ext >&5
4225
4226 eval "$as_ac_var=no"
4227 fi
4228 rm -f conftest.err conftest.$ac_objext \
4229       conftest$ac_exeext conftest.$ac_ext
4230 fi
4231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4232 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4233 if test `eval echo '${'$as_ac_var'}'` = yes; then
4234   cat >>confdefs.h <<_ACEOF
4235 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4236 _ACEOF
4237
4238 fi
4239 done
4240
4241
4242 ALL_LINGUAS="uk fr pl ro nl tr"
4243
4244
4245         MKINSTALLDIRS=
4246   if test -n "$ac_aux_dir"; then
4247     case "$ac_aux_dir" in
4248       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4249       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4250     esac
4251   fi
4252   if test -z "$MKINSTALLDIRS"; then
4253     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4254   fi
4255
4256
4257
4258   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4259 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4260     # Check whether --enable-nls or --disable-nls was given.
4261 if test "${enable_nls+set}" = set; then
4262   enableval="$enable_nls"
4263   USE_NLS=$enableval
4264 else
4265   USE_NLS=yes
4266 fi;
4267   echo "$as_me:$LINENO: result: $USE_NLS" >&5
4268 echo "${ECHO_T}$USE_NLS" >&6
4269
4270
4271
4272
4273
4274
4275 # Prepare PATH_SEPARATOR.
4276 # The user is always right.
4277 if test "${PATH_SEPARATOR+set}" != set; then
4278   echo "#! /bin/sh" >conf$$.sh
4279   echo  "exit 0"   >>conf$$.sh
4280   chmod +x conf$$.sh
4281   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4282     PATH_SEPARATOR=';'
4283   else
4284     PATH_SEPARATOR=:
4285   fi
4286   rm -f conf$$.sh
4287 fi
4288
4289 # Find out how to test for executable files. Don't use a zero-byte file,
4290 # as systems may use methods other than mode bits to determine executability.
4291 cat >conf$$.file <<_ASEOF
4292 #! /bin/sh
4293 exit 0
4294 _ASEOF
4295 chmod +x conf$$.file
4296 if test -x conf$$.file >/dev/null 2>&1; then
4297   ac_executable_p="test -x"
4298 else
4299   ac_executable_p="test -f"
4300 fi
4301 rm -f conf$$.file
4302
4303 # Extract the first word of "msgfmt", so it can be a program name with args.
4304 set dummy msgfmt; ac_word=$2
4305 echo "$as_me:$LINENO: checking for $ac_word" >&5
4306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4307 if test "${ac_cv_path_MSGFMT+set}" = set; then
4308   echo $ECHO_N "(cached) $ECHO_C" >&6
4309 else
4310   case "$MSGFMT" in
4311   [\\/]* | ?:[\\/]*)
4312     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4313     ;;
4314   *)
4315     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4316     for ac_dir in $PATH; do
4317       IFS="$ac_save_IFS"
4318       test -z "$ac_dir" && ac_dir=.
4319       for ac_exec_ext in '' $ac_executable_extensions; do
4320         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4321           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4322      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4323             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4324             break 2
4325           fi
4326         fi
4327       done
4328     done
4329     IFS="$ac_save_IFS"
4330   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4331     ;;
4332 esac
4333 fi
4334 MSGFMT="$ac_cv_path_MSGFMT"
4335 if test "$MSGFMT" != ":"; then
4336   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4337 echo "${ECHO_T}$MSGFMT" >&6
4338 else
4339   echo "$as_me:$LINENO: result: no" >&5
4340 echo "${ECHO_T}no" >&6
4341 fi
4342
4343   # Extract the first word of "gmsgfmt", so it can be a program name with args.
4344 set dummy gmsgfmt; ac_word=$2
4345 echo "$as_me:$LINENO: checking for $ac_word" >&5
4346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4347 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4348   echo $ECHO_N "(cached) $ECHO_C" >&6
4349 else
4350   case $GMSGFMT in
4351   [\\/]* | ?:[\\/]*)
4352   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4353   ;;
4354   *)
4355   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356 for as_dir in $PATH
4357 do
4358   IFS=$as_save_IFS
4359   test -z "$as_dir" && as_dir=.
4360   for ac_exec_ext in '' $ac_executable_extensions; do
4361   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4362     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4363     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4364     break 2
4365   fi
4366 done
4367 done
4368
4369   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4370   ;;
4371 esac
4372 fi
4373 GMSGFMT=$ac_cv_path_GMSGFMT
4374
4375 if test -n "$GMSGFMT"; then
4376   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4377 echo "${ECHO_T}$GMSGFMT" >&6
4378 else
4379   echo "$as_me:$LINENO: result: no" >&5
4380 echo "${ECHO_T}no" >&6
4381 fi
4382
4383
4384
4385 # Prepare PATH_SEPARATOR.
4386 # The user is always right.
4387 if test "${PATH_SEPARATOR+set}" != set; then
4388   echo "#! /bin/sh" >conf$$.sh
4389   echo  "exit 0"   >>conf$$.sh
4390   chmod +x conf$$.sh
4391   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4392     PATH_SEPARATOR=';'
4393   else
4394     PATH_SEPARATOR=:
4395   fi
4396   rm -f conf$$.sh
4397 fi
4398
4399 # Find out how to test for executable files. Don't use a zero-byte file,
4400 # as systems may use methods other than mode bits to determine executability.
4401 cat >conf$$.file <<_ASEOF
4402 #! /bin/sh
4403 exit 0
4404 _ASEOF
4405 chmod +x conf$$.file
4406 if test -x conf$$.file >/dev/null 2>&1; then
4407   ac_executable_p="test -x"
4408 else
4409   ac_executable_p="test -f"
4410 fi
4411 rm -f conf$$.file
4412
4413 # Extract the first word of "xgettext", so it can be a program name with args.
4414 set dummy xgettext; ac_word=$2
4415 echo "$as_me:$LINENO: checking for $ac_word" >&5
4416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4417 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4418   echo $ECHO_N "(cached) $ECHO_C" >&6
4419 else
4420   case "$XGETTEXT" in
4421   [\\/]* | ?:[\\/]*)
4422     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4423     ;;
4424   *)
4425     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4426     for ac_dir in $PATH; do
4427       IFS="$ac_save_IFS"
4428       test -z "$ac_dir" && ac_dir=.
4429       for ac_exec_ext in '' $ac_executable_extensions; do
4430         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4431           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4432      (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
4433             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4434             break 2
4435           fi
4436         fi
4437       done
4438     done
4439     IFS="$ac_save_IFS"
4440   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4441     ;;
4442 esac
4443 fi
4444 XGETTEXT="$ac_cv_path_XGETTEXT"
4445 if test "$XGETTEXT" != ":"; then
4446   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4447 echo "${ECHO_T}$XGETTEXT" >&6
4448 else
4449   echo "$as_me:$LINENO: result: no" >&5
4450 echo "${ECHO_T}no" >&6
4451 fi
4452
4453     rm -f messages.po
4454
4455
4456 # Prepare PATH_SEPARATOR.
4457 # The user is always right.
4458 if test "${PATH_SEPARATOR+set}" != set; then
4459   echo "#! /bin/sh" >conf$$.sh
4460   echo  "exit 0"   >>conf$$.sh
4461   chmod +x conf$$.sh
4462   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4463     PATH_SEPARATOR=';'
4464   else
4465     PATH_SEPARATOR=:
4466   fi
4467   rm -f conf$$.sh
4468 fi
4469
4470 # Find out how to test for executable files. Don't use a zero-byte file,
4471 # as systems may use methods other than mode bits to determine executability.
4472 cat >conf$$.file <<_ASEOF
4473 #! /bin/sh
4474 exit 0
4475 _ASEOF
4476 chmod +x conf$$.file
4477 if test -x conf$$.file >/dev/null 2>&1; then
4478   ac_executable_p="test -x"
4479 else
4480   ac_executable_p="test -f"
4481 fi
4482 rm -f conf$$.file
4483
4484 # Extract the first word of "msgmerge", so it can be a program name with args.
4485 set dummy msgmerge; ac_word=$2
4486 echo "$as_me:$LINENO: checking for $ac_word" >&5
4487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4488 if test "${ac_cv_path_MSGMERGE+set}" = set; then
4489   echo $ECHO_N "(cached) $ECHO_C" >&6
4490 else
4491   case "$MSGMERGE" in
4492   [\\/]* | ?:[\\/]*)
4493     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4494     ;;
4495   *)
4496     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4497     for ac_dir in $PATH; do
4498       IFS="$ac_save_IFS"
4499       test -z "$ac_dir" && ac_dir=.
4500       for ac_exec_ext in '' $ac_executable_extensions; do
4501         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4502           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4503             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4504             break 2
4505           fi
4506         fi
4507       done
4508     done
4509     IFS="$ac_save_IFS"
4510   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4511     ;;
4512 esac
4513 fi
4514 MSGMERGE="$ac_cv_path_MSGMERGE"
4515 if test "$MSGMERGE" != ":"; then
4516   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4517 echo "${ECHO_T}$MSGMERGE" >&6
4518 else
4519   echo "$as_me:$LINENO: result: no" >&5
4520 echo "${ECHO_T}no" >&6
4521 fi
4522
4523
4524       if test "$GMSGFMT" != ":"; then
4525             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4526        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4527       : ;
4528     else
4529       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
4530       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4531 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
4532       GMSGFMT=":"
4533     fi
4534   fi
4535
4536       if test "$XGETTEXT" != ":"; then
4537             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4538        (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
4539       : ;
4540     else
4541       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4542 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
4543       XGETTEXT=":"
4544     fi
4545         rm -f messages.po
4546   fi
4547
4548             ac_config_commands="$ac_config_commands default-1"
4549
4550
4551 # Make sure we can run config.sub.
4552 $ac_config_sub sun4 >/dev/null 2>&1 ||
4553   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4554 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4555    { (exit 1); exit 1; }; }
4556
4557 echo "$as_me:$LINENO: checking build system type" >&5
4558 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4559 if test "${ac_cv_build+set}" = set; then
4560   echo $ECHO_N "(cached) $ECHO_C" >&6
4561 else
4562   ac_cv_build_alias=$build_alias
4563 test -z "$ac_cv_build_alias" &&
4564   ac_cv_build_alias=`$ac_config_guess`
4565 test -z "$ac_cv_build_alias" &&
4566   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4567 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4568    { (exit 1); exit 1; }; }
4569 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4570   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4571 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4572    { (exit 1); exit 1; }; }
4573
4574 fi
4575 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4576 echo "${ECHO_T}$ac_cv_build" >&6
4577 build=$ac_cv_build
4578 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4579 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4580 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4581
4582
4583 echo "$as_me:$LINENO: checking host system type" >&5
4584 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4585 if test "${ac_cv_host+set}" = set; then
4586   echo $ECHO_N "(cached) $ECHO_C" >&6
4587 else
4588   ac_cv_host_alias=$host_alias
4589 test -z "$ac_cv_host_alias" &&
4590   ac_cv_host_alias=$ac_cv_build_alias
4591 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4592   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4593 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4594    { (exit 1); exit 1; }; }
4595
4596 fi
4597 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4598 echo "${ECHO_T}$ac_cv_host" >&6
4599 host=$ac_cv_host
4600 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4601 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4602 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4603
4604
4605
4606         echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
4607 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
4608 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
4609   echo $ECHO_N "(cached) $ECHO_C" >&6
4610 else
4611   ac_check_lib_save_LIBS=$LIBS
4612 LIBS="-lcposix  $LIBS"
4613 cat >conftest.$ac_ext <<_ACEOF
4614 /* confdefs.h.  */
4615 _ACEOF
4616 cat confdefs.h >>conftest.$ac_ext
4617 cat >>conftest.$ac_ext <<_ACEOF
4618 /* end confdefs.h.  */
4619
4620 /* Override any gcc2 internal prototype to avoid an error.  */
4621 #ifdef __cplusplus
4622 extern "C"
4623 #endif
4624 /* We use char because int might match the return type of a gcc2
4625    builtin and then its argument prototype would still apply.  */
4626 char strerror ();
4627 int
4628 main ()
4629 {
4630 strerror ();
4631   ;
4632   return 0;
4633 }
4634 _ACEOF
4635 rm -f conftest.$ac_objext conftest$ac_exeext
4636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4637   (eval $ac_link) 2>conftest.er1
4638   ac_status=$?
4639   grep -v '^ *+' conftest.er1 >conftest.err
4640   rm -f conftest.er1
4641   cat conftest.err >&5
4642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643   (exit $ac_status); } &&
4644          { ac_try='test -z "$ac_c_werror_flag"
4645                          || test ! -s conftest.err'
4646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4647   (eval $ac_try) 2>&5
4648   ac_status=$?
4649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650   (exit $ac_status); }; } &&
4651          { ac_try='test -s conftest$ac_exeext'
4652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4653   (eval $ac_try) 2>&5
4654   ac_status=$?
4655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656   (exit $ac_status); }; }; then
4657   ac_cv_lib_cposix_strerror=yes
4658 else
4659   echo "$as_me: failed program was:" >&5
4660 sed 's/^/| /' conftest.$ac_ext >&5
4661
4662 ac_cv_lib_cposix_strerror=no
4663 fi
4664 rm -f conftest.err conftest.$ac_objext \
4665       conftest$ac_exeext conftest.$ac_ext
4666 LIBS=$ac_check_lib_save_LIBS
4667 fi
4668 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
4669 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
4670 if test $ac_cv_lib_cposix_strerror = yes; then
4671   LIBS="$LIBS -lcposix"
4672 fi
4673
4674
4675
4676
4677   echo "$as_me:$LINENO: checking for signed" >&5
4678 echo $ECHO_N "checking for signed... $ECHO_C" >&6
4679 if test "${bh_cv_c_signed+set}" = set; then
4680   echo $ECHO_N "(cached) $ECHO_C" >&6
4681 else
4682   cat >conftest.$ac_ext <<_ACEOF
4683 /* confdefs.h.  */
4684 _ACEOF
4685 cat confdefs.h >>conftest.$ac_ext
4686 cat >>conftest.$ac_ext <<_ACEOF
4687 /* end confdefs.h.  */
4688
4689 int
4690 main ()
4691 {
4692 signed char x;
4693   ;
4694   return 0;
4695 }
4696 _ACEOF
4697 rm -f conftest.$ac_objext
4698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4699   (eval $ac_compile) 2>conftest.er1
4700   ac_status=$?
4701   grep -v '^ *+' conftest.er1 >conftest.err
4702   rm -f conftest.er1
4703   cat conftest.err >&5
4704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705   (exit $ac_status); } &&
4706          { ac_try='test -z "$ac_c_werror_flag"
4707                          || test ! -s conftest.err'
4708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4709   (eval $ac_try) 2>&5
4710   ac_status=$?
4711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712   (exit $ac_status); }; } &&
4713          { ac_try='test -s conftest.$ac_objext'
4714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715   (eval $ac_try) 2>&5
4716   ac_status=$?
4717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718   (exit $ac_status); }; }; then
4719   bh_cv_c_signed=yes
4720 else
4721   echo "$as_me: failed program was:" >&5
4722 sed 's/^/| /' conftest.$ac_ext >&5
4723
4724 bh_cv_c_signed=no
4725 fi
4726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4727 fi
4728 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
4729 echo "${ECHO_T}$bh_cv_c_signed" >&6
4730   if test $bh_cv_c_signed = no; then
4731
4732 cat >>confdefs.h <<\_ACEOF
4733 #define signed
4734 _ACEOF
4735
4736   fi
4737
4738 echo "$as_me:$LINENO: checking for inline" >&5
4739 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4740 if test "${ac_cv_c_inline+set}" = set; then
4741   echo $ECHO_N "(cached) $ECHO_C" >&6
4742 else
4743   ac_cv_c_inline=no
4744 for ac_kw in inline __inline__ __inline; do
4745   cat >conftest.$ac_ext <<_ACEOF
4746 /* confdefs.h.  */
4747 _ACEOF
4748 cat confdefs.h >>conftest.$ac_ext
4749 cat >>conftest.$ac_ext <<_ACEOF
4750 /* end confdefs.h.  */
4751 #ifndef __cplusplus
4752 typedef int foo_t;
4753 static $ac_kw foo_t static_foo () {return 0; }
4754 $ac_kw foo_t foo () {return 0; }
4755 #endif
4756
4757 _ACEOF
4758 rm -f conftest.$ac_objext
4759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4760   (eval $ac_compile) 2>conftest.er1
4761   ac_status=$?
4762   grep -v '^ *+' conftest.er1 >conftest.err
4763   rm -f conftest.er1
4764   cat conftest.err >&5
4765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766   (exit $ac_status); } &&
4767          { ac_try='test -z "$ac_c_werror_flag"
4768                          || test ! -s conftest.err'
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); }; } &&
4774          { ac_try='test -s conftest.$ac_objext'
4775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4776   (eval $ac_try) 2>&5
4777   ac_status=$?
4778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779   (exit $ac_status); }; }; then
4780   ac_cv_c_inline=$ac_kw; break
4781 else
4782   echo "$as_me: failed program was:" >&5
4783 sed 's/^/| /' conftest.$ac_ext >&5
4784
4785 fi
4786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4787 done
4788
4789 fi
4790 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4791 echo "${ECHO_T}$ac_cv_c_inline" >&6
4792
4793
4794 case $ac_cv_c_inline in
4795   inline | yes) ;;
4796   *)
4797     case $ac_cv_c_inline in
4798       no) ac_val=;;
4799       *) ac_val=$ac_cv_c_inline;;
4800     esac
4801     cat >>confdefs.h <<_ACEOF
4802 #ifndef __cplusplus
4803 #define inline $ac_val
4804 #endif
4805 _ACEOF
4806     ;;
4807 esac
4808
4809 echo "$as_me:$LINENO: checking for off_t" >&5
4810 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4811 if test "${ac_cv_type_off_t+set}" = set; then
4812   echo $ECHO_N "(cached) $ECHO_C" >&6
4813 else
4814   cat >conftest.$ac_ext <<_ACEOF
4815 /* confdefs.h.  */
4816 _ACEOF
4817 cat confdefs.h >>conftest.$ac_ext
4818 cat >>conftest.$ac_ext <<_ACEOF
4819 /* end confdefs.h.  */
4820 $ac_includes_default
4821 int
4822 main ()
4823 {
4824 if ((off_t *) 0)
4825   return 0;
4826 if (sizeof (off_t))
4827   return 0;
4828   ;
4829   return 0;
4830 }
4831 _ACEOF
4832 rm -f conftest.$ac_objext
4833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4834   (eval $ac_compile) 2>conftest.er1
4835   ac_status=$?
4836   grep -v '^ *+' conftest.er1 >conftest.err
4837   rm -f conftest.er1
4838   cat conftest.err >&5
4839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840   (exit $ac_status); } &&
4841          { ac_try='test -z "$ac_c_werror_flag"
4842                          || test ! -s conftest.err'
4843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4844   (eval $ac_try) 2>&5
4845   ac_status=$?
4846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847   (exit $ac_status); }; } &&
4848          { ac_try='test -s conftest.$ac_objext'
4849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4850   (eval $ac_try) 2>&5
4851   ac_status=$?
4852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853   (exit $ac_status); }; }; then
4854   ac_cv_type_off_t=yes
4855 else
4856   echo "$as_me: failed program was:" >&5
4857 sed 's/^/| /' conftest.$ac_ext >&5
4858
4859 ac_cv_type_off_t=no
4860 fi
4861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4862 fi
4863 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4864 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4865 if test $ac_cv_type_off_t = yes; then
4866   :
4867 else
4868
4869 cat >>confdefs.h <<_ACEOF
4870 #define off_t long
4871 _ACEOF
4872
4873 fi
4874
4875
4876   echo "$as_me:$LINENO: checking for long long" >&5
4877 echo $ECHO_N "checking for long long... $ECHO_C" >&6
4878 if test "${ac_cv_type_long_long+set}" = set; then
4879   echo $ECHO_N "(cached) $ECHO_C" >&6
4880 else
4881   cat >conftest.$ac_ext <<_ACEOF
4882 /* confdefs.h.  */
4883 _ACEOF
4884 cat confdefs.h >>conftest.$ac_ext
4885 cat >>conftest.$ac_ext <<_ACEOF
4886 /* end confdefs.h.  */
4887 long long ll = 1LL; int i = 63;
4888 int
4889 main ()
4890 {
4891 long long llmax = (long long) -1;
4892      return ll << i | ll >> i | llmax / ll | llmax % ll;
4893   ;
4894   return 0;
4895 }
4896 _ACEOF
4897 rm -f conftest.$ac_objext conftest$ac_exeext
4898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4899   (eval $ac_link) 2>conftest.er1
4900   ac_status=$?
4901   grep -v '^ *+' conftest.er1 >conftest.err
4902   rm -f conftest.er1
4903   cat conftest.err >&5
4904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905   (exit $ac_status); } &&
4906          { ac_try='test -z "$ac_c_werror_flag"
4907                          || test ! -s conftest.err'
4908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4909   (eval $ac_try) 2>&5
4910   ac_status=$?
4911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912   (exit $ac_status); }; } &&
4913          { ac_try='test -s conftest$ac_exeext'
4914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4915   (eval $ac_try) 2>&5
4916   ac_status=$?
4917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918   (exit $ac_status); }; }; then
4919   ac_cv_type_long_long=yes
4920 else
4921   echo "$as_me: failed program was:" >&5
4922 sed 's/^/| /' conftest.$ac_ext >&5
4923
4924 ac_cv_type_long_long=no
4925 fi
4926 rm -f conftest.err conftest.$ac_objext \
4927       conftest$ac_exeext conftest.$ac_ext
4928 fi
4929 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
4930 echo "${ECHO_T}$ac_cv_type_long_long" >&6
4931   if test $ac_cv_type_long_long = yes; then
4932
4933 cat >>confdefs.h <<\_ACEOF
4934 #define HAVE_LONG_LONG 1
4935 _ACEOF
4936
4937   fi
4938
4939
4940   echo "$as_me:$LINENO: checking for long double" >&5
4941 echo $ECHO_N "checking for long double... $ECHO_C" >&6
4942 if test "${gt_cv_c_long_double+set}" = set; then
4943   echo $ECHO_N "(cached) $ECHO_C" >&6
4944 else
4945   if test "$GCC" = yes; then
4946        gt_cv_c_long_double=yes
4947      else
4948        cat >conftest.$ac_ext <<_ACEOF
4949 /* confdefs.h.  */
4950 _ACEOF
4951 cat confdefs.h >>conftest.$ac_ext
4952 cat >>conftest.$ac_ext <<_ACEOF
4953 /* end confdefs.h.  */
4954
4955          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
4956          long double foo = 0.0;
4957          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
4958          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
4959
4960 int
4961 main ()
4962 {
4963
4964   ;
4965   return 0;
4966 }
4967 _ACEOF
4968 rm -f conftest.$ac_objext
4969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4970   (eval $ac_compile) 2>conftest.er1
4971   ac_status=$?
4972   grep -v '^ *+' conftest.er1 >conftest.err
4973   rm -f conftest.er1
4974   cat conftest.err >&5
4975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976   (exit $ac_status); } &&
4977          { ac_try='test -z "$ac_c_werror_flag"
4978                          || test ! -s conftest.err'
4979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4980   (eval $ac_try) 2>&5
4981   ac_status=$?
4982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983   (exit $ac_status); }; } &&
4984          { ac_try='test -s conftest.$ac_objext'
4985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4986   (eval $ac_try) 2>&5
4987   ac_status=$?
4988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989   (exit $ac_status); }; }; then
4990   gt_cv_c_long_double=yes
4991 else
4992   echo "$as_me: failed program was:" >&5
4993 sed 's/^/| /' conftest.$ac_ext >&5
4994
4995 gt_cv_c_long_double=no
4996 fi
4997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4998      fi
4999 fi
5000 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5001 echo "${ECHO_T}$gt_cv_c_long_double" >&6
5002   if test $gt_cv_c_long_double = yes; then
5003
5004 cat >>confdefs.h <<\_ACEOF
5005 #define HAVE_LONG_DOUBLE 1
5006 _ACEOF
5007
5008   fi
5009
5010
5011   echo "$as_me:$LINENO: checking for wchar_t" >&5
5012 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
5013 if test "${gt_cv_c_wchar_t+set}" = set; then
5014   echo $ECHO_N "(cached) $ECHO_C" >&6
5015 else
5016   cat >conftest.$ac_ext <<_ACEOF
5017 /* confdefs.h.  */
5018 _ACEOF
5019 cat confdefs.h >>conftest.$ac_ext
5020 cat >>conftest.$ac_ext <<_ACEOF
5021 /* end confdefs.h.  */
5022 #include <stddef.h>
5023        wchar_t foo = (wchar_t)'\0';
5024 int
5025 main ()
5026 {
5027
5028   ;
5029   return 0;
5030 }
5031 _ACEOF
5032 rm -f conftest.$ac_objext
5033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5034   (eval $ac_compile) 2>conftest.er1
5035   ac_status=$?
5036   grep -v '^ *+' conftest.er1 >conftest.err
5037   rm -f conftest.er1
5038   cat conftest.err >&5
5039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040   (exit $ac_status); } &&
5041          { ac_try='test -z "$ac_c_werror_flag"
5042                          || test ! -s conftest.err'
5043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5044   (eval $ac_try) 2>&5
5045   ac_status=$?
5046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047   (exit $ac_status); }; } &&
5048          { ac_try='test -s conftest.$ac_objext'
5049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5050   (eval $ac_try) 2>&5
5051   ac_status=$?
5052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053   (exit $ac_status); }; }; then
5054   gt_cv_c_wchar_t=yes
5055 else
5056   echo "$as_me: failed program was:" >&5
5057 sed 's/^/| /' conftest.$ac_ext >&5
5058
5059 gt_cv_c_wchar_t=no
5060 fi
5061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5062 fi
5063 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5064 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
5065   if test $gt_cv_c_wchar_t = yes; then
5066
5067 cat >>confdefs.h <<\_ACEOF
5068 #define HAVE_WCHAR_T 1
5069 _ACEOF
5070
5071   fi
5072
5073
5074   echo "$as_me:$LINENO: checking for wint_t" >&5
5075 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
5076 if test "${gt_cv_c_wint_t+set}" = set; then
5077   echo $ECHO_N "(cached) $ECHO_C" >&6
5078 else
5079   cat >conftest.$ac_ext <<_ACEOF
5080 /* confdefs.h.  */
5081 _ACEOF
5082 cat confdefs.h >>conftest.$ac_ext
5083 cat >>conftest.$ac_ext <<_ACEOF
5084 /* end confdefs.h.  */
5085 #include <wchar.h>
5086        wint_t foo = (wchar_t)'\0';
5087 int
5088 main ()
5089 {
5090
5091   ;
5092   return 0;
5093 }
5094 _ACEOF
5095 rm -f conftest.$ac_objext
5096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5097   (eval $ac_compile) 2>conftest.er1
5098   ac_status=$?
5099   grep -v '^ *+' conftest.er1 >conftest.err
5100   rm -f conftest.er1
5101   cat conftest.err >&5
5102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103   (exit $ac_status); } &&
5104          { ac_try='test -z "$ac_c_werror_flag"
5105                          || test ! -s conftest.err'
5106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5107   (eval $ac_try) 2>&5
5108   ac_status=$?
5109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110   (exit $ac_status); }; } &&
5111          { ac_try='test -s conftest.$ac_objext'
5112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5113   (eval $ac_try) 2>&5
5114   ac_status=$?
5115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116   (exit $ac_status); }; }; then
5117   gt_cv_c_wint_t=yes
5118 else
5119   echo "$as_me: failed program was:" >&5
5120 sed 's/^/| /' conftest.$ac_ext >&5
5121
5122 gt_cv_c_wint_t=no
5123 fi
5124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5125 fi
5126 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5127 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
5128   if test $gt_cv_c_wint_t = yes; then
5129
5130 cat >>confdefs.h <<\_ACEOF
5131 #define HAVE_WINT_T 1
5132 _ACEOF
5133
5134   fi
5135
5136
5137   echo "$as_me:$LINENO: checking for inttypes.h" >&5
5138 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
5139 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5140   echo $ECHO_N "(cached) $ECHO_C" >&6
5141 else
5142   cat >conftest.$ac_ext <<_ACEOF
5143 /* confdefs.h.  */
5144 _ACEOF
5145 cat confdefs.h >>conftest.$ac_ext
5146 cat >>conftest.$ac_ext <<_ACEOF
5147 /* end confdefs.h.  */
5148 #include <sys/types.h>
5149 #include <inttypes.h>
5150 int
5151 main ()
5152 {
5153 uintmax_t i = (uintmax_t) -1;
5154   ;
5155   return 0;
5156 }
5157 _ACEOF
5158 rm -f conftest.$ac_objext
5159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5160   (eval $ac_compile) 2>conftest.er1
5161   ac_status=$?
5162   grep -v '^ *+' conftest.er1 >conftest.err
5163   rm -f conftest.er1
5164   cat conftest.err >&5
5165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166   (exit $ac_status); } &&
5167          { ac_try='test -z "$ac_c_werror_flag"
5168                          || test ! -s conftest.err'
5169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5170   (eval $ac_try) 2>&5
5171   ac_status=$?
5172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173   (exit $ac_status); }; } &&
5174          { ac_try='test -s conftest.$ac_objext'
5175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5176   (eval $ac_try) 2>&5
5177   ac_status=$?
5178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179   (exit $ac_status); }; }; then
5180   jm_ac_cv_header_inttypes_h=yes
5181 else
5182   echo "$as_me: failed program was:" >&5
5183 sed 's/^/| /' conftest.$ac_ext >&5
5184
5185 jm_ac_cv_header_inttypes_h=no
5186 fi
5187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5188 fi
5189 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5190 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
5191   if test $jm_ac_cv_header_inttypes_h = yes; then
5192
5193 cat >>confdefs.h <<_ACEOF
5194 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
5195 _ACEOF
5196
5197   fi
5198
5199
5200   echo "$as_me:$LINENO: checking for stdint.h" >&5
5201 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
5202 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5203   echo $ECHO_N "(cached) $ECHO_C" >&6
5204 else
5205   cat >conftest.$ac_ext <<_ACEOF
5206 /* confdefs.h.  */
5207 _ACEOF
5208 cat confdefs.h >>conftest.$ac_ext
5209 cat >>conftest.$ac_ext <<_ACEOF
5210 /* end confdefs.h.  */
5211 #include <sys/types.h>
5212 #include <stdint.h>
5213 int
5214 main ()
5215 {
5216 uintmax_t i = (uintmax_t) -1;
5217   ;
5218   return 0;
5219 }
5220 _ACEOF
5221 rm -f conftest.$ac_objext
5222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5223   (eval $ac_compile) 2>conftest.er1
5224   ac_status=$?
5225   grep -v '^ *+' conftest.er1 >conftest.err
5226   rm -f conftest.er1
5227   cat conftest.err >&5
5228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229   (exit $ac_status); } &&
5230          { ac_try='test -z "$ac_c_werror_flag"
5231                          || test ! -s conftest.err'
5232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5233   (eval $ac_try) 2>&5
5234   ac_status=$?
5235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236   (exit $ac_status); }; } &&
5237          { ac_try='test -s conftest.$ac_objext'
5238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5239   (eval $ac_try) 2>&5
5240   ac_status=$?
5241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242   (exit $ac_status); }; }; then
5243   jm_ac_cv_header_stdint_h=yes
5244 else
5245   echo "$as_me: failed program was:" >&5
5246 sed 's/^/| /' conftest.$ac_ext >&5
5247
5248 jm_ac_cv_header_stdint_h=no
5249 fi
5250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5251 fi
5252 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5253 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
5254   if test $jm_ac_cv_header_stdint_h = yes; then
5255
5256 cat >>confdefs.h <<_ACEOF
5257 #define HAVE_STDINT_H_WITH_UINTMAX 1
5258 _ACEOF
5259
5260   fi
5261
5262
5263
5264
5265   echo "$as_me:$LINENO: checking for intmax_t" >&5
5266 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
5267 if test "${gt_cv_c_intmax_t+set}" = set; then
5268   echo $ECHO_N "(cached) $ECHO_C" >&6
5269 else
5270   cat >conftest.$ac_ext <<_ACEOF
5271 /* confdefs.h.  */
5272 _ACEOF
5273 cat confdefs.h >>conftest.$ac_ext
5274 cat >>conftest.$ac_ext <<_ACEOF
5275 /* end confdefs.h.  */
5276
5277 #include <stddef.h>
5278 #include <stdlib.h>
5279 #if HAVE_STDINT_H_WITH_UINTMAX
5280 #include <stdint.h>
5281 #endif
5282 #if HAVE_INTTYPES_H_WITH_UINTMAX
5283 #include <inttypes.h>
5284 #endif
5285
5286 int
5287 main ()
5288 {
5289 intmax_t x = -1;
5290   ;
5291   return 0;
5292 }
5293 _ACEOF
5294 rm -f conftest.$ac_objext
5295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5296   (eval $ac_compile) 2>conftest.er1
5297   ac_status=$?
5298   grep -v '^ *+' conftest.er1 >conftest.err
5299   rm -f conftest.er1
5300   cat conftest.err >&5
5301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302   (exit $ac_status); } &&
5303          { ac_try='test -z "$ac_c_werror_flag"
5304                          || test ! -s conftest.err'
5305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5306   (eval $ac_try) 2>&5
5307   ac_status=$?
5308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309   (exit $ac_status); }; } &&
5310          { ac_try='test -s conftest.$ac_objext'
5311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5312   (eval $ac_try) 2>&5
5313   ac_status=$?
5314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315   (exit $ac_status); }; }; then
5316   gt_cv_c_intmax_t=yes
5317 else
5318   echo "$as_me: failed program was:" >&5
5319 sed 's/^/| /' conftest.$ac_ext >&5
5320
5321 gt_cv_c_intmax_t=no
5322 fi
5323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5324 fi
5325 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5326 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
5327   if test $gt_cv_c_intmax_t = yes; then
5328
5329 cat >>confdefs.h <<\_ACEOF
5330 #define HAVE_INTMAX_T 1
5331 _ACEOF
5332
5333   fi
5334
5335
5336
5337   echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5338 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
5339 if test "${gt_cv_func_printf_posix+set}" = set; then
5340   echo $ECHO_N "(cached) $ECHO_C" >&6
5341 else
5342
5343       if test "$cross_compiling" = yes; then
5344
5345         cat >conftest.$ac_ext <<_ACEOF
5346 /* confdefs.h.  */
5347 _ACEOF
5348 cat confdefs.h >>conftest.$ac_ext
5349 cat >>conftest.$ac_ext <<_ACEOF
5350 /* end confdefs.h.  */
5351
5352 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5353   notposix
5354 #endif
5355
5356 _ACEOF
5357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5358   $EGREP "notposix" >/dev/null 2>&1; then
5359   gt_cv_func_printf_posix="guessing no"
5360 else
5361   gt_cv_func_printf_posix="guessing yes"
5362 fi
5363 rm -f conftest*
5364
5365
5366 else
5367   cat >conftest.$ac_ext <<_ACEOF
5368 /* confdefs.h.  */
5369 _ACEOF
5370 cat confdefs.h >>conftest.$ac_ext
5371 cat >>conftest.$ac_ext <<_ACEOF
5372 /* end confdefs.h.  */
5373
5374 #include <stdio.h>
5375 #include <string.h>
5376 /* The string "%2$d %1$d", with dollar characters protected from the shell's
5377    dollar expansion (possibly an autoconf bug).  */
5378 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5379 static char buf[100];
5380 int main ()
5381 {
5382   sprintf (buf, format, 33, 55);
5383   return (strcmp (buf, "55 33") != 0);
5384 }
5385 _ACEOF
5386 rm -f conftest$ac_exeext
5387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5388   (eval $ac_link) 2>&5
5389   ac_status=$?
5390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5393   (eval $ac_try) 2>&5
5394   ac_status=$?
5395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396   (exit $ac_status); }; }; then
5397   gt_cv_func_printf_posix=yes
5398 else
5399   echo "$as_me: program exited with status $ac_status" >&5
5400 echo "$as_me: failed program was:" >&5
5401 sed 's/^/| /' conftest.$ac_ext >&5
5402
5403 ( exit $ac_status )
5404 gt_cv_func_printf_posix=no
5405 fi
5406 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5407 fi
5408
5409 fi
5410 echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
5411 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
5412   case $gt_cv_func_printf_posix in
5413     *yes)
5414
5415 cat >>confdefs.h <<\_ACEOF
5416 #define HAVE_POSIX_PRINTF 1
5417 _ACEOF
5418
5419       ;;
5420   esac
5421
5422 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5423 # for constant arguments.  Useless!
5424 echo "$as_me:$LINENO: checking for working alloca.h" >&5
5425 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5426 if test "${ac_cv_working_alloca_h+set}" = set; then
5427   echo $ECHO_N "(cached) $ECHO_C" >&6
5428 else
5429   cat >conftest.$ac_ext <<_ACEOF
5430 /* confdefs.h.  */
5431 _ACEOF
5432 cat confdefs.h >>conftest.$ac_ext
5433 cat >>conftest.$ac_ext <<_ACEOF
5434 /* end confdefs.h.  */
5435 #include <alloca.h>
5436 int
5437 main ()
5438 {
5439 char *p = (char *) alloca (2 * sizeof (int));
5440   ;
5441   return 0;
5442 }
5443 _ACEOF
5444 rm -f conftest.$ac_objext conftest$ac_exeext
5445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5446   (eval $ac_link) 2>conftest.er1
5447   ac_status=$?
5448   grep -v '^ *+' conftest.er1 >conftest.err
5449   rm -f conftest.er1
5450   cat conftest.err >&5
5451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452   (exit $ac_status); } &&
5453          { ac_try='test -z "$ac_c_werror_flag"
5454                          || test ! -s conftest.err'
5455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5456   (eval $ac_try) 2>&5
5457   ac_status=$?
5458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459   (exit $ac_status); }; } &&
5460          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
5466   ac_cv_working_alloca_h=yes
5467 else
5468   echo "$as_me: failed program was:" >&5
5469 sed 's/^/| /' conftest.$ac_ext >&5
5470
5471 ac_cv_working_alloca_h=no
5472 fi
5473 rm -f conftest.err conftest.$ac_objext \
5474       conftest$ac_exeext conftest.$ac_ext
5475 fi
5476 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5477 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5478 if test $ac_cv_working_alloca_h = yes; then
5479
5480 cat >>confdefs.h <<\_ACEOF
5481 #define HAVE_ALLOCA_H 1
5482 _ACEOF
5483
5484 fi
5485
5486 echo "$as_me:$LINENO: checking for alloca" >&5
5487 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5488 if test "${ac_cv_func_alloca_works+set}" = set; then
5489   echo $ECHO_N "(cached) $ECHO_C" >&6
5490 else
5491   cat >conftest.$ac_ext <<_ACEOF
5492 /* confdefs.h.  */
5493 _ACEOF
5494 cat confdefs.h >>conftest.$ac_ext
5495 cat >>conftest.$ac_ext <<_ACEOF
5496 /* end confdefs.h.  */
5497 #ifdef __GNUC__
5498 # define alloca __builtin_alloca
5499 #else
5500 # ifdef _MSC_VER
5501 #  include <malloc.h>
5502 #  define alloca _alloca
5503 # else
5504 #  if HAVE_ALLOCA_H
5505 #   include <alloca.h>
5506 #  else
5507 #   ifdef _AIX
5508  #pragma alloca
5509 #   else
5510 #    ifndef alloca /* predefined by HP cc +Olibcalls */
5511 char *alloca ();
5512 #    endif
5513 #   endif
5514 #  endif
5515 # endif
5516 #endif
5517
5518 int
5519 main ()
5520 {
5521 char *p = (char *) alloca (1);
5522   ;
5523   return 0;
5524 }
5525 _ACEOF
5526 rm -f conftest.$ac_objext conftest$ac_exeext
5527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5528   (eval $ac_link) 2>conftest.er1
5529   ac_status=$?
5530   grep -v '^ *+' conftest.er1 >conftest.err
5531   rm -f conftest.er1
5532   cat conftest.err >&5
5533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534   (exit $ac_status); } &&
5535          { ac_try='test -z "$ac_c_werror_flag"
5536                          || test ! -s conftest.err'
5537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5538   (eval $ac_try) 2>&5
5539   ac_status=$?
5540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541   (exit $ac_status); }; } &&
5542          { ac_try='test -s conftest$ac_exeext'
5543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5544   (eval $ac_try) 2>&5
5545   ac_status=$?
5546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547   (exit $ac_status); }; }; then
5548   ac_cv_func_alloca_works=yes
5549 else
5550   echo "$as_me: failed program was:" >&5
5551 sed 's/^/| /' conftest.$ac_ext >&5
5552
5553 ac_cv_func_alloca_works=no
5554 fi
5555 rm -f conftest.err conftest.$ac_objext \
5556       conftest$ac_exeext conftest.$ac_ext
5557 fi
5558 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5559 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5560
5561 if test $ac_cv_func_alloca_works = yes; then
5562
5563 cat >>confdefs.h <<\_ACEOF
5564 #define HAVE_ALLOCA 1
5565 _ACEOF
5566
5567 else
5568   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5569 # that cause trouble.  Some versions do not even contain alloca or
5570 # contain a buggy version.  If you still want to use their alloca,
5571 # use ar to extract alloca.o from them instead of compiling alloca.c.
5572
5573 ALLOCA=alloca.$ac_objext
5574
5575 cat >>confdefs.h <<\_ACEOF
5576 #define C_ALLOCA 1
5577 _ACEOF
5578
5579
5580 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5581 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5582 if test "${ac_cv_os_cray+set}" = set; then
5583   echo $ECHO_N "(cached) $ECHO_C" >&6
5584 else
5585   cat >conftest.$ac_ext <<_ACEOF
5586 /* confdefs.h.  */
5587 _ACEOF
5588 cat confdefs.h >>conftest.$ac_ext
5589 cat >>conftest.$ac_ext <<_ACEOF
5590 /* end confdefs.h.  */
5591 #if defined(CRAY) && ! defined(CRAY2)
5592 webecray
5593 #else
5594 wenotbecray
5595 #endif
5596
5597 _ACEOF
5598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5599   $EGREP "webecray" >/dev/null 2>&1; then
5600   ac_cv_os_cray=yes
5601 else
5602   ac_cv_os_cray=no
5603 fi
5604 rm -f conftest*
5605
5606 fi
5607 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5608 echo "${ECHO_T}$ac_cv_os_cray" >&6
5609 if test $ac_cv_os_cray = yes; then
5610   for ac_func in _getb67 GETB67 getb67; do
5611     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5612 echo "$as_me:$LINENO: checking for $ac_func" >&5
5613 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5614 if eval "test \"\${$as_ac_var+set}\" = set"; then
5615   echo $ECHO_N "(cached) $ECHO_C" >&6
5616 else
5617   cat >conftest.$ac_ext <<_ACEOF
5618 /* confdefs.h.  */
5619 _ACEOF
5620 cat confdefs.h >>conftest.$ac_ext
5621 cat >>conftest.$ac_ext <<_ACEOF
5622 /* end confdefs.h.  */
5623 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5624    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5625 #define $ac_func innocuous_$ac_func
5626
5627 /* System header to define __stub macros and hopefully few prototypes,
5628     which can conflict with char $ac_func (); below.
5629     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5630     <limits.h> exists even on freestanding compilers.  */
5631
5632 #ifdef __STDC__
5633 # include <limits.h>
5634 #else
5635 # include <assert.h>
5636 #endif
5637
5638 #undef $ac_func
5639
5640 /* Override any gcc2 internal prototype to avoid an error.  */
5641 #ifdef __cplusplus
5642 extern "C"
5643 {
5644 #endif
5645 /* We use char because int might match the return type of a gcc2
5646    builtin and then its argument prototype would still apply.  */
5647 char $ac_func ();
5648 /* The GNU C library defines this for functions which it implements
5649     to always fail with ENOSYS.  Some functions are actually named
5650     something starting with __ and the normal name is an alias.  */
5651 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5652 choke me
5653 #else
5654 char (*f) () = $ac_func;
5655 #endif
5656 #ifdef __cplusplus
5657 }
5658 #endif
5659
5660 int
5661 main ()
5662 {
5663 return f != $ac_func;
5664   ;
5665   return 0;
5666 }
5667 _ACEOF
5668 rm -f conftest.$ac_objext conftest$ac_exeext
5669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5670   (eval $ac_link) 2>conftest.er1
5671   ac_status=$?
5672   grep -v '^ *+' conftest.er1 >conftest.err
5673   rm -f conftest.er1
5674   cat conftest.err >&5
5675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676   (exit $ac_status); } &&
5677          { ac_try='test -z "$ac_c_werror_flag"
5678                          || test ! -s conftest.err'
5679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5680   (eval $ac_try) 2>&5
5681   ac_status=$?
5682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683   (exit $ac_status); }; } &&
5684          { ac_try='test -s conftest$ac_exeext'
5685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5686   (eval $ac_try) 2>&5
5687   ac_status=$?
5688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689   (exit $ac_status); }; }; then
5690   eval "$as_ac_var=yes"
5691 else
5692   echo "$as_me: failed program was:" >&5
5693 sed 's/^/| /' conftest.$ac_ext >&5
5694
5695 eval "$as_ac_var=no"
5696 fi
5697 rm -f conftest.err conftest.$ac_objext \
5698       conftest$ac_exeext conftest.$ac_ext
5699 fi
5700 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5701 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5702 if test `eval echo '${'$as_ac_var'}'` = yes; then
5703
5704 cat >>confdefs.h <<_ACEOF
5705 #define CRAY_STACKSEG_END $ac_func
5706 _ACEOF
5707
5708     break
5709 fi
5710
5711   done
5712 fi
5713
5714 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5715 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5716 if test "${ac_cv_c_stack_direction+set}" = set; then
5717   echo $ECHO_N "(cached) $ECHO_C" >&6
5718 else
5719   if test "$cross_compiling" = yes; then
5720   ac_cv_c_stack_direction=0
5721 else
5722   cat >conftest.$ac_ext <<_ACEOF
5723 /* confdefs.h.  */
5724 _ACEOF
5725 cat confdefs.h >>conftest.$ac_ext
5726 cat >>conftest.$ac_ext <<_ACEOF
5727 /* end confdefs.h.  */
5728 int
5729 find_stack_direction ()
5730 {
5731   static char *addr = 0;
5732   auto char dummy;
5733   if (addr == 0)
5734     {
5735       addr = &dummy;
5736       return find_stack_direction ();
5737     }
5738   else
5739     return (&dummy > addr) ? 1 : -1;
5740 }
5741
5742 int
5743 main ()
5744 {
5745   exit (find_stack_direction () < 0);
5746 }
5747 _ACEOF
5748 rm -f conftest$ac_exeext
5749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5750   (eval $ac_link) 2>&5
5751   ac_status=$?
5752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5755   (eval $ac_try) 2>&5
5756   ac_status=$?
5757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758   (exit $ac_status); }; }; then
5759   ac_cv_c_stack_direction=1
5760 else
5761   echo "$as_me: program exited with status $ac_status" >&5
5762 echo "$as_me: failed program was:" >&5
5763 sed 's/^/| /' conftest.$ac_ext >&5
5764
5765 ( exit $ac_status )
5766 ac_cv_c_stack_direction=-1
5767 fi
5768 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5769 fi
5770 fi
5771 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5772 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5773
5774 cat >>confdefs.h <<_ACEOF
5775 #define STACK_DIRECTION $ac_cv_c_stack_direction
5776 _ACEOF
5777
5778
5779 fi
5780
5781
5782
5783 for ac_header in stdlib.h unistd.h
5784 do
5785 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5787   echo "$as_me:$LINENO: checking for $ac_header" >&5
5788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5790   echo $ECHO_N "(cached) $ECHO_C" >&6
5791 fi
5792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5793 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5794 else
5795   # Is the header compilable?
5796 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5797 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5798 cat >conftest.$ac_ext <<_ACEOF
5799 /* confdefs.h.  */
5800 _ACEOF
5801 cat confdefs.h >>conftest.$ac_ext
5802 cat >>conftest.$ac_ext <<_ACEOF
5803 /* end confdefs.h.  */
5804 $ac_includes_default
5805 #include <$ac_header>
5806 _ACEOF
5807 rm -f conftest.$ac_objext
5808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5809   (eval $ac_compile) 2>conftest.er1
5810   ac_status=$?
5811   grep -v '^ *+' conftest.er1 >conftest.err
5812   rm -f conftest.er1
5813   cat conftest.err >&5
5814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815   (exit $ac_status); } &&
5816          { ac_try='test -z "$ac_c_werror_flag"
5817                          || test ! -s conftest.err'
5818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5819   (eval $ac_try) 2>&5
5820   ac_status=$?
5821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822   (exit $ac_status); }; } &&
5823          { ac_try='test -s conftest.$ac_objext'
5824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5825   (eval $ac_try) 2>&5
5826   ac_status=$?
5827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828   (exit $ac_status); }; }; then
5829   ac_header_compiler=yes
5830 else
5831   echo "$as_me: failed program was:" >&5
5832 sed 's/^/| /' conftest.$ac_ext >&5
5833
5834 ac_header_compiler=no
5835 fi
5836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5837 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5838 echo "${ECHO_T}$ac_header_compiler" >&6
5839
5840 # Is the header present?
5841 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5842 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5843 cat >conftest.$ac_ext <<_ACEOF
5844 /* confdefs.h.  */
5845 _ACEOF
5846 cat confdefs.h >>conftest.$ac_ext
5847 cat >>conftest.$ac_ext <<_ACEOF
5848 /* end confdefs.h.  */
5849 #include <$ac_header>
5850 _ACEOF
5851 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5852   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5853   ac_status=$?
5854   grep -v '^ *+' conftest.er1 >conftest.err
5855   rm -f conftest.er1
5856   cat conftest.err >&5
5857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858   (exit $ac_status); } >/dev/null; then
5859   if test -s conftest.err; then
5860     ac_cpp_err=$ac_c_preproc_warn_flag
5861     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5862   else
5863     ac_cpp_err=
5864   fi
5865 else
5866   ac_cpp_err=yes
5867 fi
5868 if test -z "$ac_cpp_err"; then
5869   ac_header_preproc=yes
5870 else
5871   echo "$as_me: failed program was:" >&5
5872 sed 's/^/| /' conftest.$ac_ext >&5
5873
5874   ac_header_preproc=no
5875 fi
5876 rm -f conftest.err conftest.$ac_ext
5877 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5878 echo "${ECHO_T}$ac_header_preproc" >&6
5879
5880 # So?  What about this header?
5881 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5882   yes:no: )
5883     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5884 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5885     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5886 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5887     ac_header_preproc=yes
5888     ;;
5889   no:yes:* )
5890     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5891 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5892     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5893 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5894     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5895 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5896     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5897 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5898     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5899 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5900     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5901 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5902     (
5903       cat <<\_ASBOX
5904 ## ------------------------------------------ ##
5905 ## Report this to the AC_PACKAGE_NAME lists.  ##
5906 ## ------------------------------------------ ##
5907 _ASBOX
5908     ) |
5909       sed "s/^/$as_me: WARNING:     /" >&2
5910     ;;
5911 esac
5912 echo "$as_me:$LINENO: checking for $ac_header" >&5
5913 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5914 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5915   echo $ECHO_N "(cached) $ECHO_C" >&6
5916 else
5917   eval "$as_ac_Header=\$ac_header_preproc"
5918 fi
5919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5920 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5921
5922 fi
5923 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5924   cat >>confdefs.h <<_ACEOF
5925 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5926 _ACEOF
5927
5928 fi
5929
5930 done
5931
5932
5933 for ac_func in getpagesize
5934 do
5935 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5936 echo "$as_me:$LINENO: checking for $ac_func" >&5
5937 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5938 if eval "test \"\${$as_ac_var+set}\" = set"; then
5939   echo $ECHO_N "(cached) $ECHO_C" >&6
5940 else
5941   cat >conftest.$ac_ext <<_ACEOF
5942 /* confdefs.h.  */
5943 _ACEOF
5944 cat confdefs.h >>conftest.$ac_ext
5945 cat >>conftest.$ac_ext <<_ACEOF
5946 /* end confdefs.h.  */
5947 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5948    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5949 #define $ac_func innocuous_$ac_func
5950
5951 /* System header to define __stub macros and hopefully few prototypes,
5952     which can conflict with char $ac_func (); below.
5953     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5954     <limits.h> exists even on freestanding compilers.  */
5955
5956 #ifdef __STDC__
5957 # include <limits.h>
5958 #else
5959 # include <assert.h>
5960 #endif
5961
5962 #undef $ac_func
5963
5964 /* Override any gcc2 internal prototype to avoid an error.  */
5965 #ifdef __cplusplus
5966 extern "C"
5967 {
5968 #endif
5969 /* We use char because int might match the return type of a gcc2
5970    builtin and then its argument prototype would still apply.  */
5971 char $ac_func ();
5972 /* The GNU C library defines this for functions which it implements
5973     to always fail with ENOSYS.  Some functions are actually named
5974     something starting with __ and the normal name is an alias.  */
5975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5976 choke me
5977 #else
5978 char (*f) () = $ac_func;
5979 #endif
5980 #ifdef __cplusplus
5981 }
5982 #endif
5983
5984 int
5985 main ()
5986 {
5987 return f != $ac_func;
5988   ;
5989   return 0;
5990 }
5991 _ACEOF
5992 rm -f conftest.$ac_objext conftest$ac_exeext
5993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5994   (eval $ac_link) 2>conftest.er1
5995   ac_status=$?
5996   grep -v '^ *+' conftest.er1 >conftest.err
5997   rm -f conftest.er1
5998   cat conftest.err >&5
5999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000   (exit $ac_status); } &&
6001          { ac_try='test -z "$ac_c_werror_flag"
6002                          || test ! -s conftest.err'
6003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6004   (eval $ac_try) 2>&5
6005   ac_status=$?
6006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007   (exit $ac_status); }; } &&
6008          { ac_try='test -s conftest$ac_exeext'
6009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6010   (eval $ac_try) 2>&5
6011   ac_status=$?
6012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013   (exit $ac_status); }; }; then
6014   eval "$as_ac_var=yes"
6015 else
6016   echo "$as_me: failed program was:" >&5
6017 sed 's/^/| /' conftest.$ac_ext >&5
6018
6019 eval "$as_ac_var=no"
6020 fi
6021 rm -f conftest.err conftest.$ac_objext \
6022       conftest$ac_exeext conftest.$ac_ext
6023 fi
6024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6025 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6026 if test `eval echo '${'$as_ac_var'}'` = yes; then
6027   cat >>confdefs.h <<_ACEOF
6028 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6029 _ACEOF
6030
6031 fi
6032 done
6033
6034 echo "$as_me:$LINENO: checking for working mmap" >&5
6035 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6036 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6037   echo $ECHO_N "(cached) $ECHO_C" >&6
6038 else
6039   if test "$cross_compiling" = yes; then
6040   ac_cv_func_mmap_fixed_mapped=no
6041 else
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 /* malloc might have been renamed as rpl_malloc. */
6050 #undef malloc
6051
6052 /* Thanks to Mike Haertel and Jim Avera for this test.
6053    Here is a matrix of mmap possibilities:
6054         mmap private not fixed
6055         mmap private fixed at somewhere currently unmapped
6056         mmap private fixed at somewhere already mapped
6057         mmap shared not fixed
6058         mmap shared fixed at somewhere currently unmapped
6059         mmap shared fixed at somewhere already mapped
6060    For private mappings, we should verify that changes cannot be read()
6061    back from the file, nor mmap's back from the file at a different
6062    address.  (There have been systems where private was not correctly
6063    implemented like the infamous i386 svr4.0, and systems where the
6064    VM page cache was not coherent with the file system buffer cache
6065    like early versions of FreeBSD and possibly contemporary NetBSD.)
6066    For shared mappings, we should conversely verify that changes get
6067    propagated back to all the places they're supposed to be.
6068
6069    Grep wants private fixed already mapped.
6070    The main things grep needs to know about mmap are:
6071    * does it exist and is it safe to write into the mmap'd area
6072    * how to use it (BSD variants)  */
6073
6074 #include <fcntl.h>
6075 #include <sys/mman.h>
6076
6077 #if !STDC_HEADERS && !HAVE_STDLIB_H
6078 char *malloc ();
6079 #endif
6080
6081 /* This mess was copied from the GNU getpagesize.h.  */
6082 #if !HAVE_GETPAGESIZE
6083 /* Assume that all systems that can run configure have sys/param.h.  */
6084 # if !HAVE_SYS_PARAM_H
6085 #  define HAVE_SYS_PARAM_H 1
6086 # endif
6087
6088 # ifdef _SC_PAGESIZE
6089 #  define getpagesize() sysconf(_SC_PAGESIZE)
6090 # else /* no _SC_PAGESIZE */
6091 #  if HAVE_SYS_PARAM_H
6092 #   include <sys/param.h>
6093 #   ifdef EXEC_PAGESIZE
6094 #    define getpagesize() EXEC_PAGESIZE
6095 #   else /* no EXEC_PAGESIZE */
6096 #    ifdef NBPG
6097 #     define getpagesize() NBPG * CLSIZE
6098 #     ifndef CLSIZE
6099 #      define CLSIZE 1
6100 #     endif /* no CLSIZE */
6101 #    else /* no NBPG */
6102 #     ifdef NBPC
6103 #      define getpagesize() NBPC
6104 #     else /* no NBPC */
6105 #      ifdef PAGESIZE
6106 #       define getpagesize() PAGESIZE
6107 #      endif /* PAGESIZE */
6108 #     endif /* no NBPC */
6109 #    endif /* no NBPG */
6110 #   endif /* no EXEC_PAGESIZE */
6111 #  else /* no HAVE_SYS_PARAM_H */
6112 #   define getpagesize() 8192   /* punt totally */
6113 #  endif /* no HAVE_SYS_PARAM_H */
6114 # endif /* no _SC_PAGESIZE */
6115
6116 #endif /* no HAVE_GETPAGESIZE */
6117
6118 int
6119 main ()
6120 {
6121   char *data, *data2, *data3;
6122   int i, pagesize;
6123   int fd;
6124
6125   pagesize = getpagesize ();
6126
6127   /* First, make a file with some known garbage in it. */
6128   data = (char *) malloc (pagesize);
6129   if (!data)
6130     exit (1);
6131   for (i = 0; i < pagesize; ++i)
6132     *(data + i) = rand ();
6133   umask (0);
6134   fd = creat ("conftest.mmap", 0600);
6135   if (fd < 0)
6136     exit (1);
6137   if (write (fd, data, pagesize) != pagesize)
6138     exit (1);
6139   close (fd);
6140
6141   /* Next, try to mmap the file at a fixed address which already has
6142      something else allocated at it.  If we can, also make sure that
6143      we see the same garbage.  */
6144   fd = open ("conftest.mmap", O_RDWR);
6145   if (fd < 0)
6146     exit (1);
6147   data2 = (char *) malloc (2 * pagesize);
6148   if (!data2)
6149     exit (1);
6150   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6151   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6152                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
6153     exit (1);
6154   for (i = 0; i < pagesize; ++i)
6155     if (*(data + i) != *(data2 + i))
6156       exit (1);
6157
6158   /* Finally, make sure that changes to the mapped area do not
6159      percolate back to the file as seen by read().  (This is a bug on
6160      some variants of i386 svr4.0.)  */
6161   for (i = 0; i < pagesize; ++i)
6162     *(data2 + i) = *(data2 + i) + 1;
6163   data3 = (char *) malloc (pagesize);
6164   if (!data3)
6165     exit (1);
6166   if (read (fd, data3, pagesize) != pagesize)
6167     exit (1);
6168   for (i = 0; i < pagesize; ++i)
6169     if (*(data + i) != *(data3 + i))
6170       exit (1);
6171   close (fd);
6172   exit (0);
6173 }
6174 _ACEOF
6175 rm -f conftest$ac_exeext
6176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6177   (eval $ac_link) 2>&5
6178   ac_status=$?
6179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6182   (eval $ac_try) 2>&5
6183   ac_status=$?
6184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185   (exit $ac_status); }; }; then
6186   ac_cv_func_mmap_fixed_mapped=yes
6187 else
6188   echo "$as_me: program exited with status $ac_status" >&5
6189 echo "$as_me: failed program was:" >&5
6190 sed 's/^/| /' conftest.$ac_ext >&5
6191
6192 ( exit $ac_status )
6193 ac_cv_func_mmap_fixed_mapped=no
6194 fi
6195 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6196 fi
6197 fi
6198 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6199 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6200 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6201
6202 cat >>confdefs.h <<\_ACEOF
6203 #define HAVE_MMAP 1
6204 _ACEOF
6205
6206 fi
6207 rm -f conftest.mmap
6208
6209
6210     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6211 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
6212 if test "${ac_cv_gnu_library_2_1+set}" = set; then
6213   echo $ECHO_N "(cached) $ECHO_C" >&6
6214 else
6215   cat >conftest.$ac_ext <<_ACEOF
6216 /* confdefs.h.  */
6217 _ACEOF
6218 cat confdefs.h >>conftest.$ac_ext
6219 cat >>conftest.$ac_ext <<_ACEOF
6220 /* end confdefs.h.  */
6221
6222 #include <features.h>
6223 #ifdef __GNU_LIBRARY__
6224  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6225   Lucky GNU user
6226  #endif
6227 #endif
6228
6229 _ACEOF
6230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6231   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6232   ac_cv_gnu_library_2_1=yes
6233 else
6234   ac_cv_gnu_library_2_1=no
6235 fi
6236 rm -f conftest*
6237
6238
6239
6240 fi
6241 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6242 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
6243
6244     GLIBC21="$ac_cv_gnu_library_2_1"
6245
6246
6247
6248
6249   echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6250 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
6251 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6252   echo $ECHO_N "(cached) $ECHO_C" >&6
6253 else
6254
6255       if test "$cross_compiling" = yes; then
6256
6257           # Guess based on the CPU.
6258           case "$host_cpu" in
6259             alpha* | i3456786 | m68k | s390*)
6260               gt_cv_int_divbyzero_sigfpe="guessing yes";;
6261             *)
6262               gt_cv_int_divbyzero_sigfpe="guessing no";;
6263           esac
6264
6265 else
6266   cat >conftest.$ac_ext <<_ACEOF
6267 /* confdefs.h.  */
6268 _ACEOF
6269 cat confdefs.h >>conftest.$ac_ext
6270 cat >>conftest.$ac_ext <<_ACEOF
6271 /* end confdefs.h.  */
6272
6273 #include <stdlib.h>
6274 #include <signal.h>
6275
6276 static void
6277 #ifdef __cplusplus
6278 sigfpe_handler (int sig)
6279 #else
6280 sigfpe_handler (sig) int sig;
6281 #endif
6282 {
6283   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
6284   exit (sig != SIGFPE);
6285 }
6286
6287 int x = 1;
6288 int y = 0;
6289 int z;
6290 int nan;
6291
6292 int main ()
6293 {
6294   signal (SIGFPE, sigfpe_handler);
6295 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
6296 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6297   signal (SIGTRAP, sigfpe_handler);
6298 #endif
6299 /* Linux/SPARC yields signal SIGILL.  */
6300 #if defined (__sparc__) && defined (__linux__)
6301   signal (SIGILL, sigfpe_handler);
6302 #endif
6303
6304   z = x / y;
6305   nan = y / y;
6306   exit (1);
6307 }
6308
6309 _ACEOF
6310 rm -f conftest$ac_exeext
6311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6312   (eval $ac_link) 2>&5
6313   ac_status=$?
6314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6317   (eval $ac_try) 2>&5
6318   ac_status=$?
6319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320   (exit $ac_status); }; }; then
6321   gt_cv_int_divbyzero_sigfpe=yes
6322 else
6323   echo "$as_me: program exited with status $ac_status" >&5
6324 echo "$as_me: failed program was:" >&5
6325 sed 's/^/| /' conftest.$ac_ext >&5
6326
6327 ( exit $ac_status )
6328 gt_cv_int_divbyzero_sigfpe=no
6329 fi
6330 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6331 fi
6332
6333 fi
6334 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6335 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
6336   case "$gt_cv_int_divbyzero_sigfpe" in
6337     *yes) value=1;;
6338     *) value=0;;
6339   esac
6340
6341 cat >>confdefs.h <<_ACEOF
6342 #define INTDIV0_RAISES_SIGFPE $value
6343 _ACEOF
6344
6345
6346
6347   echo "$as_me:$LINENO: checking for unsigned long long" >&5
6348 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
6349 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6350   echo $ECHO_N "(cached) $ECHO_C" >&6
6351 else
6352   cat >conftest.$ac_ext <<_ACEOF
6353 /* confdefs.h.  */
6354 _ACEOF
6355 cat confdefs.h >>conftest.$ac_ext
6356 cat >>conftest.$ac_ext <<_ACEOF
6357 /* end confdefs.h.  */
6358 unsigned long long ull = 1ULL; int i = 63;
6359 int
6360 main ()
6361 {
6362 unsigned long long ullmax = (unsigned long long) -1;
6363      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6364   ;
6365   return 0;
6366 }
6367 _ACEOF
6368 rm -f conftest.$ac_objext conftest$ac_exeext
6369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6370   (eval $ac_link) 2>conftest.er1
6371   ac_status=$?
6372   grep -v '^ *+' conftest.er1 >conftest.err
6373   rm -f conftest.er1
6374   cat conftest.err >&5
6375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376   (exit $ac_status); } &&
6377          { ac_try='test -z "$ac_c_werror_flag"
6378                          || test ! -s conftest.err'
6379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6380   (eval $ac_try) 2>&5
6381   ac_status=$?
6382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383   (exit $ac_status); }; } &&
6384          { ac_try='test -s conftest$ac_exeext'
6385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6386   (eval $ac_try) 2>&5
6387   ac_status=$?
6388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389   (exit $ac_status); }; }; then
6390   ac_cv_type_unsigned_long_long=yes
6391 else
6392   echo "$as_me: failed program was:" >&5
6393 sed 's/^/| /' conftest.$ac_ext >&5
6394
6395 ac_cv_type_unsigned_long_long=no
6396 fi
6397 rm -f conftest.err conftest.$ac_objext \
6398       conftest$ac_exeext conftest.$ac_ext
6399 fi
6400 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6401 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
6402   if test $ac_cv_type_unsigned_long_long = yes; then
6403
6404 cat >>confdefs.h <<\_ACEOF
6405 #define HAVE_UNSIGNED_LONG_LONG 1
6406 _ACEOF
6407
6408   fi
6409
6410
6411
6412
6413   if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
6414
6415     test $ac_cv_type_unsigned_long_long = yes \
6416       && ac_type='unsigned long long' \
6417       || ac_type='unsigned long'
6418
6419 cat >>confdefs.h <<_ACEOF
6420 #define uintmax_t $ac_type
6421 _ACEOF
6422
6423   else
6424
6425 cat >>confdefs.h <<\_ACEOF
6426 #define HAVE_UINTMAX_T 1
6427 _ACEOF
6428
6429   fi
6430
6431
6432   echo "$as_me:$LINENO: checking for inttypes.h" >&5
6433 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6434 if test "${gt_cv_header_inttypes_h+set}" = set; then
6435   echo $ECHO_N "(cached) $ECHO_C" >&6
6436 else
6437
6438     cat >conftest.$ac_ext <<_ACEOF
6439 /* confdefs.h.  */
6440 _ACEOF
6441 cat confdefs.h >>conftest.$ac_ext
6442 cat >>conftest.$ac_ext <<_ACEOF
6443 /* end confdefs.h.  */
6444 #include <sys/types.h>
6445 #include <inttypes.h>
6446 int
6447 main ()
6448 {
6449
6450   ;
6451   return 0;
6452 }
6453 _ACEOF
6454 rm -f conftest.$ac_objext
6455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6456   (eval $ac_compile) 2>conftest.er1
6457   ac_status=$?
6458   grep -v '^ *+' conftest.er1 >conftest.err
6459   rm -f conftest.er1
6460   cat conftest.err >&5
6461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462   (exit $ac_status); } &&
6463          { ac_try='test -z "$ac_c_werror_flag"
6464                          || test ! -s conftest.err'
6465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6466   (eval $ac_try) 2>&5
6467   ac_status=$?
6468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469   (exit $ac_status); }; } &&
6470          { ac_try='test -s conftest.$ac_objext'
6471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6472   (eval $ac_try) 2>&5
6473   ac_status=$?
6474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475   (exit $ac_status); }; }; then
6476   gt_cv_header_inttypes_h=yes
6477 else
6478   echo "$as_me: failed program was:" >&5
6479 sed 's/^/| /' conftest.$ac_ext >&5
6480
6481 gt_cv_header_inttypes_h=no
6482 fi
6483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6484
6485 fi
6486 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
6487 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
6488   if test $gt_cv_header_inttypes_h = yes; then
6489
6490 cat >>confdefs.h <<_ACEOF
6491 #define HAVE_INTTYPES_H 1
6492 _ACEOF
6493
6494   fi
6495
6496
6497
6498   if test $gt_cv_header_inttypes_h = yes; then
6499     echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
6500 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
6501 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
6502   echo $ECHO_N "(cached) $ECHO_C" >&6
6503 else
6504
6505         cat >conftest.$ac_ext <<_ACEOF
6506 /* confdefs.h.  */
6507 _ACEOF
6508 cat confdefs.h >>conftest.$ac_ext
6509 cat >>conftest.$ac_ext <<_ACEOF
6510 /* end confdefs.h.  */
6511 #include <inttypes.h>
6512 #ifdef PRId32
6513 char *p = PRId32;
6514 #endif
6515
6516 int
6517 main ()
6518 {
6519
6520   ;
6521   return 0;
6522 }
6523 _ACEOF
6524 rm -f conftest.$ac_objext
6525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6526   (eval $ac_compile) 2>conftest.er1
6527   ac_status=$?
6528   grep -v '^ *+' conftest.er1 >conftest.err
6529   rm -f conftest.er1
6530   cat conftest.err >&5
6531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532   (exit $ac_status); } &&
6533          { ac_try='test -z "$ac_c_werror_flag"
6534                          || test ! -s conftest.err'
6535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6536   (eval $ac_try) 2>&5
6537   ac_status=$?
6538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539   (exit $ac_status); }; } &&
6540          { ac_try='test -s conftest.$ac_objext'
6541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6542   (eval $ac_try) 2>&5
6543   ac_status=$?
6544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545   (exit $ac_status); }; }; then
6546   gt_cv_inttypes_pri_broken=no
6547 else
6548   echo "$as_me: failed program was:" >&5
6549 sed 's/^/| /' conftest.$ac_ext >&5
6550
6551 gt_cv_inttypes_pri_broken=yes
6552 fi
6553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6554
6555 fi
6556 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
6557 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
6558   fi
6559   if test "$gt_cv_inttypes_pri_broken" = yes; then
6560
6561 cat >>confdefs.h <<_ACEOF
6562 #define PRI_MACROS_BROKEN 1
6563 _ACEOF
6564
6565   fi
6566
6567
6568
6569 for ac_header in stdint.h
6570 do
6571 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6573   echo "$as_me:$LINENO: checking for $ac_header" >&5
6574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6575 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6576   echo $ECHO_N "(cached) $ECHO_C" >&6
6577 fi
6578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6579 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6580 else
6581   # Is the header compilable?
6582 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6583 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6584 cat >conftest.$ac_ext <<_ACEOF
6585 /* confdefs.h.  */
6586 _ACEOF
6587 cat confdefs.h >>conftest.$ac_ext
6588 cat >>conftest.$ac_ext <<_ACEOF
6589 /* end confdefs.h.  */
6590 $ac_includes_default
6591 #include <$ac_header>
6592 _ACEOF
6593 rm -f conftest.$ac_objext
6594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6595   (eval $ac_compile) 2>conftest.er1
6596   ac_status=$?
6597   grep -v '^ *+' conftest.er1 >conftest.err
6598   rm -f conftest.er1
6599   cat conftest.err >&5
6600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601   (exit $ac_status); } &&
6602          { ac_try='test -z "$ac_c_werror_flag"
6603                          || test ! -s conftest.err'
6604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6605   (eval $ac_try) 2>&5
6606   ac_status=$?
6607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608   (exit $ac_status); }; } &&
6609          { ac_try='test -s conftest.$ac_objext'
6610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6611   (eval $ac_try) 2>&5
6612   ac_status=$?
6613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614   (exit $ac_status); }; }; then
6615   ac_header_compiler=yes
6616 else
6617   echo "$as_me: failed program was:" >&5
6618 sed 's/^/| /' conftest.$ac_ext >&5
6619
6620 ac_header_compiler=no
6621 fi
6622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6623 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6624 echo "${ECHO_T}$ac_header_compiler" >&6
6625
6626 # Is the header present?
6627 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6628 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6629 cat >conftest.$ac_ext <<_ACEOF
6630 /* confdefs.h.  */
6631 _ACEOF
6632 cat confdefs.h >>conftest.$ac_ext
6633 cat >>conftest.$ac_ext <<_ACEOF
6634 /* end confdefs.h.  */
6635 #include <$ac_header>
6636 _ACEOF
6637 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6638   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6639   ac_status=$?
6640   grep -v '^ *+' conftest.er1 >conftest.err
6641   rm -f conftest.er1
6642   cat conftest.err >&5
6643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644   (exit $ac_status); } >/dev/null; then
6645   if test -s conftest.err; then
6646     ac_cpp_err=$ac_c_preproc_warn_flag
6647     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6648   else
6649     ac_cpp_err=
6650   fi
6651 else
6652   ac_cpp_err=yes
6653 fi
6654 if test -z "$ac_cpp_err"; then
6655   ac_header_preproc=yes
6656 else
6657   echo "$as_me: failed program was:" >&5
6658 sed 's/^/| /' conftest.$ac_ext >&5
6659
6660   ac_header_preproc=no
6661 fi
6662 rm -f conftest.err conftest.$ac_ext
6663 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6664 echo "${ECHO_T}$ac_header_preproc" >&6
6665
6666 # So?  What about this header?
6667 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6668   yes:no: )
6669     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6670 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6671     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6672 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6673     ac_header_preproc=yes
6674     ;;
6675   no:yes:* )
6676     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6677 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6678     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6679 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6680     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6681 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6682     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6683 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6684     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6685 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6686     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6687 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6688     (
6689       cat <<\_ASBOX
6690 ## ------------------------------------------ ##
6691 ## Report this to the AC_PACKAGE_NAME lists.  ##
6692 ## ------------------------------------------ ##
6693 _ASBOX
6694     ) |
6695       sed "s/^/$as_me: WARNING:     /" >&2
6696     ;;
6697 esac
6698 echo "$as_me:$LINENO: checking for $ac_header" >&5
6699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6701   echo $ECHO_N "(cached) $ECHO_C" >&6
6702 else
6703   eval "$as_ac_Header=\$ac_header_preproc"
6704 fi
6705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6706 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6707
6708 fi
6709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6710   cat >>confdefs.h <<_ACEOF
6711 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6712 _ACEOF
6713
6714 fi
6715
6716 done
6717
6718     echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
6719 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
6720   result=
6721   cat >conftest.$ac_ext <<_ACEOF
6722 /* confdefs.h.  */
6723 _ACEOF
6724 cat confdefs.h >>conftest.$ac_ext
6725 cat >>conftest.$ac_ext <<_ACEOF
6726 /* end confdefs.h.  */
6727
6728 #include <limits.h>
6729 #if HAVE_STDINT_H
6730 #include <stdint.h>
6731 #endif
6732 #ifdef SIZE_MAX
6733 Found it
6734 #endif
6735
6736 _ACEOF
6737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6738   $EGREP "Found it" >/dev/null 2>&1; then
6739   result=yes
6740 fi
6741 rm -f conftest*
6742
6743   if test -z "$result"; then
6744                     if test "$cross_compiling" = yes; then
6745   # Depending upon the size, compute the lo and hi bounds.
6746 cat >conftest.$ac_ext <<_ACEOF
6747 /* confdefs.h.  */
6748 _ACEOF
6749 cat confdefs.h >>conftest.$ac_ext
6750 cat >>conftest.$ac_ext <<_ACEOF
6751 /* end confdefs.h.  */
6752 #include <stddef.h>
6753 int
6754 main ()
6755 {
6756 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
6757 test_array [0] = 0
6758
6759   ;
6760   return 0;
6761 }
6762 _ACEOF
6763 rm -f conftest.$ac_objext
6764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6765   (eval $ac_compile) 2>conftest.er1
6766   ac_status=$?
6767   grep -v '^ *+' conftest.er1 >conftest.err
6768   rm -f conftest.er1
6769   cat conftest.err >&5
6770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771   (exit $ac_status); } &&
6772          { ac_try='test -z "$ac_c_werror_flag"
6773                          || test ! -s conftest.err'
6774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6775   (eval $ac_try) 2>&5
6776   ac_status=$?
6777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778   (exit $ac_status); }; } &&
6779          { ac_try='test -s conftest.$ac_objext'
6780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6781   (eval $ac_try) 2>&5
6782   ac_status=$?
6783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784   (exit $ac_status); }; }; then
6785   ac_lo=0 ac_mid=0
6786   while :; do
6787     cat >conftest.$ac_ext <<_ACEOF
6788 /* confdefs.h.  */
6789 _ACEOF
6790 cat confdefs.h >>conftest.$ac_ext
6791 cat >>conftest.$ac_ext <<_ACEOF
6792 /* end confdefs.h.  */
6793 #include <stddef.h>
6794 int
6795 main ()
6796 {
6797 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
6798 test_array [0] = 0
6799
6800   ;
6801   return 0;
6802 }
6803 _ACEOF
6804 rm -f conftest.$ac_objext
6805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6806   (eval $ac_compile) 2>conftest.er1
6807   ac_status=$?
6808   grep -v '^ *+' conftest.er1 >conftest.err
6809   rm -f conftest.er1
6810   cat conftest.err >&5
6811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812   (exit $ac_status); } &&
6813          { ac_try='test -z "$ac_c_werror_flag"
6814                          || test ! -s conftest.err'
6815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6816   (eval $ac_try) 2>&5
6817   ac_status=$?
6818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819   (exit $ac_status); }; } &&
6820          { ac_try='test -s conftest.$ac_objext'
6821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6822   (eval $ac_try) 2>&5
6823   ac_status=$?
6824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825   (exit $ac_status); }; }; then
6826   ac_hi=$ac_mid; break
6827 else
6828   echo "$as_me: failed program was:" >&5
6829 sed 's/^/| /' conftest.$ac_ext >&5
6830
6831 ac_lo=`expr $ac_mid + 1`
6832                     if test $ac_lo -le $ac_mid; then
6833                       ac_lo= ac_hi=
6834                       break
6835                     fi
6836                     ac_mid=`expr 2 '*' $ac_mid + 1`
6837 fi
6838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6839   done
6840 else
6841   echo "$as_me: failed program was:" >&5
6842 sed 's/^/| /' conftest.$ac_ext >&5
6843
6844 cat >conftest.$ac_ext <<_ACEOF
6845 /* confdefs.h.  */
6846 _ACEOF
6847 cat confdefs.h >>conftest.$ac_ext
6848 cat >>conftest.$ac_ext <<_ACEOF
6849 /* end confdefs.h.  */
6850 #include <stddef.h>
6851 int
6852 main ()
6853 {
6854 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
6855 test_array [0] = 0
6856
6857   ;
6858   return 0;
6859 }
6860 _ACEOF
6861 rm -f conftest.$ac_objext
6862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6863   (eval $ac_compile) 2>conftest.er1
6864   ac_status=$?
6865   grep -v '^ *+' conftest.er1 >conftest.err
6866   rm -f conftest.er1
6867   cat conftest.err >&5
6868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869   (exit $ac_status); } &&
6870          { ac_try='test -z "$ac_c_werror_flag"
6871                          || test ! -s conftest.err'
6872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6873   (eval $ac_try) 2>&5
6874   ac_status=$?
6875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876   (exit $ac_status); }; } &&
6877          { ac_try='test -s conftest.$ac_objext'
6878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6879   (eval $ac_try) 2>&5
6880   ac_status=$?
6881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882   (exit $ac_status); }; }; then
6883   ac_hi=-1 ac_mid=-1
6884   while :; do
6885     cat >conftest.$ac_ext <<_ACEOF
6886 /* confdefs.h.  */
6887 _ACEOF
6888 cat confdefs.h >>conftest.$ac_ext
6889 cat >>conftest.$ac_ext <<_ACEOF
6890 /* end confdefs.h.  */
6891 #include <stddef.h>
6892 int
6893 main ()
6894 {
6895 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
6896 test_array [0] = 0
6897
6898   ;
6899   return 0;
6900 }
6901 _ACEOF
6902 rm -f conftest.$ac_objext
6903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6904   (eval $ac_compile) 2>conftest.er1
6905   ac_status=$?
6906   grep -v '^ *+' conftest.er1 >conftest.err
6907   rm -f conftest.er1
6908   cat conftest.err >&5
6909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910   (exit $ac_status); } &&
6911          { ac_try='test -z "$ac_c_werror_flag"
6912                          || test ! -s conftest.err'
6913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6914   (eval $ac_try) 2>&5
6915   ac_status=$?
6916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917   (exit $ac_status); }; } &&
6918          { ac_try='test -s conftest.$ac_objext'
6919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6920   (eval $ac_try) 2>&5
6921   ac_status=$?
6922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923   (exit $ac_status); }; }; then
6924   ac_lo=$ac_mid; break
6925 else
6926   echo "$as_me: failed program was:" >&5
6927 sed 's/^/| /' conftest.$ac_ext >&5
6928
6929 ac_hi=`expr '(' $ac_mid ')' - 1`
6930                        if test $ac_mid -le $ac_hi; then
6931                          ac_lo= ac_hi=
6932                          break
6933                        fi
6934                        ac_mid=`expr 2 '*' $ac_mid`
6935 fi
6936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6937   done
6938 else
6939   echo "$as_me: failed program was:" >&5
6940 sed 's/^/| /' conftest.$ac_ext >&5
6941
6942 ac_lo= ac_hi=
6943 fi
6944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6945 fi
6946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6947 # Binary search between lo and hi bounds.
6948 while test "x$ac_lo" != "x$ac_hi"; do
6949   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6950   cat >conftest.$ac_ext <<_ACEOF
6951 /* confdefs.h.  */
6952 _ACEOF
6953 cat confdefs.h >>conftest.$ac_ext
6954 cat >>conftest.$ac_ext <<_ACEOF
6955 /* end confdefs.h.  */
6956 #include <stddef.h>
6957 int
6958 main ()
6959 {
6960 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
6961 test_array [0] = 0
6962
6963   ;
6964   return 0;
6965 }
6966 _ACEOF
6967 rm -f conftest.$ac_objext
6968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6969   (eval $ac_compile) 2>conftest.er1
6970   ac_status=$?
6971   grep -v '^ *+' conftest.er1 >conftest.err
6972   rm -f conftest.er1
6973   cat conftest.err >&5
6974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975   (exit $ac_status); } &&
6976          { ac_try='test -z "$ac_c_werror_flag"
6977                          || test ! -s conftest.err'
6978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6979   (eval $ac_try) 2>&5
6980   ac_status=$?
6981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982   (exit $ac_status); }; } &&
6983          { ac_try='test -s conftest.$ac_objext'
6984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6985   (eval $ac_try) 2>&5
6986   ac_status=$?
6987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988   (exit $ac_status); }; }; then
6989   ac_hi=$ac_mid
6990 else
6991   echo "$as_me: failed program was:" >&5
6992 sed 's/^/| /' conftest.$ac_ext >&5
6993
6994 ac_lo=`expr '(' $ac_mid ')' + 1`
6995 fi
6996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6997 done
6998 case $ac_lo in
6999 ?*) res_hi=$ac_lo;;
7000 '') result=? ;;
7001 esac
7002 else
7003   if test "$cross_compiling" = yes; then
7004   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7005 See \`config.log' for more details." >&5
7006 echo "$as_me: error: cannot run test program while cross compiling
7007 See \`config.log' for more details." >&2;}
7008    { (exit 1); exit 1; }; }
7009 else
7010   cat >conftest.$ac_ext <<_ACEOF
7011 /* confdefs.h.  */
7012 _ACEOF
7013 cat confdefs.h >>conftest.$ac_ext
7014 cat >>conftest.$ac_ext <<_ACEOF
7015 /* end confdefs.h.  */
7016 #include <stddef.h>
7017 long longval () { return ~(size_t)0 / 10; }
7018 unsigned long ulongval () { return ~(size_t)0 / 10; }
7019 #include <stdio.h>
7020 #include <stdlib.h>
7021 int
7022 main ()
7023 {
7024
7025   FILE *f = fopen ("conftest.val", "w");
7026   if (! f)
7027     exit (1);
7028   if ((~(size_t)0 / 10) < 0)
7029     {
7030       long i = longval ();
7031       if (i != (~(size_t)0 / 10))
7032         exit (1);
7033       fprintf (f, "%ld\n", i);
7034     }
7035   else
7036     {
7037       unsigned long i = ulongval ();
7038       if (i != (~(size_t)0 / 10))
7039         exit (1);
7040       fprintf (f, "%lu\n", i);
7041     }
7042   exit (ferror (f) || fclose (f) != 0);
7043
7044   ;
7045   return 0;
7046 }
7047 _ACEOF
7048 rm -f conftest$ac_exeext
7049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7050   (eval $ac_link) 2>&5
7051   ac_status=$?
7052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7055   (eval $ac_try) 2>&5
7056   ac_status=$?
7057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058   (exit $ac_status); }; }; then
7059   res_hi=`cat conftest.val`
7060 else
7061   echo "$as_me: program exited with status $ac_status" >&5
7062 echo "$as_me: failed program was:" >&5
7063 sed 's/^/| /' conftest.$ac_ext >&5
7064
7065 ( exit $ac_status )
7066 result=?
7067 fi
7068 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7069 fi
7070 fi
7071 rm -f conftest.val
7072     if test "$cross_compiling" = yes; then
7073   # Depending upon the size, compute the lo and hi bounds.
7074 cat >conftest.$ac_ext <<_ACEOF
7075 /* confdefs.h.  */
7076 _ACEOF
7077 cat confdefs.h >>conftest.$ac_ext
7078 cat >>conftest.$ac_ext <<_ACEOF
7079 /* end confdefs.h.  */
7080 #include <stddef.h>
7081 int
7082 main ()
7083 {
7084 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7085 test_array [0] = 0
7086
7087   ;
7088   return 0;
7089 }
7090 _ACEOF
7091 rm -f conftest.$ac_objext
7092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7093   (eval $ac_compile) 2>conftest.er1
7094   ac_status=$?
7095   grep -v '^ *+' conftest.er1 >conftest.err
7096   rm -f conftest.er1
7097   cat conftest.err >&5
7098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099   (exit $ac_status); } &&
7100          { ac_try='test -z "$ac_c_werror_flag"
7101                          || test ! -s conftest.err'
7102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7103   (eval $ac_try) 2>&5
7104   ac_status=$?
7105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106   (exit $ac_status); }; } &&
7107          { ac_try='test -s conftest.$ac_objext'
7108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7109   (eval $ac_try) 2>&5
7110   ac_status=$?
7111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112   (exit $ac_status); }; }; then
7113   ac_lo=0 ac_mid=0
7114   while :; do
7115     cat >conftest.$ac_ext <<_ACEOF
7116 /* confdefs.h.  */
7117 _ACEOF
7118 cat confdefs.h >>conftest.$ac_ext
7119 cat >>conftest.$ac_ext <<_ACEOF
7120 /* end confdefs.h.  */
7121 #include <stddef.h>
7122 int
7123 main ()
7124 {
7125 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7126 test_array [0] = 0
7127
7128   ;
7129   return 0;
7130 }
7131 _ACEOF
7132 rm -f conftest.$ac_objext
7133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7134   (eval $ac_compile) 2>conftest.er1
7135   ac_status=$?
7136   grep -v '^ *+' conftest.er1 >conftest.err
7137   rm -f conftest.er1
7138   cat conftest.err >&5
7139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140   (exit $ac_status); } &&
7141          { ac_try='test -z "$ac_c_werror_flag"
7142                          || test ! -s conftest.err'
7143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7144   (eval $ac_try) 2>&5
7145   ac_status=$?
7146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147   (exit $ac_status); }; } &&
7148          { ac_try='test -s conftest.$ac_objext'
7149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7150   (eval $ac_try) 2>&5
7151   ac_status=$?
7152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153   (exit $ac_status); }; }; then
7154   ac_hi=$ac_mid; break
7155 else
7156   echo "$as_me: failed program was:" >&5
7157 sed 's/^/| /' conftest.$ac_ext >&5
7158
7159 ac_lo=`expr $ac_mid + 1`
7160                     if test $ac_lo -le $ac_mid; then
7161                       ac_lo= ac_hi=
7162                       break
7163                     fi
7164                     ac_mid=`expr 2 '*' $ac_mid + 1`
7165 fi
7166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7167   done
7168 else
7169   echo "$as_me: failed program was:" >&5
7170 sed 's/^/| /' conftest.$ac_ext >&5
7171
7172 cat >conftest.$ac_ext <<_ACEOF
7173 /* confdefs.h.  */
7174 _ACEOF
7175 cat confdefs.h >>conftest.$ac_ext
7176 cat >>conftest.$ac_ext <<_ACEOF
7177 /* end confdefs.h.  */
7178 #include <stddef.h>
7179 int
7180 main ()
7181 {
7182 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
7183 test_array [0] = 0
7184
7185   ;
7186   return 0;
7187 }
7188 _ACEOF
7189 rm -f conftest.$ac_objext
7190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7191   (eval $ac_compile) 2>conftest.er1
7192   ac_status=$?
7193   grep -v '^ *+' conftest.er1 >conftest.err
7194   rm -f conftest.er1
7195   cat conftest.err >&5
7196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197   (exit $ac_status); } &&
7198          { ac_try='test -z "$ac_c_werror_flag"
7199                          || test ! -s conftest.err'
7200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7201   (eval $ac_try) 2>&5
7202   ac_status=$?
7203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204   (exit $ac_status); }; } &&
7205          { ac_try='test -s conftest.$ac_objext'
7206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7207   (eval $ac_try) 2>&5
7208   ac_status=$?
7209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210   (exit $ac_status); }; }; then
7211   ac_hi=-1 ac_mid=-1
7212   while :; do
7213     cat >conftest.$ac_ext <<_ACEOF
7214 /* confdefs.h.  */
7215 _ACEOF
7216 cat confdefs.h >>conftest.$ac_ext
7217 cat >>conftest.$ac_ext <<_ACEOF
7218 /* end confdefs.h.  */
7219 #include <stddef.h>
7220 int
7221 main ()
7222 {
7223 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
7224 test_array [0] = 0
7225
7226   ;
7227   return 0;
7228 }
7229 _ACEOF
7230 rm -f conftest.$ac_objext
7231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7232   (eval $ac_compile) 2>conftest.er1
7233   ac_status=$?
7234   grep -v '^ *+' conftest.er1 >conftest.err
7235   rm -f conftest.er1
7236   cat conftest.err >&5
7237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7238   (exit $ac_status); } &&
7239          { ac_try='test -z "$ac_c_werror_flag"
7240                          || test ! -s conftest.err'
7241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7242   (eval $ac_try) 2>&5
7243   ac_status=$?
7244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245   (exit $ac_status); }; } &&
7246          { ac_try='test -s conftest.$ac_objext'
7247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7248   (eval $ac_try) 2>&5
7249   ac_status=$?
7250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251   (exit $ac_status); }; }; then
7252   ac_lo=$ac_mid; break
7253 else
7254   echo "$as_me: failed program was:" >&5
7255 sed 's/^/| /' conftest.$ac_ext >&5
7256
7257 ac_hi=`expr '(' $ac_mid ')' - 1`
7258                        if test $ac_mid -le $ac_hi; then
7259                          ac_lo= ac_hi=
7260                          break
7261                        fi
7262                        ac_mid=`expr 2 '*' $ac_mid`
7263 fi
7264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7265   done
7266 else
7267   echo "$as_me: failed program was:" >&5
7268 sed 's/^/| /' conftest.$ac_ext >&5
7269
7270 ac_lo= ac_hi=
7271 fi
7272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7273 fi
7274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7275 # Binary search between lo and hi bounds.
7276 while test "x$ac_lo" != "x$ac_hi"; do
7277   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7278   cat >conftest.$ac_ext <<_ACEOF
7279 /* confdefs.h.  */
7280 _ACEOF
7281 cat confdefs.h >>conftest.$ac_ext
7282 cat >>conftest.$ac_ext <<_ACEOF
7283 /* end confdefs.h.  */
7284 #include <stddef.h>
7285 int
7286 main ()
7287 {
7288 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7289 test_array [0] = 0
7290
7291   ;
7292   return 0;
7293 }
7294 _ACEOF
7295 rm -f conftest.$ac_objext
7296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7297   (eval $ac_compile) 2>conftest.er1
7298   ac_status=$?
7299   grep -v '^ *+' conftest.er1 >conftest.err
7300   rm -f conftest.er1
7301   cat conftest.err >&5
7302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303   (exit $ac_status); } &&
7304          { ac_try='test -z "$ac_c_werror_flag"
7305                          || test ! -s conftest.err'
7306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7307   (eval $ac_try) 2>&5
7308   ac_status=$?
7309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310   (exit $ac_status); }; } &&
7311          { ac_try='test -s conftest.$ac_objext'
7312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7313   (eval $ac_try) 2>&5
7314   ac_status=$?
7315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316   (exit $ac_status); }; }; then
7317   ac_hi=$ac_mid
7318 else
7319   echo "$as_me: failed program was:" >&5
7320 sed 's/^/| /' conftest.$ac_ext >&5
7321
7322 ac_lo=`expr '(' $ac_mid ')' + 1`
7323 fi
7324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7325 done
7326 case $ac_lo in
7327 ?*) res_lo=$ac_lo;;
7328 '') result=? ;;
7329 esac
7330 else
7331   if test "$cross_compiling" = yes; then
7332   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7333 See \`config.log' for more details." >&5
7334 echo "$as_me: error: cannot run test program while cross compiling
7335 See \`config.log' for more details." >&2;}
7336    { (exit 1); exit 1; }; }
7337 else
7338   cat >conftest.$ac_ext <<_ACEOF
7339 /* confdefs.h.  */
7340 _ACEOF
7341 cat confdefs.h >>conftest.$ac_ext
7342 cat >>conftest.$ac_ext <<_ACEOF
7343 /* end confdefs.h.  */
7344 #include <stddef.h>
7345 long longval () { return ~(size_t)0 % 10; }
7346 unsigned long ulongval () { return ~(size_t)0 % 10; }
7347 #include <stdio.h>
7348 #include <stdlib.h>
7349 int
7350 main ()
7351 {
7352
7353   FILE *f = fopen ("conftest.val", "w");
7354   if (! f)
7355     exit (1);
7356   if ((~(size_t)0 % 10) < 0)
7357     {
7358       long i = longval ();
7359       if (i != (~(size_t)0 % 10))
7360         exit (1);
7361       fprintf (f, "%ld\n", i);
7362     }
7363   else
7364     {
7365       unsigned long i = ulongval ();
7366       if (i != (~(size_t)0 % 10))
7367         exit (1);
7368       fprintf (f, "%lu\n", i);
7369     }
7370   exit (ferror (f) || fclose (f) != 0);
7371
7372   ;
7373   return 0;
7374 }
7375 _ACEOF
7376 rm -f conftest$ac_exeext
7377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7378   (eval $ac_link) 2>&5
7379   ac_status=$?
7380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7383   (eval $ac_try) 2>&5
7384   ac_status=$?
7385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386   (exit $ac_status); }; }; then
7387   res_lo=`cat conftest.val`
7388 else
7389   echo "$as_me: program exited with status $ac_status" >&5
7390 echo "$as_me: failed program was:" >&5
7391 sed 's/^/| /' conftest.$ac_ext >&5
7392
7393 ( exit $ac_status )
7394 result=?
7395 fi
7396 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7397 fi
7398 fi
7399 rm -f conftest.val
7400     if test "$cross_compiling" = yes; then
7401   # Depending upon the size, compute the lo and hi bounds.
7402 cat >conftest.$ac_ext <<_ACEOF
7403 /* confdefs.h.  */
7404 _ACEOF
7405 cat confdefs.h >>conftest.$ac_ext
7406 cat >>conftest.$ac_ext <<_ACEOF
7407 /* end confdefs.h.  */
7408 #include <stddef.h>
7409 int
7410 main ()
7411 {
7412 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
7413 test_array [0] = 0
7414
7415   ;
7416   return 0;
7417 }
7418 _ACEOF
7419 rm -f conftest.$ac_objext
7420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7421   (eval $ac_compile) 2>conftest.er1
7422   ac_status=$?
7423   grep -v '^ *+' conftest.er1 >conftest.err
7424   rm -f conftest.er1
7425   cat conftest.err >&5
7426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427   (exit $ac_status); } &&
7428          { ac_try='test -z "$ac_c_werror_flag"
7429                          || test ! -s conftest.err'
7430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7431   (eval $ac_try) 2>&5
7432   ac_status=$?
7433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434   (exit $ac_status); }; } &&
7435          { ac_try='test -s conftest.$ac_objext'
7436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7437   (eval $ac_try) 2>&5
7438   ac_status=$?
7439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440   (exit $ac_status); }; }; then
7441   ac_lo=0 ac_mid=0
7442   while :; do
7443     cat >conftest.$ac_ext <<_ACEOF
7444 /* confdefs.h.  */
7445 _ACEOF
7446 cat confdefs.h >>conftest.$ac_ext
7447 cat >>conftest.$ac_ext <<_ACEOF
7448 /* end confdefs.h.  */
7449 #include <stddef.h>
7450 int
7451 main ()
7452 {
7453 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7454 test_array [0] = 0
7455
7456   ;
7457   return 0;
7458 }
7459 _ACEOF
7460 rm -f conftest.$ac_objext
7461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7462   (eval $ac_compile) 2>conftest.er1
7463   ac_status=$?
7464   grep -v '^ *+' conftest.er1 >conftest.err
7465   rm -f conftest.er1
7466   cat conftest.err >&5
7467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468   (exit $ac_status); } &&
7469          { ac_try='test -z "$ac_c_werror_flag"
7470                          || test ! -s conftest.err'
7471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7472   (eval $ac_try) 2>&5
7473   ac_status=$?
7474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475   (exit $ac_status); }; } &&
7476          { ac_try='test -s conftest.$ac_objext'
7477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7478   (eval $ac_try) 2>&5
7479   ac_status=$?
7480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481   (exit $ac_status); }; }; then
7482   ac_hi=$ac_mid; break
7483 else
7484   echo "$as_me: failed program was:" >&5
7485 sed 's/^/| /' conftest.$ac_ext >&5
7486
7487 ac_lo=`expr $ac_mid + 1`
7488                     if test $ac_lo -le $ac_mid; then
7489                       ac_lo= ac_hi=
7490                       break
7491                     fi
7492                     ac_mid=`expr 2 '*' $ac_mid + 1`
7493 fi
7494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7495   done
7496 else
7497   echo "$as_me: failed program was:" >&5
7498 sed 's/^/| /' conftest.$ac_ext >&5
7499
7500 cat >conftest.$ac_ext <<_ACEOF
7501 /* confdefs.h.  */
7502 _ACEOF
7503 cat confdefs.h >>conftest.$ac_ext
7504 cat >>conftest.$ac_ext <<_ACEOF
7505 /* end confdefs.h.  */
7506 #include <stddef.h>
7507 int
7508 main ()
7509 {
7510 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
7511 test_array [0] = 0
7512
7513   ;
7514   return 0;
7515 }
7516 _ACEOF
7517 rm -f conftest.$ac_objext
7518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7519   (eval $ac_compile) 2>conftest.er1
7520   ac_status=$?
7521   grep -v '^ *+' conftest.er1 >conftest.err
7522   rm -f conftest.er1
7523   cat conftest.err >&5
7524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525   (exit $ac_status); } &&
7526          { ac_try='test -z "$ac_c_werror_flag"
7527                          || test ! -s conftest.err'
7528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7529   (eval $ac_try) 2>&5
7530   ac_status=$?
7531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532   (exit $ac_status); }; } &&
7533          { ac_try='test -s conftest.$ac_objext'
7534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7535   (eval $ac_try) 2>&5
7536   ac_status=$?
7537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538   (exit $ac_status); }; }; then
7539   ac_hi=-1 ac_mid=-1
7540   while :; do
7541     cat >conftest.$ac_ext <<_ACEOF
7542 /* confdefs.h.  */
7543 _ACEOF
7544 cat confdefs.h >>conftest.$ac_ext
7545 cat >>conftest.$ac_ext <<_ACEOF
7546 /* end confdefs.h.  */
7547 #include <stddef.h>
7548 int
7549 main ()
7550 {
7551 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
7552 test_array [0] = 0
7553
7554   ;
7555   return 0;
7556 }
7557 _ACEOF
7558 rm -f conftest.$ac_objext
7559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7560   (eval $ac_compile) 2>conftest.er1
7561   ac_status=$?
7562   grep -v '^ *+' conftest.er1 >conftest.err
7563   rm -f conftest.er1
7564   cat conftest.err >&5
7565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566   (exit $ac_status); } &&
7567          { ac_try='test -z "$ac_c_werror_flag"
7568                          || test ! -s conftest.err'
7569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7570   (eval $ac_try) 2>&5
7571   ac_status=$?
7572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573   (exit $ac_status); }; } &&
7574          { ac_try='test -s conftest.$ac_objext'
7575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7576   (eval $ac_try) 2>&5
7577   ac_status=$?
7578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579   (exit $ac_status); }; }; then
7580   ac_lo=$ac_mid; break
7581 else
7582   echo "$as_me: failed program was:" >&5
7583 sed 's/^/| /' conftest.$ac_ext >&5
7584
7585 ac_hi=`expr '(' $ac_mid ')' - 1`
7586                        if test $ac_mid -le $ac_hi; then
7587                          ac_lo= ac_hi=
7588                          break
7589                        fi
7590                        ac_mid=`expr 2 '*' $ac_mid`
7591 fi
7592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7593   done
7594 else
7595   echo "$as_me: failed program was:" >&5
7596 sed 's/^/| /' conftest.$ac_ext >&5
7597
7598 ac_lo= ac_hi=
7599 fi
7600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7601 fi
7602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7603 # Binary search between lo and hi bounds.
7604 while test "x$ac_lo" != "x$ac_hi"; do
7605   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7606   cat >conftest.$ac_ext <<_ACEOF
7607 /* confdefs.h.  */
7608 _ACEOF
7609 cat confdefs.h >>conftest.$ac_ext
7610 cat >>conftest.$ac_ext <<_ACEOF
7611 /* end confdefs.h.  */
7612 #include <stddef.h>
7613 int
7614 main ()
7615 {
7616 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7617 test_array [0] = 0
7618
7619   ;
7620   return 0;
7621 }
7622 _ACEOF
7623 rm -f conftest.$ac_objext
7624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7625   (eval $ac_compile) 2>conftest.er1
7626   ac_status=$?
7627   grep -v '^ *+' conftest.er1 >conftest.err
7628   rm -f conftest.er1
7629   cat conftest.err >&5
7630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631   (exit $ac_status); } &&
7632          { ac_try='test -z "$ac_c_werror_flag"
7633                          || test ! -s conftest.err'
7634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7635   (eval $ac_try) 2>&5
7636   ac_status=$?
7637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638   (exit $ac_status); }; } &&
7639          { ac_try='test -s conftest.$ac_objext'
7640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7641   (eval $ac_try) 2>&5
7642   ac_status=$?
7643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644   (exit $ac_status); }; }; then
7645   ac_hi=$ac_mid
7646 else
7647   echo "$as_me: failed program was:" >&5
7648 sed 's/^/| /' conftest.$ac_ext >&5
7649
7650 ac_lo=`expr '(' $ac_mid ')' + 1`
7651 fi
7652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7653 done
7654 case $ac_lo in
7655 ?*) fits_in_uint=$ac_lo;;
7656 '') result=? ;;
7657 esac
7658 else
7659   if test "$cross_compiling" = yes; then
7660   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7661 See \`config.log' for more details." >&5
7662 echo "$as_me: error: cannot run test program while cross compiling
7663 See \`config.log' for more details." >&2;}
7664    { (exit 1); exit 1; }; }
7665 else
7666   cat >conftest.$ac_ext <<_ACEOF
7667 /* confdefs.h.  */
7668 _ACEOF
7669 cat confdefs.h >>conftest.$ac_ext
7670 cat >>conftest.$ac_ext <<_ACEOF
7671 /* end confdefs.h.  */
7672 #include <stddef.h>
7673 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
7674 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
7675 #include <stdio.h>
7676 #include <stdlib.h>
7677 int
7678 main ()
7679 {
7680
7681   FILE *f = fopen ("conftest.val", "w");
7682   if (! f)
7683     exit (1);
7684   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
7685     {
7686       long i = longval ();
7687       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7688         exit (1);
7689       fprintf (f, "%ld\n", i);
7690     }
7691   else
7692     {
7693       unsigned long i = ulongval ();
7694       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7695         exit (1);
7696       fprintf (f, "%lu\n", i);
7697     }
7698   exit (ferror (f) || fclose (f) != 0);
7699
7700   ;
7701   return 0;
7702 }
7703 _ACEOF
7704 rm -f conftest$ac_exeext
7705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7706   (eval $ac_link) 2>&5
7707   ac_status=$?
7708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7711   (eval $ac_try) 2>&5
7712   ac_status=$?
7713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714   (exit $ac_status); }; }; then
7715   fits_in_uint=`cat conftest.val`
7716 else
7717   echo "$as_me: program exited with status $ac_status" >&5
7718 echo "$as_me: failed program was:" >&5
7719 sed 's/^/| /' conftest.$ac_ext >&5
7720
7721 ( exit $ac_status )
7722 result=?
7723 fi
7724 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7725 fi
7726 fi
7727 rm -f conftest.val
7728     if test "$fits_in_uint" = 1; then
7729                   cat >conftest.$ac_ext <<_ACEOF
7730 /* confdefs.h.  */
7731 _ACEOF
7732 cat confdefs.h >>conftest.$ac_ext
7733 cat >>conftest.$ac_ext <<_ACEOF
7734 /* end confdefs.h.  */
7735 #include <stddef.h>
7736         extern size_t foo;
7737         extern unsigned long foo;
7738
7739 int
7740 main ()
7741 {
7742
7743   ;
7744   return 0;
7745 }
7746 _ACEOF
7747 rm -f conftest.$ac_objext
7748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7749   (eval $ac_compile) 2>conftest.er1
7750   ac_status=$?
7751   grep -v '^ *+' conftest.er1 >conftest.err
7752   rm -f conftest.er1
7753   cat conftest.err >&5
7754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755   (exit $ac_status); } &&
7756          { ac_try='test -z "$ac_c_werror_flag"
7757                          || test ! -s conftest.err'
7758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7759   (eval $ac_try) 2>&5
7760   ac_status=$?
7761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762   (exit $ac_status); }; } &&
7763          { ac_try='test -s conftest.$ac_objext'
7764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7765   (eval $ac_try) 2>&5
7766   ac_status=$?
7767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768   (exit $ac_status); }; }; then
7769   fits_in_uint=0
7770 else
7771   echo "$as_me: failed program was:" >&5
7772 sed 's/^/| /' conftest.$ac_ext >&5
7773
7774 fi
7775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7776     fi
7777     if test -z "$result"; then
7778       if test "$fits_in_uint" = 1; then
7779         result="$res_hi$res_lo"U
7780       else
7781         result="$res_hi$res_lo"UL
7782       fi
7783     else
7784             result='~(size_t)0'
7785     fi
7786   fi
7787   echo "$as_me:$LINENO: result: $result" >&5
7788 echo "${ECHO_T}$result" >&6
7789   if test "$result" != yes; then
7790
7791 cat >>confdefs.h <<_ACEOF
7792 #define SIZE_MAX $result
7793 _ACEOF
7794
7795   fi
7796
7797
7798
7799
7800 for ac_header in stdint.h
7801 do
7802 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7803 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7804   echo "$as_me:$LINENO: checking for $ac_header" >&5
7805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7807   echo $ECHO_N "(cached) $ECHO_C" >&6
7808 fi
7809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7810 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7811 else
7812   # Is the header compilable?
7813 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7814 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7815 cat >conftest.$ac_ext <<_ACEOF
7816 /* confdefs.h.  */
7817 _ACEOF
7818 cat confdefs.h >>conftest.$ac_ext
7819 cat >>conftest.$ac_ext <<_ACEOF
7820 /* end confdefs.h.  */
7821 $ac_includes_default
7822 #include <$ac_header>
7823 _ACEOF
7824 rm -f conftest.$ac_objext
7825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7826   (eval $ac_compile) 2>conftest.er1
7827   ac_status=$?
7828   grep -v '^ *+' conftest.er1 >conftest.err
7829   rm -f conftest.er1
7830   cat conftest.err >&5
7831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832   (exit $ac_status); } &&
7833          { ac_try='test -z "$ac_c_werror_flag"
7834                          || test ! -s conftest.err'
7835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7836   (eval $ac_try) 2>&5
7837   ac_status=$?
7838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839   (exit $ac_status); }; } &&
7840          { ac_try='test -s conftest.$ac_objext'
7841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7842   (eval $ac_try) 2>&5
7843   ac_status=$?
7844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845   (exit $ac_status); }; }; then
7846   ac_header_compiler=yes
7847 else
7848   echo "$as_me: failed program was:" >&5
7849 sed 's/^/| /' conftest.$ac_ext >&5
7850
7851 ac_header_compiler=no
7852 fi
7853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7854 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7855 echo "${ECHO_T}$ac_header_compiler" >&6
7856
7857 # Is the header present?
7858 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7859 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7860 cat >conftest.$ac_ext <<_ACEOF
7861 /* confdefs.h.  */
7862 _ACEOF
7863 cat confdefs.h >>conftest.$ac_ext
7864 cat >>conftest.$ac_ext <<_ACEOF
7865 /* end confdefs.h.  */
7866 #include <$ac_header>
7867 _ACEOF
7868 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7869   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7870   ac_status=$?
7871   grep -v '^ *+' conftest.er1 >conftest.err
7872   rm -f conftest.er1
7873   cat conftest.err >&5
7874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875   (exit $ac_status); } >/dev/null; then
7876   if test -s conftest.err; then
7877     ac_cpp_err=$ac_c_preproc_warn_flag
7878     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7879   else
7880     ac_cpp_err=
7881   fi
7882 else
7883   ac_cpp_err=yes
7884 fi
7885 if test -z "$ac_cpp_err"; then
7886   ac_header_preproc=yes
7887 else
7888   echo "$as_me: failed program was:" >&5
7889 sed 's/^/| /' conftest.$ac_ext >&5
7890
7891   ac_header_preproc=no
7892 fi
7893 rm -f conftest.err conftest.$ac_ext
7894 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7895 echo "${ECHO_T}$ac_header_preproc" >&6
7896
7897 # So?  What about this header?
7898 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7899   yes:no: )
7900     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7901 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7902     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7903 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7904     ac_header_preproc=yes
7905     ;;
7906   no:yes:* )
7907     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7908 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7909     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7910 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7911     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7912 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7913     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7914 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7915     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7916 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7917     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7918 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7919     (
7920       cat <<\_ASBOX
7921 ## ------------------------------------------ ##
7922 ## Report this to the AC_PACKAGE_NAME lists.  ##
7923 ## ------------------------------------------ ##
7924 _ASBOX
7925     ) |
7926       sed "s/^/$as_me: WARNING:     /" >&2
7927     ;;
7928 esac
7929 echo "$as_me:$LINENO: checking for $ac_header" >&5
7930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7932   echo $ECHO_N "(cached) $ECHO_C" >&6
7933 else
7934   eval "$as_ac_Header=\$ac_header_preproc"
7935 fi
7936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7937 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7938
7939 fi
7940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7941   cat >>confdefs.h <<_ACEOF
7942 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7943 _ACEOF
7944
7945 fi
7946
7947 done
7948
7949
7950
7951       if test "X$prefix" = "XNONE"; then
7952     acl_final_prefix="$ac_default_prefix"
7953   else
7954     acl_final_prefix="$prefix"
7955   fi
7956   if test "X$exec_prefix" = "XNONE"; then
7957     acl_final_exec_prefix='${prefix}'
7958   else
7959     acl_final_exec_prefix="$exec_prefix"
7960   fi
7961   acl_save_prefix="$prefix"
7962   prefix="$acl_final_prefix"
7963   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7964   prefix="$acl_save_prefix"
7965
7966
7967 # Check whether --with-gnu-ld or --without-gnu-ld was given.
7968 if test "${with_gnu_ld+set}" = set; then
7969   withval="$with_gnu_ld"
7970   test "$withval" = no || with_gnu_ld=yes
7971 else
7972   with_gnu_ld=no
7973 fi;
7974 # Prepare PATH_SEPARATOR.
7975 # The user is always right.
7976 if test "${PATH_SEPARATOR+set}" != set; then
7977   echo "#! /bin/sh" >conf$$.sh
7978   echo  "exit 0"   >>conf$$.sh
7979   chmod +x conf$$.sh
7980   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7981     PATH_SEPARATOR=';'
7982   else
7983     PATH_SEPARATOR=:
7984   fi
7985   rm -f conf$$.sh
7986 fi
7987 ac_prog=ld
7988 if test "$GCC" = yes; then
7989   # Check if gcc -print-prog-name=ld gives a path.
7990   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
7991 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
7992   case $host in
7993   *-*-mingw*)
7994     # gcc leaves a trailing carriage return which upsets mingw
7995     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7996   *)
7997     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7998   esac
7999   case $ac_prog in
8000     # Accept absolute paths.
8001     [\\/]* | [A-Za-z]:[\\/]*)
8002       re_direlt='/[^/][^/]*/\.\./'
8003       # Canonicalize the path of ld
8004       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8005       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8006         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8007       done
8008       test -z "$LD" && LD="$ac_prog"
8009       ;;
8010   "")
8011     # If it fails, then pretend we aren't using GCC.
8012     ac_prog=ld
8013     ;;
8014   *)
8015     # If it is relative, then search for the first ld in PATH.
8016     with_gnu_ld=unknown
8017     ;;
8018   esac
8019 elif test "$with_gnu_ld" = yes; then
8020   echo "$as_me:$LINENO: checking for GNU ld" >&5
8021 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
8022 else
8023   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8024 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
8025 fi
8026 if test "${acl_cv_path_LD+set}" = set; then
8027   echo $ECHO_N "(cached) $ECHO_C" >&6
8028 else
8029   if test -z "$LD"; then
8030   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8031   for ac_dir in $PATH; do
8032     test -z "$ac_dir" && ac_dir=.
8033     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8034       acl_cv_path_LD="$ac_dir/$ac_prog"
8035       # Check to see if the program is GNU ld.  I'd rather use --version,
8036       # but apparently some GNU ld's only accept -v.
8037       # Break only if it was the GNU/non-GNU ld that we prefer.
8038       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8039       *GNU* | *'with BFD'*)
8040         test "$with_gnu_ld" != no && break ;;
8041       *)
8042         test "$with_gnu_ld" != yes && break ;;
8043       esac
8044     fi
8045   done
8046   IFS="$ac_save_ifs"
8047 else
8048   acl_cv_path_LD="$LD" # Let the user override the test with a path.
8049 fi
8050 fi
8051
8052 LD="$acl_cv_path_LD"
8053 if test -n "$LD"; then
8054   echo "$as_me:$LINENO: result: $LD" >&5
8055 echo "${ECHO_T}$LD" >&6
8056 else
8057   echo "$as_me:$LINENO: result: no" >&5
8058 echo "${ECHO_T}no" >&6
8059 fi
8060 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8061 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8062    { (exit 1); exit 1; }; }
8063 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8064 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
8065 if test "${acl_cv_prog_gnu_ld+set}" = set; then
8066   echo $ECHO_N "(cached) $ECHO_C" >&6
8067 else
8068   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8069 case `$LD -v 2>&1 </dev/null` in
8070 *GNU* | *'with BFD'*)
8071   acl_cv_prog_gnu_ld=yes ;;
8072 *)
8073   acl_cv_prog_gnu_ld=no ;;
8074 esac
8075 fi
8076 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8077 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
8078 with_gnu_ld=$acl_cv_prog_gnu_ld
8079
8080
8081
8082                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8083 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
8084 if test "${acl_cv_rpath+set}" = set; then
8085   echo $ECHO_N "(cached) $ECHO_C" >&6
8086 else
8087
8088     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8089     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8090     . ./conftest.sh
8091     rm -f ./conftest.sh
8092     acl_cv_rpath=done
8093
8094 fi
8095 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8096 echo "${ECHO_T}$acl_cv_rpath" >&6
8097   wl="$acl_cv_wl"
8098   libext="$acl_cv_libext"
8099   shlibext="$acl_cv_shlibext"
8100   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8101   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8102   hardcode_direct="$acl_cv_hardcode_direct"
8103   hardcode_minus_L="$acl_cv_hardcode_minus_L"
8104     # Check whether --enable-rpath or --disable-rpath was given.
8105 if test "${enable_rpath+set}" = set; then
8106   enableval="$enable_rpath"
8107   :
8108 else
8109   enable_rpath=yes
8110 fi;
8111
8112
8113
8114
8115
8116
8117
8118     use_additional=yes
8119
8120   acl_save_prefix="$prefix"
8121   prefix="$acl_final_prefix"
8122   acl_save_exec_prefix="$exec_prefix"
8123   exec_prefix="$acl_final_exec_prefix"
8124
8125     eval additional_includedir=\"$includedir\"
8126     eval additional_libdir=\"$libdir\"
8127
8128   exec_prefix="$acl_save_exec_prefix"
8129   prefix="$acl_save_prefix"
8130
8131
8132 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
8133 if test "${with_libiconv_prefix+set}" = set; then
8134   withval="$with_libiconv_prefix"
8135
8136     if test "X$withval" = "Xno"; then
8137       use_additional=no
8138     else
8139       if test "X$withval" = "X"; then
8140
8141   acl_save_prefix="$prefix"
8142   prefix="$acl_final_prefix"
8143   acl_save_exec_prefix="$exec_prefix"
8144   exec_prefix="$acl_final_exec_prefix"
8145
8146           eval additional_includedir=\"$includedir\"
8147           eval additional_libdir=\"$libdir\"
8148
8149   exec_prefix="$acl_save_exec_prefix"
8150   prefix="$acl_save_prefix"
8151
8152       else
8153         additional_includedir="$withval/include"
8154         additional_libdir="$withval/lib"
8155       fi
8156     fi
8157
8158 fi;
8159       LIBICONV=
8160   LTLIBICONV=
8161   INCICONV=
8162   rpathdirs=
8163   ltrpathdirs=
8164   names_already_handled=
8165   names_next_round='iconv '
8166   while test -n "$names_next_round"; do
8167     names_this_round="$names_next_round"
8168     names_next_round=
8169     for name in $names_this_round; do
8170       already_handled=
8171       for n in $names_already_handled; do
8172         if test "$n" = "$name"; then
8173           already_handled=yes
8174           break
8175         fi
8176       done
8177       if test -z "$already_handled"; then
8178         names_already_handled="$names_already_handled $name"
8179                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8180         eval value=\"\$HAVE_LIB$uppername\"
8181         if test -n "$value"; then
8182           if test "$value" = yes; then
8183             eval value=\"\$LIB$uppername\"
8184             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8185             eval value=\"\$LTLIB$uppername\"
8186             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8187           else
8188                                     :
8189           fi
8190         else
8191                               found_dir=
8192           found_la=
8193           found_so=
8194           found_a=
8195           if test $use_additional = yes; then
8196             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8197               found_dir="$additional_libdir"
8198               found_so="$additional_libdir/lib$name.$shlibext"
8199               if test -f "$additional_libdir/lib$name.la"; then
8200                 found_la="$additional_libdir/lib$name.la"
8201               fi
8202             else
8203               if test -f "$additional_libdir/lib$name.$libext"; then
8204                 found_dir="$additional_libdir"
8205                 found_a="$additional_libdir/lib$name.$libext"
8206                 if test -f "$additional_libdir/lib$name.la"; then
8207                   found_la="$additional_libdir/lib$name.la"
8208                 fi
8209               fi
8210             fi
8211           fi
8212           if test "X$found_dir" = "X"; then
8213             for x in $LDFLAGS $LTLIBICONV; do
8214
8215   acl_save_prefix="$prefix"
8216   prefix="$acl_final_prefix"
8217   acl_save_exec_prefix="$exec_prefix"
8218   exec_prefix="$acl_final_exec_prefix"
8219   eval x=\"$x\"
8220   exec_prefix="$acl_save_exec_prefix"
8221   prefix="$acl_save_prefix"
8222
8223               case "$x" in
8224                 -L*)
8225                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8226                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8227                     found_dir="$dir"
8228                     found_so="$dir/lib$name.$shlibext"
8229                     if test -f "$dir/lib$name.la"; then
8230                       found_la="$dir/lib$name.la"
8231                     fi
8232                   else
8233                     if test -f "$dir/lib$name.$libext"; then
8234                       found_dir="$dir"
8235                       found_a="$dir/lib$name.$libext"
8236                       if test -f "$dir/lib$name.la"; then
8237                         found_la="$dir/lib$name.la"
8238                       fi
8239                     fi
8240                   fi
8241                   ;;
8242               esac
8243               if test "X$found_dir" != "X"; then
8244                 break
8245               fi
8246             done
8247           fi
8248           if test "X$found_dir" != "X"; then
8249                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8250             if test "X$found_so" != "X"; then
8251                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8252                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8253               else
8254                                                                                 haveit=
8255                 for x in $ltrpathdirs; do
8256                   if test "X$x" = "X$found_dir"; then
8257                     haveit=yes
8258                     break
8259                   fi
8260                 done
8261                 if test -z "$haveit"; then
8262                   ltrpathdirs="$ltrpathdirs $found_dir"
8263                 fi
8264                                 if test "$hardcode_direct" = yes; then
8265                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8266                 else
8267                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8268                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8269                                                             haveit=
8270                     for x in $rpathdirs; do
8271                       if test "X$x" = "X$found_dir"; then
8272                         haveit=yes
8273                         break
8274                       fi
8275                     done
8276                     if test -z "$haveit"; then
8277                       rpathdirs="$rpathdirs $found_dir"
8278                     fi
8279                   else
8280                                                                                 haveit=
8281                     for x in $LDFLAGS $LIBICONV; do
8282
8283   acl_save_prefix="$prefix"
8284   prefix="$acl_final_prefix"
8285   acl_save_exec_prefix="$exec_prefix"
8286   exec_prefix="$acl_final_exec_prefix"
8287   eval x=\"$x\"
8288   exec_prefix="$acl_save_exec_prefix"
8289   prefix="$acl_save_prefix"
8290
8291                       if test "X$x" = "X-L$found_dir"; then
8292                         haveit=yes
8293                         break
8294                       fi
8295                     done
8296                     if test -z "$haveit"; then
8297                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8298                     fi
8299                     if test "$hardcode_minus_L" != no; then
8300                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8301                     else
8302                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8303                     fi
8304                   fi
8305                 fi
8306               fi
8307             else
8308               if test "X$found_a" != "X"; then
8309                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8310               else
8311                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8312               fi
8313             fi
8314                         additional_includedir=
8315             case "$found_dir" in
8316               */lib | */lib/)
8317                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8318                 additional_includedir="$basedir/include"
8319                 ;;
8320             esac
8321             if test "X$additional_includedir" != "X"; then
8322                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
8323                 haveit=
8324                 if test "X$additional_includedir" = "X/usr/local/include"; then
8325                   if test -n "$GCC"; then
8326                     case $host_os in
8327                       linux*) haveit=yes;;
8328                     esac
8329                   fi
8330                 fi
8331                 if test -z "$haveit"; then
8332                   for x in $CPPFLAGS $INCICONV; do
8333
8334   acl_save_prefix="$prefix"
8335   prefix="$acl_final_prefix"
8336   acl_save_exec_prefix="$exec_prefix"
8337   exec_prefix="$acl_final_exec_prefix"
8338   eval x=\"$x\"
8339   exec_prefix="$acl_save_exec_prefix"
8340   prefix="$acl_save_prefix"
8341
8342                     if test "X$x" = "X-I$additional_includedir"; then
8343                       haveit=yes
8344                       break
8345                     fi
8346                   done
8347                   if test -z "$haveit"; then
8348                     if test -d "$additional_includedir"; then
8349                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8350                     fi
8351                   fi
8352                 fi
8353               fi
8354             fi
8355                         if test -n "$found_la"; then
8356                                                         save_libdir="$libdir"
8357               case "$found_la" in
8358                 */* | *\\*) . "$found_la" ;;
8359                 *) . "./$found_la" ;;
8360               esac
8361               libdir="$save_libdir"
8362                             for dep in $dependency_libs; do
8363                 case "$dep" in
8364                   -L*)
8365                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8366                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
8367                       haveit=
8368                       if test "X$additional_libdir" = "X/usr/local/lib"; then
8369                         if test -n "$GCC"; then
8370                           case $host_os in
8371                             linux*) haveit=yes;;
8372                           esac
8373                         fi
8374                       fi
8375                       if test -z "$haveit"; then
8376                         haveit=
8377                         for x in $LDFLAGS $LIBICONV; do
8378
8379   acl_save_prefix="$prefix"
8380   prefix="$acl_final_prefix"
8381   acl_save_exec_prefix="$exec_prefix"
8382   exec_prefix="$acl_final_exec_prefix"
8383   eval x=\"$x\"
8384   exec_prefix="$acl_save_exec_prefix"
8385   prefix="$acl_save_prefix"
8386
8387                           if test "X$x" = "X-L$additional_libdir"; then
8388                             haveit=yes
8389                             break
8390                           fi
8391                         done
8392                         if test -z "$haveit"; then
8393                           if test -d "$additional_libdir"; then
8394                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8395                           fi
8396                         fi
8397                         haveit=
8398                         for x in $LDFLAGS $LTLIBICONV; do
8399
8400   acl_save_prefix="$prefix"
8401   prefix="$acl_final_prefix"
8402   acl_save_exec_prefix="$exec_prefix"
8403   exec_prefix="$acl_final_exec_prefix"
8404   eval x=\"$x\"
8405   exec_prefix="$acl_save_exec_prefix"
8406   prefix="$acl_save_prefix"
8407
8408                           if test "X$x" = "X-L$additional_libdir"; then
8409                             haveit=yes
8410                             break
8411                           fi
8412                         done
8413                         if test -z "$haveit"; then
8414                           if test -d "$additional_libdir"; then
8415                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8416                           fi
8417                         fi
8418                       fi
8419                     fi
8420                     ;;
8421                   -R*)
8422                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8423                     if test "$enable_rpath" != no; then
8424                                                                   haveit=
8425                       for x in $rpathdirs; do
8426                         if test "X$x" = "X$dir"; then
8427                           haveit=yes
8428                           break
8429                         fi
8430                       done
8431                       if test -z "$haveit"; then
8432                         rpathdirs="$rpathdirs $dir"
8433                       fi
8434                                                                   haveit=
8435                       for x in $ltrpathdirs; do
8436                         if test "X$x" = "X$dir"; then
8437                           haveit=yes
8438                           break
8439                         fi
8440                       done
8441                       if test -z "$haveit"; then
8442                         ltrpathdirs="$ltrpathdirs $dir"
8443                       fi
8444                     fi
8445                     ;;
8446                   -l*)
8447                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8448                     ;;
8449                   *.la)
8450                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8451                     ;;
8452                   *)
8453                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8454                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8455                     ;;
8456                 esac
8457               done
8458             fi
8459           else
8460                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8461             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8462           fi
8463         fi
8464       fi
8465     done
8466   done
8467   if test "X$rpathdirs" != "X"; then
8468     if test -n "$hardcode_libdir_separator"; then
8469                         alldirs=
8470       for found_dir in $rpathdirs; do
8471         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8472       done
8473             acl_save_libdir="$libdir"
8474       libdir="$alldirs"
8475       eval flag=\"$hardcode_libdir_flag_spec\"
8476       libdir="$acl_save_libdir"
8477       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8478     else
8479             for found_dir in $rpathdirs; do
8480         acl_save_libdir="$libdir"
8481         libdir="$found_dir"
8482         eval flag=\"$hardcode_libdir_flag_spec\"
8483         libdir="$acl_save_libdir"
8484         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8485       done
8486     fi
8487   fi
8488   if test "X$ltrpathdirs" != "X"; then
8489             for found_dir in $ltrpathdirs; do
8490       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8491     done
8492   fi
8493
8494
8495
8496
8497
8498
8499
8500
8501   echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8502 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
8503 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8504   echo $ECHO_N "(cached) $ECHO_C" >&6
8505 else
8506   cat >conftest.$ac_ext <<_ACEOF
8507 /* confdefs.h.  */
8508 _ACEOF
8509 cat confdefs.h >>conftest.$ac_ext
8510 cat >>conftest.$ac_ext <<_ACEOF
8511 /* end confdefs.h.  */
8512 $ac_includes_default
8513 int
8514 main ()
8515 {
8516 if ((ptrdiff_t *) 0)
8517   return 0;
8518 if (sizeof (ptrdiff_t))
8519   return 0;
8520   ;
8521   return 0;
8522 }
8523 _ACEOF
8524 rm -f conftest.$ac_objext
8525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8526   (eval $ac_compile) 2>conftest.er1
8527   ac_status=$?
8528   grep -v '^ *+' conftest.er1 >conftest.err
8529   rm -f conftest.er1
8530   cat conftest.err >&5
8531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532   (exit $ac_status); } &&
8533          { ac_try='test -z "$ac_c_werror_flag"
8534                          || test ! -s conftest.err'
8535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8536   (eval $ac_try) 2>&5
8537   ac_status=$?
8538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539   (exit $ac_status); }; } &&
8540          { ac_try='test -s conftest.$ac_objext'
8541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8542   (eval $ac_try) 2>&5
8543   ac_status=$?
8544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545   (exit $ac_status); }; }; then
8546   ac_cv_type_ptrdiff_t=yes
8547 else
8548   echo "$as_me: failed program was:" >&5
8549 sed 's/^/| /' conftest.$ac_ext >&5
8550
8551 ac_cv_type_ptrdiff_t=no
8552 fi
8553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8554 fi
8555 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
8556 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
8557 if test $ac_cv_type_ptrdiff_t = yes; then
8558   :
8559 else
8560
8561 cat >>confdefs.h <<\_ACEOF
8562 #define ptrdiff_t long
8563 _ACEOF
8564
8565
8566 fi
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8579 stdlib.h string.h unistd.h sys/param.h
8580 do
8581 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8582 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8583   echo "$as_me:$LINENO: checking for $ac_header" >&5
8584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8586   echo $ECHO_N "(cached) $ECHO_C" >&6
8587 fi
8588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8590 else
8591   # Is the header compilable?
8592 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8593 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8594 cat >conftest.$ac_ext <<_ACEOF
8595 /* confdefs.h.  */
8596 _ACEOF
8597 cat confdefs.h >>conftest.$ac_ext
8598 cat >>conftest.$ac_ext <<_ACEOF
8599 /* end confdefs.h.  */
8600 $ac_includes_default
8601 #include <$ac_header>
8602 _ACEOF
8603 rm -f conftest.$ac_objext
8604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8605   (eval $ac_compile) 2>conftest.er1
8606   ac_status=$?
8607   grep -v '^ *+' conftest.er1 >conftest.err
8608   rm -f conftest.er1
8609   cat conftest.err >&5
8610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611   (exit $ac_status); } &&
8612          { ac_try='test -z "$ac_c_werror_flag"
8613                          || test ! -s conftest.err'
8614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8615   (eval $ac_try) 2>&5
8616   ac_status=$?
8617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618   (exit $ac_status); }; } &&
8619          { ac_try='test -s conftest.$ac_objext'
8620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8621   (eval $ac_try) 2>&5
8622   ac_status=$?
8623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624   (exit $ac_status); }; }; then
8625   ac_header_compiler=yes
8626 else
8627   echo "$as_me: failed program was:" >&5
8628 sed 's/^/| /' conftest.$ac_ext >&5
8629
8630 ac_header_compiler=no
8631 fi
8632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8633 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8634 echo "${ECHO_T}$ac_header_compiler" >&6
8635
8636 # Is the header present?
8637 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8638 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8639 cat >conftest.$ac_ext <<_ACEOF
8640 /* confdefs.h.  */
8641 _ACEOF
8642 cat confdefs.h >>conftest.$ac_ext
8643 cat >>conftest.$ac_ext <<_ACEOF
8644 /* end confdefs.h.  */
8645 #include <$ac_header>
8646 _ACEOF
8647 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8648   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8649   ac_status=$?
8650   grep -v '^ *+' conftest.er1 >conftest.err
8651   rm -f conftest.er1
8652   cat conftest.err >&5
8653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654   (exit $ac_status); } >/dev/null; then
8655   if test -s conftest.err; then
8656     ac_cpp_err=$ac_c_preproc_warn_flag
8657     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8658   else
8659     ac_cpp_err=
8660   fi
8661 else
8662   ac_cpp_err=yes
8663 fi
8664 if test -z "$ac_cpp_err"; then
8665   ac_header_preproc=yes
8666 else
8667   echo "$as_me: failed program was:" >&5
8668 sed 's/^/| /' conftest.$ac_ext >&5
8669
8670   ac_header_preproc=no
8671 fi
8672 rm -f conftest.err conftest.$ac_ext
8673 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8674 echo "${ECHO_T}$ac_header_preproc" >&6
8675
8676 # So?  What about this header?
8677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8678   yes:no: )
8679     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8680 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8681     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8682 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8683     ac_header_preproc=yes
8684     ;;
8685   no:yes:* )
8686     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8687 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8688     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8689 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8690     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8691 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8692     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8693 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8694     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8695 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8696     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8697 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8698     (
8699       cat <<\_ASBOX
8700 ## ------------------------------------------ ##
8701 ## Report this to the AC_PACKAGE_NAME lists.  ##
8702 ## ------------------------------------------ ##
8703 _ASBOX
8704     ) |
8705       sed "s/^/$as_me: WARNING:     /" >&2
8706     ;;
8707 esac
8708 echo "$as_me:$LINENO: checking for $ac_header" >&5
8709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8711   echo $ECHO_N "(cached) $ECHO_C" >&6
8712 else
8713   eval "$as_ac_Header=\$ac_header_preproc"
8714 fi
8715 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8716 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8717
8718 fi
8719 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8720   cat >>confdefs.h <<_ACEOF
8721 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8722 _ACEOF
8723
8724 fi
8725
8726 done
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8752 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8753 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8754 __fsetlocking
8755 do
8756 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8757 echo "$as_me:$LINENO: checking for $ac_func" >&5
8758 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8759 if eval "test \"\${$as_ac_var+set}\" = set"; then
8760   echo $ECHO_N "(cached) $ECHO_C" >&6
8761 else
8762   cat >conftest.$ac_ext <<_ACEOF
8763 /* confdefs.h.  */
8764 _ACEOF
8765 cat confdefs.h >>conftest.$ac_ext
8766 cat >>conftest.$ac_ext <<_ACEOF
8767 /* end confdefs.h.  */
8768 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8769    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8770 #define $ac_func innocuous_$ac_func
8771
8772 /* System header to define __stub macros and hopefully few prototypes,
8773     which can conflict with char $ac_func (); below.
8774     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8775     <limits.h> exists even on freestanding compilers.  */
8776
8777 #ifdef __STDC__
8778 # include <limits.h>
8779 #else
8780 # include <assert.h>
8781 #endif
8782
8783 #undef $ac_func
8784
8785 /* Override any gcc2 internal prototype to avoid an error.  */
8786 #ifdef __cplusplus
8787 extern "C"
8788 {
8789 #endif
8790 /* We use char because int might match the return type of a gcc2
8791    builtin and then its argument prototype would still apply.  */
8792 char $ac_func ();
8793 /* The GNU C library defines this for functions which it implements
8794     to always fail with ENOSYS.  Some functions are actually named
8795     something starting with __ and the normal name is an alias.  */
8796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8797 choke me
8798 #else
8799 char (*f) () = $ac_func;
8800 #endif
8801 #ifdef __cplusplus
8802 }
8803 #endif
8804
8805 int
8806 main ()
8807 {
8808 return f != $ac_func;
8809   ;
8810   return 0;
8811 }
8812 _ACEOF
8813 rm -f conftest.$ac_objext conftest$ac_exeext
8814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8815   (eval $ac_link) 2>conftest.er1
8816   ac_status=$?
8817   grep -v '^ *+' conftest.er1 >conftest.err
8818   rm -f conftest.er1
8819   cat conftest.err >&5
8820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821   (exit $ac_status); } &&
8822          { ac_try='test -z "$ac_c_werror_flag"
8823                          || test ! -s conftest.err'
8824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8825   (eval $ac_try) 2>&5
8826   ac_status=$?
8827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828   (exit $ac_status); }; } &&
8829          { ac_try='test -s conftest$ac_exeext'
8830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8831   (eval $ac_try) 2>&5
8832   ac_status=$?
8833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834   (exit $ac_status); }; }; then
8835   eval "$as_ac_var=yes"
8836 else
8837   echo "$as_me: failed program was:" >&5
8838 sed 's/^/| /' conftest.$ac_ext >&5
8839
8840 eval "$as_ac_var=no"
8841 fi
8842 rm -f conftest.err conftest.$ac_objext \
8843       conftest$ac_exeext conftest.$ac_ext
8844 fi
8845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8846 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8847 if test `eval echo '${'$as_ac_var'}'` = yes; then
8848   cat >>confdefs.h <<_ACEOF
8849 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8850 _ACEOF
8851
8852 fi
8853 done
8854
8855
8856
8857   echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
8858 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
8859 if test "${ac_cv_have_decl__snprintf+set}" = set; then
8860   echo $ECHO_N "(cached) $ECHO_C" >&6
8861 else
8862   cat >conftest.$ac_ext <<_ACEOF
8863 /* confdefs.h.  */
8864 _ACEOF
8865 cat confdefs.h >>conftest.$ac_ext
8866 cat >>conftest.$ac_ext <<_ACEOF
8867 /* end confdefs.h.  */
8868 #include <stdio.h>
8869 int
8870 main ()
8871 {
8872
8873 #ifndef _snprintf
8874   char *p = (char *) _snprintf;
8875 #endif
8876
8877   ;
8878   return 0;
8879 }
8880 _ACEOF
8881 rm -f conftest.$ac_objext
8882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8883   (eval $ac_compile) 2>conftest.er1
8884   ac_status=$?
8885   grep -v '^ *+' conftest.er1 >conftest.err
8886   rm -f conftest.er1
8887   cat conftest.err >&5
8888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889   (exit $ac_status); } &&
8890          { ac_try='test -z "$ac_c_werror_flag"
8891                          || test ! -s conftest.err'
8892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8893   (eval $ac_try) 2>&5
8894   ac_status=$?
8895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896   (exit $ac_status); }; } &&
8897          { ac_try='test -s conftest.$ac_objext'
8898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8899   (eval $ac_try) 2>&5
8900   ac_status=$?
8901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902   (exit $ac_status); }; }; then
8903   ac_cv_have_decl__snprintf=yes
8904 else
8905   echo "$as_me: failed program was:" >&5
8906 sed 's/^/| /' conftest.$ac_ext >&5
8907
8908 ac_cv_have_decl__snprintf=no
8909 fi
8910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8911 fi
8912 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
8913 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
8914   if test $ac_cv_have_decl__snprintf = yes; then
8915     gt_value=1
8916   else
8917     gt_value=0
8918   fi
8919
8920 cat >>confdefs.h <<_ACEOF
8921 #define HAVE_DECL__SNPRINTF $gt_value
8922 _ACEOF
8923
8924
8925
8926   echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
8927 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
8928 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
8929   echo $ECHO_N "(cached) $ECHO_C" >&6
8930 else
8931   cat >conftest.$ac_ext <<_ACEOF
8932 /* confdefs.h.  */
8933 _ACEOF
8934 cat confdefs.h >>conftest.$ac_ext
8935 cat >>conftest.$ac_ext <<_ACEOF
8936 /* end confdefs.h.  */
8937 #include <stdio.h>
8938 int
8939 main ()
8940 {
8941
8942 #ifndef _snwprintf
8943   char *p = (char *) _snwprintf;
8944 #endif
8945
8946   ;
8947   return 0;
8948 }
8949 _ACEOF
8950 rm -f conftest.$ac_objext
8951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8952   (eval $ac_compile) 2>conftest.er1
8953   ac_status=$?
8954   grep -v '^ *+' conftest.er1 >conftest.err
8955   rm -f conftest.er1
8956   cat conftest.err >&5
8957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958   (exit $ac_status); } &&
8959          { ac_try='test -z "$ac_c_werror_flag"
8960                          || test ! -s conftest.err'
8961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8962   (eval $ac_try) 2>&5
8963   ac_status=$?
8964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965   (exit $ac_status); }; } &&
8966          { ac_try='test -s conftest.$ac_objext'
8967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8968   (eval $ac_try) 2>&5
8969   ac_status=$?
8970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971   (exit $ac_status); }; }; then
8972   ac_cv_have_decl__snwprintf=yes
8973 else
8974   echo "$as_me: failed program was:" >&5
8975 sed 's/^/| /' conftest.$ac_ext >&5
8976
8977 ac_cv_have_decl__snwprintf=no
8978 fi
8979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8980 fi
8981 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
8982 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
8983   if test $ac_cv_have_decl__snwprintf = yes; then
8984     gt_value=1
8985   else
8986     gt_value=0
8987   fi
8988
8989 cat >>confdefs.h <<_ACEOF
8990 #define HAVE_DECL__SNWPRINTF $gt_value
8991 _ACEOF
8992
8993
8994
8995
8996   echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
8997 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
8998 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
8999   echo $ECHO_N "(cached) $ECHO_C" >&6
9000 else
9001   cat >conftest.$ac_ext <<_ACEOF
9002 /* confdefs.h.  */
9003 _ACEOF
9004 cat confdefs.h >>conftest.$ac_ext
9005 cat >>conftest.$ac_ext <<_ACEOF
9006 /* end confdefs.h.  */
9007 #include <stdio.h>
9008 int
9009 main ()
9010 {
9011
9012 #ifndef feof_unlocked
9013   char *p = (char *) feof_unlocked;
9014 #endif
9015
9016   ;
9017   return 0;
9018 }
9019 _ACEOF
9020 rm -f conftest.$ac_objext
9021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9022   (eval $ac_compile) 2>conftest.er1
9023   ac_status=$?
9024   grep -v '^ *+' conftest.er1 >conftest.err
9025   rm -f conftest.er1
9026   cat conftest.err >&5
9027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9028   (exit $ac_status); } &&
9029          { ac_try='test -z "$ac_c_werror_flag"
9030                          || test ! -s conftest.err'
9031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9032   (eval $ac_try) 2>&5
9033   ac_status=$?
9034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035   (exit $ac_status); }; } &&
9036          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
9042   ac_cv_have_decl_feof_unlocked=yes
9043 else
9044   echo "$as_me: failed program was:" >&5
9045 sed 's/^/| /' conftest.$ac_ext >&5
9046
9047 ac_cv_have_decl_feof_unlocked=no
9048 fi
9049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9050 fi
9051 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9052 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
9053   if test $ac_cv_have_decl_feof_unlocked = yes; then
9054     gt_value=1
9055   else
9056     gt_value=0
9057   fi
9058
9059 cat >>confdefs.h <<_ACEOF
9060 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
9061 _ACEOF
9062
9063
9064
9065   echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9066 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
9067 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9068   echo $ECHO_N "(cached) $ECHO_C" >&6
9069 else
9070   cat >conftest.$ac_ext <<_ACEOF
9071 /* confdefs.h.  */
9072 _ACEOF
9073 cat confdefs.h >>conftest.$ac_ext
9074 cat >>conftest.$ac_ext <<_ACEOF
9075 /* end confdefs.h.  */
9076 #include <stdio.h>
9077 int
9078 main ()
9079 {
9080
9081 #ifndef fgets_unlocked
9082   char *p = (char *) fgets_unlocked;
9083 #endif
9084
9085   ;
9086   return 0;
9087 }
9088 _ACEOF
9089 rm -f conftest.$ac_objext
9090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9091   (eval $ac_compile) 2>conftest.er1
9092   ac_status=$?
9093   grep -v '^ *+' conftest.er1 >conftest.err
9094   rm -f conftest.er1
9095   cat conftest.err >&5
9096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097   (exit $ac_status); } &&
9098          { ac_try='test -z "$ac_c_werror_flag"
9099                          || test ! -s conftest.err'
9100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9101   (eval $ac_try) 2>&5
9102   ac_status=$?
9103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104   (exit $ac_status); }; } &&
9105          { ac_try='test -s conftest.$ac_objext'
9106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9107   (eval $ac_try) 2>&5
9108   ac_status=$?
9109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110   (exit $ac_status); }; }; then
9111   ac_cv_have_decl_fgets_unlocked=yes
9112 else
9113   echo "$as_me: failed program was:" >&5
9114 sed 's/^/| /' conftest.$ac_ext >&5
9115
9116 ac_cv_have_decl_fgets_unlocked=no
9117 fi
9118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9119 fi
9120 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9121 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
9122   if test $ac_cv_have_decl_fgets_unlocked = yes; then
9123     gt_value=1
9124   else
9125     gt_value=0
9126   fi
9127
9128 cat >>confdefs.h <<_ACEOF
9129 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
9130 _ACEOF
9131
9132
9133
9134   echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9135 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
9136 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9137   echo $ECHO_N "(cached) $ECHO_C" >&6
9138 else
9139   cat >conftest.$ac_ext <<_ACEOF
9140 /* confdefs.h.  */
9141 _ACEOF
9142 cat confdefs.h >>conftest.$ac_ext
9143 cat >>conftest.$ac_ext <<_ACEOF
9144 /* end confdefs.h.  */
9145 #include <stdio.h>
9146 int
9147 main ()
9148 {
9149
9150 #ifndef getc_unlocked
9151   char *p = (char *) getc_unlocked;
9152 #endif
9153
9154   ;
9155   return 0;
9156 }
9157 _ACEOF
9158 rm -f conftest.$ac_objext
9159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9160   (eval $ac_compile) 2>conftest.er1
9161   ac_status=$?
9162   grep -v '^ *+' conftest.er1 >conftest.err
9163   rm -f conftest.er1
9164   cat conftest.err >&5
9165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166   (exit $ac_status); } &&
9167          { ac_try='test -z "$ac_c_werror_flag"
9168                          || test ! -s conftest.err'
9169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9170   (eval $ac_try) 2>&5
9171   ac_status=$?
9172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173   (exit $ac_status); }; } &&
9174          { ac_try='test -s conftest.$ac_objext'
9175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9176   (eval $ac_try) 2>&5
9177   ac_status=$?
9178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179   (exit $ac_status); }; }; then
9180   ac_cv_have_decl_getc_unlocked=yes
9181 else
9182   echo "$as_me: failed program was:" >&5
9183 sed 's/^/| /' conftest.$ac_ext >&5
9184
9185 ac_cv_have_decl_getc_unlocked=no
9186 fi
9187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9188 fi
9189 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9190 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
9191   if test $ac_cv_have_decl_getc_unlocked = yes; then
9192     gt_value=1
9193   else
9194     gt_value=0
9195   fi
9196
9197 cat >>confdefs.h <<_ACEOF
9198 #define HAVE_DECL_GETC_UNLOCKED $gt_value
9199 _ACEOF
9200
9201
9202
9203   case $gt_cv_func_printf_posix in
9204     *yes) HAVE_POSIX_PRINTF=1 ;;
9205     *) HAVE_POSIX_PRINTF=0 ;;
9206   esac
9207
9208   if test "$ac_cv_func_asprintf" = yes; then
9209     HAVE_ASPRINTF=1
9210   else
9211     HAVE_ASPRINTF=0
9212   fi
9213
9214   if test "$ac_cv_func_snprintf" = yes; then
9215     HAVE_SNPRINTF=1
9216   else
9217     HAVE_SNPRINTF=0
9218   fi
9219
9220   if test "$ac_cv_func_wprintf" = yes; then
9221     HAVE_WPRINTF=1
9222   else
9223     HAVE_WPRINTF=0
9224   fi
9225
9226
9227
9228
9229
9230
9231
9232           am_save_CPPFLAGS="$CPPFLAGS"
9233
9234   for element in $INCICONV; do
9235     haveit=
9236     for x in $CPPFLAGS; do
9237
9238   acl_save_prefix="$prefix"
9239   prefix="$acl_final_prefix"
9240   acl_save_exec_prefix="$exec_prefix"
9241   exec_prefix="$acl_final_exec_prefix"
9242   eval x=\"$x\"
9243   exec_prefix="$acl_save_exec_prefix"
9244   prefix="$acl_save_prefix"
9245
9246       if test "X$x" = "X$element"; then
9247         haveit=yes
9248         break
9249       fi
9250     done
9251     if test -z "$haveit"; then
9252       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9253     fi
9254   done
9255
9256
9257   echo "$as_me:$LINENO: checking for iconv" >&5
9258 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
9259 if test "${am_cv_func_iconv+set}" = set; then
9260   echo $ECHO_N "(cached) $ECHO_C" >&6
9261 else
9262
9263     am_cv_func_iconv="no, consider installing GNU libiconv"
9264     am_cv_lib_iconv=no
9265     cat >conftest.$ac_ext <<_ACEOF
9266 /* confdefs.h.  */
9267 _ACEOF
9268 cat confdefs.h >>conftest.$ac_ext
9269 cat >>conftest.$ac_ext <<_ACEOF
9270 /* end confdefs.h.  */
9271 #include <stdlib.h>
9272 #include <iconv.h>
9273 int
9274 main ()
9275 {
9276 iconv_t cd = iconv_open("","");
9277        iconv(cd,NULL,NULL,NULL,NULL);
9278        iconv_close(cd);
9279   ;
9280   return 0;
9281 }
9282 _ACEOF
9283 rm -f conftest.$ac_objext conftest$ac_exeext
9284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9285   (eval $ac_link) 2>conftest.er1
9286   ac_status=$?
9287   grep -v '^ *+' conftest.er1 >conftest.err
9288   rm -f conftest.er1
9289   cat conftest.err >&5
9290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291   (exit $ac_status); } &&
9292          { ac_try='test -z "$ac_c_werror_flag"
9293                          || test ! -s conftest.err'
9294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9295   (eval $ac_try) 2>&5
9296   ac_status=$?
9297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298   (exit $ac_status); }; } &&
9299          { ac_try='test -s conftest$ac_exeext'
9300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9301   (eval $ac_try) 2>&5
9302   ac_status=$?
9303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304   (exit $ac_status); }; }; then
9305   am_cv_func_iconv=yes
9306 else
9307   echo "$as_me: failed program was:" >&5
9308 sed 's/^/| /' conftest.$ac_ext >&5
9309
9310 fi
9311 rm -f conftest.err conftest.$ac_objext \
9312       conftest$ac_exeext conftest.$ac_ext
9313     if test "$am_cv_func_iconv" != yes; then
9314       am_save_LIBS="$LIBS"
9315       LIBS="$LIBS $LIBICONV"
9316       cat >conftest.$ac_ext <<_ACEOF
9317 /* confdefs.h.  */
9318 _ACEOF
9319 cat confdefs.h >>conftest.$ac_ext
9320 cat >>conftest.$ac_ext <<_ACEOF
9321 /* end confdefs.h.  */
9322 #include <stdlib.h>
9323 #include <iconv.h>
9324 int
9325 main ()
9326 {
9327 iconv_t cd = iconv_open("","");
9328          iconv(cd,NULL,NULL,NULL,NULL);
9329          iconv_close(cd);
9330   ;
9331   return 0;
9332 }
9333 _ACEOF
9334 rm -f conftest.$ac_objext conftest$ac_exeext
9335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9336   (eval $ac_link) 2>conftest.er1
9337   ac_status=$?
9338   grep -v '^ *+' conftest.er1 >conftest.err
9339   rm -f conftest.er1
9340   cat conftest.err >&5
9341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342   (exit $ac_status); } &&
9343          { ac_try='test -z "$ac_c_werror_flag"
9344                          || test ! -s conftest.err'
9345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9346   (eval $ac_try) 2>&5
9347   ac_status=$?
9348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349   (exit $ac_status); }; } &&
9350          { ac_try='test -s conftest$ac_exeext'
9351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9352   (eval $ac_try) 2>&5
9353   ac_status=$?
9354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355   (exit $ac_status); }; }; then
9356   am_cv_lib_iconv=yes
9357         am_cv_func_iconv=yes
9358 else
9359   echo "$as_me: failed program was:" >&5
9360 sed 's/^/| /' conftest.$ac_ext >&5
9361
9362 fi
9363 rm -f conftest.err conftest.$ac_objext \
9364       conftest$ac_exeext conftest.$ac_ext
9365       LIBS="$am_save_LIBS"
9366     fi
9367
9368 fi
9369 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9370 echo "${ECHO_T}$am_cv_func_iconv" >&6
9371   if test "$am_cv_func_iconv" = yes; then
9372
9373 cat >>confdefs.h <<\_ACEOF
9374 #define HAVE_ICONV 1
9375 _ACEOF
9376
9377   fi
9378   if test "$am_cv_lib_iconv" = yes; then
9379     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9380 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
9381     echo "$as_me:$LINENO: result: $LIBICONV" >&5
9382 echo "${ECHO_T}$LIBICONV" >&6
9383   else
9384             CPPFLAGS="$am_save_CPPFLAGS"
9385     LIBICONV=
9386     LTLIBICONV=
9387   fi
9388
9389
9390
9391   if test "$am_cv_func_iconv" = yes; then
9392     echo "$as_me:$LINENO: checking for iconv declaration" >&5
9393 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
9394     if test "${am_cv_proto_iconv+set}" = set; then
9395   echo $ECHO_N "(cached) $ECHO_C" >&6
9396 else
9397
9398       cat >conftest.$ac_ext <<_ACEOF
9399 /* confdefs.h.  */
9400 _ACEOF
9401 cat confdefs.h >>conftest.$ac_ext
9402 cat >>conftest.$ac_ext <<_ACEOF
9403 /* end confdefs.h.  */
9404
9405 #include <stdlib.h>
9406 #include <iconv.h>
9407 extern
9408 #ifdef __cplusplus
9409 "C"
9410 #endif
9411 #if defined(__STDC__) || defined(__cplusplus)
9412 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9413 #else
9414 size_t iconv();
9415 #endif
9416
9417 int
9418 main ()
9419 {
9420
9421   ;
9422   return 0;
9423 }
9424 _ACEOF
9425 rm -f conftest.$ac_objext
9426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9427   (eval $ac_compile) 2>conftest.er1
9428   ac_status=$?
9429   grep -v '^ *+' conftest.er1 >conftest.err
9430   rm -f conftest.er1
9431   cat conftest.err >&5
9432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433   (exit $ac_status); } &&
9434          { ac_try='test -z "$ac_c_werror_flag"
9435                          || test ! -s conftest.err'
9436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9437   (eval $ac_try) 2>&5
9438   ac_status=$?
9439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440   (exit $ac_status); }; } &&
9441          { ac_try='test -s conftest.$ac_objext'
9442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9443   (eval $ac_try) 2>&5
9444   ac_status=$?
9445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446   (exit $ac_status); }; }; then
9447   am_cv_proto_iconv_arg1=""
9448 else
9449   echo "$as_me: failed program was:" >&5
9450 sed 's/^/| /' conftest.$ac_ext >&5
9451
9452 am_cv_proto_iconv_arg1="const"
9453 fi
9454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9455       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);"
9456 fi
9457
9458     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9459     echo "$as_me:$LINENO: result: ${ac_t:-
9460          }$am_cv_proto_iconv" >&5
9461 echo "${ECHO_T}${ac_t:-
9462          }$am_cv_proto_iconv" >&6
9463
9464 cat >>confdefs.h <<_ACEOF
9465 #define ICONV_CONST $am_cv_proto_iconv_arg1
9466 _ACEOF
9467
9468   fi
9469
9470
9471   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9472 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
9473 if test "${am_cv_langinfo_codeset+set}" = set; then
9474   echo $ECHO_N "(cached) $ECHO_C" >&6
9475 else
9476   cat >conftest.$ac_ext <<_ACEOF
9477 /* confdefs.h.  */
9478 _ACEOF
9479 cat confdefs.h >>conftest.$ac_ext
9480 cat >>conftest.$ac_ext <<_ACEOF
9481 /* end confdefs.h.  */
9482 #include <langinfo.h>
9483 int
9484 main ()
9485 {
9486 char* cs = nl_langinfo(CODESET);
9487   ;
9488   return 0;
9489 }
9490 _ACEOF
9491 rm -f conftest.$ac_objext conftest$ac_exeext
9492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9493   (eval $ac_link) 2>conftest.er1
9494   ac_status=$?
9495   grep -v '^ *+' conftest.er1 >conftest.err
9496   rm -f conftest.er1
9497   cat conftest.err >&5
9498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499   (exit $ac_status); } &&
9500          { ac_try='test -z "$ac_c_werror_flag"
9501                          || test ! -s conftest.err'
9502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9503   (eval $ac_try) 2>&5
9504   ac_status=$?
9505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506   (exit $ac_status); }; } &&
9507          { ac_try='test -s conftest$ac_exeext'
9508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9509   (eval $ac_try) 2>&5
9510   ac_status=$?
9511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512   (exit $ac_status); }; }; then
9513   am_cv_langinfo_codeset=yes
9514 else
9515   echo "$as_me: failed program was:" >&5
9516 sed 's/^/| /' conftest.$ac_ext >&5
9517
9518 am_cv_langinfo_codeset=no
9519 fi
9520 rm -f conftest.err conftest.$ac_objext \
9521       conftest$ac_exeext conftest.$ac_ext
9522
9523 fi
9524 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9525 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
9526   if test $am_cv_langinfo_codeset = yes; then
9527
9528 cat >>confdefs.h <<\_ACEOF
9529 #define HAVE_LANGINFO_CODESET 1
9530 _ACEOF
9531
9532   fi
9533
9534   if test $ac_cv_header_locale_h = yes; then
9535
9536   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9537 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
9538 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9539   echo $ECHO_N "(cached) $ECHO_C" >&6
9540 else
9541   cat >conftest.$ac_ext <<_ACEOF
9542 /* confdefs.h.  */
9543 _ACEOF
9544 cat confdefs.h >>conftest.$ac_ext
9545 cat >>conftest.$ac_ext <<_ACEOF
9546 /* end confdefs.h.  */
9547 #include <locale.h>
9548 int
9549 main ()
9550 {
9551 return LC_MESSAGES
9552   ;
9553   return 0;
9554 }
9555 _ACEOF
9556 rm -f conftest.$ac_objext conftest$ac_exeext
9557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9558   (eval $ac_link) 2>conftest.er1
9559   ac_status=$?
9560   grep -v '^ *+' conftest.er1 >conftest.err
9561   rm -f conftest.er1
9562   cat conftest.err >&5
9563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564   (exit $ac_status); } &&
9565          { ac_try='test -z "$ac_c_werror_flag"
9566                          || test ! -s conftest.err'
9567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9568   (eval $ac_try) 2>&5
9569   ac_status=$?
9570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571   (exit $ac_status); }; } &&
9572          { ac_try='test -s conftest$ac_exeext'
9573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9574   (eval $ac_try) 2>&5
9575   ac_status=$?
9576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577   (exit $ac_status); }; }; then
9578   am_cv_val_LC_MESSAGES=yes
9579 else
9580   echo "$as_me: failed program was:" >&5
9581 sed 's/^/| /' conftest.$ac_ext >&5
9582
9583 am_cv_val_LC_MESSAGES=no
9584 fi
9585 rm -f conftest.err conftest.$ac_objext \
9586       conftest$ac_exeext conftest.$ac_ext
9587 fi
9588 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9589 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
9590   if test $am_cv_val_LC_MESSAGES = yes; then
9591
9592 cat >>confdefs.h <<\_ACEOF
9593 #define HAVE_LC_MESSAGES 1
9594 _ACEOF
9595
9596   fi
9597
9598   fi
9599
9600                       for ac_prog in bison
9601 do
9602   # Extract the first word of "$ac_prog", so it can be a program name with args.
9603 set dummy $ac_prog; ac_word=$2
9604 echo "$as_me:$LINENO: checking for $ac_word" >&5
9605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9606 if test "${ac_cv_prog_INTLBISON+set}" = set; then
9607   echo $ECHO_N "(cached) $ECHO_C" >&6
9608 else
9609   if test -n "$INTLBISON"; then
9610   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9611 else
9612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9613 for as_dir in $PATH
9614 do
9615   IFS=$as_save_IFS
9616   test -z "$as_dir" && as_dir=.
9617   for ac_exec_ext in '' $ac_executable_extensions; do
9618   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9619     ac_cv_prog_INTLBISON="$ac_prog"
9620     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9621     break 2
9622   fi
9623 done
9624 done
9625
9626 fi
9627 fi
9628 INTLBISON=$ac_cv_prog_INTLBISON
9629 if test -n "$INTLBISON"; then
9630   echo "$as_me:$LINENO: result: $INTLBISON" >&5
9631 echo "${ECHO_T}$INTLBISON" >&6
9632 else
9633   echo "$as_me:$LINENO: result: no" >&5
9634 echo "${ECHO_T}no" >&6
9635 fi
9636
9637   test -n "$INTLBISON" && break
9638 done
9639
9640   if test -z "$INTLBISON"; then
9641     ac_verc_fail=yes
9642   else
9643         echo "$as_me:$LINENO: checking version of bison" >&5
9644 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
9645     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9646     case $ac_prog_version in
9647       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9648       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9649          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9650       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9651     esac
9652     echo "$as_me:$LINENO: result: $ac_prog_version" >&5
9653 echo "${ECHO_T}$ac_prog_version" >&6
9654   fi
9655   if test $ac_verc_fail = yes; then
9656     INTLBISON=:
9657   fi
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9675 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9676     # Check whether --enable-nls or --disable-nls was given.
9677 if test "${enable_nls+set}" = set; then
9678   enableval="$enable_nls"
9679   USE_NLS=$enableval
9680 else
9681   USE_NLS=yes
9682 fi;
9683   echo "$as_me:$LINENO: result: $USE_NLS" >&5
9684 echo "${ECHO_T}$USE_NLS" >&6
9685
9686
9687
9688
9689     BUILD_INCLUDED_LIBINTL=no
9690     USE_INCLUDED_LIBINTL=no
9691
9692   LIBINTL=
9693   LTLIBINTL=
9694   POSUB=
9695
9696     if test "$USE_NLS" = "yes"; then
9697     gt_use_preinstalled_gnugettext=no
9698
9699       echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
9700 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
9701
9702 # Check whether --with-included-gettext or --without-included-gettext was given.
9703 if test "${with_included_gettext+set}" = set; then
9704   withval="$with_included_gettext"
9705   nls_cv_force_use_gnu_gettext=$withval
9706 else
9707   nls_cv_force_use_gnu_gettext=no
9708 fi;
9709       echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
9710 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
9711
9712       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
9713       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
9714
9715
9716
9717
9718
9719
9720         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
9721 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
9722 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
9723   echo $ECHO_N "(cached) $ECHO_C" >&6
9724 else
9725   cat >conftest.$ac_ext <<_ACEOF
9726 /* confdefs.h.  */
9727 _ACEOF
9728 cat confdefs.h >>conftest.$ac_ext
9729 cat >>conftest.$ac_ext <<_ACEOF
9730 /* end confdefs.h.  */
9731 #include <libintl.h>
9732 extern int _nl_msg_cat_cntr;
9733 extern int *_nl_domain_bindings;
9734 int
9735 main ()
9736 {
9737 bindtextdomain ("", "");
9738 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
9739   ;
9740   return 0;
9741 }
9742 _ACEOF
9743 rm -f conftest.$ac_objext conftest$ac_exeext
9744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9745   (eval $ac_link) 2>conftest.er1
9746   ac_status=$?
9747   grep -v '^ *+' conftest.er1 >conftest.err
9748   rm -f conftest.er1
9749   cat conftest.err >&5
9750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751   (exit $ac_status); } &&
9752          { ac_try='test -z "$ac_c_werror_flag"
9753                          || test ! -s conftest.err'
9754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9755   (eval $ac_try) 2>&5
9756   ac_status=$?
9757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758   (exit $ac_status); }; } &&
9759          { ac_try='test -s conftest$ac_exeext'
9760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9761   (eval $ac_try) 2>&5
9762   ac_status=$?
9763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764   (exit $ac_status); }; }; then
9765   gt_cv_func_gnugettext1_libc=yes
9766 else
9767   echo "$as_me: failed program was:" >&5
9768 sed 's/^/| /' conftest.$ac_ext >&5
9769
9770 gt_cv_func_gnugettext1_libc=no
9771 fi
9772 rm -f conftest.err conftest.$ac_objext \
9773       conftest$ac_exeext conftest.$ac_ext
9774 fi
9775 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
9776 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
9777
9778         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
9779
9780
9781
9782     use_additional=yes
9783
9784   acl_save_prefix="$prefix"
9785   prefix="$acl_final_prefix"
9786   acl_save_exec_prefix="$exec_prefix"
9787   exec_prefix="$acl_final_exec_prefix"
9788
9789     eval additional_includedir=\"$includedir\"
9790     eval additional_libdir=\"$libdir\"
9791
9792   exec_prefix="$acl_save_exec_prefix"
9793   prefix="$acl_save_prefix"
9794
9795
9796 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
9797 if test "${with_libintl_prefix+set}" = set; then
9798   withval="$with_libintl_prefix"
9799
9800     if test "X$withval" = "Xno"; then
9801       use_additional=no
9802     else
9803       if test "X$withval" = "X"; then
9804
9805   acl_save_prefix="$prefix"
9806   prefix="$acl_final_prefix"
9807   acl_save_exec_prefix="$exec_prefix"
9808   exec_prefix="$acl_final_exec_prefix"
9809
9810           eval additional_includedir=\"$includedir\"
9811           eval additional_libdir=\"$libdir\"
9812
9813   exec_prefix="$acl_save_exec_prefix"
9814   prefix="$acl_save_prefix"
9815
9816       else
9817         additional_includedir="$withval/include"
9818         additional_libdir="$withval/lib"
9819       fi
9820     fi
9821
9822 fi;
9823       LIBINTL=
9824   LTLIBINTL=
9825   INCINTL=
9826   rpathdirs=
9827   ltrpathdirs=
9828   names_already_handled=
9829   names_next_round='intl '
9830   while test -n "$names_next_round"; do
9831     names_this_round="$names_next_round"
9832     names_next_round=
9833     for name in $names_this_round; do
9834       already_handled=
9835       for n in $names_already_handled; do
9836         if test "$n" = "$name"; then
9837           already_handled=yes
9838           break
9839         fi
9840       done
9841       if test -z "$already_handled"; then
9842         names_already_handled="$names_already_handled $name"
9843                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9844         eval value=\"\$HAVE_LIB$uppername\"
9845         if test -n "$value"; then
9846           if test "$value" = yes; then
9847             eval value=\"\$LIB$uppername\"
9848             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9849             eval value=\"\$LTLIB$uppername\"
9850             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9851           else
9852                                     :
9853           fi
9854         else
9855                               found_dir=
9856           found_la=
9857           found_so=
9858           found_a=
9859           if test $use_additional = yes; then
9860             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9861               found_dir="$additional_libdir"
9862               found_so="$additional_libdir/lib$name.$shlibext"
9863               if test -f "$additional_libdir/lib$name.la"; then
9864                 found_la="$additional_libdir/lib$name.la"
9865               fi
9866             else
9867               if test -f "$additional_libdir/lib$name.$libext"; then
9868                 found_dir="$additional_libdir"
9869                 found_a="$additional_libdir/lib$name.$libext"
9870                 if test -f "$additional_libdir/lib$name.la"; then
9871                   found_la="$additional_libdir/lib$name.la"
9872                 fi
9873               fi
9874             fi
9875           fi
9876           if test "X$found_dir" = "X"; then
9877             for x in $LDFLAGS $LTLIBINTL; do
9878
9879   acl_save_prefix="$prefix"
9880   prefix="$acl_final_prefix"
9881   acl_save_exec_prefix="$exec_prefix"
9882   exec_prefix="$acl_final_exec_prefix"
9883   eval x=\"$x\"
9884   exec_prefix="$acl_save_exec_prefix"
9885   prefix="$acl_save_prefix"
9886
9887               case "$x" in
9888                 -L*)
9889                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9890                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9891                     found_dir="$dir"
9892                     found_so="$dir/lib$name.$shlibext"
9893                     if test -f "$dir/lib$name.la"; then
9894                       found_la="$dir/lib$name.la"
9895                     fi
9896                   else
9897                     if test -f "$dir/lib$name.$libext"; then
9898                       found_dir="$dir"
9899                       found_a="$dir/lib$name.$libext"
9900                       if test -f "$dir/lib$name.la"; then
9901                         found_la="$dir/lib$name.la"
9902                       fi
9903                     fi
9904                   fi
9905                   ;;
9906               esac
9907               if test "X$found_dir" != "X"; then
9908                 break
9909               fi
9910             done
9911           fi
9912           if test "X$found_dir" != "X"; then
9913                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9914             if test "X$found_so" != "X"; then
9915                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9916                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9917               else
9918                                                                                 haveit=
9919                 for x in $ltrpathdirs; do
9920                   if test "X$x" = "X$found_dir"; then
9921                     haveit=yes
9922                     break
9923                   fi
9924                 done
9925                 if test -z "$haveit"; then
9926                   ltrpathdirs="$ltrpathdirs $found_dir"
9927                 fi
9928                                 if test "$hardcode_direct" = yes; then
9929                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9930                 else
9931                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9932                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9933                                                             haveit=
9934                     for x in $rpathdirs; do
9935                       if test "X$x" = "X$found_dir"; then
9936                         haveit=yes
9937                         break
9938                       fi
9939                     done
9940                     if test -z "$haveit"; then
9941                       rpathdirs="$rpathdirs $found_dir"
9942                     fi
9943                   else
9944                                                                                 haveit=
9945                     for x in $LDFLAGS $LIBINTL; do
9946
9947   acl_save_prefix="$prefix"
9948   prefix="$acl_final_prefix"
9949   acl_save_exec_prefix="$exec_prefix"
9950   exec_prefix="$acl_final_exec_prefix"
9951   eval x=\"$x\"
9952   exec_prefix="$acl_save_exec_prefix"
9953   prefix="$acl_save_prefix"
9954
9955                       if test "X$x" = "X-L$found_dir"; then
9956                         haveit=yes
9957                         break
9958                       fi
9959                     done
9960                     if test -z "$haveit"; then
9961                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9962                     fi
9963                     if test "$hardcode_minus_L" != no; then
9964                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9965                     else
9966                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9967                     fi
9968                   fi
9969                 fi
9970               fi
9971             else
9972               if test "X$found_a" != "X"; then
9973                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9974               else
9975                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9976               fi
9977             fi
9978                         additional_includedir=
9979             case "$found_dir" in
9980               */lib | */lib/)
9981                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9982                 additional_includedir="$basedir/include"
9983                 ;;
9984             esac
9985             if test "X$additional_includedir" != "X"; then
9986                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9987                 haveit=
9988                 if test "X$additional_includedir" = "X/usr/local/include"; then
9989                   if test -n "$GCC"; then
9990                     case $host_os in
9991                       linux*) haveit=yes;;
9992                     esac
9993                   fi
9994                 fi
9995                 if test -z "$haveit"; then
9996                   for x in $CPPFLAGS $INCINTL; do
9997
9998   acl_save_prefix="$prefix"
9999   prefix="$acl_final_prefix"
10000   acl_save_exec_prefix="$exec_prefix"
10001   exec_prefix="$acl_final_exec_prefix"
10002   eval x=\"$x\"
10003   exec_prefix="$acl_save_exec_prefix"
10004   prefix="$acl_save_prefix"
10005
10006                     if test "X$x" = "X-I$additional_includedir"; then
10007                       haveit=yes
10008                       break
10009                     fi
10010                   done
10011                   if test -z "$haveit"; then
10012                     if test -d "$additional_includedir"; then
10013                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10014                     fi
10015                   fi
10016                 fi
10017               fi
10018             fi
10019                         if test -n "$found_la"; then
10020                                                         save_libdir="$libdir"
10021               case "$found_la" in
10022                 */* | *\\*) . "$found_la" ;;
10023                 *) . "./$found_la" ;;
10024               esac
10025               libdir="$save_libdir"
10026                             for dep in $dependency_libs; do
10027                 case "$dep" in
10028                   -L*)
10029                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10030                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
10031                       haveit=
10032                       if test "X$additional_libdir" = "X/usr/local/lib"; then
10033                         if test -n "$GCC"; then
10034                           case $host_os in
10035                             linux*) haveit=yes;;
10036                           esac
10037                         fi
10038                       fi
10039                       if test -z "$haveit"; then
10040                         haveit=
10041                         for x in $LDFLAGS $LIBINTL; do
10042
10043   acl_save_prefix="$prefix"
10044   prefix="$acl_final_prefix"
10045   acl_save_exec_prefix="$exec_prefix"
10046   exec_prefix="$acl_final_exec_prefix"
10047   eval x=\"$x\"
10048   exec_prefix="$acl_save_exec_prefix"
10049   prefix="$acl_save_prefix"
10050
10051                           if test "X$x" = "X-L$additional_libdir"; then
10052                             haveit=yes
10053                             break
10054                           fi
10055                         done
10056                         if test -z "$haveit"; then
10057                           if test -d "$additional_libdir"; then
10058                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10059                           fi
10060                         fi
10061                         haveit=
10062                         for x in $LDFLAGS $LTLIBINTL; do
10063
10064   acl_save_prefix="$prefix"
10065   prefix="$acl_final_prefix"
10066   acl_save_exec_prefix="$exec_prefix"
10067   exec_prefix="$acl_final_exec_prefix"
10068   eval x=\"$x\"
10069   exec_prefix="$acl_save_exec_prefix"
10070   prefix="$acl_save_prefix"
10071
10072                           if test "X$x" = "X-L$additional_libdir"; then
10073                             haveit=yes
10074                             break
10075                           fi
10076                         done
10077                         if test -z "$haveit"; then
10078                           if test -d "$additional_libdir"; then
10079                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10080                           fi
10081                         fi
10082                       fi
10083                     fi
10084                     ;;
10085                   -R*)
10086                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10087                     if test "$enable_rpath" != no; then
10088                                                                   haveit=
10089                       for x in $rpathdirs; do
10090                         if test "X$x" = "X$dir"; then
10091                           haveit=yes
10092                           break
10093                         fi
10094                       done
10095                       if test -z "$haveit"; then
10096                         rpathdirs="$rpathdirs $dir"
10097                       fi
10098                                                                   haveit=
10099                       for x in $ltrpathdirs; do
10100                         if test "X$x" = "X$dir"; then
10101                           haveit=yes
10102                           break
10103                         fi
10104                       done
10105                       if test -z "$haveit"; then
10106                         ltrpathdirs="$ltrpathdirs $dir"
10107                       fi
10108                     fi
10109                     ;;
10110                   -l*)
10111                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10112                     ;;
10113                   *.la)
10114                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10115                     ;;
10116                   *)
10117                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10118                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10119                     ;;
10120                 esac
10121               done
10122             fi
10123           else
10124                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10125             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10126           fi
10127         fi
10128       fi
10129     done
10130   done
10131   if test "X$rpathdirs" != "X"; then
10132     if test -n "$hardcode_libdir_separator"; then
10133                         alldirs=
10134       for found_dir in $rpathdirs; do
10135         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10136       done
10137             acl_save_libdir="$libdir"
10138       libdir="$alldirs"
10139       eval flag=\"$hardcode_libdir_flag_spec\"
10140       libdir="$acl_save_libdir"
10141       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10142     else
10143             for found_dir in $rpathdirs; do
10144         acl_save_libdir="$libdir"
10145         libdir="$found_dir"
10146         eval flag=\"$hardcode_libdir_flag_spec\"
10147         libdir="$acl_save_libdir"
10148         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10149       done
10150     fi
10151   fi
10152   if test "X$ltrpathdirs" != "X"; then
10153             for found_dir in $ltrpathdirs; do
10154       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10155     done
10156   fi
10157
10158           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10159 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
10160 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
10161   echo $ECHO_N "(cached) $ECHO_C" >&6
10162 else
10163   gt_save_CPPFLAGS="$CPPFLAGS"
10164             CPPFLAGS="$CPPFLAGS $INCINTL"
10165             gt_save_LIBS="$LIBS"
10166             LIBS="$LIBS $LIBINTL"
10167                         cat >conftest.$ac_ext <<_ACEOF
10168 /* confdefs.h.  */
10169 _ACEOF
10170 cat confdefs.h >>conftest.$ac_ext
10171 cat >>conftest.$ac_ext <<_ACEOF
10172 /* end confdefs.h.  */
10173 #include <libintl.h>
10174 extern int _nl_msg_cat_cntr;
10175 extern
10176 #ifdef __cplusplus
10177 "C"
10178 #endif
10179 const char *_nl_expand_alias ();
10180 int
10181 main ()
10182 {
10183 bindtextdomain ("", "");
10184 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10185   ;
10186   return 0;
10187 }
10188 _ACEOF
10189 rm -f conftest.$ac_objext conftest$ac_exeext
10190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10191   (eval $ac_link) 2>conftest.er1
10192   ac_status=$?
10193   grep -v '^ *+' conftest.er1 >conftest.err
10194   rm -f conftest.er1
10195   cat conftest.err >&5
10196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197   (exit $ac_status); } &&
10198          { ac_try='test -z "$ac_c_werror_flag"
10199                          || test ! -s conftest.err'
10200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10201   (eval $ac_try) 2>&5
10202   ac_status=$?
10203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204   (exit $ac_status); }; } &&
10205          { ac_try='test -s conftest$ac_exeext'
10206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10207   (eval $ac_try) 2>&5
10208   ac_status=$?
10209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210   (exit $ac_status); }; }; then
10211   gt_cv_func_gnugettext1_libintl=yes
10212 else
10213   echo "$as_me: failed program was:" >&5
10214 sed 's/^/| /' conftest.$ac_ext >&5
10215
10216 gt_cv_func_gnugettext1_libintl=no
10217 fi
10218 rm -f conftest.err conftest.$ac_objext \
10219       conftest$ac_exeext conftest.$ac_ext
10220                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
10221               LIBS="$LIBS $LIBICONV"
10222               cat >conftest.$ac_ext <<_ACEOF
10223 /* confdefs.h.  */
10224 _ACEOF
10225 cat confdefs.h >>conftest.$ac_ext
10226 cat >>conftest.$ac_ext <<_ACEOF
10227 /* end confdefs.h.  */
10228 #include <libintl.h>
10229 extern int _nl_msg_cat_cntr;
10230 extern
10231 #ifdef __cplusplus
10232 "C"
10233 #endif
10234 const char *_nl_expand_alias ();
10235 int
10236 main ()
10237 {
10238 bindtextdomain ("", "");
10239 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10240   ;
10241   return 0;
10242 }
10243 _ACEOF
10244 rm -f conftest.$ac_objext conftest$ac_exeext
10245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10246   (eval $ac_link) 2>conftest.er1
10247   ac_status=$?
10248   grep -v '^ *+' conftest.er1 >conftest.err
10249   rm -f conftest.er1
10250   cat conftest.err >&5
10251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252   (exit $ac_status); } &&
10253          { ac_try='test -z "$ac_c_werror_flag"
10254                          || test ! -s conftest.err'
10255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10256   (eval $ac_try) 2>&5
10257   ac_status=$?
10258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259   (exit $ac_status); }; } &&
10260          { ac_try='test -s conftest$ac_exeext'
10261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10262   (eval $ac_try) 2>&5
10263   ac_status=$?
10264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265   (exit $ac_status); }; }; then
10266   LIBINTL="$LIBINTL $LIBICONV"
10267                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10268                 gt_cv_func_gnugettext1_libintl=yes
10269
10270 else
10271   echo "$as_me: failed program was:" >&5
10272 sed 's/^/| /' conftest.$ac_ext >&5
10273
10274 fi
10275 rm -f conftest.err conftest.$ac_objext \
10276       conftest$ac_exeext conftest.$ac_ext
10277             fi
10278             CPPFLAGS="$gt_save_CPPFLAGS"
10279             LIBS="$gt_save_LIBS"
10280 fi
10281 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
10282 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
10283         fi
10284
10285                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
10286            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
10287                 && test "$PACKAGE" != gettext-runtime \
10288                 && test "$PACKAGE" != gettext-tools; }; then
10289           gt_use_preinstalled_gnugettext=yes
10290         else
10291                     LIBINTL=
10292           LTLIBINTL=
10293           INCINTL=
10294         fi
10295
10296
10297         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10298                               nls_cv_use_gnu_gettext=yes
10299         fi
10300       fi
10301
10302       if test "$nls_cv_use_gnu_gettext" = "yes"; then
10303                 BUILD_INCLUDED_LIBINTL=yes
10304         USE_INCLUDED_LIBINTL=yes
10305         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
10306         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
10307         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
10308       fi
10309
10310       if test "$gt_use_preinstalled_gnugettext" = "yes" \
10311          || test "$nls_cv_use_gnu_gettext" = "yes"; then
10312                 CATOBJEXT=.gmo
10313       fi
10314
10315
10316     if test "$gt_use_preinstalled_gnugettext" = "yes" \
10317        || test "$nls_cv_use_gnu_gettext" = "yes"; then
10318
10319 cat >>confdefs.h <<\_ACEOF
10320 #define ENABLE_NLS 1
10321 _ACEOF
10322
10323     else
10324       USE_NLS=no
10325     fi
10326   fi
10327
10328   echo "$as_me:$LINENO: checking whether to use NLS" >&5
10329 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
10330   echo "$as_me:$LINENO: result: $USE_NLS" >&5
10331 echo "${ECHO_T}$USE_NLS" >&6
10332   if test "$USE_NLS" = "yes"; then
10333     echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10334 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
10335     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10336       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10337         gt_source="external libintl"
10338       else
10339         gt_source="libc"
10340       fi
10341     else
10342       gt_source="included intl directory"
10343     fi
10344     echo "$as_me:$LINENO: result: $gt_source" >&5
10345 echo "${ECHO_T}$gt_source" >&6
10346   fi
10347
10348   if test "$USE_NLS" = "yes"; then
10349
10350     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10351       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10352         echo "$as_me:$LINENO: checking how to link with libintl" >&5
10353 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
10354         echo "$as_me:$LINENO: result: $LIBINTL" >&5
10355 echo "${ECHO_T}$LIBINTL" >&6
10356
10357   for element in $INCINTL; do
10358     haveit=
10359     for x in $CPPFLAGS; do
10360
10361   acl_save_prefix="$prefix"
10362   prefix="$acl_final_prefix"
10363   acl_save_exec_prefix="$exec_prefix"
10364   exec_prefix="$acl_final_exec_prefix"
10365   eval x=\"$x\"
10366   exec_prefix="$acl_save_exec_prefix"
10367   prefix="$acl_save_prefix"
10368
10369       if test "X$x" = "X$element"; then
10370         haveit=yes
10371         break
10372       fi
10373     done
10374     if test -z "$haveit"; then
10375       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10376     fi
10377   done
10378
10379       fi
10380
10381
10382 cat >>confdefs.h <<\_ACEOF
10383 #define HAVE_GETTEXT 1
10384 _ACEOF
10385
10386
10387 cat >>confdefs.h <<\_ACEOF
10388 #define HAVE_DCGETTEXT 1
10389 _ACEOF
10390
10391     fi
10392
10393         POSUB=po
10394   fi
10395
10396
10397             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
10398       BUILD_INCLUDED_LIBINTL=yes
10399     fi
10400
10401
10402
10403
10404
10405         nls_cv_header_intl=
10406     nls_cv_header_libgt=
10407
10408         DATADIRNAME=share
10409
10410
10411         INSTOBJEXT=.mo
10412
10413
10414         GENCAT=gencat
10415
10416
10417         if test "$USE_INCLUDED_LIBINTL" = yes; then
10418       INTLOBJS="\$(GETTOBJS)"
10419     fi
10420
10421
10422         INTL_LIBTOOL_SUFFIX_PREFIX=
10423
10424
10425
10426     INTLLIBS="$LIBINTL"
10427
10428
10429
10430
10431
10432
10433
10434
10435 echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
10436 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
10437 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
10438   echo $ECHO_N "(cached) $ECHO_C" >&6
10439 else
10440   ac_check_lib_save_LIBS=$LIBS
10441 LIBS="-lncurses  $LIBS"
10442 cat >conftest.$ac_ext <<_ACEOF
10443 /* confdefs.h.  */
10444 _ACEOF
10445 cat confdefs.h >>conftest.$ac_ext
10446 cat >>conftest.$ac_ext <<_ACEOF
10447 /* end confdefs.h.  */
10448
10449 /* Override any gcc2 internal prototype to avoid an error.  */
10450 #ifdef __cplusplus
10451 extern "C"
10452 #endif
10453 /* We use char because int might match the return type of a gcc2
10454    builtin and then its argument prototype would still apply.  */
10455 char initscr ();
10456 int
10457 main ()
10458 {
10459 initscr ();
10460   ;
10461   return 0;
10462 }
10463 _ACEOF
10464 rm -f conftest.$ac_objext conftest$ac_exeext
10465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10466   (eval $ac_link) 2>conftest.er1
10467   ac_status=$?
10468   grep -v '^ *+' conftest.er1 >conftest.err
10469   rm -f conftest.er1
10470   cat conftest.err >&5
10471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472   (exit $ac_status); } &&
10473          { ac_try='test -z "$ac_c_werror_flag"
10474                          || test ! -s conftest.err'
10475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10476   (eval $ac_try) 2>&5
10477   ac_status=$?
10478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479   (exit $ac_status); }; } &&
10480          { ac_try='test -s conftest$ac_exeext'
10481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10482   (eval $ac_try) 2>&5
10483   ac_status=$?
10484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485   (exit $ac_status); }; }; then
10486   ac_cv_lib_ncurses_initscr=yes
10487 else
10488   echo "$as_me: failed program was:" >&5
10489 sed 's/^/| /' conftest.$ac_ext >&5
10490
10491 ac_cv_lib_ncurses_initscr=no
10492 fi
10493 rm -f conftest.err conftest.$ac_objext \
10494       conftest$ac_exeext conftest.$ac_ext
10495 LIBS=$ac_check_lib_save_LIBS
10496 fi
10497 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
10498 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
10499 if test $ac_cv_lib_ncurses_initscr = yes; then
10500   cat >>confdefs.h <<_ACEOF
10501 #define HAVE_LIBNCURSES 1
10502 _ACEOF
10503
10504   LIBS="-lncurses $LIBS"
10505
10506 else
10507   NOCURSES=yes
10508 fi
10509
10510 if test "$NOCURSES" = yes; then
10511
10512 echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
10513 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6
10514 if test "${ac_cv_lib_curses_initscr+set}" = set; then
10515   echo $ECHO_N "(cached) $ECHO_C" >&6
10516 else
10517   ac_check_lib_save_LIBS=$LIBS
10518 LIBS="-lcurses  $LIBS"
10519 cat >conftest.$ac_ext <<_ACEOF
10520 /* confdefs.h.  */
10521 _ACEOF
10522 cat confdefs.h >>conftest.$ac_ext
10523 cat >>conftest.$ac_ext <<_ACEOF
10524 /* end confdefs.h.  */
10525
10526 /* Override any gcc2 internal prototype to avoid an error.  */
10527 #ifdef __cplusplus
10528 extern "C"
10529 #endif
10530 /* We use char because int might match the return type of a gcc2
10531    builtin and then its argument prototype would still apply.  */
10532 char initscr ();
10533 int
10534 main ()
10535 {
10536 initscr ();
10537   ;
10538   return 0;
10539 }
10540 _ACEOF
10541 rm -f conftest.$ac_objext conftest$ac_exeext
10542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10543   (eval $ac_link) 2>conftest.er1
10544   ac_status=$?
10545   grep -v '^ *+' conftest.er1 >conftest.err
10546   rm -f conftest.er1
10547   cat conftest.err >&5
10548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549   (exit $ac_status); } &&
10550          { ac_try='test -z "$ac_c_werror_flag"
10551                          || test ! -s conftest.err'
10552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10553   (eval $ac_try) 2>&5
10554   ac_status=$?
10555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556   (exit $ac_status); }; } &&
10557          { ac_try='test -s conftest$ac_exeext'
10558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10559   (eval $ac_try) 2>&5
10560   ac_status=$?
10561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562   (exit $ac_status); }; }; then
10563   ac_cv_lib_curses_initscr=yes
10564 else
10565   echo "$as_me: failed program was:" >&5
10566 sed 's/^/| /' conftest.$ac_ext >&5
10567
10568 ac_cv_lib_curses_initscr=no
10569 fi
10570 rm -f conftest.err conftest.$ac_objext \
10571       conftest$ac_exeext conftest.$ac_ext
10572 LIBS=$ac_check_lib_save_LIBS
10573 fi
10574 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
10575 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6
10576 if test $ac_cv_lib_curses_initscr = yes; then
10577   cat >>confdefs.h <<_ACEOF
10578 #define HAVE_LIBCURSES 1
10579 _ACEOF
10580
10581   LIBS="-lcurses $LIBS"
10582
10583 else
10584   { { echo "$as_me:$LINENO: error: ap-utils requires installed ncurses or Sys V curses to build" >&5
10585 echo "$as_me: error: ap-utils requires installed ncurses or Sys V curses to build" >&2;}
10586    { (exit 1); exit 1; }; }
10587 fi
10588
10589 fi
10590
10591 # Check for OS and make OS define OS specific variables
10592 case "$host_os" in
10593  *bsd*|*darwin* )
10594
10595 cat >>confdefs.h <<\_ACEOF
10596 #define OS_BSD 1
10597 _ACEOF
10598
10599         case "$host_os" in
10600          netbsd* )
10601             ap_config_LDADD="-lncurses"
10602             CC="$CC -R/usr/pkg/lib -L/usr/pkg/lib -I/usr/pkg/include"
10603             ;;
10604          openbsd* )
10605             ;;
10606          *darwin* )
10607
10608 cat >>confdefs.h <<\_ACEOF
10609 #define OS_X 1
10610 _ACEOF
10611
10612             ;;
10613         esac
10614         ;;
10615  *qnx )
10616         LIBS="$LIBS -lsocket"
10617         INSTALL="config/install-sh"
10618         ;;
10619  aix4* )
10620     case "$CC" in
10621      cc* | xlc* )
10622         CC="$CC -qcpluscmt -qmaxmem=16384"
10623     esac
10624     ;;
10625  solaris* )
10626
10627 cat >>confdefs.h <<\_ACEOF
10628 #define OS_SOLARIS 1
10629 _ACEOF
10630
10631         LIBS="$LIBS -lresolv -lnls"
10632     ;;
10633  gnu*|*linux* )
10634
10635 cat >>confdefs.h <<\_ACEOF
10636 #define OS_LINUX 1
10637 _ACEOF
10638
10639         CFLAGS="$CFLAGS -Wall -W"
10640     ;;
10641 esac
10642
10643 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
10644 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
10645 if test "${ac_cv_c_bigendian+set}" = set; then
10646   echo $ECHO_N "(cached) $ECHO_C" >&6
10647 else
10648   # See if sys/param.h defines the BYTE_ORDER macro.
10649 cat >conftest.$ac_ext <<_ACEOF
10650 /* confdefs.h.  */
10651 _ACEOF
10652 cat confdefs.h >>conftest.$ac_ext
10653 cat >>conftest.$ac_ext <<_ACEOF
10654 /* end confdefs.h.  */
10655 #include <sys/types.h>
10656 #include <sys/param.h>
10657
10658 int
10659 main ()
10660 {
10661 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10662  bogus endian macros
10663 #endif
10664
10665   ;
10666   return 0;
10667 }
10668 _ACEOF
10669 rm -f conftest.$ac_objext
10670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10671   (eval $ac_compile) 2>conftest.er1
10672   ac_status=$?
10673   grep -v '^ *+' conftest.er1 >conftest.err
10674   rm -f conftest.er1
10675   cat conftest.err >&5
10676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677   (exit $ac_status); } &&
10678          { ac_try='test -z "$ac_c_werror_flag"
10679                          || test ! -s conftest.err'
10680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10681   (eval $ac_try) 2>&5
10682   ac_status=$?
10683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684   (exit $ac_status); }; } &&
10685          { ac_try='test -s conftest.$ac_objext'
10686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10687   (eval $ac_try) 2>&5
10688   ac_status=$?
10689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690   (exit $ac_status); }; }; then
10691   # It does; now see whether it defined to BIG_ENDIAN or not.
10692 cat >conftest.$ac_ext <<_ACEOF
10693 /* confdefs.h.  */
10694 _ACEOF
10695 cat confdefs.h >>conftest.$ac_ext
10696 cat >>conftest.$ac_ext <<_ACEOF
10697 /* end confdefs.h.  */
10698 #include <sys/types.h>
10699 #include <sys/param.h>
10700
10701 int
10702 main ()
10703 {
10704 #if BYTE_ORDER != BIG_ENDIAN
10705  not big endian
10706 #endif
10707
10708   ;
10709   return 0;
10710 }
10711 _ACEOF
10712 rm -f conftest.$ac_objext
10713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10714   (eval $ac_compile) 2>conftest.er1
10715   ac_status=$?
10716   grep -v '^ *+' conftest.er1 >conftest.err
10717   rm -f conftest.er1
10718   cat conftest.err >&5
10719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720   (exit $ac_status); } &&
10721          { ac_try='test -z "$ac_c_werror_flag"
10722                          || test ! -s conftest.err'
10723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10724   (eval $ac_try) 2>&5
10725   ac_status=$?
10726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727   (exit $ac_status); }; } &&
10728          { ac_try='test -s conftest.$ac_objext'
10729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10730   (eval $ac_try) 2>&5
10731   ac_status=$?
10732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733   (exit $ac_status); }; }; then
10734   ac_cv_c_bigendian=yes
10735 else
10736   echo "$as_me: failed program was:" >&5
10737 sed 's/^/| /' conftest.$ac_ext >&5
10738
10739 ac_cv_c_bigendian=no
10740 fi
10741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10742 else
10743   echo "$as_me: failed program was:" >&5
10744 sed 's/^/| /' conftest.$ac_ext >&5
10745
10746 # It does not; compile a test program.
10747 if test "$cross_compiling" = yes; then
10748   # try to guess the endianness by grepping values into an object file
10749   ac_cv_c_bigendian=unknown
10750   cat >conftest.$ac_ext <<_ACEOF
10751 /* confdefs.h.  */
10752 _ACEOF
10753 cat confdefs.h >>conftest.$ac_ext
10754 cat >>conftest.$ac_ext <<_ACEOF
10755 /* end confdefs.h.  */
10756 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10757 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10758 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
10759 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10760 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10761 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
10762 int
10763 main ()
10764 {
10765  _ascii (); _ebcdic ();
10766   ;
10767   return 0;
10768 }
10769 _ACEOF
10770 rm -f conftest.$ac_objext
10771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10772   (eval $ac_compile) 2>conftest.er1
10773   ac_status=$?
10774   grep -v '^ *+' conftest.er1 >conftest.err
10775   rm -f conftest.er1
10776   cat conftest.err >&5
10777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778   (exit $ac_status); } &&
10779          { ac_try='test -z "$ac_c_werror_flag"
10780                          || test ! -s conftest.err'
10781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10782   (eval $ac_try) 2>&5
10783   ac_status=$?
10784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785   (exit $ac_status); }; } &&
10786          { ac_try='test -s conftest.$ac_objext'
10787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10788   (eval $ac_try) 2>&5
10789   ac_status=$?
10790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791   (exit $ac_status); }; }; then
10792   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
10793   ac_cv_c_bigendian=yes
10794 fi
10795 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10796   if test "$ac_cv_c_bigendian" = unknown; then
10797     ac_cv_c_bigendian=no
10798   else
10799     # finding both strings is unlikely to happen, but who knows?
10800     ac_cv_c_bigendian=unknown
10801   fi
10802 fi
10803 else
10804   echo "$as_me: failed program was:" >&5
10805 sed 's/^/| /' conftest.$ac_ext >&5
10806
10807 fi
10808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10809 else
10810   cat >conftest.$ac_ext <<_ACEOF
10811 /* confdefs.h.  */
10812 _ACEOF
10813 cat confdefs.h >>conftest.$ac_ext
10814 cat >>conftest.$ac_ext <<_ACEOF
10815 /* end confdefs.h.  */
10816 int
10817 main ()
10818 {
10819   /* Are we little or big endian?  From Harbison&Steele.  */
10820   union
10821   {
10822     long l;
10823     char c[sizeof (long)];
10824   } u;
10825   u.l = 1;
10826   exit (u.c[sizeof (long) - 1] == 1);
10827 }
10828 _ACEOF
10829 rm -f conftest$ac_exeext
10830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10831   (eval $ac_link) 2>&5
10832   ac_status=$?
10833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10836   (eval $ac_try) 2>&5
10837   ac_status=$?
10838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839   (exit $ac_status); }; }; then
10840   ac_cv_c_bigendian=no
10841 else
10842   echo "$as_me: program exited with status $ac_status" >&5
10843 echo "$as_me: failed program was:" >&5
10844 sed 's/^/| /' conftest.$ac_ext >&5
10845
10846 ( exit $ac_status )
10847 ac_cv_c_bigendian=yes
10848 fi
10849 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10850 fi
10851 fi
10852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10853 fi
10854 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
10855 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
10856 case $ac_cv_c_bigendian in
10857   yes)
10858
10859 cat >>confdefs.h <<\_ACEOF
10860 #define WORDS_BIGENDIAN 1
10861 _ACEOF
10862  ;;
10863   no)
10864      ;;
10865   *)
10866     { { echo "$as_me:$LINENO: error: unknown endianness
10867 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
10868 echo "$as_me: error: unknown endianness
10869 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
10870    { (exit 1); exit 1; }; } ;;
10871 esac
10872
10873
10874 # Check whether --enable-regdomain or --disable-regdomain was given.
10875 if test "${enable_regdomain+set}" = set; then
10876   enableval="$enable_regdomain"
10877    case "$enableval" in
10878 no)
10879
10880 cat >>confdefs.h <<\_ACEOF
10881 #define NO_REG_DOMAIN 1
10882 _ACEOF
10883
10884  ;;
10885  esac
10886
10887 fi;
10888
10889                                                                       ac_config_files="$ac_config_files Makefile src/Makefile ap-gl/Makefile lib/Makefile po/Makefile.in intl/Makefile Documentation/Makefile"
10890 cat >confcache <<\_ACEOF
10891 # This file is a shell script that caches the results of configure
10892 # tests run on this system so they can be shared between configure
10893 # scripts and configure runs, see configure's option --config-cache.
10894 # It is not useful on other systems.  If it contains results you don't
10895 # want to keep, you may remove or edit it.
10896 #
10897 # config.status only pays attention to the cache file if you give it
10898 # the --recheck option to rerun configure.
10899 #
10900 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10901 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10902 # following values.
10903
10904 _ACEOF
10905
10906 # The following way of writing the cache mishandles newlines in values,
10907 # but we know of no workaround that is simple, portable, and efficient.
10908 # So, don't put newlines in cache variables' values.
10909 # Ultrix sh set writes to stderr and can't be redirected directly,
10910 # and sets the high bit in the cache file unless we assign to the vars.
10911 {
10912   (set) 2>&1 |
10913     case `(ac_space=' '; set | grep ac_space) 2>&1` in
10914     *ac_space=\ *)
10915       # `set' does not quote correctly, so add quotes (double-quote
10916       # substitution turns \\\\ into \\, and sed turns \\ into \).
10917       sed -n \
10918         "s/'/'\\\\''/g;
10919           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10920       ;;
10921     *)
10922       # `set' quotes correctly as required by POSIX, so do not add quotes.
10923       sed -n \
10924         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10925       ;;
10926     esac;
10927 } |
10928   sed '
10929      t clear
10930      : clear
10931      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10932      t end
10933      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10934      : end' >>confcache
10935 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10936   if test -w $cache_file; then
10937     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10938     cat confcache >$cache_file
10939   else
10940     echo "not updating unwritable cache $cache_file"
10941   fi
10942 fi
10943 rm -f confcache
10944
10945 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10946 # Let make expand exec_prefix.
10947 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10948
10949 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10950 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10951 # trailing colons and then remove the whole line if VPATH becomes empty
10952 # (actually we leave an empty line to preserve line numbers).
10953 if test "x$srcdir" = x.; then
10954   ac_vpsub='/^[  ]*VPATH[        ]*=/{
10955 s/:*\$(srcdir):*/:/;
10956 s/:*\${srcdir}:*/:/;
10957 s/:*@srcdir@:*/:/;
10958 s/^\([^=]*=[     ]*\):*/\1/;
10959 s/:*$//;
10960 s/^[^=]*=[       ]*$//;
10961 }'
10962 fi
10963
10964 DEFS=-DHAVE_CONFIG_H
10965
10966 ac_libobjs=
10967 ac_ltlibobjs=
10968 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10969   # 1. Remove the extension, and $U if already installed.
10970   ac_i=`echo "$ac_i" |
10971          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10972   # 2. Add them.
10973   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10974   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10975 done
10976 LIBOBJS=$ac_libobjs
10977
10978 LTLIBOBJS=$ac_ltlibobjs
10979
10980
10981 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10982   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10983 Usually this means the macro was only invoked conditionally." >&5
10984 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10985 Usually this means the macro was only invoked conditionally." >&2;}
10986    { (exit 1); exit 1; }; }
10987 fi
10988 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10989   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10990 Usually this means the macro was only invoked conditionally." >&5
10991 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10992 Usually this means the macro was only invoked conditionally." >&2;}
10993    { (exit 1); exit 1; }; }
10994 fi
10995
10996 : ${CONFIG_STATUS=./config.status}
10997 ac_clean_files_save=$ac_clean_files
10998 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10999 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11000 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11001 cat >$CONFIG_STATUS <<_ACEOF
11002 #! $SHELL
11003 # Generated by $as_me.
11004 # Run this file to recreate the current configuration.
11005 # Compiler output produced by configure, useful for debugging
11006 # configure, is in config.log if it exists.
11007
11008 debug=false
11009 ac_cs_recheck=false
11010 ac_cs_silent=false
11011 SHELL=\${CONFIG_SHELL-$SHELL}
11012 _ACEOF
11013
11014 cat >>$CONFIG_STATUS <<\_ACEOF
11015 ## --------------------- ##
11016 ## M4sh Initialization.  ##
11017 ## --------------------- ##
11018
11019 # Be Bourne compatible
11020 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11021   emulate sh
11022   NULLCMD=:
11023   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11024   # is contrary to our usage.  Disable this feature.
11025   alias -g '${1+"$@"}'='"$@"'
11026 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11027   set -o posix
11028 fi
11029 DUALCASE=1; export DUALCASE # for MKS sh
11030
11031 # Support unset when possible.
11032 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11033   as_unset=unset
11034 else
11035   as_unset=false
11036 fi
11037
11038
11039 # Work around bugs in pre-3.0 UWIN ksh.
11040 $as_unset ENV MAIL MAILPATH
11041 PS1='$ '
11042 PS2='> '
11043 PS4='+ '
11044
11045 # NLS nuisances.
11046 for as_var in \
11047   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11048   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11049   LC_TELEPHONE LC_TIME
11050 do
11051   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11052     eval $as_var=C; export $as_var
11053   else
11054     $as_unset $as_var
11055   fi
11056 done
11057
11058 # Required to use basename.
11059 if expr a : '\(a\)' >/dev/null 2>&1; then
11060   as_expr=expr
11061 else
11062   as_expr=false
11063 fi
11064
11065 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11066   as_basename=basename
11067 else
11068   as_basename=false
11069 fi
11070
11071
11072 # Name of the executable.
11073 as_me=`$as_basename "$0" ||
11074 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11075          X"$0" : 'X\(//\)$' \| \
11076          X"$0" : 'X\(/\)$' \| \
11077          .     : '\(.\)' 2>/dev/null ||
11078 echo X/"$0" |
11079     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11080           /^X\/\(\/\/\)$/{ s//\1/; q; }
11081           /^X\/\(\/\).*/{ s//\1/; q; }
11082           s/.*/./; q'`
11083
11084
11085 # PATH needs CR, and LINENO needs CR and PATH.
11086 # Avoid depending upon Character Ranges.
11087 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11088 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11089 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11090 as_cr_digits='0123456789'
11091 as_cr_alnum=$as_cr_Letters$as_cr_digits
11092
11093 # The user is always right.
11094 if test "${PATH_SEPARATOR+set}" != set; then
11095   echo "#! /bin/sh" >conf$$.sh
11096   echo  "exit 0"   >>conf$$.sh
11097   chmod +x conf$$.sh
11098   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11099     PATH_SEPARATOR=';'
11100   else
11101     PATH_SEPARATOR=:
11102   fi
11103   rm -f conf$$.sh
11104 fi
11105
11106
11107   as_lineno_1=$LINENO
11108   as_lineno_2=$LINENO
11109   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11110   test "x$as_lineno_1" != "x$as_lineno_2" &&
11111   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11112   # Find who we are.  Look in the path if we contain no path at all
11113   # relative or not.
11114   case $0 in
11115     *[\\/]* ) as_myself=$0 ;;
11116     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11117 for as_dir in $PATH
11118 do
11119   IFS=$as_save_IFS
11120   test -z "$as_dir" && as_dir=.
11121   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11122 done
11123
11124        ;;
11125   esac
11126   # We did not find ourselves, most probably we were run as `sh COMMAND'
11127   # in which case we are not to be found in the path.
11128   if test "x$as_myself" = x; then
11129     as_myself=$0
11130   fi
11131   if test ! -f "$as_myself"; then
11132     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11133 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11134    { (exit 1); exit 1; }; }
11135   fi
11136   case $CONFIG_SHELL in
11137   '')
11138     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11139 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11140 do
11141   IFS=$as_save_IFS
11142   test -z "$as_dir" && as_dir=.
11143   for as_base in sh bash ksh sh5; do
11144          case $as_dir in
11145          /*)
11146            if ("$as_dir/$as_base" -c '
11147   as_lineno_1=$LINENO
11148   as_lineno_2=$LINENO
11149   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11150   test "x$as_lineno_1" != "x$as_lineno_2" &&
11151   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11152              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11153              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11154              CONFIG_SHELL=$as_dir/$as_base
11155              export CONFIG_SHELL
11156              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11157            fi;;
11158          esac
11159        done
11160 done
11161 ;;
11162   esac
11163
11164   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11165   # uniformly replaced by the line number.  The first 'sed' inserts a
11166   # line-number line before each line; the second 'sed' does the real
11167   # work.  The second script uses 'N' to pair each line-number line
11168   # with the numbered line, and appends trailing '-' during
11169   # substitution so that $LINENO is not a special case at line end.
11170   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11171   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11172   sed '=' <$as_myself |
11173     sed '
11174       N
11175       s,$,-,
11176       : loop
11177       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11178       t loop
11179       s,-$,,
11180       s,^['$as_cr_digits']*\n,,
11181     ' >$as_me.lineno &&
11182   chmod +x $as_me.lineno ||
11183     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11184 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11185    { (exit 1); exit 1; }; }
11186
11187   # Don't try to exec as it changes $[0], causing all sort of problems
11188   # (the dirname of $[0] is not the place where we might find the
11189   # original and so on.  Autoconf is especially sensible to this).
11190   . ./$as_me.lineno
11191   # Exit status is that of the last command.
11192   exit
11193 }
11194
11195
11196 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11197   *c*,-n*) ECHO_N= ECHO_C='
11198 ' ECHO_T='      ' ;;
11199   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11200   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11201 esac
11202
11203 if expr a : '\(a\)' >/dev/null 2>&1; then
11204   as_expr=expr
11205 else
11206   as_expr=false
11207 fi
11208
11209 rm -f conf$$ conf$$.exe conf$$.file
11210 echo >conf$$.file
11211 if ln -s conf$$.file conf$$ 2>/dev/null; then
11212   # We could just check for DJGPP; but this test a) works b) is more generic
11213   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11214   if test -f conf$$.exe; then
11215     # Don't use ln at all; we don't have any links
11216     as_ln_s='cp -p'
11217   else
11218     as_ln_s='ln -s'
11219   fi
11220 elif ln conf$$.file conf$$ 2>/dev/null; then
11221   as_ln_s=ln
11222 else
11223   as_ln_s='cp -p'
11224 fi
11225 rm -f conf$$ conf$$.exe conf$$.file
11226
11227 if mkdir -p . 2>/dev/null; then
11228   as_mkdir_p=:
11229 else
11230   test -d ./-p && rmdir ./-p
11231   as_mkdir_p=false
11232 fi
11233
11234 as_executable_p="test -f"
11235
11236 # Sed expression to map a string onto a valid CPP name.
11237 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11238
11239 # Sed expression to map a string onto a valid variable name.
11240 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11241
11242
11243 # IFS
11244 # We need space, tab and new line, in precisely that order.
11245 as_nl='
11246 '
11247 IFS="   $as_nl"
11248
11249 # CDPATH.
11250 $as_unset CDPATH
11251
11252 exec 6>&1
11253
11254 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11255 # report actual input values of CONFIG_FILES etc. instead of their
11256 # values after options handling.  Logging --version etc. is OK.
11257 exec 5>>config.log
11258 {
11259   echo
11260   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11261 ## Running $as_me. ##
11262 _ASBOX
11263 } >&5
11264 cat >&5 <<_CSEOF
11265
11266 This file was extended by $as_me, which was
11267 generated by GNU Autoconf 2.59.  Invocation command line was
11268
11269   CONFIG_FILES    = $CONFIG_FILES
11270   CONFIG_HEADERS  = $CONFIG_HEADERS
11271   CONFIG_LINKS    = $CONFIG_LINKS
11272   CONFIG_COMMANDS = $CONFIG_COMMANDS
11273   $ $0 $@
11274
11275 _CSEOF
11276 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11277 echo >&5
11278 _ACEOF
11279
11280 # Files that config.status was made for.
11281 if test -n "$ac_config_files"; then
11282   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11283 fi
11284
11285 if test -n "$ac_config_headers"; then
11286   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11287 fi
11288
11289 if test -n "$ac_config_links"; then
11290   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11291 fi
11292
11293 if test -n "$ac_config_commands"; then
11294   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11295 fi
11296
11297 cat >>$CONFIG_STATUS <<\_ACEOF
11298
11299 ac_cs_usage="\
11300 \`$as_me' instantiates files from templates according to the
11301 current configuration.
11302
11303 Usage: $0 [OPTIONS] [FILE]...
11304
11305   -h, --help       print this help, then exit
11306   -V, --version    print version number, then exit
11307   -q, --quiet      do not print progress messages
11308   -d, --debug      don't remove temporary files
11309       --recheck    update $as_me by reconfiguring in the same conditions
11310   --file=FILE[:TEMPLATE]
11311                    instantiate the configuration file FILE
11312   --header=FILE[:TEMPLATE]
11313                    instantiate the configuration header FILE
11314
11315 Configuration files:
11316 $config_files
11317
11318 Configuration headers:
11319 $config_headers
11320
11321 Configuration commands:
11322 $config_commands
11323
11324 Report bugs to <bug-autoconf@gnu.org>."
11325 _ACEOF
11326
11327 cat >>$CONFIG_STATUS <<_ACEOF
11328 ac_cs_version="\\
11329 config.status
11330 configured by $0, generated by GNU Autoconf 2.59,
11331   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11332
11333 Copyright (C) 2003 Free Software Foundation, Inc.
11334 This config.status script is free software; the Free Software Foundation
11335 gives unlimited permission to copy, distribute and modify it."
11336 srcdir=$srcdir
11337 INSTALL="$INSTALL"
11338 _ACEOF
11339
11340 cat >>$CONFIG_STATUS <<\_ACEOF
11341 # If no file are specified by the user, then we need to provide default
11342 # value.  By we need to know if files were specified by the user.
11343 ac_need_defaults=:
11344 while test $# != 0
11345 do
11346   case $1 in
11347   --*=*)
11348     ac_option=`expr "x$1" : 'x\([^=]*\)='`
11349     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11350     ac_shift=:
11351     ;;
11352   -*)
11353     ac_option=$1
11354     ac_optarg=$2
11355     ac_shift=shift
11356     ;;
11357   *) # This is not an option, so the user has probably given explicit
11358      # arguments.
11359      ac_option=$1
11360      ac_need_defaults=false;;
11361   esac
11362
11363   case $ac_option in
11364   # Handling of the options.
11365 _ACEOF
11366 cat >>$CONFIG_STATUS <<\_ACEOF
11367   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11368     ac_cs_recheck=: ;;
11369   --version | --vers* | -V )
11370     echo "$ac_cs_version"; exit 0 ;;
11371   --he | --h)
11372     # Conflict between --help and --header
11373     { { echo "$as_me:$LINENO: error: ambiguous option: $1
11374 Try \`$0 --help' for more information." >&5
11375 echo "$as_me: error: ambiguous option: $1
11376 Try \`$0 --help' for more information." >&2;}
11377    { (exit 1); exit 1; }; };;
11378   --help | --hel | -h )
11379     echo "$ac_cs_usage"; exit 0 ;;
11380   --debug | --d* | -d )
11381     debug=: ;;
11382   --file | --fil | --fi | --f )
11383     $ac_shift
11384     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11385     ac_need_defaults=false;;
11386   --header | --heade | --head | --hea )
11387     $ac_shift
11388     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11389     ac_need_defaults=false;;
11390   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11391   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11392     ac_cs_silent=: ;;
11393
11394   # This is an error.
11395   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11396 Try \`$0 --help' for more information." >&5
11397 echo "$as_me: error: unrecognized option: $1
11398 Try \`$0 --help' for more information." >&2;}
11399    { (exit 1); exit 1; }; } ;;
11400
11401   *) ac_config_targets="$ac_config_targets $1" ;;
11402
11403   esac
11404   shift
11405 done
11406
11407 ac_configure_extra_args=
11408
11409 if $ac_cs_silent; then
11410   exec 6>/dev/null
11411   ac_configure_extra_args="$ac_configure_extra_args --silent"
11412 fi
11413
11414 _ACEOF
11415 cat >>$CONFIG_STATUS <<_ACEOF
11416 if \$ac_cs_recheck; then
11417   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11418   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11419 fi
11420
11421 _ACEOF
11422
11423 cat >>$CONFIG_STATUS <<_ACEOF
11424 #
11425 # INIT-COMMANDS section.
11426 #
11427
11428 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11429 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
11430     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
11431     # from automake.
11432     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
11433     # Capture the value of LINGUAS because we need it to compute CATALOGS.
11434     LINGUAS="${LINGUAS-%UNSET%}"
11435
11436
11437 _ACEOF
11438
11439
11440
11441 cat >>$CONFIG_STATUS <<\_ACEOF
11442 for ac_config_target in $ac_config_targets
11443 do
11444   case "$ac_config_target" in
11445   # Handling of arguments.
11446   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11447   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
11448   "ap-gl/Makefile" ) CONFIG_FILES="$CONFIG_FILES ap-gl/Makefile" ;;
11449   "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
11450   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
11451   "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
11452   "Documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES Documentation/Makefile" ;;
11453   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11454   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11455   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11456   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11457 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11458    { (exit 1); exit 1; }; };;
11459   esac
11460 done
11461
11462 # If the user did not use the arguments to specify the items to instantiate,
11463 # then the envvar interface is used.  Set only those that are not.
11464 # We use the long form for the default assignment because of an extremely
11465 # bizarre bug on SunOS 4.1.3.
11466 if $ac_need_defaults; then
11467   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11468   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11469   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11470 fi
11471
11472 # Have a temporary directory for convenience.  Make it in the build tree
11473 # simply because there is no reason to put it here, and in addition,
11474 # creating and moving files from /tmp can sometimes cause problems.
11475 # Create a temporary directory, and hook for its removal unless debugging.
11476 $debug ||
11477 {
11478   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11479   trap '{ (exit 1); exit 1; }' 1 2 13 15
11480 }
11481
11482 # Create a (secure) tmp directory for tmp files.
11483
11484 {
11485   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11486   test -n "$tmp" && test -d "$tmp"
11487 }  ||
11488 {
11489   tmp=./confstat$$-$RANDOM
11490   (umask 077 && mkdir $tmp)
11491 } ||
11492 {
11493    echo "$me: cannot create a temporary directory in ." >&2
11494    { (exit 1); exit 1; }
11495 }
11496
11497 _ACEOF
11498
11499 cat >>$CONFIG_STATUS <<_ACEOF
11500
11501 #
11502 # CONFIG_FILES section.
11503 #
11504
11505 # No need to generate the scripts if there are no CONFIG_FILES.
11506 # This happens for instance when ./config.status config.h
11507 if test -n "\$CONFIG_FILES"; then
11508   # Protect against being on the right side of a sed subst in config.status.
11509   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11510    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11511 s,@SHELL@,$SHELL,;t t
11512 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11513 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11514 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11515 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11516 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11517 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11518 s,@exec_prefix@,$exec_prefix,;t t
11519 s,@prefix@,$prefix,;t t
11520 s,@program_transform_name@,$program_transform_name,;t t
11521 s,@bindir@,$bindir,;t t
11522 s,@sbindir@,$sbindir,;t t
11523 s,@libexecdir@,$libexecdir,;t t
11524 s,@datadir@,$datadir,;t t
11525 s,@sysconfdir@,$sysconfdir,;t t
11526 s,@sharedstatedir@,$sharedstatedir,;t t
11527 s,@localstatedir@,$localstatedir,;t t
11528 s,@libdir@,$libdir,;t t
11529 s,@includedir@,$includedir,;t t
11530 s,@oldincludedir@,$oldincludedir,;t t
11531 s,@infodir@,$infodir,;t t
11532 s,@mandir@,$mandir,;t t
11533 s,@build_alias@,$build_alias,;t t
11534 s,@host_alias@,$host_alias,;t t
11535 s,@target_alias@,$target_alias,;t t
11536 s,@DEFS@,$DEFS,;t t
11537 s,@ECHO_C@,$ECHO_C,;t t
11538 s,@ECHO_N@,$ECHO_N,;t t
11539 s,@ECHO_T@,$ECHO_T,;t t
11540 s,@LIBS@,$LIBS,;t t
11541 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11542 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11543 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11544 s,@CYGPATH_W@,$CYGPATH_W,;t t
11545 s,@PACKAGE@,$PACKAGE,;t t
11546 s,@VERSION@,$VERSION,;t t
11547 s,@ACLOCAL@,$ACLOCAL,;t t
11548 s,@AUTOCONF@,$AUTOCONF,;t t
11549 s,@AUTOMAKE@,$AUTOMAKE,;t t
11550 s,@AUTOHEADER@,$AUTOHEADER,;t t
11551 s,@MAKEINFO@,$MAKEINFO,;t t
11552 s,@AMTAR@,$AMTAR,;t t
11553 s,@install_sh@,$install_sh,;t t
11554 s,@STRIP@,$STRIP,;t t
11555 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11556 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11557 s,@AWK@,$AWK,;t t
11558 s,@SET_MAKE@,$SET_MAKE,;t t
11559 s,@am__leading_dot@,$am__leading_dot,;t t
11560 s,@CC@,$CC,;t t
11561 s,@CFLAGS@,$CFLAGS,;t t
11562 s,@LDFLAGS@,$LDFLAGS,;t t
11563 s,@CPPFLAGS@,$CPPFLAGS,;t t
11564 s,@ac_ct_CC@,$ac_ct_CC,;t t
11565 s,@EXEEXT@,$EXEEXT,;t t
11566 s,@OBJEXT@,$OBJEXT,;t t
11567 s,@DEPDIR@,$DEPDIR,;t t
11568 s,@am__include@,$am__include,;t t
11569 s,@am__quote@,$am__quote,;t t
11570 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11571 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11572 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11573 s,@CCDEPMODE@,$CCDEPMODE,;t t
11574 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11575 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11576 s,@RANLIB@,$RANLIB,;t t
11577 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11578 s,@CPP@,$CPP,;t t
11579 s,@EGREP@,$EGREP,;t t
11580 s,@LIBOBJS@,$LIBOBJS,;t t
11581 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
11582 s,@USE_NLS@,$USE_NLS,;t t
11583 s,@MSGFMT@,$MSGFMT,;t t
11584 s,@GMSGFMT@,$GMSGFMT,;t t
11585 s,@XGETTEXT@,$XGETTEXT,;t t
11586 s,@MSGMERGE@,$MSGMERGE,;t t
11587 s,@build@,$build,;t t
11588 s,@build_cpu@,$build_cpu,;t t
11589 s,@build_vendor@,$build_vendor,;t t
11590 s,@build_os@,$build_os,;t t
11591 s,@host@,$host,;t t
11592 s,@host_cpu@,$host_cpu,;t t
11593 s,@host_vendor@,$host_vendor,;t t
11594 s,@host_os@,$host_os,;t t
11595 s,@ALLOCA@,$ALLOCA,;t t
11596 s,@GLIBC21@,$GLIBC21,;t t
11597 s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
11598 s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
11599 s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
11600 s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
11601 s,@LIBICONV@,$LIBICONV,;t t
11602 s,@LTLIBICONV@,$LTLIBICONV,;t t
11603 s,@INTLBISON@,$INTLBISON,;t t
11604 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
11605 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
11606 s,@CATOBJEXT@,$CATOBJEXT,;t t
11607 s,@DATADIRNAME@,$DATADIRNAME,;t t
11608 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
11609 s,@GENCAT@,$GENCAT,;t t
11610 s,@INTLOBJS@,$INTLOBJS,;t t
11611 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
11612 s,@INTLLIBS@,$INTLLIBS,;t t
11613 s,@LIBINTL@,$LIBINTL,;t t
11614 s,@LTLIBINTL@,$LTLIBINTL,;t t
11615 s,@POSUB@,$POSUB,;t t
11616 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11617 CEOF
11618
11619 _ACEOF
11620
11621   cat >>$CONFIG_STATUS <<\_ACEOF
11622   # Split the substitutions into bite-sized pieces for seds with
11623   # small command number limits, like on Digital OSF/1 and HP-UX.
11624   ac_max_sed_lines=48
11625   ac_sed_frag=1 # Number of current file.
11626   ac_beg=1 # First line for current file.
11627   ac_end=$ac_max_sed_lines # Line after last line for current file.
11628   ac_more_lines=:
11629   ac_sed_cmds=
11630   while $ac_more_lines; do
11631     if test $ac_beg -gt 1; then
11632       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11633     else
11634       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11635     fi
11636     if test ! -s $tmp/subs.frag; then
11637       ac_more_lines=false
11638     else
11639       # The purpose of the label and of the branching condition is to
11640       # speed up the sed processing (if there are no `@' at all, there
11641       # is no need to browse any of the substitutions).
11642       # These are the two extra sed commands mentioned above.
11643       (echo ':t
11644   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11645       if test -z "$ac_sed_cmds"; then
11646         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11647       else
11648         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11649       fi
11650       ac_sed_frag=`expr $ac_sed_frag + 1`
11651       ac_beg=$ac_end
11652       ac_end=`expr $ac_end + $ac_max_sed_lines`
11653     fi
11654   done
11655   if test -z "$ac_sed_cmds"; then
11656     ac_sed_cmds=cat
11657   fi
11658 fi # test -n "$CONFIG_FILES"
11659
11660 _ACEOF
11661 cat >>$CONFIG_STATUS <<\_ACEOF
11662 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11663   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11664   case $ac_file in
11665   - | *:- | *:-:* ) # input from stdin
11666         cat >$tmp/stdin
11667         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11668         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11669   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11670         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11671   * )   ac_file_in=$ac_file.in ;;
11672   esac
11673
11674   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11675   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11676 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11677          X"$ac_file" : 'X\(//\)[^/]' \| \
11678          X"$ac_file" : 'X\(//\)$' \| \
11679          X"$ac_file" : 'X\(/\)' \| \
11680          .     : '\(.\)' 2>/dev/null ||
11681 echo X"$ac_file" |
11682     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11683           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11684           /^X\(\/\/\)$/{ s//\1/; q; }
11685           /^X\(\/\).*/{ s//\1/; q; }
11686           s/.*/./; q'`
11687   { if $as_mkdir_p; then
11688     mkdir -p "$ac_dir"
11689   else
11690     as_dir="$ac_dir"
11691     as_dirs=
11692     while test ! -d "$as_dir"; do
11693       as_dirs="$as_dir $as_dirs"
11694       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11695 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11696          X"$as_dir" : 'X\(//\)[^/]' \| \
11697          X"$as_dir" : 'X\(//\)$' \| \
11698          X"$as_dir" : 'X\(/\)' \| \
11699          .     : '\(.\)' 2>/dev/null ||
11700 echo X"$as_dir" |
11701     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11702           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11703           /^X\(\/\/\)$/{ s//\1/; q; }
11704           /^X\(\/\).*/{ s//\1/; q; }
11705           s/.*/./; q'`
11706     done
11707     test ! -n "$as_dirs" || mkdir $as_dirs
11708   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11709 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11710    { (exit 1); exit 1; }; }; }
11711
11712   ac_builddir=.
11713
11714 if test "$ac_dir" != .; then
11715   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11716   # A "../" for each directory in $ac_dir_suffix.
11717   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11718 else
11719   ac_dir_suffix= ac_top_builddir=
11720 fi
11721
11722 case $srcdir in
11723   .)  # No --srcdir option.  We are building in place.
11724     ac_srcdir=.
11725     if test -z "$ac_top_builddir"; then
11726        ac_top_srcdir=.
11727     else
11728        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11729     fi ;;
11730   [\\/]* | ?:[\\/]* )  # Absolute path.
11731     ac_srcdir=$srcdir$ac_dir_suffix;
11732     ac_top_srcdir=$srcdir ;;
11733   *) # Relative path.
11734     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11735     ac_top_srcdir=$ac_top_builddir$srcdir ;;
11736 esac
11737
11738 # Do not use `cd foo && pwd` to compute absolute paths, because
11739 # the directories may not exist.
11740 case `pwd` in
11741 .) ac_abs_builddir="$ac_dir";;
11742 *)
11743   case "$ac_dir" in
11744   .) ac_abs_builddir=`pwd`;;
11745   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11746   *) ac_abs_builddir=`pwd`/"$ac_dir";;
11747   esac;;
11748 esac
11749 case $ac_abs_builddir in
11750 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11751 *)
11752   case ${ac_top_builddir}. in
11753   .) ac_abs_top_builddir=$ac_abs_builddir;;
11754   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11755   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11756   esac;;
11757 esac
11758 case $ac_abs_builddir in
11759 .) ac_abs_srcdir=$ac_srcdir;;
11760 *)
11761   case $ac_srcdir in
11762   .) ac_abs_srcdir=$ac_abs_builddir;;
11763   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11764   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11765   esac;;
11766 esac
11767 case $ac_abs_builddir in
11768 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11769 *)
11770   case $ac_top_srcdir in
11771   .) ac_abs_top_srcdir=$ac_abs_builddir;;
11772   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11773   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11774   esac;;
11775 esac
11776
11777
11778   case $INSTALL in
11779   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11780   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11781   esac
11782
11783   if test x"$ac_file" != x-; then
11784     { echo "$as_me:$LINENO: creating $ac_file" >&5
11785 echo "$as_me: creating $ac_file" >&6;}
11786     rm -f "$ac_file"
11787   fi
11788   # Let's still pretend it is `configure' which instantiates (i.e., don't
11789   # use $as_me), people would be surprised to read:
11790   #    /* config.h.  Generated by config.status.  */
11791   if test x"$ac_file" = x-; then
11792     configure_input=
11793   else
11794     configure_input="$ac_file.  "
11795   fi
11796   configure_input=$configure_input"Generated from `echo $ac_file_in |
11797                                      sed 's,.*/,,'` by configure."
11798
11799   # First look for the input files in the build tree, otherwise in the
11800   # src tree.
11801   ac_file_inputs=`IFS=:
11802     for f in $ac_file_in; do
11803       case $f in
11804       -) echo $tmp/stdin ;;
11805       [\\/$]*)
11806          # Absolute (can't be DOS-style, as IFS=:)
11807          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11808 echo "$as_me: error: cannot find input file: $f" >&2;}
11809    { (exit 1); exit 1; }; }
11810          echo "$f";;
11811       *) # Relative
11812          if test -f "$f"; then
11813            # Build tree
11814            echo "$f"
11815          elif test -f "$srcdir/$f"; then
11816            # Source tree
11817            echo "$srcdir/$f"
11818          else
11819            # /dev/null tree
11820            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11821 echo "$as_me: error: cannot find input file: $f" >&2;}
11822    { (exit 1); exit 1; }; }
11823          fi;;
11824       esac
11825     done` || { (exit 1); exit 1; }
11826 _ACEOF
11827 cat >>$CONFIG_STATUS <<_ACEOF
11828   sed "$ac_vpsub
11829 $extrasub
11830 _ACEOF
11831 cat >>$CONFIG_STATUS <<\_ACEOF
11832 :t
11833 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11834 s,@configure_input@,$configure_input,;t t
11835 s,@srcdir@,$ac_srcdir,;t t
11836 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11837 s,@top_srcdir@,$ac_top_srcdir,;t t
11838 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11839 s,@builddir@,$ac_builddir,;t t
11840 s,@abs_builddir@,$ac_abs_builddir,;t t
11841 s,@top_builddir@,$ac_top_builddir,;t t
11842 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11843 s,@INSTALL@,$ac_INSTALL,;t t
11844 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11845   rm -f $tmp/stdin
11846   if test x"$ac_file" != x-; then
11847     mv $tmp/out $ac_file
11848   else
11849     cat $tmp/out
11850     rm -f $tmp/out
11851   fi
11852
11853 done
11854 _ACEOF
11855 cat >>$CONFIG_STATUS <<\_ACEOF
11856
11857 #
11858 # CONFIG_HEADER section.
11859 #
11860
11861 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11862 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11863 #
11864 # ac_d sets the value in "#define NAME VALUE" lines.
11865 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
11866 ac_dB='[         ].*$,\1#\2'
11867 ac_dC=' '
11868 ac_dD=',;t'
11869 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11870 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
11871 ac_uB='$,\1#\2define\3'
11872 ac_uC=' '
11873 ac_uD=',;t'
11874
11875 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11876   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11877   case $ac_file in
11878   - | *:- | *:-:* ) # input from stdin
11879         cat >$tmp/stdin
11880         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11881         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11882   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11883         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11884   * )   ac_file_in=$ac_file.in ;;
11885   esac
11886
11887   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11888 echo "$as_me: creating $ac_file" >&6;}
11889
11890   # First look for the input files in the build tree, otherwise in the
11891   # src tree.
11892   ac_file_inputs=`IFS=:
11893     for f in $ac_file_in; do
11894       case $f in
11895       -) echo $tmp/stdin ;;
11896       [\\/$]*)
11897          # Absolute (can't be DOS-style, as IFS=:)
11898          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11899 echo "$as_me: error: cannot find input file: $f" >&2;}
11900    { (exit 1); exit 1; }; }
11901          # Do quote $f, to prevent DOS paths from being IFS'd.
11902          echo "$f";;
11903       *) # Relative
11904          if test -f "$f"; then
11905            # Build tree
11906            echo "$f"
11907          elif test -f "$srcdir/$f"; then
11908            # Source tree
11909            echo "$srcdir/$f"
11910          else
11911            # /dev/null tree
11912            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11913 echo "$as_me: error: cannot find input file: $f" >&2;}
11914    { (exit 1); exit 1; }; }
11915          fi;;
11916       esac
11917     done` || { (exit 1); exit 1; }
11918   # Remove the trailing spaces.
11919   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
11920
11921 _ACEOF
11922
11923 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11924 # `conftest.undefs', that substitutes the proper values into
11925 # config.h.in to produce config.h.  The first handles `#define'
11926 # templates, and the second `#undef' templates.
11927 # And first: Protect against being on the right side of a sed subst in
11928 # config.status.  Protect against being in an unquoted here document
11929 # in config.status.
11930 rm -f conftest.defines conftest.undefs
11931 # Using a here document instead of a string reduces the quoting nightmare.
11932 # Putting comments in sed scripts is not portable.
11933 #
11934 # `end' is used to avoid that the second main sed command (meant for
11935 # 0-ary CPP macros) applies to n-ary macro definitions.
11936 # See the Autoconf documentation for `clear'.
11937 cat >confdef2sed.sed <<\_ACEOF
11938 s/[\\&,]/\\&/g
11939 s,[\\$`],\\&,g
11940 t clear
11941 : clear
11942 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11943 t end
11944 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11945 : end
11946 _ACEOF
11947 # If some macros were called several times there might be several times
11948 # the same #defines, which is useless.  Nevertheless, we may not want to
11949 # sort them, since we want the *last* AC-DEFINE to be honored.
11950 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11951 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11952 rm -f confdef2sed.sed
11953
11954 # This sed command replaces #undef with comments.  This is necessary, for
11955 # example, in the case of _POSIX_SOURCE, which is predefined and required
11956 # on some systems where configure will not decide to define it.
11957 cat >>conftest.undefs <<\_ACEOF
11958 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11959 _ACEOF
11960
11961 # Break up conftest.defines because some shells have a limit on the size
11962 # of here documents, and old seds have small limits too (100 cmds).
11963 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11964 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11965 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11966 echo '  :' >>$CONFIG_STATUS
11967 rm -f conftest.tail
11968 while grep . conftest.defines >/dev/null
11969 do
11970   # Write a limited-size here document to $tmp/defines.sed.
11971   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11972   # Speed up: don't consider the non `#define' lines.
11973   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
11974   # Work around the forget-to-reset-the-flag bug.
11975   echo 't clr' >>$CONFIG_STATUS
11976   echo ': clr' >>$CONFIG_STATUS
11977   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11978   echo 'CEOF
11979   sed -f $tmp/defines.sed $tmp/in >$tmp/out
11980   rm -f $tmp/in
11981   mv $tmp/out $tmp/in
11982 ' >>$CONFIG_STATUS
11983   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11984   rm -f conftest.defines
11985   mv conftest.tail conftest.defines
11986 done
11987 rm -f conftest.defines
11988 echo '  fi # grep' >>$CONFIG_STATUS
11989 echo >>$CONFIG_STATUS
11990
11991 # Break up conftest.undefs because some shells have a limit on the size
11992 # of here documents, and old seds have small limits too (100 cmds).
11993 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
11994 rm -f conftest.tail
11995 while grep . conftest.undefs >/dev/null
11996 do
11997   # Write a limited-size here document to $tmp/undefs.sed.
11998   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11999   # Speed up: don't consider the non `#undef'
12000   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
12001   # Work around the forget-to-reset-the-flag bug.
12002   echo 't clr' >>$CONFIG_STATUS
12003   echo ': clr' >>$CONFIG_STATUS
12004   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12005   echo 'CEOF
12006   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12007   rm -f $tmp/in
12008   mv $tmp/out $tmp/in
12009 ' >>$CONFIG_STATUS
12010   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12011   rm -f conftest.undefs
12012   mv conftest.tail conftest.undefs
12013 done
12014 rm -f conftest.undefs
12015
12016 cat >>$CONFIG_STATUS <<\_ACEOF
12017   # Let's still pretend it is `configure' which instantiates (i.e., don't
12018   # use $as_me), people would be surprised to read:
12019   #    /* config.h.  Generated by config.status.  */
12020   if test x"$ac_file" = x-; then
12021     echo "/* Generated by configure.  */" >$tmp/config.h
12022   else
12023     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
12024   fi
12025   cat $tmp/in >>$tmp/config.h
12026   rm -f $tmp/in
12027   if test x"$ac_file" != x-; then
12028     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12029       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12030 echo "$as_me: $ac_file is unchanged" >&6;}
12031     else
12032       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12033 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12034          X"$ac_file" : 'X\(//\)[^/]' \| \
12035          X"$ac_file" : 'X\(//\)$' \| \
12036          X"$ac_file" : 'X\(/\)' \| \
12037          .     : '\(.\)' 2>/dev/null ||
12038 echo X"$ac_file" |
12039     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12040           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12041           /^X\(\/\/\)$/{ s//\1/; q; }
12042           /^X\(\/\).*/{ s//\1/; q; }
12043           s/.*/./; q'`
12044       { if $as_mkdir_p; then
12045     mkdir -p "$ac_dir"
12046   else
12047     as_dir="$ac_dir"
12048     as_dirs=
12049     while test ! -d "$as_dir"; do
12050       as_dirs="$as_dir $as_dirs"
12051       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12052 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12053          X"$as_dir" : 'X\(//\)[^/]' \| \
12054          X"$as_dir" : 'X\(//\)$' \| \
12055          X"$as_dir" : 'X\(/\)' \| \
12056          .     : '\(.\)' 2>/dev/null ||
12057 echo X"$as_dir" |
12058     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12059           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12060           /^X\(\/\/\)$/{ s//\1/; q; }
12061           /^X\(\/\).*/{ s//\1/; q; }
12062           s/.*/./; q'`
12063     done
12064     test ! -n "$as_dirs" || mkdir $as_dirs
12065   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12066 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12067    { (exit 1); exit 1; }; }; }
12068
12069       rm -f $ac_file
12070       mv $tmp/config.h $ac_file
12071     fi
12072   else
12073     cat $tmp/config.h
12074     rm -f $tmp/config.h
12075   fi
12076 # Compute $ac_file's index in $config_headers.
12077 _am_stamp_count=1
12078 for _am_header in $config_headers :; do
12079   case $_am_header in
12080     $ac_file | $ac_file:* )
12081       break ;;
12082     * )
12083       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12084   esac
12085 done
12086 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12087 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12088          X$ac_file : 'X\(//\)[^/]' \| \
12089          X$ac_file : 'X\(//\)$' \| \
12090          X$ac_file : 'X\(/\)' \| \
12091          .     : '\(.\)' 2>/dev/null ||
12092 echo X$ac_file |
12093     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12094           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12095           /^X\(\/\/\)$/{ s//\1/; q; }
12096           /^X\(\/\).*/{ s//\1/; q; }
12097           s/.*/./; q'`/stamp-h$_am_stamp_count
12098 done
12099 _ACEOF
12100 cat >>$CONFIG_STATUS <<\_ACEOF
12101
12102 #
12103 # CONFIG_COMMANDS section.
12104 #
12105 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12106   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12107   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12108   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12109 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12110          X"$ac_dest" : 'X\(//\)[^/]' \| \
12111          X"$ac_dest" : 'X\(//\)$' \| \
12112          X"$ac_dest" : 'X\(/\)' \| \
12113          .     : '\(.\)' 2>/dev/null ||
12114 echo X"$ac_dest" |
12115     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12116           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12117           /^X\(\/\/\)$/{ s//\1/; q; }
12118           /^X\(\/\).*/{ s//\1/; q; }
12119           s/.*/./; q'`
12120   { if $as_mkdir_p; then
12121     mkdir -p "$ac_dir"
12122   else
12123     as_dir="$ac_dir"
12124     as_dirs=
12125     while test ! -d "$as_dir"; do
12126       as_dirs="$as_dir $as_dirs"
12127       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12128 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12129          X"$as_dir" : 'X\(//\)[^/]' \| \
12130          X"$as_dir" : 'X\(//\)$' \| \
12131          X"$as_dir" : 'X\(/\)' \| \
12132          .     : '\(.\)' 2>/dev/null ||
12133 echo X"$as_dir" |
12134     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12135           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12136           /^X\(\/\/\)$/{ s//\1/; q; }
12137           /^X\(\/\).*/{ s//\1/; q; }
12138           s/.*/./; q'`
12139     done
12140     test ! -n "$as_dirs" || mkdir $as_dirs
12141   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12142 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12143    { (exit 1); exit 1; }; }; }
12144
12145   ac_builddir=.
12146
12147 if test "$ac_dir" != .; then
12148   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12149   # A "../" for each directory in $ac_dir_suffix.
12150   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12151 else
12152   ac_dir_suffix= ac_top_builddir=
12153 fi
12154
12155 case $srcdir in
12156   .)  # No --srcdir option.  We are building in place.
12157     ac_srcdir=.
12158     if test -z "$ac_top_builddir"; then
12159        ac_top_srcdir=.
12160     else
12161        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12162     fi ;;
12163   [\\/]* | ?:[\\/]* )  # Absolute path.
12164     ac_srcdir=$srcdir$ac_dir_suffix;
12165     ac_top_srcdir=$srcdir ;;
12166   *) # Relative path.
12167     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12168     ac_top_srcdir=$ac_top_builddir$srcdir ;;
12169 esac
12170
12171 # Do not use `cd foo && pwd` to compute absolute paths, because
12172 # the directories may not exist.
12173 case `pwd` in
12174 .) ac_abs_builddir="$ac_dir";;
12175 *)
12176   case "$ac_dir" in
12177   .) ac_abs_builddir=`pwd`;;
12178   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12179   *) ac_abs_builddir=`pwd`/"$ac_dir";;
12180   esac;;
12181 esac
12182 case $ac_abs_builddir in
12183 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12184 *)
12185   case ${ac_top_builddir}. in
12186   .) ac_abs_top_builddir=$ac_abs_builddir;;
12187   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12188   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12189   esac;;
12190 esac
12191 case $ac_abs_builddir in
12192 .) ac_abs_srcdir=$ac_srcdir;;
12193 *)
12194   case $ac_srcdir in
12195   .) ac_abs_srcdir=$ac_abs_builddir;;
12196   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12197   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12198   esac;;
12199 esac
12200 case $ac_abs_builddir in
12201 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12202 *)
12203   case $ac_top_srcdir in
12204   .) ac_abs_top_srcdir=$ac_abs_builddir;;
12205   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12206   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12207   esac;;
12208 esac
12209
12210
12211   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12212 echo "$as_me: executing $ac_dest commands" >&6;}
12213   case $ac_dest in
12214     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12215   # Strip MF so we end up with the name of the file.
12216   mf=`echo "$mf" | sed -e 's/:.*$//'`
12217   # Check whether this is an Automake generated Makefile or not.
12218   # We used to match only the files named `Makefile.in', but
12219   # some people rename them; so instead we look at the file content.
12220   # Grep'ing the first line is not enough: some people post-process
12221   # each Makefile.in and add a new line on top of each file to say so.
12222   # So let's grep whole file.
12223   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12224     dirpart=`(dirname "$mf") 2>/dev/null ||
12225 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12226          X"$mf" : 'X\(//\)[^/]' \| \
12227          X"$mf" : 'X\(//\)$' \| \
12228          X"$mf" : 'X\(/\)' \| \
12229          .     : '\(.\)' 2>/dev/null ||
12230 echo X"$mf" |
12231     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12232           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12233           /^X\(\/\/\)$/{ s//\1/; q; }
12234           /^X\(\/\).*/{ s//\1/; q; }
12235           s/.*/./; q'`
12236   else
12237     continue
12238   fi
12239   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
12240   # Extract the definition of DEP_FILES from the Makefile without
12241   # running `make'.
12242   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
12243   test -z "$DEPDIR" && continue
12244   # When using ansi2knr, U may be empty or an underscore; expand it
12245   U=`sed -n -e '/^U = / s///p' < "$mf"`
12246   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
12247   # We invoke sed twice because it is the simplest approach to
12248   # changing $(DEPDIR) to its actual value in the expansion.
12249   for file in `sed -n -e '
12250     /^DEP_FILES = .*\\\\$/ {
12251       s/^DEP_FILES = //
12252       :loop
12253         s/\\\\$//
12254         p
12255         n
12256         /\\\\$/ b loop
12257       p
12258     }
12259     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
12260        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12261     # Make sure the directory exists.
12262     test -f "$dirpart/$file" && continue
12263     fdir=`(dirname "$file") 2>/dev/null ||
12264 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12265          X"$file" : 'X\(//\)[^/]' \| \
12266          X"$file" : 'X\(//\)$' \| \
12267          X"$file" : 'X\(/\)' \| \
12268          .     : '\(.\)' 2>/dev/null ||
12269 echo X"$file" |
12270     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12271           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12272           /^X\(\/\/\)$/{ s//\1/; q; }
12273           /^X\(\/\).*/{ s//\1/; q; }
12274           s/.*/./; q'`
12275     { if $as_mkdir_p; then
12276     mkdir -p $dirpart/$fdir
12277   else
12278     as_dir=$dirpart/$fdir
12279     as_dirs=
12280     while test ! -d "$as_dir"; do
12281       as_dirs="$as_dir $as_dirs"
12282       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12283 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12284          X"$as_dir" : 'X\(//\)[^/]' \| \
12285          X"$as_dir" : 'X\(//\)$' \| \
12286          X"$as_dir" : 'X\(/\)' \| \
12287          .     : '\(.\)' 2>/dev/null ||
12288 echo X"$as_dir" |
12289     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12290           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12291           /^X\(\/\/\)$/{ s//\1/; q; }
12292           /^X\(\/\).*/{ s//\1/; q; }
12293           s/.*/./; q'`
12294     done
12295     test ! -n "$as_dirs" || mkdir $as_dirs
12296   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12297 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12298    { (exit 1); exit 1; }; }; }
12299
12300     # echo "creating $dirpart/$file"
12301     echo '# dummy' > "$dirpart/$file"
12302   done
12303 done
12304  ;;
12305     default-1 )
12306     for ac_file in $CONFIG_FILES; do
12307       # Support "outfile[:infile[:infile...]]"
12308       case "$ac_file" in
12309         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12310       esac
12311       # PO directories have a Makefile.in generated from Makefile.in.in.
12312       case "$ac_file" in */Makefile.in)
12313         # Adjust a relative srcdir.
12314         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12315         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12316         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12317         # In autoconf-2.13 it is called $ac_given_srcdir.
12318         # In autoconf-2.50 it is called $srcdir.
12319         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12320         case "$ac_given_srcdir" in
12321           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12322           /*) top_srcdir="$ac_given_srcdir" ;;
12323           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
12324         esac
12325         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12326           rm -f "$ac_dir/POTFILES"
12327           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12328           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12329           POMAKEFILEDEPS="POTFILES.in"
12330           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12331           # on $ac_dir but don't depend on user-specified configuration
12332           # parameters.
12333           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12334             # The LINGUAS file contains the set of available languages.
12335             if test -n "$OBSOLETE_ALL_LINGUAS"; then
12336               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12337             fi
12338             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12339             # Hide the ALL_LINGUAS assigment from automake.
12340             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12341             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12342           else
12343             # The set of available languages was given in configure.in.
12344             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12345           fi
12346           # Compute POFILES
12347           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12348           # Compute UPDATEPOFILES
12349           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12350           # Compute DUMMYPOFILES
12351           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12352           # Compute GMOFILES
12353           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12354           case "$ac_given_srcdir" in
12355             .) srcdirpre= ;;
12356             *) srcdirpre='$(srcdir)/' ;;
12357           esac
12358           POFILES=
12359           UPDATEPOFILES=
12360           DUMMYPOFILES=
12361           GMOFILES=
12362           for lang in $ALL_LINGUAS; do
12363             POFILES="$POFILES $srcdirpre$lang.po"
12364             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12365             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12366             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12367           done
12368           # CATALOGS depends on both $ac_dir and the user's LINGUAS
12369           # environment variable.
12370           INST_LINGUAS=
12371           if test -n "$ALL_LINGUAS"; then
12372             for presentlang in $ALL_LINGUAS; do
12373               useit=no
12374               if test "%UNSET%" != "$LINGUAS"; then
12375                 desiredlanguages="$LINGUAS"
12376               else
12377                 desiredlanguages="$ALL_LINGUAS"
12378               fi
12379               for desiredlang in $desiredlanguages; do
12380                 # Use the presentlang catalog if desiredlang is
12381                 #   a. equal to presentlang, or
12382                 #   b. a variant of presentlang (because in this case,
12383                 #      presentlang can be used as a fallback for messages
12384                 #      which are not translated in the desiredlang catalog).
12385                 case "$desiredlang" in
12386                   "$presentlang"*) useit=yes;;
12387                 esac
12388               done
12389               if test $useit = yes; then
12390                 INST_LINGUAS="$INST_LINGUAS $presentlang"
12391               fi
12392             done
12393           fi
12394           CATALOGS=
12395           if test -n "$INST_LINGUAS"; then
12396             for lang in $INST_LINGUAS; do
12397               CATALOGS="$CATALOGS $lang.gmo"
12398             done
12399           fi
12400           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12401           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"
12402           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12403             if test -f "$f"; then
12404               case "$f" in
12405                 *.orig | *.bak | *~) ;;
12406                 *) cat "$f" >> "$ac_dir/Makefile" ;;
12407               esac
12408             fi
12409           done
12410         fi
12411         ;;
12412       esac
12413     done ;;
12414   esac
12415 done
12416 _ACEOF
12417
12418 cat >>$CONFIG_STATUS <<\_ACEOF
12419
12420 { (exit 0); exit 0; }
12421 _ACEOF
12422 chmod +x $CONFIG_STATUS
12423 ac_clean_files=$ac_clean_files_save
12424
12425
12426 # configure is writing to config.log, and then calls config.status.
12427 # config.status does its own redirection, appending to config.log.
12428 # Unfortunately, on DOS this fails, as config.log is still kept open
12429 # by configure, so config.status won't be able to write to it; its
12430 # output is simply discarded.  So we exec the FD to /dev/null,
12431 # effectively closing config.log, so it can be properly (re)opened and
12432 # appended to by config.status.  When coming back to configure, we
12433 # need to make the FD available again.
12434 if test "$no_create" != yes; then
12435   ac_cs_success=:
12436   ac_config_status_args=
12437   test "$silent" = yes &&
12438     ac_config_status_args="$ac_config_status_args --quiet"
12439   exec 5>/dev/null
12440   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12441   exec 5>>config.log
12442   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12443   # would make configure fail if this is the last instruction.
12444   $ac_cs_success || { (exit 1); exit 1; }
12445 fi
12446
12447
12448 echo "
12449
12450         Thank you for using ap-utils.
12451
12452 "