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