• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for GNU Bison 2.3.
4#
5# Report bugs to <bug-bison@gnu.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization.  ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22  set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28  as_unset=unset
29else
30  as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44  LC_TELEPHONE LC_TIME
45do
46  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47    eval $as_var=C; export $as_var
48  else
49    $as_unset $as_var
50  fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55  as_expr=expr
56else
57  as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61  as_basename=basename
62else
63  as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70	 X"$0" : 'X\(//\)$' \| \
71	 X"$0" : 'X\(/\)$' \| \
72	 .     : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
76  	  /^X\/\(\/\).*/{ s//\1/; q; }
77  	  s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90  echo "#! /bin/sh" >conf$$.sh
91  echo  "exit 0"   >>conf$$.sh
92  chmod +x conf$$.sh
93  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94    PATH_SEPARATOR=';'
95  else
96    PATH_SEPARATOR=:
97  fi
98  rm -f conf$$.sh
99fi
100
101
102  as_lineno_1=$LINENO
103  as_lineno_2=$LINENO
104  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105  test "x$as_lineno_1" != "x$as_lineno_2" &&
106  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107  # Find who we are.  Look in the path if we contain no path at all
108  # relative or not.
109  case $0 in
110    *[\\/]* ) as_myself=$0 ;;
111    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114  IFS=$as_save_IFS
115  test -z "$as_dir" && as_dir=.
116  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119       ;;
120  esac
121  # We did not find ourselves, most probably we were run as `sh COMMAND'
122  # in which case we are not to be found in the path.
123  if test "x$as_myself" = x; then
124    as_myself=$0
125  fi
126  if test ! -f "$as_myself"; then
127    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128   { (exit 1); exit 1; }; }
129  fi
130  case $CONFIG_SHELL in
131  '')
132    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135  IFS=$as_save_IFS
136  test -z "$as_dir" && as_dir=.
137  for as_base in sh bash ksh sh5; do
138	 case $as_dir in
139	 /*)
140	   if ("$as_dir/$as_base" -c '
141  as_lineno_1=$LINENO
142  as_lineno_2=$LINENO
143  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144  test "x$as_lineno_1" != "x$as_lineno_2" &&
145  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148	     CONFIG_SHELL=$as_dir/$as_base
149	     export CONFIG_SHELL
150	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151	   fi;;
152	 esac
153       done
154done
155;;
156  esac
157
158  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159  # uniformly replaced by the line number.  The first 'sed' inserts a
160  # line-number line before each line; the second 'sed' does the real
161  # work.  The second script uses 'N' to pair each line-number line
162  # with the numbered line, and appends trailing '-' during
163  # substitution so that $LINENO is not a special case at line end.
164  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166  sed '=' <$as_myself |
167    sed '
168      N
169      s,$,-,
170      : loop
171      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172      t loop
173      s,-$,,
174      s,^['$as_cr_digits']*\n,,
175    ' >$as_me.lineno &&
176  chmod +x $as_me.lineno ||
177    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178   { (exit 1); exit 1; }; }
179
180  # Don't try to exec as it changes $[0], causing all sort of problems
181  # (the dirname of $[0] is not the place where we might find the
182  # original and so on.  Autoconf is especially sensible to this).
183  . ./$as_me.lineno
184  # Exit status is that of the last command.
185  exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190  *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T='	' ;;
192  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197  as_expr=expr
198else
199  as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205  # We could just check for DJGPP; but this test a) works b) is more generic
206  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207  if test -f conf$$.exe; then
208    # Don't use ln at all; we don't have any links
209    as_ln_s='cp -p'
210  else
211    as_ln_s='ln -s'
212  fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214  as_ln_s=ln
215else
216  as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221  as_mkdir_p=:
222else
223  test -d ./-p && rmdir ./-p
224  as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" 	$as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
246# Name of the host.
247# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248# so uname gets run too.
249ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251exec 6>&1
252
253#
254# Initializations.
255#
256ac_default_prefix=/usr/local
257ac_config_libobj_dir=.
258cross_compiling=no
259subdirs=
260MFLAGS=
261MAKEFLAGS=
262SHELL=${CONFIG_SHELL-/bin/sh}
263
264# Maximum number of lines to put in a shell here document.
265# This variable seems obsolete.  It should probably be removed, and
266# only ac_max_sed_lines should be used.
267: ${ac_max_here_lines=38}
268
269# Identity of this package.
270PACKAGE_NAME='GNU Bison'
271PACKAGE_TARNAME='bison'
272PACKAGE_VERSION='2.3'
273PACKAGE_STRING='GNU Bison 2.3'
274PACKAGE_BUGREPORT='bug-bison@gnu.org'
275
276# Factoring default headers for most tests.
277ac_includes_default="\
278#include <stdio.h>
279#if HAVE_SYS_TYPES_H
280# include <sys/types.h>
281#endif
282#if HAVE_SYS_STAT_H
283# include <sys/stat.h>
284#endif
285#if STDC_HEADERS
286# include <stdlib.h>
287# include <stddef.h>
288#else
289# if HAVE_STDLIB_H
290#  include <stdlib.h>
291# endif
292#endif
293#if HAVE_STRING_H
294# if !STDC_HEADERS && HAVE_MEMORY_H
295#  include <memory.h>
296# endif
297# include <string.h>
298#endif
299#if HAVE_STRINGS_H
300# include <strings.h>
301#endif
302#if HAVE_INTTYPES_H
303# include <inttypes.h>
304#else
305# if HAVE_STDINT_H
306#  include <stdint.h>
307# endif
308#endif
309#if HAVE_UNISTD_H
310# include <unistd.h>
311#endif"
312
313gl_header_list=
314gl_func_list=
315ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar 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 CPP EGREP WARNING_CFLAGS WERROR_CFLAGS WARNING_CXXFLAGS YACC_SCRIPT YACC_LIBRARY LEX LEXLIB LEX_OUTPUT_ROOT YACC RANLIB ac_ct_RANLIB M4 STDBOOL_H HAVE__BOOL LIBOBJS GETOPT_H MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE build build_cpu build_vendor build_os host host_cpu host_vendor host_os INTL_MACOSX_LIBS LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB UNISTD_H BISON_LOCALEDIR aclocaldir VALGRIND CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE BISON_CXX_WORKS BISON_CXX_WORKS_TRUE BISON_CXX_WORKS_FALSE AUTOM4TE GCC O0CFLAGS O0CXXFLAGS LTLIBOBJS'
316ac_subst_files=''
317
318# Initialize some variables set by options.
319ac_init_help=
320ac_init_version=false
321# The variables have the same names as the options, with
322# dashes changed to underlines.
323cache_file=/dev/null
324exec_prefix=NONE
325no_create=
326no_recursion=
327prefix=NONE
328program_prefix=NONE
329program_suffix=NONE
330program_transform_name=s,x,x,
331silent=
332site=
333srcdir=
334verbose=
335x_includes=NONE
336x_libraries=NONE
337
338# Installation directory options.
339# These are left unexpanded so users can "make install exec_prefix=/foo"
340# and all the variables that are supposed to be based on exec_prefix
341# by default will actually change.
342# Use braces instead of parens because sh, perl, etc. also accept them.
343bindir='${exec_prefix}/bin'
344sbindir='${exec_prefix}/sbin'
345libexecdir='${exec_prefix}/libexec'
346datadir='${prefix}/share'
347sysconfdir='${prefix}/etc'
348sharedstatedir='${prefix}/com'
349localstatedir='${prefix}/var'
350libdir='${exec_prefix}/lib'
351includedir='${prefix}/include'
352oldincludedir='/usr/include'
353infodir='${prefix}/info'
354mandir='${prefix}/man'
355
356ac_prev=
357for ac_option
358do
359  # If the previous option needs an argument, assign it.
360  if test -n "$ac_prev"; then
361    eval "$ac_prev=\$ac_option"
362    ac_prev=
363    continue
364  fi
365
366  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367
368  # Accept the important Cygnus configure options, so we can diagnose typos.
369
370  case $ac_option in
371
372  -bindir | --bindir | --bindi | --bind | --bin | --bi)
373    ac_prev=bindir ;;
374  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375    bindir=$ac_optarg ;;
376
377  -build | --build | --buil | --bui | --bu)
378    ac_prev=build_alias ;;
379  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380    build_alias=$ac_optarg ;;
381
382  -cache-file | --cache-file | --cache-fil | --cache-fi \
383  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384    ac_prev=cache_file ;;
385  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387    cache_file=$ac_optarg ;;
388
389  --config-cache | -C)
390    cache_file=config.cache ;;
391
392  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393    ac_prev=datadir ;;
394  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395  | --da=*)
396    datadir=$ac_optarg ;;
397
398  -disable-* | --disable-*)
399    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400    # Reject names that are not valid shell variable names.
401    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403   { (exit 1); exit 1; }; }
404    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405    eval "enable_$ac_feature=no" ;;
406
407  -enable-* | --enable-*)
408    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409    # Reject names that are not valid shell variable names.
410    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412   { (exit 1); exit 1; }; }
413    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414    case $ac_option in
415      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416      *) ac_optarg=yes ;;
417    esac
418    eval "enable_$ac_feature='$ac_optarg'" ;;
419
420  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422  | --exec | --exe | --ex)
423    ac_prev=exec_prefix ;;
424  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426  | --exec=* | --exe=* | --ex=*)
427    exec_prefix=$ac_optarg ;;
428
429  -gas | --gas | --ga | --g)
430    # Obsolete; use --with-gas.
431    with_gas=yes ;;
432
433  -help | --help | --hel | --he | -h)
434    ac_init_help=long ;;
435  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436    ac_init_help=recursive ;;
437  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438    ac_init_help=short ;;
439
440  -host | --host | --hos | --ho)
441    ac_prev=host_alias ;;
442  -host=* | --host=* | --hos=* | --ho=*)
443    host_alias=$ac_optarg ;;
444
445  -includedir | --includedir | --includedi | --included | --include \
446  | --includ | --inclu | --incl | --inc)
447    ac_prev=includedir ;;
448  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449  | --includ=* | --inclu=* | --incl=* | --inc=*)
450    includedir=$ac_optarg ;;
451
452  -infodir | --infodir | --infodi | --infod | --info | --inf)
453    ac_prev=infodir ;;
454  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455    infodir=$ac_optarg ;;
456
457  -libdir | --libdir | --libdi | --libd)
458    ac_prev=libdir ;;
459  -libdir=* | --libdir=* | --libdi=* | --libd=*)
460    libdir=$ac_optarg ;;
461
462  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463  | --libexe | --libex | --libe)
464    ac_prev=libexecdir ;;
465  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466  | --libexe=* | --libex=* | --libe=*)
467    libexecdir=$ac_optarg ;;
468
469  -localstatedir | --localstatedir | --localstatedi | --localstated \
470  | --localstate | --localstat | --localsta | --localst \
471  | --locals | --local | --loca | --loc | --lo)
472    ac_prev=localstatedir ;;
473  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476    localstatedir=$ac_optarg ;;
477
478  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479    ac_prev=mandir ;;
480  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481    mandir=$ac_optarg ;;
482
483  -nfp | --nfp | --nf)
484    # Obsolete; use --without-fp.
485    with_fp=no ;;
486
487  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488  | --no-cr | --no-c | -n)
489    no_create=yes ;;
490
491  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493    no_recursion=yes ;;
494
495  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497  | --oldin | --oldi | --old | --ol | --o)
498    ac_prev=oldincludedir ;;
499  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502    oldincludedir=$ac_optarg ;;
503
504  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505    ac_prev=prefix ;;
506  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507    prefix=$ac_optarg ;;
508
509  -program-prefix | --program-prefix | --program-prefi | --program-pref \
510  | --program-pre | --program-pr | --program-p)
511    ac_prev=program_prefix ;;
512  -program-prefix=* | --program-prefix=* | --program-prefi=* \
513  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514    program_prefix=$ac_optarg ;;
515
516  -program-suffix | --program-suffix | --program-suffi | --program-suff \
517  | --program-suf | --program-su | --program-s)
518    ac_prev=program_suffix ;;
519  -program-suffix=* | --program-suffix=* | --program-suffi=* \
520  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521    program_suffix=$ac_optarg ;;
522
523  -program-transform-name | --program-transform-name \
524  | --program-transform-nam | --program-transform-na \
525  | --program-transform-n | --program-transform- \
526  | --program-transform | --program-transfor \
527  | --program-transfo | --program-transf \
528  | --program-trans | --program-tran \
529  | --progr-tra | --program-tr | --program-t)
530    ac_prev=program_transform_name ;;
531  -program-transform-name=* | --program-transform-name=* \
532  | --program-transform-nam=* | --program-transform-na=* \
533  | --program-transform-n=* | --program-transform-=* \
534  | --program-transform=* | --program-transfor=* \
535  | --program-transfo=* | --program-transf=* \
536  | --program-trans=* | --program-tran=* \
537  | --progr-tra=* | --program-tr=* | --program-t=*)
538    program_transform_name=$ac_optarg ;;
539
540  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541  | -silent | --silent | --silen | --sile | --sil)
542    silent=yes ;;
543
544  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545    ac_prev=sbindir ;;
546  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547  | --sbi=* | --sb=*)
548    sbindir=$ac_optarg ;;
549
550  -sharedstatedir | --sharedstatedir | --sharedstatedi \
551  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552  | --sharedst | --shareds | --shared | --share | --shar \
553  | --sha | --sh)
554    ac_prev=sharedstatedir ;;
555  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558  | --sha=* | --sh=*)
559    sharedstatedir=$ac_optarg ;;
560
561  -site | --site | --sit)
562    ac_prev=site ;;
563  -site=* | --site=* | --sit=*)
564    site=$ac_optarg ;;
565
566  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567    ac_prev=srcdir ;;
568  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569    srcdir=$ac_optarg ;;
570
571  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572  | --syscon | --sysco | --sysc | --sys | --sy)
573    ac_prev=sysconfdir ;;
574  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576    sysconfdir=$ac_optarg ;;
577
578  -target | --target | --targe | --targ | --tar | --ta | --t)
579    ac_prev=target_alias ;;
580  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581    target_alias=$ac_optarg ;;
582
583  -v | -verbose | --verbose | --verbos | --verbo | --verb)
584    verbose=yes ;;
585
586  -version | --version | --versio | --versi | --vers | -V)
587    ac_init_version=: ;;
588
589  -with-* | --with-*)
590    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591    # Reject names that are not valid shell variable names.
592    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593      { echo "$as_me: error: invalid package name: $ac_package" >&2
594   { (exit 1); exit 1; }; }
595    ac_package=`echo $ac_package| sed 's/-/_/g'`
596    case $ac_option in
597      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598      *) ac_optarg=yes ;;
599    esac
600    eval "with_$ac_package='$ac_optarg'" ;;
601
602  -without-* | --without-*)
603    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604    # Reject names that are not valid shell variable names.
605    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606      { echo "$as_me: error: invalid package name: $ac_package" >&2
607   { (exit 1); exit 1; }; }
608    ac_package=`echo $ac_package | sed 's/-/_/g'`
609    eval "with_$ac_package=no" ;;
610
611  --x)
612    # Obsolete; use --with-x.
613    with_x=yes ;;
614
615  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616  | --x-incl | --x-inc | --x-in | --x-i)
617    ac_prev=x_includes ;;
618  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620    x_includes=$ac_optarg ;;
621
622  -x-libraries | --x-libraries | --x-librarie | --x-librari \
623  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624    ac_prev=x_libraries ;;
625  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627    x_libraries=$ac_optarg ;;
628
629  -*) { echo "$as_me: error: unrecognized option: $ac_option
630Try \`$0 --help' for more information." >&2
631   { (exit 1); exit 1; }; }
632    ;;
633
634  *=*)
635    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636    # Reject names that are not valid shell variable names.
637    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639   { (exit 1); exit 1; }; }
640    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641    eval "$ac_envvar='$ac_optarg'"
642    export $ac_envvar ;;
643
644  *)
645    # FIXME: should be removed in autoconf 3.0.
646    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650    ;;
651
652  esac
653done
654
655if test -n "$ac_prev"; then
656  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657  { echo "$as_me: error: missing argument to $ac_option" >&2
658   { (exit 1); exit 1; }; }
659fi
660
661# Be sure to have absolute paths.
662for ac_var in exec_prefix prefix
663do
664  eval ac_val=$`echo $ac_var`
665  case $ac_val in
666    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668   { (exit 1); exit 1; }; };;
669  esac
670done
671
672# Be sure to have absolute paths.
673for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674	      localstatedir libdir includedir oldincludedir infodir mandir
675do
676  eval ac_val=$`echo $ac_var`
677  case $ac_val in
678    [\\/$]* | ?:[\\/]* ) ;;
679    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680   { (exit 1); exit 1; }; };;
681  esac
682done
683
684# There might be people who depend on the old broken behavior: `$host'
685# used to hold the argument of --host etc.
686# FIXME: To remove some day.
687build=$build_alias
688host=$host_alias
689target=$target_alias
690
691# FIXME: To remove some day.
692if test "x$host_alias" != x; then
693  if test "x$build_alias" = x; then
694    cross_compiling=maybe
695    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696    If a cross compiler is detected then cross compile mode will be used." >&2
697  elif test "x$build_alias" != "x$host_alias"; then
698    cross_compiling=yes
699  fi
700fi
701
702ac_tool_prefix=
703test -n "$host_alias" && ac_tool_prefix=$host_alias-
704
705test "$silent" = yes && exec 6>/dev/null
706
707
708# Find the source files, if location was not specified.
709if test -z "$srcdir"; then
710  ac_srcdir_defaulted=yes
711  # Try the directory containing this script, then its parent.
712  ac_confdir=`(dirname "$0") 2>/dev/null ||
713$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714	 X"$0" : 'X\(//\)[^/]' \| \
715	 X"$0" : 'X\(//\)$' \| \
716	 X"$0" : 'X\(/\)' \| \
717	 .     : '\(.\)' 2>/dev/null ||
718echo X"$0" |
719    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721  	  /^X\(\/\/\)$/{ s//\1/; q; }
722  	  /^X\(\/\).*/{ s//\1/; q; }
723  	  s/.*/./; q'`
724  srcdir=$ac_confdir
725  if test ! -r $srcdir/$ac_unique_file; then
726    srcdir=..
727  fi
728else
729  ac_srcdir_defaulted=no
730fi
731if test ! -r $srcdir/$ac_unique_file; then
732  if test "$ac_srcdir_defaulted" = yes; then
733    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734   { (exit 1); exit 1; }; }
735  else
736    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737   { (exit 1); exit 1; }; }
738  fi
739fi
740(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742   { (exit 1); exit 1; }; }
743srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744ac_env_build_alias_set=${build_alias+set}
745ac_env_build_alias_value=$build_alias
746ac_cv_env_build_alias_set=${build_alias+set}
747ac_cv_env_build_alias_value=$build_alias
748ac_env_host_alias_set=${host_alias+set}
749ac_env_host_alias_value=$host_alias
750ac_cv_env_host_alias_set=${host_alias+set}
751ac_cv_env_host_alias_value=$host_alias
752ac_env_target_alias_set=${target_alias+set}
753ac_env_target_alias_value=$target_alias
754ac_cv_env_target_alias_set=${target_alias+set}
755ac_cv_env_target_alias_value=$target_alias
756ac_env_CC_set=${CC+set}
757ac_env_CC_value=$CC
758ac_cv_env_CC_set=${CC+set}
759ac_cv_env_CC_value=$CC
760ac_env_CFLAGS_set=${CFLAGS+set}
761ac_env_CFLAGS_value=$CFLAGS
762ac_cv_env_CFLAGS_set=${CFLAGS+set}
763ac_cv_env_CFLAGS_value=$CFLAGS
764ac_env_LDFLAGS_set=${LDFLAGS+set}
765ac_env_LDFLAGS_value=$LDFLAGS
766ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767ac_cv_env_LDFLAGS_value=$LDFLAGS
768ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769ac_env_CPPFLAGS_value=$CPPFLAGS
770ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772ac_env_CPP_set=${CPP+set}
773ac_env_CPP_value=$CPP
774ac_cv_env_CPP_set=${CPP+set}
775ac_cv_env_CPP_value=$CPP
776ac_env_CXX_set=${CXX+set}
777ac_env_CXX_value=$CXX
778ac_cv_env_CXX_set=${CXX+set}
779ac_cv_env_CXX_value=$CXX
780ac_env_CXXFLAGS_set=${CXXFLAGS+set}
781ac_env_CXXFLAGS_value=$CXXFLAGS
782ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
783ac_cv_env_CXXFLAGS_value=$CXXFLAGS
784
785#
786# Report the --help message.
787#
788if test "$ac_init_help" = "long"; then
789  # Omit some internal or obsolete options to make the list less imposing.
790  # This message is too long to be a string in the A/UX 3.1 sh.
791  cat <<_ACEOF
792\`configure' configures GNU Bison 2.3 to adapt to many kinds of systems.
793
794Usage: $0 [OPTION]... [VAR=VALUE]...
795
796To assign environment variables (e.g., CC, CFLAGS...), specify them as
797VAR=VALUE.  See below for descriptions of some of the useful variables.
798
799Defaults for the options are specified in brackets.
800
801Configuration:
802  -h, --help              display this help and exit
803      --help=short        display options specific to this package
804      --help=recursive    display the short help of all the included packages
805  -V, --version           display version information and exit
806  -q, --quiet, --silent   do not print \`checking...' messages
807      --cache-file=FILE   cache test results in FILE [disabled]
808  -C, --config-cache      alias for \`--cache-file=config.cache'
809  -n, --no-create         do not create output files
810      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
811
812_ACEOF
813
814  cat <<_ACEOF
815Installation directories:
816  --prefix=PREFIX         install architecture-independent files in PREFIX
817			  [$ac_default_prefix]
818  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
819			  [PREFIX]
820
821By default, \`make install' will install all the files in
822\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
823an installation prefix other than \`$ac_default_prefix' using \`--prefix',
824for instance \`--prefix=\$HOME'.
825
826For better control, use the options below.
827
828Fine tuning of the installation directories:
829  --bindir=DIR           user executables [EPREFIX/bin]
830  --sbindir=DIR          system admin executables [EPREFIX/sbin]
831  --libexecdir=DIR       program executables [EPREFIX/libexec]
832  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
833  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
834  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
835  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
836  --libdir=DIR           object code libraries [EPREFIX/lib]
837  --includedir=DIR       C header files [PREFIX/include]
838  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
839  --infodir=DIR          info documentation [PREFIX/info]
840  --mandir=DIR           man documentation [PREFIX/man]
841_ACEOF
842
843  cat <<\_ACEOF
844
845Program names:
846  --program-prefix=PREFIX            prepend PREFIX to installed program names
847  --program-suffix=SUFFIX            append SUFFIX to installed program names
848  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
849
850System types:
851  --build=BUILD     configure for building on BUILD [guessed]
852  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
853_ACEOF
854fi
855
856if test -n "$ac_init_help"; then
857  case $ac_init_help in
858     short | recursive ) echo "Configuration of GNU Bison 2.3:";;
859   esac
860  cat <<\_ACEOF
861
862Optional Features:
863  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
864  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
865  --disable-dependency-tracking  speeds up one-time build
866  --enable-dependency-tracking   do not reject slow dependency extractors
867  --enable-gcc-warnings   turn on lots of GCC warnings (not recommended)
868  --disable-yacc          do not build a yacc command or an -ly library
869  --disable-nls           do not use Native Language Support
870  --disable-rpath         do not hardcode runtime library paths
871
872Optional Packages:
873  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
874  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
875  --with-dmalloc          use dmalloc, as in
876                          http://www.dmalloc.com/dmalloc.tar.gz
877  --with-gnu-ld           assume the C compiler uses GNU ld default=no
878  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
879  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
880  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
881  --without-libintl-prefix     don't search for libintl in includedir and libdir
882
883Some influential environment variables:
884  CC          C compiler command
885  CFLAGS      C compiler flags
886  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
887              nonstandard directory <lib dir>
888  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
889              headers in a nonstandard directory <include dir>
890  CPP         C preprocessor
891  CXX         C++ compiler command
892  CXXFLAGS    C++ compiler flags
893
894Use these variables to override the choices made by `configure' or to help
895it to find libraries and programs with nonstandard names/locations.
896
897Report bugs to <bug-bison@gnu.org>.
898_ACEOF
899fi
900
901if test "$ac_init_help" = "recursive"; then
902  # If there are subdirs, report their specific --help.
903  ac_popdir=`pwd`
904  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
905    test -d $ac_dir || continue
906    ac_builddir=.
907
908if test "$ac_dir" != .; then
909  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
910  # A "../" for each directory in $ac_dir_suffix.
911  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
912else
913  ac_dir_suffix= ac_top_builddir=
914fi
915
916case $srcdir in
917  .)  # No --srcdir option.  We are building in place.
918    ac_srcdir=.
919    if test -z "$ac_top_builddir"; then
920       ac_top_srcdir=.
921    else
922       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
923    fi ;;
924  [\\/]* | ?:[\\/]* )  # Absolute path.
925    ac_srcdir=$srcdir$ac_dir_suffix;
926    ac_top_srcdir=$srcdir ;;
927  *) # Relative path.
928    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
929    ac_top_srcdir=$ac_top_builddir$srcdir ;;
930esac
931
932# Do not use `cd foo && pwd` to compute absolute paths, because
933# the directories may not exist.
934case `pwd` in
935.) ac_abs_builddir="$ac_dir";;
936*)
937  case "$ac_dir" in
938  .) ac_abs_builddir=`pwd`;;
939  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
940  *) ac_abs_builddir=`pwd`/"$ac_dir";;
941  esac;;
942esac
943case $ac_abs_builddir in
944.) ac_abs_top_builddir=${ac_top_builddir}.;;
945*)
946  case ${ac_top_builddir}. in
947  .) ac_abs_top_builddir=$ac_abs_builddir;;
948  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
949  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
950  esac;;
951esac
952case $ac_abs_builddir in
953.) ac_abs_srcdir=$ac_srcdir;;
954*)
955  case $ac_srcdir in
956  .) ac_abs_srcdir=$ac_abs_builddir;;
957  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
958  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
959  esac;;
960esac
961case $ac_abs_builddir in
962.) ac_abs_top_srcdir=$ac_top_srcdir;;
963*)
964  case $ac_top_srcdir in
965  .) ac_abs_top_srcdir=$ac_abs_builddir;;
966  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
967  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
968  esac;;
969esac
970
971    cd $ac_dir
972    # Check for guested configure; otherwise get Cygnus style configure.
973    if test -f $ac_srcdir/configure.gnu; then
974      echo
975      $SHELL $ac_srcdir/configure.gnu  --help=recursive
976    elif test -f $ac_srcdir/configure; then
977      echo
978      $SHELL $ac_srcdir/configure  --help=recursive
979    elif test -f $ac_srcdir/configure.ac ||
980	   test -f $ac_srcdir/configure.in; then
981      echo
982      $ac_configure --help
983    else
984      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
985    fi
986    cd "$ac_popdir"
987  done
988fi
989
990test -n "$ac_init_help" && exit 0
991if $ac_init_version; then
992  cat <<\_ACEOF
993GNU Bison configure 2.3
994generated by GNU Autoconf 2.59
995
996Copyright (C) 2003 Free Software Foundation, Inc.
997This configure script is free software; the Free Software Foundation
998gives unlimited permission to copy, distribute and modify it.
999_ACEOF
1000  exit 0
1001fi
1002exec 5>config.log
1003cat >&5 <<_ACEOF
1004This file contains any messages produced by compilers while
1005running configure, to aid debugging if configure makes a mistake.
1006
1007It was created by GNU Bison $as_me 2.3, which was
1008generated by GNU Autoconf 2.59.  Invocation command line was
1009
1010  $ $0 $@
1011
1012_ACEOF
1013{
1014cat <<_ASUNAME
1015## --------- ##
1016## Platform. ##
1017## --------- ##
1018
1019hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1020uname -m = `(uname -m) 2>/dev/null || echo unknown`
1021uname -r = `(uname -r) 2>/dev/null || echo unknown`
1022uname -s = `(uname -s) 2>/dev/null || echo unknown`
1023uname -v = `(uname -v) 2>/dev/null || echo unknown`
1024
1025/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1026/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1027
1028/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1029/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1030/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1031hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1032/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1033/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1034/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1035
1036_ASUNAME
1037
1038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1039for as_dir in $PATH
1040do
1041  IFS=$as_save_IFS
1042  test -z "$as_dir" && as_dir=.
1043  echo "PATH: $as_dir"
1044done
1045
1046} >&5
1047
1048cat >&5 <<_ACEOF
1049
1050
1051## ----------- ##
1052## Core tests. ##
1053## ----------- ##
1054
1055_ACEOF
1056
1057
1058# Keep a trace of the command line.
1059# Strip out --no-create and --no-recursion so they do not pile up.
1060# Strip out --silent because we don't want to record it for future runs.
1061# Also quote any args containing shell meta-characters.
1062# Make two passes to allow for proper duplicate-argument suppression.
1063ac_configure_args=
1064ac_configure_args0=
1065ac_configure_args1=
1066ac_sep=
1067ac_must_keep_next=false
1068for ac_pass in 1 2
1069do
1070  for ac_arg
1071  do
1072    case $ac_arg in
1073    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1074    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1075    | -silent | --silent | --silen | --sile | --sil)
1076      continue ;;
1077    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1078      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1079    esac
1080    case $ac_pass in
1081    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1082    2)
1083      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1084      if test $ac_must_keep_next = true; then
1085	ac_must_keep_next=false # Got value, back to normal.
1086      else
1087	case $ac_arg in
1088	  *=* | --config-cache | -C | -disable-* | --disable-* \
1089	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1090	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1091	  | -with-* | --with-* | -without-* | --without-* | --x)
1092	    case "$ac_configure_args0 " in
1093	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1094	    esac
1095	    ;;
1096	  -* ) ac_must_keep_next=true ;;
1097	esac
1098      fi
1099      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1100      # Get rid of the leading space.
1101      ac_sep=" "
1102      ;;
1103    esac
1104  done
1105done
1106$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1107$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1108
1109# When interrupted or exit'd, cleanup temporary files, and complete
1110# config.log.  We remove comments because anyway the quotes in there
1111# would cause problems or look ugly.
1112# WARNING: Be sure not to use single quotes in there, as some shells,
1113# such as our DU 5.0 friend, will then `close' the trap.
1114trap 'exit_status=$?
1115  # Save into config.log some information that might help in debugging.
1116  {
1117    echo
1118
1119    cat <<\_ASBOX
1120## ---------------- ##
1121## Cache variables. ##
1122## ---------------- ##
1123_ASBOX
1124    echo
1125    # The following way of writing the cache mishandles newlines in values,
1126{
1127  (set) 2>&1 |
1128    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1129    *ac_space=\ *)
1130      sed -n \
1131	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1132	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1133      ;;
1134    *)
1135      sed -n \
1136	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1137      ;;
1138    esac;
1139}
1140    echo
1141
1142    cat <<\_ASBOX
1143## ----------------- ##
1144## Output variables. ##
1145## ----------------- ##
1146_ASBOX
1147    echo
1148    for ac_var in $ac_subst_vars
1149    do
1150      eval ac_val=$`echo $ac_var`
1151      echo "$ac_var='"'"'$ac_val'"'"'"
1152    done | sort
1153    echo
1154
1155    if test -n "$ac_subst_files"; then
1156      cat <<\_ASBOX
1157## ------------- ##
1158## Output files. ##
1159## ------------- ##
1160_ASBOX
1161      echo
1162      for ac_var in $ac_subst_files
1163      do
1164	eval ac_val=$`echo $ac_var`
1165	echo "$ac_var='"'"'$ac_val'"'"'"
1166      done | sort
1167      echo
1168    fi
1169
1170    if test -s confdefs.h; then
1171      cat <<\_ASBOX
1172## ----------- ##
1173## confdefs.h. ##
1174## ----------- ##
1175_ASBOX
1176      echo
1177      sed "/^$/d" confdefs.h | sort
1178      echo
1179    fi
1180    test "$ac_signal" != 0 &&
1181      echo "$as_me: caught signal $ac_signal"
1182    echo "$as_me: exit $exit_status"
1183  } >&5
1184  rm -f core *.core &&
1185  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1186    exit $exit_status
1187     ' 0
1188for ac_signal in 1 2 13 15; do
1189  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1190done
1191ac_signal=0
1192
1193# confdefs.h avoids OS command line length limits that DEFS can exceed.
1194rm -rf conftest* confdefs.h
1195# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1196echo >confdefs.h
1197
1198# Predefined preprocessor variables.
1199
1200cat >>confdefs.h <<_ACEOF
1201#define PACKAGE_NAME "$PACKAGE_NAME"
1202_ACEOF
1203
1204
1205cat >>confdefs.h <<_ACEOF
1206#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1207_ACEOF
1208
1209
1210cat >>confdefs.h <<_ACEOF
1211#define PACKAGE_VERSION "$PACKAGE_VERSION"
1212_ACEOF
1213
1214
1215cat >>confdefs.h <<_ACEOF
1216#define PACKAGE_STRING "$PACKAGE_STRING"
1217_ACEOF
1218
1219
1220cat >>confdefs.h <<_ACEOF
1221#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1222_ACEOF
1223
1224
1225# Let the site file select an alternate cache file if it wants to.
1226# Prefer explicitly selected file to automatically selected ones.
1227if test -z "$CONFIG_SITE"; then
1228  if test "x$prefix" != xNONE; then
1229    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1230  else
1231    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1232  fi
1233fi
1234for ac_site_file in $CONFIG_SITE; do
1235  if test -r "$ac_site_file"; then
1236    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1237echo "$as_me: loading site script $ac_site_file" >&6;}
1238    sed 's/^/| /' "$ac_site_file" >&5
1239    . "$ac_site_file"
1240  fi
1241done
1242
1243if test -r "$cache_file"; then
1244  # Some versions of bash will fail to source /dev/null (special
1245  # files actually), so we avoid doing that.
1246  if test -f "$cache_file"; then
1247    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1248echo "$as_me: loading cache $cache_file" >&6;}
1249    case $cache_file in
1250      [\\/]* | ?:[\\/]* ) . $cache_file;;
1251      *)                      . ./$cache_file;;
1252    esac
1253  fi
1254else
1255  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1256echo "$as_me: creating cache $cache_file" >&6;}
1257  >$cache_file
1258fi
1259
1260# Check that the precious variables saved in the cache have kept the same
1261# value.
1262ac_cache_corrupted=false
1263for ac_var in `(set) 2>&1 |
1264	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1265  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1266  eval ac_new_set=\$ac_env_${ac_var}_set
1267  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1268  eval ac_new_val="\$ac_env_${ac_var}_value"
1269  case $ac_old_set,$ac_new_set in
1270    set,)
1271      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1272echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1273      ac_cache_corrupted=: ;;
1274    ,set)
1275      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1276echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1277      ac_cache_corrupted=: ;;
1278    ,);;
1279    *)
1280      if test "x$ac_old_val" != "x$ac_new_val"; then
1281	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1282echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1283	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1284echo "$as_me:   former value:  $ac_old_val" >&2;}
1285	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1286echo "$as_me:   current value: $ac_new_val" >&2;}
1287	ac_cache_corrupted=:
1288      fi;;
1289  esac
1290  # Pass precious variables to config.status.
1291  if test "$ac_new_set" = set; then
1292    case $ac_new_val in
1293    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1294      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1295    *) ac_arg=$ac_var=$ac_new_val ;;
1296    esac
1297    case " $ac_configure_args " in
1298      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1299      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1300    esac
1301  fi
1302done
1303if $ac_cache_corrupted; then
1304  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1305echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1306  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1307echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1308   { (exit 1); exit 1; }; }
1309fi
1310
1311ac_ext=c
1312ac_cpp='$CPP $CPPFLAGS'
1313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1315ac_compiler_gnu=$ac_cv_c_compiler_gnu
1316
1317
1318gl_header_list="$gl_header_list locale.h"
1319gl_func_list="$gl_func_list setlocale"
1320gl_header_list="$gl_header_list wchar.h"
1321gl_header_list="$gl_header_list wctype.h"
1322gl_func_list="$gl_func_list isascii"
1323gl_func_list="$gl_func_list iswprint"
1324gl_func_list="$gl_func_list mbsinit"
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350ac_aux_dir=
1351for ac_dir in build-aux $srcdir/build-aux; do
1352  if test -f $ac_dir/install-sh; then
1353    ac_aux_dir=$ac_dir
1354    ac_install_sh="$ac_aux_dir/install-sh -c"
1355    break
1356  elif test -f $ac_dir/install.sh; then
1357    ac_aux_dir=$ac_dir
1358    ac_install_sh="$ac_aux_dir/install.sh -c"
1359    break
1360  elif test -f $ac_dir/shtool; then
1361    ac_aux_dir=$ac_dir
1362    ac_install_sh="$ac_aux_dir/shtool install -c"
1363    break
1364  fi
1365done
1366if test -z "$ac_aux_dir"; then
1367  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux $srcdir/build-aux" >&5
1368echo "$as_me: error: cannot find install-sh or install.sh in build-aux $srcdir/build-aux" >&2;}
1369   { (exit 1); exit 1; }; }
1370fi
1371ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1372ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1373ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1374
1375case m4 in
1376  [\\/]* | ?:[\\/]* ) ac_macro_dir=m4         ;;
1377  *)                      ac_macro_dir=$srcdir/m4 ;;
1378esac
1379if test -d "$ac_macro_dir"; then :
1380else
1381  { { echo "$as_me:$LINENO: error: cannot find macro directory \`m4'" >&5
1382echo "$as_me: error: cannot find macro directory \`m4'" >&2;}
1383   { (exit 1); exit 1; }; }
1384fi
1385
1386
1387# We don't have a file m4/Makefile.am, so we need Automake 1.8 or later.
1388am__api_version="1.9"
1389# Find a good install program.  We prefer a C program (faster),
1390# so one script is as good as another.  But avoid the broken or
1391# incompatible versions:
1392# SysV /etc/install, /usr/sbin/install
1393# SunOS /usr/etc/install
1394# IRIX /sbin/install
1395# AIX /bin/install
1396# AmigaOS /C/install, which installs bootblocks on floppy discs
1397# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1398# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1399# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1400# OS/2's system install, which has a completely different semantic
1401# ./install, which can be erroneously created by make from ./install.sh.
1402echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1403echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1404if test -z "$INSTALL"; then
1405if test "${ac_cv_path_install+set}" = set; then
1406  echo $ECHO_N "(cached) $ECHO_C" >&6
1407else
1408  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1409for as_dir in $PATH
1410do
1411  IFS=$as_save_IFS
1412  test -z "$as_dir" && as_dir=.
1413  # Account for people who put trailing slashes in PATH elements.
1414case $as_dir/ in
1415  ./ | .// | /cC/* | \
1416  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1417  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1418  /usr/ucb/* ) ;;
1419  *)
1420    # OSF1 and SCO ODT 3.0 have their own names for install.
1421    # Don't use installbsd from OSF since it installs stuff as root
1422    # by default.
1423    for ac_prog in ginstall scoinst install; do
1424      for ac_exec_ext in '' $ac_executable_extensions; do
1425	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1426	  if test $ac_prog = install &&
1427	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1428	    # AIX install.  It has an incompatible calling convention.
1429	    :
1430	  elif test $ac_prog = install &&
1431	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1432	    # program-specific install script used by HP pwplus--don't use.
1433	    :
1434	  else
1435	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1436	    break 3
1437	  fi
1438	fi
1439      done
1440    done
1441    ;;
1442esac
1443done
1444
1445
1446fi
1447  if test "${ac_cv_path_install+set}" = set; then
1448    INSTALL=$ac_cv_path_install
1449  else
1450    # As a last resort, use the slow shell script.  We don't cache a
1451    # path for INSTALL within a source directory, because that will
1452    # break other packages using the cache if that directory is
1453    # removed, or if the path is relative.
1454    INSTALL=$ac_install_sh
1455  fi
1456fi
1457echo "$as_me:$LINENO: result: $INSTALL" >&5
1458echo "${ECHO_T}$INSTALL" >&6
1459
1460# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1461# It thinks the first close brace ends the variable substitution.
1462test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1463
1464test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1465
1466test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1467
1468echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1469echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1470# Just in case
1471sleep 1
1472echo timestamp > conftest.file
1473# Do `set' in a subshell so we don't clobber the current shell's
1474# arguments.  Must try -L first in case configure is actually a
1475# symlink; some systems play weird games with the mod time of symlinks
1476# (eg FreeBSD returns the mod time of the symlink's containing
1477# directory).
1478if (
1479   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1480   if test "$*" = "X"; then
1481      # -L didn't work.
1482      set X `ls -t $srcdir/configure conftest.file`
1483   fi
1484   rm -f conftest.file
1485   if test "$*" != "X $srcdir/configure conftest.file" \
1486      && test "$*" != "X conftest.file $srcdir/configure"; then
1487
1488      # If neither matched, then we have a broken ls.  This can happen
1489      # if, for instance, CONFIG_SHELL is bash and it inherits a
1490      # broken ls alias from the environment.  This has actually
1491      # happened.  Such a system could not be considered "sane".
1492      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1493alias in your environment" >&5
1494echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1495alias in your environment" >&2;}
1496   { (exit 1); exit 1; }; }
1497   fi
1498
1499   test "$2" = conftest.file
1500   )
1501then
1502   # Ok.
1503   :
1504else
1505   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1506Check your system clock" >&5
1507echo "$as_me: error: newly created file is older than distributed files!
1508Check your system clock" >&2;}
1509   { (exit 1); exit 1; }; }
1510fi
1511echo "$as_me:$LINENO: result: yes" >&5
1512echo "${ECHO_T}yes" >&6
1513test "$program_prefix" != NONE &&
1514  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1515# Use a double $ so make ignores it.
1516test "$program_suffix" != NONE &&
1517  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1518# Double any \ or $.  echo might interpret backslashes.
1519# By default was `s,x,x', remove it if useless.
1520cat <<\_ACEOF >conftest.sed
1521s/[\\$]/&&/g;s/;s,x,x,$//
1522_ACEOF
1523program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1524rm conftest.sed
1525
1526# expand $ac_aux_dir to an absolute path
1527am_aux_dir=`cd $ac_aux_dir && pwd`
1528
1529test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1530# Use eval to expand $SHELL
1531if eval "$MISSING --run true"; then
1532  am_missing_run="$MISSING --run "
1533else
1534  am_missing_run=
1535  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1536echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1537fi
1538
1539if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1540  # We used to keeping the `.' as first argument, in order to
1541  # allow $(mkdir_p) to be used without argument.  As in
1542  #   $(mkdir_p) $(somedir)
1543  # where $(somedir) is conditionally defined.  However this is wrong
1544  # for two reasons:
1545  #  1. if the package is installed by a user who cannot write `.'
1546  #     make install will fail,
1547  #  2. the above comment should most certainly read
1548  #     $(mkdir_p) $(DESTDIR)$(somedir)
1549  #     so it does not work when $(somedir) is undefined and
1550  #     $(DESTDIR) is not.
1551  #  To support the latter case, we have to write
1552  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1553  #  so the `.' trick is pointless.
1554  mkdir_p='mkdir -p --'
1555else
1556  # On NextStep and OpenStep, the `mkdir' command does not
1557  # recognize any option.  It will interpret all options as
1558  # directories to create, and then abort because `.' already
1559  # exists.
1560  for d in ./-p ./--version;
1561  do
1562    test -d $d && rmdir $d
1563  done
1564  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1565  if test -f "$ac_aux_dir/mkinstalldirs"; then
1566    mkdir_p='$(mkinstalldirs)'
1567  else
1568    mkdir_p='$(install_sh) -d'
1569  fi
1570fi
1571
1572for ac_prog in gawk mawk nawk awk
1573do
1574  # Extract the first word of "$ac_prog", so it can be a program name with args.
1575set dummy $ac_prog; ac_word=$2
1576echo "$as_me:$LINENO: checking for $ac_word" >&5
1577echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1578if test "${ac_cv_prog_AWK+set}" = set; then
1579  echo $ECHO_N "(cached) $ECHO_C" >&6
1580else
1581  if test -n "$AWK"; then
1582  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1583else
1584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585for as_dir in $PATH
1586do
1587  IFS=$as_save_IFS
1588  test -z "$as_dir" && as_dir=.
1589  for ac_exec_ext in '' $ac_executable_extensions; do
1590  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1591    ac_cv_prog_AWK="$ac_prog"
1592    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1593    break 2
1594  fi
1595done
1596done
1597
1598fi
1599fi
1600AWK=$ac_cv_prog_AWK
1601if test -n "$AWK"; then
1602  echo "$as_me:$LINENO: result: $AWK" >&5
1603echo "${ECHO_T}$AWK" >&6
1604else
1605  echo "$as_me:$LINENO: result: no" >&5
1606echo "${ECHO_T}no" >&6
1607fi
1608
1609  test -n "$AWK" && break
1610done
1611
1612echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1613echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1614set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1615if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1616  echo $ECHO_N "(cached) $ECHO_C" >&6
1617else
1618  cat >conftest.make <<\_ACEOF
1619all:
1620	@echo 'ac_maketemp="$(MAKE)"'
1621_ACEOF
1622# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1623eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1624if test -n "$ac_maketemp"; then
1625  eval ac_cv_prog_make_${ac_make}_set=yes
1626else
1627  eval ac_cv_prog_make_${ac_make}_set=no
1628fi
1629rm -f conftest.make
1630fi
1631if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1632  echo "$as_me:$LINENO: result: yes" >&5
1633echo "${ECHO_T}yes" >&6
1634  SET_MAKE=
1635else
1636  echo "$as_me:$LINENO: result: no" >&5
1637echo "${ECHO_T}no" >&6
1638  SET_MAKE="MAKE=${MAKE-make}"
1639fi
1640
1641rm -rf .tst 2>/dev/null
1642mkdir .tst 2>/dev/null
1643if test -d .tst; then
1644  am__leading_dot=.
1645else
1646  am__leading_dot=_
1647fi
1648rmdir .tst 2>/dev/null
1649
1650# test to see if srcdir already configured
1651if test "`cd $srcdir && pwd`" != "`pwd`" &&
1652   test -f $srcdir/config.status; then
1653  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1654echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1655   { (exit 1); exit 1; }; }
1656fi
1657
1658# test whether we have cygpath
1659if test -z "$CYGPATH_W"; then
1660  if (cygpath --version) >/dev/null 2>/dev/null; then
1661    CYGPATH_W='cygpath -w'
1662  else
1663    CYGPATH_W=echo
1664  fi
1665fi
1666
1667
1668# Define the identity of the package.
1669 PACKAGE='bison'
1670 VERSION='2.3'
1671
1672
1673cat >>confdefs.h <<_ACEOF
1674#define PACKAGE "$PACKAGE"
1675_ACEOF
1676
1677
1678cat >>confdefs.h <<_ACEOF
1679#define VERSION "$VERSION"
1680_ACEOF
1681
1682# Some tools Automake needs.
1683
1684ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1685
1686
1687AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1688
1689
1690AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1691
1692
1693AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1694
1695
1696MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1697
1698install_sh=${install_sh-"$am_aux_dir/install-sh"}
1699
1700# Installed binaries are usually stripped using `strip' when the user
1701# run `make install-strip'.  However `strip' might not be the right
1702# tool to use in cross-compilation environments, therefore Automake
1703# will honor the `STRIP' environment variable to overrule this program.
1704if test "$cross_compiling" != no; then
1705  if test -n "$ac_tool_prefix"; then
1706  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1707set dummy ${ac_tool_prefix}strip; ac_word=$2
1708echo "$as_me:$LINENO: checking for $ac_word" >&5
1709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1710if test "${ac_cv_prog_STRIP+set}" = set; then
1711  echo $ECHO_N "(cached) $ECHO_C" >&6
1712else
1713  if test -n "$STRIP"; then
1714  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1715else
1716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1717for as_dir in $PATH
1718do
1719  IFS=$as_save_IFS
1720  test -z "$as_dir" && as_dir=.
1721  for ac_exec_ext in '' $ac_executable_extensions; do
1722  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1723    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1724    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1725    break 2
1726  fi
1727done
1728done
1729
1730fi
1731fi
1732STRIP=$ac_cv_prog_STRIP
1733if test -n "$STRIP"; then
1734  echo "$as_me:$LINENO: result: $STRIP" >&5
1735echo "${ECHO_T}$STRIP" >&6
1736else
1737  echo "$as_me:$LINENO: result: no" >&5
1738echo "${ECHO_T}no" >&6
1739fi
1740
1741fi
1742if test -z "$ac_cv_prog_STRIP"; then
1743  ac_ct_STRIP=$STRIP
1744  # Extract the first word of "strip", so it can be a program name with args.
1745set dummy strip; ac_word=$2
1746echo "$as_me:$LINENO: checking for $ac_word" >&5
1747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1748if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1749  echo $ECHO_N "(cached) $ECHO_C" >&6
1750else
1751  if test -n "$ac_ct_STRIP"; then
1752  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1753else
1754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1755for as_dir in $PATH
1756do
1757  IFS=$as_save_IFS
1758  test -z "$as_dir" && as_dir=.
1759  for ac_exec_ext in '' $ac_executable_extensions; do
1760  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1761    ac_cv_prog_ac_ct_STRIP="strip"
1762    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1763    break 2
1764  fi
1765done
1766done
1767
1768  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1769fi
1770fi
1771ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1772if test -n "$ac_ct_STRIP"; then
1773  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1774echo "${ECHO_T}$ac_ct_STRIP" >&6
1775else
1776  echo "$as_me:$LINENO: result: no" >&5
1777echo "${ECHO_T}no" >&6
1778fi
1779
1780  STRIP=$ac_ct_STRIP
1781else
1782  STRIP="$ac_cv_prog_STRIP"
1783fi
1784
1785fi
1786INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1787
1788# We need awk for the "check" target.  The system "awk" is bad on
1789# some platforms.
1790# Always define AMTAR for backward compatibility.
1791
1792AMTAR=${AMTAR-"${am_missing_run}tar"}
1793
1794am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1795
1796
1797
1798
1799
1800          ac_config_headers="$ac_config_headers config.h:config.hin"
1801
1802
1803
1804cat >>confdefs.h <<\_ACEOF
1805#define _GNU_SOURCE 1
1806_ACEOF
1807
1808
1809DEPDIR="${am__leading_dot}deps"
1810
1811          ac_config_commands="$ac_config_commands depfiles"
1812
1813
1814am_make=${MAKE-make}
1815cat > confinc << 'END'
1816am__doit:
1817	@echo done
1818.PHONY: am__doit
1819END
1820# If we don't find an include directive, just comment out the code.
1821echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1822echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1823am__include="#"
1824am__quote=
1825_am_result=none
1826# First try GNU make style include.
1827echo "include confinc" > confmf
1828# We grep out `Entering directory' and `Leaving directory'
1829# messages which can occur if `w' ends up in MAKEFLAGS.
1830# In particular we don't look at `^make:' because GNU make might
1831# be invoked under some other name (usually "gmake"), in which
1832# case it prints its new name instead of `make'.
1833if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1834   am__include=include
1835   am__quote=
1836   _am_result=GNU
1837fi
1838# Now try BSD make style include.
1839if test "$am__include" = "#"; then
1840   echo '.include "confinc"' > confmf
1841   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1842      am__include=.include
1843      am__quote="\""
1844      _am_result=BSD
1845   fi
1846fi
1847
1848
1849echo "$as_me:$LINENO: result: $_am_result" >&5
1850echo "${ECHO_T}$_am_result" >&6
1851rm -f confinc confmf
1852
1853# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1854if test "${enable_dependency_tracking+set}" = set; then
1855  enableval="$enable_dependency_tracking"
1856
1857fi;
1858if test "x$enable_dependency_tracking" != xno; then
1859  am_depcomp="$ac_aux_dir/depcomp"
1860  AMDEPBACKSLASH='\'
1861fi
1862
1863
1864if test "x$enable_dependency_tracking" != xno; then
1865  AMDEP_TRUE=
1866  AMDEP_FALSE='#'
1867else
1868  AMDEP_TRUE='#'
1869  AMDEP_FALSE=
1870fi
1871
1872
1873
1874ac_ext=c
1875ac_cpp='$CPP $CPPFLAGS'
1876ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1877ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1878ac_compiler_gnu=$ac_cv_c_compiler_gnu
1879if test -n "$ac_tool_prefix"; then
1880  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1881set dummy ${ac_tool_prefix}gcc; ac_word=$2
1882echo "$as_me:$LINENO: checking for $ac_word" >&5
1883echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1884if test "${ac_cv_prog_CC+set}" = set; then
1885  echo $ECHO_N "(cached) $ECHO_C" >&6
1886else
1887  if test -n "$CC"; then
1888  ac_cv_prog_CC="$CC" # Let the user override the test.
1889else
1890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1891for as_dir in $PATH
1892do
1893  IFS=$as_save_IFS
1894  test -z "$as_dir" && as_dir=.
1895  for ac_exec_ext in '' $ac_executable_extensions; do
1896  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1897    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1898    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1899    break 2
1900  fi
1901done
1902done
1903
1904fi
1905fi
1906CC=$ac_cv_prog_CC
1907if test -n "$CC"; then
1908  echo "$as_me:$LINENO: result: $CC" >&5
1909echo "${ECHO_T}$CC" >&6
1910else
1911  echo "$as_me:$LINENO: result: no" >&5
1912echo "${ECHO_T}no" >&6
1913fi
1914
1915fi
1916if test -z "$ac_cv_prog_CC"; then
1917  ac_ct_CC=$CC
1918  # Extract the first word of "gcc", so it can be a program name with args.
1919set dummy gcc; ac_word=$2
1920echo "$as_me:$LINENO: checking for $ac_word" >&5
1921echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1922if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1923  echo $ECHO_N "(cached) $ECHO_C" >&6
1924else
1925  if test -n "$ac_ct_CC"; then
1926  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1927else
1928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1929for as_dir in $PATH
1930do
1931  IFS=$as_save_IFS
1932  test -z "$as_dir" && as_dir=.
1933  for ac_exec_ext in '' $ac_executable_extensions; do
1934  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1935    ac_cv_prog_ac_ct_CC="gcc"
1936    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1937    break 2
1938  fi
1939done
1940done
1941
1942fi
1943fi
1944ac_ct_CC=$ac_cv_prog_ac_ct_CC
1945if test -n "$ac_ct_CC"; then
1946  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1947echo "${ECHO_T}$ac_ct_CC" >&6
1948else
1949  echo "$as_me:$LINENO: result: no" >&5
1950echo "${ECHO_T}no" >&6
1951fi
1952
1953  CC=$ac_ct_CC
1954else
1955  CC="$ac_cv_prog_CC"
1956fi
1957
1958if test -z "$CC"; then
1959  if test -n "$ac_tool_prefix"; then
1960  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1961set dummy ${ac_tool_prefix}cc; ac_word=$2
1962echo "$as_me:$LINENO: checking for $ac_word" >&5
1963echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1964if test "${ac_cv_prog_CC+set}" = set; then
1965  echo $ECHO_N "(cached) $ECHO_C" >&6
1966else
1967  if test -n "$CC"; then
1968  ac_cv_prog_CC="$CC" # Let the user override the test.
1969else
1970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1971for as_dir in $PATH
1972do
1973  IFS=$as_save_IFS
1974  test -z "$as_dir" && as_dir=.
1975  for ac_exec_ext in '' $ac_executable_extensions; do
1976  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1977    ac_cv_prog_CC="${ac_tool_prefix}cc"
1978    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1979    break 2
1980  fi
1981done
1982done
1983
1984fi
1985fi
1986CC=$ac_cv_prog_CC
1987if test -n "$CC"; then
1988  echo "$as_me:$LINENO: result: $CC" >&5
1989echo "${ECHO_T}$CC" >&6
1990else
1991  echo "$as_me:$LINENO: result: no" >&5
1992echo "${ECHO_T}no" >&6
1993fi
1994
1995fi
1996if test -z "$ac_cv_prog_CC"; then
1997  ac_ct_CC=$CC
1998  # Extract the first word of "cc", so it can be a program name with args.
1999set dummy cc; ac_word=$2
2000echo "$as_me:$LINENO: checking for $ac_word" >&5
2001echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2002if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2003  echo $ECHO_N "(cached) $ECHO_C" >&6
2004else
2005  if test -n "$ac_ct_CC"; then
2006  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2007else
2008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2009for as_dir in $PATH
2010do
2011  IFS=$as_save_IFS
2012  test -z "$as_dir" && as_dir=.
2013  for ac_exec_ext in '' $ac_executable_extensions; do
2014  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2015    ac_cv_prog_ac_ct_CC="cc"
2016    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2017    break 2
2018  fi
2019done
2020done
2021
2022fi
2023fi
2024ac_ct_CC=$ac_cv_prog_ac_ct_CC
2025if test -n "$ac_ct_CC"; then
2026  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2027echo "${ECHO_T}$ac_ct_CC" >&6
2028else
2029  echo "$as_me:$LINENO: result: no" >&5
2030echo "${ECHO_T}no" >&6
2031fi
2032
2033  CC=$ac_ct_CC
2034else
2035  CC="$ac_cv_prog_CC"
2036fi
2037
2038fi
2039if test -z "$CC"; then
2040  # Extract the first word of "cc", so it can be a program name with args.
2041set dummy cc; ac_word=$2
2042echo "$as_me:$LINENO: checking for $ac_word" >&5
2043echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2044if test "${ac_cv_prog_CC+set}" = set; then
2045  echo $ECHO_N "(cached) $ECHO_C" >&6
2046else
2047  if test -n "$CC"; then
2048  ac_cv_prog_CC="$CC" # Let the user override the test.
2049else
2050  ac_prog_rejected=no
2051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2052for as_dir in $PATH
2053do
2054  IFS=$as_save_IFS
2055  test -z "$as_dir" && as_dir=.
2056  for ac_exec_ext in '' $ac_executable_extensions; do
2057  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2058    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2059       ac_prog_rejected=yes
2060       continue
2061     fi
2062    ac_cv_prog_CC="cc"
2063    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2064    break 2
2065  fi
2066done
2067done
2068
2069if test $ac_prog_rejected = yes; then
2070  # We found a bogon in the path, so make sure we never use it.
2071  set dummy $ac_cv_prog_CC
2072  shift
2073  if test $# != 0; then
2074    # We chose a different compiler from the bogus one.
2075    # However, it has the same basename, so the bogon will be chosen
2076    # first if we set CC to just the basename; use the full file name.
2077    shift
2078    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2079  fi
2080fi
2081fi
2082fi
2083CC=$ac_cv_prog_CC
2084if test -n "$CC"; then
2085  echo "$as_me:$LINENO: result: $CC" >&5
2086echo "${ECHO_T}$CC" >&6
2087else
2088  echo "$as_me:$LINENO: result: no" >&5
2089echo "${ECHO_T}no" >&6
2090fi
2091
2092fi
2093if test -z "$CC"; then
2094  if test -n "$ac_tool_prefix"; then
2095  for ac_prog in cl
2096  do
2097    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2098set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2099echo "$as_me:$LINENO: checking for $ac_word" >&5
2100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2101if test "${ac_cv_prog_CC+set}" = set; then
2102  echo $ECHO_N "(cached) $ECHO_C" >&6
2103else
2104  if test -n "$CC"; then
2105  ac_cv_prog_CC="$CC" # Let the user override the test.
2106else
2107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2108for as_dir in $PATH
2109do
2110  IFS=$as_save_IFS
2111  test -z "$as_dir" && as_dir=.
2112  for ac_exec_ext in '' $ac_executable_extensions; do
2113  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2114    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2115    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2116    break 2
2117  fi
2118done
2119done
2120
2121fi
2122fi
2123CC=$ac_cv_prog_CC
2124if test -n "$CC"; then
2125  echo "$as_me:$LINENO: result: $CC" >&5
2126echo "${ECHO_T}$CC" >&6
2127else
2128  echo "$as_me:$LINENO: result: no" >&5
2129echo "${ECHO_T}no" >&6
2130fi
2131
2132    test -n "$CC" && break
2133  done
2134fi
2135if test -z "$CC"; then
2136  ac_ct_CC=$CC
2137  for ac_prog in cl
2138do
2139  # Extract the first word of "$ac_prog", so it can be a program name with args.
2140set dummy $ac_prog; ac_word=$2
2141echo "$as_me:$LINENO: checking for $ac_word" >&5
2142echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2143if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2144  echo $ECHO_N "(cached) $ECHO_C" >&6
2145else
2146  if test -n "$ac_ct_CC"; then
2147  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2148else
2149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2150for as_dir in $PATH
2151do
2152  IFS=$as_save_IFS
2153  test -z "$as_dir" && as_dir=.
2154  for ac_exec_ext in '' $ac_executable_extensions; do
2155  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2156    ac_cv_prog_ac_ct_CC="$ac_prog"
2157    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2158    break 2
2159  fi
2160done
2161done
2162
2163fi
2164fi
2165ac_ct_CC=$ac_cv_prog_ac_ct_CC
2166if test -n "$ac_ct_CC"; then
2167  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2168echo "${ECHO_T}$ac_ct_CC" >&6
2169else
2170  echo "$as_me:$LINENO: result: no" >&5
2171echo "${ECHO_T}no" >&6
2172fi
2173
2174  test -n "$ac_ct_CC" && break
2175done
2176
2177  CC=$ac_ct_CC
2178fi
2179
2180fi
2181
2182
2183test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2184See \`config.log' for more details." >&5
2185echo "$as_me: error: no acceptable C compiler found in \$PATH
2186See \`config.log' for more details." >&2;}
2187   { (exit 1); exit 1; }; }
2188
2189# Provide some information about the compiler.
2190echo "$as_me:$LINENO:" \
2191     "checking for C compiler version" >&5
2192ac_compiler=`set X $ac_compile; echo $2`
2193{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2194  (eval $ac_compiler --version </dev/null >&5) 2>&5
2195  ac_status=$?
2196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197  (exit $ac_status); }
2198{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2199  (eval $ac_compiler -v </dev/null >&5) 2>&5
2200  ac_status=$?
2201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202  (exit $ac_status); }
2203{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2204  (eval $ac_compiler -V </dev/null >&5) 2>&5
2205  ac_status=$?
2206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207  (exit $ac_status); }
2208
2209cat >conftest.$ac_ext <<_ACEOF
2210/* confdefs.h.  */
2211_ACEOF
2212cat confdefs.h >>conftest.$ac_ext
2213cat >>conftest.$ac_ext <<_ACEOF
2214/* end confdefs.h.  */
2215
2216int
2217main ()
2218{
2219
2220  ;
2221  return 0;
2222}
2223_ACEOF
2224ac_clean_files_save=$ac_clean_files
2225ac_clean_files="$ac_clean_files a.out a.exe b.out"
2226# Try to create an executable without -o first, disregard a.out.
2227# It will help us diagnose broken compilers, and finding out an intuition
2228# of exeext.
2229echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2230echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2231ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2232if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2233  (eval $ac_link_default) 2>&5
2234  ac_status=$?
2235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236  (exit $ac_status); }; then
2237  # Find the output, starting from the most likely.  This scheme is
2238# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2239# resort.
2240
2241# Be careful to initialize this variable, since it used to be cached.
2242# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2243ac_cv_exeext=
2244# b.out is created by i960 compilers.
2245for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2246do
2247  test -f "$ac_file" || continue
2248  case $ac_file in
2249    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2250	;;
2251    conftest.$ac_ext )
2252	# This is the source file.
2253	;;
2254    [ab].out )
2255	# We found the default executable, but exeext='' is most
2256	# certainly right.
2257	break;;
2258    *.* )
2259	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2260	# FIXME: I believe we export ac_cv_exeext for Libtool,
2261	# but it would be cool to find out if it's true.  Does anybody
2262	# maintain Libtool? --akim.
2263	export ac_cv_exeext
2264	break;;
2265    * )
2266	break;;
2267  esac
2268done
2269else
2270  echo "$as_me: failed program was:" >&5
2271sed 's/^/| /' conftest.$ac_ext >&5
2272
2273{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2274See \`config.log' for more details." >&5
2275echo "$as_me: error: C compiler cannot create executables
2276See \`config.log' for more details." >&2;}
2277   { (exit 77); exit 77; }; }
2278fi
2279
2280ac_exeext=$ac_cv_exeext
2281echo "$as_me:$LINENO: result: $ac_file" >&5
2282echo "${ECHO_T}$ac_file" >&6
2283
2284# Check the compiler produces executables we can run.  If not, either
2285# the compiler is broken, or we cross compile.
2286echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2287echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2288# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2289# If not cross compiling, check that we can run a simple program.
2290if test "$cross_compiling" != yes; then
2291  if { ac_try='./$ac_file'
2292  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2293  (eval $ac_try) 2>&5
2294  ac_status=$?
2295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296  (exit $ac_status); }; }; then
2297    cross_compiling=no
2298  else
2299    if test "$cross_compiling" = maybe; then
2300	cross_compiling=yes
2301    else
2302	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2303If you meant to cross compile, use \`--host'.
2304See \`config.log' for more details." >&5
2305echo "$as_me: error: cannot run C compiled programs.
2306If you meant to cross compile, use \`--host'.
2307See \`config.log' for more details." >&2;}
2308   { (exit 1); exit 1; }; }
2309    fi
2310  fi
2311fi
2312echo "$as_me:$LINENO: result: yes" >&5
2313echo "${ECHO_T}yes" >&6
2314
2315rm -f a.out a.exe conftest$ac_cv_exeext b.out
2316ac_clean_files=$ac_clean_files_save
2317# Check the compiler produces executables we can run.  If not, either
2318# the compiler is broken, or we cross compile.
2319echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2320echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2321echo "$as_me:$LINENO: result: $cross_compiling" >&5
2322echo "${ECHO_T}$cross_compiling" >&6
2323
2324echo "$as_me:$LINENO: checking for suffix of executables" >&5
2325echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2326if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2327  (eval $ac_link) 2>&5
2328  ac_status=$?
2329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330  (exit $ac_status); }; then
2331  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2332# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2333# work properly (i.e., refer to `conftest.exe'), while it won't with
2334# `rm'.
2335for ac_file in conftest.exe conftest conftest.*; do
2336  test -f "$ac_file" || continue
2337  case $ac_file in
2338    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2339    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2340	  export ac_cv_exeext
2341	  break;;
2342    * ) break;;
2343  esac
2344done
2345else
2346  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2347See \`config.log' for more details." >&5
2348echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2349See \`config.log' for more details." >&2;}
2350   { (exit 1); exit 1; }; }
2351fi
2352
2353rm -f conftest$ac_cv_exeext
2354echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2355echo "${ECHO_T}$ac_cv_exeext" >&6
2356
2357rm -f conftest.$ac_ext
2358EXEEXT=$ac_cv_exeext
2359ac_exeext=$EXEEXT
2360echo "$as_me:$LINENO: checking for suffix of object files" >&5
2361echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2362if test "${ac_cv_objext+set}" = set; then
2363  echo $ECHO_N "(cached) $ECHO_C" >&6
2364else
2365  cat >conftest.$ac_ext <<_ACEOF
2366/* confdefs.h.  */
2367_ACEOF
2368cat confdefs.h >>conftest.$ac_ext
2369cat >>conftest.$ac_ext <<_ACEOF
2370/* end confdefs.h.  */
2371
2372int
2373main ()
2374{
2375
2376  ;
2377  return 0;
2378}
2379_ACEOF
2380rm -f conftest.o conftest.obj
2381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2382  (eval $ac_compile) 2>&5
2383  ac_status=$?
2384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385  (exit $ac_status); }; then
2386  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2387  case $ac_file in
2388    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2389    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2390       break;;
2391  esac
2392done
2393else
2394  echo "$as_me: failed program was:" >&5
2395sed 's/^/| /' conftest.$ac_ext >&5
2396
2397{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2398See \`config.log' for more details." >&5
2399echo "$as_me: error: cannot compute suffix of object files: cannot compile
2400See \`config.log' for more details." >&2;}
2401   { (exit 1); exit 1; }; }
2402fi
2403
2404rm -f conftest.$ac_cv_objext conftest.$ac_ext
2405fi
2406echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2407echo "${ECHO_T}$ac_cv_objext" >&6
2408OBJEXT=$ac_cv_objext
2409ac_objext=$OBJEXT
2410echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2411echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2412if test "${ac_cv_c_compiler_gnu+set}" = set; then
2413  echo $ECHO_N "(cached) $ECHO_C" >&6
2414else
2415  cat >conftest.$ac_ext <<_ACEOF
2416/* confdefs.h.  */
2417_ACEOF
2418cat confdefs.h >>conftest.$ac_ext
2419cat >>conftest.$ac_ext <<_ACEOF
2420/* end confdefs.h.  */
2421
2422int
2423main ()
2424{
2425#ifndef __GNUC__
2426       choke me
2427#endif
2428
2429  ;
2430  return 0;
2431}
2432_ACEOF
2433rm -f conftest.$ac_objext
2434if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2435  (eval $ac_compile) 2>conftest.er1
2436  ac_status=$?
2437  grep -v '^ *+' conftest.er1 >conftest.err
2438  rm -f conftest.er1
2439  cat conftest.err >&5
2440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441  (exit $ac_status); } &&
2442	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2443  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444  (eval $ac_try) 2>&5
2445  ac_status=$?
2446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447  (exit $ac_status); }; } &&
2448	 { ac_try='test -s conftest.$ac_objext'
2449  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2450  (eval $ac_try) 2>&5
2451  ac_status=$?
2452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453  (exit $ac_status); }; }; then
2454  ac_compiler_gnu=yes
2455else
2456  echo "$as_me: failed program was:" >&5
2457sed 's/^/| /' conftest.$ac_ext >&5
2458
2459ac_compiler_gnu=no
2460fi
2461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2462ac_cv_c_compiler_gnu=$ac_compiler_gnu
2463
2464fi
2465echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2466echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2467GCC=`test $ac_compiler_gnu = yes && echo yes`
2468ac_test_CFLAGS=${CFLAGS+set}
2469ac_save_CFLAGS=$CFLAGS
2470CFLAGS="-g"
2471echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2472echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2473if test "${ac_cv_prog_cc_g+set}" = set; then
2474  echo $ECHO_N "(cached) $ECHO_C" >&6
2475else
2476  cat >conftest.$ac_ext <<_ACEOF
2477/* confdefs.h.  */
2478_ACEOF
2479cat confdefs.h >>conftest.$ac_ext
2480cat >>conftest.$ac_ext <<_ACEOF
2481/* end confdefs.h.  */
2482
2483int
2484main ()
2485{
2486
2487  ;
2488  return 0;
2489}
2490_ACEOF
2491rm -f conftest.$ac_objext
2492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2493  (eval $ac_compile) 2>conftest.er1
2494  ac_status=$?
2495  grep -v '^ *+' conftest.er1 >conftest.err
2496  rm -f conftest.er1
2497  cat conftest.err >&5
2498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499  (exit $ac_status); } &&
2500	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2501  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2502  (eval $ac_try) 2>&5
2503  ac_status=$?
2504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505  (exit $ac_status); }; } &&
2506	 { ac_try='test -s conftest.$ac_objext'
2507  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2508  (eval $ac_try) 2>&5
2509  ac_status=$?
2510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511  (exit $ac_status); }; }; then
2512  ac_cv_prog_cc_g=yes
2513else
2514  echo "$as_me: failed program was:" >&5
2515sed 's/^/| /' conftest.$ac_ext >&5
2516
2517ac_cv_prog_cc_g=no
2518fi
2519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2520fi
2521echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2522echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2523if test "$ac_test_CFLAGS" = set; then
2524  CFLAGS=$ac_save_CFLAGS
2525elif test $ac_cv_prog_cc_g = yes; then
2526  if test "$GCC" = yes; then
2527    CFLAGS="-g -O2"
2528  else
2529    CFLAGS="-g"
2530  fi
2531else
2532  if test "$GCC" = yes; then
2533    CFLAGS="-O2"
2534  else
2535    CFLAGS=
2536  fi
2537fi
2538echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2539echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2540if test "${ac_cv_prog_cc_stdc+set}" = set; then
2541  echo $ECHO_N "(cached) $ECHO_C" >&6
2542else
2543  ac_cv_prog_cc_stdc=no
2544ac_save_CC=$CC
2545cat >conftest.$ac_ext <<_ACEOF
2546/* confdefs.h.  */
2547_ACEOF
2548cat confdefs.h >>conftest.$ac_ext
2549cat >>conftest.$ac_ext <<_ACEOF
2550/* end confdefs.h.  */
2551#include <stdarg.h>
2552#include <stdio.h>
2553#include <sys/types.h>
2554#include <sys/stat.h>
2555/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2556struct buf { int x; };
2557FILE * (*rcsopen) (struct buf *, struct stat *, int);
2558static char *e (p, i)
2559     char **p;
2560     int i;
2561{
2562  return p[i];
2563}
2564static char *f (char * (*g) (char **, int), char **p, ...)
2565{
2566  char *s;
2567  va_list v;
2568  va_start (v,p);
2569  s = g (p, va_arg (v,int));
2570  va_end (v);
2571  return s;
2572}
2573
2574/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2575   function prototypes and stuff, but not '\xHH' hex character constants.
2576   These don't provoke an error unfortunately, instead are silently treated
2577   as 'x'.  The following induces an error, until -std1 is added to get
2578   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2579   array size at least.  It's necessary to write '\x00'==0 to get something
2580   that's true only with -std1.  */
2581int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2582
2583int test (int i, double x);
2584struct s1 {int (*f) (int a);};
2585struct s2 {int (*f) (double a);};
2586int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2587int argc;
2588char **argv;
2589int
2590main ()
2591{
2592return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2593  ;
2594  return 0;
2595}
2596_ACEOF
2597# Don't try gcc -ansi; that turns off useful extensions and
2598# breaks some systems' header files.
2599# AIX			-qlanglvl=ansi
2600# Ultrix and OSF/1	-std1
2601# HP-UX 10.20 and later	-Ae
2602# HP-UX older versions	-Aa -D_HPUX_SOURCE
2603# SVR4			-Xc -D__EXTENSIONS__
2604for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2605do
2606  CC="$ac_save_CC $ac_arg"
2607  rm -f conftest.$ac_objext
2608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2609  (eval $ac_compile) 2>conftest.er1
2610  ac_status=$?
2611  grep -v '^ *+' conftest.er1 >conftest.err
2612  rm -f conftest.er1
2613  cat conftest.err >&5
2614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615  (exit $ac_status); } &&
2616	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618  (eval $ac_try) 2>&5
2619  ac_status=$?
2620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621  (exit $ac_status); }; } &&
2622	 { ac_try='test -s conftest.$ac_objext'
2623  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624  (eval $ac_try) 2>&5
2625  ac_status=$?
2626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627  (exit $ac_status); }; }; then
2628  ac_cv_prog_cc_stdc=$ac_arg
2629break
2630else
2631  echo "$as_me: failed program was:" >&5
2632sed 's/^/| /' conftest.$ac_ext >&5
2633
2634fi
2635rm -f conftest.err conftest.$ac_objext
2636done
2637rm -f conftest.$ac_ext conftest.$ac_objext
2638CC=$ac_save_CC
2639
2640fi
2641
2642case "x$ac_cv_prog_cc_stdc" in
2643  x|xno)
2644    echo "$as_me:$LINENO: result: none needed" >&5
2645echo "${ECHO_T}none needed" >&6 ;;
2646  *)
2647    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2648echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2649    CC="$CC $ac_cv_prog_cc_stdc" ;;
2650esac
2651
2652# Some people use a C++ compiler to compile C.  Since we use `exit',
2653# in C++ we need to declare it.  In case someone uses the same compiler
2654# for both compiling C and C++ we need to have the C++ compiler decide
2655# the declaration of exit, since it's the most demanding environment.
2656cat >conftest.$ac_ext <<_ACEOF
2657#ifndef __cplusplus
2658  choke me
2659#endif
2660_ACEOF
2661rm -f conftest.$ac_objext
2662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2663  (eval $ac_compile) 2>conftest.er1
2664  ac_status=$?
2665  grep -v '^ *+' conftest.er1 >conftest.err
2666  rm -f conftest.er1
2667  cat conftest.err >&5
2668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669  (exit $ac_status); } &&
2670	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2671  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2672  (eval $ac_try) 2>&5
2673  ac_status=$?
2674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675  (exit $ac_status); }; } &&
2676	 { ac_try='test -s conftest.$ac_objext'
2677  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2678  (eval $ac_try) 2>&5
2679  ac_status=$?
2680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681  (exit $ac_status); }; }; then
2682  for ac_declaration in \
2683   '' \
2684   'extern "C" void std::exit (int) throw (); using std::exit;' \
2685   'extern "C" void std::exit (int); using std::exit;' \
2686   'extern "C" void exit (int) throw ();' \
2687   'extern "C" void exit (int);' \
2688   'void exit (int);'
2689do
2690  cat >conftest.$ac_ext <<_ACEOF
2691/* confdefs.h.  */
2692_ACEOF
2693cat confdefs.h >>conftest.$ac_ext
2694cat >>conftest.$ac_ext <<_ACEOF
2695/* end confdefs.h.  */
2696$ac_declaration
2697#include <stdlib.h>
2698int
2699main ()
2700{
2701exit (42);
2702  ;
2703  return 0;
2704}
2705_ACEOF
2706rm -f conftest.$ac_objext
2707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2708  (eval $ac_compile) 2>conftest.er1
2709  ac_status=$?
2710  grep -v '^ *+' conftest.er1 >conftest.err
2711  rm -f conftest.er1
2712  cat conftest.err >&5
2713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714  (exit $ac_status); } &&
2715	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2716  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2717  (eval $ac_try) 2>&5
2718  ac_status=$?
2719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720  (exit $ac_status); }; } &&
2721	 { ac_try='test -s conftest.$ac_objext'
2722  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2723  (eval $ac_try) 2>&5
2724  ac_status=$?
2725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726  (exit $ac_status); }; }; then
2727  :
2728else
2729  echo "$as_me: failed program was:" >&5
2730sed 's/^/| /' conftest.$ac_ext >&5
2731
2732continue
2733fi
2734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2735  cat >conftest.$ac_ext <<_ACEOF
2736/* confdefs.h.  */
2737_ACEOF
2738cat confdefs.h >>conftest.$ac_ext
2739cat >>conftest.$ac_ext <<_ACEOF
2740/* end confdefs.h.  */
2741$ac_declaration
2742int
2743main ()
2744{
2745exit (42);
2746  ;
2747  return 0;
2748}
2749_ACEOF
2750rm -f conftest.$ac_objext
2751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2752  (eval $ac_compile) 2>conftest.er1
2753  ac_status=$?
2754  grep -v '^ *+' conftest.er1 >conftest.err
2755  rm -f conftest.er1
2756  cat conftest.err >&5
2757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758  (exit $ac_status); } &&
2759	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2760  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2761  (eval $ac_try) 2>&5
2762  ac_status=$?
2763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764  (exit $ac_status); }; } &&
2765	 { ac_try='test -s conftest.$ac_objext'
2766  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2767  (eval $ac_try) 2>&5
2768  ac_status=$?
2769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770  (exit $ac_status); }; }; then
2771  break
2772else
2773  echo "$as_me: failed program was:" >&5
2774sed 's/^/| /' conftest.$ac_ext >&5
2775
2776fi
2777rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2778done
2779rm -f conftest*
2780if test -n "$ac_declaration"; then
2781  echo '#ifdef __cplusplus' >>confdefs.h
2782  echo $ac_declaration      >>confdefs.h
2783  echo '#endif'             >>confdefs.h
2784fi
2785
2786else
2787  echo "$as_me: failed program was:" >&5
2788sed 's/^/| /' conftest.$ac_ext >&5
2789
2790fi
2791rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2792ac_ext=c
2793ac_cpp='$CPP $CPPFLAGS'
2794ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2795ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2796ac_compiler_gnu=$ac_cv_c_compiler_gnu
2797
2798depcc="$CC"   am_compiler_list=
2799
2800echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2801echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2802if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2803  echo $ECHO_N "(cached) $ECHO_C" >&6
2804else
2805  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2806  # We make a subdir and do the tests there.  Otherwise we can end up
2807  # making bogus files that we don't know about and never remove.  For
2808  # instance it was reported that on HP-UX the gcc test will end up
2809  # making a dummy file named `D' -- because `-MD' means `put the output
2810  # in D'.
2811  mkdir conftest.dir
2812  # Copy depcomp to subdir because otherwise we won't find it if we're
2813  # using a relative directory.
2814  cp "$am_depcomp" conftest.dir
2815  cd conftest.dir
2816  # We will build objects and dependencies in a subdirectory because
2817  # it helps to detect inapplicable dependency modes.  For instance
2818  # both Tru64's cc and ICC support -MD to output dependencies as a
2819  # side effect of compilation, but ICC will put the dependencies in
2820  # the current directory while Tru64 will put them in the object
2821  # directory.
2822  mkdir sub
2823
2824  am_cv_CC_dependencies_compiler_type=none
2825  if test "$am_compiler_list" = ""; then
2826     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2827  fi
2828  for depmode in $am_compiler_list; do
2829    # Setup a source with many dependencies, because some compilers
2830    # like to wrap large dependency lists on column 80 (with \), and
2831    # we should not choose a depcomp mode which is confused by this.
2832    #
2833    # We need to recreate these files for each test, as the compiler may
2834    # overwrite some of them when testing with obscure command lines.
2835    # This happens at least with the AIX C compiler.
2836    : > sub/conftest.c
2837    for i in 1 2 3 4 5 6; do
2838      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2839      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2840      # Solaris 8's {/usr,}/bin/sh.
2841      touch sub/conftst$i.h
2842    done
2843    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2844
2845    case $depmode in
2846    nosideeffect)
2847      # after this tag, mechanisms are not by side-effect, so they'll
2848      # only be used when explicitly requested
2849      if test "x$enable_dependency_tracking" = xyes; then
2850	continue
2851      else
2852	break
2853      fi
2854      ;;
2855    none) break ;;
2856    esac
2857    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2858    # mode.  It turns out that the SunPro C++ compiler does not properly
2859    # handle `-M -o', and we need to detect this.
2860    if depmode=$depmode \
2861       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2862       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2863       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2864         >/dev/null 2>conftest.err &&
2865       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2866       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2867       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2868      # icc doesn't choke on unknown options, it will just issue warnings
2869      # or remarks (even with -Werror).  So we grep stderr for any message
2870      # that says an option was ignored or not supported.
2871      # When given -MP, icc 7.0 and 7.1 complain thusly:
2872      #   icc: Command line warning: ignoring option '-M'; no argument required
2873      # The diagnosis changed in icc 8.0:
2874      #   icc: Command line remark: option '-MP' not supported
2875      if (grep 'ignoring option' conftest.err ||
2876          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2877        am_cv_CC_dependencies_compiler_type=$depmode
2878        break
2879      fi
2880    fi
2881  done
2882
2883  cd ..
2884  rm -rf conftest.dir
2885else
2886  am_cv_CC_dependencies_compiler_type=none
2887fi
2888
2889fi
2890echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2891echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2892CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2893
2894
2895
2896if
2897  test "x$enable_dependency_tracking" != xno \
2898  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2899  am__fastdepCC_TRUE=
2900  am__fastdepCC_FALSE='#'
2901else
2902  am__fastdepCC_TRUE='#'
2903  am__fastdepCC_FALSE=
2904fi
2905
2906
2907
2908ac_ext=c
2909ac_cpp='$CPP $CPPFLAGS'
2910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2912ac_compiler_gnu=$ac_cv_c_compiler_gnu
2913echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2914echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2915# On Suns, sometimes $CPP names a directory.
2916if test -n "$CPP" && test -d "$CPP"; then
2917  CPP=
2918fi
2919if test -z "$CPP"; then
2920  if test "${ac_cv_prog_CPP+set}" = set; then
2921  echo $ECHO_N "(cached) $ECHO_C" >&6
2922else
2923      # Double quotes because CPP needs to be expanded
2924    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2925    do
2926      ac_preproc_ok=false
2927for ac_c_preproc_warn_flag in '' yes
2928do
2929  # Use a header file that comes with gcc, so configuring glibc
2930  # with a fresh cross-compiler works.
2931  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2932  # <limits.h> exists even on freestanding compilers.
2933  # On the NeXT, cc -E runs the code through the compiler's parser,
2934  # not just through cpp. "Syntax error" is here to catch this case.
2935  cat >conftest.$ac_ext <<_ACEOF
2936/* confdefs.h.  */
2937_ACEOF
2938cat confdefs.h >>conftest.$ac_ext
2939cat >>conftest.$ac_ext <<_ACEOF
2940/* end confdefs.h.  */
2941#ifdef __STDC__
2942# include <limits.h>
2943#else
2944# include <assert.h>
2945#endif
2946		     Syntax error
2947_ACEOF
2948if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2949  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2950  ac_status=$?
2951  grep -v '^ *+' conftest.er1 >conftest.err
2952  rm -f conftest.er1
2953  cat conftest.err >&5
2954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955  (exit $ac_status); } >/dev/null; then
2956  if test -s conftest.err; then
2957    ac_cpp_err=$ac_c_preproc_warn_flag
2958    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2959  else
2960    ac_cpp_err=
2961  fi
2962else
2963  ac_cpp_err=yes
2964fi
2965if test -z "$ac_cpp_err"; then
2966  :
2967else
2968  echo "$as_me: failed program was:" >&5
2969sed 's/^/| /' conftest.$ac_ext >&5
2970
2971  # Broken: fails on valid input.
2972continue
2973fi
2974rm -f conftest.err conftest.$ac_ext
2975
2976  # OK, works on sane cases.  Now check whether non-existent headers
2977  # can be detected and how.
2978  cat >conftest.$ac_ext <<_ACEOF
2979/* confdefs.h.  */
2980_ACEOF
2981cat confdefs.h >>conftest.$ac_ext
2982cat >>conftest.$ac_ext <<_ACEOF
2983/* end confdefs.h.  */
2984#include <ac_nonexistent.h>
2985_ACEOF
2986if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2987  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2988  ac_status=$?
2989  grep -v '^ *+' conftest.er1 >conftest.err
2990  rm -f conftest.er1
2991  cat conftest.err >&5
2992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993  (exit $ac_status); } >/dev/null; then
2994  if test -s conftest.err; then
2995    ac_cpp_err=$ac_c_preproc_warn_flag
2996    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2997  else
2998    ac_cpp_err=
2999  fi
3000else
3001  ac_cpp_err=yes
3002fi
3003if test -z "$ac_cpp_err"; then
3004  # Broken: success on invalid input.
3005continue
3006else
3007  echo "$as_me: failed program was:" >&5
3008sed 's/^/| /' conftest.$ac_ext >&5
3009
3010  # Passes both tests.
3011ac_preproc_ok=:
3012break
3013fi
3014rm -f conftest.err conftest.$ac_ext
3015
3016done
3017# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3018rm -f conftest.err conftest.$ac_ext
3019if $ac_preproc_ok; then
3020  break
3021fi
3022
3023    done
3024    ac_cv_prog_CPP=$CPP
3025
3026fi
3027  CPP=$ac_cv_prog_CPP
3028else
3029  ac_cv_prog_CPP=$CPP
3030fi
3031echo "$as_me:$LINENO: result: $CPP" >&5
3032echo "${ECHO_T}$CPP" >&6
3033ac_preproc_ok=false
3034for ac_c_preproc_warn_flag in '' yes
3035do
3036  # Use a header file that comes with gcc, so configuring glibc
3037  # with a fresh cross-compiler works.
3038  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3039  # <limits.h> exists even on freestanding compilers.
3040  # On the NeXT, cc -E runs the code through the compiler's parser,
3041  # not just through cpp. "Syntax error" is here to catch this case.
3042  cat >conftest.$ac_ext <<_ACEOF
3043/* confdefs.h.  */
3044_ACEOF
3045cat confdefs.h >>conftest.$ac_ext
3046cat >>conftest.$ac_ext <<_ACEOF
3047/* end confdefs.h.  */
3048#ifdef __STDC__
3049# include <limits.h>
3050#else
3051# include <assert.h>
3052#endif
3053		     Syntax error
3054_ACEOF
3055if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3056  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3057  ac_status=$?
3058  grep -v '^ *+' conftest.er1 >conftest.err
3059  rm -f conftest.er1
3060  cat conftest.err >&5
3061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062  (exit $ac_status); } >/dev/null; then
3063  if test -s conftest.err; then
3064    ac_cpp_err=$ac_c_preproc_warn_flag
3065    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3066  else
3067    ac_cpp_err=
3068  fi
3069else
3070  ac_cpp_err=yes
3071fi
3072if test -z "$ac_cpp_err"; then
3073  :
3074else
3075  echo "$as_me: failed program was:" >&5
3076sed 's/^/| /' conftest.$ac_ext >&5
3077
3078  # Broken: fails on valid input.
3079continue
3080fi
3081rm -f conftest.err conftest.$ac_ext
3082
3083  # OK, works on sane cases.  Now check whether non-existent headers
3084  # can be detected and how.
3085  cat >conftest.$ac_ext <<_ACEOF
3086/* confdefs.h.  */
3087_ACEOF
3088cat confdefs.h >>conftest.$ac_ext
3089cat >>conftest.$ac_ext <<_ACEOF
3090/* end confdefs.h.  */
3091#include <ac_nonexistent.h>
3092_ACEOF
3093if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3094  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3095  ac_status=$?
3096  grep -v '^ *+' conftest.er1 >conftest.err
3097  rm -f conftest.er1
3098  cat conftest.err >&5
3099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100  (exit $ac_status); } >/dev/null; then
3101  if test -s conftest.err; then
3102    ac_cpp_err=$ac_c_preproc_warn_flag
3103    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3104  else
3105    ac_cpp_err=
3106  fi
3107else
3108  ac_cpp_err=yes
3109fi
3110if test -z "$ac_cpp_err"; then
3111  # Broken: success on invalid input.
3112continue
3113else
3114  echo "$as_me: failed program was:" >&5
3115sed 's/^/| /' conftest.$ac_ext >&5
3116
3117  # Passes both tests.
3118ac_preproc_ok=:
3119break
3120fi
3121rm -f conftest.err conftest.$ac_ext
3122
3123done
3124# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3125rm -f conftest.err conftest.$ac_ext
3126if $ac_preproc_ok; then
3127  :
3128else
3129  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3130See \`config.log' for more details." >&5
3131echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3132See \`config.log' for more details." >&2;}
3133   { (exit 1); exit 1; }; }
3134fi
3135
3136ac_ext=c
3137ac_cpp='$CPP $CPPFLAGS'
3138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3140ac_compiler_gnu=$ac_cv_c_compiler_gnu
3141
3142
3143echo "$as_me:$LINENO: checking for egrep" >&5
3144echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3145if test "${ac_cv_prog_egrep+set}" = set; then
3146  echo $ECHO_N "(cached) $ECHO_C" >&6
3147else
3148  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3149    then ac_cv_prog_egrep='grep -E'
3150    else ac_cv_prog_egrep='egrep'
3151    fi
3152fi
3153echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3154echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3155 EGREP=$ac_cv_prog_egrep
3156
3157
3158
3159echo "$as_me:$LINENO: checking for AIX" >&5
3160echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3161cat >conftest.$ac_ext <<_ACEOF
3162/* confdefs.h.  */
3163_ACEOF
3164cat confdefs.h >>conftest.$ac_ext
3165cat >>conftest.$ac_ext <<_ACEOF
3166/* end confdefs.h.  */
3167#ifdef _AIX
3168  yes
3169#endif
3170
3171_ACEOF
3172if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3173  $EGREP "yes" >/dev/null 2>&1; then
3174  echo "$as_me:$LINENO: result: yes" >&5
3175echo "${ECHO_T}yes" >&6
3176cat >>confdefs.h <<\_ACEOF
3177#define _ALL_SOURCE 1
3178_ACEOF
3179
3180else
3181  echo "$as_me:$LINENO: result: no" >&5
3182echo "${ECHO_T}no" >&6
3183fi
3184rm -f conftest*
3185
3186
3187echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3188echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3189if test "${ac_cv_header_stdc+set}" = set; then
3190  echo $ECHO_N "(cached) $ECHO_C" >&6
3191else
3192  cat >conftest.$ac_ext <<_ACEOF
3193/* confdefs.h.  */
3194_ACEOF
3195cat confdefs.h >>conftest.$ac_ext
3196cat >>conftest.$ac_ext <<_ACEOF
3197/* end confdefs.h.  */
3198#include <stdlib.h>
3199#include <stdarg.h>
3200#include <string.h>
3201#include <float.h>
3202
3203int
3204main ()
3205{
3206
3207  ;
3208  return 0;
3209}
3210_ACEOF
3211rm -f conftest.$ac_objext
3212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3213  (eval $ac_compile) 2>conftest.er1
3214  ac_status=$?
3215  grep -v '^ *+' conftest.er1 >conftest.err
3216  rm -f conftest.er1
3217  cat conftest.err >&5
3218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219  (exit $ac_status); } &&
3220	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3221  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3222  (eval $ac_try) 2>&5
3223  ac_status=$?
3224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225  (exit $ac_status); }; } &&
3226	 { ac_try='test -s conftest.$ac_objext'
3227  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3228  (eval $ac_try) 2>&5
3229  ac_status=$?
3230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231  (exit $ac_status); }; }; then
3232  ac_cv_header_stdc=yes
3233else
3234  echo "$as_me: failed program was:" >&5
3235sed 's/^/| /' conftest.$ac_ext >&5
3236
3237ac_cv_header_stdc=no
3238fi
3239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3240
3241if test $ac_cv_header_stdc = yes; then
3242  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3243  cat >conftest.$ac_ext <<_ACEOF
3244/* confdefs.h.  */
3245_ACEOF
3246cat confdefs.h >>conftest.$ac_ext
3247cat >>conftest.$ac_ext <<_ACEOF
3248/* end confdefs.h.  */
3249#include <string.h>
3250
3251_ACEOF
3252if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3253  $EGREP "memchr" >/dev/null 2>&1; then
3254  :
3255else
3256  ac_cv_header_stdc=no
3257fi
3258rm -f conftest*
3259
3260fi
3261
3262if test $ac_cv_header_stdc = yes; then
3263  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3264  cat >conftest.$ac_ext <<_ACEOF
3265/* confdefs.h.  */
3266_ACEOF
3267cat confdefs.h >>conftest.$ac_ext
3268cat >>conftest.$ac_ext <<_ACEOF
3269/* end confdefs.h.  */
3270#include <stdlib.h>
3271
3272_ACEOF
3273if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3274  $EGREP "free" >/dev/null 2>&1; then
3275  :
3276else
3277  ac_cv_header_stdc=no
3278fi
3279rm -f conftest*
3280
3281fi
3282
3283if test $ac_cv_header_stdc = yes; then
3284  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3285  if test "$cross_compiling" = yes; then
3286  :
3287else
3288  cat >conftest.$ac_ext <<_ACEOF
3289/* confdefs.h.  */
3290_ACEOF
3291cat confdefs.h >>conftest.$ac_ext
3292cat >>conftest.$ac_ext <<_ACEOF
3293/* end confdefs.h.  */
3294#include <ctype.h>
3295#if ((' ' & 0x0FF) == 0x020)
3296# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3297# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3298#else
3299# define ISLOWER(c) \
3300		   (('a' <= (c) && (c) <= 'i') \
3301		     || ('j' <= (c) && (c) <= 'r') \
3302		     || ('s' <= (c) && (c) <= 'z'))
3303# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3304#endif
3305
3306#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3307int
3308main ()
3309{
3310  int i;
3311  for (i = 0; i < 256; i++)
3312    if (XOR (islower (i), ISLOWER (i))
3313	|| toupper (i) != TOUPPER (i))
3314      exit(2);
3315  exit (0);
3316}
3317_ACEOF
3318rm -f conftest$ac_exeext
3319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3320  (eval $ac_link) 2>&5
3321  ac_status=$?
3322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3324  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3325  (eval $ac_try) 2>&5
3326  ac_status=$?
3327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328  (exit $ac_status); }; }; then
3329  :
3330else
3331  echo "$as_me: program exited with status $ac_status" >&5
3332echo "$as_me: failed program was:" >&5
3333sed 's/^/| /' conftest.$ac_ext >&5
3334
3335( exit $ac_status )
3336ac_cv_header_stdc=no
3337fi
3338rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3339fi
3340fi
3341fi
3342echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3343echo "${ECHO_T}$ac_cv_header_stdc" >&6
3344if test $ac_cv_header_stdc = yes; then
3345
3346cat >>confdefs.h <<\_ACEOF
3347#define STDC_HEADERS 1
3348_ACEOF
3349
3350fi
3351
3352# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3363		  inttypes.h stdint.h unistd.h
3364do
3365as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3366echo "$as_me:$LINENO: checking for $ac_header" >&5
3367echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3368if eval "test \"\${$as_ac_Header+set}\" = set"; then
3369  echo $ECHO_N "(cached) $ECHO_C" >&6
3370else
3371  cat >conftest.$ac_ext <<_ACEOF
3372/* confdefs.h.  */
3373_ACEOF
3374cat confdefs.h >>conftest.$ac_ext
3375cat >>conftest.$ac_ext <<_ACEOF
3376/* end confdefs.h.  */
3377$ac_includes_default
3378
3379#include <$ac_header>
3380_ACEOF
3381rm -f conftest.$ac_objext
3382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3383  (eval $ac_compile) 2>conftest.er1
3384  ac_status=$?
3385  grep -v '^ *+' conftest.er1 >conftest.err
3386  rm -f conftest.er1
3387  cat conftest.err >&5
3388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389  (exit $ac_status); } &&
3390	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3391  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3392  (eval $ac_try) 2>&5
3393  ac_status=$?
3394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395  (exit $ac_status); }; } &&
3396	 { ac_try='test -s conftest.$ac_objext'
3397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3398  (eval $ac_try) 2>&5
3399  ac_status=$?
3400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401  (exit $ac_status); }; }; then
3402  eval "$as_ac_Header=yes"
3403else
3404  echo "$as_me: failed program was:" >&5
3405sed 's/^/| /' conftest.$ac_ext >&5
3406
3407eval "$as_ac_Header=no"
3408fi
3409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3410fi
3411echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3412echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3413if test `eval echo '${'$as_ac_Header'}'` = yes; then
3414  cat >>confdefs.h <<_ACEOF
3415#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3416_ACEOF
3417
3418fi
3419
3420done
3421
3422
3423if test "${ac_cv_header_minix_config_h+set}" = set; then
3424  echo "$as_me:$LINENO: checking for minix/config.h" >&5
3425echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3426if test "${ac_cv_header_minix_config_h+set}" = set; then
3427  echo $ECHO_N "(cached) $ECHO_C" >&6
3428fi
3429echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3430echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3431else
3432  # Is the header compilable?
3433echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3434echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3435cat >conftest.$ac_ext <<_ACEOF
3436/* confdefs.h.  */
3437_ACEOF
3438cat confdefs.h >>conftest.$ac_ext
3439cat >>conftest.$ac_ext <<_ACEOF
3440/* end confdefs.h.  */
3441$ac_includes_default
3442#include <minix/config.h>
3443_ACEOF
3444rm -f conftest.$ac_objext
3445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3446  (eval $ac_compile) 2>conftest.er1
3447  ac_status=$?
3448  grep -v '^ *+' conftest.er1 >conftest.err
3449  rm -f conftest.er1
3450  cat conftest.err >&5
3451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452  (exit $ac_status); } &&
3453	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3454  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3455  (eval $ac_try) 2>&5
3456  ac_status=$?
3457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458  (exit $ac_status); }; } &&
3459	 { ac_try='test -s conftest.$ac_objext'
3460  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3461  (eval $ac_try) 2>&5
3462  ac_status=$?
3463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464  (exit $ac_status); }; }; then
3465  ac_header_compiler=yes
3466else
3467  echo "$as_me: failed program was:" >&5
3468sed 's/^/| /' conftest.$ac_ext >&5
3469
3470ac_header_compiler=no
3471fi
3472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3473echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3474echo "${ECHO_T}$ac_header_compiler" >&6
3475
3476# Is the header present?
3477echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3478echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3479cat >conftest.$ac_ext <<_ACEOF
3480/* confdefs.h.  */
3481_ACEOF
3482cat confdefs.h >>conftest.$ac_ext
3483cat >>conftest.$ac_ext <<_ACEOF
3484/* end confdefs.h.  */
3485#include <minix/config.h>
3486_ACEOF
3487if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3488  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3489  ac_status=$?
3490  grep -v '^ *+' conftest.er1 >conftest.err
3491  rm -f conftest.er1
3492  cat conftest.err >&5
3493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494  (exit $ac_status); } >/dev/null; then
3495  if test -s conftest.err; then
3496    ac_cpp_err=$ac_c_preproc_warn_flag
3497    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3498  else
3499    ac_cpp_err=
3500  fi
3501else
3502  ac_cpp_err=yes
3503fi
3504if test -z "$ac_cpp_err"; then
3505  ac_header_preproc=yes
3506else
3507  echo "$as_me: failed program was:" >&5
3508sed 's/^/| /' conftest.$ac_ext >&5
3509
3510  ac_header_preproc=no
3511fi
3512rm -f conftest.err conftest.$ac_ext
3513echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3514echo "${ECHO_T}$ac_header_preproc" >&6
3515
3516# So?  What about this header?
3517case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3518  yes:no: )
3519    { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3520echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3521    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3522echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3523    ac_header_preproc=yes
3524    ;;
3525  no:yes:* )
3526    { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3527echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3528    { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
3529echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
3530    { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3531echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3532    { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
3533echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3534    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3535echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3536    { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3537echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3538    (
3539      cat <<\_ASBOX
3540## -------------------------------- ##
3541## Report this to bug-bison@gnu.org ##
3542## -------------------------------- ##
3543_ASBOX
3544    ) |
3545      sed "s/^/$as_me: WARNING:     /" >&2
3546    ;;
3547esac
3548echo "$as_me:$LINENO: checking for minix/config.h" >&5
3549echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3550if test "${ac_cv_header_minix_config_h+set}" = set; then
3551  echo $ECHO_N "(cached) $ECHO_C" >&6
3552else
3553  ac_cv_header_minix_config_h=$ac_header_preproc
3554fi
3555echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3556echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3557
3558fi
3559if test $ac_cv_header_minix_config_h = yes; then
3560  MINIX=yes
3561else
3562  MINIX=
3563fi
3564
3565
3566if test "$MINIX" = yes; then
3567
3568cat >>confdefs.h <<\_ACEOF
3569#define _POSIX_SOURCE 1
3570_ACEOF
3571
3572
3573cat >>confdefs.h <<\_ACEOF
3574#define _POSIX_1_SOURCE 2
3575_ACEOF
3576
3577
3578cat >>confdefs.h <<\_ACEOF
3579#define _MINIX 1
3580_ACEOF
3581
3582fi
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594  echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3595echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3596if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3597  echo $ECHO_N "(cached) $ECHO_C" >&6
3598else
3599  cat >conftest.$ac_ext <<_ACEOF
3600/* confdefs.h.  */
3601_ACEOF
3602cat confdefs.h >>conftest.$ac_ext
3603cat >>conftest.$ac_ext <<_ACEOF
3604/* end confdefs.h.  */
3605
3606	  #define __EXTENSIONS__ 1
3607	  $ac_includes_default
3608int
3609main ()
3610{
3611
3612  ;
3613  return 0;
3614}
3615_ACEOF
3616rm -f conftest.$ac_objext
3617if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3618  (eval $ac_compile) 2>conftest.er1
3619  ac_status=$?
3620  grep -v '^ *+' conftest.er1 >conftest.err
3621  rm -f conftest.er1
3622  cat conftest.err >&5
3623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624  (exit $ac_status); } &&
3625	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3626  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3627  (eval $ac_try) 2>&5
3628  ac_status=$?
3629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630  (exit $ac_status); }; } &&
3631	 { ac_try='test -s conftest.$ac_objext'
3632  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3633  (eval $ac_try) 2>&5
3634  ac_status=$?
3635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636  (exit $ac_status); }; }; then
3637  ac_cv_safe_to_define___extensions__=yes
3638else
3639  echo "$as_me: failed program was:" >&5
3640sed 's/^/| /' conftest.$ac_ext >&5
3641
3642ac_cv_safe_to_define___extensions__=no
3643fi
3644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3645fi
3646echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3647echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
3648  test $ac_cv_safe_to_define___extensions__ = yes &&
3649    cat >>confdefs.h <<\_ACEOF
3650#define __EXTENSIONS__ 1
3651_ACEOF
3652
3653  cat >>confdefs.h <<\_ACEOF
3654#define _POSIX_PTHREAD_SEMANTICS 1
3655_ACEOF
3656
3657
3658
3659# Checks for the compiler.
3660ac_ext=c
3661ac_cpp='$CPP $CPPFLAGS'
3662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3664ac_compiler_gnu=$ac_cv_c_compiler_gnu
3665if test -n "$ac_tool_prefix"; then
3666  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3667set dummy ${ac_tool_prefix}gcc; ac_word=$2
3668echo "$as_me:$LINENO: checking for $ac_word" >&5
3669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3670if test "${ac_cv_prog_CC+set}" = set; then
3671  echo $ECHO_N "(cached) $ECHO_C" >&6
3672else
3673  if test -n "$CC"; then
3674  ac_cv_prog_CC="$CC" # Let the user override the test.
3675else
3676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3677for as_dir in $PATH
3678do
3679  IFS=$as_save_IFS
3680  test -z "$as_dir" && as_dir=.
3681  for ac_exec_ext in '' $ac_executable_extensions; do
3682  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3683    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3684    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3685    break 2
3686  fi
3687done
3688done
3689
3690fi
3691fi
3692CC=$ac_cv_prog_CC
3693if test -n "$CC"; then
3694  echo "$as_me:$LINENO: result: $CC" >&5
3695echo "${ECHO_T}$CC" >&6
3696else
3697  echo "$as_me:$LINENO: result: no" >&5
3698echo "${ECHO_T}no" >&6
3699fi
3700
3701fi
3702if test -z "$ac_cv_prog_CC"; then
3703  ac_ct_CC=$CC
3704  # Extract the first word of "gcc", so it can be a program name with args.
3705set dummy gcc; ac_word=$2
3706echo "$as_me:$LINENO: checking for $ac_word" >&5
3707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3708if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3709  echo $ECHO_N "(cached) $ECHO_C" >&6
3710else
3711  if test -n "$ac_ct_CC"; then
3712  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3713else
3714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3715for as_dir in $PATH
3716do
3717  IFS=$as_save_IFS
3718  test -z "$as_dir" && as_dir=.
3719  for ac_exec_ext in '' $ac_executable_extensions; do
3720  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3721    ac_cv_prog_ac_ct_CC="gcc"
3722    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3723    break 2
3724  fi
3725done
3726done
3727
3728fi
3729fi
3730ac_ct_CC=$ac_cv_prog_ac_ct_CC
3731if test -n "$ac_ct_CC"; then
3732  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3733echo "${ECHO_T}$ac_ct_CC" >&6
3734else
3735  echo "$as_me:$LINENO: result: no" >&5
3736echo "${ECHO_T}no" >&6
3737fi
3738
3739  CC=$ac_ct_CC
3740else
3741  CC="$ac_cv_prog_CC"
3742fi
3743
3744if test -z "$CC"; then
3745  if test -n "$ac_tool_prefix"; then
3746  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3747set dummy ${ac_tool_prefix}cc; ac_word=$2
3748echo "$as_me:$LINENO: checking for $ac_word" >&5
3749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3750if test "${ac_cv_prog_CC+set}" = set; then
3751  echo $ECHO_N "(cached) $ECHO_C" >&6
3752else
3753  if test -n "$CC"; then
3754  ac_cv_prog_CC="$CC" # Let the user override the test.
3755else
3756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3757for as_dir in $PATH
3758do
3759  IFS=$as_save_IFS
3760  test -z "$as_dir" && as_dir=.
3761  for ac_exec_ext in '' $ac_executable_extensions; do
3762  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3763    ac_cv_prog_CC="${ac_tool_prefix}cc"
3764    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3765    break 2
3766  fi
3767done
3768done
3769
3770fi
3771fi
3772CC=$ac_cv_prog_CC
3773if test -n "$CC"; then
3774  echo "$as_me:$LINENO: result: $CC" >&5
3775echo "${ECHO_T}$CC" >&6
3776else
3777  echo "$as_me:$LINENO: result: no" >&5
3778echo "${ECHO_T}no" >&6
3779fi
3780
3781fi
3782if test -z "$ac_cv_prog_CC"; then
3783  ac_ct_CC=$CC
3784  # Extract the first word of "cc", so it can be a program name with args.
3785set dummy cc; ac_word=$2
3786echo "$as_me:$LINENO: checking for $ac_word" >&5
3787echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3788if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3789  echo $ECHO_N "(cached) $ECHO_C" >&6
3790else
3791  if test -n "$ac_ct_CC"; then
3792  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3793else
3794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3795for as_dir in $PATH
3796do
3797  IFS=$as_save_IFS
3798  test -z "$as_dir" && as_dir=.
3799  for ac_exec_ext in '' $ac_executable_extensions; do
3800  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3801    ac_cv_prog_ac_ct_CC="cc"
3802    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3803    break 2
3804  fi
3805done
3806done
3807
3808fi
3809fi
3810ac_ct_CC=$ac_cv_prog_ac_ct_CC
3811if test -n "$ac_ct_CC"; then
3812  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3813echo "${ECHO_T}$ac_ct_CC" >&6
3814else
3815  echo "$as_me:$LINENO: result: no" >&5
3816echo "${ECHO_T}no" >&6
3817fi
3818
3819  CC=$ac_ct_CC
3820else
3821  CC="$ac_cv_prog_CC"
3822fi
3823
3824fi
3825if test -z "$CC"; then
3826  # Extract the first word of "cc", so it can be a program name with args.
3827set dummy cc; ac_word=$2
3828echo "$as_me:$LINENO: checking for $ac_word" >&5
3829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3830if test "${ac_cv_prog_CC+set}" = set; then
3831  echo $ECHO_N "(cached) $ECHO_C" >&6
3832else
3833  if test -n "$CC"; then
3834  ac_cv_prog_CC="$CC" # Let the user override the test.
3835else
3836  ac_prog_rejected=no
3837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3838for as_dir in $PATH
3839do
3840  IFS=$as_save_IFS
3841  test -z "$as_dir" && as_dir=.
3842  for ac_exec_ext in '' $ac_executable_extensions; do
3843  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3844    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3845       ac_prog_rejected=yes
3846       continue
3847     fi
3848    ac_cv_prog_CC="cc"
3849    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3850    break 2
3851  fi
3852done
3853done
3854
3855if test $ac_prog_rejected = yes; then
3856  # We found a bogon in the path, so make sure we never use it.
3857  set dummy $ac_cv_prog_CC
3858  shift
3859  if test $# != 0; then
3860    # We chose a different compiler from the bogus one.
3861    # However, it has the same basename, so the bogon will be chosen
3862    # first if we set CC to just the basename; use the full file name.
3863    shift
3864    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3865  fi
3866fi
3867fi
3868fi
3869CC=$ac_cv_prog_CC
3870if test -n "$CC"; then
3871  echo "$as_me:$LINENO: result: $CC" >&5
3872echo "${ECHO_T}$CC" >&6
3873else
3874  echo "$as_me:$LINENO: result: no" >&5
3875echo "${ECHO_T}no" >&6
3876fi
3877
3878fi
3879if test -z "$CC"; then
3880  if test -n "$ac_tool_prefix"; then
3881  for ac_prog in cl
3882  do
3883    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3884set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3885echo "$as_me:$LINENO: checking for $ac_word" >&5
3886echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3887if test "${ac_cv_prog_CC+set}" = set; then
3888  echo $ECHO_N "(cached) $ECHO_C" >&6
3889else
3890  if test -n "$CC"; then
3891  ac_cv_prog_CC="$CC" # Let the user override the test.
3892else
3893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3894for as_dir in $PATH
3895do
3896  IFS=$as_save_IFS
3897  test -z "$as_dir" && as_dir=.
3898  for ac_exec_ext in '' $ac_executable_extensions; do
3899  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3900    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3901    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3902    break 2
3903  fi
3904done
3905done
3906
3907fi
3908fi
3909CC=$ac_cv_prog_CC
3910if test -n "$CC"; then
3911  echo "$as_me:$LINENO: result: $CC" >&5
3912echo "${ECHO_T}$CC" >&6
3913else
3914  echo "$as_me:$LINENO: result: no" >&5
3915echo "${ECHO_T}no" >&6
3916fi
3917
3918    test -n "$CC" && break
3919  done
3920fi
3921if test -z "$CC"; then
3922  ac_ct_CC=$CC
3923  for ac_prog in cl
3924do
3925  # Extract the first word of "$ac_prog", so it can be a program name with args.
3926set dummy $ac_prog; ac_word=$2
3927echo "$as_me:$LINENO: checking for $ac_word" >&5
3928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3929if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3930  echo $ECHO_N "(cached) $ECHO_C" >&6
3931else
3932  if test -n "$ac_ct_CC"; then
3933  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3934else
3935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936for as_dir in $PATH
3937do
3938  IFS=$as_save_IFS
3939  test -z "$as_dir" && as_dir=.
3940  for ac_exec_ext in '' $ac_executable_extensions; do
3941  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3942    ac_cv_prog_ac_ct_CC="$ac_prog"
3943    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3944    break 2
3945  fi
3946done
3947done
3948
3949fi
3950fi
3951ac_ct_CC=$ac_cv_prog_ac_ct_CC
3952if test -n "$ac_ct_CC"; then
3953  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3954echo "${ECHO_T}$ac_ct_CC" >&6
3955else
3956  echo "$as_me:$LINENO: result: no" >&5
3957echo "${ECHO_T}no" >&6
3958fi
3959
3960  test -n "$ac_ct_CC" && break
3961done
3962
3963  CC=$ac_ct_CC
3964fi
3965
3966fi
3967
3968
3969test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3970See \`config.log' for more details." >&5
3971echo "$as_me: error: no acceptable C compiler found in \$PATH
3972See \`config.log' for more details." >&2;}
3973   { (exit 1); exit 1; }; }
3974
3975# Provide some information about the compiler.
3976echo "$as_me:$LINENO:" \
3977     "checking for C compiler version" >&5
3978ac_compiler=`set X $ac_compile; echo $2`
3979{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3980  (eval $ac_compiler --version </dev/null >&5) 2>&5
3981  ac_status=$?
3982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983  (exit $ac_status); }
3984{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3985  (eval $ac_compiler -v </dev/null >&5) 2>&5
3986  ac_status=$?
3987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988  (exit $ac_status); }
3989{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3990  (eval $ac_compiler -V </dev/null >&5) 2>&5
3991  ac_status=$?
3992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993  (exit $ac_status); }
3994
3995echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3996echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3997if test "${ac_cv_c_compiler_gnu+set}" = set; then
3998  echo $ECHO_N "(cached) $ECHO_C" >&6
3999else
4000  cat >conftest.$ac_ext <<_ACEOF
4001/* confdefs.h.  */
4002_ACEOF
4003cat confdefs.h >>conftest.$ac_ext
4004cat >>conftest.$ac_ext <<_ACEOF
4005/* end confdefs.h.  */
4006
4007int
4008main ()
4009{
4010#ifndef __GNUC__
4011       choke me
4012#endif
4013
4014  ;
4015  return 0;
4016}
4017_ACEOF
4018rm -f conftest.$ac_objext
4019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4020  (eval $ac_compile) 2>conftest.er1
4021  ac_status=$?
4022  grep -v '^ *+' conftest.er1 >conftest.err
4023  rm -f conftest.er1
4024  cat conftest.err >&5
4025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026  (exit $ac_status); } &&
4027	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4028  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4029  (eval $ac_try) 2>&5
4030  ac_status=$?
4031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032  (exit $ac_status); }; } &&
4033	 { ac_try='test -s conftest.$ac_objext'
4034  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4035  (eval $ac_try) 2>&5
4036  ac_status=$?
4037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038  (exit $ac_status); }; }; then
4039  ac_compiler_gnu=yes
4040else
4041  echo "$as_me: failed program was:" >&5
4042sed 's/^/| /' conftest.$ac_ext >&5
4043
4044ac_compiler_gnu=no
4045fi
4046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4047ac_cv_c_compiler_gnu=$ac_compiler_gnu
4048
4049fi
4050echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4051echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4052GCC=`test $ac_compiler_gnu = yes && echo yes`
4053ac_test_CFLAGS=${CFLAGS+set}
4054ac_save_CFLAGS=$CFLAGS
4055CFLAGS="-g"
4056echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4057echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4058if test "${ac_cv_prog_cc_g+set}" = set; then
4059  echo $ECHO_N "(cached) $ECHO_C" >&6
4060else
4061  cat >conftest.$ac_ext <<_ACEOF
4062/* confdefs.h.  */
4063_ACEOF
4064cat confdefs.h >>conftest.$ac_ext
4065cat >>conftest.$ac_ext <<_ACEOF
4066/* end confdefs.h.  */
4067
4068int
4069main ()
4070{
4071
4072  ;
4073  return 0;
4074}
4075_ACEOF
4076rm -f conftest.$ac_objext
4077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4078  (eval $ac_compile) 2>conftest.er1
4079  ac_status=$?
4080  grep -v '^ *+' conftest.er1 >conftest.err
4081  rm -f conftest.er1
4082  cat conftest.err >&5
4083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084  (exit $ac_status); } &&
4085	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4086  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4087  (eval $ac_try) 2>&5
4088  ac_status=$?
4089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090  (exit $ac_status); }; } &&
4091	 { ac_try='test -s conftest.$ac_objext'
4092  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4093  (eval $ac_try) 2>&5
4094  ac_status=$?
4095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096  (exit $ac_status); }; }; then
4097  ac_cv_prog_cc_g=yes
4098else
4099  echo "$as_me: failed program was:" >&5
4100sed 's/^/| /' conftest.$ac_ext >&5
4101
4102ac_cv_prog_cc_g=no
4103fi
4104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4105fi
4106echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4107echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4108if test "$ac_test_CFLAGS" = set; then
4109  CFLAGS=$ac_save_CFLAGS
4110elif test $ac_cv_prog_cc_g = yes; then
4111  if test "$GCC" = yes; then
4112    CFLAGS="-g -O2"
4113  else
4114    CFLAGS="-g"
4115  fi
4116else
4117  if test "$GCC" = yes; then
4118    CFLAGS="-O2"
4119  else
4120    CFLAGS=
4121  fi
4122fi
4123echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4124echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4125if test "${ac_cv_prog_cc_stdc+set}" = set; then
4126  echo $ECHO_N "(cached) $ECHO_C" >&6
4127else
4128  ac_cv_prog_cc_stdc=no
4129ac_save_CC=$CC
4130cat >conftest.$ac_ext <<_ACEOF
4131/* confdefs.h.  */
4132_ACEOF
4133cat confdefs.h >>conftest.$ac_ext
4134cat >>conftest.$ac_ext <<_ACEOF
4135/* end confdefs.h.  */
4136#include <stdarg.h>
4137#include <stdio.h>
4138#include <sys/types.h>
4139#include <sys/stat.h>
4140/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4141struct buf { int x; };
4142FILE * (*rcsopen) (struct buf *, struct stat *, int);
4143static char *e (p, i)
4144     char **p;
4145     int i;
4146{
4147  return p[i];
4148}
4149static char *f (char * (*g) (char **, int), char **p, ...)
4150{
4151  char *s;
4152  va_list v;
4153  va_start (v,p);
4154  s = g (p, va_arg (v,int));
4155  va_end (v);
4156  return s;
4157}
4158
4159/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4160   function prototypes and stuff, but not '\xHH' hex character constants.
4161   These don't provoke an error unfortunately, instead are silently treated
4162   as 'x'.  The following induces an error, until -std1 is added to get
4163   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4164   array size at least.  It's necessary to write '\x00'==0 to get something
4165   that's true only with -std1.  */
4166int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4167
4168int test (int i, double x);
4169struct s1 {int (*f) (int a);};
4170struct s2 {int (*f) (double a);};
4171int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4172int argc;
4173char **argv;
4174int
4175main ()
4176{
4177return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4178  ;
4179  return 0;
4180}
4181_ACEOF
4182# Don't try gcc -ansi; that turns off useful extensions and
4183# breaks some systems' header files.
4184# AIX			-qlanglvl=ansi
4185# Ultrix and OSF/1	-std1
4186# HP-UX 10.20 and later	-Ae
4187# HP-UX older versions	-Aa -D_HPUX_SOURCE
4188# SVR4			-Xc -D__EXTENSIONS__
4189for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4190do
4191  CC="$ac_save_CC $ac_arg"
4192  rm -f conftest.$ac_objext
4193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4194  (eval $ac_compile) 2>conftest.er1
4195  ac_status=$?
4196  grep -v '^ *+' conftest.er1 >conftest.err
4197  rm -f conftest.er1
4198  cat conftest.err >&5
4199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200  (exit $ac_status); } &&
4201	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4202  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4203  (eval $ac_try) 2>&5
4204  ac_status=$?
4205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206  (exit $ac_status); }; } &&
4207	 { ac_try='test -s conftest.$ac_objext'
4208  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4209  (eval $ac_try) 2>&5
4210  ac_status=$?
4211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212  (exit $ac_status); }; }; then
4213  ac_cv_prog_cc_stdc=$ac_arg
4214break
4215else
4216  echo "$as_me: failed program was:" >&5
4217sed 's/^/| /' conftest.$ac_ext >&5
4218
4219fi
4220rm -f conftest.err conftest.$ac_objext
4221done
4222rm -f conftest.$ac_ext conftest.$ac_objext
4223CC=$ac_save_CC
4224
4225fi
4226
4227case "x$ac_cv_prog_cc_stdc" in
4228  x|xno)
4229    echo "$as_me:$LINENO: result: none needed" >&5
4230echo "${ECHO_T}none needed" >&6 ;;
4231  *)
4232    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4233echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4234    CC="$CC $ac_cv_prog_cc_stdc" ;;
4235esac
4236
4237# Some people use a C++ compiler to compile C.  Since we use `exit',
4238# in C++ we need to declare it.  In case someone uses the same compiler
4239# for both compiling C and C++ we need to have the C++ compiler decide
4240# the declaration of exit, since it's the most demanding environment.
4241cat >conftest.$ac_ext <<_ACEOF
4242#ifndef __cplusplus
4243  choke me
4244#endif
4245_ACEOF
4246rm -f conftest.$ac_objext
4247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4248  (eval $ac_compile) 2>conftest.er1
4249  ac_status=$?
4250  grep -v '^ *+' conftest.er1 >conftest.err
4251  rm -f conftest.er1
4252  cat conftest.err >&5
4253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254  (exit $ac_status); } &&
4255	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4256  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4257  (eval $ac_try) 2>&5
4258  ac_status=$?
4259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260  (exit $ac_status); }; } &&
4261	 { ac_try='test -s conftest.$ac_objext'
4262  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4263  (eval $ac_try) 2>&5
4264  ac_status=$?
4265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266  (exit $ac_status); }; }; then
4267  for ac_declaration in \
4268   '' \
4269   'extern "C" void std::exit (int) throw (); using std::exit;' \
4270   'extern "C" void std::exit (int); using std::exit;' \
4271   'extern "C" void exit (int) throw ();' \
4272   'extern "C" void exit (int);' \
4273   'void exit (int);'
4274do
4275  cat >conftest.$ac_ext <<_ACEOF
4276/* confdefs.h.  */
4277_ACEOF
4278cat confdefs.h >>conftest.$ac_ext
4279cat >>conftest.$ac_ext <<_ACEOF
4280/* end confdefs.h.  */
4281$ac_declaration
4282#include <stdlib.h>
4283int
4284main ()
4285{
4286exit (42);
4287  ;
4288  return 0;
4289}
4290_ACEOF
4291rm -f conftest.$ac_objext
4292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4293  (eval $ac_compile) 2>conftest.er1
4294  ac_status=$?
4295  grep -v '^ *+' conftest.er1 >conftest.err
4296  rm -f conftest.er1
4297  cat conftest.err >&5
4298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299  (exit $ac_status); } &&
4300	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4301  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4302  (eval $ac_try) 2>&5
4303  ac_status=$?
4304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305  (exit $ac_status); }; } &&
4306	 { ac_try='test -s conftest.$ac_objext'
4307  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4308  (eval $ac_try) 2>&5
4309  ac_status=$?
4310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311  (exit $ac_status); }; }; then
4312  :
4313else
4314  echo "$as_me: failed program was:" >&5
4315sed 's/^/| /' conftest.$ac_ext >&5
4316
4317continue
4318fi
4319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4320  cat >conftest.$ac_ext <<_ACEOF
4321/* confdefs.h.  */
4322_ACEOF
4323cat confdefs.h >>conftest.$ac_ext
4324cat >>conftest.$ac_ext <<_ACEOF
4325/* end confdefs.h.  */
4326$ac_declaration
4327int
4328main ()
4329{
4330exit (42);
4331  ;
4332  return 0;
4333}
4334_ACEOF
4335rm -f conftest.$ac_objext
4336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4337  (eval $ac_compile) 2>conftest.er1
4338  ac_status=$?
4339  grep -v '^ *+' conftest.er1 >conftest.err
4340  rm -f conftest.er1
4341  cat conftest.err >&5
4342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343  (exit $ac_status); } &&
4344	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4345  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4346  (eval $ac_try) 2>&5
4347  ac_status=$?
4348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349  (exit $ac_status); }; } &&
4350	 { ac_try='test -s conftest.$ac_objext'
4351  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4352  (eval $ac_try) 2>&5
4353  ac_status=$?
4354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355  (exit $ac_status); }; }; then
4356  break
4357else
4358  echo "$as_me: failed program was:" >&5
4359sed 's/^/| /' conftest.$ac_ext >&5
4360
4361fi
4362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4363done
4364rm -f conftest*
4365if test -n "$ac_declaration"; then
4366  echo '#ifdef __cplusplus' >>confdefs.h
4367  echo $ac_declaration      >>confdefs.h
4368  echo '#endif'             >>confdefs.h
4369fi
4370
4371else
4372  echo "$as_me: failed program was:" >&5
4373sed 's/^/| /' conftest.$ac_ext >&5
4374
4375fi
4376rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4377ac_ext=c
4378ac_cpp='$CPP $CPPFLAGS'
4379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4381ac_compiler_gnu=$ac_cv_c_compiler_gnu
4382
4383depcc="$CC"   am_compiler_list=
4384
4385echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4386echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4387if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4388  echo $ECHO_N "(cached) $ECHO_C" >&6
4389else
4390  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4391  # We make a subdir and do the tests there.  Otherwise we can end up
4392  # making bogus files that we don't know about and never remove.  For
4393  # instance it was reported that on HP-UX the gcc test will end up
4394  # making a dummy file named `D' -- because `-MD' means `put the output
4395  # in D'.
4396  mkdir conftest.dir
4397  # Copy depcomp to subdir because otherwise we won't find it if we're
4398  # using a relative directory.
4399  cp "$am_depcomp" conftest.dir
4400  cd conftest.dir
4401  # We will build objects and dependencies in a subdirectory because
4402  # it helps to detect inapplicable dependency modes.  For instance
4403  # both Tru64's cc and ICC support -MD to output dependencies as a
4404  # side effect of compilation, but ICC will put the dependencies in
4405  # the current directory while Tru64 will put them in the object
4406  # directory.
4407  mkdir sub
4408
4409  am_cv_CC_dependencies_compiler_type=none
4410  if test "$am_compiler_list" = ""; then
4411     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4412  fi
4413  for depmode in $am_compiler_list; do
4414    # Setup a source with many dependencies, because some compilers
4415    # like to wrap large dependency lists on column 80 (with \), and
4416    # we should not choose a depcomp mode which is confused by this.
4417    #
4418    # We need to recreate these files for each test, as the compiler may
4419    # overwrite some of them when testing with obscure command lines.
4420    # This happens at least with the AIX C compiler.
4421    : > sub/conftest.c
4422    for i in 1 2 3 4 5 6; do
4423      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4424      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4425      # Solaris 8's {/usr,}/bin/sh.
4426      touch sub/conftst$i.h
4427    done
4428    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4429
4430    case $depmode in
4431    nosideeffect)
4432      # after this tag, mechanisms are not by side-effect, so they'll
4433      # only be used when explicitly requested
4434      if test "x$enable_dependency_tracking" = xyes; then
4435	continue
4436      else
4437	break
4438      fi
4439      ;;
4440    none) break ;;
4441    esac
4442    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4443    # mode.  It turns out that the SunPro C++ compiler does not properly
4444    # handle `-M -o', and we need to detect this.
4445    if depmode=$depmode \
4446       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4447       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4448       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4449         >/dev/null 2>conftest.err &&
4450       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4451       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4452       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4453      # icc doesn't choke on unknown options, it will just issue warnings
4454      # or remarks (even with -Werror).  So we grep stderr for any message
4455      # that says an option was ignored or not supported.
4456      # When given -MP, icc 7.0 and 7.1 complain thusly:
4457      #   icc: Command line warning: ignoring option '-M'; no argument required
4458      # The diagnosis changed in icc 8.0:
4459      #   icc: Command line remark: option '-MP' not supported
4460      if (grep 'ignoring option' conftest.err ||
4461          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4462        am_cv_CC_dependencies_compiler_type=$depmode
4463        break
4464      fi
4465    fi
4466  done
4467
4468  cd ..
4469  rm -rf conftest.dir
4470else
4471  am_cv_CC_dependencies_compiler_type=none
4472fi
4473
4474fi
4475echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4476echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4477CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4478
4479
4480
4481if
4482  test "x$enable_dependency_tracking" != xno \
4483  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4484  am__fastdepCC_TRUE=
4485  am__fastdepCC_FALSE='#'
4486else
4487  am__fastdepCC_TRUE='#'
4488  am__fastdepCC_FALSE=
4489fi
4490
4491
4492ac_ext=c
4493ac_cpp='$CPP $CPPFLAGS'
4494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4496ac_compiler_gnu=$ac_cv_c_compiler_gnu
4497if test -n "$ac_tool_prefix"; then
4498  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4499set dummy ${ac_tool_prefix}gcc; ac_word=$2
4500echo "$as_me:$LINENO: checking for $ac_word" >&5
4501echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4502if test "${ac_cv_prog_CC+set}" = set; then
4503  echo $ECHO_N "(cached) $ECHO_C" >&6
4504else
4505  if test -n "$CC"; then
4506  ac_cv_prog_CC="$CC" # Let the user override the test.
4507else
4508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4509for as_dir in $PATH
4510do
4511  IFS=$as_save_IFS
4512  test -z "$as_dir" && as_dir=.
4513  for ac_exec_ext in '' $ac_executable_extensions; do
4514  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4515    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4516    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4517    break 2
4518  fi
4519done
4520done
4521
4522fi
4523fi
4524CC=$ac_cv_prog_CC
4525if test -n "$CC"; then
4526  echo "$as_me:$LINENO: result: $CC" >&5
4527echo "${ECHO_T}$CC" >&6
4528else
4529  echo "$as_me:$LINENO: result: no" >&5
4530echo "${ECHO_T}no" >&6
4531fi
4532
4533fi
4534if test -z "$ac_cv_prog_CC"; then
4535  ac_ct_CC=$CC
4536  # Extract the first word of "gcc", so it can be a program name with args.
4537set dummy gcc; ac_word=$2
4538echo "$as_me:$LINENO: checking for $ac_word" >&5
4539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4540if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4541  echo $ECHO_N "(cached) $ECHO_C" >&6
4542else
4543  if test -n "$ac_ct_CC"; then
4544  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4545else
4546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4547for as_dir in $PATH
4548do
4549  IFS=$as_save_IFS
4550  test -z "$as_dir" && as_dir=.
4551  for ac_exec_ext in '' $ac_executable_extensions; do
4552  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4553    ac_cv_prog_ac_ct_CC="gcc"
4554    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4555    break 2
4556  fi
4557done
4558done
4559
4560fi
4561fi
4562ac_ct_CC=$ac_cv_prog_ac_ct_CC
4563if test -n "$ac_ct_CC"; then
4564  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4565echo "${ECHO_T}$ac_ct_CC" >&6
4566else
4567  echo "$as_me:$LINENO: result: no" >&5
4568echo "${ECHO_T}no" >&6
4569fi
4570
4571  CC=$ac_ct_CC
4572else
4573  CC="$ac_cv_prog_CC"
4574fi
4575
4576if test -z "$CC"; then
4577  if test -n "$ac_tool_prefix"; then
4578  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4579set dummy ${ac_tool_prefix}cc; ac_word=$2
4580echo "$as_me:$LINENO: checking for $ac_word" >&5
4581echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4582if test "${ac_cv_prog_CC+set}" = set; then
4583  echo $ECHO_N "(cached) $ECHO_C" >&6
4584else
4585  if test -n "$CC"; then
4586  ac_cv_prog_CC="$CC" # Let the user override the test.
4587else
4588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589for as_dir in $PATH
4590do
4591  IFS=$as_save_IFS
4592  test -z "$as_dir" && as_dir=.
4593  for ac_exec_ext in '' $ac_executable_extensions; do
4594  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4595    ac_cv_prog_CC="${ac_tool_prefix}cc"
4596    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4597    break 2
4598  fi
4599done
4600done
4601
4602fi
4603fi
4604CC=$ac_cv_prog_CC
4605if test -n "$CC"; then
4606  echo "$as_me:$LINENO: result: $CC" >&5
4607echo "${ECHO_T}$CC" >&6
4608else
4609  echo "$as_me:$LINENO: result: no" >&5
4610echo "${ECHO_T}no" >&6
4611fi
4612
4613fi
4614if test -z "$ac_cv_prog_CC"; then
4615  ac_ct_CC=$CC
4616  # Extract the first word of "cc", so it can be a program name with args.
4617set dummy cc; ac_word=$2
4618echo "$as_me:$LINENO: checking for $ac_word" >&5
4619echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4620if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4621  echo $ECHO_N "(cached) $ECHO_C" >&6
4622else
4623  if test -n "$ac_ct_CC"; then
4624  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4625else
4626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627for as_dir in $PATH
4628do
4629  IFS=$as_save_IFS
4630  test -z "$as_dir" && as_dir=.
4631  for ac_exec_ext in '' $ac_executable_extensions; do
4632  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4633    ac_cv_prog_ac_ct_CC="cc"
4634    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4635    break 2
4636  fi
4637done
4638done
4639
4640fi
4641fi
4642ac_ct_CC=$ac_cv_prog_ac_ct_CC
4643if test -n "$ac_ct_CC"; then
4644  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4645echo "${ECHO_T}$ac_ct_CC" >&6
4646else
4647  echo "$as_me:$LINENO: result: no" >&5
4648echo "${ECHO_T}no" >&6
4649fi
4650
4651  CC=$ac_ct_CC
4652else
4653  CC="$ac_cv_prog_CC"
4654fi
4655
4656fi
4657if test -z "$CC"; then
4658  # Extract the first word of "cc", so it can be a program name with args.
4659set dummy cc; ac_word=$2
4660echo "$as_me:$LINENO: checking for $ac_word" >&5
4661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4662if test "${ac_cv_prog_CC+set}" = set; then
4663  echo $ECHO_N "(cached) $ECHO_C" >&6
4664else
4665  if test -n "$CC"; then
4666  ac_cv_prog_CC="$CC" # Let the user override the test.
4667else
4668  ac_prog_rejected=no
4669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670for as_dir in $PATH
4671do
4672  IFS=$as_save_IFS
4673  test -z "$as_dir" && as_dir=.
4674  for ac_exec_ext in '' $ac_executable_extensions; do
4675  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4676    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4677       ac_prog_rejected=yes
4678       continue
4679     fi
4680    ac_cv_prog_CC="cc"
4681    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4682    break 2
4683  fi
4684done
4685done
4686
4687if test $ac_prog_rejected = yes; then
4688  # We found a bogon in the path, so make sure we never use it.
4689  set dummy $ac_cv_prog_CC
4690  shift
4691  if test $# != 0; then
4692    # We chose a different compiler from the bogus one.
4693    # However, it has the same basename, so the bogon will be chosen
4694    # first if we set CC to just the basename; use the full file name.
4695    shift
4696    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4697  fi
4698fi
4699fi
4700fi
4701CC=$ac_cv_prog_CC
4702if test -n "$CC"; then
4703  echo "$as_me:$LINENO: result: $CC" >&5
4704echo "${ECHO_T}$CC" >&6
4705else
4706  echo "$as_me:$LINENO: result: no" >&5
4707echo "${ECHO_T}no" >&6
4708fi
4709
4710fi
4711if test -z "$CC"; then
4712  if test -n "$ac_tool_prefix"; then
4713  for ac_prog in cl
4714  do
4715    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4716set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4717echo "$as_me:$LINENO: checking for $ac_word" >&5
4718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4719if test "${ac_cv_prog_CC+set}" = set; then
4720  echo $ECHO_N "(cached) $ECHO_C" >&6
4721else
4722  if test -n "$CC"; then
4723  ac_cv_prog_CC="$CC" # Let the user override the test.
4724else
4725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4726for as_dir in $PATH
4727do
4728  IFS=$as_save_IFS
4729  test -z "$as_dir" && as_dir=.
4730  for ac_exec_ext in '' $ac_executable_extensions; do
4731  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4732    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4733    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4734    break 2
4735  fi
4736done
4737done
4738
4739fi
4740fi
4741CC=$ac_cv_prog_CC
4742if test -n "$CC"; then
4743  echo "$as_me:$LINENO: result: $CC" >&5
4744echo "${ECHO_T}$CC" >&6
4745else
4746  echo "$as_me:$LINENO: result: no" >&5
4747echo "${ECHO_T}no" >&6
4748fi
4749
4750    test -n "$CC" && break
4751  done
4752fi
4753if test -z "$CC"; then
4754  ac_ct_CC=$CC
4755  for ac_prog in cl
4756do
4757  # Extract the first word of "$ac_prog", so it can be a program name with args.
4758set dummy $ac_prog; ac_word=$2
4759echo "$as_me:$LINENO: checking for $ac_word" >&5
4760echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4761if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4762  echo $ECHO_N "(cached) $ECHO_C" >&6
4763else
4764  if test -n "$ac_ct_CC"; then
4765  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4766else
4767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4768for as_dir in $PATH
4769do
4770  IFS=$as_save_IFS
4771  test -z "$as_dir" && as_dir=.
4772  for ac_exec_ext in '' $ac_executable_extensions; do
4773  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4774    ac_cv_prog_ac_ct_CC="$ac_prog"
4775    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4776    break 2
4777  fi
4778done
4779done
4780
4781fi
4782fi
4783ac_ct_CC=$ac_cv_prog_ac_ct_CC
4784if test -n "$ac_ct_CC"; then
4785  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4786echo "${ECHO_T}$ac_ct_CC" >&6
4787else
4788  echo "$as_me:$LINENO: result: no" >&5
4789echo "${ECHO_T}no" >&6
4790fi
4791
4792  test -n "$ac_ct_CC" && break
4793done
4794
4795  CC=$ac_ct_CC
4796fi
4797
4798fi
4799
4800
4801test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4802See \`config.log' for more details." >&5
4803echo "$as_me: error: no acceptable C compiler found in \$PATH
4804See \`config.log' for more details." >&2;}
4805   { (exit 1); exit 1; }; }
4806
4807# Provide some information about the compiler.
4808echo "$as_me:$LINENO:" \
4809     "checking for C compiler version" >&5
4810ac_compiler=`set X $ac_compile; echo $2`
4811{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4812  (eval $ac_compiler --version </dev/null >&5) 2>&5
4813  ac_status=$?
4814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815  (exit $ac_status); }
4816{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4817  (eval $ac_compiler -v </dev/null >&5) 2>&5
4818  ac_status=$?
4819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820  (exit $ac_status); }
4821{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4822  (eval $ac_compiler -V </dev/null >&5) 2>&5
4823  ac_status=$?
4824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825  (exit $ac_status); }
4826
4827echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4828echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4829if test "${ac_cv_c_compiler_gnu+set}" = set; then
4830  echo $ECHO_N "(cached) $ECHO_C" >&6
4831else
4832  cat >conftest.$ac_ext <<_ACEOF
4833/* confdefs.h.  */
4834_ACEOF
4835cat confdefs.h >>conftest.$ac_ext
4836cat >>conftest.$ac_ext <<_ACEOF
4837/* end confdefs.h.  */
4838
4839int
4840main ()
4841{
4842#ifndef __GNUC__
4843       choke me
4844#endif
4845
4846  ;
4847  return 0;
4848}
4849_ACEOF
4850rm -f conftest.$ac_objext
4851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4852  (eval $ac_compile) 2>conftest.er1
4853  ac_status=$?
4854  grep -v '^ *+' conftest.er1 >conftest.err
4855  rm -f conftest.er1
4856  cat conftest.err >&5
4857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858  (exit $ac_status); } &&
4859	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4860  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4861  (eval $ac_try) 2>&5
4862  ac_status=$?
4863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864  (exit $ac_status); }; } &&
4865	 { ac_try='test -s conftest.$ac_objext'
4866  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4867  (eval $ac_try) 2>&5
4868  ac_status=$?
4869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870  (exit $ac_status); }; }; then
4871  ac_compiler_gnu=yes
4872else
4873  echo "$as_me: failed program was:" >&5
4874sed 's/^/| /' conftest.$ac_ext >&5
4875
4876ac_compiler_gnu=no
4877fi
4878rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4879ac_cv_c_compiler_gnu=$ac_compiler_gnu
4880
4881fi
4882echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4883echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4884GCC=`test $ac_compiler_gnu = yes && echo yes`
4885ac_test_CFLAGS=${CFLAGS+set}
4886ac_save_CFLAGS=$CFLAGS
4887CFLAGS="-g"
4888echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4889echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4890if test "${ac_cv_prog_cc_g+set}" = set; then
4891  echo $ECHO_N "(cached) $ECHO_C" >&6
4892else
4893  cat >conftest.$ac_ext <<_ACEOF
4894/* confdefs.h.  */
4895_ACEOF
4896cat confdefs.h >>conftest.$ac_ext
4897cat >>conftest.$ac_ext <<_ACEOF
4898/* end confdefs.h.  */
4899
4900int
4901main ()
4902{
4903
4904  ;
4905  return 0;
4906}
4907_ACEOF
4908rm -f conftest.$ac_objext
4909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4910  (eval $ac_compile) 2>conftest.er1
4911  ac_status=$?
4912  grep -v '^ *+' conftest.er1 >conftest.err
4913  rm -f conftest.er1
4914  cat conftest.err >&5
4915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916  (exit $ac_status); } &&
4917	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4918  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4919  (eval $ac_try) 2>&5
4920  ac_status=$?
4921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922  (exit $ac_status); }; } &&
4923	 { ac_try='test -s conftest.$ac_objext'
4924  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4925  (eval $ac_try) 2>&5
4926  ac_status=$?
4927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928  (exit $ac_status); }; }; then
4929  ac_cv_prog_cc_g=yes
4930else
4931  echo "$as_me: failed program was:" >&5
4932sed 's/^/| /' conftest.$ac_ext >&5
4933
4934ac_cv_prog_cc_g=no
4935fi
4936rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4937fi
4938echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4939echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4940if test "$ac_test_CFLAGS" = set; then
4941  CFLAGS=$ac_save_CFLAGS
4942elif test $ac_cv_prog_cc_g = yes; then
4943  if test "$GCC" = yes; then
4944    CFLAGS="-g -O2"
4945  else
4946    CFLAGS="-g"
4947  fi
4948else
4949  if test "$GCC" = yes; then
4950    CFLAGS="-O2"
4951  else
4952    CFLAGS=
4953  fi
4954fi
4955echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4956echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4957if test "${ac_cv_prog_cc_stdc+set}" = set; then
4958  echo $ECHO_N "(cached) $ECHO_C" >&6
4959else
4960  ac_cv_prog_cc_stdc=no
4961ac_save_CC=$CC
4962cat >conftest.$ac_ext <<_ACEOF
4963/* confdefs.h.  */
4964_ACEOF
4965cat confdefs.h >>conftest.$ac_ext
4966cat >>conftest.$ac_ext <<_ACEOF
4967/* end confdefs.h.  */
4968#include <stdarg.h>
4969#include <stdio.h>
4970#include <sys/types.h>
4971#include <sys/stat.h>
4972/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4973struct buf { int x; };
4974FILE * (*rcsopen) (struct buf *, struct stat *, int);
4975static char *e (p, i)
4976     char **p;
4977     int i;
4978{
4979  return p[i];
4980}
4981static char *f (char * (*g) (char **, int), char **p, ...)
4982{
4983  char *s;
4984  va_list v;
4985  va_start (v,p);
4986  s = g (p, va_arg (v,int));
4987  va_end (v);
4988  return s;
4989}
4990
4991/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4992   function prototypes and stuff, but not '\xHH' hex character constants.
4993   These don't provoke an error unfortunately, instead are silently treated
4994   as 'x'.  The following induces an error, until -std1 is added to get
4995   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4996   array size at least.  It's necessary to write '\x00'==0 to get something
4997   that's true only with -std1.  */
4998int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4999
5000int test (int i, double x);
5001struct s1 {int (*f) (int a);};
5002struct s2 {int (*f) (double a);};
5003int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5004int argc;
5005char **argv;
5006int
5007main ()
5008{
5009return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5010  ;
5011  return 0;
5012}
5013_ACEOF
5014# Don't try gcc -ansi; that turns off useful extensions and
5015# breaks some systems' header files.
5016# AIX			-qlanglvl=ansi
5017# Ultrix and OSF/1	-std1
5018# HP-UX 10.20 and later	-Ae
5019# HP-UX older versions	-Aa -D_HPUX_SOURCE
5020# SVR4			-Xc -D__EXTENSIONS__
5021for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5022do
5023  CC="$ac_save_CC $ac_arg"
5024  rm -f conftest.$ac_objext
5025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5026  (eval $ac_compile) 2>conftest.er1
5027  ac_status=$?
5028  grep -v '^ *+' conftest.er1 >conftest.err
5029  rm -f conftest.er1
5030  cat conftest.err >&5
5031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032  (exit $ac_status); } &&
5033	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
5034  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5035  (eval $ac_try) 2>&5
5036  ac_status=$?
5037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038  (exit $ac_status); }; } &&
5039	 { ac_try='test -s conftest.$ac_objext'
5040  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5041  (eval $ac_try) 2>&5
5042  ac_status=$?
5043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044  (exit $ac_status); }; }; then
5045  ac_cv_prog_cc_stdc=$ac_arg
5046break
5047else
5048  echo "$as_me: failed program was:" >&5
5049sed 's/^/| /' conftest.$ac_ext >&5
5050
5051fi
5052rm -f conftest.err conftest.$ac_objext
5053done
5054rm -f conftest.$ac_ext conftest.$ac_objext
5055CC=$ac_save_CC
5056
5057fi
5058
5059case "x$ac_cv_prog_cc_stdc" in
5060  x|xno)
5061    echo "$as_me:$LINENO: result: none needed" >&5
5062echo "${ECHO_T}none needed" >&6 ;;
5063  *)
5064    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5065echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5066    CC="$CC $ac_cv_prog_cc_stdc" ;;
5067esac
5068
5069# Some people use a C++ compiler to compile C.  Since we use `exit',
5070# in C++ we need to declare it.  In case someone uses the same compiler
5071# for both compiling C and C++ we need to have the C++ compiler decide
5072# the declaration of exit, since it's the most demanding environment.
5073cat >conftest.$ac_ext <<_ACEOF
5074#ifndef __cplusplus
5075  choke me
5076#endif
5077_ACEOF
5078rm -f conftest.$ac_objext
5079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5080  (eval $ac_compile) 2>conftest.er1
5081  ac_status=$?
5082  grep -v '^ *+' conftest.er1 >conftest.err
5083  rm -f conftest.er1
5084  cat conftest.err >&5
5085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086  (exit $ac_status); } &&
5087	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
5088  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5089  (eval $ac_try) 2>&5
5090  ac_status=$?
5091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092  (exit $ac_status); }; } &&
5093	 { ac_try='test -s conftest.$ac_objext'
5094  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5095  (eval $ac_try) 2>&5
5096  ac_status=$?
5097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098  (exit $ac_status); }; }; then
5099  for ac_declaration in \
5100   '' \
5101   'extern "C" void std::exit (int) throw (); using std::exit;' \
5102   'extern "C" void std::exit (int); using std::exit;' \
5103   'extern "C" void exit (int) throw ();' \
5104   'extern "C" void exit (int);' \
5105   'void exit (int);'
5106do
5107  cat >conftest.$ac_ext <<_ACEOF
5108/* confdefs.h.  */
5109_ACEOF
5110cat confdefs.h >>conftest.$ac_ext
5111cat >>conftest.$ac_ext <<_ACEOF
5112/* end confdefs.h.  */
5113$ac_declaration
5114#include <stdlib.h>
5115int
5116main ()
5117{
5118exit (42);
5119  ;
5120  return 0;
5121}
5122_ACEOF
5123rm -f conftest.$ac_objext
5124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5125  (eval $ac_compile) 2>conftest.er1
5126  ac_status=$?
5127  grep -v '^ *+' conftest.er1 >conftest.err
5128  rm -f conftest.er1
5129  cat conftest.err >&5
5130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131  (exit $ac_status); } &&
5132	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
5133  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5134  (eval $ac_try) 2>&5
5135  ac_status=$?
5136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137  (exit $ac_status); }; } &&
5138	 { ac_try='test -s conftest.$ac_objext'
5139  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5140  (eval $ac_try) 2>&5
5141  ac_status=$?
5142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143  (exit $ac_status); }; }; then
5144  :
5145else
5146  echo "$as_me: failed program was:" >&5
5147sed 's/^/| /' conftest.$ac_ext >&5
5148
5149continue
5150fi
5151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5152  cat >conftest.$ac_ext <<_ACEOF
5153/* confdefs.h.  */
5154_ACEOF
5155cat confdefs.h >>conftest.$ac_ext
5156cat >>conftest.$ac_ext <<_ACEOF
5157/* end confdefs.h.  */
5158$ac_declaration
5159int
5160main ()
5161{
5162exit (42);
5163  ;
5164  return 0;
5165}
5166_ACEOF
5167rm -f conftest.$ac_objext
5168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5169  (eval $ac_compile) 2>conftest.er1
5170  ac_status=$?
5171  grep -v '^ *+' conftest.er1 >conftest.err
5172  rm -f conftest.er1
5173  cat conftest.err >&5
5174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175  (exit $ac_status); } &&
5176	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
5177  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5178  (eval $ac_try) 2>&5
5179  ac_status=$?
5180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181  (exit $ac_status); }; } &&
5182	 { ac_try='test -s conftest.$ac_objext'
5183  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5184  (eval $ac_try) 2>&5
5185  ac_status=$?
5186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187  (exit $ac_status); }; }; then
5188  break
5189else
5190  echo "$as_me: failed program was:" >&5
5191sed 's/^/| /' conftest.$ac_ext >&5
5192
5193fi
5194rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5195done
5196rm -f conftest*
5197if test -n "$ac_declaration"; then
5198  echo '#ifdef __cplusplus' >>confdefs.h
5199  echo $ac_declaration      >>confdefs.h
5200  echo '#endif'             >>confdefs.h
5201fi
5202
5203else
5204  echo "$as_me: failed program was:" >&5
5205sed 's/^/| /' conftest.$ac_ext >&5
5206
5207fi
5208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5209ac_ext=c
5210ac_cpp='$CPP $CPPFLAGS'
5211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5213ac_compiler_gnu=$ac_cv_c_compiler_gnu
5214
5215depcc="$CC"   am_compiler_list=
5216
5217echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5218echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5219if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5220  echo $ECHO_N "(cached) $ECHO_C" >&6
5221else
5222  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5223  # We make a subdir and do the tests there.  Otherwise we can end up
5224  # making bogus files that we don't know about and never remove.  For
5225  # instance it was reported that on HP-UX the gcc test will end up
5226  # making a dummy file named `D' -- because `-MD' means `put the output
5227  # in D'.
5228  mkdir conftest.dir
5229  # Copy depcomp to subdir because otherwise we won't find it if we're
5230  # using a relative directory.
5231  cp "$am_depcomp" conftest.dir
5232  cd conftest.dir
5233  # We will build objects and dependencies in a subdirectory because
5234  # it helps to detect inapplicable dependency modes.  For instance
5235  # both Tru64's cc and ICC support -MD to output dependencies as a
5236  # side effect of compilation, but ICC will put the dependencies in
5237  # the current directory while Tru64 will put them in the object
5238  # directory.
5239  mkdir sub
5240
5241  am_cv_CC_dependencies_compiler_type=none
5242  if test "$am_compiler_list" = ""; then
5243     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5244  fi
5245  for depmode in $am_compiler_list; do
5246    # Setup a source with many dependencies, because some compilers
5247    # like to wrap large dependency lists on column 80 (with \), and
5248    # we should not choose a depcomp mode which is confused by this.
5249    #
5250    # We need to recreate these files for each test, as the compiler may
5251    # overwrite some of them when testing with obscure command lines.
5252    # This happens at least with the AIX C compiler.
5253    : > sub/conftest.c
5254    for i in 1 2 3 4 5 6; do
5255      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5256      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5257      # Solaris 8's {/usr,}/bin/sh.
5258      touch sub/conftst$i.h
5259    done
5260    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5261
5262    case $depmode in
5263    nosideeffect)
5264      # after this tag, mechanisms are not by side-effect, so they'll
5265      # only be used when explicitly requested
5266      if test "x$enable_dependency_tracking" = xyes; then
5267	continue
5268      else
5269	break
5270      fi
5271      ;;
5272    none) break ;;
5273    esac
5274    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5275    # mode.  It turns out that the SunPro C++ compiler does not properly
5276    # handle `-M -o', and we need to detect this.
5277    if depmode=$depmode \
5278       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5279       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5280       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5281         >/dev/null 2>conftest.err &&
5282       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5283       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5284       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5285      # icc doesn't choke on unknown options, it will just issue warnings
5286      # or remarks (even with -Werror).  So we grep stderr for any message
5287      # that says an option was ignored or not supported.
5288      # When given -MP, icc 7.0 and 7.1 complain thusly:
5289      #   icc: Command line warning: ignoring option '-M'; no argument required
5290      # The diagnosis changed in icc 8.0:
5291      #   icc: Command line remark: option '-MP' not supported
5292      if (grep 'ignoring option' conftest.err ||
5293          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5294        am_cv_CC_dependencies_compiler_type=$depmode
5295        break
5296      fi
5297    fi
5298  done
5299
5300  cd ..
5301  rm -rf conftest.dir
5302else
5303  am_cv_CC_dependencies_compiler_type=none
5304fi
5305
5306fi
5307echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5308echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5309CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5310
5311
5312
5313if
5314  test "x$enable_dependency_tracking" != xno \
5315  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5316  am__fastdepCC_TRUE=
5317  am__fastdepCC_FALSE='#'
5318else
5319  am__fastdepCC_TRUE='#'
5320  am__fastdepCC_FALSE=
5321fi
5322
5323
5324
5325am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5326
5327# Check whether --enable-gcc-warnings or --disable-gcc-warnings was given.
5328if test "${enable_gcc_warnings+set}" = set; then
5329  enableval="$enable_gcc_warnings"
5330  case "${enableval}" in
5331   yes|no) ;;
5332   *)      { { echo "$as_me:$LINENO: error: bad value ${enableval} for gcc-warnings option" >&5
5333echo "$as_me: error: bad value ${enableval} for gcc-warnings option" >&2;}
5334   { (exit 1); exit 1; }; } ;;
5335 esac
5336else
5337  enableval=no
5338fi;
5339if test "${enableval}" = yes; then
5340  echo "$as_me:$LINENO: checking whether compiler accepts -Werror" >&5
5341echo $ECHO_N "checking whether compiler accepts -Werror... $ECHO_C" >&6
5342
5343ac_save_CFLAGS="$CFLAGS"
5344CFLAGS="$CFLAGS -Werror"
5345cat >conftest.$ac_ext <<_ACEOF
5346/* confdefs.h.  */
5347_ACEOF
5348cat confdefs.h >>conftest.$ac_ext
5349cat >>conftest.$ac_ext <<_ACEOF
5350/* end confdefs.h.  */
5351
5352int
5353main ()
5354{
5355int x;
5356  ;
5357  return 0;
5358}
5359_ACEOF
5360rm -f conftest.$ac_objext
5361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5362  (eval $ac_compile) 2>conftest.er1
5363  ac_status=$?
5364  grep -v '^ *+' conftest.er1 >conftest.err
5365  rm -f conftest.er1
5366  cat conftest.err >&5
5367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368  (exit $ac_status); } &&
5369	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
5370  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5371  (eval $ac_try) 2>&5
5372  ac_status=$?
5373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374  (exit $ac_status); }; } &&
5375	 { ac_try='test -s conftest.$ac_objext'
5376  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5377  (eval $ac_try) 2>&5
5378  ac_status=$?
5379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380  (exit $ac_status); }; }; then
5381  WARNING_CFLAGS="$WARNING_CFLAGS -Werror"
5382echo "$as_me:$LINENO: result: yes" >&5
5383echo "${ECHO_T}yes" >&6
5384else
5385  echo "$as_me: failed program was:" >&5
5386sed 's/^/| /' conftest.$ac_ext >&5
5387
5388echo "$as_me:$LINENO: result: no" >&5
5389echo "${ECHO_T}no" >&6
5390fi
5391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5392CFLAGS="$ac_save_CFLAGS"
5393  WERROR_CFLAGS=$WARNING_CFLAGS
5394
5395  WARNING_CFLAGS=
5396  echo "$as_me:$LINENO: checking whether compiler accepts -W" >&5
5397echo $ECHO_N "checking whether compiler accepts -W... $ECHO_C" >&6
5398
5399ac_save_CFLAGS="$CFLAGS"
5400CFLAGS="$CFLAGS -W"
5401cat >conftest.$ac_ext <<_ACEOF
5402/* confdefs.h.  */
5403_ACEOF
5404cat confdefs.h >>conftest.$ac_ext
5405cat >>conftest.$ac_ext <<_ACEOF
5406/* end confdefs.h.  */
5407
5408int
5409main ()
5410{
5411int x;
5412  ;
5413  return 0;
5414}
5415_ACEOF
5416rm -f conftest.$ac_objext
5417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5418  (eval $ac_compile) 2>conftest.er1
5419  ac_status=$?
5420  grep -v '^ *+' conftest.er1 >conftest.err
5421  rm -f conftest.er1
5422  cat conftest.err >&5
5423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424  (exit $ac_status); } &&
5425	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
5426  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5427  (eval $ac_try) 2>&5
5428  ac_status=$?
5429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430  (exit $ac_status); }; } &&
5431	 { ac_try='test -s conftest.$ac_objext'
5432  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5433  (eval $ac_try) 2>&5
5434  ac_status=$?
5435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436  (exit $ac_status); }; }; then
5437  WARNING_CFLAGS="$WARNING_CFLAGS -W"
5438echo "$as_me:$LINENO: result: yes" >&5
5439echo "${ECHO_T}yes" >&6
5440else
5441  echo "$as_me: failed program was:" >&5
5442sed 's/^/| /' conftest.$ac_ext >&5
5443
5444echo "$as_me:$LINENO: result: no" >&5
5445echo "${ECHO_T}no" >&6
5446fi
5447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5448CFLAGS="$ac_save_CFLAGS"
5449  echo "$as_me:$LINENO: checking whether compiler accepts -Wall" >&5
5450echo $ECHO_N "checking whether compiler accepts -Wall... $ECHO_C" >&6
5451
5452ac_save_CFLAGS="$CFLAGS"
5453CFLAGS="$CFLAGS -Wall"
5454cat >conftest.$ac_ext <<_ACEOF
5455/* confdefs.h.  */
5456_ACEOF
5457cat confdefs.h >>conftest.$ac_ext
5458cat >>conftest.$ac_ext <<_ACEOF
5459/* end confdefs.h.  */
5460
5461int
5462main ()
5463{
5464int x;
5465  ;
5466  return 0;
5467}
5468_ACEOF
5469rm -f conftest.$ac_objext
5470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5471  (eval $ac_compile) 2>conftest.er1
5472  ac_status=$?
5473  grep -v '^ *+' conftest.er1 >conftest.err
5474  rm -f conftest.er1
5475  cat conftest.err >&5
5476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477  (exit $ac_status); } &&
5478	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
5479  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5480  (eval $ac_try) 2>&5
5481  ac_status=$?
5482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483  (exit $ac_status); }; } &&
5484	 { ac_try='test -s conftest.$ac_objext'
5485  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5486  (eval $ac_try) 2>&5
5487  ac_status=$?
5488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489  (exit $ac_status); }; }; then
5490  WARNING_CFLAGS="$WARNING_CFLAGS -Wall"
5491echo "$as_me:$LINENO: result: yes" >&5
5492echo "${ECHO_T}yes" >&6
5493else
5494  echo "$as_me: failed program was:" >&5
5495sed 's/^/| /' conftest.$ac_ext >&5
5496
5497echo "$as_me:$LINENO: result: no" >&5
5498echo "${ECHO_T}no" >&6
5499fi
5500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5501CFLAGS="$ac_save_CFLAGS"
5502  echo "$as_me:$LINENO: checking whether compiler accepts -Wcast-align" >&5
5503echo $ECHO_N "checking whether compiler accepts -Wcast-align... $ECHO_C" >&6
5504
5505ac_save_CFLAGS="$CFLAGS"
5506CFLAGS="$CFLAGS -Wcast-align"
5507cat >conftest.$ac_ext <<_ACEOF
5508/* confdefs.h.  */
5509_ACEOF
5510cat confdefs.h >>conftest.$ac_ext
5511cat >>conftest.$ac_ext <<_ACEOF
5512/* end confdefs.h.  */
5513
5514int
5515main ()
5516{
5517int x;
5518  ;
5519  return 0;
5520}
5521_ACEOF
5522rm -f conftest.$ac_objext
5523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5524  (eval $ac_compile) 2>conftest.er1
5525  ac_status=$?
5526  grep -v '^ *+' conftest.er1 >conftest.err
5527  rm -f conftest.er1
5528  cat conftest.err >&5
5529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530  (exit $ac_status); } &&
5531	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
5532  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5533  (eval $ac_try) 2>&5
5534  ac_status=$?
5535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536  (exit $ac_status); }; } &&
5537	 { ac_try='test -s conftest.$ac_objext'
5538  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5539  (eval $ac_try) 2>&5
5540  ac_status=$?
5541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542  (exit $ac_status); }; }; then
5543  WARNING_CFLAGS="$WARNING_CFLAGS -Wcast-align"
5544echo "$as_me:$LINENO: result: yes" >&5
5545echo "${ECHO_T}yes" >&6
5546else
5547  echo "$as_me: failed program was:" >&5
5548sed 's/^/| /' conftest.$ac_ext >&5
5549
5550echo "$as_me:$LINENO: result: no" >&5
5551echo "${ECHO_T}no" >&6
5552fi
5553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5554CFLAGS="$ac_save_CFLAGS"
5555  echo "$as_me:$LINENO: checking whether compiler accepts -Wcast-qual" >&5
5556echo $ECHO_N "checking whether compiler accepts -Wcast-qual... $ECHO_C" >&6
5557
5558ac_save_CFLAGS="$CFLAGS"
5559CFLAGS="$CFLAGS -Wcast-qual"
5560cat >conftest.$ac_ext <<_ACEOF
5561/* confdefs.h.  */
5562_ACEOF
5563cat confdefs.h >>conftest.$ac_ext
5564cat >>conftest.$ac_ext <<_ACEOF
5565/* end confdefs.h.  */
5566
5567int
5568main ()
5569{
5570int x;
5571  ;
5572  return 0;
5573}
5574_ACEOF
5575rm -f conftest.$ac_objext
5576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5577  (eval $ac_compile) 2>conftest.er1
5578  ac_status=$?
5579  grep -v '^ *+' conftest.er1 >conftest.err
5580  rm -f conftest.er1
5581  cat conftest.err >&5
5582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583  (exit $ac_status); } &&
5584	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
5585  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5586  (eval $ac_try) 2>&5
5587  ac_status=$?
5588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589  (exit $ac_status); }; } &&
5590	 { ac_try='test -s conftest.$ac_objext'
5591  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5592  (eval $ac_try) 2>&5
5593  ac_status=$?
5594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595  (exit $ac_status); }; }; then
5596  WARNING_CFLAGS="$WARNING_CFLAGS -Wcast-qual"
5597echo "$as_me:$LINENO: result: yes" >&5
5598echo "${ECHO_T}yes" >&6
5599else
5600  echo "$as_me: failed program was:" >&5
5601sed 's/^/| /' conftest.$ac_ext >&5
5602
5603echo "$as_me:$LINENO: result: no" >&5
5604echo "${ECHO_T}no" >&6
5605fi
5606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5607CFLAGS="$ac_save_CFLAGS"
5608  echo "$as_me:$LINENO: checking whether compiler accepts -Wformat" >&5
5609echo $ECHO_N "checking whether compiler accepts -Wformat... $ECHO_C" >&6
5610
5611ac_save_CFLAGS="$CFLAGS"
5612CFLAGS="$CFLAGS -Wformat"
5613cat >conftest.$ac_ext <<_ACEOF
5614/* confdefs.h.  */
5615_ACEOF
5616cat confdefs.h >>conftest.$ac_ext
5617cat >>conftest.$ac_ext <<_ACEOF
5618/* end confdefs.h.  */
5619
5620int
5621main ()
5622{
5623int x;
5624  ;
5625  return 0;
5626}
5627_ACEOF
5628rm -f conftest.$ac_objext
5629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5630  (eval $ac_compile) 2>conftest.er1
5631  ac_status=$?
5632  grep -v '^ *+' conftest.er1 >conftest.err
5633  rm -f conftest.er1
5634  cat conftest.err >&5
5635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636  (exit $ac_status); } &&
5637	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
5638  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5639  (eval $ac_try) 2>&5
5640  ac_status=$?
5641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642  (exit $ac_status); }; } &&
5643	 { ac_try='test -s conftest.$ac_objext'
5644  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5645  (eval $ac_try) 2>&5
5646  ac_status=$?
5647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648  (exit $ac_status); }; }; then
5649  WARNING_CFLAGS="$WARNING_CFLAGS -Wformat"
5650echo "$as_me:$LINENO: result: yes" >&5
5651echo "${ECHO_T}yes" >&6
5652else
5653  echo "$as_me: failed program was:" >&5
5654sed 's/^/| /' conftest.$ac_ext >&5
5655
5656echo "$as_me:$LINENO: result: no" >&5
5657echo "${ECHO_T}no" >&6
5658fi
5659rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5660CFLAGS="$ac_save_CFLAGS"
5661  echo "$as_me:$LINENO: checking whether compiler accepts -Wwrite-strings" >&5
5662echo $ECHO_N "checking whether compiler accepts -Wwrite-strings... $ECHO_C" >&6
5663
5664ac_save_CFLAGS="$CFLAGS"
5665CFLAGS="$CFLAGS -Wwrite-strings"
5666cat >conftest.$ac_ext <<_ACEOF
5667/* confdefs.h.  */
5668_ACEOF
5669cat confdefs.h >>conftest.$ac_ext
5670cat >>conftest.$ac_ext <<_ACEOF
5671/* end confdefs.h.  */
5672
5673int
5674main ()
5675{
5676int x;
5677  ;
5678  return 0;
5679}
5680_ACEOF
5681rm -f conftest.$ac_objext
5682if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5683  (eval $ac_compile) 2>conftest.er1
5684  ac_status=$?
5685  grep -v '^ *+' conftest.er1 >conftest.err
5686  rm -f conftest.er1
5687  cat conftest.err >&5
5688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689  (exit $ac_status); } &&
5690	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
5691  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5692  (eval $ac_try) 2>&5
5693  ac_status=$?
5694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695  (exit $ac_status); }; } &&
5696	 { ac_try='test -s conftest.$ac_objext'
5697  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5698  (eval $ac_try) 2>&5
5699  ac_status=$?
5700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701  (exit $ac_status); }; }; then
5702  WARNING_CFLAGS="$WARNING_CFLAGS -Wwrite-strings"
5703echo "$as_me:$LINENO: result: yes" >&5
5704echo "${ECHO_T}yes" >&6
5705else
5706  echo "$as_me: failed program was:" >&5
5707sed 's/^/| /' conftest.$ac_ext >&5
5708
5709echo "$as_me:$LINENO: result: no" >&5
5710echo "${ECHO_T}no" >&6
5711fi
5712rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5713CFLAGS="$ac_save_CFLAGS"
5714  WARNING_CXXFLAGS=$WARNING_CFLAGS
5715
5716  # The following warnings are not suitable for C++.
5717  echo "$as_me:$LINENO: checking whether compiler accepts -Wbad-function-cast" >&5
5718echo $ECHO_N "checking whether compiler accepts -Wbad-function-cast... $ECHO_C" >&6
5719
5720ac_save_CFLAGS="$CFLAGS"
5721CFLAGS="$CFLAGS -Wbad-function-cast"
5722cat >conftest.$ac_ext <<_ACEOF
5723/* confdefs.h.  */
5724_ACEOF
5725cat confdefs.h >>conftest.$ac_ext
5726cat >>conftest.$ac_ext <<_ACEOF
5727/* end confdefs.h.  */
5728
5729int
5730main ()
5731{
5732int x;
5733  ;
5734  return 0;
5735}
5736_ACEOF
5737rm -f conftest.$ac_objext
5738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5739  (eval $ac_compile) 2>conftest.er1
5740  ac_status=$?
5741  grep -v '^ *+' conftest.er1 >conftest.err
5742  rm -f conftest.er1
5743  cat conftest.err >&5
5744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745  (exit $ac_status); } &&
5746	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
5747  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5748  (eval $ac_try) 2>&5
5749  ac_status=$?
5750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751  (exit $ac_status); }; } &&
5752	 { ac_try='test -s conftest.$ac_objext'
5753  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5754  (eval $ac_try) 2>&5
5755  ac_status=$?
5756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757  (exit $ac_status); }; }; then
5758  WARNING_CFLAGS="$WARNING_CFLAGS -Wbad-function-cast"
5759echo "$as_me:$LINENO: result: yes" >&5
5760echo "${ECHO_T}yes" >&6
5761else
5762  echo "$as_me: failed program was:" >&5
5763sed 's/^/| /' conftest.$ac_ext >&5
5764
5765echo "$as_me:$LINENO: result: no" >&5
5766echo "${ECHO_T}no" >&6
5767fi
5768rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5769CFLAGS="$ac_save_CFLAGS"
5770  echo "$as_me:$LINENO: checking whether compiler accepts -Wmissing-declarations" >&5
5771echo $ECHO_N "checking whether compiler accepts -Wmissing-declarations... $ECHO_C" >&6
5772
5773ac_save_CFLAGS="$CFLAGS"
5774CFLAGS="$CFLAGS -Wmissing-declarations"
5775cat >conftest.$ac_ext <<_ACEOF
5776/* confdefs.h.  */
5777_ACEOF
5778cat confdefs.h >>conftest.$ac_ext
5779cat >>conftest.$ac_ext <<_ACEOF
5780/* end confdefs.h.  */
5781
5782int
5783main ()
5784{
5785int x;
5786  ;
5787  return 0;
5788}
5789_ACEOF
5790rm -f conftest.$ac_objext
5791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5792  (eval $ac_compile) 2>conftest.er1
5793  ac_status=$?
5794  grep -v '^ *+' conftest.er1 >conftest.err
5795  rm -f conftest.er1
5796  cat conftest.err >&5
5797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798  (exit $ac_status); } &&
5799	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
5800  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5801  (eval $ac_try) 2>&5
5802  ac_status=$?
5803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804  (exit $ac_status); }; } &&
5805	 { ac_try='test -s conftest.$ac_objext'
5806  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5807  (eval $ac_try) 2>&5
5808  ac_status=$?
5809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810  (exit $ac_status); }; }; then
5811  WARNING_CFLAGS="$WARNING_CFLAGS -Wmissing-declarations"
5812echo "$as_me:$LINENO: result: yes" >&5
5813echo "${ECHO_T}yes" >&6
5814else
5815  echo "$as_me: failed program was:" >&5
5816sed 's/^/| /' conftest.$ac_ext >&5
5817
5818echo "$as_me:$LINENO: result: no" >&5
5819echo "${ECHO_T}no" >&6
5820fi
5821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5822CFLAGS="$ac_save_CFLAGS"
5823  echo "$as_me:$LINENO: checking whether compiler accepts -Wmissing-prototypes" >&5
5824echo $ECHO_N "checking whether compiler accepts -Wmissing-prototypes... $ECHO_C" >&6
5825
5826ac_save_CFLAGS="$CFLAGS"
5827CFLAGS="$CFLAGS -Wmissing-prototypes"
5828cat >conftest.$ac_ext <<_ACEOF
5829/* confdefs.h.  */
5830_ACEOF
5831cat confdefs.h >>conftest.$ac_ext
5832cat >>conftest.$ac_ext <<_ACEOF
5833/* end confdefs.h.  */
5834
5835int
5836main ()
5837{
5838int x;
5839  ;
5840  return 0;
5841}
5842_ACEOF
5843rm -f conftest.$ac_objext
5844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5845  (eval $ac_compile) 2>conftest.er1
5846  ac_status=$?
5847  grep -v '^ *+' conftest.er1 >conftest.err
5848  rm -f conftest.er1
5849  cat conftest.err >&5
5850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851  (exit $ac_status); } &&
5852	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
5853  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5854  (eval $ac_try) 2>&5
5855  ac_status=$?
5856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857  (exit $ac_status); }; } &&
5858	 { ac_try='test -s conftest.$ac_objext'
5859  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5860  (eval $ac_try) 2>&5
5861  ac_status=$?
5862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863  (exit $ac_status); }; }; then
5864  WARNING_CFLAGS="$WARNING_CFLAGS -Wmissing-prototypes"
5865echo "$as_me:$LINENO: result: yes" >&5
5866echo "${ECHO_T}yes" >&6
5867else
5868  echo "$as_me: failed program was:" >&5
5869sed 's/^/| /' conftest.$ac_ext >&5
5870
5871echo "$as_me:$LINENO: result: no" >&5
5872echo "${ECHO_T}no" >&6
5873fi
5874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5875CFLAGS="$ac_save_CFLAGS"
5876  echo "$as_me:$LINENO: checking whether compiler accepts -Wshadow" >&5
5877echo $ECHO_N "checking whether compiler accepts -Wshadow... $ECHO_C" >&6
5878
5879ac_save_CFLAGS="$CFLAGS"
5880CFLAGS="$CFLAGS -Wshadow"
5881cat >conftest.$ac_ext <<_ACEOF
5882/* confdefs.h.  */
5883_ACEOF
5884cat confdefs.h >>conftest.$ac_ext
5885cat >>conftest.$ac_ext <<_ACEOF
5886/* end confdefs.h.  */
5887
5888int
5889main ()
5890{
5891int x;
5892  ;
5893  return 0;
5894}
5895_ACEOF
5896rm -f conftest.$ac_objext
5897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5898  (eval $ac_compile) 2>conftest.er1
5899  ac_status=$?
5900  grep -v '^ *+' conftest.er1 >conftest.err
5901  rm -f conftest.er1
5902  cat conftest.err >&5
5903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904  (exit $ac_status); } &&
5905	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
5906  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5907  (eval $ac_try) 2>&5
5908  ac_status=$?
5909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910  (exit $ac_status); }; } &&
5911	 { ac_try='test -s conftest.$ac_objext'
5912  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5913  (eval $ac_try) 2>&5
5914  ac_status=$?
5915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916  (exit $ac_status); }; }; then
5917  WARNING_CFLAGS="$WARNING_CFLAGS -Wshadow"
5918echo "$as_me:$LINENO: result: yes" >&5
5919echo "${ECHO_T}yes" >&6
5920else
5921  echo "$as_me: failed program was:" >&5
5922sed 's/^/| /' conftest.$ac_ext >&5
5923
5924echo "$as_me:$LINENO: result: no" >&5
5925echo "${ECHO_T}no" >&6
5926fi
5927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5928CFLAGS="$ac_save_CFLAGS"
5929  echo "$as_me:$LINENO: checking whether compiler accepts -Wstrict-prototypes" >&5
5930echo $ECHO_N "checking whether compiler accepts -Wstrict-prototypes... $ECHO_C" >&6
5931
5932ac_save_CFLAGS="$CFLAGS"
5933CFLAGS="$CFLAGS -Wstrict-prototypes"
5934cat >conftest.$ac_ext <<_ACEOF
5935/* confdefs.h.  */
5936_ACEOF
5937cat confdefs.h >>conftest.$ac_ext
5938cat >>conftest.$ac_ext <<_ACEOF
5939/* end confdefs.h.  */
5940
5941int
5942main ()
5943{
5944int x;
5945  ;
5946  return 0;
5947}
5948_ACEOF
5949rm -f conftest.$ac_objext
5950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5951  (eval $ac_compile) 2>conftest.er1
5952  ac_status=$?
5953  grep -v '^ *+' conftest.er1 >conftest.err
5954  rm -f conftest.er1
5955  cat conftest.err >&5
5956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957  (exit $ac_status); } &&
5958	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
5959  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5960  (eval $ac_try) 2>&5
5961  ac_status=$?
5962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963  (exit $ac_status); }; } &&
5964	 { ac_try='test -s conftest.$ac_objext'
5965  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5966  (eval $ac_try) 2>&5
5967  ac_status=$?
5968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969  (exit $ac_status); }; }; then
5970  WARNING_CFLAGS="$WARNING_CFLAGS -Wstrict-prototypes"
5971echo "$as_me:$LINENO: result: yes" >&5
5972echo "${ECHO_T}yes" >&6
5973else
5974  echo "$as_me: failed program was:" >&5
5975sed 's/^/| /' conftest.$ac_ext >&5
5976
5977echo "$as_me:$LINENO: result: no" >&5
5978echo "${ECHO_T}no" >&6
5979fi
5980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5981CFLAGS="$ac_save_CFLAGS"
5982
5983cat >>confdefs.h <<\_ACEOF
5984#define lint 1
5985_ACEOF
5986
5987fi
5988
5989
5990  cat >conftest.$ac_ext <<_ACEOF
5991/* confdefs.h.  */
5992_ACEOF
5993cat confdefs.h >>conftest.$ac_ext
5994cat >>conftest.$ac_ext <<_ACEOF
5995/* end confdefs.h.  */
5996#include <limits.h>
5997	 int test_array[CHAR_BIT];
5998int
5999main ()
6000{
6001
6002  ;
6003  return 0;
6004}
6005_ACEOF
6006rm -f conftest.$ac_objext
6007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6008  (eval $ac_compile) 2>conftest.er1
6009  ac_status=$?
6010  grep -v '^ *+' conftest.er1 >conftest.err
6011  rm -f conftest.er1
6012  cat conftest.err >&5
6013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014  (exit $ac_status); } &&
6015	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6016  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6017  (eval $ac_try) 2>&5
6018  ac_status=$?
6019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020  (exit $ac_status); }; } &&
6021	 { ac_try='test -s conftest.$ac_objext'
6022  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6023  (eval $ac_try) 2>&5
6024  ac_status=$?
6025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026  (exit $ac_status); }; }; then
6027  :
6028else
6029  echo "$as_me: failed program was:" >&5
6030sed 's/^/| /' conftest.$ac_ext >&5
6031
6032{ { echo "$as_me:$LINENO: error: cannot compile a simple C program
6033See \`config.log' for more details." >&5
6034echo "$as_me: error: cannot compile a simple C program
6035See \`config.log' for more details." >&2;}
6036   { (exit 1); exit 1; }; }
6037fi
6038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6039
6040
6041# Check whether --enable-yacc or --disable-yacc was given.
6042if test "${enable_yacc+set}" = set; then
6043  enableval="$enable_yacc"
6044
6045else
6046  enable_yacc=yes
6047fi;
6048case $enable_yacc in
6049yes)
6050  YACC_SCRIPT=yacc
6051  YACC_LIBRARY=liby.a;;
6052*)
6053  YACC_SCRIPT=
6054  YACC_LIBRARY=;;
6055esac
6056
6057
6058
6059# Checks for programs.
6060for ac_prog in flex lex
6061do
6062  # Extract the first word of "$ac_prog", so it can be a program name with args.
6063set dummy $ac_prog; ac_word=$2
6064echo "$as_me:$LINENO: checking for $ac_word" >&5
6065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6066if test "${ac_cv_prog_LEX+set}" = set; then
6067  echo $ECHO_N "(cached) $ECHO_C" >&6
6068else
6069  if test -n "$LEX"; then
6070  ac_cv_prog_LEX="$LEX" # Let the user override the test.
6071else
6072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6073for as_dir in $PATH
6074do
6075  IFS=$as_save_IFS
6076  test -z "$as_dir" && as_dir=.
6077  for ac_exec_ext in '' $ac_executable_extensions; do
6078  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6079    ac_cv_prog_LEX="$ac_prog"
6080    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6081    break 2
6082  fi
6083done
6084done
6085
6086fi
6087fi
6088LEX=$ac_cv_prog_LEX
6089if test -n "$LEX"; then
6090  echo "$as_me:$LINENO: result: $LEX" >&5
6091echo "${ECHO_T}$LEX" >&6
6092else
6093  echo "$as_me:$LINENO: result: no" >&5
6094echo "${ECHO_T}no" >&6
6095fi
6096
6097  test -n "$LEX" && break
6098done
6099test -n "$LEX" || LEX=":"
6100
6101if test -z "$LEXLIB"
6102then
6103  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6104echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
6105if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6106  echo $ECHO_N "(cached) $ECHO_C" >&6
6107else
6108  ac_check_lib_save_LIBS=$LIBS
6109LIBS="-lfl  $LIBS"
6110cat >conftest.$ac_ext <<_ACEOF
6111/* confdefs.h.  */
6112_ACEOF
6113cat confdefs.h >>conftest.$ac_ext
6114cat >>conftest.$ac_ext <<_ACEOF
6115/* end confdefs.h.  */
6116
6117/* Override any gcc2 internal prototype to avoid an error.  */
6118#ifdef __cplusplus
6119extern "C"
6120#endif
6121/* We use char because int might match the return type of a gcc2
6122   builtin and then its argument prototype would still apply.  */
6123char yywrap ();
6124int
6125main ()
6126{
6127yywrap ();
6128  ;
6129  return 0;
6130}
6131_ACEOF
6132rm -f conftest.$ac_objext conftest$ac_exeext
6133if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6134  (eval $ac_link) 2>conftest.er1
6135  ac_status=$?
6136  grep -v '^ *+' conftest.er1 >conftest.err
6137  rm -f conftest.er1
6138  cat conftest.err >&5
6139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140  (exit $ac_status); } &&
6141	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6142  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6143  (eval $ac_try) 2>&5
6144  ac_status=$?
6145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146  (exit $ac_status); }; } &&
6147	 { ac_try='test -s conftest$ac_exeext'
6148  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6149  (eval $ac_try) 2>&5
6150  ac_status=$?
6151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152  (exit $ac_status); }; }; then
6153  ac_cv_lib_fl_yywrap=yes
6154else
6155  echo "$as_me: failed program was:" >&5
6156sed 's/^/| /' conftest.$ac_ext >&5
6157
6158ac_cv_lib_fl_yywrap=no
6159fi
6160rm -f conftest.err conftest.$ac_objext \
6161      conftest$ac_exeext conftest.$ac_ext
6162LIBS=$ac_check_lib_save_LIBS
6163fi
6164echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6165echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
6166if test $ac_cv_lib_fl_yywrap = yes; then
6167  LEXLIB="-lfl"
6168else
6169  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6170echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
6171if test "${ac_cv_lib_l_yywrap+set}" = set; then
6172  echo $ECHO_N "(cached) $ECHO_C" >&6
6173else
6174  ac_check_lib_save_LIBS=$LIBS
6175LIBS="-ll  $LIBS"
6176cat >conftest.$ac_ext <<_ACEOF
6177/* confdefs.h.  */
6178_ACEOF
6179cat confdefs.h >>conftest.$ac_ext
6180cat >>conftest.$ac_ext <<_ACEOF
6181/* end confdefs.h.  */
6182
6183/* Override any gcc2 internal prototype to avoid an error.  */
6184#ifdef __cplusplus
6185extern "C"
6186#endif
6187/* We use char because int might match the return type of a gcc2
6188   builtin and then its argument prototype would still apply.  */
6189char yywrap ();
6190int
6191main ()
6192{
6193yywrap ();
6194  ;
6195  return 0;
6196}
6197_ACEOF
6198rm -f conftest.$ac_objext conftest$ac_exeext
6199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6200  (eval $ac_link) 2>conftest.er1
6201  ac_status=$?
6202  grep -v '^ *+' conftest.er1 >conftest.err
6203  rm -f conftest.er1
6204  cat conftest.err >&5
6205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206  (exit $ac_status); } &&
6207	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6208  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6209  (eval $ac_try) 2>&5
6210  ac_status=$?
6211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212  (exit $ac_status); }; } &&
6213	 { ac_try='test -s conftest$ac_exeext'
6214  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6215  (eval $ac_try) 2>&5
6216  ac_status=$?
6217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218  (exit $ac_status); }; }; then
6219  ac_cv_lib_l_yywrap=yes
6220else
6221  echo "$as_me: failed program was:" >&5
6222sed 's/^/| /' conftest.$ac_ext >&5
6223
6224ac_cv_lib_l_yywrap=no
6225fi
6226rm -f conftest.err conftest.$ac_objext \
6227      conftest$ac_exeext conftest.$ac_ext
6228LIBS=$ac_check_lib_save_LIBS
6229fi
6230echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6231echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
6232if test $ac_cv_lib_l_yywrap = yes; then
6233  LEXLIB="-ll"
6234fi
6235
6236fi
6237
6238fi
6239
6240if test "x$LEX" != "x:"; then
6241  echo "$as_me:$LINENO: checking lex output file root" >&5
6242echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
6243if test "${ac_cv_prog_lex_root+set}" = set; then
6244  echo $ECHO_N "(cached) $ECHO_C" >&6
6245else
6246  # The minimal lex program is just a single line: %%.  But some broken lexes
6247# (Solaris, I think it was) want two %% lines, so accommodate them.
6248cat >conftest.l <<_ACEOF
6249%%
6250%%
6251_ACEOF
6252{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
6253  (eval $LEX conftest.l) 2>&5
6254  ac_status=$?
6255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256  (exit $ac_status); }
6257if test -f lex.yy.c; then
6258  ac_cv_prog_lex_root=lex.yy
6259elif test -f lexyy.c; then
6260  ac_cv_prog_lex_root=lexyy
6261else
6262  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6263echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6264   { (exit 1); exit 1; }; }
6265fi
6266fi
6267echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6268echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
6269rm -f conftest.l
6270LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6271
6272echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6273echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
6274if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6275  echo $ECHO_N "(cached) $ECHO_C" >&6
6276else
6277  # POSIX says lex can declare yytext either as a pointer or an array; the
6278# default is implementation-dependent. Figure out which it is, since
6279# not all implementations provide the %pointer and %array declarations.
6280ac_cv_prog_lex_yytext_pointer=no
6281echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6282ac_save_LIBS=$LIBS
6283LIBS="$LIBS $LEXLIB"
6284cat >conftest.$ac_ext <<_ACEOF
6285`cat $LEX_OUTPUT_ROOT.c`
6286_ACEOF
6287rm -f conftest.$ac_objext conftest$ac_exeext
6288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6289  (eval $ac_link) 2>conftest.er1
6290  ac_status=$?
6291  grep -v '^ *+' conftest.er1 >conftest.err
6292  rm -f conftest.er1
6293  cat conftest.err >&5
6294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295  (exit $ac_status); } &&
6296	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6297  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6298  (eval $ac_try) 2>&5
6299  ac_status=$?
6300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301  (exit $ac_status); }; } &&
6302	 { ac_try='test -s conftest$ac_exeext'
6303  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6304  (eval $ac_try) 2>&5
6305  ac_status=$?
6306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307  (exit $ac_status); }; }; then
6308  ac_cv_prog_lex_yytext_pointer=yes
6309else
6310  echo "$as_me: failed program was:" >&5
6311sed 's/^/| /' conftest.$ac_ext >&5
6312
6313fi
6314rm -f conftest.err conftest.$ac_objext \
6315      conftest$ac_exeext conftest.$ac_ext
6316LIBS=$ac_save_LIBS
6317rm -f "${LEX_OUTPUT_ROOT}.c"
6318
6319fi
6320echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6321echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
6322if test $ac_cv_prog_lex_yytext_pointer = yes; then
6323
6324cat >>confdefs.h <<\_ACEOF
6325#define YYTEXT_POINTER 1
6326_ACEOF
6327
6328fi
6329
6330fi
6331for ac_prog in 'bison -y' byacc
6332do
6333  # Extract the first word of "$ac_prog", so it can be a program name with args.
6334set dummy $ac_prog; ac_word=$2
6335echo "$as_me:$LINENO: checking for $ac_word" >&5
6336echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6337if test "${ac_cv_prog_YACC+set}" = set; then
6338  echo $ECHO_N "(cached) $ECHO_C" >&6
6339else
6340  if test -n "$YACC"; then
6341  ac_cv_prog_YACC="$YACC" # Let the user override the test.
6342else
6343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6344for as_dir in $PATH
6345do
6346  IFS=$as_save_IFS
6347  test -z "$as_dir" && as_dir=.
6348  for ac_exec_ext in '' $ac_executable_extensions; do
6349  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6350    ac_cv_prog_YACC="$ac_prog"
6351    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6352    break 2
6353  fi
6354done
6355done
6356
6357fi
6358fi
6359YACC=$ac_cv_prog_YACC
6360if test -n "$YACC"; then
6361  echo "$as_me:$LINENO: result: $YACC" >&5
6362echo "${ECHO_T}$YACC" >&6
6363else
6364  echo "$as_me:$LINENO: result: no" >&5
6365echo "${ECHO_T}no" >&6
6366fi
6367
6368  test -n "$YACC" && break
6369done
6370test -n "$YACC" || YACC="yacc"
6371
6372if test -n "$ac_tool_prefix"; then
6373  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6374set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6375echo "$as_me:$LINENO: checking for $ac_word" >&5
6376echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6377if test "${ac_cv_prog_RANLIB+set}" = set; then
6378  echo $ECHO_N "(cached) $ECHO_C" >&6
6379else
6380  if test -n "$RANLIB"; then
6381  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6382else
6383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6384for as_dir in $PATH
6385do
6386  IFS=$as_save_IFS
6387  test -z "$as_dir" && as_dir=.
6388  for ac_exec_ext in '' $ac_executable_extensions; do
6389  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6390    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6391    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6392    break 2
6393  fi
6394done
6395done
6396
6397fi
6398fi
6399RANLIB=$ac_cv_prog_RANLIB
6400if test -n "$RANLIB"; then
6401  echo "$as_me:$LINENO: result: $RANLIB" >&5
6402echo "${ECHO_T}$RANLIB" >&6
6403else
6404  echo "$as_me:$LINENO: result: no" >&5
6405echo "${ECHO_T}no" >&6
6406fi
6407
6408fi
6409if test -z "$ac_cv_prog_RANLIB"; then
6410  ac_ct_RANLIB=$RANLIB
6411  # Extract the first word of "ranlib", so it can be a program name with args.
6412set dummy ranlib; ac_word=$2
6413echo "$as_me:$LINENO: checking for $ac_word" >&5
6414echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6415if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6416  echo $ECHO_N "(cached) $ECHO_C" >&6
6417else
6418  if test -n "$ac_ct_RANLIB"; then
6419  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6420else
6421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6422for as_dir in $PATH
6423do
6424  IFS=$as_save_IFS
6425  test -z "$as_dir" && as_dir=.
6426  for ac_exec_ext in '' $ac_executable_extensions; do
6427  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6428    ac_cv_prog_ac_ct_RANLIB="ranlib"
6429    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6430    break 2
6431  fi
6432done
6433done
6434
6435  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6436fi
6437fi
6438ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6439if test -n "$ac_ct_RANLIB"; then
6440  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6441echo "${ECHO_T}$ac_ct_RANLIB" >&6
6442else
6443  echo "$as_me:$LINENO: result: no" >&5
6444echo "${ECHO_T}no" >&6
6445fi
6446
6447  RANLIB=$ac_ct_RANLIB
6448else
6449  RANLIB="$ac_cv_prog_RANLIB"
6450fi
6451
6452for ac_prog in gm4 gnum4 m4
6453do
6454  # Extract the first word of "$ac_prog", so it can be a program name with args.
6455set dummy $ac_prog; ac_word=$2
6456echo "$as_me:$LINENO: checking for $ac_word" >&5
6457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6458if test "${ac_cv_path_M4+set}" = set; then
6459  echo $ECHO_N "(cached) $ECHO_C" >&6
6460else
6461  case $M4 in
6462  [\\/]* | ?:[\\/]*)
6463  ac_cv_path_M4="$M4" # Let the user override the test with a path.
6464  ;;
6465  *)
6466  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467for as_dir in $PATH
6468do
6469  IFS=$as_save_IFS
6470  test -z "$as_dir" && as_dir=.
6471  for ac_exec_ext in '' $ac_executable_extensions; do
6472  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6473    ac_cv_path_M4="$as_dir/$ac_word$ac_exec_ext"
6474    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6475    break 2
6476  fi
6477done
6478done
6479
6480  ;;
6481esac
6482fi
6483M4=$ac_cv_path_M4
6484
6485if test -n "$M4"; then
6486  echo "$as_me:$LINENO: result: $M4" >&5
6487echo "${ECHO_T}$M4" >&6
6488else
6489  echo "$as_me:$LINENO: result: no" >&5
6490echo "${ECHO_T}no" >&6
6491fi
6492
6493  test -n "$M4" && break
6494done
6495test -n "$M4" || M4="m4"
6496
6497echo "$as_me:$LINENO: checking whether m4 supports frozen files" >&5
6498echo $ECHO_N "checking whether m4 supports frozen files... $ECHO_C" >&6
6499if test "${ac_cv_prog_gnu_m4+set}" = set; then
6500  echo $ECHO_N "(cached) $ECHO_C" >&6
6501else
6502  ac_cv_prog_gnu_m4=no
6503if test x"$M4" != x; then
6504  case `$M4 --help < /dev/null 2>&1` in
6505    *reload-state*) ac_cv_prog_gnu_m4=yes ;;
6506  esac
6507fi
6508fi
6509echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_m4" >&5
6510echo "${ECHO_T}$ac_cv_prog_gnu_m4" >&6
6511if test x"$ac_cv_prog_gnu_m4" != xyes; then
6512  { { echo "$as_me:$LINENO: error: GNU M4 1.4 is required" >&5
6513echo "$as_me: error: GNU M4 1.4 is required" >&2;}
6514   { (exit 1); exit 1; }; }
6515fi
6516
6517cat >>confdefs.h <<_ACEOF
6518#define M4 "$M4"
6519_ACEOF
6520
6521
6522# Checks for header files.
6523
6524
6525
6526
6527
6528for ac_header in $gl_header_list
6529do
6530as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6531if eval "test \"\${$as_ac_Header+set}\" = set"; then
6532  echo "$as_me:$LINENO: checking for $ac_header" >&5
6533echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6534if eval "test \"\${$as_ac_Header+set}\" = set"; then
6535  echo $ECHO_N "(cached) $ECHO_C" >&6
6536fi
6537echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6538echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6539else
6540  # Is the header compilable?
6541echo "$as_me:$LINENO: checking $ac_header usability" >&5
6542echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6543cat >conftest.$ac_ext <<_ACEOF
6544/* confdefs.h.  */
6545_ACEOF
6546cat confdefs.h >>conftest.$ac_ext
6547cat >>conftest.$ac_ext <<_ACEOF
6548/* end confdefs.h.  */
6549$ac_includes_default
6550#include <$ac_header>
6551_ACEOF
6552rm -f conftest.$ac_objext
6553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6554  (eval $ac_compile) 2>conftest.er1
6555  ac_status=$?
6556  grep -v '^ *+' conftest.er1 >conftest.err
6557  rm -f conftest.er1
6558  cat conftest.err >&5
6559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560  (exit $ac_status); } &&
6561	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6562  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6563  (eval $ac_try) 2>&5
6564  ac_status=$?
6565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566  (exit $ac_status); }; } &&
6567	 { ac_try='test -s conftest.$ac_objext'
6568  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6569  (eval $ac_try) 2>&5
6570  ac_status=$?
6571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572  (exit $ac_status); }; }; then
6573  ac_header_compiler=yes
6574else
6575  echo "$as_me: failed program was:" >&5
6576sed 's/^/| /' conftest.$ac_ext >&5
6577
6578ac_header_compiler=no
6579fi
6580rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6581echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6582echo "${ECHO_T}$ac_header_compiler" >&6
6583
6584# Is the header present?
6585echo "$as_me:$LINENO: checking $ac_header presence" >&5
6586echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6587cat >conftest.$ac_ext <<_ACEOF
6588/* confdefs.h.  */
6589_ACEOF
6590cat confdefs.h >>conftest.$ac_ext
6591cat >>conftest.$ac_ext <<_ACEOF
6592/* end confdefs.h.  */
6593#include <$ac_header>
6594_ACEOF
6595if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6596  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6597  ac_status=$?
6598  grep -v '^ *+' conftest.er1 >conftest.err
6599  rm -f conftest.er1
6600  cat conftest.err >&5
6601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602  (exit $ac_status); } >/dev/null; then
6603  if test -s conftest.err; then
6604    ac_cpp_err=$ac_c_preproc_warn_flag
6605    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6606  else
6607    ac_cpp_err=
6608  fi
6609else
6610  ac_cpp_err=yes
6611fi
6612if test -z "$ac_cpp_err"; then
6613  ac_header_preproc=yes
6614else
6615  echo "$as_me: failed program was:" >&5
6616sed 's/^/| /' conftest.$ac_ext >&5
6617
6618  ac_header_preproc=no
6619fi
6620rm -f conftest.err conftest.$ac_ext
6621echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6622echo "${ECHO_T}$ac_header_preproc" >&6
6623
6624# So?  What about this header?
6625case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6626  yes:no: )
6627    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6628echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6629    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6630echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6631    ac_header_preproc=yes
6632    ;;
6633  no:yes:* )
6634    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6635echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6636    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6637echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6638    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6639echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6640    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6641echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6642    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6643echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6644    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6645echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6646    (
6647      cat <<\_ASBOX
6648## -------------------------------- ##
6649## Report this to bug-bison@gnu.org ##
6650## -------------------------------- ##
6651_ASBOX
6652    ) |
6653      sed "s/^/$as_me: WARNING:     /" >&2
6654    ;;
6655esac
6656echo "$as_me:$LINENO: checking for $ac_header" >&5
6657echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6658if eval "test \"\${$as_ac_Header+set}\" = set"; then
6659  echo $ECHO_N "(cached) $ECHO_C" >&6
6660else
6661  eval "$as_ac_Header=\$ac_header_preproc"
6662fi
6663echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6664echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6665
6666fi
6667if test `eval echo '${'$as_ac_Header'}'` = yes; then
6668  cat >>confdefs.h <<_ACEOF
6669#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6670_ACEOF
6671
6672fi
6673
6674done
6675
6676
6677
6678
6679
6680
6681
6682  :
6683
6684
6685
6686
6687
6688echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
6689echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
6690if test "${ac_cv_header_stdbool_h+set}" = set; then
6691  echo $ECHO_N "(cached) $ECHO_C" >&6
6692else
6693  cat >conftest.$ac_ext <<_ACEOF
6694/* confdefs.h.  */
6695_ACEOF
6696cat confdefs.h >>conftest.$ac_ext
6697cat >>conftest.$ac_ext <<_ACEOF
6698/* end confdefs.h.  */
6699
6700	  #include <stdbool.h>
6701	  #ifndef bool
6702	   "error: bool is not defined"
6703	  #endif
6704	  #ifndef false
6705	   "error: false is not defined"
6706	  #endif
6707	  #if false
6708	   "error: false is not 0"
6709	  #endif
6710	  #ifndef true
6711	   "error: true is not defined"
6712	  #endif
6713	  #if true != 1
6714	   "error: true is not 1"
6715	  #endif
6716	  #ifndef __bool_true_false_are_defined
6717	   "error: __bool_true_false_are_defined is not defined"
6718	  #endif
6719
6720	  struct s { _Bool s: 1; _Bool t; } s;
6721
6722	  char a[true == 1 ? 1 : -1];
6723	  char b[false == 0 ? 1 : -1];
6724	  char c[__bool_true_false_are_defined == 1 ? 1 : -1];
6725	  char d[(bool) 0.5 == true ? 1 : -1];
6726	  bool e = &s;
6727	  char f[(_Bool) 0.0 == false ? 1 : -1];
6728	  char g[true];
6729	  char h[sizeof (_Bool)];
6730	  char i[sizeof s.t];
6731	  enum { j = false, k = true, l = false * true, m = true * 256 };
6732	  _Bool n[m];
6733	  char o[sizeof n == m * sizeof n[0] ? 1 : -1];
6734	  char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
6735	  #if defined __xlc__ || defined __GNUC__
6736	   /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
6737	      reported by James Lemley on 2005-10-05; see
6738	      http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
6739	      This test is not quite right, since xlc is allowed to
6740	      reject this program, as the initializer for xlcbug is
6741	      not one of the forms that C requires support for.
6742	      However, doing the test right would require a run-time
6743	      test, and that would make cross-compilation harder.
6744	      Let us hope that IBM fixes the xlc bug, and also adds
6745	      support for this kind of constant expression.  In the
6746	      meantime, this test will reject xlc, which is OK, since
6747	      our stdbool.h substitute should suffice.  We also test
6748	      this with GCC, where it should work, to detect more
6749	      quickly whether someone messes up the test in the
6750	      future.  */
6751	   char digs[] = "0123456789";
6752	   int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
6753	  #endif
6754	  /* Catch a bug in an HP-UX C compiler.  See
6755	     http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
6756	     http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
6757	   */
6758	  _Bool q = true;
6759	  _Bool *pq = &q;
6760
6761int
6762main ()
6763{
6764
6765	  *pq |= q;
6766	  *pq |= ! q;
6767	  /* Refer to every declared value, to avoid compiler optimizations.  */
6768	  return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
6769		  + !m + !n + !o + !p + !q + !pq);
6770
6771  ;
6772  return 0;
6773}
6774_ACEOF
6775rm -f conftest.$ac_objext
6776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6777  (eval $ac_compile) 2>conftest.er1
6778  ac_status=$?
6779  grep -v '^ *+' conftest.er1 >conftest.err
6780  rm -f conftest.er1
6781  cat conftest.err >&5
6782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783  (exit $ac_status); } &&
6784	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6785  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6786  (eval $ac_try) 2>&5
6787  ac_status=$?
6788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789  (exit $ac_status); }; } &&
6790	 { ac_try='test -s conftest.$ac_objext'
6791  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6792  (eval $ac_try) 2>&5
6793  ac_status=$?
6794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795  (exit $ac_status); }; }; then
6796  ac_cv_header_stdbool_h=yes
6797else
6798  echo "$as_me: failed program was:" >&5
6799sed 's/^/| /' conftest.$ac_ext >&5
6800
6801ac_cv_header_stdbool_h=no
6802fi
6803rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6804fi
6805echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
6806echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
6807   echo "$as_me:$LINENO: checking for _Bool" >&5
6808echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
6809if test "${ac_cv_type__Bool+set}" = set; then
6810  echo $ECHO_N "(cached) $ECHO_C" >&6
6811else
6812  cat >conftest.$ac_ext <<_ACEOF
6813/* confdefs.h.  */
6814_ACEOF
6815cat confdefs.h >>conftest.$ac_ext
6816cat >>conftest.$ac_ext <<_ACEOF
6817/* end confdefs.h.  */
6818$ac_includes_default
6819int
6820main ()
6821{
6822if ((_Bool *) 0)
6823  return 0;
6824if (sizeof (_Bool))
6825  return 0;
6826  ;
6827  return 0;
6828}
6829_ACEOF
6830rm -f conftest.$ac_objext
6831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6832  (eval $ac_compile) 2>conftest.er1
6833  ac_status=$?
6834  grep -v '^ *+' conftest.er1 >conftest.err
6835  rm -f conftest.er1
6836  cat conftest.err >&5
6837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838  (exit $ac_status); } &&
6839	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6840  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6841  (eval $ac_try) 2>&5
6842  ac_status=$?
6843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844  (exit $ac_status); }; } &&
6845	 { ac_try='test -s conftest.$ac_objext'
6846  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6847  (eval $ac_try) 2>&5
6848  ac_status=$?
6849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850  (exit $ac_status); }; }; then
6851  ac_cv_type__Bool=yes
6852else
6853  echo "$as_me: failed program was:" >&5
6854sed 's/^/| /' conftest.$ac_ext >&5
6855
6856ac_cv_type__Bool=no
6857fi
6858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6859fi
6860echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
6861echo "${ECHO_T}$ac_cv_type__Bool" >&6
6862if test $ac_cv_type__Bool = yes; then
6863
6864cat >>confdefs.h <<_ACEOF
6865#define HAVE__BOOL 1
6866_ACEOF
6867
6868
6869fi
6870
6871   if test $ac_cv_header_stdbool_h = yes; then
6872
6873cat >>confdefs.h <<\_ACEOF
6874#define HAVE_STDBOOL_H 1
6875_ACEOF
6876
6877   fi
6878
6879
6880
6881  # Define two additional variables used in the Makefile substitution.
6882
6883  if test "$ac_cv_header_stdbool_h" = yes; then
6884    STDBOOL_H=''
6885  else
6886    STDBOOL_H='stdbool.h'
6887  fi
6888
6889
6890  if test "$ac_cv_type__Bool" = yes; then
6891    HAVE__BOOL=1
6892  else
6893    HAVE__BOOL=0
6894  fi
6895
6896
6897
6898# Checks for compiler characteristics.
6899echo "$as_me:$LINENO: checking for inline" >&5
6900echo $ECHO_N "checking for inline... $ECHO_C" >&6
6901if test "${ac_cv_c_inline+set}" = set; then
6902  echo $ECHO_N "(cached) $ECHO_C" >&6
6903else
6904  ac_cv_c_inline=no
6905for ac_kw in inline __inline__ __inline; do
6906  cat >conftest.$ac_ext <<_ACEOF
6907/* confdefs.h.  */
6908_ACEOF
6909cat confdefs.h >>conftest.$ac_ext
6910cat >>conftest.$ac_ext <<_ACEOF
6911/* end confdefs.h.  */
6912#ifndef __cplusplus
6913typedef int foo_t;
6914static $ac_kw foo_t static_foo () {return 0; }
6915$ac_kw foo_t foo () {return 0; }
6916#endif
6917
6918_ACEOF
6919rm -f conftest.$ac_objext
6920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6921  (eval $ac_compile) 2>conftest.er1
6922  ac_status=$?
6923  grep -v '^ *+' conftest.er1 >conftest.err
6924  rm -f conftest.er1
6925  cat conftest.err >&5
6926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6927  (exit $ac_status); } &&
6928	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6929  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6930  (eval $ac_try) 2>&5
6931  ac_status=$?
6932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933  (exit $ac_status); }; } &&
6934	 { ac_try='test -s conftest.$ac_objext'
6935  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6936  (eval $ac_try) 2>&5
6937  ac_status=$?
6938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939  (exit $ac_status); }; }; then
6940  ac_cv_c_inline=$ac_kw; break
6941else
6942  echo "$as_me: failed program was:" >&5
6943sed 's/^/| /' conftest.$ac_ext >&5
6944
6945fi
6946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6947done
6948
6949fi
6950echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6951echo "${ECHO_T}$ac_cv_c_inline" >&6
6952
6953
6954case $ac_cv_c_inline in
6955  inline | yes) ;;
6956  *)
6957    case $ac_cv_c_inline in
6958      no) ac_val=;;
6959      *) ac_val=$ac_cv_c_inline;;
6960    esac
6961    cat >>confdefs.h <<_ACEOF
6962#ifndef __cplusplus
6963#define inline $ac_val
6964#endif
6965_ACEOF
6966    ;;
6967esac
6968
6969
6970# Checks for types.
6971echo "$as_me:$LINENO: checking for uintptr_t" >&5
6972echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
6973if test "${ac_cv_type_uintptr_t+set}" = set; then
6974  echo $ECHO_N "(cached) $ECHO_C" >&6
6975else
6976  cat >conftest.$ac_ext <<_ACEOF
6977/* confdefs.h.  */
6978_ACEOF
6979cat confdefs.h >>conftest.$ac_ext
6980cat >>conftest.$ac_ext <<_ACEOF
6981/* end confdefs.h.  */
6982$ac_includes_default
6983int
6984main ()
6985{
6986if ((uintptr_t *) 0)
6987  return 0;
6988if (sizeof (uintptr_t))
6989  return 0;
6990  ;
6991  return 0;
6992}
6993_ACEOF
6994rm -f conftest.$ac_objext
6995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6996  (eval $ac_compile) 2>conftest.er1
6997  ac_status=$?
6998  grep -v '^ *+' conftest.er1 >conftest.err
6999  rm -f conftest.er1
7000  cat conftest.err >&5
7001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002  (exit $ac_status); } &&
7003	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7004  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7005  (eval $ac_try) 2>&5
7006  ac_status=$?
7007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008  (exit $ac_status); }; } &&
7009	 { ac_try='test -s conftest.$ac_objext'
7010  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7011  (eval $ac_try) 2>&5
7012  ac_status=$?
7013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014  (exit $ac_status); }; }; then
7015  ac_cv_type_uintptr_t=yes
7016else
7017  echo "$as_me: failed program was:" >&5
7018sed 's/^/| /' conftest.$ac_ext >&5
7019
7020ac_cv_type_uintptr_t=no
7021fi
7022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7023fi
7024echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
7025echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
7026if test $ac_cv_type_uintptr_t = yes; then
7027
7028cat >>confdefs.h <<_ACEOF
7029#define HAVE_UINTPTR_T 1
7030_ACEOF
7031
7032
7033fi
7034
7035
7036# Checks for library functions.
7037
7038
7039
7040
7041
7042for ac_func in $gl_func_list
7043do
7044as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7045echo "$as_me:$LINENO: checking for $ac_func" >&5
7046echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7047if eval "test \"\${$as_ac_var+set}\" = set"; then
7048  echo $ECHO_N "(cached) $ECHO_C" >&6
7049else
7050  cat >conftest.$ac_ext <<_ACEOF
7051/* confdefs.h.  */
7052_ACEOF
7053cat confdefs.h >>conftest.$ac_ext
7054cat >>conftest.$ac_ext <<_ACEOF
7055/* end confdefs.h.  */
7056/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7057   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7058#define $ac_func innocuous_$ac_func
7059
7060/* System header to define __stub macros and hopefully few prototypes,
7061    which can conflict with char $ac_func (); below.
7062    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7063    <limits.h> exists even on freestanding compilers.  */
7064
7065#ifdef __STDC__
7066# include <limits.h>
7067#else
7068# include <assert.h>
7069#endif
7070
7071#undef $ac_func
7072
7073/* Override any gcc2 internal prototype to avoid an error.  */
7074#ifdef __cplusplus
7075extern "C"
7076{
7077#endif
7078/* We use char because int might match the return type of a gcc2
7079   builtin and then its argument prototype would still apply.  */
7080char $ac_func ();
7081/* The GNU C library defines this for functions which it implements
7082    to always fail with ENOSYS.  Some functions are actually named
7083    something starting with __ and the normal name is an alias.  */
7084#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7085choke me
7086#else
7087char (*f) () = $ac_func;
7088#endif
7089#ifdef __cplusplus
7090}
7091#endif
7092
7093int
7094main ()
7095{
7096return f != $ac_func;
7097  ;
7098  return 0;
7099}
7100_ACEOF
7101rm -f conftest.$ac_objext conftest$ac_exeext
7102if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7103  (eval $ac_link) 2>conftest.er1
7104  ac_status=$?
7105  grep -v '^ *+' conftest.er1 >conftest.err
7106  rm -f conftest.er1
7107  cat conftest.err >&5
7108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7109  (exit $ac_status); } &&
7110	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7111  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7112  (eval $ac_try) 2>&5
7113  ac_status=$?
7114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115  (exit $ac_status); }; } &&
7116	 { ac_try='test -s conftest$ac_exeext'
7117  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7118  (eval $ac_try) 2>&5
7119  ac_status=$?
7120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121  (exit $ac_status); }; }; then
7122  eval "$as_ac_var=yes"
7123else
7124  echo "$as_me: failed program was:" >&5
7125sed 's/^/| /' conftest.$ac_ext >&5
7126
7127eval "$as_ac_var=no"
7128fi
7129rm -f conftest.err conftest.$ac_objext \
7130      conftest$ac_exeext conftest.$ac_ext
7131fi
7132echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7133echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7134if test `eval echo '${'$as_ac_var'}'` = yes; then
7135  cat >>confdefs.h <<_ACEOF
7136#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7137_ACEOF
7138
7139fi
7140done
7141
7142
7143
7144
7145
7146
7147
7148  :
7149
7150
7151
7152
7153
7154echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
7155echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
7156
7157# Check whether --with-dmalloc or --without-dmalloc was given.
7158if test "${with_dmalloc+set}" = set; then
7159  withval="$with_dmalloc"
7160  if test "$withval" = yes; then
7161  echo "$as_me:$LINENO: result: yes" >&5
7162echo "${ECHO_T}yes" >&6
7163
7164cat >>confdefs.h <<\_ACEOF
7165#define WITH_DMALLOC 1
7166_ACEOF
7167
7168  LIBS="$LIBS -ldmalloc"
7169  LDFLAGS="$LDFLAGS -g"
7170else
7171  echo "$as_me:$LINENO: result: no" >&5
7172echo "${ECHO_T}no" >&6
7173fi
7174else
7175  echo "$as_me:$LINENO: result: no" >&5
7176echo "${ECHO_T}no" >&6
7177fi;
7178
7179
7180 echo "$as_me:$LINENO: checking for pid_t" >&5
7181echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7182if test "${ac_cv_type_pid_t+set}" = set; then
7183  echo $ECHO_N "(cached) $ECHO_C" >&6
7184else
7185  cat >conftest.$ac_ext <<_ACEOF
7186/* confdefs.h.  */
7187_ACEOF
7188cat confdefs.h >>conftest.$ac_ext
7189cat >>conftest.$ac_ext <<_ACEOF
7190/* end confdefs.h.  */
7191$ac_includes_default
7192int
7193main ()
7194{
7195if ((pid_t *) 0)
7196  return 0;
7197if (sizeof (pid_t))
7198  return 0;
7199  ;
7200  return 0;
7201}
7202_ACEOF
7203rm -f conftest.$ac_objext
7204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7205  (eval $ac_compile) 2>conftest.er1
7206  ac_status=$?
7207  grep -v '^ *+' conftest.er1 >conftest.err
7208  rm -f conftest.er1
7209  cat conftest.err >&5
7210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211  (exit $ac_status); } &&
7212	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7213  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7214  (eval $ac_try) 2>&5
7215  ac_status=$?
7216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217  (exit $ac_status); }; } &&
7218	 { ac_try='test -s conftest.$ac_objext'
7219  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7220  (eval $ac_try) 2>&5
7221  ac_status=$?
7222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223  (exit $ac_status); }; }; then
7224  ac_cv_type_pid_t=yes
7225else
7226  echo "$as_me: failed program was:" >&5
7227sed 's/^/| /' conftest.$ac_ext >&5
7228
7229ac_cv_type_pid_t=no
7230fi
7231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7232fi
7233echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7234echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7235if test $ac_cv_type_pid_t = yes; then
7236  :
7237else
7238
7239cat >>confdefs.h <<_ACEOF
7240#define pid_t int
7241_ACEOF
7242
7243fi
7244
7245 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7246echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7247if test "${ac_cv_header_sys_wait_h+set}" = set; then
7248  echo $ECHO_N "(cached) $ECHO_C" >&6
7249else
7250  cat >conftest.$ac_ext <<_ACEOF
7251/* confdefs.h.  */
7252_ACEOF
7253cat confdefs.h >>conftest.$ac_ext
7254cat >>conftest.$ac_ext <<_ACEOF
7255/* end confdefs.h.  */
7256#include <sys/types.h>
7257#include <sys/wait.h>
7258#ifndef WEXITSTATUS
7259# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7260#endif
7261#ifndef WIFEXITED
7262# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7263#endif
7264
7265int
7266main ()
7267{
7268  int s;
7269  wait (&s);
7270  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7271  ;
7272  return 0;
7273}
7274_ACEOF
7275rm -f conftest.$ac_objext
7276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7277  (eval $ac_compile) 2>conftest.er1
7278  ac_status=$?
7279  grep -v '^ *+' conftest.er1 >conftest.err
7280  rm -f conftest.er1
7281  cat conftest.err >&5
7282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283  (exit $ac_status); } &&
7284	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7285  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7286  (eval $ac_try) 2>&5
7287  ac_status=$?
7288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289  (exit $ac_status); }; } &&
7290	 { ac_try='test -s conftest.$ac_objext'
7291  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7292  (eval $ac_try) 2>&5
7293  ac_status=$?
7294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295  (exit $ac_status); }; }; then
7296  ac_cv_header_sys_wait_h=yes
7297else
7298  echo "$as_me: failed program was:" >&5
7299sed 's/^/| /' conftest.$ac_ext >&5
7300
7301ac_cv_header_sys_wait_h=no
7302fi
7303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7304fi
7305echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7306echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
7307if test $ac_cv_header_sys_wait_h = yes; then
7308
7309cat >>confdefs.h <<\_ACEOF
7310#define HAVE_SYS_WAIT_H 1
7311_ACEOF
7312
7313fi
7314
7315
7316
7317for ac_func in dup2 waitpid
7318do
7319as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7320echo "$as_me:$LINENO: checking for $ac_func" >&5
7321echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7322if eval "test \"\${$as_ac_var+set}\" = set"; then
7323  echo $ECHO_N "(cached) $ECHO_C" >&6
7324else
7325  cat >conftest.$ac_ext <<_ACEOF
7326/* confdefs.h.  */
7327_ACEOF
7328cat confdefs.h >>conftest.$ac_ext
7329cat >>conftest.$ac_ext <<_ACEOF
7330/* end confdefs.h.  */
7331/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7332   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7333#define $ac_func innocuous_$ac_func
7334
7335/* System header to define __stub macros and hopefully few prototypes,
7336    which can conflict with char $ac_func (); below.
7337    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7338    <limits.h> exists even on freestanding compilers.  */
7339
7340#ifdef __STDC__
7341# include <limits.h>
7342#else
7343# include <assert.h>
7344#endif
7345
7346#undef $ac_func
7347
7348/* Override any gcc2 internal prototype to avoid an error.  */
7349#ifdef __cplusplus
7350extern "C"
7351{
7352#endif
7353/* We use char because int might match the return type of a gcc2
7354   builtin and then its argument prototype would still apply.  */
7355char $ac_func ();
7356/* The GNU C library defines this for functions which it implements
7357    to always fail with ENOSYS.  Some functions are actually named
7358    something starting with __ and the normal name is an alias.  */
7359#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7360choke me
7361#else
7362char (*f) () = $ac_func;
7363#endif
7364#ifdef __cplusplus
7365}
7366#endif
7367
7368int
7369main ()
7370{
7371return f != $ac_func;
7372  ;
7373  return 0;
7374}
7375_ACEOF
7376rm -f conftest.$ac_objext conftest$ac_exeext
7377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7378  (eval $ac_link) 2>conftest.er1
7379  ac_status=$?
7380  grep -v '^ *+' conftest.er1 >conftest.err
7381  rm -f conftest.er1
7382  cat conftest.err >&5
7383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384  (exit $ac_status); } &&
7385	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7386  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7387  (eval $ac_try) 2>&5
7388  ac_status=$?
7389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390  (exit $ac_status); }; } &&
7391	 { ac_try='test -s conftest$ac_exeext'
7392  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7393  (eval $ac_try) 2>&5
7394  ac_status=$?
7395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396  (exit $ac_status); }; }; then
7397  eval "$as_ac_var=yes"
7398else
7399  echo "$as_me: failed program was:" >&5
7400sed 's/^/| /' conftest.$ac_ext >&5
7401
7402eval "$as_ac_var=no"
7403fi
7404rm -f conftest.err conftest.$ac_objext \
7405      conftest$ac_exeext conftest.$ac_ext
7406fi
7407echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7408echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7409if test `eval echo '${'$as_ac_var'}'` = yes; then
7410  cat >>confdefs.h <<_ACEOF
7411#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7412_ACEOF
7413
7414fi
7415done
7416
7417
7418
7419for ac_header in unistd.h vfork.h
7420do
7421as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7422if eval "test \"\${$as_ac_Header+set}\" = set"; then
7423  echo "$as_me:$LINENO: checking for $ac_header" >&5
7424echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7425if eval "test \"\${$as_ac_Header+set}\" = set"; then
7426  echo $ECHO_N "(cached) $ECHO_C" >&6
7427fi
7428echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7429echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7430else
7431  # Is the header compilable?
7432echo "$as_me:$LINENO: checking $ac_header usability" >&5
7433echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7434cat >conftest.$ac_ext <<_ACEOF
7435/* confdefs.h.  */
7436_ACEOF
7437cat confdefs.h >>conftest.$ac_ext
7438cat >>conftest.$ac_ext <<_ACEOF
7439/* end confdefs.h.  */
7440$ac_includes_default
7441#include <$ac_header>
7442_ACEOF
7443rm -f conftest.$ac_objext
7444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7445  (eval $ac_compile) 2>conftest.er1
7446  ac_status=$?
7447  grep -v '^ *+' conftest.er1 >conftest.err
7448  rm -f conftest.er1
7449  cat conftest.err >&5
7450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451  (exit $ac_status); } &&
7452	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7453  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7454  (eval $ac_try) 2>&5
7455  ac_status=$?
7456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457  (exit $ac_status); }; } &&
7458	 { ac_try='test -s conftest.$ac_objext'
7459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7460  (eval $ac_try) 2>&5
7461  ac_status=$?
7462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463  (exit $ac_status); }; }; then
7464  ac_header_compiler=yes
7465else
7466  echo "$as_me: failed program was:" >&5
7467sed 's/^/| /' conftest.$ac_ext >&5
7468
7469ac_header_compiler=no
7470fi
7471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7472echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7473echo "${ECHO_T}$ac_header_compiler" >&6
7474
7475# Is the header present?
7476echo "$as_me:$LINENO: checking $ac_header presence" >&5
7477echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7478cat >conftest.$ac_ext <<_ACEOF
7479/* confdefs.h.  */
7480_ACEOF
7481cat confdefs.h >>conftest.$ac_ext
7482cat >>conftest.$ac_ext <<_ACEOF
7483/* end confdefs.h.  */
7484#include <$ac_header>
7485_ACEOF
7486if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7487  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7488  ac_status=$?
7489  grep -v '^ *+' conftest.er1 >conftest.err
7490  rm -f conftest.er1
7491  cat conftest.err >&5
7492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493  (exit $ac_status); } >/dev/null; then
7494  if test -s conftest.err; then
7495    ac_cpp_err=$ac_c_preproc_warn_flag
7496    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7497  else
7498    ac_cpp_err=
7499  fi
7500else
7501  ac_cpp_err=yes
7502fi
7503if test -z "$ac_cpp_err"; then
7504  ac_header_preproc=yes
7505else
7506  echo "$as_me: failed program was:" >&5
7507sed 's/^/| /' conftest.$ac_ext >&5
7508
7509  ac_header_preproc=no
7510fi
7511rm -f conftest.err conftest.$ac_ext
7512echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7513echo "${ECHO_T}$ac_header_preproc" >&6
7514
7515# So?  What about this header?
7516case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7517  yes:no: )
7518    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7519echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7520    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7521echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7522    ac_header_preproc=yes
7523    ;;
7524  no:yes:* )
7525    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7526echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7527    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7528echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7529    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7530echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7531    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7532echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7533    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7534echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7535    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7536echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7537    (
7538      cat <<\_ASBOX
7539## -------------------------------- ##
7540## Report this to bug-bison@gnu.org ##
7541## -------------------------------- ##
7542_ASBOX
7543    ) |
7544      sed "s/^/$as_me: WARNING:     /" >&2
7545    ;;
7546esac
7547echo "$as_me:$LINENO: checking for $ac_header" >&5
7548echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7549if eval "test \"\${$as_ac_Header+set}\" = set"; then
7550  echo $ECHO_N "(cached) $ECHO_C" >&6
7551else
7552  eval "$as_ac_Header=\$ac_header_preproc"
7553fi
7554echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7555echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7556
7557fi
7558if test `eval echo '${'$as_ac_Header'}'` = yes; then
7559  cat >>confdefs.h <<_ACEOF
7560#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7561_ACEOF
7562
7563fi
7564
7565done
7566
7567
7568
7569for ac_func in fork vfork
7570do
7571as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7572echo "$as_me:$LINENO: checking for $ac_func" >&5
7573echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7574if eval "test \"\${$as_ac_var+set}\" = set"; then
7575  echo $ECHO_N "(cached) $ECHO_C" >&6
7576else
7577  cat >conftest.$ac_ext <<_ACEOF
7578/* confdefs.h.  */
7579_ACEOF
7580cat confdefs.h >>conftest.$ac_ext
7581cat >>conftest.$ac_ext <<_ACEOF
7582/* end confdefs.h.  */
7583/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7584   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7585#define $ac_func innocuous_$ac_func
7586
7587/* System header to define __stub macros and hopefully few prototypes,
7588    which can conflict with char $ac_func (); below.
7589    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7590    <limits.h> exists even on freestanding compilers.  */
7591
7592#ifdef __STDC__
7593# include <limits.h>
7594#else
7595# include <assert.h>
7596#endif
7597
7598#undef $ac_func
7599
7600/* Override any gcc2 internal prototype to avoid an error.  */
7601#ifdef __cplusplus
7602extern "C"
7603{
7604#endif
7605/* We use char because int might match the return type of a gcc2
7606   builtin and then its argument prototype would still apply.  */
7607char $ac_func ();
7608/* The GNU C library defines this for functions which it implements
7609    to always fail with ENOSYS.  Some functions are actually named
7610    something starting with __ and the normal name is an alias.  */
7611#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7612choke me
7613#else
7614char (*f) () = $ac_func;
7615#endif
7616#ifdef __cplusplus
7617}
7618#endif
7619
7620int
7621main ()
7622{
7623return f != $ac_func;
7624  ;
7625  return 0;
7626}
7627_ACEOF
7628rm -f conftest.$ac_objext conftest$ac_exeext
7629if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7630  (eval $ac_link) 2>conftest.er1
7631  ac_status=$?
7632  grep -v '^ *+' conftest.er1 >conftest.err
7633  rm -f conftest.er1
7634  cat conftest.err >&5
7635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636  (exit $ac_status); } &&
7637	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7638  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7639  (eval $ac_try) 2>&5
7640  ac_status=$?
7641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642  (exit $ac_status); }; } &&
7643	 { ac_try='test -s conftest$ac_exeext'
7644  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7645  (eval $ac_try) 2>&5
7646  ac_status=$?
7647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648  (exit $ac_status); }; }; then
7649  eval "$as_ac_var=yes"
7650else
7651  echo "$as_me: failed program was:" >&5
7652sed 's/^/| /' conftest.$ac_ext >&5
7653
7654eval "$as_ac_var=no"
7655fi
7656rm -f conftest.err conftest.$ac_objext \
7657      conftest$ac_exeext conftest.$ac_ext
7658fi
7659echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7660echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7661if test `eval echo '${'$as_ac_var'}'` = yes; then
7662  cat >>confdefs.h <<_ACEOF
7663#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7664_ACEOF
7665
7666fi
7667done
7668
7669if test "x$ac_cv_func_fork" = xyes; then
7670  echo "$as_me:$LINENO: checking for working fork" >&5
7671echo $ECHO_N "checking for working fork... $ECHO_C" >&6
7672if test "${ac_cv_func_fork_works+set}" = set; then
7673  echo $ECHO_N "(cached) $ECHO_C" >&6
7674else
7675  if test "$cross_compiling" = yes; then
7676  ac_cv_func_fork_works=cross
7677else
7678  cat >conftest.$ac_ext <<_ACEOF
7679/* By Ruediger Kuhlmann. */
7680      #include <sys/types.h>
7681      #if HAVE_UNISTD_H
7682      # include <unistd.h>
7683      #endif
7684      /* Some systems only have a dummy stub for fork() */
7685      int main ()
7686      {
7687	if (fork() < 0)
7688	  exit (1);
7689	exit (0);
7690      }
7691_ACEOF
7692rm -f conftest$ac_exeext
7693if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7694  (eval $ac_link) 2>&5
7695  ac_status=$?
7696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7698  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7699  (eval $ac_try) 2>&5
7700  ac_status=$?
7701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702  (exit $ac_status); }; }; then
7703  ac_cv_func_fork_works=yes
7704else
7705  echo "$as_me: program exited with status $ac_status" >&5
7706echo "$as_me: failed program was:" >&5
7707sed 's/^/| /' conftest.$ac_ext >&5
7708
7709( exit $ac_status )
7710ac_cv_func_fork_works=no
7711fi
7712rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7713fi
7714fi
7715echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7716echo "${ECHO_T}$ac_cv_func_fork_works" >&6
7717
7718else
7719  ac_cv_func_fork_works=$ac_cv_func_fork
7720fi
7721if test "x$ac_cv_func_fork_works" = xcross; then
7722  case $host in
7723    *-*-amigaos* | *-*-msdosdjgpp*)
7724      # Override, as these systems have only a dummy fork() stub
7725      ac_cv_func_fork_works=no
7726      ;;
7727    *)
7728      ac_cv_func_fork_works=yes
7729      ;;
7730  esac
7731  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7732echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7733fi
7734ac_cv_func_vfork_works=$ac_cv_func_vfork
7735if test "x$ac_cv_func_vfork" = xyes; then
7736  echo "$as_me:$LINENO: checking for working vfork" >&5
7737echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
7738if test "${ac_cv_func_vfork_works+set}" = set; then
7739  echo $ECHO_N "(cached) $ECHO_C" >&6
7740else
7741  if test "$cross_compiling" = yes; then
7742  ac_cv_func_vfork_works=cross
7743else
7744  cat >conftest.$ac_ext <<_ACEOF
7745/* confdefs.h.  */
7746_ACEOF
7747cat confdefs.h >>conftest.$ac_ext
7748cat >>conftest.$ac_ext <<_ACEOF
7749/* end confdefs.h.  */
7750/* Thanks to Paul Eggert for this test.  */
7751#include <stdio.h>
7752#include <stdlib.h>
7753#include <sys/types.h>
7754#include <sys/stat.h>
7755#include <sys/wait.h>
7756#if HAVE_UNISTD_H
7757# include <unistd.h>
7758#endif
7759#if HAVE_VFORK_H
7760# include <vfork.h>
7761#endif
7762/* On some sparc systems, changes by the child to local and incoming
7763   argument registers are propagated back to the parent.  The compiler
7764   is told about this with #include <vfork.h>, but some compilers
7765   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
7766   static variable whose address is put into a register that is
7767   clobbered by the vfork.  */
7768static void
7769#ifdef __cplusplus
7770sparc_address_test (int arg)
7771# else
7772sparc_address_test (arg) int arg;
7773#endif
7774{
7775  static pid_t child;
7776  if (!child) {
7777    child = vfork ();
7778    if (child < 0) {
7779      perror ("vfork");
7780      _exit(2);
7781    }
7782    if (!child) {
7783      arg = getpid();
7784      write(-1, "", 0);
7785      _exit (arg);
7786    }
7787  }
7788}
7789
7790int
7791main ()
7792{
7793  pid_t parent = getpid ();
7794  pid_t child;
7795
7796  sparc_address_test (0);
7797
7798  child = vfork ();
7799
7800  if (child == 0) {
7801    /* Here is another test for sparc vfork register problems.  This
7802       test uses lots of local variables, at least as many local
7803       variables as main has allocated so far including compiler
7804       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
7805       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
7806       reuse the register of parent for one of the local variables,
7807       since it will think that parent can't possibly be used any more
7808       in this routine.  Assigning to the local variable will thus
7809       munge parent in the parent process.  */
7810    pid_t
7811      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7812      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7813    /* Convince the compiler that p..p7 are live; otherwise, it might
7814       use the same hardware register for all 8 local variables.  */
7815    if (p != p1 || p != p2 || p != p3 || p != p4
7816	|| p != p5 || p != p6 || p != p7)
7817      _exit(1);
7818
7819    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7820       from child file descriptors.  If the child closes a descriptor
7821       before it execs or exits, this munges the parent's descriptor
7822       as well.  Test for this by closing stdout in the child.  */
7823    _exit(close(fileno(stdout)) != 0);
7824  } else {
7825    int status;
7826    struct stat st;
7827
7828    while (wait(&status) != child)
7829      ;
7830    exit(
7831	 /* Was there some problem with vforking?  */
7832	 child < 0
7833
7834	 /* Did the child fail?  (This shouldn't happen.)  */
7835	 || status
7836
7837	 /* Did the vfork/compiler bug occur?  */
7838	 || parent != getpid()
7839
7840	 /* Did the file descriptor bug occur?  */
7841	 || fstat(fileno(stdout), &st) != 0
7842	 );
7843  }
7844}
7845_ACEOF
7846rm -f conftest$ac_exeext
7847if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7848  (eval $ac_link) 2>&5
7849  ac_status=$?
7850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7852  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7853  (eval $ac_try) 2>&5
7854  ac_status=$?
7855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856  (exit $ac_status); }; }; then
7857  ac_cv_func_vfork_works=yes
7858else
7859  echo "$as_me: program exited with status $ac_status" >&5
7860echo "$as_me: failed program was:" >&5
7861sed 's/^/| /' conftest.$ac_ext >&5
7862
7863( exit $ac_status )
7864ac_cv_func_vfork_works=no
7865fi
7866rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7867fi
7868fi
7869echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7870echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
7871
7872fi;
7873if test "x$ac_cv_func_fork_works" = xcross; then
7874  ac_cv_func_vfork_works=$ac_cv_func_vfork
7875  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7876echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7877fi
7878
7879if test "x$ac_cv_func_vfork_works" = xyes; then
7880
7881cat >>confdefs.h <<\_ACEOF
7882#define HAVE_WORKING_VFORK 1
7883_ACEOF
7884
7885else
7886
7887cat >>confdefs.h <<\_ACEOF
7888#define vfork fork
7889_ACEOF
7890
7891fi
7892if test "x$ac_cv_func_fork_works" = xyes; then
7893
7894cat >>confdefs.h <<\_ACEOF
7895#define HAVE_WORKING_FORK 1
7896_ACEOF
7897
7898fi
7899
7900
7901
7902
7903for ac_header in sys/time.h sys/times.h
7904do
7905as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7906if eval "test \"\${$as_ac_Header+set}\" = set"; then
7907  echo "$as_me:$LINENO: checking for $ac_header" >&5
7908echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7909if eval "test \"\${$as_ac_Header+set}\" = set"; then
7910  echo $ECHO_N "(cached) $ECHO_C" >&6
7911fi
7912echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7913echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7914else
7915  # Is the header compilable?
7916echo "$as_me:$LINENO: checking $ac_header usability" >&5
7917echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7918cat >conftest.$ac_ext <<_ACEOF
7919/* confdefs.h.  */
7920_ACEOF
7921cat confdefs.h >>conftest.$ac_ext
7922cat >>conftest.$ac_ext <<_ACEOF
7923/* end confdefs.h.  */
7924$ac_includes_default
7925#include <$ac_header>
7926_ACEOF
7927rm -f conftest.$ac_objext
7928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7929  (eval $ac_compile) 2>conftest.er1
7930  ac_status=$?
7931  grep -v '^ *+' conftest.er1 >conftest.err
7932  rm -f conftest.er1
7933  cat conftest.err >&5
7934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935  (exit $ac_status); } &&
7936	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7937  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7938  (eval $ac_try) 2>&5
7939  ac_status=$?
7940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941  (exit $ac_status); }; } &&
7942	 { ac_try='test -s conftest.$ac_objext'
7943  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7944  (eval $ac_try) 2>&5
7945  ac_status=$?
7946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947  (exit $ac_status); }; }; then
7948  ac_header_compiler=yes
7949else
7950  echo "$as_me: failed program was:" >&5
7951sed 's/^/| /' conftest.$ac_ext >&5
7952
7953ac_header_compiler=no
7954fi
7955rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7956echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7957echo "${ECHO_T}$ac_header_compiler" >&6
7958
7959# Is the header present?
7960echo "$as_me:$LINENO: checking $ac_header presence" >&5
7961echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7962cat >conftest.$ac_ext <<_ACEOF
7963/* confdefs.h.  */
7964_ACEOF
7965cat confdefs.h >>conftest.$ac_ext
7966cat >>conftest.$ac_ext <<_ACEOF
7967/* end confdefs.h.  */
7968#include <$ac_header>
7969_ACEOF
7970if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7971  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7972  ac_status=$?
7973  grep -v '^ *+' conftest.er1 >conftest.err
7974  rm -f conftest.er1
7975  cat conftest.err >&5
7976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977  (exit $ac_status); } >/dev/null; then
7978  if test -s conftest.err; then
7979    ac_cpp_err=$ac_c_preproc_warn_flag
7980    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7981  else
7982    ac_cpp_err=
7983  fi
7984else
7985  ac_cpp_err=yes
7986fi
7987if test -z "$ac_cpp_err"; then
7988  ac_header_preproc=yes
7989else
7990  echo "$as_me: failed program was:" >&5
7991sed 's/^/| /' conftest.$ac_ext >&5
7992
7993  ac_header_preproc=no
7994fi
7995rm -f conftest.err conftest.$ac_ext
7996echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7997echo "${ECHO_T}$ac_header_preproc" >&6
7998
7999# So?  What about this header?
8000case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8001  yes:no: )
8002    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8003echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8004    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8005echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8006    ac_header_preproc=yes
8007    ;;
8008  no:yes:* )
8009    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8010echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8011    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8012echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8013    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8014echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8015    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8016echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8017    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8018echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8019    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8020echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8021    (
8022      cat <<\_ASBOX
8023## -------------------------------- ##
8024## Report this to bug-bison@gnu.org ##
8025## -------------------------------- ##
8026_ASBOX
8027    ) |
8028      sed "s/^/$as_me: WARNING:     /" >&2
8029    ;;
8030esac
8031echo "$as_me:$LINENO: checking for $ac_header" >&5
8032echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8033if eval "test \"\${$as_ac_Header+set}\" = set"; then
8034  echo $ECHO_N "(cached) $ECHO_C" >&6
8035else
8036  eval "$as_ac_Header=\$ac_header_preproc"
8037fi
8038echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8039echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8040
8041fi
8042if test `eval echo '${'$as_ac_Header'}'` = yes; then
8043  cat >>confdefs.h <<_ACEOF
8044#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8045_ACEOF
8046
8047fi
8048
8049done
8050
8051
8052for ac_header in sys/resource.h
8053do
8054as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8055echo "$as_me:$LINENO: checking for $ac_header" >&5
8056echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8057if eval "test \"\${$as_ac_Header+set}\" = set"; then
8058  echo $ECHO_N "(cached) $ECHO_C" >&6
8059else
8060  cat >conftest.$ac_ext <<_ACEOF
8061/* confdefs.h.  */
8062_ACEOF
8063cat confdefs.h >>conftest.$ac_ext
8064cat >>conftest.$ac_ext <<_ACEOF
8065/* end confdefs.h.  */
8066$ac_includes_default
8067#if HAVE_SYS_TIME_H
8068# include <sys/time.h>
8069#endif
8070#ifdef HAVE_SYS_TIMES_H
8071# include <sys/times.h>
8072#endif
8073
8074
8075#include <$ac_header>
8076_ACEOF
8077rm -f conftest.$ac_objext
8078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8079  (eval $ac_compile) 2>conftest.er1
8080  ac_status=$?
8081  grep -v '^ *+' conftest.er1 >conftest.err
8082  rm -f conftest.er1
8083  cat conftest.err >&5
8084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085  (exit $ac_status); } &&
8086	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8087  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8088  (eval $ac_try) 2>&5
8089  ac_status=$?
8090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091  (exit $ac_status); }; } &&
8092	 { ac_try='test -s conftest.$ac_objext'
8093  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8094  (eval $ac_try) 2>&5
8095  ac_status=$?
8096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097  (exit $ac_status); }; }; then
8098  eval "$as_ac_Header=yes"
8099else
8100  echo "$as_me: failed program was:" >&5
8101sed 's/^/| /' conftest.$ac_ext >&5
8102
8103eval "$as_ac_Header=no"
8104fi
8105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8106fi
8107echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8108echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8109if test `eval echo '${'$as_ac_Header'}'` = yes; then
8110  cat >>confdefs.h <<_ACEOF
8111#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8112_ACEOF
8113
8114fi
8115
8116done
8117
8118
8119for ac_func in times
8120do
8121as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8122echo "$as_me:$LINENO: checking for $ac_func" >&5
8123echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8124if eval "test \"\${$as_ac_var+set}\" = set"; then
8125  echo $ECHO_N "(cached) $ECHO_C" >&6
8126else
8127  cat >conftest.$ac_ext <<_ACEOF
8128/* confdefs.h.  */
8129_ACEOF
8130cat confdefs.h >>conftest.$ac_ext
8131cat >>conftest.$ac_ext <<_ACEOF
8132/* end confdefs.h.  */
8133/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8134   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8135#define $ac_func innocuous_$ac_func
8136
8137/* System header to define __stub macros and hopefully few prototypes,
8138    which can conflict with char $ac_func (); below.
8139    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8140    <limits.h> exists even on freestanding compilers.  */
8141
8142#ifdef __STDC__
8143# include <limits.h>
8144#else
8145# include <assert.h>
8146#endif
8147
8148#undef $ac_func
8149
8150/* Override any gcc2 internal prototype to avoid an error.  */
8151#ifdef __cplusplus
8152extern "C"
8153{
8154#endif
8155/* We use char because int might match the return type of a gcc2
8156   builtin and then its argument prototype would still apply.  */
8157char $ac_func ();
8158/* The GNU C library defines this for functions which it implements
8159    to always fail with ENOSYS.  Some functions are actually named
8160    something starting with __ and the normal name is an alias.  */
8161#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8162choke me
8163#else
8164char (*f) () = $ac_func;
8165#endif
8166#ifdef __cplusplus
8167}
8168#endif
8169
8170int
8171main ()
8172{
8173return f != $ac_func;
8174  ;
8175  return 0;
8176}
8177_ACEOF
8178rm -f conftest.$ac_objext conftest$ac_exeext
8179if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8180  (eval $ac_link) 2>conftest.er1
8181  ac_status=$?
8182  grep -v '^ *+' conftest.er1 >conftest.err
8183  rm -f conftest.er1
8184  cat conftest.err >&5
8185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186  (exit $ac_status); } &&
8187	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8188  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8189  (eval $ac_try) 2>&5
8190  ac_status=$?
8191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192  (exit $ac_status); }; } &&
8193	 { ac_try='test -s conftest$ac_exeext'
8194  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8195  (eval $ac_try) 2>&5
8196  ac_status=$?
8197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198  (exit $ac_status); }; }; then
8199  eval "$as_ac_var=yes"
8200else
8201  echo "$as_me: failed program was:" >&5
8202sed 's/^/| /' conftest.$ac_ext >&5
8203
8204eval "$as_ac_var=no"
8205fi
8206rm -f conftest.err conftest.$ac_objext \
8207      conftest$ac_exeext conftest.$ac_ext
8208fi
8209echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8210echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8211if test `eval echo '${'$as_ac_var'}'` = yes; then
8212  cat >>confdefs.h <<_ACEOF
8213#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8214_ACEOF
8215
8216fi
8217done
8218
8219
8220echo "$as_me:$LINENO: checking whether getrusage is declared" >&5
8221echo $ECHO_N "checking whether getrusage is declared... $ECHO_C" >&6
8222if test "${ac_cv_have_decl_getrusage+set}" = set; then
8223  echo $ECHO_N "(cached) $ECHO_C" >&6
8224else
8225  cat >conftest.$ac_ext <<_ACEOF
8226/* confdefs.h.  */
8227_ACEOF
8228cat confdefs.h >>conftest.$ac_ext
8229cat >>conftest.$ac_ext <<_ACEOF
8230/* end confdefs.h.  */
8231$ac_includes_default
8232#if HAVE_SYS_TIME_H
8233# include <sys/time.h>
8234#endif
8235#if HAVE_SYS_TIMES_H
8236# include <sys/times.h>
8237#endif
8238#if HAVE_SYS_RESOURCE_H
8239# include <sys/resource.h>
8240#endif
8241
8242
8243int
8244main ()
8245{
8246#ifndef getrusage
8247  char *p = (char *) getrusage;
8248#endif
8249
8250  ;
8251  return 0;
8252}
8253_ACEOF
8254rm -f conftest.$ac_objext
8255if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8256  (eval $ac_compile) 2>conftest.er1
8257  ac_status=$?
8258  grep -v '^ *+' conftest.er1 >conftest.err
8259  rm -f conftest.er1
8260  cat conftest.err >&5
8261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262  (exit $ac_status); } &&
8263	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8264  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8265  (eval $ac_try) 2>&5
8266  ac_status=$?
8267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268  (exit $ac_status); }; } &&
8269	 { ac_try='test -s conftest.$ac_objext'
8270  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8271  (eval $ac_try) 2>&5
8272  ac_status=$?
8273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274  (exit $ac_status); }; }; then
8275  ac_cv_have_decl_getrusage=yes
8276else
8277  echo "$as_me: failed program was:" >&5
8278sed 's/^/| /' conftest.$ac_ext >&5
8279
8280ac_cv_have_decl_getrusage=no
8281fi
8282rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8283fi
8284echo "$as_me:$LINENO: result: $ac_cv_have_decl_getrusage" >&5
8285echo "${ECHO_T}$ac_cv_have_decl_getrusage" >&6
8286if test $ac_cv_have_decl_getrusage = yes; then
8287
8288cat >>confdefs.h <<_ACEOF
8289#define HAVE_DECL_GETRUSAGE 1
8290_ACEOF
8291
8292
8293else
8294  cat >>confdefs.h <<_ACEOF
8295#define HAVE_DECL_GETRUSAGE 0
8296_ACEOF
8297
8298
8299fi
8300echo "$as_me:$LINENO: checking whether times is declared" >&5
8301echo $ECHO_N "checking whether times is declared... $ECHO_C" >&6
8302if test "${ac_cv_have_decl_times+set}" = set; then
8303  echo $ECHO_N "(cached) $ECHO_C" >&6
8304else
8305  cat >conftest.$ac_ext <<_ACEOF
8306/* confdefs.h.  */
8307_ACEOF
8308cat confdefs.h >>conftest.$ac_ext
8309cat >>conftest.$ac_ext <<_ACEOF
8310/* end confdefs.h.  */
8311$ac_includes_default
8312#if HAVE_SYS_TIME_H
8313# include <sys/time.h>
8314#endif
8315#if HAVE_SYS_TIMES_H
8316# include <sys/times.h>
8317#endif
8318#if HAVE_SYS_RESOURCE_H
8319# include <sys/resource.h>
8320#endif
8321
8322
8323int
8324main ()
8325{
8326#ifndef times
8327  char *p = (char *) times;
8328#endif
8329
8330  ;
8331  return 0;
8332}
8333_ACEOF
8334rm -f conftest.$ac_objext
8335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8336  (eval $ac_compile) 2>conftest.er1
8337  ac_status=$?
8338  grep -v '^ *+' conftest.er1 >conftest.err
8339  rm -f conftest.er1
8340  cat conftest.err >&5
8341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342  (exit $ac_status); } &&
8343	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8344  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8345  (eval $ac_try) 2>&5
8346  ac_status=$?
8347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348  (exit $ac_status); }; } &&
8349	 { ac_try='test -s conftest.$ac_objext'
8350  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8351  (eval $ac_try) 2>&5
8352  ac_status=$?
8353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354  (exit $ac_status); }; }; then
8355  ac_cv_have_decl_times=yes
8356else
8357  echo "$as_me: failed program was:" >&5
8358sed 's/^/| /' conftest.$ac_ext >&5
8359
8360ac_cv_have_decl_times=no
8361fi
8362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8363fi
8364echo "$as_me:$LINENO: result: $ac_cv_have_decl_times" >&5
8365echo "${ECHO_T}$ac_cv_have_decl_times" >&6
8366if test $ac_cv_have_decl_times = yes; then
8367
8368cat >>confdefs.h <<_ACEOF
8369#define HAVE_DECL_TIMES 1
8370_ACEOF
8371
8372
8373else
8374  cat >>confdefs.h <<_ACEOF
8375#define HAVE_DECL_TIMES 0
8376_ACEOF
8377
8378
8379fi
8380echo "$as_me:$LINENO: checking whether clock is declared" >&5
8381echo $ECHO_N "checking whether clock is declared... $ECHO_C" >&6
8382if test "${ac_cv_have_decl_clock+set}" = set; then
8383  echo $ECHO_N "(cached) $ECHO_C" >&6
8384else
8385  cat >conftest.$ac_ext <<_ACEOF
8386/* confdefs.h.  */
8387_ACEOF
8388cat confdefs.h >>conftest.$ac_ext
8389cat >>conftest.$ac_ext <<_ACEOF
8390/* end confdefs.h.  */
8391$ac_includes_default
8392#if HAVE_SYS_TIME_H
8393# include <sys/time.h>
8394#endif
8395#if HAVE_SYS_TIMES_H
8396# include <sys/times.h>
8397#endif
8398#if HAVE_SYS_RESOURCE_H
8399# include <sys/resource.h>
8400#endif
8401
8402
8403int
8404main ()
8405{
8406#ifndef clock
8407  char *p = (char *) clock;
8408#endif
8409
8410  ;
8411  return 0;
8412}
8413_ACEOF
8414rm -f conftest.$ac_objext
8415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8416  (eval $ac_compile) 2>conftest.er1
8417  ac_status=$?
8418  grep -v '^ *+' conftest.er1 >conftest.err
8419  rm -f conftest.er1
8420  cat conftest.err >&5
8421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422  (exit $ac_status); } &&
8423	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8424  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8425  (eval $ac_try) 2>&5
8426  ac_status=$?
8427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428  (exit $ac_status); }; } &&
8429	 { ac_try='test -s conftest.$ac_objext'
8430  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8431  (eval $ac_try) 2>&5
8432  ac_status=$?
8433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434  (exit $ac_status); }; }; then
8435  ac_cv_have_decl_clock=yes
8436else
8437  echo "$as_me: failed program was:" >&5
8438sed 's/^/| /' conftest.$ac_ext >&5
8439
8440ac_cv_have_decl_clock=no
8441fi
8442rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8443fi
8444echo "$as_me:$LINENO: result: $ac_cv_have_decl_clock" >&5
8445echo "${ECHO_T}$ac_cv_have_decl_clock" >&6
8446if test $ac_cv_have_decl_clock = yes; then
8447
8448cat >>confdefs.h <<_ACEOF
8449#define HAVE_DECL_CLOCK 1
8450_ACEOF
8451
8452
8453else
8454  cat >>confdefs.h <<_ACEOF
8455#define HAVE_DECL_CLOCK 0
8456_ACEOF
8457
8458
8459fi
8460echo "$as_me:$LINENO: checking whether sysconf is declared" >&5
8461echo $ECHO_N "checking whether sysconf is declared... $ECHO_C" >&6
8462if test "${ac_cv_have_decl_sysconf+set}" = set; then
8463  echo $ECHO_N "(cached) $ECHO_C" >&6
8464else
8465  cat >conftest.$ac_ext <<_ACEOF
8466/* confdefs.h.  */
8467_ACEOF
8468cat confdefs.h >>conftest.$ac_ext
8469cat >>conftest.$ac_ext <<_ACEOF
8470/* end confdefs.h.  */
8471$ac_includes_default
8472#if HAVE_SYS_TIME_H
8473# include <sys/time.h>
8474#endif
8475#if HAVE_SYS_TIMES_H
8476# include <sys/times.h>
8477#endif
8478#if HAVE_SYS_RESOURCE_H
8479# include <sys/resource.h>
8480#endif
8481
8482
8483int
8484main ()
8485{
8486#ifndef sysconf
8487  char *p = (char *) sysconf;
8488#endif
8489
8490  ;
8491  return 0;
8492}
8493_ACEOF
8494rm -f conftest.$ac_objext
8495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8496  (eval $ac_compile) 2>conftest.er1
8497  ac_status=$?
8498  grep -v '^ *+' conftest.er1 >conftest.err
8499  rm -f conftest.er1
8500  cat conftest.err >&5
8501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502  (exit $ac_status); } &&
8503	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8504  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8505  (eval $ac_try) 2>&5
8506  ac_status=$?
8507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508  (exit $ac_status); }; } &&
8509	 { ac_try='test -s conftest.$ac_objext'
8510  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8511  (eval $ac_try) 2>&5
8512  ac_status=$?
8513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514  (exit $ac_status); }; }; then
8515  ac_cv_have_decl_sysconf=yes
8516else
8517  echo "$as_me: failed program was:" >&5
8518sed 's/^/| /' conftest.$ac_ext >&5
8519
8520ac_cv_have_decl_sysconf=no
8521fi
8522rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8523fi
8524echo "$as_me:$LINENO: result: $ac_cv_have_decl_sysconf" >&5
8525echo "${ECHO_T}$ac_cv_have_decl_sysconf" >&6
8526if test $ac_cv_have_decl_sysconf = yes; then
8527
8528cat >>confdefs.h <<_ACEOF
8529#define HAVE_DECL_SYSCONF 1
8530_ACEOF
8531
8532
8533else
8534  cat >>confdefs.h <<_ACEOF
8535#define HAVE_DECL_SYSCONF 0
8536_ACEOF
8537
8538
8539fi
8540
8541
8542
8543echo "$as_me:$LINENO: checking for clock_t" >&5
8544echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
8545if test "${ac_cv_type_clock_t+set}" = set; then
8546  echo $ECHO_N "(cached) $ECHO_C" >&6
8547else
8548  cat >conftest.$ac_ext <<_ACEOF
8549/* confdefs.h.  */
8550_ACEOF
8551cat confdefs.h >>conftest.$ac_ext
8552cat >>conftest.$ac_ext <<_ACEOF
8553/* end confdefs.h.  */
8554$ac_includes_default
8555#if HAVE_SYS_TIME_H
8556# include <sys/time.h>
8557#endif
8558#if HAVE_SYS_TIMES_H
8559# include <sys/times.h>
8560#endif
8561#if HAVE_SYS_RESOURCE_H
8562# include <sys/resource.h>
8563#endif
8564
8565
8566int
8567main ()
8568{
8569if ((clock_t *) 0)
8570  return 0;
8571if (sizeof (clock_t))
8572  return 0;
8573  ;
8574  return 0;
8575}
8576_ACEOF
8577rm -f conftest.$ac_objext
8578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8579  (eval $ac_compile) 2>conftest.er1
8580  ac_status=$?
8581  grep -v '^ *+' conftest.er1 >conftest.err
8582  rm -f conftest.er1
8583  cat conftest.err >&5
8584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585  (exit $ac_status); } &&
8586	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8587  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8588  (eval $ac_try) 2>&5
8589  ac_status=$?
8590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591  (exit $ac_status); }; } &&
8592	 { ac_try='test -s conftest.$ac_objext'
8593  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8594  (eval $ac_try) 2>&5
8595  ac_status=$?
8596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597  (exit $ac_status); }; }; then
8598  ac_cv_type_clock_t=yes
8599else
8600  echo "$as_me: failed program was:" >&5
8601sed 's/^/| /' conftest.$ac_ext >&5
8602
8603ac_cv_type_clock_t=no
8604fi
8605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8606fi
8607echo "$as_me:$LINENO: result: $ac_cv_type_clock_t" >&5
8608echo "${ECHO_T}$ac_cv_type_clock_t" >&6
8609if test $ac_cv_type_clock_t = yes; then
8610
8611cat >>confdefs.h <<_ACEOF
8612#define HAVE_CLOCK_T 1
8613_ACEOF
8614
8615
8616fi
8617echo "$as_me:$LINENO: checking for struct tms" >&5
8618echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
8619if test "${ac_cv_type_struct_tms+set}" = set; then
8620  echo $ECHO_N "(cached) $ECHO_C" >&6
8621else
8622  cat >conftest.$ac_ext <<_ACEOF
8623/* confdefs.h.  */
8624_ACEOF
8625cat confdefs.h >>conftest.$ac_ext
8626cat >>conftest.$ac_ext <<_ACEOF
8627/* end confdefs.h.  */
8628$ac_includes_default
8629#if HAVE_SYS_TIME_H
8630# include <sys/time.h>
8631#endif
8632#if HAVE_SYS_TIMES_H
8633# include <sys/times.h>
8634#endif
8635#if HAVE_SYS_RESOURCE_H
8636# include <sys/resource.h>
8637#endif
8638
8639
8640int
8641main ()
8642{
8643if ((struct tms *) 0)
8644  return 0;
8645if (sizeof (struct tms))
8646  return 0;
8647  ;
8648  return 0;
8649}
8650_ACEOF
8651rm -f conftest.$ac_objext
8652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8653  (eval $ac_compile) 2>conftest.er1
8654  ac_status=$?
8655  grep -v '^ *+' conftest.er1 >conftest.err
8656  rm -f conftest.er1
8657  cat conftest.err >&5
8658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659  (exit $ac_status); } &&
8660	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8661  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8662  (eval $ac_try) 2>&5
8663  ac_status=$?
8664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665  (exit $ac_status); }; } &&
8666	 { ac_try='test -s conftest.$ac_objext'
8667  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8668  (eval $ac_try) 2>&5
8669  ac_status=$?
8670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671  (exit $ac_status); }; }; then
8672  ac_cv_type_struct_tms=yes
8673else
8674  echo "$as_me: failed program was:" >&5
8675sed 's/^/| /' conftest.$ac_ext >&5
8676
8677ac_cv_type_struct_tms=no
8678fi
8679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8680fi
8681echo "$as_me:$LINENO: result: $ac_cv_type_struct_tms" >&5
8682echo "${ECHO_T}$ac_cv_type_struct_tms" >&6
8683if test $ac_cv_type_struct_tms = yes; then
8684
8685cat >>confdefs.h <<_ACEOF
8686#define HAVE_STRUCT_TMS 1
8687_ACEOF
8688
8689
8690fi
8691
8692
8693
8694# gnulib and gettext.
8695
8696    echo "$as_me:$LINENO: checking whether system is Windows or MSDOS" >&5
8697echo $ECHO_N "checking whether system is Windows or MSDOS... $ECHO_C" >&6
8698if test "${ac_cv_win_or_dos+set}" = set; then
8699  echo $ECHO_N "(cached) $ECHO_C" >&6
8700else
8701
8702        cat >conftest.$ac_ext <<_ACEOF
8703/* confdefs.h.  */
8704_ACEOF
8705cat confdefs.h >>conftest.$ac_ext
8706cat >>conftest.$ac_ext <<_ACEOF
8707/* end confdefs.h.  */
8708
8709int
8710main ()
8711{
8712#if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__
8713neither MSDOS nor Windows
8714#endif
8715  ;
8716  return 0;
8717}
8718_ACEOF
8719rm -f conftest.$ac_objext
8720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8721  (eval $ac_compile) 2>conftest.er1
8722  ac_status=$?
8723  grep -v '^ *+' conftest.er1 >conftest.err
8724  rm -f conftest.er1
8725  cat conftest.err >&5
8726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727  (exit $ac_status); } &&
8728	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8729  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8730  (eval $ac_try) 2>&5
8731  ac_status=$?
8732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733  (exit $ac_status); }; } &&
8734	 { ac_try='test -s conftest.$ac_objext'
8735  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8736  (eval $ac_try) 2>&5
8737  ac_status=$?
8738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739  (exit $ac_status); }; }; then
8740  ac_cv_win_or_dos=yes
8741else
8742  echo "$as_me: failed program was:" >&5
8743sed 's/^/| /' conftest.$ac_ext >&5
8744
8745ac_cv_win_or_dos=no
8746fi
8747rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8748
8749fi
8750echo "$as_me:$LINENO: result: $ac_cv_win_or_dos" >&5
8751echo "${ECHO_T}$ac_cv_win_or_dos" >&6
8752
8753    if test x"$ac_cv_win_or_dos" = xyes; then
8754      ac_fs_accepts_drive_letter_prefix=1
8755      ac_fs_backslash_is_file_name_separator=1
8756    else
8757      ac_fs_accepts_drive_letter_prefix=0
8758      ac_fs_backslash_is_file_name_separator=0
8759    fi
8760
8761
8762
8763
8764
8765cat >>confdefs.h <<_ACEOF
8766#define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
8767_ACEOF
8768
8769
8770
8771
8772
8773
8774cat >>confdefs.h <<_ACEOF
8775#define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
8776_ACEOF
8777
8778
8779echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
8780echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
8781if test "${ac_cv_have_decl_strerror_r+set}" = set; then
8782  echo $ECHO_N "(cached) $ECHO_C" >&6
8783else
8784  cat >conftest.$ac_ext <<_ACEOF
8785/* confdefs.h.  */
8786_ACEOF
8787cat confdefs.h >>conftest.$ac_ext
8788cat >>conftest.$ac_ext <<_ACEOF
8789/* end confdefs.h.  */
8790$ac_includes_default
8791int
8792main ()
8793{
8794#ifndef strerror_r
8795  char *p = (char *) strerror_r;
8796#endif
8797
8798  ;
8799  return 0;
8800}
8801_ACEOF
8802rm -f conftest.$ac_objext
8803if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8804  (eval $ac_compile) 2>conftest.er1
8805  ac_status=$?
8806  grep -v '^ *+' conftest.er1 >conftest.err
8807  rm -f conftest.er1
8808  cat conftest.err >&5
8809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810  (exit $ac_status); } &&
8811	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8812  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8813  (eval $ac_try) 2>&5
8814  ac_status=$?
8815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816  (exit $ac_status); }; } &&
8817	 { ac_try='test -s conftest.$ac_objext'
8818  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8819  (eval $ac_try) 2>&5
8820  ac_status=$?
8821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822  (exit $ac_status); }; }; then
8823  ac_cv_have_decl_strerror_r=yes
8824else
8825  echo "$as_me: failed program was:" >&5
8826sed 's/^/| /' conftest.$ac_ext >&5
8827
8828ac_cv_have_decl_strerror_r=no
8829fi
8830rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8831fi
8832echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
8833echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
8834if test $ac_cv_have_decl_strerror_r = yes; then
8835
8836cat >>confdefs.h <<_ACEOF
8837#define HAVE_DECL_STRERROR_R 1
8838_ACEOF
8839
8840
8841else
8842  cat >>confdefs.h <<_ACEOF
8843#define HAVE_DECL_STRERROR_R 0
8844_ACEOF
8845
8846
8847fi
8848
8849
8850
8851for ac_func in strerror_r
8852do
8853as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8854echo "$as_me:$LINENO: checking for $ac_func" >&5
8855echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8856if eval "test \"\${$as_ac_var+set}\" = set"; then
8857  echo $ECHO_N "(cached) $ECHO_C" >&6
8858else
8859  cat >conftest.$ac_ext <<_ACEOF
8860/* confdefs.h.  */
8861_ACEOF
8862cat confdefs.h >>conftest.$ac_ext
8863cat >>conftest.$ac_ext <<_ACEOF
8864/* end confdefs.h.  */
8865/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8866   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8867#define $ac_func innocuous_$ac_func
8868
8869/* System header to define __stub macros and hopefully few prototypes,
8870    which can conflict with char $ac_func (); below.
8871    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8872    <limits.h> exists even on freestanding compilers.  */
8873
8874#ifdef __STDC__
8875# include <limits.h>
8876#else
8877# include <assert.h>
8878#endif
8879
8880#undef $ac_func
8881
8882/* Override any gcc2 internal prototype to avoid an error.  */
8883#ifdef __cplusplus
8884extern "C"
8885{
8886#endif
8887/* We use char because int might match the return type of a gcc2
8888   builtin and then its argument prototype would still apply.  */
8889char $ac_func ();
8890/* The GNU C library defines this for functions which it implements
8891    to always fail with ENOSYS.  Some functions are actually named
8892    something starting with __ and the normal name is an alias.  */
8893#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8894choke me
8895#else
8896char (*f) () = $ac_func;
8897#endif
8898#ifdef __cplusplus
8899}
8900#endif
8901
8902int
8903main ()
8904{
8905return f != $ac_func;
8906  ;
8907  return 0;
8908}
8909_ACEOF
8910rm -f conftest.$ac_objext conftest$ac_exeext
8911if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8912  (eval $ac_link) 2>conftest.er1
8913  ac_status=$?
8914  grep -v '^ *+' conftest.er1 >conftest.err
8915  rm -f conftest.er1
8916  cat conftest.err >&5
8917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918  (exit $ac_status); } &&
8919	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8920  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8921  (eval $ac_try) 2>&5
8922  ac_status=$?
8923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924  (exit $ac_status); }; } &&
8925	 { ac_try='test -s conftest$ac_exeext'
8926  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8927  (eval $ac_try) 2>&5
8928  ac_status=$?
8929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930  (exit $ac_status); }; }; then
8931  eval "$as_ac_var=yes"
8932else
8933  echo "$as_me: failed program was:" >&5
8934sed 's/^/| /' conftest.$ac_ext >&5
8935
8936eval "$as_ac_var=no"
8937fi
8938rm -f conftest.err conftest.$ac_objext \
8939      conftest$ac_exeext conftest.$ac_ext
8940fi
8941echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8942echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8943if test `eval echo '${'$as_ac_var'}'` = yes; then
8944  cat >>confdefs.h <<_ACEOF
8945#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8946_ACEOF
8947
8948fi
8949done
8950
8951echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
8952echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
8953if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
8954  echo $ECHO_N "(cached) $ECHO_C" >&6
8955else
8956
8957    ac_cv_func_strerror_r_char_p=no
8958    if test $ac_cv_have_decl_strerror_r = yes; then
8959      cat >conftest.$ac_ext <<_ACEOF
8960/* confdefs.h.  */
8961_ACEOF
8962cat confdefs.h >>conftest.$ac_ext
8963cat >>conftest.$ac_ext <<_ACEOF
8964/* end confdefs.h.  */
8965$ac_includes_default
8966int
8967main ()
8968{
8969
8970	  char buf[100];
8971	  char x = *strerror_r (0, buf, sizeof buf);
8972	  char *p = strerror_r (0, buf, sizeof buf);
8973
8974  ;
8975  return 0;
8976}
8977_ACEOF
8978rm -f conftest.$ac_objext
8979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8980  (eval $ac_compile) 2>conftest.er1
8981  ac_status=$?
8982  grep -v '^ *+' conftest.er1 >conftest.err
8983  rm -f conftest.er1
8984  cat conftest.err >&5
8985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986  (exit $ac_status); } &&
8987	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8988  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8989  (eval $ac_try) 2>&5
8990  ac_status=$?
8991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992  (exit $ac_status); }; } &&
8993	 { ac_try='test -s conftest.$ac_objext'
8994  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8995  (eval $ac_try) 2>&5
8996  ac_status=$?
8997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998  (exit $ac_status); }; }; then
8999  ac_cv_func_strerror_r_char_p=yes
9000else
9001  echo "$as_me: failed program was:" >&5
9002sed 's/^/| /' conftest.$ac_ext >&5
9003
9004fi
9005rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9006    else
9007      # strerror_r is not declared.  Choose between
9008      # systems that have relatively inaccessible declarations for the
9009      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
9010      # former has a strerror_r that returns char*, while the latter
9011      # has a strerror_r that returns `int'.
9012      # This test should segfault on the DEC system.
9013      if test "$cross_compiling" = yes; then
9014  :
9015else
9016  cat >conftest.$ac_ext <<_ACEOF
9017/* confdefs.h.  */
9018_ACEOF
9019cat confdefs.h >>conftest.$ac_ext
9020cat >>conftest.$ac_ext <<_ACEOF
9021/* end confdefs.h.  */
9022$ac_includes_default
9023	extern char *strerror_r ();
9024int
9025main ()
9026{
9027char buf[100];
9028	  char x = *strerror_r (0, buf, sizeof buf);
9029	  exit (!isalpha (x));
9030  ;
9031  return 0;
9032}
9033_ACEOF
9034rm -f conftest$ac_exeext
9035if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9036  (eval $ac_link) 2>&5
9037  ac_status=$?
9038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9040  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9041  (eval $ac_try) 2>&5
9042  ac_status=$?
9043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044  (exit $ac_status); }; }; then
9045  ac_cv_func_strerror_r_char_p=yes
9046else
9047  echo "$as_me: program exited with status $ac_status" >&5
9048echo "$as_me: failed program was:" >&5
9049sed 's/^/| /' conftest.$ac_ext >&5
9050
9051fi
9052rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9053fi
9054    fi
9055
9056fi
9057echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
9058echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
9059if test $ac_cv_func_strerror_r_char_p = yes; then
9060
9061cat >>confdefs.h <<\_ACEOF
9062#define STRERROR_R_CHAR_P 1
9063_ACEOF
9064
9065fi
9066
9067
9068  if test -z "$GETOPT_H"; then
9069
9070for ac_header in getopt.h
9071do
9072as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9073if eval "test \"\${$as_ac_Header+set}\" = set"; then
9074  echo "$as_me:$LINENO: checking for $ac_header" >&5
9075echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9076if eval "test \"\${$as_ac_Header+set}\" = set"; then
9077  echo $ECHO_N "(cached) $ECHO_C" >&6
9078fi
9079echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9080echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9081else
9082  # Is the header compilable?
9083echo "$as_me:$LINENO: checking $ac_header usability" >&5
9084echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9085cat >conftest.$ac_ext <<_ACEOF
9086/* confdefs.h.  */
9087_ACEOF
9088cat confdefs.h >>conftest.$ac_ext
9089cat >>conftest.$ac_ext <<_ACEOF
9090/* end confdefs.h.  */
9091$ac_includes_default
9092#include <$ac_header>
9093_ACEOF
9094rm -f conftest.$ac_objext
9095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9096  (eval $ac_compile) 2>conftest.er1
9097  ac_status=$?
9098  grep -v '^ *+' conftest.er1 >conftest.err
9099  rm -f conftest.er1
9100  cat conftest.err >&5
9101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102  (exit $ac_status); } &&
9103	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
9104  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9105  (eval $ac_try) 2>&5
9106  ac_status=$?
9107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108  (exit $ac_status); }; } &&
9109	 { ac_try='test -s conftest.$ac_objext'
9110  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9111  (eval $ac_try) 2>&5
9112  ac_status=$?
9113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114  (exit $ac_status); }; }; then
9115  ac_header_compiler=yes
9116else
9117  echo "$as_me: failed program was:" >&5
9118sed 's/^/| /' conftest.$ac_ext >&5
9119
9120ac_header_compiler=no
9121fi
9122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9123echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9124echo "${ECHO_T}$ac_header_compiler" >&6
9125
9126# Is the header present?
9127echo "$as_me:$LINENO: checking $ac_header presence" >&5
9128echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9129cat >conftest.$ac_ext <<_ACEOF
9130/* confdefs.h.  */
9131_ACEOF
9132cat confdefs.h >>conftest.$ac_ext
9133cat >>conftest.$ac_ext <<_ACEOF
9134/* end confdefs.h.  */
9135#include <$ac_header>
9136_ACEOF
9137if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9138  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9139  ac_status=$?
9140  grep -v '^ *+' conftest.er1 >conftest.err
9141  rm -f conftest.er1
9142  cat conftest.err >&5
9143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144  (exit $ac_status); } >/dev/null; then
9145  if test -s conftest.err; then
9146    ac_cpp_err=$ac_c_preproc_warn_flag
9147    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9148  else
9149    ac_cpp_err=
9150  fi
9151else
9152  ac_cpp_err=yes
9153fi
9154if test -z "$ac_cpp_err"; then
9155  ac_header_preproc=yes
9156else
9157  echo "$as_me: failed program was:" >&5
9158sed 's/^/| /' conftest.$ac_ext >&5
9159
9160  ac_header_preproc=no
9161fi
9162rm -f conftest.err conftest.$ac_ext
9163echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9164echo "${ECHO_T}$ac_header_preproc" >&6
9165
9166# So?  What about this header?
9167case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9168  yes:no: )
9169    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9170echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9171    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9172echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9173    ac_header_preproc=yes
9174    ;;
9175  no:yes:* )
9176    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9177echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9178    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9179echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9180    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9181echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9182    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9183echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9184    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9185echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9186    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9187echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9188    (
9189      cat <<\_ASBOX
9190## -------------------------------- ##
9191## Report this to bug-bison@gnu.org ##
9192## -------------------------------- ##
9193_ASBOX
9194    ) |
9195      sed "s/^/$as_me: WARNING:     /" >&2
9196    ;;
9197esac
9198echo "$as_me:$LINENO: checking for $ac_header" >&5
9199echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9200if eval "test \"\${$as_ac_Header+set}\" = set"; then
9201  echo $ECHO_N "(cached) $ECHO_C" >&6
9202else
9203  eval "$as_ac_Header=\$ac_header_preproc"
9204fi
9205echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9206echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9207
9208fi
9209if test `eval echo '${'$as_ac_Header'}'` = yes; then
9210  cat >>confdefs.h <<_ACEOF
9211#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9212_ACEOF
9213
9214else
9215  GETOPT_H=getopt.h
9216fi
9217
9218done
9219
9220  fi
9221
9222  if test -z "$GETOPT_H"; then
9223
9224for ac_func in getopt_long_only
9225do
9226as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9227echo "$as_me:$LINENO: checking for $ac_func" >&5
9228echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9229if eval "test \"\${$as_ac_var+set}\" = set"; then
9230  echo $ECHO_N "(cached) $ECHO_C" >&6
9231else
9232  cat >conftest.$ac_ext <<_ACEOF
9233/* confdefs.h.  */
9234_ACEOF
9235cat confdefs.h >>conftest.$ac_ext
9236cat >>conftest.$ac_ext <<_ACEOF
9237/* end confdefs.h.  */
9238/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9239   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9240#define $ac_func innocuous_$ac_func
9241
9242/* System header to define __stub macros and hopefully few prototypes,
9243    which can conflict with char $ac_func (); below.
9244    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9245    <limits.h> exists even on freestanding compilers.  */
9246
9247#ifdef __STDC__
9248# include <limits.h>
9249#else
9250# include <assert.h>
9251#endif
9252
9253#undef $ac_func
9254
9255/* Override any gcc2 internal prototype to avoid an error.  */
9256#ifdef __cplusplus
9257extern "C"
9258{
9259#endif
9260/* We use char because int might match the return type of a gcc2
9261   builtin and then its argument prototype would still apply.  */
9262char $ac_func ();
9263/* The GNU C library defines this for functions which it implements
9264    to always fail with ENOSYS.  Some functions are actually named
9265    something starting with __ and the normal name is an alias.  */
9266#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9267choke me
9268#else
9269char (*f) () = $ac_func;
9270#endif
9271#ifdef __cplusplus
9272}
9273#endif
9274
9275int
9276main ()
9277{
9278return f != $ac_func;
9279  ;
9280  return 0;
9281}
9282_ACEOF
9283rm -f conftest.$ac_objext conftest$ac_exeext
9284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9285  (eval $ac_link) 2>conftest.er1
9286  ac_status=$?
9287  grep -v '^ *+' conftest.er1 >conftest.err
9288  rm -f conftest.er1
9289  cat conftest.err >&5
9290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291  (exit $ac_status); } &&
9292	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
9293  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9294  (eval $ac_try) 2>&5
9295  ac_status=$?
9296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297  (exit $ac_status); }; } &&
9298	 { ac_try='test -s conftest$ac_exeext'
9299  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9300  (eval $ac_try) 2>&5
9301  ac_status=$?
9302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303  (exit $ac_status); }; }; then
9304  eval "$as_ac_var=yes"
9305else
9306  echo "$as_me: failed program was:" >&5
9307sed 's/^/| /' conftest.$ac_ext >&5
9308
9309eval "$as_ac_var=no"
9310fi
9311rm -f conftest.err conftest.$ac_objext \
9312      conftest$ac_exeext conftest.$ac_ext
9313fi
9314echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9315echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9316if test `eval echo '${'$as_ac_var'}'` = yes; then
9317  cat >>confdefs.h <<_ACEOF
9318#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9319_ACEOF
9320
9321else
9322  GETOPT_H=getopt.h
9323fi
9324done
9325
9326  fi
9327
9328      if test -z "$GETOPT_H"; then
9329    echo "$as_me:$LINENO: checking whether optreset is declared" >&5
9330echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
9331if test "${ac_cv_have_decl_optreset+set}" = set; then
9332  echo $ECHO_N "(cached) $ECHO_C" >&6
9333else
9334  cat >conftest.$ac_ext <<_ACEOF
9335/* confdefs.h.  */
9336_ACEOF
9337cat confdefs.h >>conftest.$ac_ext
9338cat >>conftest.$ac_ext <<_ACEOF
9339/* end confdefs.h.  */
9340#include <getopt.h>
9341
9342int
9343main ()
9344{
9345#ifndef optreset
9346  char *p = (char *) optreset;
9347#endif
9348
9349  ;
9350  return 0;
9351}
9352_ACEOF
9353rm -f conftest.$ac_objext
9354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9355  (eval $ac_compile) 2>conftest.er1
9356  ac_status=$?
9357  grep -v '^ *+' conftest.er1 >conftest.err
9358  rm -f conftest.er1
9359  cat conftest.err >&5
9360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361  (exit $ac_status); } &&
9362	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
9363  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9364  (eval $ac_try) 2>&5
9365  ac_status=$?
9366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367  (exit $ac_status); }; } &&
9368	 { ac_try='test -s conftest.$ac_objext'
9369  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9370  (eval $ac_try) 2>&5
9371  ac_status=$?
9372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373  (exit $ac_status); }; }; then
9374  ac_cv_have_decl_optreset=yes
9375else
9376  echo "$as_me: failed program was:" >&5
9377sed 's/^/| /' conftest.$ac_ext >&5
9378
9379ac_cv_have_decl_optreset=no
9380fi
9381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9382fi
9383echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
9384echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
9385if test $ac_cv_have_decl_optreset = yes; then
9386  GETOPT_H=getopt.h
9387fi
9388
9389  fi
9390
9391      if test -z "$GETOPT_H"; then
9392    echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
9393echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6
9394if test "${gl_cv_func_gnu_getopt+set}" = set; then
9395  echo $ECHO_N "(cached) $ECHO_C" >&6
9396else
9397  if test "$cross_compiling" = yes; then
9398  	 	 	 echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
9399echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6
9400if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
9401  echo $ECHO_N "(cached) $ECHO_C" >&6
9402else
9403  cat >conftest.$ac_ext <<_ACEOF
9404/* confdefs.h.  */
9405_ACEOF
9406cat confdefs.h >>conftest.$ac_ext
9407cat >>conftest.$ac_ext <<_ACEOF
9408/* end confdefs.h.  */
9409#include <getopt.h>
9410
9411int
9412main ()
9413{
9414#ifndef getopt_clip
9415  char *p = (char *) getopt_clip;
9416#endif
9417
9418  ;
9419  return 0;
9420}
9421_ACEOF
9422rm -f conftest.$ac_objext
9423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9424  (eval $ac_compile) 2>conftest.er1
9425  ac_status=$?
9426  grep -v '^ *+' conftest.er1 >conftest.err
9427  rm -f conftest.er1
9428  cat conftest.err >&5
9429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430  (exit $ac_status); } &&
9431	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
9432  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9433  (eval $ac_try) 2>&5
9434  ac_status=$?
9435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436  (exit $ac_status); }; } &&
9437	 { ac_try='test -s conftest.$ac_objext'
9438  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9439  (eval $ac_try) 2>&5
9440  ac_status=$?
9441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442  (exit $ac_status); }; }; then
9443  ac_cv_have_decl_getopt_clip=yes
9444else
9445  echo "$as_me: failed program was:" >&5
9446sed 's/^/| /' conftest.$ac_ext >&5
9447
9448ac_cv_have_decl_getopt_clip=no
9449fi
9450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9451fi
9452echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
9453echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6
9454if test $ac_cv_have_decl_getopt_clip = yes; then
9455  gl_cv_func_gnu_getopt=no
9456else
9457  gl_cv_func_gnu_getopt=yes
9458fi
9459
9460else
9461  cat >conftest.$ac_ext <<_ACEOF
9462/* confdefs.h.  */
9463_ACEOF
9464cat confdefs.h >>conftest.$ac_ext
9465cat >>conftest.$ac_ext <<_ACEOF
9466/* end confdefs.h.  */
9467#include <getopt.h>
9468int
9469main ()
9470{
9471
9472	     char *myargv[3];
9473	     myargv[0] = "conftest";
9474	     myargv[1] = "-+";
9475	     myargv[2] = 0;
9476	     return getopt (2, myargv, "+a") != '?';
9477
9478  ;
9479  return 0;
9480}
9481_ACEOF
9482rm -f conftest$ac_exeext
9483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9484  (eval $ac_link) 2>&5
9485  ac_status=$?
9486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9488  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9489  (eval $ac_try) 2>&5
9490  ac_status=$?
9491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492  (exit $ac_status); }; }; then
9493  gl_cv_func_gnu_getopt=yes
9494else
9495  echo "$as_me: program exited with status $ac_status" >&5
9496echo "$as_me: failed program was:" >&5
9497sed 's/^/| /' conftest.$ac_ext >&5
9498
9499( exit $ac_status )
9500gl_cv_func_gnu_getopt=no
9501fi
9502rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9503fi
9504fi
9505echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
9506echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6
9507    if test "$gl_cv_func_gnu_getopt" = "no"; then
9508      GETOPT_H=getopt.h
9509    fi
9510  fi
9511
9512
9513      echo "$as_me:$LINENO: checking whether getenv is declared" >&5
9514echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
9515if test "${ac_cv_have_decl_getenv+set}" = set; then
9516  echo $ECHO_N "(cached) $ECHO_C" >&6
9517else
9518  cat >conftest.$ac_ext <<_ACEOF
9519/* confdefs.h.  */
9520_ACEOF
9521cat confdefs.h >>conftest.$ac_ext
9522cat >>conftest.$ac_ext <<_ACEOF
9523/* end confdefs.h.  */
9524$ac_includes_default
9525int
9526main ()
9527{
9528#ifndef getenv
9529  char *p = (char *) getenv;
9530#endif
9531
9532  ;
9533  return 0;
9534}
9535_ACEOF
9536rm -f conftest.$ac_objext
9537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9538  (eval $ac_compile) 2>conftest.er1
9539  ac_status=$?
9540  grep -v '^ *+' conftest.er1 >conftest.err
9541  rm -f conftest.er1
9542  cat conftest.err >&5
9543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544  (exit $ac_status); } &&
9545	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
9546  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9547  (eval $ac_try) 2>&5
9548  ac_status=$?
9549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550  (exit $ac_status); }; } &&
9551	 { ac_try='test -s conftest.$ac_objext'
9552  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9553  (eval $ac_try) 2>&5
9554  ac_status=$?
9555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556  (exit $ac_status); }; }; then
9557  ac_cv_have_decl_getenv=yes
9558else
9559  echo "$as_me: failed program was:" >&5
9560sed 's/^/| /' conftest.$ac_ext >&5
9561
9562ac_cv_have_decl_getenv=no
9563fi
9564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9565fi
9566echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
9567echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
9568if test $ac_cv_have_decl_getenv = yes; then
9569
9570cat >>confdefs.h <<_ACEOF
9571#define HAVE_DECL_GETENV 1
9572_ACEOF
9573
9574
9575else
9576  cat >>confdefs.h <<_ACEOF
9577#define HAVE_DECL_GETENV 0
9578_ACEOF
9579
9580
9581fi
9582
9583
9584
9585
9586
9587        MKINSTALLDIRS=
9588  if test -n "$ac_aux_dir"; then
9589    case "$ac_aux_dir" in
9590      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
9591      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
9592    esac
9593  fi
9594  if test -z "$MKINSTALLDIRS"; then
9595    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
9596  fi
9597
9598
9599
9600  echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9601echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9602    # Check whether --enable-nls or --disable-nls was given.
9603if test "${enable_nls+set}" = set; then
9604  enableval="$enable_nls"
9605  USE_NLS=$enableval
9606else
9607  USE_NLS=yes
9608fi;
9609  echo "$as_me:$LINENO: result: $USE_NLS" >&5
9610echo "${ECHO_T}$USE_NLS" >&6
9611
9612
9613
9614
9615
9616
9617# Prepare PATH_SEPARATOR.
9618# The user is always right.
9619if test "${PATH_SEPARATOR+set}" != set; then
9620  echo "#! /bin/sh" >conf$$.sh
9621  echo  "exit 0"   >>conf$$.sh
9622  chmod +x conf$$.sh
9623  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9624    PATH_SEPARATOR=';'
9625  else
9626    PATH_SEPARATOR=:
9627  fi
9628  rm -f conf$$.sh
9629fi
9630
9631# Find out how to test for executable files. Don't use a zero-byte file,
9632# as systems may use methods other than mode bits to determine executability.
9633cat >conf$$.file <<_ASEOF
9634#! /bin/sh
9635exit 0
9636_ASEOF
9637chmod +x conf$$.file
9638if test -x conf$$.file >/dev/null 2>&1; then
9639  ac_executable_p="test -x"
9640else
9641  ac_executable_p="test -f"
9642fi
9643rm -f conf$$.file
9644
9645# Extract the first word of "msgfmt", so it can be a program name with args.
9646set dummy msgfmt; ac_word=$2
9647echo "$as_me:$LINENO: checking for $ac_word" >&5
9648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9649if test "${ac_cv_path_MSGFMT+set}" = set; then
9650  echo $ECHO_N "(cached) $ECHO_C" >&6
9651else
9652  case "$MSGFMT" in
9653  [\\/]* | ?:[\\/]*)
9654    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
9655    ;;
9656  *)
9657    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
9658    for ac_dir in $PATH; do
9659      IFS="$ac_save_IFS"
9660      test -z "$ac_dir" && ac_dir=.
9661      for ac_exec_ext in '' $ac_executable_extensions; do
9662        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
9663          echo "$as_me: trying $ac_dir/$ac_word..." >&5
9664          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
9665     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
9666            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
9667            break 2
9668          fi
9669        fi
9670      done
9671    done
9672    IFS="$ac_save_IFS"
9673  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
9674    ;;
9675esac
9676fi
9677MSGFMT="$ac_cv_path_MSGFMT"
9678if test "$MSGFMT" != ":"; then
9679  echo "$as_me:$LINENO: result: $MSGFMT" >&5
9680echo "${ECHO_T}$MSGFMT" >&6
9681else
9682  echo "$as_me:$LINENO: result: no" >&5
9683echo "${ECHO_T}no" >&6
9684fi
9685
9686  # Extract the first word of "gmsgfmt", so it can be a program name with args.
9687set dummy gmsgfmt; ac_word=$2
9688echo "$as_me:$LINENO: checking for $ac_word" >&5
9689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9690if test "${ac_cv_path_GMSGFMT+set}" = set; then
9691  echo $ECHO_N "(cached) $ECHO_C" >&6
9692else
9693  case $GMSGFMT in
9694  [\\/]* | ?:[\\/]*)
9695  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
9696  ;;
9697  *)
9698  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9699for as_dir in $PATH
9700do
9701  IFS=$as_save_IFS
9702  test -z "$as_dir" && as_dir=.
9703  for ac_exec_ext in '' $ac_executable_extensions; do
9704  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9705    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
9706    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9707    break 2
9708  fi
9709done
9710done
9711
9712  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
9713  ;;
9714esac
9715fi
9716GMSGFMT=$ac_cv_path_GMSGFMT
9717
9718if test -n "$GMSGFMT"; then
9719  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
9720echo "${ECHO_T}$GMSGFMT" >&6
9721else
9722  echo "$as_me:$LINENO: result: no" >&5
9723echo "${ECHO_T}no" >&6
9724fi
9725
9726
9727
9728# Prepare PATH_SEPARATOR.
9729# The user is always right.
9730if test "${PATH_SEPARATOR+set}" != set; then
9731  echo "#! /bin/sh" >conf$$.sh
9732  echo  "exit 0"   >>conf$$.sh
9733  chmod +x conf$$.sh
9734  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9735    PATH_SEPARATOR=';'
9736  else
9737    PATH_SEPARATOR=:
9738  fi
9739  rm -f conf$$.sh
9740fi
9741
9742# Find out how to test for executable files. Don't use a zero-byte file,
9743# as systems may use methods other than mode bits to determine executability.
9744cat >conf$$.file <<_ASEOF
9745#! /bin/sh
9746exit 0
9747_ASEOF
9748chmod +x conf$$.file
9749if test -x conf$$.file >/dev/null 2>&1; then
9750  ac_executable_p="test -x"
9751else
9752  ac_executable_p="test -f"
9753fi
9754rm -f conf$$.file
9755
9756# Extract the first word of "xgettext", so it can be a program name with args.
9757set dummy xgettext; ac_word=$2
9758echo "$as_me:$LINENO: checking for $ac_word" >&5
9759echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9760if test "${ac_cv_path_XGETTEXT+set}" = set; then
9761  echo $ECHO_N "(cached) $ECHO_C" >&6
9762else
9763  case "$XGETTEXT" in
9764  [\\/]* | ?:[\\/]*)
9765    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
9766    ;;
9767  *)
9768    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
9769    for ac_dir in $PATH; do
9770      IFS="$ac_save_IFS"
9771      test -z "$ac_dir" && ac_dir=.
9772      for ac_exec_ext in '' $ac_executable_extensions; do
9773        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
9774          echo "$as_me: trying $ac_dir/$ac_word..." >&5
9775          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
9776     (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
9777            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
9778            break 2
9779          fi
9780        fi
9781      done
9782    done
9783    IFS="$ac_save_IFS"
9784  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
9785    ;;
9786esac
9787fi
9788XGETTEXT="$ac_cv_path_XGETTEXT"
9789if test "$XGETTEXT" != ":"; then
9790  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
9791echo "${ECHO_T}$XGETTEXT" >&6
9792else
9793  echo "$as_me:$LINENO: result: no" >&5
9794echo "${ECHO_T}no" >&6
9795fi
9796
9797    rm -f messages.po
9798
9799
9800# Prepare PATH_SEPARATOR.
9801# The user is always right.
9802if test "${PATH_SEPARATOR+set}" != set; then
9803  echo "#! /bin/sh" >conf$$.sh
9804  echo  "exit 0"   >>conf$$.sh
9805  chmod +x conf$$.sh
9806  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9807    PATH_SEPARATOR=';'
9808  else
9809    PATH_SEPARATOR=:
9810  fi
9811  rm -f conf$$.sh
9812fi
9813
9814# Find out how to test for executable files. Don't use a zero-byte file,
9815# as systems may use methods other than mode bits to determine executability.
9816cat >conf$$.file <<_ASEOF
9817#! /bin/sh
9818exit 0
9819_ASEOF
9820chmod +x conf$$.file
9821if test -x conf$$.file >/dev/null 2>&1; then
9822  ac_executable_p="test -x"
9823else
9824  ac_executable_p="test -f"
9825fi
9826rm -f conf$$.file
9827
9828# Extract the first word of "msgmerge", so it can be a program name with args.
9829set dummy msgmerge; ac_word=$2
9830echo "$as_me:$LINENO: checking for $ac_word" >&5
9831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9832if test "${ac_cv_path_MSGMERGE+set}" = set; then
9833  echo $ECHO_N "(cached) $ECHO_C" >&6
9834else
9835  case "$MSGMERGE" in
9836  [\\/]* | ?:[\\/]*)
9837    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
9838    ;;
9839  *)
9840    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
9841    for ac_dir in $PATH; do
9842      IFS="$ac_save_IFS"
9843      test -z "$ac_dir" && ac_dir=.
9844      for ac_exec_ext in '' $ac_executable_extensions; do
9845        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
9846          echo "$as_me: trying $ac_dir/$ac_word..." >&5
9847          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
9848            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
9849            break 2
9850          fi
9851        fi
9852      done
9853    done
9854    IFS="$ac_save_IFS"
9855  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
9856    ;;
9857esac
9858fi
9859MSGMERGE="$ac_cv_path_MSGMERGE"
9860if test "$MSGMERGE" != ":"; then
9861  echo "$as_me:$LINENO: result: $MSGMERGE" >&5
9862echo "${ECHO_T}$MSGMERGE" >&6
9863else
9864  echo "$as_me:$LINENO: result: no" >&5
9865echo "${ECHO_T}no" >&6
9866fi
9867
9868
9869      if test "$GMSGFMT" != ":"; then
9870            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
9871       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
9872      : ;
9873    else
9874      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
9875      echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
9876echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
9877      GMSGFMT=":"
9878    fi
9879  fi
9880
9881      if test "$XGETTEXT" != ":"; then
9882            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
9883       (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
9884      : ;
9885    else
9886      echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
9887echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
9888      XGETTEXT=":"
9889    fi
9890        rm -f messages.po
9891  fi
9892
9893            ac_config_commands="$ac_config_commands default-1"
9894
9895
9896
9897      if test "X$prefix" = "XNONE"; then
9898    acl_final_prefix="$ac_default_prefix"
9899  else
9900    acl_final_prefix="$prefix"
9901  fi
9902  if test "X$exec_prefix" = "XNONE"; then
9903    acl_final_exec_prefix='${prefix}'
9904  else
9905    acl_final_exec_prefix="$exec_prefix"
9906  fi
9907  acl_save_prefix="$prefix"
9908  prefix="$acl_final_prefix"
9909  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9910  prefix="$acl_save_prefix"
9911
9912# Make sure we can run config.sub.
9913$ac_config_sub sun4 >/dev/null 2>&1 ||
9914  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
9915echo "$as_me: error: cannot run $ac_config_sub" >&2;}
9916   { (exit 1); exit 1; }; }
9917
9918echo "$as_me:$LINENO: checking build system type" >&5
9919echo $ECHO_N "checking build system type... $ECHO_C" >&6
9920if test "${ac_cv_build+set}" = set; then
9921  echo $ECHO_N "(cached) $ECHO_C" >&6
9922else
9923  ac_cv_build_alias=$build_alias
9924test -z "$ac_cv_build_alias" &&
9925  ac_cv_build_alias=`$ac_config_guess`
9926test -z "$ac_cv_build_alias" &&
9927  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
9928echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
9929   { (exit 1); exit 1; }; }
9930ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
9931  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
9932echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
9933   { (exit 1); exit 1; }; }
9934
9935fi
9936echo "$as_me:$LINENO: result: $ac_cv_build" >&5
9937echo "${ECHO_T}$ac_cv_build" >&6
9938build=$ac_cv_build
9939build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
9940build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
9941build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
9942
9943
9944echo "$as_me:$LINENO: checking host system type" >&5
9945echo $ECHO_N "checking host system type... $ECHO_C" >&6
9946if test "${ac_cv_host+set}" = set; then
9947  echo $ECHO_N "(cached) $ECHO_C" >&6
9948else
9949  ac_cv_host_alias=$host_alias
9950test -z "$ac_cv_host_alias" &&
9951  ac_cv_host_alias=$ac_cv_build_alias
9952ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
9953  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
9954echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
9955   { (exit 1); exit 1; }; }
9956
9957fi
9958echo "$as_me:$LINENO: result: $ac_cv_host" >&5
9959echo "${ECHO_T}$ac_cv_host" >&6
9960host=$ac_cv_host
9961host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
9962host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
9963host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
9964
9965
9966
9967# Check whether --with-gnu-ld or --without-gnu-ld was given.
9968if test "${with_gnu_ld+set}" = set; then
9969  withval="$with_gnu_ld"
9970  test "$withval" = no || with_gnu_ld=yes
9971else
9972  with_gnu_ld=no
9973fi;
9974# Prepare PATH_SEPARATOR.
9975# The user is always right.
9976if test "${PATH_SEPARATOR+set}" != set; then
9977  echo "#! /bin/sh" >conf$$.sh
9978  echo  "exit 0"   >>conf$$.sh
9979  chmod +x conf$$.sh
9980  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9981    PATH_SEPARATOR=';'
9982  else
9983    PATH_SEPARATOR=:
9984  fi
9985  rm -f conf$$.sh
9986fi
9987ac_prog=ld
9988if test "$GCC" = yes; then
9989  # Check if gcc -print-prog-name=ld gives a path.
9990  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
9991echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
9992  case $host in
9993  *-*-mingw*)
9994    # gcc leaves a trailing carriage return which upsets mingw
9995    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9996  *)
9997    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9998  esac
9999  case $ac_prog in
10000    # Accept absolute paths.
10001    [\\/]* | [A-Za-z]:[\\/]*)
10002      re_direlt='/[^/][^/]*/\.\./'
10003      # Canonicalize the path of ld
10004      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10005      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10006	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10007      done
10008      test -z "$LD" && LD="$ac_prog"
10009      ;;
10010  "")
10011    # If it fails, then pretend we aren't using GCC.
10012    ac_prog=ld
10013    ;;
10014  *)
10015    # If it is relative, then search for the first ld in PATH.
10016    with_gnu_ld=unknown
10017    ;;
10018  esac
10019elif test "$with_gnu_ld" = yes; then
10020  echo "$as_me:$LINENO: checking for GNU ld" >&5
10021echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10022else
10023  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10024echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10025fi
10026if test "${acl_cv_path_LD+set}" = set; then
10027  echo $ECHO_N "(cached) $ECHO_C" >&6
10028else
10029  if test -z "$LD"; then
10030  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10031  for ac_dir in $PATH; do
10032    test -z "$ac_dir" && ac_dir=.
10033    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10034      acl_cv_path_LD="$ac_dir/$ac_prog"
10035      # Check to see if the program is GNU ld.  I'd rather use --version,
10036      # but apparently some GNU ld's only accept -v.
10037      # Break only if it was the GNU/non-GNU ld that we prefer.
10038      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
10039      *GNU* | *'with BFD'*)
10040	test "$with_gnu_ld" != no && break ;;
10041      *)
10042	test "$with_gnu_ld" != yes && break ;;
10043      esac
10044    fi
10045  done
10046  IFS="$ac_save_ifs"
10047else
10048  acl_cv_path_LD="$LD" # Let the user override the test with a path.
10049fi
10050fi
10051
10052LD="$acl_cv_path_LD"
10053if test -n "$LD"; then
10054  echo "$as_me:$LINENO: result: $LD" >&5
10055echo "${ECHO_T}$LD" >&6
10056else
10057  echo "$as_me:$LINENO: result: no" >&5
10058echo "${ECHO_T}no" >&6
10059fi
10060test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10061echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10062   { (exit 1); exit 1; }; }
10063echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10064echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10065if test "${acl_cv_prog_gnu_ld+set}" = set; then
10066  echo $ECHO_N "(cached) $ECHO_C" >&6
10067else
10068  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10069case `$LD -v 2>&1 </dev/null` in
10070*GNU* | *'with BFD'*)
10071  acl_cv_prog_gnu_ld=yes ;;
10072*)
10073  acl_cv_prog_gnu_ld=no ;;
10074esac
10075fi
10076echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10077echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10078with_gnu_ld=$acl_cv_prog_gnu_ld
10079
10080
10081
10082
10083                                                echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10084echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10085if test "${acl_cv_rpath+set}" = set; then
10086  echo $ECHO_N "(cached) $ECHO_C" >&6
10087else
10088
10089    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10090    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10091    . ./conftest.sh
10092    rm -f ./conftest.sh
10093    acl_cv_rpath=done
10094
10095fi
10096echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10097echo "${ECHO_T}$acl_cv_rpath" >&6
10098  wl="$acl_cv_wl"
10099  libext="$acl_cv_libext"
10100  shlibext="$acl_cv_shlibext"
10101  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10102  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10103  hardcode_direct="$acl_cv_hardcode_direct"
10104  hardcode_minus_L="$acl_cv_hardcode_minus_L"
10105    # Check whether --enable-rpath or --disable-rpath was given.
10106if test "${enable_rpath+set}" = set; then
10107  enableval="$enable_rpath"
10108  :
10109else
10110  enable_rpath=yes
10111fi;
10112
10113
10114                  acl_libdirstem=lib
10115  searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
10116  if test -n "$searchpath"; then
10117    acl_save_IFS="${IFS= 	}"; IFS=":"
10118    for searchdir in $searchpath; do
10119      if test -d "$searchdir"; then
10120        case "$searchdir" in
10121          */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
10122          *) searchdir=`cd "$searchdir" && pwd`
10123             case "$searchdir" in
10124               */lib64 ) acl_libdirstem=lib64 ;;
10125             esac ;;
10126        esac
10127      fi
10128    done
10129    IFS="$acl_save_IFS"
10130  fi
10131
10132
10133
10134
10135
10136
10137
10138
10139    use_additional=yes
10140
10141  acl_save_prefix="$prefix"
10142  prefix="$acl_final_prefix"
10143  acl_save_exec_prefix="$exec_prefix"
10144  exec_prefix="$acl_final_exec_prefix"
10145
10146    eval additional_includedir=\"$includedir\"
10147    eval additional_libdir=\"$libdir\"
10148
10149  exec_prefix="$acl_save_exec_prefix"
10150  prefix="$acl_save_prefix"
10151
10152
10153# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10154if test "${with_libiconv_prefix+set}" = set; then
10155  withval="$with_libiconv_prefix"
10156
10157    if test "X$withval" = "Xno"; then
10158      use_additional=no
10159    else
10160      if test "X$withval" = "X"; then
10161
10162  acl_save_prefix="$prefix"
10163  prefix="$acl_final_prefix"
10164  acl_save_exec_prefix="$exec_prefix"
10165  exec_prefix="$acl_final_exec_prefix"
10166
10167          eval additional_includedir=\"$includedir\"
10168          eval additional_libdir=\"$libdir\"
10169
10170  exec_prefix="$acl_save_exec_prefix"
10171  prefix="$acl_save_prefix"
10172
10173      else
10174        additional_includedir="$withval/include"
10175        additional_libdir="$withval/$acl_libdirstem"
10176      fi
10177    fi
10178
10179fi;
10180      LIBICONV=
10181  LTLIBICONV=
10182  INCICONV=
10183  rpathdirs=
10184  ltrpathdirs=
10185  names_already_handled=
10186  names_next_round='iconv '
10187  while test -n "$names_next_round"; do
10188    names_this_round="$names_next_round"
10189    names_next_round=
10190    for name in $names_this_round; do
10191      already_handled=
10192      for n in $names_already_handled; do
10193        if test "$n" = "$name"; then
10194          already_handled=yes
10195          break
10196        fi
10197      done
10198      if test -z "$already_handled"; then
10199        names_already_handled="$names_already_handled $name"
10200                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10201        eval value=\"\$HAVE_LIB$uppername\"
10202        if test -n "$value"; then
10203          if test "$value" = yes; then
10204            eval value=\"\$LIB$uppername\"
10205            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10206            eval value=\"\$LTLIB$uppername\"
10207            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10208          else
10209                                    :
10210          fi
10211        else
10212                              found_dir=
10213          found_la=
10214          found_so=
10215          found_a=
10216          if test $use_additional = yes; then
10217            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10218              found_dir="$additional_libdir"
10219              found_so="$additional_libdir/lib$name.$shlibext"
10220              if test -f "$additional_libdir/lib$name.la"; then
10221                found_la="$additional_libdir/lib$name.la"
10222              fi
10223            else
10224              if test -f "$additional_libdir/lib$name.$libext"; then
10225                found_dir="$additional_libdir"
10226                found_a="$additional_libdir/lib$name.$libext"
10227                if test -f "$additional_libdir/lib$name.la"; then
10228                  found_la="$additional_libdir/lib$name.la"
10229                fi
10230              fi
10231            fi
10232          fi
10233          if test "X$found_dir" = "X"; then
10234            for x in $LDFLAGS $LTLIBICONV; do
10235
10236  acl_save_prefix="$prefix"
10237  prefix="$acl_final_prefix"
10238  acl_save_exec_prefix="$exec_prefix"
10239  exec_prefix="$acl_final_exec_prefix"
10240  eval x=\"$x\"
10241  exec_prefix="$acl_save_exec_prefix"
10242  prefix="$acl_save_prefix"
10243
10244              case "$x" in
10245                -L*)
10246                  dir=`echo "X$x" | sed -e 's/^X-L//'`
10247                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10248                    found_dir="$dir"
10249                    found_so="$dir/lib$name.$shlibext"
10250                    if test -f "$dir/lib$name.la"; then
10251                      found_la="$dir/lib$name.la"
10252                    fi
10253                  else
10254                    if test -f "$dir/lib$name.$libext"; then
10255                      found_dir="$dir"
10256                      found_a="$dir/lib$name.$libext"
10257                      if test -f "$dir/lib$name.la"; then
10258                        found_la="$dir/lib$name.la"
10259                      fi
10260                    fi
10261                  fi
10262                  ;;
10263              esac
10264              if test "X$found_dir" != "X"; then
10265                break
10266              fi
10267            done
10268          fi
10269          if test "X$found_dir" != "X"; then
10270                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10271            if test "X$found_so" != "X"; then
10272                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
10273                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10274              else
10275                                                                                haveit=
10276                for x in $ltrpathdirs; do
10277                  if test "X$x" = "X$found_dir"; then
10278                    haveit=yes
10279                    break
10280                  fi
10281                done
10282                if test -z "$haveit"; then
10283                  ltrpathdirs="$ltrpathdirs $found_dir"
10284                fi
10285                                if test "$hardcode_direct" = yes; then
10286                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10287                else
10288                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10289                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10290                                                            haveit=
10291                    for x in $rpathdirs; do
10292                      if test "X$x" = "X$found_dir"; then
10293                        haveit=yes
10294                        break
10295                      fi
10296                    done
10297                    if test -z "$haveit"; then
10298                      rpathdirs="$rpathdirs $found_dir"
10299                    fi
10300                  else
10301                                                                                haveit=
10302                    for x in $LDFLAGS $LIBICONV; do
10303
10304  acl_save_prefix="$prefix"
10305  prefix="$acl_final_prefix"
10306  acl_save_exec_prefix="$exec_prefix"
10307  exec_prefix="$acl_final_exec_prefix"
10308  eval x=\"$x\"
10309  exec_prefix="$acl_save_exec_prefix"
10310  prefix="$acl_save_prefix"
10311
10312                      if test "X$x" = "X-L$found_dir"; then
10313                        haveit=yes
10314                        break
10315                      fi
10316                    done
10317                    if test -z "$haveit"; then
10318                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10319                    fi
10320                    if test "$hardcode_minus_L" != no; then
10321                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10322                    else
10323                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10324                    fi
10325                  fi
10326                fi
10327              fi
10328            else
10329              if test "X$found_a" != "X"; then
10330                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10331              else
10332                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10333              fi
10334            fi
10335                        additional_includedir=
10336            case "$found_dir" in
10337              */$acl_libdirstem | */$acl_libdirstem/)
10338                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
10339                additional_includedir="$basedir/include"
10340                ;;
10341            esac
10342            if test "X$additional_includedir" != "X"; then
10343                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
10344                haveit=
10345                if test "X$additional_includedir" = "X/usr/local/include"; then
10346                  if test -n "$GCC"; then
10347                    case $host_os in
10348                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10349                    esac
10350                  fi
10351                fi
10352                if test -z "$haveit"; then
10353                  for x in $CPPFLAGS $INCICONV; do
10354
10355  acl_save_prefix="$prefix"
10356  prefix="$acl_final_prefix"
10357  acl_save_exec_prefix="$exec_prefix"
10358  exec_prefix="$acl_final_exec_prefix"
10359  eval x=\"$x\"
10360  exec_prefix="$acl_save_exec_prefix"
10361  prefix="$acl_save_prefix"
10362
10363                    if test "X$x" = "X-I$additional_includedir"; then
10364                      haveit=yes
10365                      break
10366                    fi
10367                  done
10368                  if test -z "$haveit"; then
10369                    if test -d "$additional_includedir"; then
10370                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10371                    fi
10372                  fi
10373                fi
10374              fi
10375            fi
10376                        if test -n "$found_la"; then
10377                                                        save_libdir="$libdir"
10378              case "$found_la" in
10379                */* | *\\*) . "$found_la" ;;
10380                *) . "./$found_la" ;;
10381              esac
10382              libdir="$save_libdir"
10383                            for dep in $dependency_libs; do
10384                case "$dep" in
10385                  -L*)
10386                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10387                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
10388                      haveit=
10389                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
10390                        if test -n "$GCC"; then
10391                          case $host_os in
10392                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10393                          esac
10394                        fi
10395                      fi
10396                      if test -z "$haveit"; then
10397                        haveit=
10398                        for x in $LDFLAGS $LIBICONV; do
10399
10400  acl_save_prefix="$prefix"
10401  prefix="$acl_final_prefix"
10402  acl_save_exec_prefix="$exec_prefix"
10403  exec_prefix="$acl_final_exec_prefix"
10404  eval x=\"$x\"
10405  exec_prefix="$acl_save_exec_prefix"
10406  prefix="$acl_save_prefix"
10407
10408                          if test "X$x" = "X-L$additional_libdir"; then
10409                            haveit=yes
10410                            break
10411                          fi
10412                        done
10413                        if test -z "$haveit"; then
10414                          if test -d "$additional_libdir"; then
10415                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10416                          fi
10417                        fi
10418                        haveit=
10419                        for x in $LDFLAGS $LTLIBICONV; do
10420
10421  acl_save_prefix="$prefix"
10422  prefix="$acl_final_prefix"
10423  acl_save_exec_prefix="$exec_prefix"
10424  exec_prefix="$acl_final_exec_prefix"
10425  eval x=\"$x\"
10426  exec_prefix="$acl_save_exec_prefix"
10427  prefix="$acl_save_prefix"
10428
10429                          if test "X$x" = "X-L$additional_libdir"; then
10430                            haveit=yes
10431                            break
10432                          fi
10433                        done
10434                        if test -z "$haveit"; then
10435                          if test -d "$additional_libdir"; then
10436                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10437                          fi
10438                        fi
10439                      fi
10440                    fi
10441                    ;;
10442                  -R*)
10443                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
10444                    if test "$enable_rpath" != no; then
10445                                                                  haveit=
10446                      for x in $rpathdirs; do
10447                        if test "X$x" = "X$dir"; then
10448                          haveit=yes
10449                          break
10450                        fi
10451                      done
10452                      if test -z "$haveit"; then
10453                        rpathdirs="$rpathdirs $dir"
10454                      fi
10455                                                                  haveit=
10456                      for x in $ltrpathdirs; do
10457                        if test "X$x" = "X$dir"; then
10458                          haveit=yes
10459                          break
10460                        fi
10461                      done
10462                      if test -z "$haveit"; then
10463                        ltrpathdirs="$ltrpathdirs $dir"
10464                      fi
10465                    fi
10466                    ;;
10467                  -l*)
10468                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10469                    ;;
10470                  *.la)
10471                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10472                    ;;
10473                  *)
10474                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10475                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10476                    ;;
10477                esac
10478              done
10479            fi
10480          else
10481                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10482            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10483          fi
10484        fi
10485      fi
10486    done
10487  done
10488  if test "X$rpathdirs" != "X"; then
10489    if test -n "$hardcode_libdir_separator"; then
10490                        alldirs=
10491      for found_dir in $rpathdirs; do
10492        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10493      done
10494            acl_save_libdir="$libdir"
10495      libdir="$alldirs"
10496      eval flag=\"$hardcode_libdir_flag_spec\"
10497      libdir="$acl_save_libdir"
10498      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10499    else
10500            for found_dir in $rpathdirs; do
10501        acl_save_libdir="$libdir"
10502        libdir="$found_dir"
10503        eval flag=\"$hardcode_libdir_flag_spec\"
10504        libdir="$acl_save_libdir"
10505        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10506      done
10507    fi
10508  fi
10509  if test "X$ltrpathdirs" != "X"; then
10510            for found_dir in $ltrpathdirs; do
10511      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10512    done
10513  fi
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547  echo "$as_me:$LINENO: checking for inttypes.h" >&5
10548echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
10549if test "${gl_cv_header_inttypes_h+set}" = set; then
10550  echo $ECHO_N "(cached) $ECHO_C" >&6
10551else
10552  cat >conftest.$ac_ext <<_ACEOF
10553/* confdefs.h.  */
10554_ACEOF
10555cat confdefs.h >>conftest.$ac_ext
10556cat >>conftest.$ac_ext <<_ACEOF
10557/* end confdefs.h.  */
10558#include <sys/types.h>
10559#include <inttypes.h>
10560int
10561main ()
10562{
10563uintmax_t i = (uintmax_t) -1;
10564  ;
10565  return 0;
10566}
10567_ACEOF
10568rm -f conftest.$ac_objext
10569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10570  (eval $ac_compile) 2>conftest.er1
10571  ac_status=$?
10572  grep -v '^ *+' conftest.er1 >conftest.err
10573  rm -f conftest.er1
10574  cat conftest.err >&5
10575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576  (exit $ac_status); } &&
10577	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
10578  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10579  (eval $ac_try) 2>&5
10580  ac_status=$?
10581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582  (exit $ac_status); }; } &&
10583	 { ac_try='test -s conftest.$ac_objext'
10584  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10585  (eval $ac_try) 2>&5
10586  ac_status=$?
10587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588  (exit $ac_status); }; }; then
10589  gl_cv_header_inttypes_h=yes
10590else
10591  echo "$as_me: failed program was:" >&5
10592sed 's/^/| /' conftest.$ac_ext >&5
10593
10594gl_cv_header_inttypes_h=no
10595fi
10596rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10597fi
10598echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
10599echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6
10600  if test $gl_cv_header_inttypes_h = yes; then
10601
10602cat >>confdefs.h <<_ACEOF
10603#define HAVE_INTTYPES_H_WITH_UINTMAX 1
10604_ACEOF
10605
10606  fi
10607
10608
10609  echo "$as_me:$LINENO: checking for stdint.h" >&5
10610echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
10611if test "${gl_cv_header_stdint_h+set}" = set; then
10612  echo $ECHO_N "(cached) $ECHO_C" >&6
10613else
10614  cat >conftest.$ac_ext <<_ACEOF
10615/* confdefs.h.  */
10616_ACEOF
10617cat confdefs.h >>conftest.$ac_ext
10618cat >>conftest.$ac_ext <<_ACEOF
10619/* end confdefs.h.  */
10620#include <sys/types.h>
10621#include <stdint.h>
10622int
10623main ()
10624{
10625uintmax_t i = (uintmax_t) -1;
10626  ;
10627  return 0;
10628}
10629_ACEOF
10630rm -f conftest.$ac_objext
10631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10632  (eval $ac_compile) 2>conftest.er1
10633  ac_status=$?
10634  grep -v '^ *+' conftest.er1 >conftest.err
10635  rm -f conftest.er1
10636  cat conftest.err >&5
10637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638  (exit $ac_status); } &&
10639	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
10640  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10641  (eval $ac_try) 2>&5
10642  ac_status=$?
10643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644  (exit $ac_status); }; } &&
10645	 { ac_try='test -s conftest.$ac_objext'
10646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10647  (eval $ac_try) 2>&5
10648  ac_status=$?
10649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650  (exit $ac_status); }; }; then
10651  gl_cv_header_stdint_h=yes
10652else
10653  echo "$as_me: failed program was:" >&5
10654sed 's/^/| /' conftest.$ac_ext >&5
10655
10656gl_cv_header_stdint_h=no
10657fi
10658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10659fi
10660echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
10661echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
10662  if test $gl_cv_header_stdint_h = yes; then
10663
10664cat >>confdefs.h <<_ACEOF
10665#define HAVE_STDINT_H_WITH_UINTMAX 1
10666_ACEOF
10667
10668  fi
10669
10670
10671  echo "$as_me:$LINENO: checking for unsigned long long" >&5
10672echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
10673if test "${ac_cv_type_unsigned_long_long+set}" = set; then
10674  echo $ECHO_N "(cached) $ECHO_C" >&6
10675else
10676  cat >conftest.$ac_ext <<_ACEOF
10677/* confdefs.h.  */
10678_ACEOF
10679cat confdefs.h >>conftest.$ac_ext
10680cat >>conftest.$ac_ext <<_ACEOF
10681/* end confdefs.h.  */
10682unsigned long long ull = 1ULL; int i = 63;
10683int
10684main ()
10685{
10686unsigned long long ullmax = (unsigned long long) -1;
10687     return ull << i | ull >> i | ullmax / ull | ullmax % ull;
10688  ;
10689  return 0;
10690}
10691_ACEOF
10692rm -f conftest.$ac_objext conftest$ac_exeext
10693if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10694  (eval $ac_link) 2>conftest.er1
10695  ac_status=$?
10696  grep -v '^ *+' conftest.er1 >conftest.err
10697  rm -f conftest.er1
10698  cat conftest.err >&5
10699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700  (exit $ac_status); } &&
10701	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
10702  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10703  (eval $ac_try) 2>&5
10704  ac_status=$?
10705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706  (exit $ac_status); }; } &&
10707	 { ac_try='test -s conftest$ac_exeext'
10708  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10709  (eval $ac_try) 2>&5
10710  ac_status=$?
10711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712  (exit $ac_status); }; }; then
10713  ac_cv_type_unsigned_long_long=yes
10714else
10715  echo "$as_me: failed program was:" >&5
10716sed 's/^/| /' conftest.$ac_ext >&5
10717
10718ac_cv_type_unsigned_long_long=no
10719fi
10720rm -f conftest.err conftest.$ac_objext \
10721      conftest$ac_exeext conftest.$ac_ext
10722fi
10723echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
10724echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
10725  if test $ac_cv_type_unsigned_long_long = yes; then
10726
10727cat >>confdefs.h <<\_ACEOF
10728#define HAVE_UNSIGNED_LONG_LONG 1
10729_ACEOF
10730
10731  fi
10732
10733
10734
10735
10736  if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
10737
10738    test $ac_cv_type_unsigned_long_long = yes \
10739      && ac_type='unsigned long long' \
10740      || ac_type='unsigned long'
10741
10742cat >>confdefs.h <<_ACEOF
10743#define uintmax_t $ac_type
10744_ACEOF
10745
10746  else
10747
10748cat >>confdefs.h <<\_ACEOF
10749#define HAVE_UINTMAX_T 1
10750_ACEOF
10751
10752  fi
10753
10754
10755      echo "$as_me:$LINENO: checking whether strdup is declared" >&5
10756echo $ECHO_N "checking whether strdup is declared... $ECHO_C" >&6
10757if test "${ac_cv_have_decl_strdup+set}" = set; then
10758  echo $ECHO_N "(cached) $ECHO_C" >&6
10759else
10760  cat >conftest.$ac_ext <<_ACEOF
10761/* confdefs.h.  */
10762_ACEOF
10763cat confdefs.h >>conftest.$ac_ext
10764cat >>conftest.$ac_ext <<_ACEOF
10765/* end confdefs.h.  */
10766$ac_includes_default
10767int
10768main ()
10769{
10770#ifndef strdup
10771  char *p = (char *) strdup;
10772#endif
10773
10774  ;
10775  return 0;
10776}
10777_ACEOF
10778rm -f conftest.$ac_objext
10779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10780  (eval $ac_compile) 2>conftest.er1
10781  ac_status=$?
10782  grep -v '^ *+' conftest.er1 >conftest.err
10783  rm -f conftest.er1
10784  cat conftest.err >&5
10785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786  (exit $ac_status); } &&
10787	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
10788  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10789  (eval $ac_try) 2>&5
10790  ac_status=$?
10791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792  (exit $ac_status); }; } &&
10793	 { ac_try='test -s conftest.$ac_objext'
10794  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10795  (eval $ac_try) 2>&5
10796  ac_status=$?
10797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798  (exit $ac_status); }; }; then
10799  ac_cv_have_decl_strdup=yes
10800else
10801  echo "$as_me: failed program was:" >&5
10802sed 's/^/| /' conftest.$ac_ext >&5
10803
10804ac_cv_have_decl_strdup=no
10805fi
10806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10807fi
10808echo "$as_me:$LINENO: result: $ac_cv_have_decl_strdup" >&5
10809echo "${ECHO_T}$ac_cv_have_decl_strdup" >&6
10810if test $ac_cv_have_decl_strdup = yes; then
10811
10812cat >>confdefs.h <<_ACEOF
10813#define HAVE_DECL_STRDUP 1
10814_ACEOF
10815
10816
10817else
10818  cat >>confdefs.h <<_ACEOF
10819#define HAVE_DECL_STRDUP 0
10820_ACEOF
10821
10822
10823fi
10824
10825
10826
10827
10828      echo "$as_me:$LINENO: checking whether strndup is declared" >&5
10829echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6
10830if test "${ac_cv_have_decl_strndup+set}" = set; then
10831  echo $ECHO_N "(cached) $ECHO_C" >&6
10832else
10833  cat >conftest.$ac_ext <<_ACEOF
10834/* confdefs.h.  */
10835_ACEOF
10836cat confdefs.h >>conftest.$ac_ext
10837cat >>conftest.$ac_ext <<_ACEOF
10838/* end confdefs.h.  */
10839$ac_includes_default
10840int
10841main ()
10842{
10843#ifndef strndup
10844  char *p = (char *) strndup;
10845#endif
10846
10847  ;
10848  return 0;
10849}
10850_ACEOF
10851rm -f conftest.$ac_objext
10852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10853  (eval $ac_compile) 2>conftest.er1
10854  ac_status=$?
10855  grep -v '^ *+' conftest.er1 >conftest.err
10856  rm -f conftest.er1
10857  cat conftest.err >&5
10858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859  (exit $ac_status); } &&
10860	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
10861  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10862  (eval $ac_try) 2>&5
10863  ac_status=$?
10864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865  (exit $ac_status); }; } &&
10866	 { ac_try='test -s conftest.$ac_objext'
10867  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10868  (eval $ac_try) 2>&5
10869  ac_status=$?
10870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871  (exit $ac_status); }; }; then
10872  ac_cv_have_decl_strndup=yes
10873else
10874  echo "$as_me: failed program was:" >&5
10875sed 's/^/| /' conftest.$ac_ext >&5
10876
10877ac_cv_have_decl_strndup=no
10878fi
10879rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10880fi
10881echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
10882echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6
10883if test $ac_cv_have_decl_strndup = yes; then
10884
10885cat >>confdefs.h <<_ACEOF
10886#define HAVE_DECL_STRNDUP 1
10887_ACEOF
10888
10889
10890else
10891  cat >>confdefs.h <<_ACEOF
10892#define HAVE_DECL_STRNDUP 0
10893_ACEOF
10894
10895
10896fi
10897
10898
10899
10900
10901      echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
10902echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6
10903if test "${ac_cv_have_decl_strnlen+set}" = set; then
10904  echo $ECHO_N "(cached) $ECHO_C" >&6
10905else
10906  cat >conftest.$ac_ext <<_ACEOF
10907/* confdefs.h.  */
10908_ACEOF
10909cat confdefs.h >>conftest.$ac_ext
10910cat >>conftest.$ac_ext <<_ACEOF
10911/* end confdefs.h.  */
10912$ac_includes_default
10913int
10914main ()
10915{
10916#ifndef strnlen
10917  char *p = (char *) strnlen;
10918#endif
10919
10920  ;
10921  return 0;
10922}
10923_ACEOF
10924rm -f conftest.$ac_objext
10925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10926  (eval $ac_compile) 2>conftest.er1
10927  ac_status=$?
10928  grep -v '^ *+' conftest.er1 >conftest.err
10929  rm -f conftest.er1
10930  cat conftest.err >&5
10931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932  (exit $ac_status); } &&
10933	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
10934  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10935  (eval $ac_try) 2>&5
10936  ac_status=$?
10937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938  (exit $ac_status); }; } &&
10939	 { ac_try='test -s conftest.$ac_objext'
10940  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10941  (eval $ac_try) 2>&5
10942  ac_status=$?
10943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944  (exit $ac_status); }; }; then
10945  ac_cv_have_decl_strnlen=yes
10946else
10947  echo "$as_me: failed program was:" >&5
10948sed 's/^/| /' conftest.$ac_ext >&5
10949
10950ac_cv_have_decl_strnlen=no
10951fi
10952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10953fi
10954echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
10955echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6
10956if test $ac_cv_have_decl_strnlen = yes; then
10957
10958cat >>confdefs.h <<_ACEOF
10959#define HAVE_DECL_STRNLEN 1
10960_ACEOF
10961
10962
10963else
10964  cat >>confdefs.h <<_ACEOF
10965#define HAVE_DECL_STRNLEN 0
10966_ACEOF
10967
10968
10969fi
10970
10971
10972
10973
10974      echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
10975echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6
10976if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
10977  echo $ECHO_N "(cached) $ECHO_C" >&6
10978else
10979  cat >conftest.$ac_ext <<_ACEOF
10980/* confdefs.h.  */
10981_ACEOF
10982cat confdefs.h >>conftest.$ac_ext
10983cat >>conftest.$ac_ext <<_ACEOF
10984/* end confdefs.h.  */
10985$ac_includes_default
10986int
10987main ()
10988{
10989#ifndef clearerr_unlocked
10990  char *p = (char *) clearerr_unlocked;
10991#endif
10992
10993  ;
10994  return 0;
10995}
10996_ACEOF
10997rm -f conftest.$ac_objext
10998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10999  (eval $ac_compile) 2>conftest.er1
11000  ac_status=$?
11001  grep -v '^ *+' conftest.er1 >conftest.err
11002  rm -f conftest.er1
11003  cat conftest.err >&5
11004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005  (exit $ac_status); } &&
11006	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
11007  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11008  (eval $ac_try) 2>&5
11009  ac_status=$?
11010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011  (exit $ac_status); }; } &&
11012	 { ac_try='test -s conftest.$ac_objext'
11013  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11014  (eval $ac_try) 2>&5
11015  ac_status=$?
11016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017  (exit $ac_status); }; }; then
11018  ac_cv_have_decl_clearerr_unlocked=yes
11019else
11020  echo "$as_me: failed program was:" >&5
11021sed 's/^/| /' conftest.$ac_ext >&5
11022
11023ac_cv_have_decl_clearerr_unlocked=no
11024fi
11025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11026fi
11027echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
11028echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6
11029if test $ac_cv_have_decl_clearerr_unlocked = yes; then
11030
11031cat >>confdefs.h <<_ACEOF
11032#define HAVE_DECL_CLEARERR_UNLOCKED 1
11033_ACEOF
11034
11035
11036else
11037  cat >>confdefs.h <<_ACEOF
11038#define HAVE_DECL_CLEARERR_UNLOCKED 0
11039_ACEOF
11040
11041
11042fi
11043
11044
11045
11046
11047      echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11048echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
11049if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11050  echo $ECHO_N "(cached) $ECHO_C" >&6
11051else
11052  cat >conftest.$ac_ext <<_ACEOF
11053/* confdefs.h.  */
11054_ACEOF
11055cat confdefs.h >>conftest.$ac_ext
11056cat >>conftest.$ac_ext <<_ACEOF
11057/* end confdefs.h.  */
11058$ac_includes_default
11059int
11060main ()
11061{
11062#ifndef feof_unlocked
11063  char *p = (char *) feof_unlocked;
11064#endif
11065
11066  ;
11067  return 0;
11068}
11069_ACEOF
11070rm -f conftest.$ac_objext
11071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11072  (eval $ac_compile) 2>conftest.er1
11073  ac_status=$?
11074  grep -v '^ *+' conftest.er1 >conftest.err
11075  rm -f conftest.er1
11076  cat conftest.err >&5
11077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078  (exit $ac_status); } &&
11079	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
11080  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11081  (eval $ac_try) 2>&5
11082  ac_status=$?
11083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084  (exit $ac_status); }; } &&
11085	 { ac_try='test -s conftest.$ac_objext'
11086  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11087  (eval $ac_try) 2>&5
11088  ac_status=$?
11089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090  (exit $ac_status); }; }; then
11091  ac_cv_have_decl_feof_unlocked=yes
11092else
11093  echo "$as_me: failed program was:" >&5
11094sed 's/^/| /' conftest.$ac_ext >&5
11095
11096ac_cv_have_decl_feof_unlocked=no
11097fi
11098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11099fi
11100echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11101echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
11102if test $ac_cv_have_decl_feof_unlocked = yes; then
11103
11104cat >>confdefs.h <<_ACEOF
11105#define HAVE_DECL_FEOF_UNLOCKED 1
11106_ACEOF
11107
11108
11109else
11110  cat >>confdefs.h <<_ACEOF
11111#define HAVE_DECL_FEOF_UNLOCKED 0
11112_ACEOF
11113
11114
11115fi
11116
11117
11118
11119
11120      echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
11121echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6
11122if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
11123  echo $ECHO_N "(cached) $ECHO_C" >&6
11124else
11125  cat >conftest.$ac_ext <<_ACEOF
11126/* confdefs.h.  */
11127_ACEOF
11128cat confdefs.h >>conftest.$ac_ext
11129cat >>conftest.$ac_ext <<_ACEOF
11130/* end confdefs.h.  */
11131$ac_includes_default
11132int
11133main ()
11134{
11135#ifndef ferror_unlocked
11136  char *p = (char *) ferror_unlocked;
11137#endif
11138
11139  ;
11140  return 0;
11141}
11142_ACEOF
11143rm -f conftest.$ac_objext
11144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11145  (eval $ac_compile) 2>conftest.er1
11146  ac_status=$?
11147  grep -v '^ *+' conftest.er1 >conftest.err
11148  rm -f conftest.er1
11149  cat conftest.err >&5
11150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151  (exit $ac_status); } &&
11152	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
11153  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11154  (eval $ac_try) 2>&5
11155  ac_status=$?
11156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157  (exit $ac_status); }; } &&
11158	 { ac_try='test -s conftest.$ac_objext'
11159  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11160  (eval $ac_try) 2>&5
11161  ac_status=$?
11162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163  (exit $ac_status); }; }; then
11164  ac_cv_have_decl_ferror_unlocked=yes
11165else
11166  echo "$as_me: failed program was:" >&5
11167sed 's/^/| /' conftest.$ac_ext >&5
11168
11169ac_cv_have_decl_ferror_unlocked=no
11170fi
11171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11172fi
11173echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
11174echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6
11175if test $ac_cv_have_decl_ferror_unlocked = yes; then
11176
11177cat >>confdefs.h <<_ACEOF
11178#define HAVE_DECL_FERROR_UNLOCKED 1
11179_ACEOF
11180
11181
11182else
11183  cat >>confdefs.h <<_ACEOF
11184#define HAVE_DECL_FERROR_UNLOCKED 0
11185_ACEOF
11186
11187
11188fi
11189
11190
11191
11192
11193      echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
11194echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6
11195if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
11196  echo $ECHO_N "(cached) $ECHO_C" >&6
11197else
11198  cat >conftest.$ac_ext <<_ACEOF
11199/* confdefs.h.  */
11200_ACEOF
11201cat confdefs.h >>conftest.$ac_ext
11202cat >>conftest.$ac_ext <<_ACEOF
11203/* end confdefs.h.  */
11204$ac_includes_default
11205int
11206main ()
11207{
11208#ifndef fflush_unlocked
11209  char *p = (char *) fflush_unlocked;
11210#endif
11211
11212  ;
11213  return 0;
11214}
11215_ACEOF
11216rm -f conftest.$ac_objext
11217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11218  (eval $ac_compile) 2>conftest.er1
11219  ac_status=$?
11220  grep -v '^ *+' conftest.er1 >conftest.err
11221  rm -f conftest.er1
11222  cat conftest.err >&5
11223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224  (exit $ac_status); } &&
11225	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
11226  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11227  (eval $ac_try) 2>&5
11228  ac_status=$?
11229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230  (exit $ac_status); }; } &&
11231	 { ac_try='test -s conftest.$ac_objext'
11232  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11233  (eval $ac_try) 2>&5
11234  ac_status=$?
11235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236  (exit $ac_status); }; }; then
11237  ac_cv_have_decl_fflush_unlocked=yes
11238else
11239  echo "$as_me: failed program was:" >&5
11240sed 's/^/| /' conftest.$ac_ext >&5
11241
11242ac_cv_have_decl_fflush_unlocked=no
11243fi
11244rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11245fi
11246echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
11247echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6
11248if test $ac_cv_have_decl_fflush_unlocked = yes; then
11249
11250cat >>confdefs.h <<_ACEOF
11251#define HAVE_DECL_FFLUSH_UNLOCKED 1
11252_ACEOF
11253
11254
11255else
11256  cat >>confdefs.h <<_ACEOF
11257#define HAVE_DECL_FFLUSH_UNLOCKED 0
11258_ACEOF
11259
11260
11261fi
11262
11263
11264
11265
11266      echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11267echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
11268if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11269  echo $ECHO_N "(cached) $ECHO_C" >&6
11270else
11271  cat >conftest.$ac_ext <<_ACEOF
11272/* confdefs.h.  */
11273_ACEOF
11274cat confdefs.h >>conftest.$ac_ext
11275cat >>conftest.$ac_ext <<_ACEOF
11276/* end confdefs.h.  */
11277$ac_includes_default
11278int
11279main ()
11280{
11281#ifndef fgets_unlocked
11282  char *p = (char *) fgets_unlocked;
11283#endif
11284
11285  ;
11286  return 0;
11287}
11288_ACEOF
11289rm -f conftest.$ac_objext
11290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11291  (eval $ac_compile) 2>conftest.er1
11292  ac_status=$?
11293  grep -v '^ *+' conftest.er1 >conftest.err
11294  rm -f conftest.er1
11295  cat conftest.err >&5
11296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297  (exit $ac_status); } &&
11298	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
11299  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11300  (eval $ac_try) 2>&5
11301  ac_status=$?
11302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303  (exit $ac_status); }; } &&
11304	 { ac_try='test -s conftest.$ac_objext'
11305  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11306  (eval $ac_try) 2>&5
11307  ac_status=$?
11308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309  (exit $ac_status); }; }; then
11310  ac_cv_have_decl_fgets_unlocked=yes
11311else
11312  echo "$as_me: failed program was:" >&5
11313sed 's/^/| /' conftest.$ac_ext >&5
11314
11315ac_cv_have_decl_fgets_unlocked=no
11316fi
11317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11318fi
11319echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
11320echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
11321if test $ac_cv_have_decl_fgets_unlocked = yes; then
11322
11323cat >>confdefs.h <<_ACEOF
11324#define HAVE_DECL_FGETS_UNLOCKED 1
11325_ACEOF
11326
11327
11328else
11329  cat >>confdefs.h <<_ACEOF
11330#define HAVE_DECL_FGETS_UNLOCKED 0
11331_ACEOF
11332
11333
11334fi
11335
11336
11337
11338
11339      echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
11340echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6
11341if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
11342  echo $ECHO_N "(cached) $ECHO_C" >&6
11343else
11344  cat >conftest.$ac_ext <<_ACEOF
11345/* confdefs.h.  */
11346_ACEOF
11347cat confdefs.h >>conftest.$ac_ext
11348cat >>conftest.$ac_ext <<_ACEOF
11349/* end confdefs.h.  */
11350$ac_includes_default
11351int
11352main ()
11353{
11354#ifndef fputc_unlocked
11355  char *p = (char *) fputc_unlocked;
11356#endif
11357
11358  ;
11359  return 0;
11360}
11361_ACEOF
11362rm -f conftest.$ac_objext
11363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11364  (eval $ac_compile) 2>conftest.er1
11365  ac_status=$?
11366  grep -v '^ *+' conftest.er1 >conftest.err
11367  rm -f conftest.er1
11368  cat conftest.err >&5
11369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370  (exit $ac_status); } &&
11371	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
11372  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11373  (eval $ac_try) 2>&5
11374  ac_status=$?
11375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376  (exit $ac_status); }; } &&
11377	 { ac_try='test -s conftest.$ac_objext'
11378  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11379  (eval $ac_try) 2>&5
11380  ac_status=$?
11381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382  (exit $ac_status); }; }; then
11383  ac_cv_have_decl_fputc_unlocked=yes
11384else
11385  echo "$as_me: failed program was:" >&5
11386sed 's/^/| /' conftest.$ac_ext >&5
11387
11388ac_cv_have_decl_fputc_unlocked=no
11389fi
11390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11391fi
11392echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
11393echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6
11394if test $ac_cv_have_decl_fputc_unlocked = yes; then
11395
11396cat >>confdefs.h <<_ACEOF
11397#define HAVE_DECL_FPUTC_UNLOCKED 1
11398_ACEOF
11399
11400
11401else
11402  cat >>confdefs.h <<_ACEOF
11403#define HAVE_DECL_FPUTC_UNLOCKED 0
11404_ACEOF
11405
11406
11407fi
11408
11409
11410
11411
11412      echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
11413echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6
11414if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
11415  echo $ECHO_N "(cached) $ECHO_C" >&6
11416else
11417  cat >conftest.$ac_ext <<_ACEOF
11418/* confdefs.h.  */
11419_ACEOF
11420cat confdefs.h >>conftest.$ac_ext
11421cat >>conftest.$ac_ext <<_ACEOF
11422/* end confdefs.h.  */
11423$ac_includes_default
11424int
11425main ()
11426{
11427#ifndef fputs_unlocked
11428  char *p = (char *) fputs_unlocked;
11429#endif
11430
11431  ;
11432  return 0;
11433}
11434_ACEOF
11435rm -f conftest.$ac_objext
11436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11437  (eval $ac_compile) 2>conftest.er1
11438  ac_status=$?
11439  grep -v '^ *+' conftest.er1 >conftest.err
11440  rm -f conftest.er1
11441  cat conftest.err >&5
11442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443  (exit $ac_status); } &&
11444	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
11445  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11446  (eval $ac_try) 2>&5
11447  ac_status=$?
11448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449  (exit $ac_status); }; } &&
11450	 { ac_try='test -s conftest.$ac_objext'
11451  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11452  (eval $ac_try) 2>&5
11453  ac_status=$?
11454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455  (exit $ac_status); }; }; then
11456  ac_cv_have_decl_fputs_unlocked=yes
11457else
11458  echo "$as_me: failed program was:" >&5
11459sed 's/^/| /' conftest.$ac_ext >&5
11460
11461ac_cv_have_decl_fputs_unlocked=no
11462fi
11463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11464fi
11465echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
11466echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6
11467if test $ac_cv_have_decl_fputs_unlocked = yes; then
11468
11469cat >>confdefs.h <<_ACEOF
11470#define HAVE_DECL_FPUTS_UNLOCKED 1
11471_ACEOF
11472
11473
11474else
11475  cat >>confdefs.h <<_ACEOF
11476#define HAVE_DECL_FPUTS_UNLOCKED 0
11477_ACEOF
11478
11479
11480fi
11481
11482
11483
11484
11485      echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
11486echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6
11487if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
11488  echo $ECHO_N "(cached) $ECHO_C" >&6
11489else
11490  cat >conftest.$ac_ext <<_ACEOF
11491/* confdefs.h.  */
11492_ACEOF
11493cat confdefs.h >>conftest.$ac_ext
11494cat >>conftest.$ac_ext <<_ACEOF
11495/* end confdefs.h.  */
11496$ac_includes_default
11497int
11498main ()
11499{
11500#ifndef fread_unlocked
11501  char *p = (char *) fread_unlocked;
11502#endif
11503
11504  ;
11505  return 0;
11506}
11507_ACEOF
11508rm -f conftest.$ac_objext
11509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11510  (eval $ac_compile) 2>conftest.er1
11511  ac_status=$?
11512  grep -v '^ *+' conftest.er1 >conftest.err
11513  rm -f conftest.er1
11514  cat conftest.err >&5
11515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516  (exit $ac_status); } &&
11517	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
11518  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11519  (eval $ac_try) 2>&5
11520  ac_status=$?
11521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11522  (exit $ac_status); }; } &&
11523	 { ac_try='test -s conftest.$ac_objext'
11524  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11525  (eval $ac_try) 2>&5
11526  ac_status=$?
11527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528  (exit $ac_status); }; }; then
11529  ac_cv_have_decl_fread_unlocked=yes
11530else
11531  echo "$as_me: failed program was:" >&5
11532sed 's/^/| /' conftest.$ac_ext >&5
11533
11534ac_cv_have_decl_fread_unlocked=no
11535fi
11536rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11537fi
11538echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
11539echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6
11540if test $ac_cv_have_decl_fread_unlocked = yes; then
11541
11542cat >>confdefs.h <<_ACEOF
11543#define HAVE_DECL_FREAD_UNLOCKED 1
11544_ACEOF
11545
11546
11547else
11548  cat >>confdefs.h <<_ACEOF
11549#define HAVE_DECL_FREAD_UNLOCKED 0
11550_ACEOF
11551
11552
11553fi
11554
11555
11556
11557
11558      echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
11559echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6
11560if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
11561  echo $ECHO_N "(cached) $ECHO_C" >&6
11562else
11563  cat >conftest.$ac_ext <<_ACEOF
11564/* confdefs.h.  */
11565_ACEOF
11566cat confdefs.h >>conftest.$ac_ext
11567cat >>conftest.$ac_ext <<_ACEOF
11568/* end confdefs.h.  */
11569$ac_includes_default
11570int
11571main ()
11572{
11573#ifndef fwrite_unlocked
11574  char *p = (char *) fwrite_unlocked;
11575#endif
11576
11577  ;
11578  return 0;
11579}
11580_ACEOF
11581rm -f conftest.$ac_objext
11582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11583  (eval $ac_compile) 2>conftest.er1
11584  ac_status=$?
11585  grep -v '^ *+' conftest.er1 >conftest.err
11586  rm -f conftest.er1
11587  cat conftest.err >&5
11588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589  (exit $ac_status); } &&
11590	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
11591  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11592  (eval $ac_try) 2>&5
11593  ac_status=$?
11594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595  (exit $ac_status); }; } &&
11596	 { ac_try='test -s conftest.$ac_objext'
11597  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11598  (eval $ac_try) 2>&5
11599  ac_status=$?
11600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601  (exit $ac_status); }; }; then
11602  ac_cv_have_decl_fwrite_unlocked=yes
11603else
11604  echo "$as_me: failed program was:" >&5
11605sed 's/^/| /' conftest.$ac_ext >&5
11606
11607ac_cv_have_decl_fwrite_unlocked=no
11608fi
11609rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11610fi
11611echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
11612echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6
11613if test $ac_cv_have_decl_fwrite_unlocked = yes; then
11614
11615cat >>confdefs.h <<_ACEOF
11616#define HAVE_DECL_FWRITE_UNLOCKED 1
11617_ACEOF
11618
11619
11620else
11621  cat >>confdefs.h <<_ACEOF
11622#define HAVE_DECL_FWRITE_UNLOCKED 0
11623_ACEOF
11624
11625
11626fi
11627
11628
11629
11630
11631      echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
11632echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
11633if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
11634  echo $ECHO_N "(cached) $ECHO_C" >&6
11635else
11636  cat >conftest.$ac_ext <<_ACEOF
11637/* confdefs.h.  */
11638_ACEOF
11639cat confdefs.h >>conftest.$ac_ext
11640cat >>conftest.$ac_ext <<_ACEOF
11641/* end confdefs.h.  */
11642$ac_includes_default
11643int
11644main ()
11645{
11646#ifndef getc_unlocked
11647  char *p = (char *) getc_unlocked;
11648#endif
11649
11650  ;
11651  return 0;
11652}
11653_ACEOF
11654rm -f conftest.$ac_objext
11655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11656  (eval $ac_compile) 2>conftest.er1
11657  ac_status=$?
11658  grep -v '^ *+' conftest.er1 >conftest.err
11659  rm -f conftest.er1
11660  cat conftest.err >&5
11661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662  (exit $ac_status); } &&
11663	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
11664  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11665  (eval $ac_try) 2>&5
11666  ac_status=$?
11667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668  (exit $ac_status); }; } &&
11669	 { ac_try='test -s conftest.$ac_objext'
11670  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11671  (eval $ac_try) 2>&5
11672  ac_status=$?
11673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674  (exit $ac_status); }; }; then
11675  ac_cv_have_decl_getc_unlocked=yes
11676else
11677  echo "$as_me: failed program was:" >&5
11678sed 's/^/| /' conftest.$ac_ext >&5
11679
11680ac_cv_have_decl_getc_unlocked=no
11681fi
11682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11683fi
11684echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
11685echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
11686if test $ac_cv_have_decl_getc_unlocked = yes; then
11687
11688cat >>confdefs.h <<_ACEOF
11689#define HAVE_DECL_GETC_UNLOCKED 1
11690_ACEOF
11691
11692
11693else
11694  cat >>confdefs.h <<_ACEOF
11695#define HAVE_DECL_GETC_UNLOCKED 0
11696_ACEOF
11697
11698
11699fi
11700
11701
11702
11703
11704      echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
11705echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6
11706if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
11707  echo $ECHO_N "(cached) $ECHO_C" >&6
11708else
11709  cat >conftest.$ac_ext <<_ACEOF
11710/* confdefs.h.  */
11711_ACEOF
11712cat confdefs.h >>conftest.$ac_ext
11713cat >>conftest.$ac_ext <<_ACEOF
11714/* end confdefs.h.  */
11715$ac_includes_default
11716int
11717main ()
11718{
11719#ifndef getchar_unlocked
11720  char *p = (char *) getchar_unlocked;
11721#endif
11722
11723  ;
11724  return 0;
11725}
11726_ACEOF
11727rm -f conftest.$ac_objext
11728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11729  (eval $ac_compile) 2>conftest.er1
11730  ac_status=$?
11731  grep -v '^ *+' conftest.er1 >conftest.err
11732  rm -f conftest.er1
11733  cat conftest.err >&5
11734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735  (exit $ac_status); } &&
11736	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
11737  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11738  (eval $ac_try) 2>&5
11739  ac_status=$?
11740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741  (exit $ac_status); }; } &&
11742	 { ac_try='test -s conftest.$ac_objext'
11743  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11744  (eval $ac_try) 2>&5
11745  ac_status=$?
11746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747  (exit $ac_status); }; }; then
11748  ac_cv_have_decl_getchar_unlocked=yes
11749else
11750  echo "$as_me: failed program was:" >&5
11751sed 's/^/| /' conftest.$ac_ext >&5
11752
11753ac_cv_have_decl_getchar_unlocked=no
11754fi
11755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11756fi
11757echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
11758echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6
11759if test $ac_cv_have_decl_getchar_unlocked = yes; then
11760
11761cat >>confdefs.h <<_ACEOF
11762#define HAVE_DECL_GETCHAR_UNLOCKED 1
11763_ACEOF
11764
11765
11766else
11767  cat >>confdefs.h <<_ACEOF
11768#define HAVE_DECL_GETCHAR_UNLOCKED 0
11769_ACEOF
11770
11771
11772fi
11773
11774
11775
11776
11777      echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
11778echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6
11779if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
11780  echo $ECHO_N "(cached) $ECHO_C" >&6
11781else
11782  cat >conftest.$ac_ext <<_ACEOF
11783/* confdefs.h.  */
11784_ACEOF
11785cat confdefs.h >>conftest.$ac_ext
11786cat >>conftest.$ac_ext <<_ACEOF
11787/* end confdefs.h.  */
11788$ac_includes_default
11789int
11790main ()
11791{
11792#ifndef putc_unlocked
11793  char *p = (char *) putc_unlocked;
11794#endif
11795
11796  ;
11797  return 0;
11798}
11799_ACEOF
11800rm -f conftest.$ac_objext
11801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11802  (eval $ac_compile) 2>conftest.er1
11803  ac_status=$?
11804  grep -v '^ *+' conftest.er1 >conftest.err
11805  rm -f conftest.er1
11806  cat conftest.err >&5
11807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808  (exit $ac_status); } &&
11809	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
11810  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11811  (eval $ac_try) 2>&5
11812  ac_status=$?
11813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814  (exit $ac_status); }; } &&
11815	 { ac_try='test -s conftest.$ac_objext'
11816  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11817  (eval $ac_try) 2>&5
11818  ac_status=$?
11819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820  (exit $ac_status); }; }; then
11821  ac_cv_have_decl_putc_unlocked=yes
11822else
11823  echo "$as_me: failed program was:" >&5
11824sed 's/^/| /' conftest.$ac_ext >&5
11825
11826ac_cv_have_decl_putc_unlocked=no
11827fi
11828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11829fi
11830echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
11831echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6
11832if test $ac_cv_have_decl_putc_unlocked = yes; then
11833
11834cat >>confdefs.h <<_ACEOF
11835#define HAVE_DECL_PUTC_UNLOCKED 1
11836_ACEOF
11837
11838
11839else
11840  cat >>confdefs.h <<_ACEOF
11841#define HAVE_DECL_PUTC_UNLOCKED 0
11842_ACEOF
11843
11844
11845fi
11846
11847
11848
11849
11850      echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
11851echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6
11852if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
11853  echo $ECHO_N "(cached) $ECHO_C" >&6
11854else
11855  cat >conftest.$ac_ext <<_ACEOF
11856/* confdefs.h.  */
11857_ACEOF
11858cat confdefs.h >>conftest.$ac_ext
11859cat >>conftest.$ac_ext <<_ACEOF
11860/* end confdefs.h.  */
11861$ac_includes_default
11862int
11863main ()
11864{
11865#ifndef putchar_unlocked
11866  char *p = (char *) putchar_unlocked;
11867#endif
11868
11869  ;
11870  return 0;
11871}
11872_ACEOF
11873rm -f conftest.$ac_objext
11874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11875  (eval $ac_compile) 2>conftest.er1
11876  ac_status=$?
11877  grep -v '^ *+' conftest.er1 >conftest.err
11878  rm -f conftest.er1
11879  cat conftest.err >&5
11880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881  (exit $ac_status); } &&
11882	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
11883  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11884  (eval $ac_try) 2>&5
11885  ac_status=$?
11886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887  (exit $ac_status); }; } &&
11888	 { ac_try='test -s conftest.$ac_objext'
11889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11890  (eval $ac_try) 2>&5
11891  ac_status=$?
11892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893  (exit $ac_status); }; }; then
11894  ac_cv_have_decl_putchar_unlocked=yes
11895else
11896  echo "$as_me: failed program was:" >&5
11897sed 's/^/| /' conftest.$ac_ext >&5
11898
11899ac_cv_have_decl_putchar_unlocked=no
11900fi
11901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11902fi
11903echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
11904echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6
11905if test $ac_cv_have_decl_putchar_unlocked = yes; then
11906
11907cat >>confdefs.h <<_ACEOF
11908#define HAVE_DECL_PUTCHAR_UNLOCKED 1
11909_ACEOF
11910
11911
11912else
11913  cat >>confdefs.h <<_ACEOF
11914#define HAVE_DECL_PUTCHAR_UNLOCKED 0
11915_ACEOF
11916
11917
11918fi
11919
11920
11921
11922
11923
11924
11925
11926  case $LIBOBJS in
11927    "dirname.$ac_objext"   | \
11928  *" dirname.$ac_objext"   | \
11929    "dirname.$ac_objext "* | \
11930  *" dirname.$ac_objext "* ) ;;
11931  *) LIBOBJS="$LIBOBJS dirname.$ac_objext" ;;
11932esac
11933
11934
11935
11936
11937
11938
11939
11940  echo "$as_me:$LINENO: checking for error_at_line" >&5
11941echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
11942if test "${ac_cv_lib_error_at_line+set}" = set; then
11943  echo $ECHO_N "(cached) $ECHO_C" >&6
11944else
11945  cat >conftest.$ac_ext <<_ACEOF
11946/* confdefs.h.  */
11947_ACEOF
11948cat confdefs.h >>conftest.$ac_ext
11949cat >>conftest.$ac_ext <<_ACEOF
11950/* end confdefs.h.  */
11951$ac_includes_default
11952int
11953main ()
11954{
11955error_at_line (0, 0, "", 0, "");
11956  ;
11957  return 0;
11958}
11959_ACEOF
11960rm -f conftest.$ac_objext conftest$ac_exeext
11961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11962  (eval $ac_link) 2>conftest.er1
11963  ac_status=$?
11964  grep -v '^ *+' conftest.er1 >conftest.err
11965  rm -f conftest.er1
11966  cat conftest.err >&5
11967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968  (exit $ac_status); } &&
11969	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
11970  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11971  (eval $ac_try) 2>&5
11972  ac_status=$?
11973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974  (exit $ac_status); }; } &&
11975	 { ac_try='test -s conftest$ac_exeext'
11976  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11977  (eval $ac_try) 2>&5
11978  ac_status=$?
11979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980  (exit $ac_status); }; }; then
11981  ac_cv_lib_error_at_line=yes
11982else
11983  echo "$as_me: failed program was:" >&5
11984sed 's/^/| /' conftest.$ac_ext >&5
11985
11986ac_cv_lib_error_at_line=no
11987fi
11988rm -f conftest.err conftest.$ac_objext \
11989      conftest$ac_exeext conftest.$ac_ext
11990fi
11991echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
11992echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
11993if test $ac_cv_lib_error_at_line = no; then
11994  case $LIBOBJS in
11995    "error.$ac_objext"   | \
11996  *" error.$ac_objext"   | \
11997    "error.$ac_objext "* | \
11998  *" error.$ac_objext "* ) ;;
11999  *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
12000esac
12001
12002fi
12003
12004
12005
12006  :
12007
12008
12009
12010
12011
12012
12013  case $LIBOBJS in
12014    "exitfail.$ac_objext"   | \
12015  *" exitfail.$ac_objext"   | \
12016    "exitfail.$ac_objext "* | \
12017  *" exitfail.$ac_objext "* ) ;;
12018  *) LIBOBJS="$LIBOBJS exitfail.$ac_objext" ;;
12019esac
12020
12021
12022    :
12023
12024
12025
12026
12027
12028  if test -n "$GETOPT_H"; then
12029
12030  case $LIBOBJS in
12031    "getopt.$ac_objext"   | \
12032  *" getopt.$ac_objext"   | \
12033    "getopt.$ac_objext "* | \
12034  *" getopt.$ac_objext "* ) ;;
12035  *) LIBOBJS="$LIBOBJS getopt.$ac_objext" ;;
12036esac
12037
12038  case $LIBOBJS in
12039    "getopt1.$ac_objext"   | \
12040  *" getopt1.$ac_objext"   | \
12041    "getopt1.$ac_objext "* | \
12042  *" getopt1.$ac_objext "* ) ;;
12043  *) LIBOBJS="$LIBOBJS getopt1.$ac_objext" ;;
12044esac
12045
12046
12047  GETOPT_H=getopt.h
12048
12049cat >>confdefs.h <<\_ACEOF
12050#define __GETOPT_PREFIX rpl_
12051_ACEOF
12052
12053
12054
12055
12056
12057  :
12058
12059
12060
12061
12062
12063
12064
12065fi
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085    echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
12086echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
12087if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
12088  echo $ECHO_N "(cached) $ECHO_C" >&6
12089else
12090  gt_save_CPPFLAGS="$CPPFLAGS"
12091     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12092     gt_save_LIBS="$LIBS"
12093     LIBS="$LIBS -framework CoreFoundation"
12094     cat >conftest.$ac_ext <<_ACEOF
12095/* confdefs.h.  */
12096_ACEOF
12097cat confdefs.h >>conftest.$ac_ext
12098cat >>conftest.$ac_ext <<_ACEOF
12099/* end confdefs.h.  */
12100#include <CFPreferences.h>
12101int
12102main ()
12103{
12104CFPreferencesCopyAppValue(NULL, NULL)
12105  ;
12106  return 0;
12107}
12108_ACEOF
12109rm -f conftest.$ac_objext conftest$ac_exeext
12110if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12111  (eval $ac_link) 2>conftest.er1
12112  ac_status=$?
12113  grep -v '^ *+' conftest.er1 >conftest.err
12114  rm -f conftest.er1
12115  cat conftest.err >&5
12116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117  (exit $ac_status); } &&
12118	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
12119  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12120  (eval $ac_try) 2>&5
12121  ac_status=$?
12122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123  (exit $ac_status); }; } &&
12124	 { ac_try='test -s conftest$ac_exeext'
12125  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12126  (eval $ac_try) 2>&5
12127  ac_status=$?
12128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129  (exit $ac_status); }; }; then
12130  gt_cv_func_CFPreferencesCopyAppValue=yes
12131else
12132  echo "$as_me: failed program was:" >&5
12133sed 's/^/| /' conftest.$ac_ext >&5
12134
12135gt_cv_func_CFPreferencesCopyAppValue=no
12136fi
12137rm -f conftest.err conftest.$ac_objext \
12138      conftest$ac_exeext conftest.$ac_ext
12139     CPPFLAGS="$gt_save_CPPFLAGS"
12140     LIBS="$gt_save_LIBS"
12141fi
12142echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12143echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
12144  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12145
12146cat >>confdefs.h <<\_ACEOF
12147#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
12148_ACEOF
12149
12150  fi
12151    echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
12152echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
12153if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
12154  echo $ECHO_N "(cached) $ECHO_C" >&6
12155else
12156  gt_save_CPPFLAGS="$CPPFLAGS"
12157     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12158     gt_save_LIBS="$LIBS"
12159     LIBS="$LIBS -framework CoreFoundation"
12160     cat >conftest.$ac_ext <<_ACEOF
12161/* confdefs.h.  */
12162_ACEOF
12163cat confdefs.h >>conftest.$ac_ext
12164cat >>conftest.$ac_ext <<_ACEOF
12165/* end confdefs.h.  */
12166#include <CFLocale.h>
12167int
12168main ()
12169{
12170CFLocaleCopyCurrent();
12171  ;
12172  return 0;
12173}
12174_ACEOF
12175rm -f conftest.$ac_objext conftest$ac_exeext
12176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12177  (eval $ac_link) 2>conftest.er1
12178  ac_status=$?
12179  grep -v '^ *+' conftest.er1 >conftest.err
12180  rm -f conftest.er1
12181  cat conftest.err >&5
12182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183  (exit $ac_status); } &&
12184	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
12185  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12186  (eval $ac_try) 2>&5
12187  ac_status=$?
12188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189  (exit $ac_status); }; } &&
12190	 { ac_try='test -s conftest$ac_exeext'
12191  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12192  (eval $ac_try) 2>&5
12193  ac_status=$?
12194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195  (exit $ac_status); }; }; then
12196  gt_cv_func_CFLocaleCopyCurrent=yes
12197else
12198  echo "$as_me: failed program was:" >&5
12199sed 's/^/| /' conftest.$ac_ext >&5
12200
12201gt_cv_func_CFLocaleCopyCurrent=no
12202fi
12203rm -f conftest.err conftest.$ac_objext \
12204      conftest$ac_exeext conftest.$ac_ext
12205     CPPFLAGS="$gt_save_CPPFLAGS"
12206     LIBS="$gt_save_LIBS"
12207fi
12208echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12209echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
12210  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12211
12212cat >>confdefs.h <<\_ACEOF
12213#define HAVE_CFLOCALECOPYCURRENT 1
12214_ACEOF
12215
12216  fi
12217  INTL_MACOSX_LIBS=
12218  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12219    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12220  fi
12221
12222
12223
12224
12225  echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12226echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12227    # Check whether --enable-nls or --disable-nls was given.
12228if test "${enable_nls+set}" = set; then
12229  enableval="$enable_nls"
12230  USE_NLS=$enableval
12231else
12232  USE_NLS=yes
12233fi;
12234  echo "$as_me:$LINENO: result: $USE_NLS" >&5
12235echo "${ECHO_T}$USE_NLS" >&6
12236
12237
12238
12239
12240  LIBINTL=
12241  LTLIBINTL=
12242  POSUB=
12243
12244    if test "$USE_NLS" = "yes"; then
12245    gt_use_preinstalled_gnugettext=no
12246
12247
12248
12249
12250
12251
12252        echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
12253echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
12254if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12255  echo $ECHO_N "(cached) $ECHO_C" >&6
12256else
12257  cat >conftest.$ac_ext <<_ACEOF
12258/* confdefs.h.  */
12259_ACEOF
12260cat confdefs.h >>conftest.$ac_ext
12261cat >>conftest.$ac_ext <<_ACEOF
12262/* end confdefs.h.  */
12263#include <libintl.h>
12264extern int _nl_msg_cat_cntr;
12265extern int *_nl_domain_bindings;
12266int
12267main ()
12268{
12269bindtextdomain ("", "");
12270return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12271  ;
12272  return 0;
12273}
12274_ACEOF
12275rm -f conftest.$ac_objext conftest$ac_exeext
12276if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12277  (eval $ac_link) 2>conftest.er1
12278  ac_status=$?
12279  grep -v '^ *+' conftest.er1 >conftest.err
12280  rm -f conftest.er1
12281  cat conftest.err >&5
12282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283  (exit $ac_status); } &&
12284	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
12285  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12286  (eval $ac_try) 2>&5
12287  ac_status=$?
12288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289  (exit $ac_status); }; } &&
12290	 { ac_try='test -s conftest$ac_exeext'
12291  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12292  (eval $ac_try) 2>&5
12293  ac_status=$?
12294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295  (exit $ac_status); }; }; then
12296  gt_cv_func_gnugettext1_libc=yes
12297else
12298  echo "$as_me: failed program was:" >&5
12299sed 's/^/| /' conftest.$ac_ext >&5
12300
12301gt_cv_func_gnugettext1_libc=no
12302fi
12303rm -f conftest.err conftest.$ac_objext \
12304      conftest$ac_exeext conftest.$ac_ext
12305fi
12306echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12307echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
12308
12309        if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12310
12311
12312
12313
12314
12315          am_save_CPPFLAGS="$CPPFLAGS"
12316
12317  for element in $INCICONV; do
12318    haveit=
12319    for x in $CPPFLAGS; do
12320
12321  acl_save_prefix="$prefix"
12322  prefix="$acl_final_prefix"
12323  acl_save_exec_prefix="$exec_prefix"
12324  exec_prefix="$acl_final_exec_prefix"
12325  eval x=\"$x\"
12326  exec_prefix="$acl_save_exec_prefix"
12327  prefix="$acl_save_prefix"
12328
12329      if test "X$x" = "X$element"; then
12330        haveit=yes
12331        break
12332      fi
12333    done
12334    if test -z "$haveit"; then
12335      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12336    fi
12337  done
12338
12339
12340  echo "$as_me:$LINENO: checking for iconv" >&5
12341echo $ECHO_N "checking for iconv... $ECHO_C" >&6
12342if test "${am_cv_func_iconv+set}" = set; then
12343  echo $ECHO_N "(cached) $ECHO_C" >&6
12344else
12345
12346    am_cv_func_iconv="no, consider installing GNU libiconv"
12347    am_cv_lib_iconv=no
12348    cat >conftest.$ac_ext <<_ACEOF
12349/* confdefs.h.  */
12350_ACEOF
12351cat confdefs.h >>conftest.$ac_ext
12352cat >>conftest.$ac_ext <<_ACEOF
12353/* end confdefs.h.  */
12354#include <stdlib.h>
12355#include <iconv.h>
12356int
12357main ()
12358{
12359iconv_t cd = iconv_open("","");
12360       iconv(cd,NULL,NULL,NULL,NULL);
12361       iconv_close(cd);
12362  ;
12363  return 0;
12364}
12365_ACEOF
12366rm -f conftest.$ac_objext conftest$ac_exeext
12367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12368  (eval $ac_link) 2>conftest.er1
12369  ac_status=$?
12370  grep -v '^ *+' conftest.er1 >conftest.err
12371  rm -f conftest.er1
12372  cat conftest.err >&5
12373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374  (exit $ac_status); } &&
12375	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
12376  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12377  (eval $ac_try) 2>&5
12378  ac_status=$?
12379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380  (exit $ac_status); }; } &&
12381	 { ac_try='test -s conftest$ac_exeext'
12382  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12383  (eval $ac_try) 2>&5
12384  ac_status=$?
12385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386  (exit $ac_status); }; }; then
12387  am_cv_func_iconv=yes
12388else
12389  echo "$as_me: failed program was:" >&5
12390sed 's/^/| /' conftest.$ac_ext >&5
12391
12392fi
12393rm -f conftest.err conftest.$ac_objext \
12394      conftest$ac_exeext conftest.$ac_ext
12395    if test "$am_cv_func_iconv" != yes; then
12396      am_save_LIBS="$LIBS"
12397      LIBS="$LIBS $LIBICONV"
12398      cat >conftest.$ac_ext <<_ACEOF
12399/* confdefs.h.  */
12400_ACEOF
12401cat confdefs.h >>conftest.$ac_ext
12402cat >>conftest.$ac_ext <<_ACEOF
12403/* end confdefs.h.  */
12404#include <stdlib.h>
12405#include <iconv.h>
12406int
12407main ()
12408{
12409iconv_t cd = iconv_open("","");
12410         iconv(cd,NULL,NULL,NULL,NULL);
12411         iconv_close(cd);
12412  ;
12413  return 0;
12414}
12415_ACEOF
12416rm -f conftest.$ac_objext conftest$ac_exeext
12417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12418  (eval $ac_link) 2>conftest.er1
12419  ac_status=$?
12420  grep -v '^ *+' conftest.er1 >conftest.err
12421  rm -f conftest.er1
12422  cat conftest.err >&5
12423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424  (exit $ac_status); } &&
12425	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
12426  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12427  (eval $ac_try) 2>&5
12428  ac_status=$?
12429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430  (exit $ac_status); }; } &&
12431	 { ac_try='test -s conftest$ac_exeext'
12432  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12433  (eval $ac_try) 2>&5
12434  ac_status=$?
12435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436  (exit $ac_status); }; }; then
12437  am_cv_lib_iconv=yes
12438        am_cv_func_iconv=yes
12439else
12440  echo "$as_me: failed program was:" >&5
12441sed 's/^/| /' conftest.$ac_ext >&5
12442
12443fi
12444rm -f conftest.err conftest.$ac_objext \
12445      conftest$ac_exeext conftest.$ac_ext
12446      LIBS="$am_save_LIBS"
12447    fi
12448
12449fi
12450echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
12451echo "${ECHO_T}$am_cv_func_iconv" >&6
12452  if test "$am_cv_func_iconv" = yes; then
12453
12454cat >>confdefs.h <<\_ACEOF
12455#define HAVE_ICONV 1
12456_ACEOF
12457
12458  fi
12459  if test "$am_cv_lib_iconv" = yes; then
12460    echo "$as_me:$LINENO: checking how to link with libiconv" >&5
12461echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
12462    echo "$as_me:$LINENO: result: $LIBICONV" >&5
12463echo "${ECHO_T}$LIBICONV" >&6
12464  else
12465            CPPFLAGS="$am_save_CPPFLAGS"
12466    LIBICONV=
12467    LTLIBICONV=
12468  fi
12469
12470
12471
12472
12473
12474
12475
12476    use_additional=yes
12477
12478  acl_save_prefix="$prefix"
12479  prefix="$acl_final_prefix"
12480  acl_save_exec_prefix="$exec_prefix"
12481  exec_prefix="$acl_final_exec_prefix"
12482
12483    eval additional_includedir=\"$includedir\"
12484    eval additional_libdir=\"$libdir\"
12485
12486  exec_prefix="$acl_save_exec_prefix"
12487  prefix="$acl_save_prefix"
12488
12489
12490# Check whether --with-libintl-prefix or --without-libintl-prefix was given.
12491if test "${with_libintl_prefix+set}" = set; then
12492  withval="$with_libintl_prefix"
12493
12494    if test "X$withval" = "Xno"; then
12495      use_additional=no
12496    else
12497      if test "X$withval" = "X"; then
12498
12499  acl_save_prefix="$prefix"
12500  prefix="$acl_final_prefix"
12501  acl_save_exec_prefix="$exec_prefix"
12502  exec_prefix="$acl_final_exec_prefix"
12503
12504          eval additional_includedir=\"$includedir\"
12505          eval additional_libdir=\"$libdir\"
12506
12507  exec_prefix="$acl_save_exec_prefix"
12508  prefix="$acl_save_prefix"
12509
12510      else
12511        additional_includedir="$withval/include"
12512        additional_libdir="$withval/$acl_libdirstem"
12513      fi
12514    fi
12515
12516fi;
12517      LIBINTL=
12518  LTLIBINTL=
12519  INCINTL=
12520  rpathdirs=
12521  ltrpathdirs=
12522  names_already_handled=
12523  names_next_round='intl '
12524  while test -n "$names_next_round"; do
12525    names_this_round="$names_next_round"
12526    names_next_round=
12527    for name in $names_this_round; do
12528      already_handled=
12529      for n in $names_already_handled; do
12530        if test "$n" = "$name"; then
12531          already_handled=yes
12532          break
12533        fi
12534      done
12535      if test -z "$already_handled"; then
12536        names_already_handled="$names_already_handled $name"
12537                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12538        eval value=\"\$HAVE_LIB$uppername\"
12539        if test -n "$value"; then
12540          if test "$value" = yes; then
12541            eval value=\"\$LIB$uppername\"
12542            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12543            eval value=\"\$LTLIB$uppername\"
12544            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12545          else
12546                                    :
12547          fi
12548        else
12549                              found_dir=
12550          found_la=
12551          found_so=
12552          found_a=
12553          if test $use_additional = yes; then
12554            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12555              found_dir="$additional_libdir"
12556              found_so="$additional_libdir/lib$name.$shlibext"
12557              if test -f "$additional_libdir/lib$name.la"; then
12558                found_la="$additional_libdir/lib$name.la"
12559              fi
12560            else
12561              if test -f "$additional_libdir/lib$name.$libext"; then
12562                found_dir="$additional_libdir"
12563                found_a="$additional_libdir/lib$name.$libext"
12564                if test -f "$additional_libdir/lib$name.la"; then
12565                  found_la="$additional_libdir/lib$name.la"
12566                fi
12567              fi
12568            fi
12569          fi
12570          if test "X$found_dir" = "X"; then
12571            for x in $LDFLAGS $LTLIBINTL; do
12572
12573  acl_save_prefix="$prefix"
12574  prefix="$acl_final_prefix"
12575  acl_save_exec_prefix="$exec_prefix"
12576  exec_prefix="$acl_final_exec_prefix"
12577  eval x=\"$x\"
12578  exec_prefix="$acl_save_exec_prefix"
12579  prefix="$acl_save_prefix"
12580
12581              case "$x" in
12582                -L*)
12583                  dir=`echo "X$x" | sed -e 's/^X-L//'`
12584                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12585                    found_dir="$dir"
12586                    found_so="$dir/lib$name.$shlibext"
12587                    if test -f "$dir/lib$name.la"; then
12588                      found_la="$dir/lib$name.la"
12589                    fi
12590                  else
12591                    if test -f "$dir/lib$name.$libext"; then
12592                      found_dir="$dir"
12593                      found_a="$dir/lib$name.$libext"
12594                      if test -f "$dir/lib$name.la"; then
12595                        found_la="$dir/lib$name.la"
12596                      fi
12597                    fi
12598                  fi
12599                  ;;
12600              esac
12601              if test "X$found_dir" != "X"; then
12602                break
12603              fi
12604            done
12605          fi
12606          if test "X$found_dir" != "X"; then
12607                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12608            if test "X$found_so" != "X"; then
12609                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
12610                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12611              else
12612                                                                                haveit=
12613                for x in $ltrpathdirs; do
12614                  if test "X$x" = "X$found_dir"; then
12615                    haveit=yes
12616                    break
12617                  fi
12618                done
12619                if test -z "$haveit"; then
12620                  ltrpathdirs="$ltrpathdirs $found_dir"
12621                fi
12622                                if test "$hardcode_direct" = yes; then
12623                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12624                else
12625                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12626                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12627                                                            haveit=
12628                    for x in $rpathdirs; do
12629                      if test "X$x" = "X$found_dir"; then
12630                        haveit=yes
12631                        break
12632                      fi
12633                    done
12634                    if test -z "$haveit"; then
12635                      rpathdirs="$rpathdirs $found_dir"
12636                    fi
12637                  else
12638                                                                                haveit=
12639                    for x in $LDFLAGS $LIBINTL; do
12640
12641  acl_save_prefix="$prefix"
12642  prefix="$acl_final_prefix"
12643  acl_save_exec_prefix="$exec_prefix"
12644  exec_prefix="$acl_final_exec_prefix"
12645  eval x=\"$x\"
12646  exec_prefix="$acl_save_exec_prefix"
12647  prefix="$acl_save_prefix"
12648
12649                      if test "X$x" = "X-L$found_dir"; then
12650                        haveit=yes
12651                        break
12652                      fi
12653                    done
12654                    if test -z "$haveit"; then
12655                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12656                    fi
12657                    if test "$hardcode_minus_L" != no; then
12658                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12659                    else
12660                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12661                    fi
12662                  fi
12663                fi
12664              fi
12665            else
12666              if test "X$found_a" != "X"; then
12667                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12668              else
12669                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12670              fi
12671            fi
12672                        additional_includedir=
12673            case "$found_dir" in
12674              */$acl_libdirstem | */$acl_libdirstem/)
12675                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12676                additional_includedir="$basedir/include"
12677                ;;
12678            esac
12679            if test "X$additional_includedir" != "X"; then
12680                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
12681                haveit=
12682                if test "X$additional_includedir" = "X/usr/local/include"; then
12683                  if test -n "$GCC"; then
12684                    case $host_os in
12685                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12686                    esac
12687                  fi
12688                fi
12689                if test -z "$haveit"; then
12690                  for x in $CPPFLAGS $INCINTL; do
12691
12692  acl_save_prefix="$prefix"
12693  prefix="$acl_final_prefix"
12694  acl_save_exec_prefix="$exec_prefix"
12695  exec_prefix="$acl_final_exec_prefix"
12696  eval x=\"$x\"
12697  exec_prefix="$acl_save_exec_prefix"
12698  prefix="$acl_save_prefix"
12699
12700                    if test "X$x" = "X-I$additional_includedir"; then
12701                      haveit=yes
12702                      break
12703                    fi
12704                  done
12705                  if test -z "$haveit"; then
12706                    if test -d "$additional_includedir"; then
12707                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12708                    fi
12709                  fi
12710                fi
12711              fi
12712            fi
12713                        if test -n "$found_la"; then
12714                                                        save_libdir="$libdir"
12715              case "$found_la" in
12716                */* | *\\*) . "$found_la" ;;
12717                *) . "./$found_la" ;;
12718              esac
12719              libdir="$save_libdir"
12720                            for dep in $dependency_libs; do
12721                case "$dep" in
12722                  -L*)
12723                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12724                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
12725                      haveit=
12726                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
12727                        if test -n "$GCC"; then
12728                          case $host_os in
12729                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12730                          esac
12731                        fi
12732                      fi
12733                      if test -z "$haveit"; then
12734                        haveit=
12735                        for x in $LDFLAGS $LIBINTL; do
12736
12737  acl_save_prefix="$prefix"
12738  prefix="$acl_final_prefix"
12739  acl_save_exec_prefix="$exec_prefix"
12740  exec_prefix="$acl_final_exec_prefix"
12741  eval x=\"$x\"
12742  exec_prefix="$acl_save_exec_prefix"
12743  prefix="$acl_save_prefix"
12744
12745                          if test "X$x" = "X-L$additional_libdir"; then
12746                            haveit=yes
12747                            break
12748                          fi
12749                        done
12750                        if test -z "$haveit"; then
12751                          if test -d "$additional_libdir"; then
12752                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
12753                          fi
12754                        fi
12755                        haveit=
12756                        for x in $LDFLAGS $LTLIBINTL; do
12757
12758  acl_save_prefix="$prefix"
12759  prefix="$acl_final_prefix"
12760  acl_save_exec_prefix="$exec_prefix"
12761  exec_prefix="$acl_final_exec_prefix"
12762  eval x=\"$x\"
12763  exec_prefix="$acl_save_exec_prefix"
12764  prefix="$acl_save_prefix"
12765
12766                          if test "X$x" = "X-L$additional_libdir"; then
12767                            haveit=yes
12768                            break
12769                          fi
12770                        done
12771                        if test -z "$haveit"; then
12772                          if test -d "$additional_libdir"; then
12773                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
12774                          fi
12775                        fi
12776                      fi
12777                    fi
12778                    ;;
12779                  -R*)
12780                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
12781                    if test "$enable_rpath" != no; then
12782                                                                  haveit=
12783                      for x in $rpathdirs; do
12784                        if test "X$x" = "X$dir"; then
12785                          haveit=yes
12786                          break
12787                        fi
12788                      done
12789                      if test -z "$haveit"; then
12790                        rpathdirs="$rpathdirs $dir"
12791                      fi
12792                                                                  haveit=
12793                      for x in $ltrpathdirs; do
12794                        if test "X$x" = "X$dir"; then
12795                          haveit=yes
12796                          break
12797                        fi
12798                      done
12799                      if test -z "$haveit"; then
12800                        ltrpathdirs="$ltrpathdirs $dir"
12801                      fi
12802                    fi
12803                    ;;
12804                  -l*)
12805                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12806                    ;;
12807                  *.la)
12808                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12809                    ;;
12810                  *)
12811                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
12812                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
12813                    ;;
12814                esac
12815              done
12816            fi
12817          else
12818                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12819            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
12820          fi
12821        fi
12822      fi
12823    done
12824  done
12825  if test "X$rpathdirs" != "X"; then
12826    if test -n "$hardcode_libdir_separator"; then
12827                        alldirs=
12828      for found_dir in $rpathdirs; do
12829        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12830      done
12831            acl_save_libdir="$libdir"
12832      libdir="$alldirs"
12833      eval flag=\"$hardcode_libdir_flag_spec\"
12834      libdir="$acl_save_libdir"
12835      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12836    else
12837            for found_dir in $rpathdirs; do
12838        acl_save_libdir="$libdir"
12839        libdir="$found_dir"
12840        eval flag=\"$hardcode_libdir_flag_spec\"
12841        libdir="$acl_save_libdir"
12842        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12843      done
12844    fi
12845  fi
12846  if test "X$ltrpathdirs" != "X"; then
12847            for found_dir in $ltrpathdirs; do
12848      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
12849    done
12850  fi
12851
12852          echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
12853echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
12854if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
12855  echo $ECHO_N "(cached) $ECHO_C" >&6
12856else
12857  gt_save_CPPFLAGS="$CPPFLAGS"
12858            CPPFLAGS="$CPPFLAGS $INCINTL"
12859            gt_save_LIBS="$LIBS"
12860            LIBS="$LIBS $LIBINTL"
12861                        cat >conftest.$ac_ext <<_ACEOF
12862/* confdefs.h.  */
12863_ACEOF
12864cat confdefs.h >>conftest.$ac_ext
12865cat >>conftest.$ac_ext <<_ACEOF
12866/* end confdefs.h.  */
12867#include <libintl.h>
12868extern int _nl_msg_cat_cntr;
12869extern
12870#ifdef __cplusplus
12871"C"
12872#endif
12873const char *_nl_expand_alias (const char *);
12874int
12875main ()
12876{
12877bindtextdomain ("", "");
12878return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12879  ;
12880  return 0;
12881}
12882_ACEOF
12883rm -f conftest.$ac_objext conftest$ac_exeext
12884if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12885  (eval $ac_link) 2>conftest.er1
12886  ac_status=$?
12887  grep -v '^ *+' conftest.er1 >conftest.err
12888  rm -f conftest.er1
12889  cat conftest.err >&5
12890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12891  (exit $ac_status); } &&
12892	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
12893  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12894  (eval $ac_try) 2>&5
12895  ac_status=$?
12896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897  (exit $ac_status); }; } &&
12898	 { ac_try='test -s conftest$ac_exeext'
12899  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12900  (eval $ac_try) 2>&5
12901  ac_status=$?
12902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903  (exit $ac_status); }; }; then
12904  gt_cv_func_gnugettext1_libintl=yes
12905else
12906  echo "$as_me: failed program was:" >&5
12907sed 's/^/| /' conftest.$ac_ext >&5
12908
12909gt_cv_func_gnugettext1_libintl=no
12910fi
12911rm -f conftest.err conftest.$ac_objext \
12912      conftest$ac_exeext conftest.$ac_ext
12913                        if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
12914              LIBS="$LIBS $LIBICONV"
12915              cat >conftest.$ac_ext <<_ACEOF
12916/* confdefs.h.  */
12917_ACEOF
12918cat confdefs.h >>conftest.$ac_ext
12919cat >>conftest.$ac_ext <<_ACEOF
12920/* end confdefs.h.  */
12921#include <libintl.h>
12922extern int _nl_msg_cat_cntr;
12923extern
12924#ifdef __cplusplus
12925"C"
12926#endif
12927const char *_nl_expand_alias (const char *);
12928int
12929main ()
12930{
12931bindtextdomain ("", "");
12932return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12933  ;
12934  return 0;
12935}
12936_ACEOF
12937rm -f conftest.$ac_objext conftest$ac_exeext
12938if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12939  (eval $ac_link) 2>conftest.er1
12940  ac_status=$?
12941  grep -v '^ *+' conftest.er1 >conftest.err
12942  rm -f conftest.er1
12943  cat conftest.err >&5
12944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12945  (exit $ac_status); } &&
12946	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
12947  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12948  (eval $ac_try) 2>&5
12949  ac_status=$?
12950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951  (exit $ac_status); }; } &&
12952	 { ac_try='test -s conftest$ac_exeext'
12953  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12954  (eval $ac_try) 2>&5
12955  ac_status=$?
12956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957  (exit $ac_status); }; }; then
12958  LIBINTL="$LIBINTL $LIBICONV"
12959                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
12960                gt_cv_func_gnugettext1_libintl=yes
12961
12962else
12963  echo "$as_me: failed program was:" >&5
12964sed 's/^/| /' conftest.$ac_ext >&5
12965
12966fi
12967rm -f conftest.err conftest.$ac_objext \
12968      conftest$ac_exeext conftest.$ac_ext
12969            fi
12970            CPPFLAGS="$gt_save_CPPFLAGS"
12971            LIBS="$gt_save_LIBS"
12972fi
12973echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
12974echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
12975        fi
12976
12977                                        if test "$gt_cv_func_gnugettext1_libc" = "yes" \
12978           || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
12979                && test "$PACKAGE" != gettext-runtime \
12980                && test "$PACKAGE" != gettext-tools; }; then
12981          gt_use_preinstalled_gnugettext=yes
12982        else
12983                    LIBINTL=
12984          LTLIBINTL=
12985          INCINTL=
12986        fi
12987
12988
12989
12990    if test -n "$INTL_MACOSX_LIBS"; then
12991      if test "$gt_use_preinstalled_gnugettext" = "yes" \
12992         || test "$nls_cv_use_gnu_gettext" = "yes"; then
12993                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
12994        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
12995      fi
12996    fi
12997
12998    if test "$gt_use_preinstalled_gnugettext" = "yes" \
12999       || test "$nls_cv_use_gnu_gettext" = "yes"; then
13000
13001cat >>confdefs.h <<\_ACEOF
13002#define ENABLE_NLS 1
13003_ACEOF
13004
13005    else
13006      USE_NLS=no
13007    fi
13008  fi
13009
13010  echo "$as_me:$LINENO: checking whether to use NLS" >&5
13011echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
13012  echo "$as_me:$LINENO: result: $USE_NLS" >&5
13013echo "${ECHO_T}$USE_NLS" >&6
13014  if test "$USE_NLS" = "yes"; then
13015    echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
13016echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
13017    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13018      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13019        gt_source="external libintl"
13020      else
13021        gt_source="libc"
13022      fi
13023    else
13024      gt_source="included intl directory"
13025    fi
13026    echo "$as_me:$LINENO: result: $gt_source" >&5
13027echo "${ECHO_T}$gt_source" >&6
13028  fi
13029
13030  if test "$USE_NLS" = "yes"; then
13031
13032    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13033      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13034        echo "$as_me:$LINENO: checking how to link with libintl" >&5
13035echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
13036        echo "$as_me:$LINENO: result: $LIBINTL" >&5
13037echo "${ECHO_T}$LIBINTL" >&6
13038
13039  for element in $INCINTL; do
13040    haveit=
13041    for x in $CPPFLAGS; do
13042
13043  acl_save_prefix="$prefix"
13044  prefix="$acl_final_prefix"
13045  acl_save_exec_prefix="$exec_prefix"
13046  exec_prefix="$acl_final_exec_prefix"
13047  eval x=\"$x\"
13048  exec_prefix="$acl_save_exec_prefix"
13049  prefix="$acl_save_prefix"
13050
13051      if test "X$x" = "X$element"; then
13052        haveit=yes
13053        break
13054      fi
13055    done
13056    if test -z "$haveit"; then
13057      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13058    fi
13059  done
13060
13061      fi
13062
13063
13064cat >>confdefs.h <<\_ACEOF
13065#define HAVE_GETTEXT 1
13066_ACEOF
13067
13068
13069cat >>confdefs.h <<\_ACEOF
13070#define HAVE_DCGETTEXT 1
13071_ACEOF
13072
13073    fi
13074
13075        POSUB=po
13076  fi
13077
13078
13079
13080    INTLLIBS="$LIBINTL"
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092  case $LIBOBJS in
13093    "hard-locale.$ac_objext"   | \
13094  *" hard-locale.$ac_objext"   | \
13095    "hard-locale.$ac_objext "* | \
13096  *" hard-locale.$ac_objext "* ) ;;
13097  *) LIBOBJS="$LIBOBJS hard-locale.$ac_objext" ;;
13098esac
13099
13100
13101
13102
13103
13104  case $LIBOBJS in
13105    "hash.$ac_objext"   | \
13106  *" hash.$ac_objext"   | \
13107    "hash.$ac_objext "* | \
13108  *" hash.$ac_objext "* ) ;;
13109  *) LIBOBJS="$LIBOBJS hash.$ac_objext" ;;
13110esac
13111
13112
13113
13114
13115
13116
13117
13118for ac_header in stdlib.h
13119do
13120as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13121if eval "test \"\${$as_ac_Header+set}\" = set"; then
13122  echo "$as_me:$LINENO: checking for $ac_header" >&5
13123echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13124if eval "test \"\${$as_ac_Header+set}\" = set"; then
13125  echo $ECHO_N "(cached) $ECHO_C" >&6
13126fi
13127echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13128echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13129else
13130  # Is the header compilable?
13131echo "$as_me:$LINENO: checking $ac_header usability" >&5
13132echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13133cat >conftest.$ac_ext <<_ACEOF
13134/* confdefs.h.  */
13135_ACEOF
13136cat confdefs.h >>conftest.$ac_ext
13137cat >>conftest.$ac_ext <<_ACEOF
13138/* end confdefs.h.  */
13139$ac_includes_default
13140#include <$ac_header>
13141_ACEOF
13142rm -f conftest.$ac_objext
13143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13144  (eval $ac_compile) 2>conftest.er1
13145  ac_status=$?
13146  grep -v '^ *+' conftest.er1 >conftest.err
13147  rm -f conftest.er1
13148  cat conftest.err >&5
13149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150  (exit $ac_status); } &&
13151	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
13152  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13153  (eval $ac_try) 2>&5
13154  ac_status=$?
13155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156  (exit $ac_status); }; } &&
13157	 { ac_try='test -s conftest.$ac_objext'
13158  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13159  (eval $ac_try) 2>&5
13160  ac_status=$?
13161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13162  (exit $ac_status); }; }; then
13163  ac_header_compiler=yes
13164else
13165  echo "$as_me: failed program was:" >&5
13166sed 's/^/| /' conftest.$ac_ext >&5
13167
13168ac_header_compiler=no
13169fi
13170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13171echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13172echo "${ECHO_T}$ac_header_compiler" >&6
13173
13174# Is the header present?
13175echo "$as_me:$LINENO: checking $ac_header presence" >&5
13176echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13177cat >conftest.$ac_ext <<_ACEOF
13178/* confdefs.h.  */
13179_ACEOF
13180cat confdefs.h >>conftest.$ac_ext
13181cat >>conftest.$ac_ext <<_ACEOF
13182/* end confdefs.h.  */
13183#include <$ac_header>
13184_ACEOF
13185if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13186  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13187  ac_status=$?
13188  grep -v '^ *+' conftest.er1 >conftest.err
13189  rm -f conftest.er1
13190  cat conftest.err >&5
13191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192  (exit $ac_status); } >/dev/null; then
13193  if test -s conftest.err; then
13194    ac_cpp_err=$ac_c_preproc_warn_flag
13195    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13196  else
13197    ac_cpp_err=
13198  fi
13199else
13200  ac_cpp_err=yes
13201fi
13202if test -z "$ac_cpp_err"; then
13203  ac_header_preproc=yes
13204else
13205  echo "$as_me: failed program was:" >&5
13206sed 's/^/| /' conftest.$ac_ext >&5
13207
13208  ac_header_preproc=no
13209fi
13210rm -f conftest.err conftest.$ac_ext
13211echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13212echo "${ECHO_T}$ac_header_preproc" >&6
13213
13214# So?  What about this header?
13215case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13216  yes:no: )
13217    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13218echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13219    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13220echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13221    ac_header_preproc=yes
13222    ;;
13223  no:yes:* )
13224    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13225echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13226    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13227echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13228    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13229echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13230    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13231echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13232    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13233echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13234    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13235echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13236    (
13237      cat <<\_ASBOX
13238## -------------------------------- ##
13239## Report this to bug-bison@gnu.org ##
13240## -------------------------------- ##
13241_ASBOX
13242    ) |
13243      sed "s/^/$as_me: WARNING:     /" >&2
13244    ;;
13245esac
13246echo "$as_me:$LINENO: checking for $ac_header" >&5
13247echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13248if eval "test \"\${$as_ac_Header+set}\" = set"; then
13249  echo $ECHO_N "(cached) $ECHO_C" >&6
13250else
13251  eval "$as_ac_Header=\$ac_header_preproc"
13252fi
13253echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13254echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13255
13256fi
13257if test `eval echo '${'$as_ac_Header'}'` = yes; then
13258  cat >>confdefs.h <<_ACEOF
13259#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13260_ACEOF
13261
13262fi
13263
13264done
13265
13266echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
13267echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
13268if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
13269  echo $ECHO_N "(cached) $ECHO_C" >&6
13270else
13271  if test "$cross_compiling" = yes; then
13272  ac_cv_func_malloc_0_nonnull=no
13273else
13274  cat >conftest.$ac_ext <<_ACEOF
13275/* confdefs.h.  */
13276_ACEOF
13277cat confdefs.h >>conftest.$ac_ext
13278cat >>conftest.$ac_ext <<_ACEOF
13279/* end confdefs.h.  */
13280#if STDC_HEADERS || HAVE_STDLIB_H
13281# include <stdlib.h>
13282#else
13283char *malloc ();
13284#endif
13285
13286int
13287main ()
13288{
13289exit (malloc (0) ? 0 : 1);
13290  ;
13291  return 0;
13292}
13293_ACEOF
13294rm -f conftest$ac_exeext
13295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13296  (eval $ac_link) 2>&5
13297  ac_status=$?
13298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13300  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13301  (eval $ac_try) 2>&5
13302  ac_status=$?
13303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304  (exit $ac_status); }; }; then
13305  ac_cv_func_malloc_0_nonnull=yes
13306else
13307  echo "$as_me: program exited with status $ac_status" >&5
13308echo "$as_me: failed program was:" >&5
13309sed 's/^/| /' conftest.$ac_ext >&5
13310
13311( exit $ac_status )
13312ac_cv_func_malloc_0_nonnull=no
13313fi
13314rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13315fi
13316fi
13317echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
13318echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
13319if test $ac_cv_func_malloc_0_nonnull = yes; then
13320
13321cat >>confdefs.h <<\_ACEOF
13322#define HAVE_MALLOC 1
13323_ACEOF
13324
13325else
13326  cat >>confdefs.h <<\_ACEOF
13327#define HAVE_MALLOC 0
13328_ACEOF
13329
13330   case $LIBOBJS in
13331    "malloc.$ac_objext"   | \
13332  *" malloc.$ac_objext"   | \
13333    "malloc.$ac_objext "* | \
13334  *" malloc.$ac_objext "* ) ;;
13335  *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
13336esac
13337
13338
13339cat >>confdefs.h <<\_ACEOF
13340#define malloc rpl_malloc
13341_ACEOF
13342
13343fi
13344
13345
13346
13347
13348
13349
13350  :
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360  :
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374for ac_func in iswcntrl wcwidth
13375do
13376as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13377echo "$as_me:$LINENO: checking for $ac_func" >&5
13378echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13379if eval "test \"\${$as_ac_var+set}\" = set"; then
13380  echo $ECHO_N "(cached) $ECHO_C" >&6
13381else
13382  cat >conftest.$ac_ext <<_ACEOF
13383/* confdefs.h.  */
13384_ACEOF
13385cat confdefs.h >>conftest.$ac_ext
13386cat >>conftest.$ac_ext <<_ACEOF
13387/* end confdefs.h.  */
13388/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13389   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13390#define $ac_func innocuous_$ac_func
13391
13392/* System header to define __stub macros and hopefully few prototypes,
13393    which can conflict with char $ac_func (); below.
13394    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13395    <limits.h> exists even on freestanding compilers.  */
13396
13397#ifdef __STDC__
13398# include <limits.h>
13399#else
13400# include <assert.h>
13401#endif
13402
13403#undef $ac_func
13404
13405/* Override any gcc2 internal prototype to avoid an error.  */
13406#ifdef __cplusplus
13407extern "C"
13408{
13409#endif
13410/* We use char because int might match the return type of a gcc2
13411   builtin and then its argument prototype would still apply.  */
13412char $ac_func ();
13413/* The GNU C library defines this for functions which it implements
13414    to always fail with ENOSYS.  Some functions are actually named
13415    something starting with __ and the normal name is an alias.  */
13416#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13417choke me
13418#else
13419char (*f) () = $ac_func;
13420#endif
13421#ifdef __cplusplus
13422}
13423#endif
13424
13425int
13426main ()
13427{
13428return f != $ac_func;
13429  ;
13430  return 0;
13431}
13432_ACEOF
13433rm -f conftest.$ac_objext conftest$ac_exeext
13434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13435  (eval $ac_link) 2>conftest.er1
13436  ac_status=$?
13437  grep -v '^ *+' conftest.er1 >conftest.err
13438  rm -f conftest.er1
13439  cat conftest.err >&5
13440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441  (exit $ac_status); } &&
13442	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
13443  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13444  (eval $ac_try) 2>&5
13445  ac_status=$?
13446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447  (exit $ac_status); }; } &&
13448	 { ac_try='test -s conftest$ac_exeext'
13449  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13450  (eval $ac_try) 2>&5
13451  ac_status=$?
13452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453  (exit $ac_status); }; }; then
13454  eval "$as_ac_var=yes"
13455else
13456  echo "$as_me: failed program was:" >&5
13457sed 's/^/| /' conftest.$ac_ext >&5
13458
13459eval "$as_ac_var=no"
13460fi
13461rm -f conftest.err conftest.$ac_objext \
13462      conftest$ac_exeext conftest.$ac_ext
13463fi
13464echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13465echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13466if test `eval echo '${'$as_ac_var'}'` = yes; then
13467  cat >>confdefs.h <<_ACEOF
13468#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13469_ACEOF
13470
13471fi
13472done
13473
13474
13475    echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
13476echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
13477if test "${gl_cv_func_mbrtowc+set}" = set; then
13478  echo $ECHO_N "(cached) $ECHO_C" >&6
13479else
13480  cat >conftest.$ac_ext <<_ACEOF
13481/* confdefs.h.  */
13482_ACEOF
13483cat confdefs.h >>conftest.$ac_ext
13484cat >>conftest.$ac_ext <<_ACEOF
13485/* end confdefs.h.  */
13486#include <wchar.h>
13487int
13488main ()
13489{
13490wchar_t wc;
13491              char const s[] = "";
13492              size_t n = 1;
13493              mbstate_t state;
13494              return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
13495  ;
13496  return 0;
13497}
13498_ACEOF
13499rm -f conftest.$ac_objext conftest$ac_exeext
13500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13501  (eval $ac_link) 2>conftest.er1
13502  ac_status=$?
13503  grep -v '^ *+' conftest.er1 >conftest.err
13504  rm -f conftest.er1
13505  cat conftest.err >&5
13506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507  (exit $ac_status); } &&
13508	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
13509  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13510  (eval $ac_try) 2>&5
13511  ac_status=$?
13512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513  (exit $ac_status); }; } &&
13514	 { ac_try='test -s conftest$ac_exeext'
13515  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13516  (eval $ac_try) 2>&5
13517  ac_status=$?
13518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519  (exit $ac_status); }; }; then
13520  gl_cv_func_mbrtowc=yes
13521else
13522  echo "$as_me: failed program was:" >&5
13523sed 's/^/| /' conftest.$ac_ext >&5
13524
13525gl_cv_func_mbrtowc=no
13526fi
13527rm -f conftest.err conftest.$ac_objext \
13528      conftest$ac_exeext conftest.$ac_ext
13529fi
13530echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5
13531echo "${ECHO_T}$gl_cv_func_mbrtowc" >&6
13532  if test $gl_cv_func_mbrtowc = yes; then
13533
13534cat >>confdefs.h <<\_ACEOF
13535#define HAVE_MBRTOWC 1
13536_ACEOF
13537
13538  fi
13539
13540
13541  echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5
13542echo $ECHO_N "checking whether wcwidth is declared... $ECHO_C" >&6
13543if test "${ac_cv_have_decl_wcwidth+set}" = set; then
13544  echo $ECHO_N "(cached) $ECHO_C" >&6
13545else
13546  cat >conftest.$ac_ext <<_ACEOF
13547/* confdefs.h.  */
13548_ACEOF
13549cat confdefs.h >>conftest.$ac_ext
13550cat >>conftest.$ac_ext <<_ACEOF
13551/* end confdefs.h.  */
13552
13553/* AIX 3.2.5 declares wcwidth in <string.h>. */
13554#if HAVE_STRING_H
13555# include <string.h>
13556#endif
13557#if HAVE_WCHAR_H
13558# include <wchar.h>
13559#endif
13560
13561int
13562main ()
13563{
13564
13565#ifndef wcwidth
13566  char *p = (char *) wcwidth;
13567#endif
13568
13569  ;
13570  return 0;
13571}
13572_ACEOF
13573rm -f conftest.$ac_objext
13574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13575  (eval $ac_compile) 2>conftest.er1
13576  ac_status=$?
13577  grep -v '^ *+' conftest.er1 >conftest.err
13578  rm -f conftest.er1
13579  cat conftest.err >&5
13580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581  (exit $ac_status); } &&
13582	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
13583  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13584  (eval $ac_try) 2>&5
13585  ac_status=$?
13586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587  (exit $ac_status); }; } &&
13588	 { ac_try='test -s conftest.$ac_objext'
13589  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13590  (eval $ac_try) 2>&5
13591  ac_status=$?
13592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593  (exit $ac_status); }; }; then
13594  ac_cv_have_decl_wcwidth=yes
13595else
13596  echo "$as_me: failed program was:" >&5
13597sed 's/^/| /' conftest.$ac_ext >&5
13598
13599ac_cv_have_decl_wcwidth=no
13600fi
13601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13602fi
13603echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5
13604echo "${ECHO_T}$ac_cv_have_decl_wcwidth" >&6
13605  if test $ac_cv_have_decl_wcwidth = yes; then
13606    ac_val=1
13607  else
13608    ac_val=0
13609  fi
13610
13611cat >>confdefs.h <<_ACEOF
13612#define HAVE_DECL_WCWIDTH $ac_val
13613_ACEOF
13614
13615
13616      echo "$as_me:$LINENO: checking whether mbswidth is declared in <wchar.h>" >&5
13617echo $ECHO_N "checking whether mbswidth is declared in <wchar.h>... $ECHO_C" >&6
13618if test "${ac_cv_have_decl_mbswidth+set}" = set; then
13619  echo $ECHO_N "(cached) $ECHO_C" >&6
13620else
13621  cat >conftest.$ac_ext <<_ACEOF
13622/* confdefs.h.  */
13623_ACEOF
13624cat confdefs.h >>conftest.$ac_ext
13625cat >>conftest.$ac_ext <<_ACEOF
13626/* end confdefs.h.  */
13627
13628#if HAVE_WCHAR_H
13629# include <wchar.h>
13630#endif
13631
13632int
13633main ()
13634{
13635
13636  char *p = (char *) mbswidth;
13637
13638  ;
13639  return 0;
13640}
13641_ACEOF
13642rm -f conftest.$ac_objext
13643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13644  (eval $ac_compile) 2>conftest.er1
13645  ac_status=$?
13646  grep -v '^ *+' conftest.er1 >conftest.err
13647  rm -f conftest.er1
13648  cat conftest.err >&5
13649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650  (exit $ac_status); } &&
13651	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
13652  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13653  (eval $ac_try) 2>&5
13654  ac_status=$?
13655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656  (exit $ac_status); }; } &&
13657	 { ac_try='test -s conftest.$ac_objext'
13658  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13659  (eval $ac_try) 2>&5
13660  ac_status=$?
13661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662  (exit $ac_status); }; }; then
13663  ac_cv_have_decl_mbswidth=yes
13664else
13665  echo "$as_me: failed program was:" >&5
13666sed 's/^/| /' conftest.$ac_ext >&5
13667
13668ac_cv_have_decl_mbswidth=no
13669fi
13670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13671fi
13672echo "$as_me:$LINENO: result: $ac_cv_have_decl_mbswidth" >&5
13673echo "${ECHO_T}$ac_cv_have_decl_mbswidth" >&6
13674  if test $ac_cv_have_decl_mbswidth = yes; then
13675    ac_val=1
13676  else
13677    ac_val=0
13678  fi
13679
13680cat >>confdefs.h <<_ACEOF
13681#define HAVE_DECL_MBSWIDTH_IN_WCHAR_H $ac_val
13682_ACEOF
13683
13684
13685  echo "$as_me:$LINENO: checking for mbstate_t" >&5
13686echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
13687if test "${ac_cv_type_mbstate_t+set}" = set; then
13688  echo $ECHO_N "(cached) $ECHO_C" >&6
13689else
13690  cat >conftest.$ac_ext <<_ACEOF
13691/* confdefs.h.  */
13692_ACEOF
13693cat confdefs.h >>conftest.$ac_ext
13694cat >>conftest.$ac_ext <<_ACEOF
13695/* end confdefs.h.  */
13696$ac_includes_default
13697#	    include <wchar.h>
13698int
13699main ()
13700{
13701mbstate_t x; return sizeof x;
13702  ;
13703  return 0;
13704}
13705_ACEOF
13706rm -f conftest.$ac_objext
13707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13708  (eval $ac_compile) 2>conftest.er1
13709  ac_status=$?
13710  grep -v '^ *+' conftest.er1 >conftest.err
13711  rm -f conftest.er1
13712  cat conftest.err >&5
13713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714  (exit $ac_status); } &&
13715	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
13716  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13717  (eval $ac_try) 2>&5
13718  ac_status=$?
13719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720  (exit $ac_status); }; } &&
13721	 { ac_try='test -s conftest.$ac_objext'
13722  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13723  (eval $ac_try) 2>&5
13724  ac_status=$?
13725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726  (exit $ac_status); }; }; then
13727  ac_cv_type_mbstate_t=yes
13728else
13729  echo "$as_me: failed program was:" >&5
13730sed 's/^/| /' conftest.$ac_ext >&5
13731
13732ac_cv_type_mbstate_t=no
13733fi
13734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13735fi
13736echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
13737echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
13738   if test $ac_cv_type_mbstate_t = yes; then
13739
13740cat >>confdefs.h <<\_ACEOF
13741#define HAVE_MBSTATE_T 1
13742_ACEOF
13743
13744   else
13745
13746cat >>confdefs.h <<\_ACEOF
13747#define mbstate_t int
13748_ACEOF
13749
13750   fi
13751
13752
13753
13754  echo "$as_me:$LINENO: checking for obstacks" >&5
13755echo $ECHO_N "checking for obstacks... $ECHO_C" >&6
13756if test "${ac_cv_func_obstack+set}" = set; then
13757  echo $ECHO_N "(cached) $ECHO_C" >&6
13758else
13759  cat >conftest.$ac_ext <<_ACEOF
13760/* confdefs.h.  */
13761_ACEOF
13762cat confdefs.h >>conftest.$ac_ext
13763cat >>conftest.$ac_ext <<_ACEOF
13764/* end confdefs.h.  */
13765#include "obstack.h"
13766int
13767main ()
13768{
13769struct obstack *mem; obstack_free(mem,(char *) 0)
13770  ;
13771  return 0;
13772}
13773_ACEOF
13774rm -f conftest.$ac_objext conftest$ac_exeext
13775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13776  (eval $ac_link) 2>conftest.er1
13777  ac_status=$?
13778  grep -v '^ *+' conftest.er1 >conftest.err
13779  rm -f conftest.er1
13780  cat conftest.err >&5
13781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782  (exit $ac_status); } &&
13783	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
13784  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13785  (eval $ac_try) 2>&5
13786  ac_status=$?
13787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788  (exit $ac_status); }; } &&
13789	 { ac_try='test -s conftest$ac_exeext'
13790  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13791  (eval $ac_try) 2>&5
13792  ac_status=$?
13793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13794  (exit $ac_status); }; }; then
13795  ac_cv_func_obstack=yes
13796else
13797  echo "$as_me: failed program was:" >&5
13798sed 's/^/| /' conftest.$ac_ext >&5
13799
13800ac_cv_func_obstack=no
13801fi
13802rm -f conftest.err conftest.$ac_objext \
13803      conftest$ac_exeext conftest.$ac_ext
13804fi
13805echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
13806echo "${ECHO_T}$ac_cv_func_obstack" >&6
13807if test $ac_cv_func_obstack = yes; then
13808
13809cat >>confdefs.h <<\_ACEOF
13810#define HAVE_OBSTACK 1
13811_ACEOF
13812
13813else
13814  case $LIBOBJS in
13815    "obstack.$ac_objext"   | \
13816  *" obstack.$ac_objext"   | \
13817    "obstack.$ac_objext "* | \
13818  *" obstack.$ac_objext "* ) ;;
13819  *) LIBOBJS="$LIBOBJS obstack.$ac_objext" ;;
13820esac
13821
13822fi
13823
13824    if test $ac_cv_func_obstack = no; then
13825
13826
13827
13828
13829  :
13830
13831  fi
13832
13833
13834
13835
13836  case $LIBOBJS in
13837    "quote.$ac_objext"   | \
13838  *" quote.$ac_objext"   | \
13839    "quote.$ac_objext "* | \
13840  *" quote.$ac_objext "* ) ;;
13841  *) LIBOBJS="$LIBOBJS quote.$ac_objext" ;;
13842esac
13843
13844
13845
13846
13847
13848
13849  case $LIBOBJS in
13850    "quotearg.$ac_objext"   | \
13851  *" quotearg.$ac_objext"   | \
13852    "quotearg.$ac_objext "* | \
13853  *" quotearg.$ac_objext "* ) ;;
13854  *) LIBOBJS="$LIBOBJS quotearg.$ac_objext" ;;
13855esac
13856
13857
13858
13859  :
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869  :
13870
13871
13872
13873
13874
13875
13876
13877
13878  echo "$as_me:$LINENO: checking for mbstate_t" >&5
13879echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
13880if test "${ac_cv_type_mbstate_t+set}" = set; then
13881  echo $ECHO_N "(cached) $ECHO_C" >&6
13882else
13883  cat >conftest.$ac_ext <<_ACEOF
13884/* confdefs.h.  */
13885_ACEOF
13886cat confdefs.h >>conftest.$ac_ext
13887cat >>conftest.$ac_ext <<_ACEOF
13888/* end confdefs.h.  */
13889$ac_includes_default
13890#	    include <wchar.h>
13891int
13892main ()
13893{
13894mbstate_t x; return sizeof x;
13895  ;
13896  return 0;
13897}
13898_ACEOF
13899rm -f conftest.$ac_objext
13900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13901  (eval $ac_compile) 2>conftest.er1
13902  ac_status=$?
13903  grep -v '^ *+' conftest.er1 >conftest.err
13904  rm -f conftest.er1
13905  cat conftest.err >&5
13906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907  (exit $ac_status); } &&
13908	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
13909  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13910  (eval $ac_try) 2>&5
13911  ac_status=$?
13912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913  (exit $ac_status); }; } &&
13914	 { ac_try='test -s conftest.$ac_objext'
13915  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13916  (eval $ac_try) 2>&5
13917  ac_status=$?
13918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13919  (exit $ac_status); }; }; then
13920  ac_cv_type_mbstate_t=yes
13921else
13922  echo "$as_me: failed program was:" >&5
13923sed 's/^/| /' conftest.$ac_ext >&5
13924
13925ac_cv_type_mbstate_t=no
13926fi
13927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13928fi
13929echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
13930echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
13931   if test $ac_cv_type_mbstate_t = yes; then
13932
13933cat >>confdefs.h <<\_ACEOF
13934#define HAVE_MBSTATE_T 1
13935_ACEOF
13936
13937   else
13938
13939cat >>confdefs.h <<\_ACEOF
13940#define mbstate_t int
13941_ACEOF
13942
13943   fi
13944
13945    echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
13946echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
13947if test "${gl_cv_func_mbrtowc+set}" = set; then
13948  echo $ECHO_N "(cached) $ECHO_C" >&6
13949else
13950  cat >conftest.$ac_ext <<_ACEOF
13951/* confdefs.h.  */
13952_ACEOF
13953cat confdefs.h >>conftest.$ac_ext
13954cat >>conftest.$ac_ext <<_ACEOF
13955/* end confdefs.h.  */
13956#include <wchar.h>
13957int
13958main ()
13959{
13960wchar_t wc;
13961              char const s[] = "";
13962              size_t n = 1;
13963              mbstate_t state;
13964              return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
13965  ;
13966  return 0;
13967}
13968_ACEOF
13969rm -f conftest.$ac_objext conftest$ac_exeext
13970if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13971  (eval $ac_link) 2>conftest.er1
13972  ac_status=$?
13973  grep -v '^ *+' conftest.er1 >conftest.err
13974  rm -f conftest.er1
13975  cat conftest.err >&5
13976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977  (exit $ac_status); } &&
13978	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
13979  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13980  (eval $ac_try) 2>&5
13981  ac_status=$?
13982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983  (exit $ac_status); }; } &&
13984	 { ac_try='test -s conftest$ac_exeext'
13985  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13986  (eval $ac_try) 2>&5
13987  ac_status=$?
13988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989  (exit $ac_status); }; }; then
13990  gl_cv_func_mbrtowc=yes
13991else
13992  echo "$as_me: failed program was:" >&5
13993sed 's/^/| /' conftest.$ac_ext >&5
13994
13995gl_cv_func_mbrtowc=no
13996fi
13997rm -f conftest.err conftest.$ac_objext \
13998      conftest$ac_exeext conftest.$ac_ext
13999fi
14000echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5
14001echo "${ECHO_T}$gl_cv_func_mbrtowc" >&6
14002  if test $gl_cv_func_mbrtowc = yes; then
14003
14004cat >>confdefs.h <<\_ACEOF
14005#define HAVE_MBRTOWC 1
14006_ACEOF
14007
14008  fi
14009
14010
14011
14012
14013
14014
14015  # Define two additional variables used in the Makefile substitution.
14016
14017  if test "$ac_cv_header_stdbool_h" = yes; then
14018    STDBOOL_H=''
14019  else
14020    STDBOOL_H='stdbool.h'
14021  fi
14022
14023
14024  if test "$ac_cv_type__Bool" = yes; then
14025    HAVE__BOOL=1
14026  else
14027    HAVE__BOOL=0
14028  fi
14029
14030
14031
14032
14033
14034  case $LIBOBJS in
14035    "fopen-safer.$ac_objext"   | \
14036  *" fopen-safer.$ac_objext"   | \
14037    "fopen-safer.$ac_objext "* | \
14038  *" fopen-safer.$ac_objext "* ) ;;
14039  *) LIBOBJS="$LIBOBJS fopen-safer.$ac_objext" ;;
14040esac
14041
14042
14043
14044
14045
14046
14047
14048for ac_func in stpcpy
14049do
14050as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14051echo "$as_me:$LINENO: checking for $ac_func" >&5
14052echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14053if eval "test \"\${$as_ac_var+set}\" = set"; then
14054  echo $ECHO_N "(cached) $ECHO_C" >&6
14055else
14056  cat >conftest.$ac_ext <<_ACEOF
14057/* confdefs.h.  */
14058_ACEOF
14059cat confdefs.h >>conftest.$ac_ext
14060cat >>conftest.$ac_ext <<_ACEOF
14061/* end confdefs.h.  */
14062/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14063   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14064#define $ac_func innocuous_$ac_func
14065
14066/* System header to define __stub macros and hopefully few prototypes,
14067    which can conflict with char $ac_func (); below.
14068    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14069    <limits.h> exists even on freestanding compilers.  */
14070
14071#ifdef __STDC__
14072# include <limits.h>
14073#else
14074# include <assert.h>
14075#endif
14076
14077#undef $ac_func
14078
14079/* Override any gcc2 internal prototype to avoid an error.  */
14080#ifdef __cplusplus
14081extern "C"
14082{
14083#endif
14084/* We use char because int might match the return type of a gcc2
14085   builtin and then its argument prototype would still apply.  */
14086char $ac_func ();
14087/* The GNU C library defines this for functions which it implements
14088    to always fail with ENOSYS.  Some functions are actually named
14089    something starting with __ and the normal name is an alias.  */
14090#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14091choke me
14092#else
14093char (*f) () = $ac_func;
14094#endif
14095#ifdef __cplusplus
14096}
14097#endif
14098
14099int
14100main ()
14101{
14102return f != $ac_func;
14103  ;
14104  return 0;
14105}
14106_ACEOF
14107rm -f conftest.$ac_objext conftest$ac_exeext
14108if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14109  (eval $ac_link) 2>conftest.er1
14110  ac_status=$?
14111  grep -v '^ *+' conftest.er1 >conftest.err
14112  rm -f conftest.er1
14113  cat conftest.err >&5
14114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115  (exit $ac_status); } &&
14116	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
14117  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14118  (eval $ac_try) 2>&5
14119  ac_status=$?
14120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121  (exit $ac_status); }; } &&
14122	 { ac_try='test -s conftest$ac_exeext'
14123  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14124  (eval $ac_try) 2>&5
14125  ac_status=$?
14126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14127  (exit $ac_status); }; }; then
14128  eval "$as_ac_var=yes"
14129else
14130  echo "$as_me: failed program was:" >&5
14131sed 's/^/| /' conftest.$ac_ext >&5
14132
14133eval "$as_ac_var=no"
14134fi
14135rm -f conftest.err conftest.$ac_objext \
14136      conftest$ac_exeext conftest.$ac_ext
14137fi
14138echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14139echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14140if test `eval echo '${'$as_ac_var'}'` = yes; then
14141  cat >>confdefs.h <<_ACEOF
14142#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14143_ACEOF
14144
14145else
14146  case $LIBOBJS in
14147    "$ac_func.$ac_objext"   | \
14148  *" $ac_func.$ac_objext"   | \
14149    "$ac_func.$ac_objext "* | \
14150  *" $ac_func.$ac_objext "* ) ;;
14151  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
14152esac
14153
14154fi
14155done
14156
14157
14158  if test $ac_cv_func_stpcpy = no; then
14159
14160  :
14161
14162  fi
14163
14164
14165
14166
14167
14168
14169for ac_func in strdup
14170do
14171as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14172echo "$as_me:$LINENO: checking for $ac_func" >&5
14173echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14174if eval "test \"\${$as_ac_var+set}\" = set"; then
14175  echo $ECHO_N "(cached) $ECHO_C" >&6
14176else
14177  cat >conftest.$ac_ext <<_ACEOF
14178/* confdefs.h.  */
14179_ACEOF
14180cat confdefs.h >>conftest.$ac_ext
14181cat >>conftest.$ac_ext <<_ACEOF
14182/* end confdefs.h.  */
14183/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14184   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14185#define $ac_func innocuous_$ac_func
14186
14187/* System header to define __stub macros and hopefully few prototypes,
14188    which can conflict with char $ac_func (); below.
14189    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14190    <limits.h> exists even on freestanding compilers.  */
14191
14192#ifdef __STDC__
14193# include <limits.h>
14194#else
14195# include <assert.h>
14196#endif
14197
14198#undef $ac_func
14199
14200/* Override any gcc2 internal prototype to avoid an error.  */
14201#ifdef __cplusplus
14202extern "C"
14203{
14204#endif
14205/* We use char because int might match the return type of a gcc2
14206   builtin and then its argument prototype would still apply.  */
14207char $ac_func ();
14208/* The GNU C library defines this for functions which it implements
14209    to always fail with ENOSYS.  Some functions are actually named
14210    something starting with __ and the normal name is an alias.  */
14211#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14212choke me
14213#else
14214char (*f) () = $ac_func;
14215#endif
14216#ifdef __cplusplus
14217}
14218#endif
14219
14220int
14221main ()
14222{
14223return f != $ac_func;
14224  ;
14225  return 0;
14226}
14227_ACEOF
14228rm -f conftest.$ac_objext conftest$ac_exeext
14229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14230  (eval $ac_link) 2>conftest.er1
14231  ac_status=$?
14232  grep -v '^ *+' conftest.er1 >conftest.err
14233  rm -f conftest.er1
14234  cat conftest.err >&5
14235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236  (exit $ac_status); } &&
14237	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
14238  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14239  (eval $ac_try) 2>&5
14240  ac_status=$?
14241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242  (exit $ac_status); }; } &&
14243	 { ac_try='test -s conftest$ac_exeext'
14244  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14245  (eval $ac_try) 2>&5
14246  ac_status=$?
14247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248  (exit $ac_status); }; }; then
14249  eval "$as_ac_var=yes"
14250else
14251  echo "$as_me: failed program was:" >&5
14252sed 's/^/| /' conftest.$ac_ext >&5
14253
14254eval "$as_ac_var=no"
14255fi
14256rm -f conftest.err conftest.$ac_objext \
14257      conftest$ac_exeext conftest.$ac_ext
14258fi
14259echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14260echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14261if test `eval echo '${'$as_ac_var'}'` = yes; then
14262  cat >>confdefs.h <<_ACEOF
14263#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14264_ACEOF
14265
14266else
14267  case $LIBOBJS in
14268    "$ac_func.$ac_objext"   | \
14269  *" $ac_func.$ac_objext"   | \
14270    "$ac_func.$ac_objext "* | \
14271  *" $ac_func.$ac_objext "* ) ;;
14272  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
14273esac
14274
14275fi
14276done
14277
14278
14279
14280  :
14281
14282
14283
14284
14285
14286  :
14287
14288
14289
14290
14291for ac_func in strerror
14292do
14293as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14294echo "$as_me:$LINENO: checking for $ac_func" >&5
14295echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14296if eval "test \"\${$as_ac_var+set}\" = set"; then
14297  echo $ECHO_N "(cached) $ECHO_C" >&6
14298else
14299  cat >conftest.$ac_ext <<_ACEOF
14300/* confdefs.h.  */
14301_ACEOF
14302cat confdefs.h >>conftest.$ac_ext
14303cat >>conftest.$ac_ext <<_ACEOF
14304/* end confdefs.h.  */
14305/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14306   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14307#define $ac_func innocuous_$ac_func
14308
14309/* System header to define __stub macros and hopefully few prototypes,
14310    which can conflict with char $ac_func (); below.
14311    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14312    <limits.h> exists even on freestanding compilers.  */
14313
14314#ifdef __STDC__
14315# include <limits.h>
14316#else
14317# include <assert.h>
14318#endif
14319
14320#undef $ac_func
14321
14322/* Override any gcc2 internal prototype to avoid an error.  */
14323#ifdef __cplusplus
14324extern "C"
14325{
14326#endif
14327/* We use char because int might match the return type of a gcc2
14328   builtin and then its argument prototype would still apply.  */
14329char $ac_func ();
14330/* The GNU C library defines this for functions which it implements
14331    to always fail with ENOSYS.  Some functions are actually named
14332    something starting with __ and the normal name is an alias.  */
14333#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14334choke me
14335#else
14336char (*f) () = $ac_func;
14337#endif
14338#ifdef __cplusplus
14339}
14340#endif
14341
14342int
14343main ()
14344{
14345return f != $ac_func;
14346  ;
14347  return 0;
14348}
14349_ACEOF
14350rm -f conftest.$ac_objext conftest$ac_exeext
14351if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14352  (eval $ac_link) 2>conftest.er1
14353  ac_status=$?
14354  grep -v '^ *+' conftest.er1 >conftest.err
14355  rm -f conftest.er1
14356  cat conftest.err >&5
14357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358  (exit $ac_status); } &&
14359	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
14360  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14361  (eval $ac_try) 2>&5
14362  ac_status=$?
14363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364  (exit $ac_status); }; } &&
14365	 { ac_try='test -s conftest$ac_exeext'
14366  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14367  (eval $ac_try) 2>&5
14368  ac_status=$?
14369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370  (exit $ac_status); }; }; then
14371  eval "$as_ac_var=yes"
14372else
14373  echo "$as_me: failed program was:" >&5
14374sed 's/^/| /' conftest.$ac_ext >&5
14375
14376eval "$as_ac_var=no"
14377fi
14378rm -f conftest.err conftest.$ac_objext \
14379      conftest$ac_exeext conftest.$ac_ext
14380fi
14381echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14382echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14383if test `eval echo '${'$as_ac_var'}'` = yes; then
14384  cat >>confdefs.h <<_ACEOF
14385#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14386_ACEOF
14387
14388else
14389  case $LIBOBJS in
14390    "$ac_func.$ac_objext"   | \
14391  *" $ac_func.$ac_objext"   | \
14392    "$ac_func.$ac_objext "* | \
14393  *" $ac_func.$ac_objext "* ) ;;
14394  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
14395esac
14396
14397fi
14398done
14399
14400
14401  if test $ac_cv_func_strerror = no; then
14402
14403  :
14404
14405  fi
14406
14407
14408
14409
14410
14411
14412
14413
14414  :
14415
14416
14417
14418
14419
14420
14421  # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
14422  echo "$as_me:$LINENO: checking for working strndup" >&5
14423echo $ECHO_N "checking for working strndup... $ECHO_C" >&6
14424if test "${gl_cv_func_strndup+set}" = set; then
14425  echo $ECHO_N "(cached) $ECHO_C" >&6
14426else
14427  if test "$cross_compiling" = yes; then
14428  cat >conftest.$ac_ext <<_ACEOF
14429/* confdefs.h.  */
14430_ACEOF
14431cat confdefs.h >>conftest.$ac_ext
14432cat >>conftest.$ac_ext <<_ACEOF
14433/* end confdefs.h.  */
14434
14435#ifdef _AIX
14436            too risky
14437#endif
14438
14439_ACEOF
14440if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14441  $EGREP "too risky" >/dev/null 2>&1; then
14442  gl_cv_func_strndup=no
14443else
14444  gl_cv_func_strndup=yes
14445fi
14446rm -f conftest*
14447
14448else
14449  cat >conftest.$ac_ext <<_ACEOF
14450
14451       /* confdefs.h.  */
14452_ACEOF
14453cat confdefs.h >>conftest.$ac_ext
14454cat >>conftest.$ac_ext <<_ACEOF
14455/* end confdefs.h.  */
14456#include <string.h>
14457int
14458main ()
14459{
14460
14461#ifndef HAVE_DECL_STRNDUP
14462  extern char *strndup (const char *, size_t);
14463#endif
14464  char *s;
14465  s = strndup ("some longer string", 15);
14466  free (s);
14467  s = strndup ("shorter string", 13);
14468  return s[13] != '\0';
14469  ;
14470  return 0;
14471}
14472_ACEOF
14473rm -f conftest$ac_exeext
14474if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14475  (eval $ac_link) 2>&5
14476  ac_status=$?
14477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14479  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14480  (eval $ac_try) 2>&5
14481  ac_status=$?
14482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483  (exit $ac_status); }; }; then
14484  gl_cv_func_strndup=yes
14485else
14486  echo "$as_me: program exited with status $ac_status" >&5
14487echo "$as_me: failed program was:" >&5
14488sed 's/^/| /' conftest.$ac_ext >&5
14489
14490( exit $ac_status )
14491gl_cv_func_strndup=no
14492fi
14493rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14494fi
14495fi
14496echo "$as_me:$LINENO: result: $gl_cv_func_strndup" >&5
14497echo "${ECHO_T}$gl_cv_func_strndup" >&6
14498  if test $gl_cv_func_strndup = yes; then
14499
14500cat >>confdefs.h <<\_ACEOF
14501#define HAVE_STRNDUP 1
14502_ACEOF
14503
14504  else
14505    case $LIBOBJS in
14506    "strndup.$ac_objext"   | \
14507  *" strndup.$ac_objext"   | \
14508    "strndup.$ac_objext "* | \
14509  *" strndup.$ac_objext "* ) ;;
14510  *) LIBOBJS="$LIBOBJS strndup.$ac_objext" ;;
14511esac
14512
14513
14514cat >>confdefs.h <<\_ACEOF
14515#define strndup rpl_strndup
14516_ACEOF
14517
14518    :
14519  fi
14520
14521
14522
14523
14524
14525
14526
14527  echo "$as_me:$LINENO: checking for working strnlen" >&5
14528echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6
14529if test "${ac_cv_func_strnlen_working+set}" = set; then
14530  echo $ECHO_N "(cached) $ECHO_C" >&6
14531else
14532  if test "$cross_compiling" = yes; then
14533  ac_cv_func_strnlen_working=no
14534else
14535  cat >conftest.$ac_ext <<_ACEOF
14536/* confdefs.h.  */
14537_ACEOF
14538cat confdefs.h >>conftest.$ac_ext
14539cat >>conftest.$ac_ext <<_ACEOF
14540/* end confdefs.h.  */
14541$ac_includes_default
14542int
14543main ()
14544{
14545
14546#define S "foobar"
14547#define S_LEN (sizeof S - 1)
14548
14549  /* At least one implementation is buggy: that of AIX 4.3 would
14550     give strnlen (S, 1) == 3.  */
14551
14552  int i;
14553  for (i = 0; i < S_LEN + 1; ++i)
14554    {
14555      int expected = i <= S_LEN ? i : S_LEN;
14556      if (strnlen (S, i) != expected)
14557	exit (1);
14558    }
14559  exit (0);
14560
14561  ;
14562  return 0;
14563}
14564_ACEOF
14565rm -f conftest$ac_exeext
14566if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14567  (eval $ac_link) 2>&5
14568  ac_status=$?
14569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14570  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14571  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14572  (eval $ac_try) 2>&5
14573  ac_status=$?
14574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575  (exit $ac_status); }; }; then
14576  ac_cv_func_strnlen_working=yes
14577else
14578  echo "$as_me: program exited with status $ac_status" >&5
14579echo "$as_me: failed program was:" >&5
14580sed 's/^/| /' conftest.$ac_ext >&5
14581
14582( exit $ac_status )
14583ac_cv_func_strnlen_working=no
14584fi
14585rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14586fi
14587fi
14588echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
14589echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6
14590test $ac_cv_func_strnlen_working = no && case $LIBOBJS in
14591    "strnlen.$ac_objext"   | \
14592  *" strnlen.$ac_objext"   | \
14593    "strnlen.$ac_objext "* | \
14594  *" strnlen.$ac_objext "* ) ;;
14595  *) LIBOBJS="$LIBOBJS strnlen.$ac_objext" ;;
14596esac
14597
14598
14599  if test $ac_cv_func_strnlen_working = no; then
14600    # This is necessary because automake-1.6.1 doens't understand
14601    # that the above use of AC_FUNC_STRNLEN means we may have to use
14602    # lib/strnlen.c.
14603    #AC_LIBOBJ(strnlen)
14604
14605cat >>confdefs.h <<\_ACEOF
14606#define strnlen rpl_strnlen
14607_ACEOF
14608
14609
14610
14611  :
14612
14613
14614
14615
14616
14617
14618  fi
14619
14620
14621
14622
14623for ac_func in strtol
14624do
14625as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14626echo "$as_me:$LINENO: checking for $ac_func" >&5
14627echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14628if eval "test \"\${$as_ac_var+set}\" = set"; then
14629  echo $ECHO_N "(cached) $ECHO_C" >&6
14630else
14631  cat >conftest.$ac_ext <<_ACEOF
14632/* confdefs.h.  */
14633_ACEOF
14634cat confdefs.h >>conftest.$ac_ext
14635cat >>conftest.$ac_ext <<_ACEOF
14636/* end confdefs.h.  */
14637/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14638   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14639#define $ac_func innocuous_$ac_func
14640
14641/* System header to define __stub macros and hopefully few prototypes,
14642    which can conflict with char $ac_func (); below.
14643    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14644    <limits.h> exists even on freestanding compilers.  */
14645
14646#ifdef __STDC__
14647# include <limits.h>
14648#else
14649# include <assert.h>
14650#endif
14651
14652#undef $ac_func
14653
14654/* Override any gcc2 internal prototype to avoid an error.  */
14655#ifdef __cplusplus
14656extern "C"
14657{
14658#endif
14659/* We use char because int might match the return type of a gcc2
14660   builtin and then its argument prototype would still apply.  */
14661char $ac_func ();
14662/* The GNU C library defines this for functions which it implements
14663    to always fail with ENOSYS.  Some functions are actually named
14664    something starting with __ and the normal name is an alias.  */
14665#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14666choke me
14667#else
14668char (*f) () = $ac_func;
14669#endif
14670#ifdef __cplusplus
14671}
14672#endif
14673
14674int
14675main ()
14676{
14677return f != $ac_func;
14678  ;
14679  return 0;
14680}
14681_ACEOF
14682rm -f conftest.$ac_objext conftest$ac_exeext
14683if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14684  (eval $ac_link) 2>conftest.er1
14685  ac_status=$?
14686  grep -v '^ *+' conftest.er1 >conftest.err
14687  rm -f conftest.er1
14688  cat conftest.err >&5
14689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690  (exit $ac_status); } &&
14691	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
14692  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14693  (eval $ac_try) 2>&5
14694  ac_status=$?
14695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696  (exit $ac_status); }; } &&
14697	 { ac_try='test -s conftest$ac_exeext'
14698  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14699  (eval $ac_try) 2>&5
14700  ac_status=$?
14701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14702  (exit $ac_status); }; }; then
14703  eval "$as_ac_var=yes"
14704else
14705  echo "$as_me: failed program was:" >&5
14706sed 's/^/| /' conftest.$ac_ext >&5
14707
14708eval "$as_ac_var=no"
14709fi
14710rm -f conftest.err conftest.$ac_objext \
14711      conftest$ac_exeext conftest.$ac_ext
14712fi
14713echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14714echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14715if test `eval echo '${'$as_ac_var'}'` = yes; then
14716  cat >>confdefs.h <<_ACEOF
14717#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14718_ACEOF
14719
14720else
14721  case $LIBOBJS in
14722    "$ac_func.$ac_objext"   | \
14723  *" $ac_func.$ac_objext"   | \
14724    "$ac_func.$ac_objext "* | \
14725  *" $ac_func.$ac_objext "* ) ;;
14726  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
14727esac
14728
14729fi
14730done
14731
14732
14733  if test $ac_cv_func_strtol = no; then
14734
14735
14736
14737  :
14738
14739
14740
14741
14742
14743
14744  fi
14745
14746
14747
14748
14749for ac_func in strtoul
14750do
14751as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14752echo "$as_me:$LINENO: checking for $ac_func" >&5
14753echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14754if eval "test \"\${$as_ac_var+set}\" = set"; then
14755  echo $ECHO_N "(cached) $ECHO_C" >&6
14756else
14757  cat >conftest.$ac_ext <<_ACEOF
14758/* confdefs.h.  */
14759_ACEOF
14760cat confdefs.h >>conftest.$ac_ext
14761cat >>conftest.$ac_ext <<_ACEOF
14762/* end confdefs.h.  */
14763/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14764   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14765#define $ac_func innocuous_$ac_func
14766
14767/* System header to define __stub macros and hopefully few prototypes,
14768    which can conflict with char $ac_func (); below.
14769    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14770    <limits.h> exists even on freestanding compilers.  */
14771
14772#ifdef __STDC__
14773# include <limits.h>
14774#else
14775# include <assert.h>
14776#endif
14777
14778#undef $ac_func
14779
14780/* Override any gcc2 internal prototype to avoid an error.  */
14781#ifdef __cplusplus
14782extern "C"
14783{
14784#endif
14785/* We use char because int might match the return type of a gcc2
14786   builtin and then its argument prototype would still apply.  */
14787char $ac_func ();
14788/* The GNU C library defines this for functions which it implements
14789    to always fail with ENOSYS.  Some functions are actually named
14790    something starting with __ and the normal name is an alias.  */
14791#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14792choke me
14793#else
14794char (*f) () = $ac_func;
14795#endif
14796#ifdef __cplusplus
14797}
14798#endif
14799
14800int
14801main ()
14802{
14803return f != $ac_func;
14804  ;
14805  return 0;
14806}
14807_ACEOF
14808rm -f conftest.$ac_objext conftest$ac_exeext
14809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14810  (eval $ac_link) 2>conftest.er1
14811  ac_status=$?
14812  grep -v '^ *+' conftest.er1 >conftest.err
14813  rm -f conftest.er1
14814  cat conftest.err >&5
14815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816  (exit $ac_status); } &&
14817	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
14818  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14819  (eval $ac_try) 2>&5
14820  ac_status=$?
14821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822  (exit $ac_status); }; } &&
14823	 { ac_try='test -s conftest$ac_exeext'
14824  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14825  (eval $ac_try) 2>&5
14826  ac_status=$?
14827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828  (exit $ac_status); }; }; then
14829  eval "$as_ac_var=yes"
14830else
14831  echo "$as_me: failed program was:" >&5
14832sed 's/^/| /' conftest.$ac_ext >&5
14833
14834eval "$as_ac_var=no"
14835fi
14836rm -f conftest.err conftest.$ac_objext \
14837      conftest$ac_exeext conftest.$ac_ext
14838fi
14839echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14840echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14841if test `eval echo '${'$as_ac_var'}'` = yes; then
14842  cat >>confdefs.h <<_ACEOF
14843#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14844_ACEOF
14845
14846else
14847  case $LIBOBJS in
14848    "$ac_func.$ac_objext"   | \
14849  *" $ac_func.$ac_objext"   | \
14850    "$ac_func.$ac_objext "* | \
14851  *" $ac_func.$ac_objext "* ) ;;
14852  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
14853esac
14854
14855fi
14856done
14857
14858
14859  if test $ac_cv_func_strtoul = no; then
14860
14861
14862
14863
14864  :
14865
14866
14867
14868
14869
14870
14871
14872  fi
14873
14874
14875
14876
14877
14878
14879
14880
14881for ac_func in strverscmp
14882do
14883as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14884echo "$as_me:$LINENO: checking for $ac_func" >&5
14885echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14886if eval "test \"\${$as_ac_var+set}\" = set"; then
14887  echo $ECHO_N "(cached) $ECHO_C" >&6
14888else
14889  cat >conftest.$ac_ext <<_ACEOF
14890/* confdefs.h.  */
14891_ACEOF
14892cat confdefs.h >>conftest.$ac_ext
14893cat >>conftest.$ac_ext <<_ACEOF
14894/* end confdefs.h.  */
14895/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14896   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14897#define $ac_func innocuous_$ac_func
14898
14899/* System header to define __stub macros and hopefully few prototypes,
14900    which can conflict with char $ac_func (); below.
14901    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14902    <limits.h> exists even on freestanding compilers.  */
14903
14904#ifdef __STDC__
14905# include <limits.h>
14906#else
14907# include <assert.h>
14908#endif
14909
14910#undef $ac_func
14911
14912/* Override any gcc2 internal prototype to avoid an error.  */
14913#ifdef __cplusplus
14914extern "C"
14915{
14916#endif
14917/* We use char because int might match the return type of a gcc2
14918   builtin and then its argument prototype would still apply.  */
14919char $ac_func ();
14920/* The GNU C library defines this for functions which it implements
14921    to always fail with ENOSYS.  Some functions are actually named
14922    something starting with __ and the normal name is an alias.  */
14923#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14924choke me
14925#else
14926char (*f) () = $ac_func;
14927#endif
14928#ifdef __cplusplus
14929}
14930#endif
14931
14932int
14933main ()
14934{
14935return f != $ac_func;
14936  ;
14937  return 0;
14938}
14939_ACEOF
14940rm -f conftest.$ac_objext conftest$ac_exeext
14941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14942  (eval $ac_link) 2>conftest.er1
14943  ac_status=$?
14944  grep -v '^ *+' conftest.er1 >conftest.err
14945  rm -f conftest.er1
14946  cat conftest.err >&5
14947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14948  (exit $ac_status); } &&
14949	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
14950  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14951  (eval $ac_try) 2>&5
14952  ac_status=$?
14953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954  (exit $ac_status); }; } &&
14955	 { ac_try='test -s conftest$ac_exeext'
14956  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14957  (eval $ac_try) 2>&5
14958  ac_status=$?
14959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960  (exit $ac_status); }; }; then
14961  eval "$as_ac_var=yes"
14962else
14963  echo "$as_me: failed program was:" >&5
14964sed 's/^/| /' conftest.$ac_ext >&5
14965
14966eval "$as_ac_var=no"
14967fi
14968rm -f conftest.err conftest.$ac_objext \
14969      conftest$ac_exeext conftest.$ac_ext
14970fi
14971echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14972echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14973if test `eval echo '${'$as_ac_var'}'` = yes; then
14974  cat >>confdefs.h <<_ACEOF
14975#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14976_ACEOF
14977
14978else
14979  case $LIBOBJS in
14980    "$ac_func.$ac_objext"   | \
14981  *" $ac_func.$ac_objext"   | \
14982    "$ac_func.$ac_objext "* | \
14983  *" $ac_func.$ac_objext "* ) ;;
14984  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
14985esac
14986
14987fi
14988done
14989
14990
14991  if test $ac_cv_func_strverscmp = no; then
14992
14993  :
14994
14995  fi
14996
14997
14998
14999
15000for ac_header in unistd.h
15001do
15002as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15003if eval "test \"\${$as_ac_Header+set}\" = set"; then
15004  echo "$as_me:$LINENO: checking for $ac_header" >&5
15005echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15006if eval "test \"\${$as_ac_Header+set}\" = set"; then
15007  echo $ECHO_N "(cached) $ECHO_C" >&6
15008fi
15009echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15010echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15011else
15012  # Is the header compilable?
15013echo "$as_me:$LINENO: checking $ac_header usability" >&5
15014echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15015cat >conftest.$ac_ext <<_ACEOF
15016/* confdefs.h.  */
15017_ACEOF
15018cat confdefs.h >>conftest.$ac_ext
15019cat >>conftest.$ac_ext <<_ACEOF
15020/* end confdefs.h.  */
15021$ac_includes_default
15022#include <$ac_header>
15023_ACEOF
15024rm -f conftest.$ac_objext
15025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15026  (eval $ac_compile) 2>conftest.er1
15027  ac_status=$?
15028  grep -v '^ *+' conftest.er1 >conftest.err
15029  rm -f conftest.er1
15030  cat conftest.err >&5
15031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032  (exit $ac_status); } &&
15033	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
15034  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15035  (eval $ac_try) 2>&5
15036  ac_status=$?
15037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038  (exit $ac_status); }; } &&
15039	 { ac_try='test -s conftest.$ac_objext'
15040  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15041  (eval $ac_try) 2>&5
15042  ac_status=$?
15043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044  (exit $ac_status); }; }; then
15045  ac_header_compiler=yes
15046else
15047  echo "$as_me: failed program was:" >&5
15048sed 's/^/| /' conftest.$ac_ext >&5
15049
15050ac_header_compiler=no
15051fi
15052rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15053echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15054echo "${ECHO_T}$ac_header_compiler" >&6
15055
15056# Is the header present?
15057echo "$as_me:$LINENO: checking $ac_header presence" >&5
15058echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15059cat >conftest.$ac_ext <<_ACEOF
15060/* confdefs.h.  */
15061_ACEOF
15062cat confdefs.h >>conftest.$ac_ext
15063cat >>conftest.$ac_ext <<_ACEOF
15064/* end confdefs.h.  */
15065#include <$ac_header>
15066_ACEOF
15067if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15068  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15069  ac_status=$?
15070  grep -v '^ *+' conftest.er1 >conftest.err
15071  rm -f conftest.er1
15072  cat conftest.err >&5
15073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074  (exit $ac_status); } >/dev/null; then
15075  if test -s conftest.err; then
15076    ac_cpp_err=$ac_c_preproc_warn_flag
15077    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15078  else
15079    ac_cpp_err=
15080  fi
15081else
15082  ac_cpp_err=yes
15083fi
15084if test -z "$ac_cpp_err"; then
15085  ac_header_preproc=yes
15086else
15087  echo "$as_me: failed program was:" >&5
15088sed 's/^/| /' conftest.$ac_ext >&5
15089
15090  ac_header_preproc=no
15091fi
15092rm -f conftest.err conftest.$ac_ext
15093echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15094echo "${ECHO_T}$ac_header_preproc" >&6
15095
15096# So?  What about this header?
15097case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15098  yes:no: )
15099    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15100echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15101    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15102echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15103    ac_header_preproc=yes
15104    ;;
15105  no:yes:* )
15106    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15107echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15108    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15109echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15110    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15111echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15112    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15113echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15114    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15115echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15116    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15117echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15118    (
15119      cat <<\_ASBOX
15120## -------------------------------- ##
15121## Report this to bug-bison@gnu.org ##
15122## -------------------------------- ##
15123_ASBOX
15124    ) |
15125      sed "s/^/$as_me: WARNING:     /" >&2
15126    ;;
15127esac
15128echo "$as_me:$LINENO: checking for $ac_header" >&5
15129echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15130if eval "test \"\${$as_ac_Header+set}\" = set"; then
15131  echo $ECHO_N "(cached) $ECHO_C" >&6
15132else
15133  eval "$as_ac_Header=\$ac_header_preproc"
15134fi
15135echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15136echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15137
15138fi
15139if test `eval echo '${'$as_ac_Header'}'` = yes; then
15140  cat >>confdefs.h <<_ACEOF
15141#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15142_ACEOF
15143
15144    UNISTD_H=''
15145
15146else
15147
15148    UNISTD_H='unistd.h'
15149
15150fi
15151
15152done
15153
15154
15155
15156
15157
15158
15159  case $LIBOBJS in
15160    "dup-safer.$ac_objext"   | \
15161  *" dup-safer.$ac_objext"   | \
15162    "dup-safer.$ac_objext "* | \
15163  *" dup-safer.$ac_objext "* ) ;;
15164  *) LIBOBJS="$LIBOBJS dup-safer.$ac_objext" ;;
15165esac
15166
15167  case $LIBOBJS in
15168    "fd-safer.$ac_objext"   | \
15169  *" fd-safer.$ac_objext"   | \
15170    "fd-safer.$ac_objext "* | \
15171  *" fd-safer.$ac_objext "* ) ;;
15172  *) LIBOBJS="$LIBOBJS fd-safer.$ac_objext" ;;
15173esac
15174
15175  case $LIBOBJS in
15176    "pipe-safer.$ac_objext"   | \
15177  *" pipe-safer.$ac_objext"   | \
15178    "pipe-safer.$ac_objext "* | \
15179  *" pipe-safer.$ac_objext "* ) ;;
15180  *) LIBOBJS="$LIBOBJS pipe-safer.$ac_objext" ;;
15181esac
15182
15183
15184
15185
15186
15187
15188
15189cat >>confdefs.h <<\_ACEOF
15190#define USE_UNLOCKED_IO 1
15191_ACEOF
15192
15193
15194
15195
15196
15197  :
15198
15199
15200
15201
15202
15203
15204  :
15205
15206
15207
15208
15209
15210
15211  :
15212
15213
15214
15215
15216
15217
15218  :
15219
15220
15221
15222
15223
15224
15225  :
15226
15227
15228
15229
15230
15231
15232  :
15233
15234
15235
15236
15237
15238
15239  :
15240
15241
15242
15243
15244
15245
15246  :
15247
15248
15249
15250
15251
15252
15253  :
15254
15255
15256
15257
15258
15259
15260  :
15261
15262
15263
15264
15265
15266
15267  :
15268
15269
15270
15271
15272
15273
15274  :
15275
15276
15277
15278
15279
15280
15281  :
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292  case $LIBOBJS in
15293    "xmalloc.$ac_objext"   | \
15294  *" xmalloc.$ac_objext"   | \
15295    "xmalloc.$ac_objext "* | \
15296  *" xmalloc.$ac_objext "* ) ;;
15297  *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext" ;;
15298esac
15299
15300
15301
15302  :
15303
15304
15305
15306  :
15307
15308
15309
15310
15311
15312
15313  :
15314
15315
15316
15317
15318# We use po/Makevars, so we need at least gettext 0.12.
15319
15320
15321  if test -z "$USE_NLS"; then
15322    echo "The BISON-I18N macro is used without being preceded by AM-GNU-GETTEXT." 1>&2
15323    exit 1
15324  fi
15325  BISON_LOCALEDIR=
15326  if test "$USE_NLS" = yes; then
15327        if test -n "$YACC"; then
15328      case "$YACC" in
15329        *bison*)
15330          if ($YACC --print-localedir) >/dev/null 2>&1; then
15331            BISON_LOCALEDIR=`$YACC --print-localedir`
15332          fi
15333          ;;
15334      esac
15335    else
15336      if test -n "$BISON"; then
15337        if test "$BISON" != ":"; then
15338          if ($BISON --print-localedir) >/dev/null 2>&1; then
15339            BISON_LOCALEDIR=`$BISON --print-localedir`
15340          fi
15341        fi
15342      fi
15343    fi
15344
15345    if test -n "$BISON_LOCALEDIR"; then
15346      USER_LINGUAS="${LINGUAS-%UNSET%}"
15347      if test -n "$USER_LINGUAS"; then
15348        BISON_USE_NLS=yes
15349      else
15350        BISON_USE_NLS=no
15351      fi
15352    else
15353      BISON_USE_NLS=no
15354    fi
15355  else
15356    BISON_USE_NLS=no
15357  fi
15358  if test $BISON_USE_NLS = yes; then
15359
15360cat >>confdefs.h <<\_ACEOF
15361#define YYENABLE_NLS 1
15362_ACEOF
15363
15364  fi
15365
15366
15367# Internationalized parsers.
15368          ac_config_files="$ac_config_files runtime-po/Makefile.in"
15369
15370# Autoconf macros for packages using internationalized parsers.
15371aclocaldir='${datadir}/aclocal'
15372
15373
15374# Initialize the test suite.
15375          ac_config_commands="$ac_config_commands tests/atconfig"
15376
15377
15378                    ac_config_files="$ac_config_files tests/Makefile tests/atlocal"
15379
15380          ac_config_files="$ac_config_files tests/bison"
15381
15382for ac_prog in valgrind
15383do
15384  # Extract the first word of "$ac_prog", so it can be a program name with args.
15385set dummy $ac_prog; ac_word=$2
15386echo "$as_me:$LINENO: checking for $ac_word" >&5
15387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15388if test "${ac_cv_prog_VALGRIND+set}" = set; then
15389  echo $ECHO_N "(cached) $ECHO_C" >&6
15390else
15391  if test -n "$VALGRIND"; then
15392  ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test.
15393else
15394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15395for as_dir in $PATH
15396do
15397  IFS=$as_save_IFS
15398  test -z "$as_dir" && as_dir=.
15399  for ac_exec_ext in '' $ac_executable_extensions; do
15400  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15401    ac_cv_prog_VALGRIND="$ac_prog"
15402    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15403    break 2
15404  fi
15405done
15406done
15407
15408fi
15409fi
15410VALGRIND=$ac_cv_prog_VALGRIND
15411if test -n "$VALGRIND"; then
15412  echo "$as_me:$LINENO: result: $VALGRIND" >&5
15413echo "${ECHO_T}$VALGRIND" >&6
15414else
15415  echo "$as_me:$LINENO: result: no" >&5
15416echo "${ECHO_T}no" >&6
15417fi
15418
15419  test -n "$VALGRIND" && break
15420done
15421
15422ac_ext=cc
15423ac_cpp='$CXXCPP $CPPFLAGS'
15424ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15425ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15426ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15427if test -n "$ac_tool_prefix"; then
15428  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
15429  do
15430    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15431set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15432echo "$as_me:$LINENO: checking for $ac_word" >&5
15433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15434if test "${ac_cv_prog_CXX+set}" = set; then
15435  echo $ECHO_N "(cached) $ECHO_C" >&6
15436else
15437  if test -n "$CXX"; then
15438  ac_cv_prog_CXX="$CXX" # Let the user override the test.
15439else
15440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15441for as_dir in $PATH
15442do
15443  IFS=$as_save_IFS
15444  test -z "$as_dir" && as_dir=.
15445  for ac_exec_ext in '' $ac_executable_extensions; do
15446  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15447    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
15448    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15449    break 2
15450  fi
15451done
15452done
15453
15454fi
15455fi
15456CXX=$ac_cv_prog_CXX
15457if test -n "$CXX"; then
15458  echo "$as_me:$LINENO: result: $CXX" >&5
15459echo "${ECHO_T}$CXX" >&6
15460else
15461  echo "$as_me:$LINENO: result: no" >&5
15462echo "${ECHO_T}no" >&6
15463fi
15464
15465    test -n "$CXX" && break
15466  done
15467fi
15468if test -z "$CXX"; then
15469  ac_ct_CXX=$CXX
15470  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
15471do
15472  # Extract the first word of "$ac_prog", so it can be a program name with args.
15473set dummy $ac_prog; ac_word=$2
15474echo "$as_me:$LINENO: checking for $ac_word" >&5
15475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15476if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
15477  echo $ECHO_N "(cached) $ECHO_C" >&6
15478else
15479  if test -n "$ac_ct_CXX"; then
15480  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
15481else
15482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15483for as_dir in $PATH
15484do
15485  IFS=$as_save_IFS
15486  test -z "$as_dir" && as_dir=.
15487  for ac_exec_ext in '' $ac_executable_extensions; do
15488  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15489    ac_cv_prog_ac_ct_CXX="$ac_prog"
15490    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15491    break 2
15492  fi
15493done
15494done
15495
15496fi
15497fi
15498ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
15499if test -n "$ac_ct_CXX"; then
15500  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
15501echo "${ECHO_T}$ac_ct_CXX" >&6
15502else
15503  echo "$as_me:$LINENO: result: no" >&5
15504echo "${ECHO_T}no" >&6
15505fi
15506
15507  test -n "$ac_ct_CXX" && break
15508done
15509test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
15510
15511  CXX=$ac_ct_CXX
15512fi
15513
15514
15515# Provide some information about the compiler.
15516echo "$as_me:$LINENO:" \
15517     "checking for C++ compiler version" >&5
15518ac_compiler=`set X $ac_compile; echo $2`
15519{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
15520  (eval $ac_compiler --version </dev/null >&5) 2>&5
15521  ac_status=$?
15522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523  (exit $ac_status); }
15524{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
15525  (eval $ac_compiler -v </dev/null >&5) 2>&5
15526  ac_status=$?
15527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528  (exit $ac_status); }
15529{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
15530  (eval $ac_compiler -V </dev/null >&5) 2>&5
15531  ac_status=$?
15532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533  (exit $ac_status); }
15534
15535echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
15536echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
15537if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
15538  echo $ECHO_N "(cached) $ECHO_C" >&6
15539else
15540  cat >conftest.$ac_ext <<_ACEOF
15541/* confdefs.h.  */
15542_ACEOF
15543cat confdefs.h >>conftest.$ac_ext
15544cat >>conftest.$ac_ext <<_ACEOF
15545/* end confdefs.h.  */
15546
15547int
15548main ()
15549{
15550#ifndef __GNUC__
15551       choke me
15552#endif
15553
15554  ;
15555  return 0;
15556}
15557_ACEOF
15558rm -f conftest.$ac_objext
15559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15560  (eval $ac_compile) 2>conftest.er1
15561  ac_status=$?
15562  grep -v '^ *+' conftest.er1 >conftest.err
15563  rm -f conftest.er1
15564  cat conftest.err >&5
15565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566  (exit $ac_status); } &&
15567	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
15568  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15569  (eval $ac_try) 2>&5
15570  ac_status=$?
15571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572  (exit $ac_status); }; } &&
15573	 { ac_try='test -s conftest.$ac_objext'
15574  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15575  (eval $ac_try) 2>&5
15576  ac_status=$?
15577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578  (exit $ac_status); }; }; then
15579  ac_compiler_gnu=yes
15580else
15581  echo "$as_me: failed program was:" >&5
15582sed 's/^/| /' conftest.$ac_ext >&5
15583
15584ac_compiler_gnu=no
15585fi
15586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15587ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
15588
15589fi
15590echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
15591echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
15592GXX=`test $ac_compiler_gnu = yes && echo yes`
15593ac_test_CXXFLAGS=${CXXFLAGS+set}
15594ac_save_CXXFLAGS=$CXXFLAGS
15595CXXFLAGS="-g"
15596echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
15597echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
15598if test "${ac_cv_prog_cxx_g+set}" = set; then
15599  echo $ECHO_N "(cached) $ECHO_C" >&6
15600else
15601  cat >conftest.$ac_ext <<_ACEOF
15602/* confdefs.h.  */
15603_ACEOF
15604cat confdefs.h >>conftest.$ac_ext
15605cat >>conftest.$ac_ext <<_ACEOF
15606/* end confdefs.h.  */
15607
15608int
15609main ()
15610{
15611
15612  ;
15613  return 0;
15614}
15615_ACEOF
15616rm -f conftest.$ac_objext
15617if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15618  (eval $ac_compile) 2>conftest.er1
15619  ac_status=$?
15620  grep -v '^ *+' conftest.er1 >conftest.err
15621  rm -f conftest.er1
15622  cat conftest.err >&5
15623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624  (exit $ac_status); } &&
15625	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
15626  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15627  (eval $ac_try) 2>&5
15628  ac_status=$?
15629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630  (exit $ac_status); }; } &&
15631	 { ac_try='test -s conftest.$ac_objext'
15632  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15633  (eval $ac_try) 2>&5
15634  ac_status=$?
15635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636  (exit $ac_status); }; }; then
15637  ac_cv_prog_cxx_g=yes
15638else
15639  echo "$as_me: failed program was:" >&5
15640sed 's/^/| /' conftest.$ac_ext >&5
15641
15642ac_cv_prog_cxx_g=no
15643fi
15644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15645fi
15646echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
15647echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
15648if test "$ac_test_CXXFLAGS" = set; then
15649  CXXFLAGS=$ac_save_CXXFLAGS
15650elif test $ac_cv_prog_cxx_g = yes; then
15651  if test "$GXX" = yes; then
15652    CXXFLAGS="-g -O2"
15653  else
15654    CXXFLAGS="-g"
15655  fi
15656else
15657  if test "$GXX" = yes; then
15658    CXXFLAGS="-O2"
15659  else
15660    CXXFLAGS=
15661  fi
15662fi
15663for ac_declaration in \
15664   '' \
15665   'extern "C" void std::exit (int) throw (); using std::exit;' \
15666   'extern "C" void std::exit (int); using std::exit;' \
15667   'extern "C" void exit (int) throw ();' \
15668   'extern "C" void exit (int);' \
15669   'void exit (int);'
15670do
15671  cat >conftest.$ac_ext <<_ACEOF
15672/* confdefs.h.  */
15673_ACEOF
15674cat confdefs.h >>conftest.$ac_ext
15675cat >>conftest.$ac_ext <<_ACEOF
15676/* end confdefs.h.  */
15677$ac_declaration
15678#include <stdlib.h>
15679int
15680main ()
15681{
15682exit (42);
15683  ;
15684  return 0;
15685}
15686_ACEOF
15687rm -f conftest.$ac_objext
15688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15689  (eval $ac_compile) 2>conftest.er1
15690  ac_status=$?
15691  grep -v '^ *+' conftest.er1 >conftest.err
15692  rm -f conftest.er1
15693  cat conftest.err >&5
15694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695  (exit $ac_status); } &&
15696	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
15697  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15698  (eval $ac_try) 2>&5
15699  ac_status=$?
15700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701  (exit $ac_status); }; } &&
15702	 { ac_try='test -s conftest.$ac_objext'
15703  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15704  (eval $ac_try) 2>&5
15705  ac_status=$?
15706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707  (exit $ac_status); }; }; then
15708  :
15709else
15710  echo "$as_me: failed program was:" >&5
15711sed 's/^/| /' conftest.$ac_ext >&5
15712
15713continue
15714fi
15715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15716  cat >conftest.$ac_ext <<_ACEOF
15717/* confdefs.h.  */
15718_ACEOF
15719cat confdefs.h >>conftest.$ac_ext
15720cat >>conftest.$ac_ext <<_ACEOF
15721/* end confdefs.h.  */
15722$ac_declaration
15723int
15724main ()
15725{
15726exit (42);
15727  ;
15728  return 0;
15729}
15730_ACEOF
15731rm -f conftest.$ac_objext
15732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15733  (eval $ac_compile) 2>conftest.er1
15734  ac_status=$?
15735  grep -v '^ *+' conftest.er1 >conftest.err
15736  rm -f conftest.er1
15737  cat conftest.err >&5
15738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739  (exit $ac_status); } &&
15740	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
15741  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15742  (eval $ac_try) 2>&5
15743  ac_status=$?
15744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745  (exit $ac_status); }; } &&
15746	 { ac_try='test -s conftest.$ac_objext'
15747  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15748  (eval $ac_try) 2>&5
15749  ac_status=$?
15750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15751  (exit $ac_status); }; }; then
15752  break
15753else
15754  echo "$as_me: failed program was:" >&5
15755sed 's/^/| /' conftest.$ac_ext >&5
15756
15757fi
15758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15759done
15760rm -f conftest*
15761if test -n "$ac_declaration"; then
15762  echo '#ifdef __cplusplus' >>confdefs.h
15763  echo $ac_declaration      >>confdefs.h
15764  echo '#endif'             >>confdefs.h
15765fi
15766
15767ac_ext=c
15768ac_cpp='$CPP $CPPFLAGS'
15769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15771ac_compiler_gnu=$ac_cv_c_compiler_gnu
15772
15773depcc="$CXX"  am_compiler_list=
15774
15775echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
15776echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
15777if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
15778  echo $ECHO_N "(cached) $ECHO_C" >&6
15779else
15780  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15781  # We make a subdir and do the tests there.  Otherwise we can end up
15782  # making bogus files that we don't know about and never remove.  For
15783  # instance it was reported that on HP-UX the gcc test will end up
15784  # making a dummy file named `D' -- because `-MD' means `put the output
15785  # in D'.
15786  mkdir conftest.dir
15787  # Copy depcomp to subdir because otherwise we won't find it if we're
15788  # using a relative directory.
15789  cp "$am_depcomp" conftest.dir
15790  cd conftest.dir
15791  # We will build objects and dependencies in a subdirectory because
15792  # it helps to detect inapplicable dependency modes.  For instance
15793  # both Tru64's cc and ICC support -MD to output dependencies as a
15794  # side effect of compilation, but ICC will put the dependencies in
15795  # the current directory while Tru64 will put them in the object
15796  # directory.
15797  mkdir sub
15798
15799  am_cv_CXX_dependencies_compiler_type=none
15800  if test "$am_compiler_list" = ""; then
15801     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15802  fi
15803  for depmode in $am_compiler_list; do
15804    # Setup a source with many dependencies, because some compilers
15805    # like to wrap large dependency lists on column 80 (with \), and
15806    # we should not choose a depcomp mode which is confused by this.
15807    #
15808    # We need to recreate these files for each test, as the compiler may
15809    # overwrite some of them when testing with obscure command lines.
15810    # This happens at least with the AIX C compiler.
15811    : > sub/conftest.c
15812    for i in 1 2 3 4 5 6; do
15813      echo '#include "conftst'$i'.h"' >> sub/conftest.c
15814      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
15815      # Solaris 8's {/usr,}/bin/sh.
15816      touch sub/conftst$i.h
15817    done
15818    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15819
15820    case $depmode in
15821    nosideeffect)
15822      # after this tag, mechanisms are not by side-effect, so they'll
15823      # only be used when explicitly requested
15824      if test "x$enable_dependency_tracking" = xyes; then
15825	continue
15826      else
15827	break
15828      fi
15829      ;;
15830    none) break ;;
15831    esac
15832    # We check with `-c' and `-o' for the sake of the "dashmstdout"
15833    # mode.  It turns out that the SunPro C++ compiler does not properly
15834    # handle `-M -o', and we need to detect this.
15835    if depmode=$depmode \
15836       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
15837       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15838       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
15839         >/dev/null 2>conftest.err &&
15840       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15841       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
15842       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15843      # icc doesn't choke on unknown options, it will just issue warnings
15844      # or remarks (even with -Werror).  So we grep stderr for any message
15845      # that says an option was ignored or not supported.
15846      # When given -MP, icc 7.0 and 7.1 complain thusly:
15847      #   icc: Command line warning: ignoring option '-M'; no argument required
15848      # The diagnosis changed in icc 8.0:
15849      #   icc: Command line remark: option '-MP' not supported
15850      if (grep 'ignoring option' conftest.err ||
15851          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15852        am_cv_CXX_dependencies_compiler_type=$depmode
15853        break
15854      fi
15855    fi
15856  done
15857
15858  cd ..
15859  rm -rf conftest.dir
15860else
15861  am_cv_CXX_dependencies_compiler_type=none
15862fi
15863
15864fi
15865echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
15866echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
15867CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
15868
15869
15870
15871if
15872  test "x$enable_dependency_tracking" != xno \
15873  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
15874  am__fastdepCXX_TRUE=
15875  am__fastdepCXX_FALSE='#'
15876else
15877  am__fastdepCXX_TRUE='#'
15878  am__fastdepCXX_FALSE=
15879fi
15880
15881
15882
15883
15884 echo "$as_me:$LINENO: checking whether $CXX builds executables that work" >&5
15885echo $ECHO_N "checking whether $CXX builds executables that work... $ECHO_C" >&6
15886if test "${bison_cv_cxx_works+set}" = set; then
15887  echo $ECHO_N "(cached) $ECHO_C" >&6
15888else
15889  ac_ext=cc
15890ac_cpp='$CXXCPP $CPPFLAGS'
15891ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15892ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15893ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15894
15895    bison_cv_cxx_works=no
15896    cat >conftest.$ac_ext <<_ACEOF
15897/* confdefs.h.  */
15898_ACEOF
15899cat confdefs.h >>conftest.$ac_ext
15900cat >>conftest.$ac_ext <<_ACEOF
15901/* end confdefs.h.  */
15902#include <cstdlib>
15903	  #include <iostream>
15904	  #include <map>
15905	  #include <string>
15906	  using namespace std;
15907int
15908main ()
15909{
15910std::cerr << "";
15911          cout << "";
15912	  typedef std::pair<unsigned int, int> uipair;
15913	  std::map<unsigned int, int> m;
15914	  std::map<unsigned int, int>::iterator i;
15915	  m.insert (uipair (4, -4));
15916	  for (i = m.begin (); i != m.end (); ++i)
15917	    if (i->first != 4)
15918	      return 1;
15919  ;
15920  return 0;
15921}
15922_ACEOF
15923rm -f conftest.$ac_objext
15924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15925  (eval $ac_compile) 2>conftest.er1
15926  ac_status=$?
15927  grep -v '^ *+' conftest.er1 >conftest.err
15928  rm -f conftest.er1
15929  cat conftest.err >&5
15930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931  (exit $ac_status); } &&
15932	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
15933  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15934  (eval $ac_try) 2>&5
15935  ac_status=$?
15936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937  (exit $ac_status); }; } &&
15938	 { ac_try='test -s conftest.$ac_objext'
15939  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15940  (eval $ac_try) 2>&5
15941  ac_status=$?
15942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943  (exit $ac_status); }; }; then
15944  if { ac_try='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_objext $LIBS >&5'
15945  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15946  (eval $ac_try) 2>&5
15947  ac_status=$?
15948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949  (exit $ac_status); }; }; then
15950  if test "$cross_compiling" = yes; then
15951  bison_cv_cxx_works=cross
15952else
15953  if { ac_try='./conftest$ac_exeext'
15954  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15955  (eval $ac_try) 2>&5
15956  ac_status=$?
15957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15958  (exit $ac_status); }; }; then
15959  bison_cv_cxx_works=yes
15960fi
15961
15962fi
15963
15964fi
15965
15966       rm -f conftest$ac_exeext
15967else
15968  echo "$as_me: failed program was:" >&5
15969sed 's/^/| /' conftest.$ac_ext >&5
15970
15971fi
15972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15973    ac_ext=c
15974ac_cpp='$CPP $CPPFLAGS'
15975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15977ac_compiler_gnu=$ac_cv_c_compiler_gnu
15978
15979fi
15980echo "$as_me:$LINENO: result: $bison_cv_cxx_works" >&5
15981echo "${ECHO_T}$bison_cv_cxx_works" >&6
15982
15983 case $bison_cv_cxx_works in
15984 yes)
15985    BISON_CXX_WORKS=':';;
15986 no | cross)
15987    BISON_CXX_WORKS='exit 77';;
15988 esac
15989
15990
15991
15992
15993if test $bison_cv_cxx_works = yes; then
15994  BISON_CXX_WORKS_TRUE=
15995  BISON_CXX_WORKS_FALSE='#'
15996else
15997  BISON_CXX_WORKS_TRUE='#'
15998  BISON_CXX_WORKS_FALSE=
15999fi
16000
16001
16002
16003AUTOM4TE=${AUTOM4TE-"${am_missing_run}autom4te"}
16004
16005# Needed by tests/atlocal.in.
16006
16007O0CFLAGS=`echo $CFLAGS | sed 's/-O[0-9] *//'`
16008
16009O0CXXFLAGS=`echo $CXXFLAGS | sed 's/-O[0-9] *//'`
16010
16011
16012                                                                                          ac_config_files="$ac_config_files Makefile build-aux/Makefile po/Makefile.in data/Makefile examples/Makefile examples/calc++/Makefile lib/Makefile src/Makefile doc/Makefile"
16013
16014cat >confcache <<\_ACEOF
16015# This file is a shell script that caches the results of configure
16016# tests run on this system so they can be shared between configure
16017# scripts and configure runs, see configure's option --config-cache.
16018# It is not useful on other systems.  If it contains results you don't
16019# want to keep, you may remove or edit it.
16020#
16021# config.status only pays attention to the cache file if you give it
16022# the --recheck option to rerun configure.
16023#
16024# `ac_cv_env_foo' variables (set or unset) will be overridden when
16025# loading this file, other *unset* `ac_cv_foo' will be assigned the
16026# following values.
16027
16028_ACEOF
16029
16030# The following way of writing the cache mishandles newlines in values,
16031# but we know of no workaround that is simple, portable, and efficient.
16032# So, don't put newlines in cache variables' values.
16033# Ultrix sh set writes to stderr and can't be redirected directly,
16034# and sets the high bit in the cache file unless we assign to the vars.
16035{
16036  (set) 2>&1 |
16037    case `(ac_space=' '; set | grep ac_space) 2>&1` in
16038    *ac_space=\ *)
16039      # `set' does not quote correctly, so add quotes (double-quote
16040      # substitution turns \\\\ into \\, and sed turns \\ into \).
16041      sed -n \
16042	"s/'/'\\\\''/g;
16043	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16044      ;;
16045    *)
16046      # `set' quotes correctly as required by POSIX, so do not add quotes.
16047      sed -n \
16048	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16049      ;;
16050    esac;
16051} |
16052  sed '
16053     t clear
16054     : clear
16055     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16056     t end
16057     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16058     : end' >>confcache
16059if diff $cache_file confcache >/dev/null 2>&1; then :; else
16060  if test -w $cache_file; then
16061    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16062    cat confcache >$cache_file
16063  else
16064    echo "not updating unwritable cache $cache_file"
16065  fi
16066fi
16067rm -f confcache
16068
16069test "x$prefix" = xNONE && prefix=$ac_default_prefix
16070# Let make expand exec_prefix.
16071test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16072
16073# VPATH may cause trouble with some makes, so we remove $(srcdir),
16074# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16075# trailing colons and then remove the whole line if VPATH becomes empty
16076# (actually we leave an empty line to preserve line numbers).
16077if test "x$srcdir" = x.; then
16078  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
16079s/:*\$(srcdir):*/:/;
16080s/:*\${srcdir}:*/:/;
16081s/:*@srcdir@:*/:/;
16082s/^\([^=]*=[	 ]*\):*/\1/;
16083s/:*$//;
16084s/^[^=]*=[	 ]*$//;
16085}'
16086fi
16087
16088DEFS=-DHAVE_CONFIG_H
16089
16090ac_libobjs=
16091ac_ltlibobjs=
16092for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16093  # 1. Remove the extension, and $U if already installed.
16094  ac_i=`echo "$ac_i" |
16095	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16096  # 2. Add them.
16097  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16098  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16099done
16100LIBOBJS=$ac_libobjs
16101
16102LTLIBOBJS=$ac_ltlibobjs
16103
16104
16105if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16106  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16107Usually this means the macro was only invoked conditionally." >&5
16108echo "$as_me: error: conditional \"AMDEP\" was never defined.
16109Usually this means the macro was only invoked conditionally." >&2;}
16110   { (exit 1); exit 1; }; }
16111fi
16112if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16113  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16114Usually this means the macro was only invoked conditionally." >&5
16115echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16116Usually this means the macro was only invoked conditionally." >&2;}
16117   { (exit 1); exit 1; }; }
16118fi
16119if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16120  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16121Usually this means the macro was only invoked conditionally." >&5
16122echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16123Usually this means the macro was only invoked conditionally." >&2;}
16124   { (exit 1); exit 1; }; }
16125fi
16126if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16127  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16128Usually this means the macro was only invoked conditionally." >&5
16129echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16130Usually this means the macro was only invoked conditionally." >&2;}
16131   { (exit 1); exit 1; }; }
16132fi
16133if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16134  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16135Usually this means the macro was only invoked conditionally." >&5
16136echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16137Usually this means the macro was only invoked conditionally." >&2;}
16138   { (exit 1); exit 1; }; }
16139fi
16140if test -z "${BISON_CXX_WORKS_TRUE}" && test -z "${BISON_CXX_WORKS_FALSE}"; then
16141  { { echo "$as_me:$LINENO: error: conditional \"BISON_CXX_WORKS\" was never defined.
16142Usually this means the macro was only invoked conditionally." >&5
16143echo "$as_me: error: conditional \"BISON_CXX_WORKS\" was never defined.
16144Usually this means the macro was only invoked conditionally." >&2;}
16145   { (exit 1); exit 1; }; }
16146fi
16147
16148: ${CONFIG_STATUS=./config.status}
16149ac_clean_files_save=$ac_clean_files
16150ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16151{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16152echo "$as_me: creating $CONFIG_STATUS" >&6;}
16153cat >$CONFIG_STATUS <<_ACEOF
16154#! $SHELL
16155# Generated by $as_me.
16156# Run this file to recreate the current configuration.
16157# Compiler output produced by configure, useful for debugging
16158# configure, is in config.log if it exists.
16159
16160debug=false
16161ac_cs_recheck=false
16162ac_cs_silent=false
16163SHELL=\${CONFIG_SHELL-$SHELL}
16164_ACEOF
16165
16166cat >>$CONFIG_STATUS <<\_ACEOF
16167## --------------------- ##
16168## M4sh Initialization.  ##
16169## --------------------- ##
16170
16171# Be Bourne compatible
16172if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16173  emulate sh
16174  NULLCMD=:
16175  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16176  # is contrary to our usage.  Disable this feature.
16177  alias -g '${1+"$@"}'='"$@"'
16178elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16179  set -o posix
16180fi
16181DUALCASE=1; export DUALCASE # for MKS sh
16182
16183# Support unset when possible.
16184if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16185  as_unset=unset
16186else
16187  as_unset=false
16188fi
16189
16190
16191# Work around bugs in pre-3.0 UWIN ksh.
16192$as_unset ENV MAIL MAILPATH
16193PS1='$ '
16194PS2='> '
16195PS4='+ '
16196
16197# NLS nuisances.
16198for as_var in \
16199  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16200  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16201  LC_TELEPHONE LC_TIME
16202do
16203  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16204    eval $as_var=C; export $as_var
16205  else
16206    $as_unset $as_var
16207  fi
16208done
16209
16210# Required to use basename.
16211if expr a : '\(a\)' >/dev/null 2>&1; then
16212  as_expr=expr
16213else
16214  as_expr=false
16215fi
16216
16217if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16218  as_basename=basename
16219else
16220  as_basename=false
16221fi
16222
16223
16224# Name of the executable.
16225as_me=`$as_basename "$0" ||
16226$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16227	 X"$0" : 'X\(//\)$' \| \
16228	 X"$0" : 'X\(/\)$' \| \
16229	 .     : '\(.\)' 2>/dev/null ||
16230echo X/"$0" |
16231    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16232  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
16233  	  /^X\/\(\/\).*/{ s//\1/; q; }
16234  	  s/.*/./; q'`
16235
16236
16237# PATH needs CR, and LINENO needs CR and PATH.
16238# Avoid depending upon Character Ranges.
16239as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16240as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16241as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16242as_cr_digits='0123456789'
16243as_cr_alnum=$as_cr_Letters$as_cr_digits
16244
16245# The user is always right.
16246if test "${PATH_SEPARATOR+set}" != set; then
16247  echo "#! /bin/sh" >conf$$.sh
16248  echo  "exit 0"   >>conf$$.sh
16249  chmod +x conf$$.sh
16250  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16251    PATH_SEPARATOR=';'
16252  else
16253    PATH_SEPARATOR=:
16254  fi
16255  rm -f conf$$.sh
16256fi
16257
16258
16259  as_lineno_1=$LINENO
16260  as_lineno_2=$LINENO
16261  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16262  test "x$as_lineno_1" != "x$as_lineno_2" &&
16263  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
16264  # Find who we are.  Look in the path if we contain no path at all
16265  # relative or not.
16266  case $0 in
16267    *[\\/]* ) as_myself=$0 ;;
16268    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16269for as_dir in $PATH
16270do
16271  IFS=$as_save_IFS
16272  test -z "$as_dir" && as_dir=.
16273  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16274done
16275
16276       ;;
16277  esac
16278  # We did not find ourselves, most probably we were run as `sh COMMAND'
16279  # in which case we are not to be found in the path.
16280  if test "x$as_myself" = x; then
16281    as_myself=$0
16282  fi
16283  if test ! -f "$as_myself"; then
16284    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16285echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16286   { (exit 1); exit 1; }; }
16287  fi
16288  case $CONFIG_SHELL in
16289  '')
16290    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16291for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16292do
16293  IFS=$as_save_IFS
16294  test -z "$as_dir" && as_dir=.
16295  for as_base in sh bash ksh sh5; do
16296	 case $as_dir in
16297	 /*)
16298	   if ("$as_dir/$as_base" -c '
16299  as_lineno_1=$LINENO
16300  as_lineno_2=$LINENO
16301  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16302  test "x$as_lineno_1" != "x$as_lineno_2" &&
16303  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
16304	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16305	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16306	     CONFIG_SHELL=$as_dir/$as_base
16307	     export CONFIG_SHELL
16308	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16309	   fi;;
16310	 esac
16311       done
16312done
16313;;
16314  esac
16315
16316  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16317  # uniformly replaced by the line number.  The first 'sed' inserts a
16318  # line-number line before each line; the second 'sed' does the real
16319  # work.  The second script uses 'N' to pair each line-number line
16320  # with the numbered line, and appends trailing '-' during
16321  # substitution so that $LINENO is not a special case at line end.
16322  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16323  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
16324  sed '=' <$as_myself |
16325    sed '
16326      N
16327      s,$,-,
16328      : loop
16329      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16330      t loop
16331      s,-$,,
16332      s,^['$as_cr_digits']*\n,,
16333    ' >$as_me.lineno &&
16334  chmod +x $as_me.lineno ||
16335    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16336echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16337   { (exit 1); exit 1; }; }
16338
16339  # Don't try to exec as it changes $[0], causing all sort of problems
16340  # (the dirname of $[0] is not the place where we might find the
16341  # original and so on.  Autoconf is especially sensible to this).
16342  . ./$as_me.lineno
16343  # Exit status is that of the last command.
16344  exit
16345}
16346
16347
16348case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16349  *c*,-n*) ECHO_N= ECHO_C='
16350' ECHO_T='	' ;;
16351  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16352  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
16353esac
16354
16355if expr a : '\(a\)' >/dev/null 2>&1; then
16356  as_expr=expr
16357else
16358  as_expr=false
16359fi
16360
16361rm -f conf$$ conf$$.exe conf$$.file
16362echo >conf$$.file
16363if ln -s conf$$.file conf$$ 2>/dev/null; then
16364  # We could just check for DJGPP; but this test a) works b) is more generic
16365  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16366  if test -f conf$$.exe; then
16367    # Don't use ln at all; we don't have any links
16368    as_ln_s='cp -p'
16369  else
16370    as_ln_s='ln -s'
16371  fi
16372elif ln conf$$.file conf$$ 2>/dev/null; then
16373  as_ln_s=ln
16374else
16375  as_ln_s='cp -p'
16376fi
16377rm -f conf$$ conf$$.exe conf$$.file
16378
16379if mkdir -p . 2>/dev/null; then
16380  as_mkdir_p=:
16381else
16382  test -d ./-p && rmdir ./-p
16383  as_mkdir_p=false
16384fi
16385
16386as_executable_p="test -f"
16387
16388# Sed expression to map a string onto a valid CPP name.
16389as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16390
16391# Sed expression to map a string onto a valid variable name.
16392as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16393
16394
16395# IFS
16396# We need space, tab and new line, in precisely that order.
16397as_nl='
16398'
16399IFS=" 	$as_nl"
16400
16401# CDPATH.
16402$as_unset CDPATH
16403
16404exec 6>&1
16405
16406# Open the log real soon, to keep \$[0] and so on meaningful, and to
16407# report actual input values of CONFIG_FILES etc. instead of their
16408# values after options handling.  Logging --version etc. is OK.
16409exec 5>>config.log
16410{
16411  echo
16412  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16413## Running $as_me. ##
16414_ASBOX
16415} >&5
16416cat >&5 <<_CSEOF
16417
16418This file was extended by GNU Bison $as_me 2.3, which was
16419generated by GNU Autoconf 2.59.  Invocation command line was
16420
16421  CONFIG_FILES    = $CONFIG_FILES
16422  CONFIG_HEADERS  = $CONFIG_HEADERS
16423  CONFIG_LINKS    = $CONFIG_LINKS
16424  CONFIG_COMMANDS = $CONFIG_COMMANDS
16425  $ $0 $@
16426
16427_CSEOF
16428echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16429echo >&5
16430_ACEOF
16431
16432# Files that config.status was made for.
16433if test -n "$ac_config_files"; then
16434  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16435fi
16436
16437if test -n "$ac_config_headers"; then
16438  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16439fi
16440
16441if test -n "$ac_config_links"; then
16442  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16443fi
16444
16445if test -n "$ac_config_commands"; then
16446  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16447fi
16448
16449cat >>$CONFIG_STATUS <<\_ACEOF
16450
16451ac_cs_usage="\
16452\`$as_me' instantiates files from templates according to the
16453current configuration.
16454
16455Usage: $0 [OPTIONS] [FILE]...
16456
16457  -h, --help       print this help, then exit
16458  -V, --version    print version number, then exit
16459  -q, --quiet      do not print progress messages
16460  -d, --debug      don't remove temporary files
16461      --recheck    update $as_me by reconfiguring in the same conditions
16462  --file=FILE[:TEMPLATE]
16463		   instantiate the configuration file FILE
16464  --header=FILE[:TEMPLATE]
16465		   instantiate the configuration header FILE
16466
16467Configuration files:
16468$config_files
16469
16470Configuration headers:
16471$config_headers
16472
16473Configuration commands:
16474$config_commands
16475
16476Report bugs to <bug-autoconf@gnu.org>."
16477_ACEOF
16478
16479cat >>$CONFIG_STATUS <<_ACEOF
16480ac_cs_version="\\
16481GNU Bison config.status 2.3
16482configured by $0, generated by GNU Autoconf 2.59,
16483  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16484
16485Copyright (C) 2003 Free Software Foundation, Inc.
16486This config.status script is free software; the Free Software Foundation
16487gives unlimited permission to copy, distribute and modify it."
16488srcdir=$srcdir
16489INSTALL="$INSTALL"
16490_ACEOF
16491
16492cat >>$CONFIG_STATUS <<\_ACEOF
16493# If no file are specified by the user, then we need to provide default
16494# value.  By we need to know if files were specified by the user.
16495ac_need_defaults=:
16496while test $# != 0
16497do
16498  case $1 in
16499  --*=*)
16500    ac_option=`expr "x$1" : 'x\([^=]*\)='`
16501    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16502    ac_shift=:
16503    ;;
16504  -*)
16505    ac_option=$1
16506    ac_optarg=$2
16507    ac_shift=shift
16508    ;;
16509  *) # This is not an option, so the user has probably given explicit
16510     # arguments.
16511     ac_option=$1
16512     ac_need_defaults=false;;
16513  esac
16514
16515  case $ac_option in
16516  # Handling of the options.
16517_ACEOF
16518cat >>$CONFIG_STATUS <<\_ACEOF
16519  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16520    ac_cs_recheck=: ;;
16521  --version | --vers* | -V )
16522    echo "$ac_cs_version"; exit 0 ;;
16523  --he | --h)
16524    # Conflict between --help and --header
16525    { { echo "$as_me:$LINENO: error: ambiguous option: $1
16526Try \`$0 --help' for more information." >&5
16527echo "$as_me: error: ambiguous option: $1
16528Try \`$0 --help' for more information." >&2;}
16529   { (exit 1); exit 1; }; };;
16530  --help | --hel | -h )
16531    echo "$ac_cs_usage"; exit 0 ;;
16532  --debug | --d* | -d )
16533    debug=: ;;
16534  --file | --fil | --fi | --f )
16535    $ac_shift
16536    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16537    ac_need_defaults=false;;
16538  --header | --heade | --head | --hea )
16539    $ac_shift
16540    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16541    ac_need_defaults=false;;
16542  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16543  | -silent | --silent | --silen | --sile | --sil | --si | --s)
16544    ac_cs_silent=: ;;
16545
16546  # This is an error.
16547  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16548Try \`$0 --help' for more information." >&5
16549echo "$as_me: error: unrecognized option: $1
16550Try \`$0 --help' for more information." >&2;}
16551   { (exit 1); exit 1; }; } ;;
16552
16553  *) ac_config_targets="$ac_config_targets $1" ;;
16554
16555  esac
16556  shift
16557done
16558
16559ac_configure_extra_args=
16560
16561if $ac_cs_silent; then
16562  exec 6>/dev/null
16563  ac_configure_extra_args="$ac_configure_extra_args --silent"
16564fi
16565
16566_ACEOF
16567cat >>$CONFIG_STATUS <<_ACEOF
16568if \$ac_cs_recheck; then
16569  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16570  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16571fi
16572
16573_ACEOF
16574
16575cat >>$CONFIG_STATUS <<_ACEOF
16576#
16577# INIT-COMMANDS section.
16578#
16579
16580AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16581# Capture the value of obsolete ALL_LINGUAS because we need it to compute
16582    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
16583    # from automake.
16584    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
16585    # Capture the value of LINGUAS because we need it to compute CATALOGS.
16586    LINGUAS="${LINGUAS-%UNSET%}"
16587
16588
16589_ACEOF
16590
16591
16592
16593cat >>$CONFIG_STATUS <<\_ACEOF
16594for ac_config_target in $ac_config_targets
16595do
16596  case "$ac_config_target" in
16597  # Handling of arguments.
16598  "runtime-po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES runtime-po/Makefile.in" ;;
16599  "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
16600  "tests/atlocal" ) CONFIG_FILES="$CONFIG_FILES tests/atlocal" ;;
16601  "tests/bison" ) CONFIG_FILES="$CONFIG_FILES tests/bison" ;;
16602  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16603  "build-aux/Makefile" ) CONFIG_FILES="$CONFIG_FILES build-aux/Makefile" ;;
16604  "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
16605  "data/Makefile" ) CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
16606  "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
16607  "examples/calc++/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/calc++/Makefile" ;;
16608  "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
16609  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16610  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16611  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16612  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16613  "tests/atconfig" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tests/atconfig" ;;
16614  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;;
16615  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16616echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16617   { (exit 1); exit 1; }; };;
16618  esac
16619done
16620
16621# If the user did not use the arguments to specify the items to instantiate,
16622# then the envvar interface is used.  Set only those that are not.
16623# We use the long form for the default assignment because of an extremely
16624# bizarre bug on SunOS 4.1.3.
16625if $ac_need_defaults; then
16626  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16627  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16628  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16629fi
16630
16631# Have a temporary directory for convenience.  Make it in the build tree
16632# simply because there is no reason to put it here, and in addition,
16633# creating and moving files from /tmp can sometimes cause problems.
16634# Create a temporary directory, and hook for its removal unless debugging.
16635$debug ||
16636{
16637  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16638  trap '{ (exit 1); exit 1; }' 1 2 13 15
16639}
16640
16641# Create a (secure) tmp directory for tmp files.
16642
16643{
16644  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16645  test -n "$tmp" && test -d "$tmp"
16646}  ||
16647{
16648  tmp=./confstat$$-$RANDOM
16649  (umask 077 && mkdir $tmp)
16650} ||
16651{
16652   echo "$me: cannot create a temporary directory in ." >&2
16653   { (exit 1); exit 1; }
16654}
16655
16656_ACEOF
16657
16658cat >>$CONFIG_STATUS <<_ACEOF
16659
16660#
16661# CONFIG_FILES section.
16662#
16663
16664# No need to generate the scripts if there are no CONFIG_FILES.
16665# This happens for instance when ./config.status config.h
16666if test -n "\$CONFIG_FILES"; then
16667  # Protect against being on the right side of a sed subst in config.status.
16668  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16669   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16670s,@SHELL@,$SHELL,;t t
16671s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16672s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16673s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16674s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16675s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16676s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16677s,@exec_prefix@,$exec_prefix,;t t
16678s,@prefix@,$prefix,;t t
16679s,@program_transform_name@,$program_transform_name,;t t
16680s,@bindir@,$bindir,;t t
16681s,@sbindir@,$sbindir,;t t
16682s,@libexecdir@,$libexecdir,;t t
16683s,@datadir@,$datadir,;t t
16684s,@sysconfdir@,$sysconfdir,;t t
16685s,@sharedstatedir@,$sharedstatedir,;t t
16686s,@localstatedir@,$localstatedir,;t t
16687s,@libdir@,$libdir,;t t
16688s,@includedir@,$includedir,;t t
16689s,@oldincludedir@,$oldincludedir,;t t
16690s,@infodir@,$infodir,;t t
16691s,@mandir@,$mandir,;t t
16692s,@build_alias@,$build_alias,;t t
16693s,@host_alias@,$host_alias,;t t
16694s,@target_alias@,$target_alias,;t t
16695s,@DEFS@,$DEFS,;t t
16696s,@ECHO_C@,$ECHO_C,;t t
16697s,@ECHO_N@,$ECHO_N,;t t
16698s,@ECHO_T@,$ECHO_T,;t t
16699s,@LIBS@,$LIBS,;t t
16700s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16701s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16702s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16703s,@CYGPATH_W@,$CYGPATH_W,;t t
16704s,@PACKAGE@,$PACKAGE,;t t
16705s,@VERSION@,$VERSION,;t t
16706s,@ACLOCAL@,$ACLOCAL,;t t
16707s,@AUTOCONF@,$AUTOCONF,;t t
16708s,@AUTOMAKE@,$AUTOMAKE,;t t
16709s,@AUTOHEADER@,$AUTOHEADER,;t t
16710s,@MAKEINFO@,$MAKEINFO,;t t
16711s,@install_sh@,$install_sh,;t t
16712s,@STRIP@,$STRIP,;t t
16713s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16714s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
16715s,@mkdir_p@,$mkdir_p,;t t
16716s,@AWK@,$AWK,;t t
16717s,@SET_MAKE@,$SET_MAKE,;t t
16718s,@am__leading_dot@,$am__leading_dot,;t t
16719s,@AMTAR@,$AMTAR,;t t
16720s,@am__tar@,$am__tar,;t t
16721s,@am__untar@,$am__untar,;t t
16722s,@CC@,$CC,;t t
16723s,@CFLAGS@,$CFLAGS,;t t
16724s,@LDFLAGS@,$LDFLAGS,;t t
16725s,@CPPFLAGS@,$CPPFLAGS,;t t
16726s,@ac_ct_CC@,$ac_ct_CC,;t t
16727s,@EXEEXT@,$EXEEXT,;t t
16728s,@OBJEXT@,$OBJEXT,;t t
16729s,@DEPDIR@,$DEPDIR,;t t
16730s,@am__include@,$am__include,;t t
16731s,@am__quote@,$am__quote,;t t
16732s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
16733s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
16734s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
16735s,@CCDEPMODE@,$CCDEPMODE,;t t
16736s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
16737s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
16738s,@CPP@,$CPP,;t t
16739s,@EGREP@,$EGREP,;t t
16740s,@WARNING_CFLAGS@,$WARNING_CFLAGS,;t t
16741s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
16742s,@WARNING_CXXFLAGS@,$WARNING_CXXFLAGS,;t t
16743s,@YACC_SCRIPT@,$YACC_SCRIPT,;t t
16744s,@YACC_LIBRARY@,$YACC_LIBRARY,;t t
16745s,@LEX@,$LEX,;t t
16746s,@LEXLIB@,$LEXLIB,;t t
16747s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
16748s,@YACC@,$YACC,;t t
16749s,@RANLIB@,$RANLIB,;t t
16750s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16751s,@M4@,$M4,;t t
16752s,@STDBOOL_H@,$STDBOOL_H,;t t
16753s,@HAVE__BOOL@,$HAVE__BOOL,;t t
16754s,@LIBOBJS@,$LIBOBJS,;t t
16755s,@GETOPT_H@,$GETOPT_H,;t t
16756s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
16757s,@USE_NLS@,$USE_NLS,;t t
16758s,@MSGFMT@,$MSGFMT,;t t
16759s,@GMSGFMT@,$GMSGFMT,;t t
16760s,@XGETTEXT@,$XGETTEXT,;t t
16761s,@MSGMERGE@,$MSGMERGE,;t t
16762s,@build@,$build,;t t
16763s,@build_cpu@,$build_cpu,;t t
16764s,@build_vendor@,$build_vendor,;t t
16765s,@build_os@,$build_os,;t t
16766s,@host@,$host,;t t
16767s,@host_cpu@,$host_cpu,;t t
16768s,@host_vendor@,$host_vendor,;t t
16769s,@host_os@,$host_os,;t t
16770s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
16771s,@LIBICONV@,$LIBICONV,;t t
16772s,@LTLIBICONV@,$LTLIBICONV,;t t
16773s,@INTLLIBS@,$INTLLIBS,;t t
16774s,@LIBINTL@,$LIBINTL,;t t
16775s,@LTLIBINTL@,$LTLIBINTL,;t t
16776s,@POSUB@,$POSUB,;t t
16777s,@UNISTD_H@,$UNISTD_H,;t t
16778s,@BISON_LOCALEDIR@,$BISON_LOCALEDIR,;t t
16779s,@aclocaldir@,$aclocaldir,;t t
16780s,@VALGRIND@,$VALGRIND,;t t
16781s,@CXX@,$CXX,;t t
16782s,@CXXFLAGS@,$CXXFLAGS,;t t
16783s,@ac_ct_CXX@,$ac_ct_CXX,;t t
16784s,@CXXDEPMODE@,$CXXDEPMODE,;t t
16785s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
16786s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
16787s,@BISON_CXX_WORKS@,$BISON_CXX_WORKS,;t t
16788s,@BISON_CXX_WORKS_TRUE@,$BISON_CXX_WORKS_TRUE,;t t
16789s,@BISON_CXX_WORKS_FALSE@,$BISON_CXX_WORKS_FALSE,;t t
16790s,@AUTOM4TE@,$AUTOM4TE,;t t
16791s,@GCC@,$GCC,;t t
16792s,@O0CFLAGS@,$O0CFLAGS,;t t
16793s,@O0CXXFLAGS@,$O0CXXFLAGS,;t t
16794s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16795CEOF
16796
16797_ACEOF
16798
16799  cat >>$CONFIG_STATUS <<\_ACEOF
16800  # Split the substitutions into bite-sized pieces for seds with
16801  # small command number limits, like on Digital OSF/1 and HP-UX.
16802  ac_max_sed_lines=48
16803  ac_sed_frag=1 # Number of current file.
16804  ac_beg=1 # First line for current file.
16805  ac_end=$ac_max_sed_lines # Line after last line for current file.
16806  ac_more_lines=:
16807  ac_sed_cmds=
16808  while $ac_more_lines; do
16809    if test $ac_beg -gt 1; then
16810      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16811    else
16812      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16813    fi
16814    if test ! -s $tmp/subs.frag; then
16815      ac_more_lines=false
16816    else
16817      # The purpose of the label and of the branching condition is to
16818      # speed up the sed processing (if there are no `@' at all, there
16819      # is no need to browse any of the substitutions).
16820      # These are the two extra sed commands mentioned above.
16821      (echo ':t
16822  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16823      if test -z "$ac_sed_cmds"; then
16824	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16825      else
16826	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16827      fi
16828      ac_sed_frag=`expr $ac_sed_frag + 1`
16829      ac_beg=$ac_end
16830      ac_end=`expr $ac_end + $ac_max_sed_lines`
16831    fi
16832  done
16833  if test -z "$ac_sed_cmds"; then
16834    ac_sed_cmds=cat
16835  fi
16836fi # test -n "$CONFIG_FILES"
16837
16838_ACEOF
16839cat >>$CONFIG_STATUS <<\_ACEOF
16840for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16841  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16842  case $ac_file in
16843  - | *:- | *:-:* ) # input from stdin
16844	cat >$tmp/stdin
16845	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16846	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16847  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16848	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16849  * )   ac_file_in=$ac_file.in ;;
16850  esac
16851
16852  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16853  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16854$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16855	 X"$ac_file" : 'X\(//\)[^/]' \| \
16856	 X"$ac_file" : 'X\(//\)$' \| \
16857	 X"$ac_file" : 'X\(/\)' \| \
16858	 .     : '\(.\)' 2>/dev/null ||
16859echo X"$ac_file" |
16860    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16861  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16862  	  /^X\(\/\/\)$/{ s//\1/; q; }
16863  	  /^X\(\/\).*/{ s//\1/; q; }
16864  	  s/.*/./; q'`
16865  { if $as_mkdir_p; then
16866    mkdir -p "$ac_dir"
16867  else
16868    as_dir="$ac_dir"
16869    as_dirs=
16870    while test ! -d "$as_dir"; do
16871      as_dirs="$as_dir $as_dirs"
16872      as_dir=`(dirname "$as_dir") 2>/dev/null ||
16873$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16874	 X"$as_dir" : 'X\(//\)[^/]' \| \
16875	 X"$as_dir" : 'X\(//\)$' \| \
16876	 X"$as_dir" : 'X\(/\)' \| \
16877	 .     : '\(.\)' 2>/dev/null ||
16878echo X"$as_dir" |
16879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16880  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16881  	  /^X\(\/\/\)$/{ s//\1/; q; }
16882  	  /^X\(\/\).*/{ s//\1/; q; }
16883  	  s/.*/./; q'`
16884    done
16885    test ! -n "$as_dirs" || mkdir $as_dirs
16886  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16887echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16888   { (exit 1); exit 1; }; }; }
16889
16890  ac_builddir=.
16891
16892if test "$ac_dir" != .; then
16893  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16894  # A "../" for each directory in $ac_dir_suffix.
16895  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16896else
16897  ac_dir_suffix= ac_top_builddir=
16898fi
16899
16900case $srcdir in
16901  .)  # No --srcdir option.  We are building in place.
16902    ac_srcdir=.
16903    if test -z "$ac_top_builddir"; then
16904       ac_top_srcdir=.
16905    else
16906       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16907    fi ;;
16908  [\\/]* | ?:[\\/]* )  # Absolute path.
16909    ac_srcdir=$srcdir$ac_dir_suffix;
16910    ac_top_srcdir=$srcdir ;;
16911  *) # Relative path.
16912    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16913    ac_top_srcdir=$ac_top_builddir$srcdir ;;
16914esac
16915
16916# Do not use `cd foo && pwd` to compute absolute paths, because
16917# the directories may not exist.
16918case `pwd` in
16919.) ac_abs_builddir="$ac_dir";;
16920*)
16921  case "$ac_dir" in
16922  .) ac_abs_builddir=`pwd`;;
16923  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16924  *) ac_abs_builddir=`pwd`/"$ac_dir";;
16925  esac;;
16926esac
16927case $ac_abs_builddir in
16928.) ac_abs_top_builddir=${ac_top_builddir}.;;
16929*)
16930  case ${ac_top_builddir}. in
16931  .) ac_abs_top_builddir=$ac_abs_builddir;;
16932  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16933  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16934  esac;;
16935esac
16936case $ac_abs_builddir in
16937.) ac_abs_srcdir=$ac_srcdir;;
16938*)
16939  case $ac_srcdir in
16940  .) ac_abs_srcdir=$ac_abs_builddir;;
16941  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16942  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16943  esac;;
16944esac
16945case $ac_abs_builddir in
16946.) ac_abs_top_srcdir=$ac_top_srcdir;;
16947*)
16948  case $ac_top_srcdir in
16949  .) ac_abs_top_srcdir=$ac_abs_builddir;;
16950  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16951  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16952  esac;;
16953esac
16954
16955
16956  case $INSTALL in
16957  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16958  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
16959  esac
16960
16961  # Let's still pretend it is `configure' which instantiates (i.e., don't
16962  # use $as_me), people would be surprised to read:
16963  #    /* config.h.  Generated by config.status.  */
16964  if test x"$ac_file" = x-; then
16965    configure_input=
16966  else
16967    configure_input="$ac_file.  "
16968  fi
16969  configure_input=$configure_input"Generated from `echo $ac_file_in |
16970				     sed 's,.*/,,'` by configure."
16971
16972  # First look for the input files in the build tree, otherwise in the
16973  # src tree.
16974  ac_file_inputs=`IFS=:
16975    for f in $ac_file_in; do
16976      case $f in
16977      -) echo $tmp/stdin ;;
16978      [\\/$]*)
16979	 # Absolute (can't be DOS-style, as IFS=:)
16980	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16981echo "$as_me: error: cannot find input file: $f" >&2;}
16982   { (exit 1); exit 1; }; }
16983	 echo "$f";;
16984      *) # Relative
16985	 if test -f "$f"; then
16986	   # Build tree
16987	   echo "$f"
16988	 elif test -f "$srcdir/$f"; then
16989	   # Source tree
16990	   echo "$srcdir/$f"
16991	 else
16992	   # /dev/null tree
16993	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16994echo "$as_me: error: cannot find input file: $f" >&2;}
16995   { (exit 1); exit 1; }; }
16996	 fi;;
16997      esac
16998    done` || { (exit 1); exit 1; }
16999
17000  if test x"$ac_file" != x-; then
17001    { echo "$as_me:$LINENO: creating $ac_file" >&5
17002echo "$as_me: creating $ac_file" >&6;}
17003    rm -f "$ac_file"
17004  fi
17005_ACEOF
17006cat >>$CONFIG_STATUS <<_ACEOF
17007  sed "$ac_vpsub
17008$extrasub
17009_ACEOF
17010cat >>$CONFIG_STATUS <<\_ACEOF
17011:t
17012/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17013s,@configure_input@,$configure_input,;t t
17014s,@srcdir@,$ac_srcdir,;t t
17015s,@abs_srcdir@,$ac_abs_srcdir,;t t
17016s,@top_srcdir@,$ac_top_srcdir,;t t
17017s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17018s,@builddir@,$ac_builddir,;t t
17019s,@abs_builddir@,$ac_abs_builddir,;t t
17020s,@top_builddir@,$ac_top_builddir,;t t
17021s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17022s,@INSTALL@,$ac_INSTALL,;t t
17023" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17024  rm -f $tmp/stdin
17025  if test x"$ac_file" != x-; then
17026    mv $tmp/out $ac_file
17027  else
17028    cat $tmp/out
17029    rm -f $tmp/out
17030  fi
17031
17032  # Run the commands associated with the file.
17033  case $ac_file in
17034    tests/bison ) chmod +x tests/bison ;;
17035  esac
17036done
17037_ACEOF
17038cat >>$CONFIG_STATUS <<\_ACEOF
17039
17040#
17041# CONFIG_HEADER section.
17042#
17043
17044# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17045# NAME is the cpp macro being defined and VALUE is the value it is being given.
17046#
17047# ac_d sets the value in "#define NAME VALUE" lines.
17048ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
17049ac_dB='[	 ].*$,\1#\2'
17050ac_dC=' '
17051ac_dD=',;t'
17052# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17053ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
17054ac_uB='$,\1#\2define\3'
17055ac_uC=' '
17056ac_uD=',;t'
17057
17058for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17059  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17060  case $ac_file in
17061  - | *:- | *:-:* ) # input from stdin
17062	cat >$tmp/stdin
17063	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17064	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17065  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17066	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17067  * )   ac_file_in=$ac_file.in ;;
17068  esac
17069
17070  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17071echo "$as_me: creating $ac_file" >&6;}
17072
17073  # First look for the input files in the build tree, otherwise in the
17074  # src tree.
17075  ac_file_inputs=`IFS=:
17076    for f in $ac_file_in; do
17077      case $f in
17078      -) echo $tmp/stdin ;;
17079      [\\/$]*)
17080	 # Absolute (can't be DOS-style, as IFS=:)
17081	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17082echo "$as_me: error: cannot find input file: $f" >&2;}
17083   { (exit 1); exit 1; }; }
17084	 # Do quote $f, to prevent DOS paths from being IFS'd.
17085	 echo "$f";;
17086      *) # Relative
17087	 if test -f "$f"; then
17088	   # Build tree
17089	   echo "$f"
17090	 elif test -f "$srcdir/$f"; then
17091	   # Source tree
17092	   echo "$srcdir/$f"
17093	 else
17094	   # /dev/null tree
17095	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17096echo "$as_me: error: cannot find input file: $f" >&2;}
17097   { (exit 1); exit 1; }; }
17098	 fi;;
17099      esac
17100    done` || { (exit 1); exit 1; }
17101  # Remove the trailing spaces.
17102  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
17103
17104_ACEOF
17105
17106# Transform confdefs.h into two sed scripts, `conftest.defines' and
17107# `conftest.undefs', that substitutes the proper values into
17108# config.h.in to produce config.h.  The first handles `#define'
17109# templates, and the second `#undef' templates.
17110# And first: Protect against being on the right side of a sed subst in
17111# config.status.  Protect against being in an unquoted here document
17112# in config.status.
17113rm -f conftest.defines conftest.undefs
17114# Using a here document instead of a string reduces the quoting nightmare.
17115# Putting comments in sed scripts is not portable.
17116#
17117# `end' is used to avoid that the second main sed command (meant for
17118# 0-ary CPP macros) applies to n-ary macro definitions.
17119# See the Autoconf documentation for `clear'.
17120cat >confdef2sed.sed <<\_ACEOF
17121s/[\\&,]/\\&/g
17122s,[\\$`],\\&,g
17123t clear
17124: clear
17125s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17126t end
17127s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17128: end
17129_ACEOF
17130# If some macros were called several times there might be several times
17131# the same #defines, which is useless.  Nevertheless, we may not want to
17132# sort them, since we want the *last* AC-DEFINE to be honored.
17133uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17134sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17135rm -f confdef2sed.sed
17136
17137# This sed command replaces #undef with comments.  This is necessary, for
17138# example, in the case of _POSIX_SOURCE, which is predefined and required
17139# on some systems where configure will not decide to define it.
17140cat >>conftest.undefs <<\_ACEOF
17141s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17142_ACEOF
17143
17144# Break up conftest.defines because some shells have a limit on the size
17145# of here documents, and old seds have small limits too (100 cmds).
17146echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17147echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17148echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17149echo '  :' >>$CONFIG_STATUS
17150rm -f conftest.tail
17151while grep . conftest.defines >/dev/null
17152do
17153  # Write a limited-size here document to $tmp/defines.sed.
17154  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17155  # Speed up: don't consider the non `#define' lines.
17156  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
17157  # Work around the forget-to-reset-the-flag bug.
17158  echo 't clr' >>$CONFIG_STATUS
17159  echo ': clr' >>$CONFIG_STATUS
17160  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17161  echo 'CEOF
17162  sed -f $tmp/defines.sed $tmp/in >$tmp/out
17163  rm -f $tmp/in
17164  mv $tmp/out $tmp/in
17165' >>$CONFIG_STATUS
17166  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17167  rm -f conftest.defines
17168  mv conftest.tail conftest.defines
17169done
17170rm -f conftest.defines
17171echo '  fi # grep' >>$CONFIG_STATUS
17172echo >>$CONFIG_STATUS
17173
17174# Break up conftest.undefs because some shells have a limit on the size
17175# of here documents, and old seds have small limits too (100 cmds).
17176echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
17177rm -f conftest.tail
17178while grep . conftest.undefs >/dev/null
17179do
17180  # Write a limited-size here document to $tmp/undefs.sed.
17181  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17182  # Speed up: don't consider the non `#undef'
17183  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
17184  # Work around the forget-to-reset-the-flag bug.
17185  echo 't clr' >>$CONFIG_STATUS
17186  echo ': clr' >>$CONFIG_STATUS
17187  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17188  echo 'CEOF
17189  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17190  rm -f $tmp/in
17191  mv $tmp/out $tmp/in
17192' >>$CONFIG_STATUS
17193  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17194  rm -f conftest.undefs
17195  mv conftest.tail conftest.undefs
17196done
17197rm -f conftest.undefs
17198
17199cat >>$CONFIG_STATUS <<\_ACEOF
17200  # Let's still pretend it is `configure' which instantiates (i.e., don't
17201  # use $as_me), people would be surprised to read:
17202  #    /* config.h.  Generated by config.status.  */
17203  if test x"$ac_file" = x-; then
17204    echo "/* Generated by configure.  */" >$tmp/config.h
17205  else
17206    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
17207  fi
17208  cat $tmp/in >>$tmp/config.h
17209  rm -f $tmp/in
17210  if test x"$ac_file" != x-; then
17211    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17212      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17213echo "$as_me: $ac_file is unchanged" >&6;}
17214    else
17215      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17216$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17217	 X"$ac_file" : 'X\(//\)[^/]' \| \
17218	 X"$ac_file" : 'X\(//\)$' \| \
17219	 X"$ac_file" : 'X\(/\)' \| \
17220	 .     : '\(.\)' 2>/dev/null ||
17221echo X"$ac_file" |
17222    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17223  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17224  	  /^X\(\/\/\)$/{ s//\1/; q; }
17225  	  /^X\(\/\).*/{ s//\1/; q; }
17226  	  s/.*/./; q'`
17227      { if $as_mkdir_p; then
17228    mkdir -p "$ac_dir"
17229  else
17230    as_dir="$ac_dir"
17231    as_dirs=
17232    while test ! -d "$as_dir"; do
17233      as_dirs="$as_dir $as_dirs"
17234      as_dir=`(dirname "$as_dir") 2>/dev/null ||
17235$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17236	 X"$as_dir" : 'X\(//\)[^/]' \| \
17237	 X"$as_dir" : 'X\(//\)$' \| \
17238	 X"$as_dir" : 'X\(/\)' \| \
17239	 .     : '\(.\)' 2>/dev/null ||
17240echo X"$as_dir" |
17241    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17242  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17243  	  /^X\(\/\/\)$/{ s//\1/; q; }
17244  	  /^X\(\/\).*/{ s//\1/; q; }
17245  	  s/.*/./; q'`
17246    done
17247    test ! -n "$as_dirs" || mkdir $as_dirs
17248  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17249echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17250   { (exit 1); exit 1; }; }; }
17251
17252      rm -f $ac_file
17253      mv $tmp/config.h $ac_file
17254    fi
17255  else
17256    cat $tmp/config.h
17257    rm -f $tmp/config.h
17258  fi
17259# Compute $ac_file's index in $config_headers.
17260_am_stamp_count=1
17261for _am_header in $config_headers :; do
17262  case $_am_header in
17263    $ac_file | $ac_file:* )
17264      break ;;
17265    * )
17266      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17267  esac
17268done
17269echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
17270$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17271	 X$ac_file : 'X\(//\)[^/]' \| \
17272	 X$ac_file : 'X\(//\)$' \| \
17273	 X$ac_file : 'X\(/\)' \| \
17274	 .     : '\(.\)' 2>/dev/null ||
17275echo X$ac_file |
17276    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17277  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17278  	  /^X\(\/\/\)$/{ s//\1/; q; }
17279  	  /^X\(\/\).*/{ s//\1/; q; }
17280  	  s/.*/./; q'`/stamp-h$_am_stamp_count
17281done
17282_ACEOF
17283cat >>$CONFIG_STATUS <<\_ACEOF
17284
17285#
17286# CONFIG_COMMANDS section.
17287#
17288for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17289  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17290  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17291  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17292$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17293	 X"$ac_dest" : 'X\(//\)[^/]' \| \
17294	 X"$ac_dest" : 'X\(//\)$' \| \
17295	 X"$ac_dest" : 'X\(/\)' \| \
17296	 .     : '\(.\)' 2>/dev/null ||
17297echo X"$ac_dest" |
17298    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17299  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17300  	  /^X\(\/\/\)$/{ s//\1/; q; }
17301  	  /^X\(\/\).*/{ s//\1/; q; }
17302  	  s/.*/./; q'`
17303  { if $as_mkdir_p; then
17304    mkdir -p "$ac_dir"
17305  else
17306    as_dir="$ac_dir"
17307    as_dirs=
17308    while test ! -d "$as_dir"; do
17309      as_dirs="$as_dir $as_dirs"
17310      as_dir=`(dirname "$as_dir") 2>/dev/null ||
17311$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17312	 X"$as_dir" : 'X\(//\)[^/]' \| \
17313	 X"$as_dir" : 'X\(//\)$' \| \
17314	 X"$as_dir" : 'X\(/\)' \| \
17315	 .     : '\(.\)' 2>/dev/null ||
17316echo X"$as_dir" |
17317    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17318  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17319  	  /^X\(\/\/\)$/{ s//\1/; q; }
17320  	  /^X\(\/\).*/{ s//\1/; q; }
17321  	  s/.*/./; q'`
17322    done
17323    test ! -n "$as_dirs" || mkdir $as_dirs
17324  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17325echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17326   { (exit 1); exit 1; }; }; }
17327
17328  ac_builddir=.
17329
17330if test "$ac_dir" != .; then
17331  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17332  # A "../" for each directory in $ac_dir_suffix.
17333  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17334else
17335  ac_dir_suffix= ac_top_builddir=
17336fi
17337
17338case $srcdir in
17339  .)  # No --srcdir option.  We are building in place.
17340    ac_srcdir=.
17341    if test -z "$ac_top_builddir"; then
17342       ac_top_srcdir=.
17343    else
17344       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17345    fi ;;
17346  [\\/]* | ?:[\\/]* )  # Absolute path.
17347    ac_srcdir=$srcdir$ac_dir_suffix;
17348    ac_top_srcdir=$srcdir ;;
17349  *) # Relative path.
17350    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17351    ac_top_srcdir=$ac_top_builddir$srcdir ;;
17352esac
17353
17354# Do not use `cd foo && pwd` to compute absolute paths, because
17355# the directories may not exist.
17356case `pwd` in
17357.) ac_abs_builddir="$ac_dir";;
17358*)
17359  case "$ac_dir" in
17360  .) ac_abs_builddir=`pwd`;;
17361  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17362  *) ac_abs_builddir=`pwd`/"$ac_dir";;
17363  esac;;
17364esac
17365case $ac_abs_builddir in
17366.) ac_abs_top_builddir=${ac_top_builddir}.;;
17367*)
17368  case ${ac_top_builddir}. in
17369  .) ac_abs_top_builddir=$ac_abs_builddir;;
17370  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17371  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17372  esac;;
17373esac
17374case $ac_abs_builddir in
17375.) ac_abs_srcdir=$ac_srcdir;;
17376*)
17377  case $ac_srcdir in
17378  .) ac_abs_srcdir=$ac_abs_builddir;;
17379  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17380  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17381  esac;;
17382esac
17383case $ac_abs_builddir in
17384.) ac_abs_top_srcdir=$ac_top_srcdir;;
17385*)
17386  case $ac_top_srcdir in
17387  .) ac_abs_top_srcdir=$ac_abs_builddir;;
17388  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17389  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17390  esac;;
17391esac
17392
17393
17394  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17395echo "$as_me: executing $ac_dest commands" >&6;}
17396  case $ac_dest in
17397    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17398  # Strip MF so we end up with the name of the file.
17399  mf=`echo "$mf" | sed -e 's/:.*$//'`
17400  # Check whether this is an Automake generated Makefile or not.
17401  # We used to match only the files named `Makefile.in', but
17402  # some people rename them; so instead we look at the file content.
17403  # Grep'ing the first line is not enough: some people post-process
17404  # each Makefile.in and add a new line on top of each file to say so.
17405  # So let's grep whole file.
17406  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17407    dirpart=`(dirname "$mf") 2>/dev/null ||
17408$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17409	 X"$mf" : 'X\(//\)[^/]' \| \
17410	 X"$mf" : 'X\(//\)$' \| \
17411	 X"$mf" : 'X\(/\)' \| \
17412	 .     : '\(.\)' 2>/dev/null ||
17413echo X"$mf" |
17414    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17415  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17416  	  /^X\(\/\/\)$/{ s//\1/; q; }
17417  	  /^X\(\/\).*/{ s//\1/; q; }
17418  	  s/.*/./; q'`
17419  else
17420    continue
17421  fi
17422  # Extract the definition of DEPDIR, am__include, and am__quote
17423  # from the Makefile without running `make'.
17424  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17425  test -z "$DEPDIR" && continue
17426  am__include=`sed -n 's/^am__include = //p' < "$mf"`
17427  test -z "am__include" && continue
17428  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17429  # When using ansi2knr, U may be empty or an underscore; expand it
17430  U=`sed -n 's/^U = //p' < "$mf"`
17431  # Find all dependency output files, they are included files with
17432  # $(DEPDIR) in their names.  We invoke sed twice because it is the
17433  # simplest approach to changing $(DEPDIR) to its actual value in the
17434  # expansion.
17435  for file in `sed -n "
17436    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17437       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17438    # Make sure the directory exists.
17439    test -f "$dirpart/$file" && continue
17440    fdir=`(dirname "$file") 2>/dev/null ||
17441$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17442	 X"$file" : 'X\(//\)[^/]' \| \
17443	 X"$file" : 'X\(//\)$' \| \
17444	 X"$file" : 'X\(/\)' \| \
17445	 .     : '\(.\)' 2>/dev/null ||
17446echo X"$file" |
17447    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17448  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17449  	  /^X\(\/\/\)$/{ s//\1/; q; }
17450  	  /^X\(\/\).*/{ s//\1/; q; }
17451  	  s/.*/./; q'`
17452    { if $as_mkdir_p; then
17453    mkdir -p $dirpart/$fdir
17454  else
17455    as_dir=$dirpart/$fdir
17456    as_dirs=
17457    while test ! -d "$as_dir"; do
17458      as_dirs="$as_dir $as_dirs"
17459      as_dir=`(dirname "$as_dir") 2>/dev/null ||
17460$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17461	 X"$as_dir" : 'X\(//\)[^/]' \| \
17462	 X"$as_dir" : 'X\(//\)$' \| \
17463	 X"$as_dir" : 'X\(/\)' \| \
17464	 .     : '\(.\)' 2>/dev/null ||
17465echo X"$as_dir" |
17466    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17467  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17468  	  /^X\(\/\/\)$/{ s//\1/; q; }
17469  	  /^X\(\/\).*/{ s//\1/; q; }
17470  	  s/.*/./; q'`
17471    done
17472    test ! -n "$as_dirs" || mkdir $as_dirs
17473  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
17474echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
17475   { (exit 1); exit 1; }; }; }
17476
17477    # echo "creating $dirpart/$file"
17478    echo '# dummy' > "$dirpart/$file"
17479  done
17480done
17481 ;;
17482    default-1 )
17483    for ac_file in $CONFIG_FILES; do
17484      # Support "outfile[:infile[:infile...]]"
17485      case "$ac_file" in
17486        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17487      esac
17488      # PO directories have a Makefile.in generated from Makefile.in.in.
17489      case "$ac_file" in */Makefile.in)
17490        # Adjust a relative srcdir.
17491        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17492        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17493        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17494        # In autoconf-2.13 it is called $ac_given_srcdir.
17495        # In autoconf-2.50 it is called $srcdir.
17496        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17497        case "$ac_given_srcdir" in
17498          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17499          /*) top_srcdir="$ac_given_srcdir" ;;
17500          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
17501        esac
17502        # Treat a directory as a PO directory if and only if it has a
17503        # POTFILES.in file. This allows packages to have multiple PO
17504        # directories under different names or in different locations.
17505        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17506          rm -f "$ac_dir/POTFILES"
17507          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17508          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17509          POMAKEFILEDEPS="POTFILES.in"
17510          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
17511          # on $ac_dir but don't depend on user-specified configuration
17512          # parameters.
17513          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17514            # The LINGUAS file contains the set of available languages.
17515            if test -n "$OBSOLETE_ALL_LINGUAS"; then
17516              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17517            fi
17518            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17519            # Hide the ALL_LINGUAS assigment from automake.
17520            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17521            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17522          else
17523            # The set of available languages was given in configure.in.
17524            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17525          fi
17526          # Compute POFILES
17527          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
17528          # Compute UPDATEPOFILES
17529          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
17530          # Compute DUMMYPOFILES
17531          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
17532          # Compute GMOFILES
17533          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
17534          case "$ac_given_srcdir" in
17535            .) srcdirpre= ;;
17536            *) srcdirpre='$(srcdir)/' ;;
17537          esac
17538          POFILES=
17539          UPDATEPOFILES=
17540          DUMMYPOFILES=
17541          GMOFILES=
17542          for lang in $ALL_LINGUAS; do
17543            POFILES="$POFILES $srcdirpre$lang.po"
17544            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17545            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17546            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17547          done
17548          # CATALOGS depends on both $ac_dir and the user's LINGUAS
17549          # environment variable.
17550          INST_LINGUAS=
17551          if test -n "$ALL_LINGUAS"; then
17552            for presentlang in $ALL_LINGUAS; do
17553              useit=no
17554              if test "%UNSET%" != "$LINGUAS"; then
17555                desiredlanguages="$LINGUAS"
17556              else
17557                desiredlanguages="$ALL_LINGUAS"
17558              fi
17559              for desiredlang in $desiredlanguages; do
17560                # Use the presentlang catalog if desiredlang is
17561                #   a. equal to presentlang, or
17562                #   b. a variant of presentlang (because in this case,
17563                #      presentlang can be used as a fallback for messages
17564                #      which are not translated in the desiredlang catalog).
17565                case "$desiredlang" in
17566                  "$presentlang"*) useit=yes;;
17567                esac
17568              done
17569              if test $useit = yes; then
17570                INST_LINGUAS="$INST_LINGUAS $presentlang"
17571              fi
17572            done
17573          fi
17574          CATALOGS=
17575          if test -n "$INST_LINGUAS"; then
17576            for lang in $INST_LINGUAS; do
17577              CATALOGS="$CATALOGS $lang.gmo"
17578            done
17579          fi
17580          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17581          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
17582          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17583            if test -f "$f"; then
17584              case "$f" in
17585                *.orig | *.bak | *~) ;;
17586                *) cat "$f" >> "$ac_dir/Makefile" ;;
17587              esac
17588            fi
17589          done
17590        fi
17591        ;;
17592      esac
17593    done ;;
17594    tests/atconfig ) cat >tests/atconfig <<ATEOF
17595# Configurable variable values for building test suites.
17596# Generated by $0.
17597# Copyright (C) 2000, 2001, 2003 Free Software Foundation, Inc.
17598
17599# The test suite will define top_srcdir=$at_top_srcdir/../.. etc.
17600at_testdir='tests'
17601abs_builddir='$ac_abs_builddir'
17602at_srcdir='$ac_srcdir'
17603abs_srcdir='$ac_abs_srcdir'
17604at_top_srcdir='$ac_top_srcdir'
17605abs_top_srcdir='$ac_abs_top_srcdir'
17606at_top_builddir='$ac_top_builddir'
17607abs_top_builddir='$ac_abs_top_builddir'
17608
17609AUTOTEST_PATH='tests'
17610
17611SHELL=\${CONFIG_SHELL-'$SHELL'}
17612ATEOF
17613 ;;
17614  esac
17615done
17616_ACEOF
17617
17618cat >>$CONFIG_STATUS <<\_ACEOF
17619
17620{ (exit 0); exit 0; }
17621_ACEOF
17622chmod +x $CONFIG_STATUS
17623ac_clean_files=$ac_clean_files_save
17624
17625
17626# configure is writing to config.log, and then calls config.status.
17627# config.status does its own redirection, appending to config.log.
17628# Unfortunately, on DOS this fails, as config.log is still kept open
17629# by configure, so config.status won't be able to write to it; its
17630# output is simply discarded.  So we exec the FD to /dev/null,
17631# effectively closing config.log, so it can be properly (re)opened and
17632# appended to by config.status.  When coming back to configure, we
17633# need to make the FD available again.
17634if test "$no_create" != yes; then
17635  ac_cs_success=:
17636  ac_config_status_args=
17637  test "$silent" = yes &&
17638    ac_config_status_args="$ac_config_status_args --quiet"
17639  exec 5>/dev/null
17640  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17641  exec 5>>config.log
17642  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17643  # would make configure fail if this is the last instruction.
17644  $ac_cs_success || { (exit 1); exit 1; }
17645fi
17646
17647