1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for less 1.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization.  ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14  emulate sh
15  NULLCMD=:
16  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17  # is contrary to our usage.  Disable this feature.
18  alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20  set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26  as_unset=unset
27else
28  as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42  LC_TELEPHONE LC_TIME
43do
44  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45    eval $as_var=C; export $as_var
46  else
47    $as_unset $as_var
48  fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53  as_expr=expr
54else
55  as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59  as_basename=basename
60else
61  as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68	 X"$0" : 'X\(//\)$' \| \
69	 X"$0" : 'X\(/\)$' \| \
70	 .     : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
74  	  /^X\/\(\/\).*/{ s//\1/; q; }
75  	  s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88  echo "#! /bin/sh" >conf$$.sh
89  echo  "exit 0"   >>conf$$.sh
90  chmod +x conf$$.sh
91  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92    PATH_SEPARATOR=';'
93  else
94    PATH_SEPARATOR=:
95  fi
96  rm -f conf$$.sh
97fi
98
99
100  as_lineno_1=$LINENO
101  as_lineno_2=$LINENO
102  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103  test "x$as_lineno_1" != "x$as_lineno_2" &&
104  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105  # Find who we are.  Look in the path if we contain no path at all
106  # relative or not.
107  case $0 in
108    *[\\/]* ) as_myself=$0 ;;
109    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112  IFS=$as_save_IFS
113  test -z "$as_dir" && as_dir=.
114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117       ;;
118  esac
119  # We did not find ourselves, most probably we were run as `sh COMMAND'
120  # in which case we are not to be found in the path.
121  if test "x$as_myself" = x; then
122    as_myself=$0
123  fi
124  if test ! -f "$as_myself"; then
125    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126   { (exit 1); exit 1; }; }
127  fi
128  case $CONFIG_SHELL in
129  '')
130    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133  IFS=$as_save_IFS
134  test -z "$as_dir" && as_dir=.
135  for as_base in sh bash ksh sh5; do
136	 case $as_dir in
137	 /*)
138	   if ("$as_dir/$as_base" -c '
139  as_lineno_1=$LINENO
140  as_lineno_2=$LINENO
141  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142  test "x$as_lineno_1" != "x$as_lineno_2" &&
143  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146	     CONFIG_SHELL=$as_dir/$as_base
147	     export CONFIG_SHELL
148	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149	   fi;;
150	 esac
151       done
152done
153;;
154  esac
155
156  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157  # uniformly replaced by the line number.  The first 'sed' inserts a
158  # line-number line before each line; the second 'sed' does the real
159  # work.  The second script uses 'N' to pair each line-number line
160  # with the numbered line, and appends trailing '-' during
161  # substitution so that $LINENO is not a special case at line end.
162  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164  sed '=' <$as_myself |
165    sed '
166      N
167      s,$,-,
168      : loop
169      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170      t loop
171      s,-$,,
172      s,^['$as_cr_digits']*\n,,
173    ' >$as_me.lineno &&
174  chmod +x $as_me.lineno ||
175    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176   { (exit 1); exit 1; }; }
177
178  # Don't try to exec as it changes $[0], causing all sort of problems
179  # (the dirname of $[0] is not the place where we might find the
180  # original and so on.  Autoconf is especially sensible to this).
181  . ./$as_me.lineno
182  # Exit status is that of the last command.
183  exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188  *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T='	' ;;
190  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195  as_expr=expr
196else
197  as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203  # We could just check for DJGPP; but this test a) works b) is more generic
204  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205  if test -f conf$$.exe; then
206    # Don't use ln at all; we don't have any links
207    as_ln_s='cp -p'
208  else
209    as_ln_s='ln -s'
210  fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212  as_ln_s=ln
213else
214  as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219  as_mkdir_p=:
220else
221  test -d ./-p && rmdir ./-p
222  as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" 	$as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete.  It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME='less'
269PACKAGE_TARNAME='less'
270PACKAGE_VERSION='1'
271PACKAGE_STRING='less 1'
272PACKAGE_BUGREPORT=''
273
274ac_unique_file="forwback.c"
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289#  include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294#  include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305#  include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
312ac_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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA REGEX_O LIBOBJS LTLIBOBJS'
313ac_subst_files=''
314
315# Initialize some variables set by options.
316ac_init_help=
317ac_init_version=false
318# The variables have the same names as the options, with
319# dashes changed to underlines.
320cache_file=/dev/null
321exec_prefix=NONE
322no_create=
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
331verbose=
332x_includes=NONE
333x_libraries=NONE
334
335# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them.
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
353ac_prev=
354for ac_option
355do
356  # If the previous option needs an argument, assign it.
357  if test -n "$ac_prev"; then
358    eval "$ac_prev=\$ac_option"
359    ac_prev=
360    continue
361  fi
362
363  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365  # Accept the important Cygnus configure options, so we can diagnose typos.
366
367  case $ac_option in
368
369  -bindir | --bindir | --bindi | --bind | --bin | --bi)
370    ac_prev=bindir ;;
371  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372    bindir=$ac_optarg ;;
373
374  -build | --build | --buil | --bui | --bu)
375    ac_prev=build_alias ;;
376  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377    build_alias=$ac_optarg ;;
378
379  -cache-file | --cache-file | --cache-fil | --cache-fi \
380  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381    ac_prev=cache_file ;;
382  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384    cache_file=$ac_optarg ;;
385
386  --config-cache | -C)
387    cache_file=config.cache ;;
388
389  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390    ac_prev=datadir ;;
391  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392  | --da=*)
393    datadir=$ac_optarg ;;
394
395  -disable-* | --disable-*)
396    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397    # Reject names that are not valid shell variable names.
398    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400   { (exit 1); exit 1; }; }
401    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402    eval "enable_$ac_feature=no" ;;
403
404  -enable-* | --enable-*)
405    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406    # Reject names that are not valid shell variable names.
407    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409   { (exit 1); exit 1; }; }
410    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411    case $ac_option in
412      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413      *) ac_optarg=yes ;;
414    esac
415    eval "enable_$ac_feature='$ac_optarg'" ;;
416
417  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419  | --exec | --exe | --ex)
420    ac_prev=exec_prefix ;;
421  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423  | --exec=* | --exe=* | --ex=*)
424    exec_prefix=$ac_optarg ;;
425
426  -gas | --gas | --ga | --g)
427    # Obsolete; use --with-gas.
428    with_gas=yes ;;
429
430  -help | --help | --hel | --he | -h)
431    ac_init_help=long ;;
432  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433    ac_init_help=recursive ;;
434  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435    ac_init_help=short ;;
436
437  -host | --host | --hos | --ho)
438    ac_prev=host_alias ;;
439  -host=* | --host=* | --hos=* | --ho=*)
440    host_alias=$ac_optarg ;;
441
442  -includedir | --includedir | --includedi | --included | --include \
443  | --includ | --inclu | --incl | --inc)
444    ac_prev=includedir ;;
445  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446  | --includ=* | --inclu=* | --incl=* | --inc=*)
447    includedir=$ac_optarg ;;
448
449  -infodir | --infodir | --infodi | --infod | --info | --inf)
450    ac_prev=infodir ;;
451  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452    infodir=$ac_optarg ;;
453
454  -libdir | --libdir | --libdi | --libd)
455    ac_prev=libdir ;;
456  -libdir=* | --libdir=* | --libdi=* | --libd=*)
457    libdir=$ac_optarg ;;
458
459  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460  | --libexe | --libex | --libe)
461    ac_prev=libexecdir ;;
462  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463  | --libexe=* | --libex=* | --libe=*)
464    libexecdir=$ac_optarg ;;
465
466  -localstatedir | --localstatedir | --localstatedi | --localstated \
467  | --localstate | --localstat | --localsta | --localst \
468  | --locals | --local | --loca | --loc | --lo)
469    ac_prev=localstatedir ;;
470  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473    localstatedir=$ac_optarg ;;
474
475  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476    ac_prev=mandir ;;
477  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478    mandir=$ac_optarg ;;
479
480  -nfp | --nfp | --nf)
481    # Obsolete; use --without-fp.
482    with_fp=no ;;
483
484  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485  | --no-cr | --no-c | -n)
486    no_create=yes ;;
487
488  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490    no_recursion=yes ;;
491
492  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494  | --oldin | --oldi | --old | --ol | --o)
495    ac_prev=oldincludedir ;;
496  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499    oldincludedir=$ac_optarg ;;
500
501  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502    ac_prev=prefix ;;
503  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504    prefix=$ac_optarg ;;
505
506  -program-prefix | --program-prefix | --program-prefi | --program-pref \
507  | --program-pre | --program-pr | --program-p)
508    ac_prev=program_prefix ;;
509  -program-prefix=* | --program-prefix=* | --program-prefi=* \
510  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511    program_prefix=$ac_optarg ;;
512
513  -program-suffix | --program-suffix | --program-suffi | --program-suff \
514  | --program-suf | --program-su | --program-s)
515    ac_prev=program_suffix ;;
516  -program-suffix=* | --program-suffix=* | --program-suffi=* \
517  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518    program_suffix=$ac_optarg ;;
519
520  -program-transform-name | --program-transform-name \
521  | --program-transform-nam | --program-transform-na \
522  | --program-transform-n | --program-transform- \
523  | --program-transform | --program-transfor \
524  | --program-transfo | --program-transf \
525  | --program-trans | --program-tran \
526  | --progr-tra | --program-tr | --program-t)
527    ac_prev=program_transform_name ;;
528  -program-transform-name=* | --program-transform-name=* \
529  | --program-transform-nam=* | --program-transform-na=* \
530  | --program-transform-n=* | --program-transform-=* \
531  | --program-transform=* | --program-transfor=* \
532  | --program-transfo=* | --program-transf=* \
533  | --program-trans=* | --program-tran=* \
534  | --progr-tra=* | --program-tr=* | --program-t=*)
535    program_transform_name=$ac_optarg ;;
536
537  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538  | -silent | --silent | --silen | --sile | --sil)
539    silent=yes ;;
540
541  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542    ac_prev=sbindir ;;
543  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544  | --sbi=* | --sb=*)
545    sbindir=$ac_optarg ;;
546
547  -sharedstatedir | --sharedstatedir | --sharedstatedi \
548  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549  | --sharedst | --shareds | --shared | --share | --shar \
550  | --sha | --sh)
551    ac_prev=sharedstatedir ;;
552  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555  | --sha=* | --sh=*)
556    sharedstatedir=$ac_optarg ;;
557
558  -site | --site | --sit)
559    ac_prev=site ;;
560  -site=* | --site=* | --sit=*)
561    site=$ac_optarg ;;
562
563  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564    ac_prev=srcdir ;;
565  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566    srcdir=$ac_optarg ;;
567
568  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569  | --syscon | --sysco | --sysc | --sys | --sy)
570    ac_prev=sysconfdir ;;
571  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573    sysconfdir=$ac_optarg ;;
574
575  -target | --target | --targe | --targ | --tar | --ta | --t)
576    ac_prev=target_alias ;;
577  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578    target_alias=$ac_optarg ;;
579
580  -v | -verbose | --verbose | --verbos | --verbo | --verb)
581    verbose=yes ;;
582
583  -version | --version | --versio | --versi | --vers | -V)
584    ac_init_version=: ;;
585
586  -with-* | --with-*)
587    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588    # Reject names that are not valid shell variable names.
589    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590      { echo "$as_me: error: invalid package name: $ac_package" >&2
591   { (exit 1); exit 1; }; }
592    ac_package=`echo $ac_package| sed 's/-/_/g'`
593    case $ac_option in
594      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595      *) ac_optarg=yes ;;
596    esac
597    eval "with_$ac_package='$ac_optarg'" ;;
598
599  -without-* | --without-*)
600    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601    # Reject names that are not valid shell variable names.
602    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603      { echo "$as_me: error: invalid package name: $ac_package" >&2
604   { (exit 1); exit 1; }; }
605    ac_package=`echo $ac_package | sed 's/-/_/g'`
606    eval "with_$ac_package=no" ;;
607
608  --x)
609    # Obsolete; use --with-x.
610    with_x=yes ;;
611
612  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613  | --x-incl | --x-inc | --x-in | --x-i)
614    ac_prev=x_includes ;;
615  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617    x_includes=$ac_optarg ;;
618
619  -x-libraries | --x-libraries | --x-librarie | --x-librari \
620  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621    ac_prev=x_libraries ;;
622  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624    x_libraries=$ac_optarg ;;
625
626  -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628   { (exit 1); exit 1; }; }
629    ;;
630
631  *=*)
632    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633    # Reject names that are not valid shell variable names.
634    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636   { (exit 1); exit 1; }; }
637    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638    eval "$ac_envvar='$ac_optarg'"
639    export $ac_envvar ;;
640
641  *)
642    # FIXME: should be removed in autoconf 3.0.
643    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647    ;;
648
649  esac
650done
651
652if test -n "$ac_prev"; then
653  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654  { echo "$as_me: error: missing argument to $ac_option" >&2
655   { (exit 1); exit 1; }; }
656fi
657
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
661  eval ac_val=$`echo $ac_var`
662  case $ac_val in
663    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665   { (exit 1); exit 1; }; };;
666  esac
667done
668
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671	      localstatedir libdir includedir oldincludedir infodir mandir
672do
673  eval ac_val=$`echo $ac_var`
674  case $ac_val in
675    [\\/$]* | ?:[\\/]* ) ;;
676    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677   { (exit 1); exit 1; }; };;
678  esac
679done
680
681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690  if test "x$build_alias" = x; then
691    cross_compiling=maybe
692    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693    If a cross compiler is detected then cross compile mode will be used." >&2
694  elif test "x$build_alias" != "x$host_alias"; then
695    cross_compiling=yes
696  fi
697fi
698
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
703
704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707  ac_srcdir_defaulted=yes
708  # Try the directory containing this script, then its parent.
709  ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711	 X"$0" : 'X\(//\)[^/]' \| \
712	 X"$0" : 'X\(//\)$' \| \
713	 X"$0" : 'X\(/\)' \| \
714	 .     : '\(.\)' 2>/dev/null ||
715echo X"$0" |
716    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718  	  /^X\(\/\/\)$/{ s//\1/; q; }
719  	  /^X\(\/\).*/{ s//\1/; q; }
720  	  s/.*/./; q'`
721  srcdir=$ac_confdir
722  if test ! -r $srcdir/$ac_unique_file; then
723    srcdir=..
724  fi
725else
726  ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729  if test "$ac_srcdir_defaulted" = yes; then
730    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731   { (exit 1); exit 1; }; }
732  else
733    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734   { (exit 1); exit 1; }; }
735  fi
736fi
737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739   { (exit 1); exit 1; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CPP_set=${CPP+set}
770ac_env_CPP_value=$CPP
771ac_cv_env_CPP_set=${CPP+set}
772ac_cv_env_CPP_value=$CPP
773
774#
775# Report the --help message.
776#
777if test "$ac_init_help" = "long"; then
778  # Omit some internal or obsolete options to make the list less imposing.
779  # This message is too long to be a string in the A/UX 3.1 sh.
780  cat <<_ACEOF
781\`configure' configures less 1 to adapt to many kinds of systems.
782
783Usage: $0 [OPTION]... [VAR=VALUE]...
784
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE.  See below for descriptions of some of the useful variables.
787
788Defaults for the options are specified in brackets.
789
790Configuration:
791  -h, --help              display this help and exit
792      --help=short        display options specific to this package
793      --help=recursive    display the short help of all the included packages
794  -V, --version           display version information and exit
795  -q, --quiet, --silent   do not print \`checking...' messages
796      --cache-file=FILE   cache test results in FILE [disabled]
797  -C, --config-cache      alias for \`--cache-file=config.cache'
798  -n, --no-create         do not create output files
799      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
800
801_ACEOF
802
803  cat <<_ACEOF
804Installation directories:
805  --prefix=PREFIX         install architecture-independent files in PREFIX
806			  [$ac_default_prefix]
807  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
808			  [PREFIX]
809
810By default, \`make install' will install all the files in
811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
812an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813for instance \`--prefix=\$HOME'.
814
815For better control, use the options below.
816
817Fine tuning of the installation directories:
818  --bindir=DIR           user executables [EPREFIX/bin]
819  --sbindir=DIR          system admin executables [EPREFIX/sbin]
820  --libexecdir=DIR       program executables [EPREFIX/libexec]
821  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
822  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
823  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
824  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
825  --libdir=DIR           object code libraries [EPREFIX/lib]
826  --includedir=DIR       C header files [PREFIX/include]
827  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
828  --infodir=DIR          info documentation [PREFIX/info]
829  --mandir=DIR           man documentation [PREFIX/man]
830_ACEOF
831
832  cat <<\_ACEOF
833_ACEOF
834fi
835
836if test -n "$ac_init_help"; then
837  case $ac_init_help in
838     short | recursive ) echo "Configuration of less 1:";;
839   esac
840  cat <<\_ACEOF
841
842Optional Features:
843  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
844  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
845  --disable-msb           Disable the MSB of non ASCII characters
846  --disable-largefile     omit support for large files
847
848Optional Packages:
849  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
850  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
851  --with-cs-regex         Regular expression library with character set detection
852  --with-regex={auto,pcre,posix,regcmp,re_comp,regcomp,regcomp-local}  Select a regular expression library  auto
853  --with-editor=PROGRAM   use PROGRAM as the default editor vi
854
855Some influential environment variables:
856  CC          C compiler command
857  CFLAGS      C compiler flags
858  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
859              nonstandard directory <lib dir>
860  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
861              headers in a nonstandard directory <include dir>
862  CPP         C preprocessor
863
864Use these variables to override the choices made by `configure' or to help
865it to find libraries and programs with nonstandard names/locations.
866
867_ACEOF
868fi
869
870if test "$ac_init_help" = "recursive"; then
871  # If there are subdirs, report their specific --help.
872  ac_popdir=`pwd`
873  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
874    test -d $ac_dir || continue
875    ac_builddir=.
876
877if test "$ac_dir" != .; then
878  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
879  # A "../" for each directory in $ac_dir_suffix.
880  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
881else
882  ac_dir_suffix= ac_top_builddir=
883fi
884
885case $srcdir in
886  .)  # No --srcdir option.  We are building in place.
887    ac_srcdir=.
888    if test -z "$ac_top_builddir"; then
889       ac_top_srcdir=.
890    else
891       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
892    fi ;;
893  [\\/]* | ?:[\\/]* )  # Absolute path.
894    ac_srcdir=$srcdir$ac_dir_suffix;
895    ac_top_srcdir=$srcdir ;;
896  *) # Relative path.
897    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
898    ac_top_srcdir=$ac_top_builddir$srcdir ;;
899esac
900
901# Do not use `cd foo && pwd` to compute absolute paths, because
902# the directories may not exist.
903case `pwd` in
904.) ac_abs_builddir="$ac_dir";;
905*)
906  case "$ac_dir" in
907  .) ac_abs_builddir=`pwd`;;
908  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
909  *) ac_abs_builddir=`pwd`/"$ac_dir";;
910  esac;;
911esac
912case $ac_abs_builddir in
913.) ac_abs_top_builddir=${ac_top_builddir}.;;
914*)
915  case ${ac_top_builddir}. in
916  .) ac_abs_top_builddir=$ac_abs_builddir;;
917  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
918  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
919  esac;;
920esac
921case $ac_abs_builddir in
922.) ac_abs_srcdir=$ac_srcdir;;
923*)
924  case $ac_srcdir in
925  .) ac_abs_srcdir=$ac_abs_builddir;;
926  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
927  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
928  esac;;
929esac
930case $ac_abs_builddir in
931.) ac_abs_top_srcdir=$ac_top_srcdir;;
932*)
933  case $ac_top_srcdir in
934  .) ac_abs_top_srcdir=$ac_abs_builddir;;
935  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
936  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
937  esac;;
938esac
939
940    cd $ac_dir
941    # Check for guested configure; otherwise get Cygnus style configure.
942    if test -f $ac_srcdir/configure.gnu; then
943      echo
944      $SHELL $ac_srcdir/configure.gnu  --help=recursive
945    elif test -f $ac_srcdir/configure; then
946      echo
947      $SHELL $ac_srcdir/configure  --help=recursive
948    elif test -f $ac_srcdir/configure.ac ||
949	   test -f $ac_srcdir/configure.in; then
950      echo
951      $ac_configure --help
952    else
953      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
954    fi
955    cd $ac_popdir
956  done
957fi
958
959test -n "$ac_init_help" && exit 0
960if $ac_init_version; then
961  cat <<\_ACEOF
962less configure 1
963generated by GNU Autoconf 2.59
964
965Copyright (C) 2003 Free Software Foundation, Inc.
966This configure script is free software; the Free Software Foundation
967gives unlimited permission to copy, distribute and modify it.
968_ACEOF
969  exit 0
970fi
971exec 5>config.log
972cat >&5 <<_ACEOF
973This file contains any messages produced by compilers while
974running configure, to aid debugging if configure makes a mistake.
975
976It was created by less $as_me 1, which was
977generated by GNU Autoconf 2.59.  Invocation command line was
978
979  $ $0 $@
980
981_ACEOF
982{
983cat <<_ASUNAME
984## --------- ##
985## Platform. ##
986## --------- ##
987
988hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
989uname -m = `(uname -m) 2>/dev/null || echo unknown`
990uname -r = `(uname -r) 2>/dev/null || echo unknown`
991uname -s = `(uname -s) 2>/dev/null || echo unknown`
992uname -v = `(uname -v) 2>/dev/null || echo unknown`
993
994/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
995/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
996
997/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
998/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
999/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1000hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1001/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1002/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1003/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1004
1005_ASUNAME
1006
1007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1008for as_dir in $PATH
1009do
1010  IFS=$as_save_IFS
1011  test -z "$as_dir" && as_dir=.
1012  echo "PATH: $as_dir"
1013done
1014
1015} >&5
1016
1017cat >&5 <<_ACEOF
1018
1019
1020## ----------- ##
1021## Core tests. ##
1022## ----------- ##
1023
1024_ACEOF
1025
1026
1027# Keep a trace of the command line.
1028# Strip out --no-create and --no-recursion so they do not pile up.
1029# Strip out --silent because we don't want to record it for future runs.
1030# Also quote any args containing shell meta-characters.
1031# Make two passes to allow for proper duplicate-argument suppression.
1032ac_configure_args=
1033ac_configure_args0=
1034ac_configure_args1=
1035ac_sep=
1036ac_must_keep_next=false
1037for ac_pass in 1 2
1038do
1039  for ac_arg
1040  do
1041    case $ac_arg in
1042    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1043    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1044    | -silent | --silent | --silen | --sile | --sil)
1045      continue ;;
1046    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1047      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1048    esac
1049    case $ac_pass in
1050    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1051    2)
1052      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1053      if test $ac_must_keep_next = true; then
1054	ac_must_keep_next=false # Got value, back to normal.
1055      else
1056	case $ac_arg in
1057	  *=* | --config-cache | -C | -disable-* | --disable-* \
1058	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1059	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1060	  | -with-* | --with-* | -without-* | --without-* | --x)
1061	    case "$ac_configure_args0 " in
1062	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1063	    esac
1064	    ;;
1065	  -* ) ac_must_keep_next=true ;;
1066	esac
1067      fi
1068      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1069      # Get rid of the leading space.
1070      ac_sep=" "
1071      ;;
1072    esac
1073  done
1074done
1075$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1076$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1077
1078# When interrupted or exit'd, cleanup temporary files, and complete
1079# config.log.  We remove comments because anyway the quotes in there
1080# would cause problems or look ugly.
1081# WARNING: Be sure not to use single quotes in there, as some shells,
1082# such as our DU 5.0 friend, will then `close' the trap.
1083trap 'exit_status=$?
1084  # Save into config.log some information that might help in debugging.
1085  {
1086    echo
1087
1088    cat <<\_ASBOX
1089## ---------------- ##
1090## Cache variables. ##
1091## ---------------- ##
1092_ASBOX
1093    echo
1094    # The following way of writing the cache mishandles newlines in values,
1095{
1096  (set) 2>&1 |
1097    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1098    *ac_space=\ *)
1099      sed -n \
1100	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1101	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1102      ;;
1103    *)
1104      sed -n \
1105	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1106      ;;
1107    esac;
1108}
1109    echo
1110
1111    cat <<\_ASBOX
1112## ----------------- ##
1113## Output variables. ##
1114## ----------------- ##
1115_ASBOX
1116    echo
1117    for ac_var in $ac_subst_vars
1118    do
1119      eval ac_val=$`echo $ac_var`
1120      echo "$ac_var='"'"'$ac_val'"'"'"
1121    done | sort
1122    echo
1123
1124    if test -n "$ac_subst_files"; then
1125      cat <<\_ASBOX
1126## ------------- ##
1127## Output files. ##
1128## ------------- ##
1129_ASBOX
1130      echo
1131      for ac_var in $ac_subst_files
1132      do
1133	eval ac_val=$`echo $ac_var`
1134	echo "$ac_var='"'"'$ac_val'"'"'"
1135      done | sort
1136      echo
1137    fi
1138
1139    if test -s confdefs.h; then
1140      cat <<\_ASBOX
1141## ----------- ##
1142## confdefs.h. ##
1143## ----------- ##
1144_ASBOX
1145      echo
1146      sed "/^$/d" confdefs.h | sort
1147      echo
1148    fi
1149    test "$ac_signal" != 0 &&
1150      echo "$as_me: caught signal $ac_signal"
1151    echo "$as_me: exit $exit_status"
1152  } >&5
1153  rm -f core *.core &&
1154  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1155    exit $exit_status
1156     ' 0
1157for ac_signal in 1 2 13 15; do
1158  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1159done
1160ac_signal=0
1161
1162# confdefs.h avoids OS command line length limits that DEFS can exceed.
1163rm -rf conftest* confdefs.h
1164# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1165echo >confdefs.h
1166
1167# Predefined preprocessor variables.
1168
1169cat >>confdefs.h <<_ACEOF
1170#define PACKAGE_NAME "$PACKAGE_NAME"
1171_ACEOF
1172
1173
1174cat >>confdefs.h <<_ACEOF
1175#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1176_ACEOF
1177
1178
1179cat >>confdefs.h <<_ACEOF
1180#define PACKAGE_VERSION "$PACKAGE_VERSION"
1181_ACEOF
1182
1183
1184cat >>confdefs.h <<_ACEOF
1185#define PACKAGE_STRING "$PACKAGE_STRING"
1186_ACEOF
1187
1188
1189cat >>confdefs.h <<_ACEOF
1190#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1191_ACEOF
1192
1193
1194# Let the site file select an alternate cache file if it wants to.
1195# Prefer explicitly selected file to automatically selected ones.
1196if test -z "$CONFIG_SITE"; then
1197  if test "x$prefix" != xNONE; then
1198    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1199  else
1200    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1201  fi
1202fi
1203for ac_site_file in $CONFIG_SITE; do
1204  if test -r "$ac_site_file"; then
1205    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1206echo "$as_me: loading site script $ac_site_file" >&6;}
1207    sed 's/^/| /' "$ac_site_file" >&5
1208    . "$ac_site_file"
1209  fi
1210done
1211
1212if test -r "$cache_file"; then
1213  # Some versions of bash will fail to source /dev/null (special
1214  # files actually), so we avoid doing that.
1215  if test -f "$cache_file"; then
1216    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1217echo "$as_me: loading cache $cache_file" >&6;}
1218    case $cache_file in
1219      [\\/]* | ?:[\\/]* ) . $cache_file;;
1220      *)                      . ./$cache_file;;
1221    esac
1222  fi
1223else
1224  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1225echo "$as_me: creating cache $cache_file" >&6;}
1226  >$cache_file
1227fi
1228
1229# Check that the precious variables saved in the cache have kept the same
1230# value.
1231ac_cache_corrupted=false
1232for ac_var in `(set) 2>&1 |
1233	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1234  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1235  eval ac_new_set=\$ac_env_${ac_var}_set
1236  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1237  eval ac_new_val="\$ac_env_${ac_var}_value"
1238  case $ac_old_set,$ac_new_set in
1239    set,)
1240      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1241echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1242      ac_cache_corrupted=: ;;
1243    ,set)
1244      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1245echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1246      ac_cache_corrupted=: ;;
1247    ,);;
1248    *)
1249      if test "x$ac_old_val" != "x$ac_new_val"; then
1250	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1251echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1252	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1253echo "$as_me:   former value:  $ac_old_val" >&2;}
1254	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1255echo "$as_me:   current value: $ac_new_val" >&2;}
1256	ac_cache_corrupted=:
1257      fi;;
1258  esac
1259  # Pass precious variables to config.status.
1260  if test "$ac_new_set" = set; then
1261    case $ac_new_val in
1262    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1263      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1264    *) ac_arg=$ac_var=$ac_new_val ;;
1265    esac
1266    case " $ac_configure_args " in
1267      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1268      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1269    esac
1270  fi
1271done
1272if $ac_cache_corrupted; then
1273  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1274echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1275  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1276echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1277   { (exit 1); exit 1; }; }
1278fi
1279
1280ac_ext=c
1281ac_cpp='$CPP $CPPFLAGS'
1282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1284ac_compiler_gnu=$ac_cv_c_compiler_gnu
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313          ac_config_headers="$ac_config_headers defines.h"
1314
1315
1316# Checks for arguments.
1317
1318# Check whether --with-cs-regex or --without-cs-regex was given.
1319if test "${with_cs_regex+set}" = set; then
1320  withval="$with_cs_regex"
1321  have_regex_cs=$withval
1322else
1323  have_regex_cs=no
1324fi;
1325msb_enable=unknown
1326# Check whether --enable-msb or --disable-msb was given.
1327if test "${enable_msb+set}" = set; then
1328  enableval="$enable_msb"
1329  msb_enable=$enableval
1330fi;
1331
1332# Checks for programs.
1333ac_ext=c
1334ac_cpp='$CPP $CPPFLAGS'
1335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1337ac_compiler_gnu=$ac_cv_c_compiler_gnu
1338if test -n "$ac_tool_prefix"; then
1339  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1340set dummy ${ac_tool_prefix}gcc; ac_word=$2
1341echo "$as_me:$LINENO: checking for $ac_word" >&5
1342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1343if test "${ac_cv_prog_CC+set}" = set; then
1344  echo $ECHO_N "(cached) $ECHO_C" >&6
1345else
1346  if test -n "$CC"; then
1347  ac_cv_prog_CC="$CC" # Let the user override the test.
1348else
1349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1350for as_dir in $PATH
1351do
1352  IFS=$as_save_IFS
1353  test -z "$as_dir" && as_dir=.
1354  for ac_exec_ext in '' $ac_executable_extensions; do
1355  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1356    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1357    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1358    break 2
1359  fi
1360done
1361done
1362
1363fi
1364fi
1365CC=$ac_cv_prog_CC
1366if test -n "$CC"; then
1367  echo "$as_me:$LINENO: result: $CC" >&5
1368echo "${ECHO_T}$CC" >&6
1369else
1370  echo "$as_me:$LINENO: result: no" >&5
1371echo "${ECHO_T}no" >&6
1372fi
1373
1374fi
1375if test -z "$ac_cv_prog_CC"; then
1376  ac_ct_CC=$CC
1377  # Extract the first word of "gcc", so it can be a program name with args.
1378set dummy gcc; ac_word=$2
1379echo "$as_me:$LINENO: checking for $ac_word" >&5
1380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1381if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1382  echo $ECHO_N "(cached) $ECHO_C" >&6
1383else
1384  if test -n "$ac_ct_CC"; then
1385  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1386else
1387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1388for as_dir in $PATH
1389do
1390  IFS=$as_save_IFS
1391  test -z "$as_dir" && as_dir=.
1392  for ac_exec_ext in '' $ac_executable_extensions; do
1393  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1394    ac_cv_prog_ac_ct_CC="gcc"
1395    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1396    break 2
1397  fi
1398done
1399done
1400
1401fi
1402fi
1403ac_ct_CC=$ac_cv_prog_ac_ct_CC
1404if test -n "$ac_ct_CC"; then
1405  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1406echo "${ECHO_T}$ac_ct_CC" >&6
1407else
1408  echo "$as_me:$LINENO: result: no" >&5
1409echo "${ECHO_T}no" >&6
1410fi
1411
1412  CC=$ac_ct_CC
1413else
1414  CC="$ac_cv_prog_CC"
1415fi
1416
1417if test -z "$CC"; then
1418  if test -n "$ac_tool_prefix"; then
1419  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1420set dummy ${ac_tool_prefix}cc; ac_word=$2
1421echo "$as_me:$LINENO: checking for $ac_word" >&5
1422echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1423if test "${ac_cv_prog_CC+set}" = set; then
1424  echo $ECHO_N "(cached) $ECHO_C" >&6
1425else
1426  if test -n "$CC"; then
1427  ac_cv_prog_CC="$CC" # Let the user override the test.
1428else
1429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1430for as_dir in $PATH
1431do
1432  IFS=$as_save_IFS
1433  test -z "$as_dir" && as_dir=.
1434  for ac_exec_ext in '' $ac_executable_extensions; do
1435  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1436    ac_cv_prog_CC="${ac_tool_prefix}cc"
1437    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1438    break 2
1439  fi
1440done
1441done
1442
1443fi
1444fi
1445CC=$ac_cv_prog_CC
1446if test -n "$CC"; then
1447  echo "$as_me:$LINENO: result: $CC" >&5
1448echo "${ECHO_T}$CC" >&6
1449else
1450  echo "$as_me:$LINENO: result: no" >&5
1451echo "${ECHO_T}no" >&6
1452fi
1453
1454fi
1455if test -z "$ac_cv_prog_CC"; then
1456  ac_ct_CC=$CC
1457  # Extract the first word of "cc", so it can be a program name with args.
1458set dummy cc; ac_word=$2
1459echo "$as_me:$LINENO: checking for $ac_word" >&5
1460echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1461if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1462  echo $ECHO_N "(cached) $ECHO_C" >&6
1463else
1464  if test -n "$ac_ct_CC"; then
1465  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1466else
1467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1468for as_dir in $PATH
1469do
1470  IFS=$as_save_IFS
1471  test -z "$as_dir" && as_dir=.
1472  for ac_exec_ext in '' $ac_executable_extensions; do
1473  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1474    ac_cv_prog_ac_ct_CC="cc"
1475    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1476    break 2
1477  fi
1478done
1479done
1480
1481fi
1482fi
1483ac_ct_CC=$ac_cv_prog_ac_ct_CC
1484if test -n "$ac_ct_CC"; then
1485  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1486echo "${ECHO_T}$ac_ct_CC" >&6
1487else
1488  echo "$as_me:$LINENO: result: no" >&5
1489echo "${ECHO_T}no" >&6
1490fi
1491
1492  CC=$ac_ct_CC
1493else
1494  CC="$ac_cv_prog_CC"
1495fi
1496
1497fi
1498if test -z "$CC"; then
1499  # Extract the first word of "cc", so it can be a program name with args.
1500set dummy cc; ac_word=$2
1501echo "$as_me:$LINENO: checking for $ac_word" >&5
1502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1503if test "${ac_cv_prog_CC+set}" = set; then
1504  echo $ECHO_N "(cached) $ECHO_C" >&6
1505else
1506  if test -n "$CC"; then
1507  ac_cv_prog_CC="$CC" # Let the user override the test.
1508else
1509  ac_prog_rejected=no
1510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1511for as_dir in $PATH
1512do
1513  IFS=$as_save_IFS
1514  test -z "$as_dir" && as_dir=.
1515  for ac_exec_ext in '' $ac_executable_extensions; do
1516  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1517    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1518       ac_prog_rejected=yes
1519       continue
1520     fi
1521    ac_cv_prog_CC="cc"
1522    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1523    break 2
1524  fi
1525done
1526done
1527
1528if test $ac_prog_rejected = yes; then
1529  # We found a bogon in the path, so make sure we never use it.
1530  set dummy $ac_cv_prog_CC
1531  shift
1532  if test $# != 0; then
1533    # We chose a different compiler from the bogus one.
1534    # However, it has the same basename, so the bogon will be chosen
1535    # first if we set CC to just the basename; use the full file name.
1536    shift
1537    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1538  fi
1539fi
1540fi
1541fi
1542CC=$ac_cv_prog_CC
1543if test -n "$CC"; then
1544  echo "$as_me:$LINENO: result: $CC" >&5
1545echo "${ECHO_T}$CC" >&6
1546else
1547  echo "$as_me:$LINENO: result: no" >&5
1548echo "${ECHO_T}no" >&6
1549fi
1550
1551fi
1552if test -z "$CC"; then
1553  if test -n "$ac_tool_prefix"; then
1554  for ac_prog in cl
1555  do
1556    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1557set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1558echo "$as_me:$LINENO: checking for $ac_word" >&5
1559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1560if test "${ac_cv_prog_CC+set}" = set; then
1561  echo $ECHO_N "(cached) $ECHO_C" >&6
1562else
1563  if test -n "$CC"; then
1564  ac_cv_prog_CC="$CC" # Let the user override the test.
1565else
1566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1567for as_dir in $PATH
1568do
1569  IFS=$as_save_IFS
1570  test -z "$as_dir" && as_dir=.
1571  for ac_exec_ext in '' $ac_executable_extensions; do
1572  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1573    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1574    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1575    break 2
1576  fi
1577done
1578done
1579
1580fi
1581fi
1582CC=$ac_cv_prog_CC
1583if test -n "$CC"; then
1584  echo "$as_me:$LINENO: result: $CC" >&5
1585echo "${ECHO_T}$CC" >&6
1586else
1587  echo "$as_me:$LINENO: result: no" >&5
1588echo "${ECHO_T}no" >&6
1589fi
1590
1591    test -n "$CC" && break
1592  done
1593fi
1594if test -z "$CC"; then
1595  ac_ct_CC=$CC
1596  for ac_prog in cl
1597do
1598  # Extract the first word of "$ac_prog", so it can be a program name with args.
1599set dummy $ac_prog; ac_word=$2
1600echo "$as_me:$LINENO: checking for $ac_word" >&5
1601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1602if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1603  echo $ECHO_N "(cached) $ECHO_C" >&6
1604else
1605  if test -n "$ac_ct_CC"; then
1606  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1607else
1608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1609for as_dir in $PATH
1610do
1611  IFS=$as_save_IFS
1612  test -z "$as_dir" && as_dir=.
1613  for ac_exec_ext in '' $ac_executable_extensions; do
1614  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1615    ac_cv_prog_ac_ct_CC="$ac_prog"
1616    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1617    break 2
1618  fi
1619done
1620done
1621
1622fi
1623fi
1624ac_ct_CC=$ac_cv_prog_ac_ct_CC
1625if test -n "$ac_ct_CC"; then
1626  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1627echo "${ECHO_T}$ac_ct_CC" >&6
1628else
1629  echo "$as_me:$LINENO: result: no" >&5
1630echo "${ECHO_T}no" >&6
1631fi
1632
1633  test -n "$ac_ct_CC" && break
1634done
1635
1636  CC=$ac_ct_CC
1637fi
1638
1639fi
1640
1641
1642test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1643See \`config.log' for more details." >&5
1644echo "$as_me: error: no acceptable C compiler found in \$PATH
1645See \`config.log' for more details." >&2;}
1646   { (exit 1); exit 1; }; }
1647
1648# Provide some information about the compiler.
1649echo "$as_me:$LINENO:" \
1650     "checking for C compiler version" >&5
1651ac_compiler=`set X $ac_compile; echo $2`
1652{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1653  (eval $ac_compiler --version </dev/null >&5) 2>&5
1654  ac_status=$?
1655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1656  (exit $ac_status); }
1657{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1658  (eval $ac_compiler -v </dev/null >&5) 2>&5
1659  ac_status=$?
1660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1661  (exit $ac_status); }
1662{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1663  (eval $ac_compiler -V </dev/null >&5) 2>&5
1664  ac_status=$?
1665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1666  (exit $ac_status); }
1667
1668cat >conftest.$ac_ext <<_ACEOF
1669/* confdefs.h.  */
1670_ACEOF
1671cat confdefs.h >>conftest.$ac_ext
1672cat >>conftest.$ac_ext <<_ACEOF
1673/* end confdefs.h.  */
1674
1675int
1676main ()
1677{
1678
1679  ;
1680  return 0;
1681}
1682_ACEOF
1683ac_clean_files_save=$ac_clean_files
1684ac_clean_files="$ac_clean_files a.out a.exe b.out"
1685# Try to create an executable without -o first, disregard a.out.
1686# It will help us diagnose broken compilers, and finding out an intuition
1687# of exeext.
1688echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1689echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1690ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1691if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1692  (eval $ac_link_default) 2>&5
1693  ac_status=$?
1694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1695  (exit $ac_status); }; then
1696  # Find the output, starting from the most likely.  This scheme is
1697# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1698# resort.
1699
1700# Be careful to initialize this variable, since it used to be cached.
1701# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1702ac_cv_exeext=
1703# b.out is created by i960 compilers.
1704for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1705do
1706  test -f "$ac_file" || continue
1707  case $ac_file in
1708    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1709	;;
1710    conftest.$ac_ext )
1711	# This is the source file.
1712	;;
1713    [ab].out )
1714	# We found the default executable, but exeext='' is most
1715	# certainly right.
1716	break;;
1717    *.* )
1718	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1719	# FIXME: I believe we export ac_cv_exeext for Libtool,
1720	# but it would be cool to find out if it's true.  Does anybody
1721	# maintain Libtool? --akim.
1722	export ac_cv_exeext
1723	break;;
1724    * )
1725	break;;
1726  esac
1727done
1728else
1729  echo "$as_me: failed program was:" >&5
1730sed 's/^/| /' conftest.$ac_ext >&5
1731
1732{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1733See \`config.log' for more details." >&5
1734echo "$as_me: error: C compiler cannot create executables
1735See \`config.log' for more details." >&2;}
1736   { (exit 77); exit 77; }; }
1737fi
1738
1739ac_exeext=$ac_cv_exeext
1740echo "$as_me:$LINENO: result: $ac_file" >&5
1741echo "${ECHO_T}$ac_file" >&6
1742
1743# Check the compiler produces executables we can run.  If not, either
1744# the compiler is broken, or we cross compile.
1745echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1746echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1747# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1748# If not cross compiling, check that we can run a simple program.
1749if test "$cross_compiling" != yes; then
1750  if { ac_try='./$ac_file'
1751  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1752  (eval $ac_try) 2>&5
1753  ac_status=$?
1754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1755  (exit $ac_status); }; }; then
1756    cross_compiling=no
1757  else
1758    if test "$cross_compiling" = maybe; then
1759	cross_compiling=yes
1760    else
1761	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1762If you meant to cross compile, use \`--host'.
1763See \`config.log' for more details." >&5
1764echo "$as_me: error: cannot run C compiled programs.
1765If you meant to cross compile, use \`--host'.
1766See \`config.log' for more details." >&2;}
1767   { (exit 1); exit 1; }; }
1768    fi
1769  fi
1770fi
1771echo "$as_me:$LINENO: result: yes" >&5
1772echo "${ECHO_T}yes" >&6
1773
1774rm -f a.out a.exe conftest$ac_cv_exeext b.out
1775ac_clean_files=$ac_clean_files_save
1776# Check the compiler produces executables we can run.  If not, either
1777# the compiler is broken, or we cross compile.
1778echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1779echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1780echo "$as_me:$LINENO: result: $cross_compiling" >&5
1781echo "${ECHO_T}$cross_compiling" >&6
1782
1783echo "$as_me:$LINENO: checking for suffix of executables" >&5
1784echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1785if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1786  (eval $ac_link) 2>&5
1787  ac_status=$?
1788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1789  (exit $ac_status); }; then
1790  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1791# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1792# work properly (i.e., refer to `conftest.exe'), while it won't with
1793# `rm'.
1794for ac_file in conftest.exe conftest conftest.*; do
1795  test -f "$ac_file" || continue
1796  case $ac_file in
1797    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1798    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1799	  export ac_cv_exeext
1800	  break;;
1801    * ) break;;
1802  esac
1803done
1804else
1805  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1806See \`config.log' for more details." >&5
1807echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1808See \`config.log' for more details." >&2;}
1809   { (exit 1); exit 1; }; }
1810fi
1811
1812rm -f conftest$ac_cv_exeext
1813echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1814echo "${ECHO_T}$ac_cv_exeext" >&6
1815
1816rm -f conftest.$ac_ext
1817EXEEXT=$ac_cv_exeext
1818ac_exeext=$EXEEXT
1819echo "$as_me:$LINENO: checking for suffix of object files" >&5
1820echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1821if test "${ac_cv_objext+set}" = set; then
1822  echo $ECHO_N "(cached) $ECHO_C" >&6
1823else
1824  cat >conftest.$ac_ext <<_ACEOF
1825/* confdefs.h.  */
1826_ACEOF
1827cat confdefs.h >>conftest.$ac_ext
1828cat >>conftest.$ac_ext <<_ACEOF
1829/* end confdefs.h.  */
1830
1831int
1832main ()
1833{
1834
1835  ;
1836  return 0;
1837}
1838_ACEOF
1839rm -f conftest.o conftest.obj
1840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1841  (eval $ac_compile) 2>&5
1842  ac_status=$?
1843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1844  (exit $ac_status); }; then
1845  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1846  case $ac_file in
1847    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1848    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1849       break;;
1850  esac
1851done
1852else
1853  echo "$as_me: failed program was:" >&5
1854sed 's/^/| /' conftest.$ac_ext >&5
1855
1856{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1857See \`config.log' for more details." >&5
1858echo "$as_me: error: cannot compute suffix of object files: cannot compile
1859See \`config.log' for more details." >&2;}
1860   { (exit 1); exit 1; }; }
1861fi
1862
1863rm -f conftest.$ac_cv_objext conftest.$ac_ext
1864fi
1865echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1866echo "${ECHO_T}$ac_cv_objext" >&6
1867OBJEXT=$ac_cv_objext
1868ac_objext=$OBJEXT
1869echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1870echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1871if test "${ac_cv_c_compiler_gnu+set}" = set; then
1872  echo $ECHO_N "(cached) $ECHO_C" >&6
1873else
1874  cat >conftest.$ac_ext <<_ACEOF
1875/* confdefs.h.  */
1876_ACEOF
1877cat confdefs.h >>conftest.$ac_ext
1878cat >>conftest.$ac_ext <<_ACEOF
1879/* end confdefs.h.  */
1880
1881int
1882main ()
1883{
1884#ifndef __GNUC__
1885       choke me
1886#endif
1887
1888  ;
1889  return 0;
1890}
1891_ACEOF
1892rm -f conftest.$ac_objext
1893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1894  (eval $ac_compile) 2>conftest.er1
1895  ac_status=$?
1896  grep -v '^ *+' conftest.er1 >conftest.err
1897  rm -f conftest.er1
1898  cat conftest.err >&5
1899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1900  (exit $ac_status); } &&
1901	 { ac_try='test -z "$ac_c_werror_flag"
1902			 || test ! -s conftest.err'
1903  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1904  (eval $ac_try) 2>&5
1905  ac_status=$?
1906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1907  (exit $ac_status); }; } &&
1908	 { ac_try='test -s conftest.$ac_objext'
1909  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1910  (eval $ac_try) 2>&5
1911  ac_status=$?
1912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1913  (exit $ac_status); }; }; then
1914  ac_compiler_gnu=yes
1915else
1916  echo "$as_me: failed program was:" >&5
1917sed 's/^/| /' conftest.$ac_ext >&5
1918
1919ac_compiler_gnu=no
1920fi
1921rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1922ac_cv_c_compiler_gnu=$ac_compiler_gnu
1923
1924fi
1925echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1926echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1927GCC=`test $ac_compiler_gnu = yes && echo yes`
1928ac_test_CFLAGS=${CFLAGS+set}
1929ac_save_CFLAGS=$CFLAGS
1930CFLAGS="-g"
1931echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1932echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1933if test "${ac_cv_prog_cc_g+set}" = set; then
1934  echo $ECHO_N "(cached) $ECHO_C" >&6
1935else
1936  cat >conftest.$ac_ext <<_ACEOF
1937/* confdefs.h.  */
1938_ACEOF
1939cat confdefs.h >>conftest.$ac_ext
1940cat >>conftest.$ac_ext <<_ACEOF
1941/* end confdefs.h.  */
1942
1943int
1944main ()
1945{
1946
1947  ;
1948  return 0;
1949}
1950_ACEOF
1951rm -f conftest.$ac_objext
1952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1953  (eval $ac_compile) 2>conftest.er1
1954  ac_status=$?
1955  grep -v '^ *+' conftest.er1 >conftest.err
1956  rm -f conftest.er1
1957  cat conftest.err >&5
1958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1959  (exit $ac_status); } &&
1960	 { ac_try='test -z "$ac_c_werror_flag"
1961			 || test ! -s conftest.err'
1962  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1963  (eval $ac_try) 2>&5
1964  ac_status=$?
1965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1966  (exit $ac_status); }; } &&
1967	 { ac_try='test -s conftest.$ac_objext'
1968  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1969  (eval $ac_try) 2>&5
1970  ac_status=$?
1971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1972  (exit $ac_status); }; }; then
1973  ac_cv_prog_cc_g=yes
1974else
1975  echo "$as_me: failed program was:" >&5
1976sed 's/^/| /' conftest.$ac_ext >&5
1977
1978ac_cv_prog_cc_g=no
1979fi
1980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1981fi
1982echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1983echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1984if test "$ac_test_CFLAGS" = set; then
1985  CFLAGS=$ac_save_CFLAGS
1986elif test $ac_cv_prog_cc_g = yes; then
1987  if test "$GCC" = yes; then
1988    CFLAGS="-g -O2"
1989  else
1990    CFLAGS="-g"
1991  fi
1992else
1993  if test "$GCC" = yes; then
1994    CFLAGS="-O2"
1995  else
1996    CFLAGS=
1997  fi
1998fi
1999echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2000echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2001if test "${ac_cv_prog_cc_stdc+set}" = set; then
2002  echo $ECHO_N "(cached) $ECHO_C" >&6
2003else
2004  ac_cv_prog_cc_stdc=no
2005ac_save_CC=$CC
2006cat >conftest.$ac_ext <<_ACEOF
2007/* confdefs.h.  */
2008_ACEOF
2009cat confdefs.h >>conftest.$ac_ext
2010cat >>conftest.$ac_ext <<_ACEOF
2011/* end confdefs.h.  */
2012#include <stdarg.h>
2013#include <stdio.h>
2014#include <sys/types.h>
2015#include <sys/stat.h>
2016/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2017struct buf { int x; };
2018FILE * (*rcsopen) (struct buf *, struct stat *, int);
2019static char *e (p, i)
2020     char **p;
2021     int i;
2022{
2023  return p[i];
2024}
2025static char *f (char * (*g) (char **, int), char **p, ...)
2026{
2027  char *s;
2028  va_list v;
2029  va_start (v,p);
2030  s = g (p, va_arg (v,int));
2031  va_end (v);
2032  return s;
2033}
2034
2035/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2036   function prototypes and stuff, but not '\xHH' hex character constants.
2037   These don't provoke an error unfortunately, instead are silently treated
2038   as 'x'.  The following induces an error, until -std1 is added to get
2039   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2040   array size at least.  It's necessary to write '\x00'==0 to get something
2041   that's true only with -std1.  */
2042int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2043
2044int test (int i, double x);
2045struct s1 {int (*f) (int a);};
2046struct s2 {int (*f) (double a);};
2047int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2048int argc;
2049char **argv;
2050int
2051main ()
2052{
2053return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2054  ;
2055  return 0;
2056}
2057_ACEOF
2058# Don't try gcc -ansi; that turns off useful extensions and
2059# breaks some systems' header files.
2060# AIX			-qlanglvl=ansi
2061# Ultrix and OSF/1	-std1
2062# HP-UX 10.20 and later	-Ae
2063# HP-UX older versions	-Aa -D_HPUX_SOURCE
2064# SVR4			-Xc -D__EXTENSIONS__
2065for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2066do
2067  CC="$ac_save_CC $ac_arg"
2068  rm -f conftest.$ac_objext
2069if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2070  (eval $ac_compile) 2>conftest.er1
2071  ac_status=$?
2072  grep -v '^ *+' conftest.er1 >conftest.err
2073  rm -f conftest.er1
2074  cat conftest.err >&5
2075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2076  (exit $ac_status); } &&
2077	 { ac_try='test -z "$ac_c_werror_flag"
2078			 || test ! -s conftest.err'
2079  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2080  (eval $ac_try) 2>&5
2081  ac_status=$?
2082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083  (exit $ac_status); }; } &&
2084	 { ac_try='test -s conftest.$ac_objext'
2085  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2086  (eval $ac_try) 2>&5
2087  ac_status=$?
2088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089  (exit $ac_status); }; }; then
2090  ac_cv_prog_cc_stdc=$ac_arg
2091break
2092else
2093  echo "$as_me: failed program was:" >&5
2094sed 's/^/| /' conftest.$ac_ext >&5
2095
2096fi
2097rm -f conftest.err conftest.$ac_objext
2098done
2099rm -f conftest.$ac_ext conftest.$ac_objext
2100CC=$ac_save_CC
2101
2102fi
2103
2104case "x$ac_cv_prog_cc_stdc" in
2105  x|xno)
2106    echo "$as_me:$LINENO: result: none needed" >&5
2107echo "${ECHO_T}none needed" >&6 ;;
2108  *)
2109    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2110echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2111    CC="$CC $ac_cv_prog_cc_stdc" ;;
2112esac
2113
2114# Some people use a C++ compiler to compile C.  Since we use `exit',
2115# in C++ we need to declare it.  In case someone uses the same compiler
2116# for both compiling C and C++ we need to have the C++ compiler decide
2117# the declaration of exit, since it's the most demanding environment.
2118cat >conftest.$ac_ext <<_ACEOF
2119#ifndef __cplusplus
2120  choke me
2121#endif
2122_ACEOF
2123rm -f conftest.$ac_objext
2124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2125  (eval $ac_compile) 2>conftest.er1
2126  ac_status=$?
2127  grep -v '^ *+' conftest.er1 >conftest.err
2128  rm -f conftest.er1
2129  cat conftest.err >&5
2130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131  (exit $ac_status); } &&
2132	 { ac_try='test -z "$ac_c_werror_flag"
2133			 || test ! -s conftest.err'
2134  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2135  (eval $ac_try) 2>&5
2136  ac_status=$?
2137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138  (exit $ac_status); }; } &&
2139	 { ac_try='test -s conftest.$ac_objext'
2140  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2141  (eval $ac_try) 2>&5
2142  ac_status=$?
2143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144  (exit $ac_status); }; }; then
2145  for ac_declaration in \
2146   '' \
2147   'extern "C" void std::exit (int) throw (); using std::exit;' \
2148   'extern "C" void std::exit (int); using std::exit;' \
2149   'extern "C" void exit (int) throw ();' \
2150   'extern "C" void exit (int);' \
2151   'void exit (int);'
2152do
2153  cat >conftest.$ac_ext <<_ACEOF
2154/* confdefs.h.  */
2155_ACEOF
2156cat confdefs.h >>conftest.$ac_ext
2157cat >>conftest.$ac_ext <<_ACEOF
2158/* end confdefs.h.  */
2159$ac_declaration
2160#include <stdlib.h>
2161int
2162main ()
2163{
2164exit (42);
2165  ;
2166  return 0;
2167}
2168_ACEOF
2169rm -f conftest.$ac_objext
2170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2171  (eval $ac_compile) 2>conftest.er1
2172  ac_status=$?
2173  grep -v '^ *+' conftest.er1 >conftest.err
2174  rm -f conftest.er1
2175  cat conftest.err >&5
2176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177  (exit $ac_status); } &&
2178	 { ac_try='test -z "$ac_c_werror_flag"
2179			 || test ! -s conftest.err'
2180  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2181  (eval $ac_try) 2>&5
2182  ac_status=$?
2183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184  (exit $ac_status); }; } &&
2185	 { ac_try='test -s conftest.$ac_objext'
2186  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2187  (eval $ac_try) 2>&5
2188  ac_status=$?
2189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190  (exit $ac_status); }; }; then
2191  :
2192else
2193  echo "$as_me: failed program was:" >&5
2194sed 's/^/| /' conftest.$ac_ext >&5
2195
2196continue
2197fi
2198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2199  cat >conftest.$ac_ext <<_ACEOF
2200/* confdefs.h.  */
2201_ACEOF
2202cat confdefs.h >>conftest.$ac_ext
2203cat >>conftest.$ac_ext <<_ACEOF
2204/* end confdefs.h.  */
2205$ac_declaration
2206int
2207main ()
2208{
2209exit (42);
2210  ;
2211  return 0;
2212}
2213_ACEOF
2214rm -f conftest.$ac_objext
2215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2216  (eval $ac_compile) 2>conftest.er1
2217  ac_status=$?
2218  grep -v '^ *+' conftest.er1 >conftest.err
2219  rm -f conftest.er1
2220  cat conftest.err >&5
2221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222  (exit $ac_status); } &&
2223	 { ac_try='test -z "$ac_c_werror_flag"
2224			 || test ! -s conftest.err'
2225  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2226  (eval $ac_try) 2>&5
2227  ac_status=$?
2228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229  (exit $ac_status); }; } &&
2230	 { ac_try='test -s conftest.$ac_objext'
2231  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2232  (eval $ac_try) 2>&5
2233  ac_status=$?
2234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235  (exit $ac_status); }; }; then
2236  break
2237else
2238  echo "$as_me: failed program was:" >&5
2239sed 's/^/| /' conftest.$ac_ext >&5
2240
2241fi
2242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2243done
2244rm -f conftest*
2245if test -n "$ac_declaration"; then
2246  echo '#ifdef __cplusplus' >>confdefs.h
2247  echo $ac_declaration      >>confdefs.h
2248  echo '#endif'             >>confdefs.h
2249fi
2250
2251else
2252  echo "$as_me: failed program was:" >&5
2253sed 's/^/| /' conftest.$ac_ext >&5
2254
2255fi
2256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2257ac_ext=c
2258ac_cpp='$CPP $CPPFLAGS'
2259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2261ac_compiler_gnu=$ac_cv_c_compiler_gnu
2262
2263
2264echo "$as_me:$LINENO: checking for library containing strerror" >&5
2265echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2266if test "${ac_cv_search_strerror+set}" = set; then
2267  echo $ECHO_N "(cached) $ECHO_C" >&6
2268else
2269  ac_func_search_save_LIBS=$LIBS
2270ac_cv_search_strerror=no
2271cat >conftest.$ac_ext <<_ACEOF
2272/* confdefs.h.  */
2273_ACEOF
2274cat confdefs.h >>conftest.$ac_ext
2275cat >>conftest.$ac_ext <<_ACEOF
2276/* end confdefs.h.  */
2277
2278/* Override any gcc2 internal prototype to avoid an error.  */
2279#ifdef __cplusplus
2280extern "C"
2281#endif
2282/* We use char because int might match the return type of a gcc2
2283   builtin and then its argument prototype would still apply.  */
2284char strerror ();
2285int
2286main ()
2287{
2288strerror ();
2289  ;
2290  return 0;
2291}
2292_ACEOF
2293rm -f conftest.$ac_objext conftest$ac_exeext
2294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2295  (eval $ac_link) 2>conftest.er1
2296  ac_status=$?
2297  grep -v '^ *+' conftest.er1 >conftest.err
2298  rm -f conftest.er1
2299  cat conftest.err >&5
2300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301  (exit $ac_status); } &&
2302	 { ac_try='test -z "$ac_c_werror_flag"
2303			 || test ! -s conftest.err'
2304  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2305  (eval $ac_try) 2>&5
2306  ac_status=$?
2307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308  (exit $ac_status); }; } &&
2309	 { ac_try='test -s conftest$ac_exeext'
2310  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2311  (eval $ac_try) 2>&5
2312  ac_status=$?
2313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314  (exit $ac_status); }; }; then
2315  ac_cv_search_strerror="none required"
2316else
2317  echo "$as_me: failed program was:" >&5
2318sed 's/^/| /' conftest.$ac_ext >&5
2319
2320fi
2321rm -f conftest.err conftest.$ac_objext \
2322      conftest$ac_exeext conftest.$ac_ext
2323if test "$ac_cv_search_strerror" = no; then
2324  for ac_lib in cposix; do
2325    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2326    cat >conftest.$ac_ext <<_ACEOF
2327/* confdefs.h.  */
2328_ACEOF
2329cat confdefs.h >>conftest.$ac_ext
2330cat >>conftest.$ac_ext <<_ACEOF
2331/* end confdefs.h.  */
2332
2333/* Override any gcc2 internal prototype to avoid an error.  */
2334#ifdef __cplusplus
2335extern "C"
2336#endif
2337/* We use char because int might match the return type of a gcc2
2338   builtin and then its argument prototype would still apply.  */
2339char strerror ();
2340int
2341main ()
2342{
2343strerror ();
2344  ;
2345  return 0;
2346}
2347_ACEOF
2348rm -f conftest.$ac_objext conftest$ac_exeext
2349if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2350  (eval $ac_link) 2>conftest.er1
2351  ac_status=$?
2352  grep -v '^ *+' conftest.er1 >conftest.err
2353  rm -f conftest.er1
2354  cat conftest.err >&5
2355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356  (exit $ac_status); } &&
2357	 { ac_try='test -z "$ac_c_werror_flag"
2358			 || test ! -s conftest.err'
2359  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2360  (eval $ac_try) 2>&5
2361  ac_status=$?
2362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363  (exit $ac_status); }; } &&
2364	 { ac_try='test -s conftest$ac_exeext'
2365  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2366  (eval $ac_try) 2>&5
2367  ac_status=$?
2368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369  (exit $ac_status); }; }; then
2370  ac_cv_search_strerror="-l$ac_lib"
2371break
2372else
2373  echo "$as_me: failed program was:" >&5
2374sed 's/^/| /' conftest.$ac_ext >&5
2375
2376fi
2377rm -f conftest.err conftest.$ac_objext \
2378      conftest$ac_exeext conftest.$ac_ext
2379  done
2380fi
2381LIBS=$ac_func_search_save_LIBS
2382fi
2383echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2384echo "${ECHO_T}$ac_cv_search_strerror" >&6
2385if test "$ac_cv_search_strerror" != no; then
2386  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2387
2388fi
2389
2390ac_ext=c
2391ac_cpp='$CPP $CPPFLAGS'
2392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2394ac_compiler_gnu=$ac_cv_c_compiler_gnu
2395echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2396echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2397# On Suns, sometimes $CPP names a directory.
2398if test -n "$CPP" && test -d "$CPP"; then
2399  CPP=
2400fi
2401if test -z "$CPP"; then
2402  if test "${ac_cv_prog_CPP+set}" = set; then
2403  echo $ECHO_N "(cached) $ECHO_C" >&6
2404else
2405      # Double quotes because CPP needs to be expanded
2406    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2407    do
2408      ac_preproc_ok=false
2409for ac_c_preproc_warn_flag in '' yes
2410do
2411  # Use a header file that comes with gcc, so configuring glibc
2412  # with a fresh cross-compiler works.
2413  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2414  # <limits.h> exists even on freestanding compilers.
2415  # On the NeXT, cc -E runs the code through the compiler's parser,
2416  # not just through cpp. "Syntax error" is here to catch this case.
2417  cat >conftest.$ac_ext <<_ACEOF
2418/* confdefs.h.  */
2419_ACEOF
2420cat confdefs.h >>conftest.$ac_ext
2421cat >>conftest.$ac_ext <<_ACEOF
2422/* end confdefs.h.  */
2423#ifdef __STDC__
2424# include <limits.h>
2425#else
2426# include <assert.h>
2427#endif
2428		     Syntax error
2429_ACEOF
2430if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2431  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2432  ac_status=$?
2433  grep -v '^ *+' conftest.er1 >conftest.err
2434  rm -f conftest.er1
2435  cat conftest.err >&5
2436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437  (exit $ac_status); } >/dev/null; then
2438  if test -s conftest.err; then
2439    ac_cpp_err=$ac_c_preproc_warn_flag
2440    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2441  else
2442    ac_cpp_err=
2443  fi
2444else
2445  ac_cpp_err=yes
2446fi
2447if test -z "$ac_cpp_err"; then
2448  :
2449else
2450  echo "$as_me: failed program was:" >&5
2451sed 's/^/| /' conftest.$ac_ext >&5
2452
2453  # Broken: fails on valid input.
2454continue
2455fi
2456rm -f conftest.err conftest.$ac_ext
2457
2458  # OK, works on sane cases.  Now check whether non-existent headers
2459  # can be detected and how.
2460  cat >conftest.$ac_ext <<_ACEOF
2461/* confdefs.h.  */
2462_ACEOF
2463cat confdefs.h >>conftest.$ac_ext
2464cat >>conftest.$ac_ext <<_ACEOF
2465/* end confdefs.h.  */
2466#include <ac_nonexistent.h>
2467_ACEOF
2468if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2469  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2470  ac_status=$?
2471  grep -v '^ *+' conftest.er1 >conftest.err
2472  rm -f conftest.er1
2473  cat conftest.err >&5
2474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475  (exit $ac_status); } >/dev/null; then
2476  if test -s conftest.err; then
2477    ac_cpp_err=$ac_c_preproc_warn_flag
2478    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2479  else
2480    ac_cpp_err=
2481  fi
2482else
2483  ac_cpp_err=yes
2484fi
2485if test -z "$ac_cpp_err"; then
2486  # Broken: success on invalid input.
2487continue
2488else
2489  echo "$as_me: failed program was:" >&5
2490sed 's/^/| /' conftest.$ac_ext >&5
2491
2492  # Passes both tests.
2493ac_preproc_ok=:
2494break
2495fi
2496rm -f conftest.err conftest.$ac_ext
2497
2498done
2499# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2500rm -f conftest.err conftest.$ac_ext
2501if $ac_preproc_ok; then
2502  break
2503fi
2504
2505    done
2506    ac_cv_prog_CPP=$CPP
2507
2508fi
2509  CPP=$ac_cv_prog_CPP
2510else
2511  ac_cv_prog_CPP=$CPP
2512fi
2513echo "$as_me:$LINENO: result: $CPP" >&5
2514echo "${ECHO_T}$CPP" >&6
2515ac_preproc_ok=false
2516for ac_c_preproc_warn_flag in '' yes
2517do
2518  # Use a header file that comes with gcc, so configuring glibc
2519  # with a fresh cross-compiler works.
2520  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2521  # <limits.h> exists even on freestanding compilers.
2522  # On the NeXT, cc -E runs the code through the compiler's parser,
2523  # not just through cpp. "Syntax error" is here to catch this case.
2524  cat >conftest.$ac_ext <<_ACEOF
2525/* confdefs.h.  */
2526_ACEOF
2527cat confdefs.h >>conftest.$ac_ext
2528cat >>conftest.$ac_ext <<_ACEOF
2529/* end confdefs.h.  */
2530#ifdef __STDC__
2531# include <limits.h>
2532#else
2533# include <assert.h>
2534#endif
2535		     Syntax error
2536_ACEOF
2537if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2538  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2539  ac_status=$?
2540  grep -v '^ *+' conftest.er1 >conftest.err
2541  rm -f conftest.er1
2542  cat conftest.err >&5
2543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544  (exit $ac_status); } >/dev/null; then
2545  if test -s conftest.err; then
2546    ac_cpp_err=$ac_c_preproc_warn_flag
2547    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2548  else
2549    ac_cpp_err=
2550  fi
2551else
2552  ac_cpp_err=yes
2553fi
2554if test -z "$ac_cpp_err"; then
2555  :
2556else
2557  echo "$as_me: failed program was:" >&5
2558sed 's/^/| /' conftest.$ac_ext >&5
2559
2560  # Broken: fails on valid input.
2561continue
2562fi
2563rm -f conftest.err conftest.$ac_ext
2564
2565  # OK, works on sane cases.  Now check whether non-existent headers
2566  # can be detected and how.
2567  cat >conftest.$ac_ext <<_ACEOF
2568/* confdefs.h.  */
2569_ACEOF
2570cat confdefs.h >>conftest.$ac_ext
2571cat >>conftest.$ac_ext <<_ACEOF
2572/* end confdefs.h.  */
2573#include <ac_nonexistent.h>
2574_ACEOF
2575if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2576  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2577  ac_status=$?
2578  grep -v '^ *+' conftest.er1 >conftest.err
2579  rm -f conftest.er1
2580  cat conftest.err >&5
2581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582  (exit $ac_status); } >/dev/null; then
2583  if test -s conftest.err; then
2584    ac_cpp_err=$ac_c_preproc_warn_flag
2585    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2586  else
2587    ac_cpp_err=
2588  fi
2589else
2590  ac_cpp_err=yes
2591fi
2592if test -z "$ac_cpp_err"; then
2593  # Broken: success on invalid input.
2594continue
2595else
2596  echo "$as_me: failed program was:" >&5
2597sed 's/^/| /' conftest.$ac_ext >&5
2598
2599  # Passes both tests.
2600ac_preproc_ok=:
2601break
2602fi
2603rm -f conftest.err conftest.$ac_ext
2604
2605done
2606# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2607rm -f conftest.err conftest.$ac_ext
2608if $ac_preproc_ok; then
2609  :
2610else
2611  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2612See \`config.log' for more details." >&5
2613echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2614See \`config.log' for more details." >&2;}
2615   { (exit 1); exit 1; }; }
2616fi
2617
2618ac_ext=c
2619ac_cpp='$CPP $CPPFLAGS'
2620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2622ac_compiler_gnu=$ac_cv_c_compiler_gnu
2623
2624
2625echo "$as_me:$LINENO: checking for egrep" >&5
2626echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2627if test "${ac_cv_prog_egrep+set}" = set; then
2628  echo $ECHO_N "(cached) $ECHO_C" >&6
2629else
2630  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2631    then ac_cv_prog_egrep='grep -E'
2632    else ac_cv_prog_egrep='egrep'
2633    fi
2634fi
2635echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2636echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2637 EGREP=$ac_cv_prog_egrep
2638
2639
2640if test $ac_cv_c_compiler_gnu = yes; then
2641    echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
2642echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2643if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2644  echo $ECHO_N "(cached) $ECHO_C" >&6
2645else
2646    ac_pattern="Autoconf.*'x'"
2647  cat >conftest.$ac_ext <<_ACEOF
2648/* confdefs.h.  */
2649_ACEOF
2650cat confdefs.h >>conftest.$ac_ext
2651cat >>conftest.$ac_ext <<_ACEOF
2652/* end confdefs.h.  */
2653#include <sgtty.h>
2654Autoconf TIOCGETP
2655_ACEOF
2656if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2657  $EGREP "$ac_pattern" >/dev/null 2>&1; then
2658  ac_cv_prog_gcc_traditional=yes
2659else
2660  ac_cv_prog_gcc_traditional=no
2661fi
2662rm -f conftest*
2663
2664
2665  if test $ac_cv_prog_gcc_traditional = no; then
2666    cat >conftest.$ac_ext <<_ACEOF
2667/* confdefs.h.  */
2668_ACEOF
2669cat confdefs.h >>conftest.$ac_ext
2670cat >>conftest.$ac_ext <<_ACEOF
2671/* end confdefs.h.  */
2672#include <termio.h>
2673Autoconf TCGETA
2674_ACEOF
2675if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2676  $EGREP "$ac_pattern" >/dev/null 2>&1; then
2677  ac_cv_prog_gcc_traditional=yes
2678fi
2679rm -f conftest*
2680
2681  fi
2682fi
2683echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
2684echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2685  if test $ac_cv_prog_gcc_traditional = yes; then
2686    CC="$CC -traditional"
2687  fi
2688fi
2689
2690ac_aux_dir=
2691for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2692  if test -f $ac_dir/install-sh; then
2693    ac_aux_dir=$ac_dir
2694    ac_install_sh="$ac_aux_dir/install-sh -c"
2695    break
2696  elif test -f $ac_dir/install.sh; then
2697    ac_aux_dir=$ac_dir
2698    ac_install_sh="$ac_aux_dir/install.sh -c"
2699    break
2700  elif test -f $ac_dir/shtool; then
2701    ac_aux_dir=$ac_dir
2702    ac_install_sh="$ac_aux_dir/shtool install -c"
2703    break
2704  fi
2705done
2706if test -z "$ac_aux_dir"; then
2707  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2708echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2709   { (exit 1); exit 1; }; }
2710fi
2711ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2712ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2713ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2714
2715# Find a good install program.  We prefer a C program (faster),
2716# so one script is as good as another.  But avoid the broken or
2717# incompatible versions:
2718# SysV /etc/install, /usr/sbin/install
2719# SunOS /usr/etc/install
2720# IRIX /sbin/install
2721# AIX /bin/install
2722# AmigaOS /C/install, which installs bootblocks on floppy discs
2723# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2724# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2725# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2726# OS/2's system install, which has a completely different semantic
2727# ./install, which can be erroneously created by make from ./install.sh.
2728echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2729echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2730if test -z "$INSTALL"; then
2731if test "${ac_cv_path_install+set}" = set; then
2732  echo $ECHO_N "(cached) $ECHO_C" >&6
2733else
2734  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735for as_dir in $PATH
2736do
2737  IFS=$as_save_IFS
2738  test -z "$as_dir" && as_dir=.
2739  # Account for people who put trailing slashes in PATH elements.
2740case $as_dir/ in
2741  ./ | .// | /cC/* | \
2742  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2743  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2744  /usr/ucb/* ) ;;
2745  *)
2746    # OSF1 and SCO ODT 3.0 have their own names for install.
2747    # Don't use installbsd from OSF since it installs stuff as root
2748    # by default.
2749    for ac_prog in ginstall scoinst install; do
2750      for ac_exec_ext in '' $ac_executable_extensions; do
2751	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2752	  if test $ac_prog = install &&
2753	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2754	    # AIX install.  It has an incompatible calling convention.
2755	    :
2756	  elif test $ac_prog = install &&
2757	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2758	    # program-specific install script used by HP pwplus--don't use.
2759	    :
2760	  else
2761	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2762	    break 3
2763	  fi
2764	fi
2765      done
2766    done
2767    ;;
2768esac
2769done
2770
2771
2772fi
2773  if test "${ac_cv_path_install+set}" = set; then
2774    INSTALL=$ac_cv_path_install
2775  else
2776    # As a last resort, use the slow shell script.  We don't cache a
2777    # path for INSTALL within a source directory, because that will
2778    # break other packages using the cache if that directory is
2779    # removed, or if the path is relative.
2780    INSTALL=$ac_install_sh
2781  fi
2782fi
2783echo "$as_me:$LINENO: result: $INSTALL" >&5
2784echo "${ECHO_T}$INSTALL" >&6
2785
2786# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2787# It thinks the first close brace ends the variable substitution.
2788test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2789
2790test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2791
2792test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2793
2794
2795# Checks for compilation model.
2796# Check whether --enable-largefile or --disable-largefile was given.
2797if test "${enable_largefile+set}" = set; then
2798  enableval="$enable_largefile"
2799
2800fi;
2801if test "$enable_largefile" != no; then
2802
2803  echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
2804echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
2805if test "${ac_cv_sys_largefile_CC+set}" = set; then
2806  echo $ECHO_N "(cached) $ECHO_C" >&6
2807else
2808  ac_cv_sys_largefile_CC=no
2809     if test "$GCC" != yes; then
2810       ac_save_CC=$CC
2811       while :; do
2812     	 # IRIX 6.2 and later do not support large files by default,
2813     	 # so use the C compiler's -n32 option if that helps.
2814	 cat >conftest.$ac_ext <<_ACEOF
2815/* confdefs.h.  */
2816_ACEOF
2817cat confdefs.h >>conftest.$ac_ext
2818cat >>conftest.$ac_ext <<_ACEOF
2819/* end confdefs.h.  */
2820#include <sys/types.h>
2821 /* Check that off_t can represent 2**63 - 1 correctly.
2822    We can't simply define LARGE_OFF_T to be 9223372036854775807,
2823    since some C++ compilers masquerading as C compilers
2824    incorrectly reject 9223372036854775807.  */
2825#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2826  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2827		       && LARGE_OFF_T % 2147483647 == 1)
2828		      ? 1 : -1];
2829int
2830main ()
2831{
2832
2833  ;
2834  return 0;
2835}
2836_ACEOF
2837     	 rm -f conftest.$ac_objext
2838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2839  (eval $ac_compile) 2>conftest.er1
2840  ac_status=$?
2841  grep -v '^ *+' conftest.er1 >conftest.err
2842  rm -f conftest.er1
2843  cat conftest.err >&5
2844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845  (exit $ac_status); } &&
2846	 { ac_try='test -z "$ac_c_werror_flag"
2847			 || test ! -s conftest.err'
2848  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849  (eval $ac_try) 2>&5
2850  ac_status=$?
2851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852  (exit $ac_status); }; } &&
2853	 { ac_try='test -s conftest.$ac_objext'
2854  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855  (eval $ac_try) 2>&5
2856  ac_status=$?
2857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858  (exit $ac_status); }; }; then
2859  break
2860else
2861  echo "$as_me: failed program was:" >&5
2862sed 's/^/| /' conftest.$ac_ext >&5
2863
2864fi
2865rm -f conftest.err conftest.$ac_objext
2866     	 CC="$CC -n32"
2867     	 rm -f conftest.$ac_objext
2868if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2869  (eval $ac_compile) 2>conftest.er1
2870  ac_status=$?
2871  grep -v '^ *+' conftest.er1 >conftest.err
2872  rm -f conftest.er1
2873  cat conftest.err >&5
2874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875  (exit $ac_status); } &&
2876	 { ac_try='test -z "$ac_c_werror_flag"
2877			 || test ! -s conftest.err'
2878  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2879  (eval $ac_try) 2>&5
2880  ac_status=$?
2881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882  (exit $ac_status); }; } &&
2883	 { ac_try='test -s conftest.$ac_objext'
2884  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2885  (eval $ac_try) 2>&5
2886  ac_status=$?
2887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888  (exit $ac_status); }; }; then
2889  ac_cv_sys_largefile_CC=' -n32'; break
2890else
2891  echo "$as_me: failed program was:" >&5
2892sed 's/^/| /' conftest.$ac_ext >&5
2893
2894fi
2895rm -f conftest.err conftest.$ac_objext
2896	 break
2897       done
2898       CC=$ac_save_CC
2899       rm -f conftest.$ac_ext
2900    fi
2901fi
2902echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
2903echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
2904  if test "$ac_cv_sys_largefile_CC" != no; then
2905    CC=$CC$ac_cv_sys_largefile_CC
2906  fi
2907
2908  echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
2909echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
2910if test "${ac_cv_sys_file_offset_bits+set}" = set; then
2911  echo $ECHO_N "(cached) $ECHO_C" >&6
2912else
2913  while :; do
2914  ac_cv_sys_file_offset_bits=no
2915  cat >conftest.$ac_ext <<_ACEOF
2916/* confdefs.h.  */
2917_ACEOF
2918cat confdefs.h >>conftest.$ac_ext
2919cat >>conftest.$ac_ext <<_ACEOF
2920/* end confdefs.h.  */
2921#include <sys/types.h>
2922 /* Check that off_t can represent 2**63 - 1 correctly.
2923    We can't simply define LARGE_OFF_T to be 9223372036854775807,
2924    since some C++ compilers masquerading as C compilers
2925    incorrectly reject 9223372036854775807.  */
2926#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2927  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2928		       && LARGE_OFF_T % 2147483647 == 1)
2929		      ? 1 : -1];
2930int
2931main ()
2932{
2933
2934  ;
2935  return 0;
2936}
2937_ACEOF
2938rm -f conftest.$ac_objext
2939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2940  (eval $ac_compile) 2>conftest.er1
2941  ac_status=$?
2942  grep -v '^ *+' conftest.er1 >conftest.err
2943  rm -f conftest.er1
2944  cat conftest.err >&5
2945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946  (exit $ac_status); } &&
2947	 { ac_try='test -z "$ac_c_werror_flag"
2948			 || test ! -s conftest.err'
2949  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2950  (eval $ac_try) 2>&5
2951  ac_status=$?
2952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953  (exit $ac_status); }; } &&
2954	 { ac_try='test -s conftest.$ac_objext'
2955  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2956  (eval $ac_try) 2>&5
2957  ac_status=$?
2958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959  (exit $ac_status); }; }; then
2960  break
2961else
2962  echo "$as_me: failed program was:" >&5
2963sed 's/^/| /' conftest.$ac_ext >&5
2964
2965fi
2966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2967  cat >conftest.$ac_ext <<_ACEOF
2968/* confdefs.h.  */
2969_ACEOF
2970cat confdefs.h >>conftest.$ac_ext
2971cat >>conftest.$ac_ext <<_ACEOF
2972/* end confdefs.h.  */
2973#define _FILE_OFFSET_BITS 64
2974#include <sys/types.h>
2975 /* Check that off_t can represent 2**63 - 1 correctly.
2976    We can't simply define LARGE_OFF_T to be 9223372036854775807,
2977    since some C++ compilers masquerading as C compilers
2978    incorrectly reject 9223372036854775807.  */
2979#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2980  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2981		       && LARGE_OFF_T % 2147483647 == 1)
2982		      ? 1 : -1];
2983int
2984main ()
2985{
2986
2987  ;
2988  return 0;
2989}
2990_ACEOF
2991rm -f conftest.$ac_objext
2992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2993  (eval $ac_compile) 2>conftest.er1
2994  ac_status=$?
2995  grep -v '^ *+' conftest.er1 >conftest.err
2996  rm -f conftest.er1
2997  cat conftest.err >&5
2998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999  (exit $ac_status); } &&
3000	 { ac_try='test -z "$ac_c_werror_flag"
3001			 || test ! -s conftest.err'
3002  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3003  (eval $ac_try) 2>&5
3004  ac_status=$?
3005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006  (exit $ac_status); }; } &&
3007	 { ac_try='test -s conftest.$ac_objext'
3008  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3009  (eval $ac_try) 2>&5
3010  ac_status=$?
3011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012  (exit $ac_status); }; }; then
3013  ac_cv_sys_file_offset_bits=64; break
3014else
3015  echo "$as_me: failed program was:" >&5
3016sed 's/^/| /' conftest.$ac_ext >&5
3017
3018fi
3019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3020  break
3021done
3022fi
3023echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3024echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3025if test "$ac_cv_sys_file_offset_bits" != no; then
3026
3027cat >>confdefs.h <<_ACEOF
3028#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3029_ACEOF
3030
3031fi
3032rm -f conftest*
3033  echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3034echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3035if test "${ac_cv_sys_large_files+set}" = set; then
3036  echo $ECHO_N "(cached) $ECHO_C" >&6
3037else
3038  while :; do
3039  ac_cv_sys_large_files=no
3040  cat >conftest.$ac_ext <<_ACEOF
3041/* confdefs.h.  */
3042_ACEOF
3043cat confdefs.h >>conftest.$ac_ext
3044cat >>conftest.$ac_ext <<_ACEOF
3045/* end confdefs.h.  */
3046#include <sys/types.h>
3047 /* Check that off_t can represent 2**63 - 1 correctly.
3048    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3049    since some C++ compilers masquerading as C compilers
3050    incorrectly reject 9223372036854775807.  */
3051#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3052  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3053		       && LARGE_OFF_T % 2147483647 == 1)
3054		      ? 1 : -1];
3055int
3056main ()
3057{
3058
3059  ;
3060  return 0;
3061}
3062_ACEOF
3063rm -f conftest.$ac_objext
3064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3065  (eval $ac_compile) 2>conftest.er1
3066  ac_status=$?
3067  grep -v '^ *+' conftest.er1 >conftest.err
3068  rm -f conftest.er1
3069  cat conftest.err >&5
3070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071  (exit $ac_status); } &&
3072	 { ac_try='test -z "$ac_c_werror_flag"
3073			 || test ! -s conftest.err'
3074  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3075  (eval $ac_try) 2>&5
3076  ac_status=$?
3077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078  (exit $ac_status); }; } &&
3079	 { ac_try='test -s conftest.$ac_objext'
3080  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3081  (eval $ac_try) 2>&5
3082  ac_status=$?
3083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084  (exit $ac_status); }; }; then
3085  break
3086else
3087  echo "$as_me: failed program was:" >&5
3088sed 's/^/| /' conftest.$ac_ext >&5
3089
3090fi
3091rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3092  cat >conftest.$ac_ext <<_ACEOF
3093/* confdefs.h.  */
3094_ACEOF
3095cat confdefs.h >>conftest.$ac_ext
3096cat >>conftest.$ac_ext <<_ACEOF
3097/* end confdefs.h.  */
3098#define _LARGE_FILES 1
3099#include <sys/types.h>
3100 /* Check that off_t can represent 2**63 - 1 correctly.
3101    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3102    since some C++ compilers masquerading as C compilers
3103    incorrectly reject 9223372036854775807.  */
3104#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3105  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3106		       && LARGE_OFF_T % 2147483647 == 1)
3107		      ? 1 : -1];
3108int
3109main ()
3110{
3111
3112  ;
3113  return 0;
3114}
3115_ACEOF
3116rm -f conftest.$ac_objext
3117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3118  (eval $ac_compile) 2>conftest.er1
3119  ac_status=$?
3120  grep -v '^ *+' conftest.er1 >conftest.err
3121  rm -f conftest.er1
3122  cat conftest.err >&5
3123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124  (exit $ac_status); } &&
3125	 { ac_try='test -z "$ac_c_werror_flag"
3126			 || test ! -s conftest.err'
3127  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3128  (eval $ac_try) 2>&5
3129  ac_status=$?
3130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131  (exit $ac_status); }; } &&
3132	 { ac_try='test -s conftest.$ac_objext'
3133  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3134  (eval $ac_try) 2>&5
3135  ac_status=$?
3136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137  (exit $ac_status); }; }; then
3138  ac_cv_sys_large_files=1; break
3139else
3140  echo "$as_me: failed program was:" >&5
3141sed 's/^/| /' conftest.$ac_ext >&5
3142
3143fi
3144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3145  break
3146done
3147fi
3148echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3149echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3150if test "$ac_cv_sys_large_files" != no; then
3151
3152cat >>confdefs.h <<_ACEOF
3153#define _LARGE_FILES $ac_cv_sys_large_files
3154_ACEOF
3155
3156fi
3157rm -f conftest*
3158fi
3159
3160
3161# Checks for general libraries.
3162echo "$as_me:$LINENO: checking for initscr in -lxcurses" >&5
3163echo $ECHO_N "checking for initscr in -lxcurses... $ECHO_C" >&6
3164if test "${ac_cv_lib_xcurses_initscr+set}" = set; then
3165  echo $ECHO_N "(cached) $ECHO_C" >&6
3166else
3167  ac_check_lib_save_LIBS=$LIBS
3168LIBS="-lxcurses  $LIBS"
3169cat >conftest.$ac_ext <<_ACEOF
3170/* confdefs.h.  */
3171_ACEOF
3172cat confdefs.h >>conftest.$ac_ext
3173cat >>conftest.$ac_ext <<_ACEOF
3174/* end confdefs.h.  */
3175
3176/* Override any gcc2 internal prototype to avoid an error.  */
3177#ifdef __cplusplus
3178extern "C"
3179#endif
3180/* We use char because int might match the return type of a gcc2
3181   builtin and then its argument prototype would still apply.  */
3182char initscr ();
3183int
3184main ()
3185{
3186initscr ();
3187  ;
3188  return 0;
3189}
3190_ACEOF
3191rm -f conftest.$ac_objext conftest$ac_exeext
3192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3193  (eval $ac_link) 2>conftest.er1
3194  ac_status=$?
3195  grep -v '^ *+' conftest.er1 >conftest.err
3196  rm -f conftest.er1
3197  cat conftest.err >&5
3198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199  (exit $ac_status); } &&
3200	 { ac_try='test -z "$ac_c_werror_flag"
3201			 || test ! -s conftest.err'
3202  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3203  (eval $ac_try) 2>&5
3204  ac_status=$?
3205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206  (exit $ac_status); }; } &&
3207	 { ac_try='test -s conftest$ac_exeext'
3208  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3209  (eval $ac_try) 2>&5
3210  ac_status=$?
3211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212  (exit $ac_status); }; }; then
3213  ac_cv_lib_xcurses_initscr=yes
3214else
3215  echo "$as_me: failed program was:" >&5
3216sed 's/^/| /' conftest.$ac_ext >&5
3217
3218ac_cv_lib_xcurses_initscr=no
3219fi
3220rm -f conftest.err conftest.$ac_objext \
3221      conftest$ac_exeext conftest.$ac_ext
3222LIBS=$ac_check_lib_save_LIBS
3223fi
3224echo "$as_me:$LINENO: result: $ac_cv_lib_xcurses_initscr" >&5
3225echo "${ECHO_T}$ac_cv_lib_xcurses_initscr" >&6
3226if test $ac_cv_lib_xcurses_initscr = yes; then
3227  have_xcurses=yes
3228else
3229  have_xcurses=no
3230fi
3231
3232echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
3233echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
3234if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
3235  echo $ECHO_N "(cached) $ECHO_C" >&6
3236else
3237  ac_check_lib_save_LIBS=$LIBS
3238LIBS="-lncurses  $LIBS"
3239cat >conftest.$ac_ext <<_ACEOF
3240/* confdefs.h.  */
3241_ACEOF
3242cat confdefs.h >>conftest.$ac_ext
3243cat >>conftest.$ac_ext <<_ACEOF
3244/* end confdefs.h.  */
3245
3246/* Override any gcc2 internal prototype to avoid an error.  */
3247#ifdef __cplusplus
3248extern "C"
3249#endif
3250/* We use char because int might match the return type of a gcc2
3251   builtin and then its argument prototype would still apply.  */
3252char initscr ();
3253int
3254main ()
3255{
3256initscr ();
3257  ;
3258  return 0;
3259}
3260_ACEOF
3261rm -f conftest.$ac_objext conftest$ac_exeext
3262if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3263  (eval $ac_link) 2>conftest.er1
3264  ac_status=$?
3265  grep -v '^ *+' conftest.er1 >conftest.err
3266  rm -f conftest.er1
3267  cat conftest.err >&5
3268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269  (exit $ac_status); } &&
3270	 { ac_try='test -z "$ac_c_werror_flag"
3271			 || test ! -s conftest.err'
3272  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3273  (eval $ac_try) 2>&5
3274  ac_status=$?
3275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276  (exit $ac_status); }; } &&
3277	 { ac_try='test -s conftest$ac_exeext'
3278  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3279  (eval $ac_try) 2>&5
3280  ac_status=$?
3281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282  (exit $ac_status); }; }; then
3283  ac_cv_lib_ncurses_initscr=yes
3284else
3285  echo "$as_me: failed program was:" >&5
3286sed 's/^/| /' conftest.$ac_ext >&5
3287
3288ac_cv_lib_ncurses_initscr=no
3289fi
3290rm -f conftest.err conftest.$ac_objext \
3291      conftest$ac_exeext conftest.$ac_ext
3292LIBS=$ac_check_lib_save_LIBS
3293fi
3294echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
3295echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
3296if test $ac_cv_lib_ncurses_initscr = yes; then
3297  have_ncurses=yes
3298else
3299  have_ncurses=no
3300fi
3301
3302echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
3303echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6
3304if test "${ac_cv_lib_curses_initscr+set}" = set; then
3305  echo $ECHO_N "(cached) $ECHO_C" >&6
3306else
3307  ac_check_lib_save_LIBS=$LIBS
3308LIBS="-lcurses  $LIBS"
3309cat >conftest.$ac_ext <<_ACEOF
3310/* confdefs.h.  */
3311_ACEOF
3312cat confdefs.h >>conftest.$ac_ext
3313cat >>conftest.$ac_ext <<_ACEOF
3314/* end confdefs.h.  */
3315
3316/* Override any gcc2 internal prototype to avoid an error.  */
3317#ifdef __cplusplus
3318extern "C"
3319#endif
3320/* We use char because int might match the return type of a gcc2
3321   builtin and then its argument prototype would still apply.  */
3322char initscr ();
3323int
3324main ()
3325{
3326initscr ();
3327  ;
3328  return 0;
3329}
3330_ACEOF
3331rm -f conftest.$ac_objext conftest$ac_exeext
3332if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3333  (eval $ac_link) 2>conftest.er1
3334  ac_status=$?
3335  grep -v '^ *+' conftest.er1 >conftest.err
3336  rm -f conftest.er1
3337  cat conftest.err >&5
3338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339  (exit $ac_status); } &&
3340	 { ac_try='test -z "$ac_c_werror_flag"
3341			 || test ! -s conftest.err'
3342  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3343  (eval $ac_try) 2>&5
3344  ac_status=$?
3345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346  (exit $ac_status); }; } &&
3347	 { ac_try='test -s conftest$ac_exeext'
3348  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3349  (eval $ac_try) 2>&5
3350  ac_status=$?
3351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352  (exit $ac_status); }; }; then
3353  ac_cv_lib_curses_initscr=yes
3354else
3355  echo "$as_me: failed program was:" >&5
3356sed 's/^/| /' conftest.$ac_ext >&5
3357
3358ac_cv_lib_curses_initscr=no
3359fi
3360rm -f conftest.err conftest.$ac_objext \
3361      conftest$ac_exeext conftest.$ac_ext
3362LIBS=$ac_check_lib_save_LIBS
3363fi
3364echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
3365echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6
3366if test $ac_cv_lib_curses_initscr = yes; then
3367  have_curses=yes
3368else
3369  have_curses=no
3370fi
3371
3372echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
3373echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
3374if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
3375  echo $ECHO_N "(cached) $ECHO_C" >&6
3376else
3377  ac_check_lib_save_LIBS=$LIBS
3378LIBS="-ltermcap  $LIBS"
3379cat >conftest.$ac_ext <<_ACEOF
3380/* confdefs.h.  */
3381_ACEOF
3382cat confdefs.h >>conftest.$ac_ext
3383cat >>conftest.$ac_ext <<_ACEOF
3384/* end confdefs.h.  */
3385
3386/* Override any gcc2 internal prototype to avoid an error.  */
3387#ifdef __cplusplus
3388extern "C"
3389#endif
3390/* We use char because int might match the return type of a gcc2
3391   builtin and then its argument prototype would still apply.  */
3392char tgetent ();
3393int
3394main ()
3395{
3396tgetent ();
3397  ;
3398  return 0;
3399}
3400_ACEOF
3401rm -f conftest.$ac_objext conftest$ac_exeext
3402if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3403  (eval $ac_link) 2>conftest.er1
3404  ac_status=$?
3405  grep -v '^ *+' conftest.er1 >conftest.err
3406  rm -f conftest.er1
3407  cat conftest.err >&5
3408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409  (exit $ac_status); } &&
3410	 { ac_try='test -z "$ac_c_werror_flag"
3411			 || test ! -s conftest.err'
3412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3413  (eval $ac_try) 2>&5
3414  ac_status=$?
3415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416  (exit $ac_status); }; } &&
3417	 { ac_try='test -s conftest$ac_exeext'
3418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3419  (eval $ac_try) 2>&5
3420  ac_status=$?
3421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422  (exit $ac_status); }; }; then
3423  ac_cv_lib_termcap_tgetent=yes
3424else
3425  echo "$as_me: failed program was:" >&5
3426sed 's/^/| /' conftest.$ac_ext >&5
3427
3428ac_cv_lib_termcap_tgetent=no
3429fi
3430rm -f conftest.err conftest.$ac_objext \
3431      conftest$ac_exeext conftest.$ac_ext
3432LIBS=$ac_check_lib_save_LIBS
3433fi
3434echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
3435echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
3436if test $ac_cv_lib_termcap_tgetent = yes; then
3437  have_termcap=yes
3438else
3439  have_termcap=no
3440fi
3441
3442echo "$as_me:$LINENO: checking for tgetent in -ltermlib" >&5
3443echo $ECHO_N "checking for tgetent in -ltermlib... $ECHO_C" >&6
3444if test "${ac_cv_lib_termlib_tgetent+set}" = set; then
3445  echo $ECHO_N "(cached) $ECHO_C" >&6
3446else
3447  ac_check_lib_save_LIBS=$LIBS
3448LIBS="-ltermlib  $LIBS"
3449cat >conftest.$ac_ext <<_ACEOF
3450/* confdefs.h.  */
3451_ACEOF
3452cat confdefs.h >>conftest.$ac_ext
3453cat >>conftest.$ac_ext <<_ACEOF
3454/* end confdefs.h.  */
3455
3456/* Override any gcc2 internal prototype to avoid an error.  */
3457#ifdef __cplusplus
3458extern "C"
3459#endif
3460/* We use char because int might match the return type of a gcc2
3461   builtin and then its argument prototype would still apply.  */
3462char tgetent ();
3463int
3464main ()
3465{
3466tgetent ();
3467  ;
3468  return 0;
3469}
3470_ACEOF
3471rm -f conftest.$ac_objext conftest$ac_exeext
3472if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3473  (eval $ac_link) 2>conftest.er1
3474  ac_status=$?
3475  grep -v '^ *+' conftest.er1 >conftest.err
3476  rm -f conftest.er1
3477  cat conftest.err >&5
3478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479  (exit $ac_status); } &&
3480	 { ac_try='test -z "$ac_c_werror_flag"
3481			 || test ! -s conftest.err'
3482  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3483  (eval $ac_try) 2>&5
3484  ac_status=$?
3485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486  (exit $ac_status); }; } &&
3487	 { ac_try='test -s conftest$ac_exeext'
3488  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3489  (eval $ac_try) 2>&5
3490  ac_status=$?
3491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492  (exit $ac_status); }; }; then
3493  ac_cv_lib_termlib_tgetent=yes
3494else
3495  echo "$as_me: failed program was:" >&5
3496sed 's/^/| /' conftest.$ac_ext >&5
3497
3498ac_cv_lib_termlib_tgetent=no
3499fi
3500rm -f conftest.err conftest.$ac_objext \
3501      conftest$ac_exeext conftest.$ac_ext
3502LIBS=$ac_check_lib_save_LIBS
3503fi
3504echo "$as_me:$LINENO: result: $ac_cv_lib_termlib_tgetent" >&5
3505echo "${ECHO_T}$ac_cv_lib_termlib_tgetent" >&6
3506if test $ac_cv_lib_termlib_tgetent = yes; then
3507  have_termlib=yes
3508else
3509  have_termlib=no
3510fi
3511
3512# Regular expressions (regcmp) are in -lgen on Solaris 2,
3513# and in -lintl on SCO Unix.
3514
3515echo "$as_me:$LINENO: checking for regcmp in -lgen" >&5
3516echo $ECHO_N "checking for regcmp in -lgen... $ECHO_C" >&6
3517if test "${ac_cv_lib_gen_regcmp+set}" = set; then
3518  echo $ECHO_N "(cached) $ECHO_C" >&6
3519else
3520  ac_check_lib_save_LIBS=$LIBS
3521LIBS="-lgen  $LIBS"
3522cat >conftest.$ac_ext <<_ACEOF
3523/* confdefs.h.  */
3524_ACEOF
3525cat confdefs.h >>conftest.$ac_ext
3526cat >>conftest.$ac_ext <<_ACEOF
3527/* end confdefs.h.  */
3528
3529/* Override any gcc2 internal prototype to avoid an error.  */
3530#ifdef __cplusplus
3531extern "C"
3532#endif
3533/* We use char because int might match the return type of a gcc2
3534   builtin and then its argument prototype would still apply.  */
3535char regcmp ();
3536int
3537main ()
3538{
3539regcmp ();
3540  ;
3541  return 0;
3542}
3543_ACEOF
3544rm -f conftest.$ac_objext conftest$ac_exeext
3545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3546  (eval $ac_link) 2>conftest.er1
3547  ac_status=$?
3548  grep -v '^ *+' conftest.er1 >conftest.err
3549  rm -f conftest.er1
3550  cat conftest.err >&5
3551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552  (exit $ac_status); } &&
3553	 { ac_try='test -z "$ac_c_werror_flag"
3554			 || test ! -s conftest.err'
3555  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3556  (eval $ac_try) 2>&5
3557  ac_status=$?
3558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559  (exit $ac_status); }; } &&
3560	 { ac_try='test -s conftest$ac_exeext'
3561  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3562  (eval $ac_try) 2>&5
3563  ac_status=$?
3564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565  (exit $ac_status); }; }; then
3566  ac_cv_lib_gen_regcmp=yes
3567else
3568  echo "$as_me: failed program was:" >&5
3569sed 's/^/| /' conftest.$ac_ext >&5
3570
3571ac_cv_lib_gen_regcmp=no
3572fi
3573rm -f conftest.err conftest.$ac_objext \
3574      conftest$ac_exeext conftest.$ac_ext
3575LIBS=$ac_check_lib_save_LIBS
3576fi
3577echo "$as_me:$LINENO: result: $ac_cv_lib_gen_regcmp" >&5
3578echo "${ECHO_T}$ac_cv_lib_gen_regcmp" >&6
3579if test $ac_cv_lib_gen_regcmp = yes; then
3580  cat >>confdefs.h <<_ACEOF
3581#define HAVE_LIBGEN 1
3582_ACEOF
3583
3584  LIBS="-lgen $LIBS"
3585
3586fi
3587
3588
3589echo "$as_me:$LINENO: checking for regcmp in -lintl" >&5
3590echo $ECHO_N "checking for regcmp in -lintl... $ECHO_C" >&6
3591if test "${ac_cv_lib_intl_regcmp+set}" = set; then
3592  echo $ECHO_N "(cached) $ECHO_C" >&6
3593else
3594  ac_check_lib_save_LIBS=$LIBS
3595LIBS="-lintl  $LIBS"
3596cat >conftest.$ac_ext <<_ACEOF
3597/* confdefs.h.  */
3598_ACEOF
3599cat confdefs.h >>conftest.$ac_ext
3600cat >>conftest.$ac_ext <<_ACEOF
3601/* end confdefs.h.  */
3602
3603/* Override any gcc2 internal prototype to avoid an error.  */
3604#ifdef __cplusplus
3605extern "C"
3606#endif
3607/* We use char because int might match the return type of a gcc2
3608   builtin and then its argument prototype would still apply.  */
3609char regcmp ();
3610int
3611main ()
3612{
3613regcmp ();
3614  ;
3615  return 0;
3616}
3617_ACEOF
3618rm -f conftest.$ac_objext conftest$ac_exeext
3619if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3620  (eval $ac_link) 2>conftest.er1
3621  ac_status=$?
3622  grep -v '^ *+' conftest.er1 >conftest.err
3623  rm -f conftest.er1
3624  cat conftest.err >&5
3625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626  (exit $ac_status); } &&
3627	 { ac_try='test -z "$ac_c_werror_flag"
3628			 || test ! -s conftest.err'
3629  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3630  (eval $ac_try) 2>&5
3631  ac_status=$?
3632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633  (exit $ac_status); }; } &&
3634	 { ac_try='test -s conftest$ac_exeext'
3635  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3636  (eval $ac_try) 2>&5
3637  ac_status=$?
3638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639  (exit $ac_status); }; }; then
3640  ac_cv_lib_intl_regcmp=yes
3641else
3642  echo "$as_me: failed program was:" >&5
3643sed 's/^/| /' conftest.$ac_ext >&5
3644
3645ac_cv_lib_intl_regcmp=no
3646fi
3647rm -f conftest.err conftest.$ac_objext \
3648      conftest$ac_exeext conftest.$ac_ext
3649LIBS=$ac_check_lib_save_LIBS
3650fi
3651echo "$as_me:$LINENO: result: $ac_cv_lib_intl_regcmp" >&5
3652echo "${ECHO_T}$ac_cv_lib_intl_regcmp" >&6
3653if test $ac_cv_lib_intl_regcmp = yes; then
3654  cat >>confdefs.h <<_ACEOF
3655#define HAVE_LIBINTL 1
3656_ACEOF
3657
3658  LIBS="-lintl $LIBS"
3659
3660fi
3661
3662
3663echo "$as_me:$LINENO: checking for regcmp in -lPW" >&5
3664echo $ECHO_N "checking for regcmp in -lPW... $ECHO_C" >&6
3665if test "${ac_cv_lib_PW_regcmp+set}" = set; then
3666  echo $ECHO_N "(cached) $ECHO_C" >&6
3667else
3668  ac_check_lib_save_LIBS=$LIBS
3669LIBS="-lPW  $LIBS"
3670cat >conftest.$ac_ext <<_ACEOF
3671/* confdefs.h.  */
3672_ACEOF
3673cat confdefs.h >>conftest.$ac_ext
3674cat >>conftest.$ac_ext <<_ACEOF
3675/* end confdefs.h.  */
3676
3677/* Override any gcc2 internal prototype to avoid an error.  */
3678#ifdef __cplusplus
3679extern "C"
3680#endif
3681/* We use char because int might match the return type of a gcc2
3682   builtin and then its argument prototype would still apply.  */
3683char regcmp ();
3684int
3685main ()
3686{
3687regcmp ();
3688  ;
3689  return 0;
3690}
3691_ACEOF
3692rm -f conftest.$ac_objext conftest$ac_exeext
3693if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3694  (eval $ac_link) 2>conftest.er1
3695  ac_status=$?
3696  grep -v '^ *+' conftest.er1 >conftest.err
3697  rm -f conftest.er1
3698  cat conftest.err >&5
3699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700  (exit $ac_status); } &&
3701	 { ac_try='test -z "$ac_c_werror_flag"
3702			 || test ! -s conftest.err'
3703  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3704  (eval $ac_try) 2>&5
3705  ac_status=$?
3706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707  (exit $ac_status); }; } &&
3708	 { ac_try='test -s conftest$ac_exeext'
3709  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3710  (eval $ac_try) 2>&5
3711  ac_status=$?
3712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713  (exit $ac_status); }; }; then
3714  ac_cv_lib_PW_regcmp=yes
3715else
3716  echo "$as_me: failed program was:" >&5
3717sed 's/^/| /' conftest.$ac_ext >&5
3718
3719ac_cv_lib_PW_regcmp=no
3720fi
3721rm -f conftest.err conftest.$ac_objext \
3722      conftest$ac_exeext conftest.$ac_ext
3723LIBS=$ac_check_lib_save_LIBS
3724fi
3725echo "$as_me:$LINENO: result: $ac_cv_lib_PW_regcmp" >&5
3726echo "${ECHO_T}$ac_cv_lib_PW_regcmp" >&6
3727if test $ac_cv_lib_PW_regcmp = yes; then
3728  cat >>confdefs.h <<_ACEOF
3729#define HAVE_LIBPW 1
3730_ACEOF
3731
3732  LIBS="-lPW $LIBS"
3733
3734fi
3735
3736
3737# Checks for terminal libraries
3738echo "$as_me:$LINENO: checking for working terminal libraries" >&5
3739echo $ECHO_N "checking for working terminal libraries... $ECHO_C" >&6
3740TERMLIBS=
3741
3742# Check for systems where curses is broken.
3743curses_broken=0
3744if test x`uname -s` = "xHP-UX" >/dev/null 2>&1; then
3745if test x`uname -r` = "xB.11.00" >/dev/null 2>&1; then
3746   curses_broken=1
3747fi
3748if test x`uname -r` = "xB.11.11" >/dev/null 2>&1; then
3749   curses_broken=1
3750fi
3751fi
3752
3753if test $curses_broken = 0; then
3754# -- Try xcurses.
3755if test "x$TERMLIBS" = x; then
3756  if test $have_xcurses = yes; then
3757    TERMLIBS="-lxcurses"
3758    SAVE_LIBS=$LIBS
3759    LIBS="$LIBS $TERMLIBS"
3760    cat >conftest.$ac_ext <<_ACEOF
3761/* confdefs.h.  */
3762_ACEOF
3763cat confdefs.h >>conftest.$ac_ext
3764cat >>conftest.$ac_ext <<_ACEOF
3765/* end confdefs.h.  */
3766
3767int
3768main ()
3769{
3770tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
3771  ;
3772  return 0;
3773}
3774_ACEOF
3775rm -f conftest.$ac_objext conftest$ac_exeext
3776if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3777  (eval $ac_link) 2>conftest.er1
3778  ac_status=$?
3779  grep -v '^ *+' conftest.er1 >conftest.err
3780  rm -f conftest.er1
3781  cat conftest.err >&5
3782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783  (exit $ac_status); } &&
3784	 { ac_try='test -z "$ac_c_werror_flag"
3785			 || test ! -s conftest.err'
3786  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3787  (eval $ac_try) 2>&5
3788  ac_status=$?
3789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790  (exit $ac_status); }; } &&
3791	 { ac_try='test -s conftest$ac_exeext'
3792  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3793  (eval $ac_try) 2>&5
3794  ac_status=$?
3795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796  (exit $ac_status); }; }; then
3797  termok=yes
3798else
3799  echo "$as_me: failed program was:" >&5
3800sed 's/^/| /' conftest.$ac_ext >&5
3801
3802termok=no
3803fi
3804rm -f conftest.err conftest.$ac_objext \
3805      conftest$ac_exeext conftest.$ac_ext
3806    LIBS=$SAVE_LIBS
3807    if test $termok = no; then TERMLIBS=""; fi
3808  fi
3809fi
3810
3811# -- Try ncurses.
3812if test "x$TERMLIBS" = x; then
3813  if test $have_ncurses = yes; then
3814    TERMLIBS="-lncurses"
3815    SAVE_LIBS=$LIBS
3816    LIBS="$LIBS $TERMLIBS"
3817    cat >conftest.$ac_ext <<_ACEOF
3818/* confdefs.h.  */
3819_ACEOF
3820cat confdefs.h >>conftest.$ac_ext
3821cat >>conftest.$ac_ext <<_ACEOF
3822/* end confdefs.h.  */
3823
3824int
3825main ()
3826{
3827tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
3828  ;
3829  return 0;
3830}
3831_ACEOF
3832rm -f conftest.$ac_objext conftest$ac_exeext
3833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3834  (eval $ac_link) 2>conftest.er1
3835  ac_status=$?
3836  grep -v '^ *+' conftest.er1 >conftest.err
3837  rm -f conftest.er1
3838  cat conftest.err >&5
3839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840  (exit $ac_status); } &&
3841	 { ac_try='test -z "$ac_c_werror_flag"
3842			 || test ! -s conftest.err'
3843  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3844  (eval $ac_try) 2>&5
3845  ac_status=$?
3846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847  (exit $ac_status); }; } &&
3848	 { ac_try='test -s conftest$ac_exeext'
3849  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3850  (eval $ac_try) 2>&5
3851  ac_status=$?
3852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853  (exit $ac_status); }; }; then
3854  termok=yes
3855else
3856  echo "$as_me: failed program was:" >&5
3857sed 's/^/| /' conftest.$ac_ext >&5
3858
3859termok=no
3860fi
3861rm -f conftest.err conftest.$ac_objext \
3862      conftest$ac_exeext conftest.$ac_ext
3863    LIBS=$SAVE_LIBS
3864    if test $termok = no; then TERMLIBS=""; fi
3865  fi
3866fi
3867
3868# -- Try curses.
3869if test "x$TERMLIBS" = x; then
3870  if test $have_curses = yes; then
3871    TERMLIBS="-lcurses"
3872    SAVE_LIBS=$LIBS
3873    LIBS="$LIBS $TERMLIBS"
3874    cat >conftest.$ac_ext <<_ACEOF
3875/* confdefs.h.  */
3876_ACEOF
3877cat confdefs.h >>conftest.$ac_ext
3878cat >>conftest.$ac_ext <<_ACEOF
3879/* end confdefs.h.  */
3880
3881int
3882main ()
3883{
3884tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
3885  ;
3886  return 0;
3887}
3888_ACEOF
3889rm -f conftest.$ac_objext conftest$ac_exeext
3890if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3891  (eval $ac_link) 2>conftest.er1
3892  ac_status=$?
3893  grep -v '^ *+' conftest.er1 >conftest.err
3894  rm -f conftest.er1
3895  cat conftest.err >&5
3896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897  (exit $ac_status); } &&
3898	 { ac_try='test -z "$ac_c_werror_flag"
3899			 || test ! -s conftest.err'
3900  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3901  (eval $ac_try) 2>&5
3902  ac_status=$?
3903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904  (exit $ac_status); }; } &&
3905	 { ac_try='test -s conftest$ac_exeext'
3906  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3907  (eval $ac_try) 2>&5
3908  ac_status=$?
3909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910  (exit $ac_status); }; }; then
3911  termok=yes
3912else
3913  echo "$as_me: failed program was:" >&5
3914sed 's/^/| /' conftest.$ac_ext >&5
3915
3916termok=no
3917fi
3918rm -f conftest.err conftest.$ac_objext \
3919      conftest$ac_exeext conftest.$ac_ext
3920    LIBS=$SAVE_LIBS
3921    if test $termok = no; then TERMLIBS=""; fi
3922  fi
3923fi
3924
3925# -- Try curses & termcap.
3926if test "x$TERMLIBS" = x; then
3927  if test $have_curses = yes; then
3928  if test $have_termcap = yes; then
3929    TERMLIBS="-lcurses -ltermcap"
3930    SAVE_LIBS=$LIBS
3931    LIBS="$LIBS $TERMLIBS"
3932    cat >conftest.$ac_ext <<_ACEOF
3933/* confdefs.h.  */
3934_ACEOF
3935cat confdefs.h >>conftest.$ac_ext
3936cat >>conftest.$ac_ext <<_ACEOF
3937/* end confdefs.h.  */
3938
3939int
3940main ()
3941{
3942tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
3943  ;
3944  return 0;
3945}
3946_ACEOF
3947rm -f conftest.$ac_objext conftest$ac_exeext
3948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3949  (eval $ac_link) 2>conftest.er1
3950  ac_status=$?
3951  grep -v '^ *+' conftest.er1 >conftest.err
3952  rm -f conftest.er1
3953  cat conftest.err >&5
3954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955  (exit $ac_status); } &&
3956	 { ac_try='test -z "$ac_c_werror_flag"
3957			 || test ! -s conftest.err'
3958  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3959  (eval $ac_try) 2>&5
3960  ac_status=$?
3961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962  (exit $ac_status); }; } &&
3963	 { ac_try='test -s conftest$ac_exeext'
3964  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3965  (eval $ac_try) 2>&5
3966  ac_status=$?
3967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968  (exit $ac_status); }; }; then
3969  termok=yes
3970else
3971  echo "$as_me: failed program was:" >&5
3972sed 's/^/| /' conftest.$ac_ext >&5
3973
3974termok=no
3975fi
3976rm -f conftest.err conftest.$ac_objext \
3977      conftest$ac_exeext conftest.$ac_ext
3978    LIBS=$SAVE_LIBS
3979    if test $termok = no; then TERMLIBS=""; fi
3980  fi
3981  fi
3982fi
3983fi
3984
3985# -- Try termcap.
3986if test "x$TERMLIBS" = x; then
3987  if test $have_termcap = yes; then
3988    TERMLIBS="-ltermcap"
3989    SAVE_LIBS=$LIBS
3990    LIBS="$LIBS $TERMLIBS"
3991    cat >conftest.$ac_ext <<_ACEOF
3992/* confdefs.h.  */
3993_ACEOF
3994cat confdefs.h >>conftest.$ac_ext
3995cat >>conftest.$ac_ext <<_ACEOF
3996/* end confdefs.h.  */
3997
3998int
3999main ()
4000{
4001tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4002  ;
4003  return 0;
4004}
4005_ACEOF
4006rm -f conftest.$ac_objext conftest$ac_exeext
4007if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4008  (eval $ac_link) 2>conftest.er1
4009  ac_status=$?
4010  grep -v '^ *+' conftest.er1 >conftest.err
4011  rm -f conftest.er1
4012  cat conftest.err >&5
4013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014  (exit $ac_status); } &&
4015	 { ac_try='test -z "$ac_c_werror_flag"
4016			 || test ! -s conftest.err'
4017  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4018  (eval $ac_try) 2>&5
4019  ac_status=$?
4020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021  (exit $ac_status); }; } &&
4022	 { ac_try='test -s conftest$ac_exeext'
4023  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4024  (eval $ac_try) 2>&5
4025  ac_status=$?
4026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027  (exit $ac_status); }; }; then
4028  termok=yes
4029else
4030  echo "$as_me: failed program was:" >&5
4031sed 's/^/| /' conftest.$ac_ext >&5
4032
4033termok=no
4034fi
4035rm -f conftest.err conftest.$ac_objext \
4036      conftest$ac_exeext conftest.$ac_ext
4037    LIBS=$SAVE_LIBS
4038    if test $termok = no; then TERMLIBS=""; fi
4039  fi
4040fi
4041
4042# -- Try termlib.
4043if test "x$TERMLIBS" = x; then
4044  if test $have_termlib = yes; then
4045    TERMLIBS="-lcurses -ltermlib"
4046    SAVE_LIBS=$LIBS
4047    LIBS="$LIBS $TERMLIBS"
4048    cat >conftest.$ac_ext <<_ACEOF
4049/* confdefs.h.  */
4050_ACEOF
4051cat confdefs.h >>conftest.$ac_ext
4052cat >>conftest.$ac_ext <<_ACEOF
4053/* end confdefs.h.  */
4054
4055int
4056main ()
4057{
4058tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
4059  ;
4060  return 0;
4061}
4062_ACEOF
4063rm -f conftest.$ac_objext conftest$ac_exeext
4064if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4065  (eval $ac_link) 2>conftest.er1
4066  ac_status=$?
4067  grep -v '^ *+' conftest.er1 >conftest.err
4068  rm -f conftest.er1
4069  cat conftest.err >&5
4070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071  (exit $ac_status); } &&
4072	 { ac_try='test -z "$ac_c_werror_flag"
4073			 || test ! -s conftest.err'
4074  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4075  (eval $ac_try) 2>&5
4076  ac_status=$?
4077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078  (exit $ac_status); }; } &&
4079	 { ac_try='test -s conftest$ac_exeext'
4080  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4081  (eval $ac_try) 2>&5
4082  ac_status=$?
4083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084  (exit $ac_status); }; }; then
4085  termok=yes
4086else
4087  echo "$as_me: failed program was:" >&5
4088sed 's/^/| /' conftest.$ac_ext >&5
4089
4090termok=no
4091fi
4092rm -f conftest.err conftest.$ac_objext \
4093      conftest$ac_exeext conftest.$ac_ext
4094    LIBS=$SAVE_LIBS
4095    if test $termok = no; then TERMLIBS=""; fi
4096  fi
4097fi
4098
4099if test "x$TERMLIBS" = x; then
4100  echo "$as_me:$LINENO: result: Cannot find terminal libraries - configure failed" >&5
4101echo "${ECHO_T}Cannot find terminal libraries - configure failed" >&6
4102  exit 1
4103fi
4104echo "$as_me:$LINENO: result: using $TERMLIBS" >&5
4105echo "${ECHO_T}using $TERMLIBS" >&6
4106LIBS="$LIBS $TERMLIBS"
4107
4108# Checks for header files.
4109echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4110echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4111if test "${ac_cv_header_stdc+set}" = set; then
4112  echo $ECHO_N "(cached) $ECHO_C" >&6
4113else
4114  cat >conftest.$ac_ext <<_ACEOF
4115/* confdefs.h.  */
4116_ACEOF
4117cat confdefs.h >>conftest.$ac_ext
4118cat >>conftest.$ac_ext <<_ACEOF
4119/* end confdefs.h.  */
4120#include <stdlib.h>
4121#include <stdarg.h>
4122#include <string.h>
4123#include <float.h>
4124
4125int
4126main ()
4127{
4128
4129  ;
4130  return 0;
4131}
4132_ACEOF
4133rm -f conftest.$ac_objext
4134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4135  (eval $ac_compile) 2>conftest.er1
4136  ac_status=$?
4137  grep -v '^ *+' conftest.er1 >conftest.err
4138  rm -f conftest.er1
4139  cat conftest.err >&5
4140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141  (exit $ac_status); } &&
4142	 { ac_try='test -z "$ac_c_werror_flag"
4143			 || test ! -s conftest.err'
4144  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4145  (eval $ac_try) 2>&5
4146  ac_status=$?
4147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148  (exit $ac_status); }; } &&
4149	 { ac_try='test -s conftest.$ac_objext'
4150  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4151  (eval $ac_try) 2>&5
4152  ac_status=$?
4153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154  (exit $ac_status); }; }; then
4155  ac_cv_header_stdc=yes
4156else
4157  echo "$as_me: failed program was:" >&5
4158sed 's/^/| /' conftest.$ac_ext >&5
4159
4160ac_cv_header_stdc=no
4161fi
4162rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4163
4164if test $ac_cv_header_stdc = yes; then
4165  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4166  cat >conftest.$ac_ext <<_ACEOF
4167/* confdefs.h.  */
4168_ACEOF
4169cat confdefs.h >>conftest.$ac_ext
4170cat >>conftest.$ac_ext <<_ACEOF
4171/* end confdefs.h.  */
4172#include <string.h>
4173
4174_ACEOF
4175if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4176  $EGREP "memchr" >/dev/null 2>&1; then
4177  :
4178else
4179  ac_cv_header_stdc=no
4180fi
4181rm -f conftest*
4182
4183fi
4184
4185if test $ac_cv_header_stdc = yes; then
4186  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4187  cat >conftest.$ac_ext <<_ACEOF
4188/* confdefs.h.  */
4189_ACEOF
4190cat confdefs.h >>conftest.$ac_ext
4191cat >>conftest.$ac_ext <<_ACEOF
4192/* end confdefs.h.  */
4193#include <stdlib.h>
4194
4195_ACEOF
4196if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4197  $EGREP "free" >/dev/null 2>&1; then
4198  :
4199else
4200  ac_cv_header_stdc=no
4201fi
4202rm -f conftest*
4203
4204fi
4205
4206if test $ac_cv_header_stdc = yes; then
4207  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4208  if test "$cross_compiling" = yes; then
4209  :
4210else
4211  cat >conftest.$ac_ext <<_ACEOF
4212/* confdefs.h.  */
4213_ACEOF
4214cat confdefs.h >>conftest.$ac_ext
4215cat >>conftest.$ac_ext <<_ACEOF
4216/* end confdefs.h.  */
4217#include <ctype.h>
4218#if ((' ' & 0x0FF) == 0x020)
4219# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4220# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4221#else
4222# define ISLOWER(c) \
4223		   (('a' <= (c) && (c) <= 'i') \
4224		     || ('j' <= (c) && (c) <= 'r') \
4225		     || ('s' <= (c) && (c) <= 'z'))
4226# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4227#endif
4228
4229#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4230int
4231main ()
4232{
4233  int i;
4234  for (i = 0; i < 256; i++)
4235    if (XOR (islower (i), ISLOWER (i))
4236	|| toupper (i) != TOUPPER (i))
4237      exit(2);
4238  exit (0);
4239}
4240_ACEOF
4241rm -f conftest$ac_exeext
4242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4243  (eval $ac_link) 2>&5
4244  ac_status=$?
4245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4247  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4248  (eval $ac_try) 2>&5
4249  ac_status=$?
4250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251  (exit $ac_status); }; }; then
4252  :
4253else
4254  echo "$as_me: program exited with status $ac_status" >&5
4255echo "$as_me: failed program was:" >&5
4256sed 's/^/| /' conftest.$ac_ext >&5
4257
4258( exit $ac_status )
4259ac_cv_header_stdc=no
4260fi
4261rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4262fi
4263fi
4264fi
4265echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4266echo "${ECHO_T}$ac_cv_header_stdc" >&6
4267if test $ac_cv_header_stdc = yes; then
4268
4269cat >>confdefs.h <<\_ACEOF
4270#define STDC_HEADERS 1
4271_ACEOF
4272
4273fi
4274
4275# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4286		  inttypes.h stdint.h unistd.h
4287do
4288as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4289echo "$as_me:$LINENO: checking for $ac_header" >&5
4290echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4291if eval "test \"\${$as_ac_Header+set}\" = set"; then
4292  echo $ECHO_N "(cached) $ECHO_C" >&6
4293else
4294  cat >conftest.$ac_ext <<_ACEOF
4295/* confdefs.h.  */
4296_ACEOF
4297cat confdefs.h >>conftest.$ac_ext
4298cat >>conftest.$ac_ext <<_ACEOF
4299/* end confdefs.h.  */
4300$ac_includes_default
4301
4302#include <$ac_header>
4303_ACEOF
4304rm -f conftest.$ac_objext
4305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4306  (eval $ac_compile) 2>conftest.er1
4307  ac_status=$?
4308  grep -v '^ *+' conftest.er1 >conftest.err
4309  rm -f conftest.er1
4310  cat conftest.err >&5
4311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312  (exit $ac_status); } &&
4313	 { ac_try='test -z "$ac_c_werror_flag"
4314			 || test ! -s conftest.err'
4315  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4316  (eval $ac_try) 2>&5
4317  ac_status=$?
4318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319  (exit $ac_status); }; } &&
4320	 { ac_try='test -s conftest.$ac_objext'
4321  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4322  (eval $ac_try) 2>&5
4323  ac_status=$?
4324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325  (exit $ac_status); }; }; then
4326  eval "$as_ac_Header=yes"
4327else
4328  echo "$as_me: failed program was:" >&5
4329sed 's/^/| /' conftest.$ac_ext >&5
4330
4331eval "$as_ac_Header=no"
4332fi
4333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4334fi
4335echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4336echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4337if test `eval echo '${'$as_ac_Header'}'` = yes; then
4338  cat >>confdefs.h <<_ACEOF
4339#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4340_ACEOF
4341
4342fi
4343
4344done
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363for ac_header in ctype.h errno.h fcntl.h limits.h stdio.h stdlib.h string.h termcap.h termio.h termios.h time.h unistd.h values.h sys/ioctl.h sys/stream.h sys/ptem.h
4364do
4365as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4366if eval "test \"\${$as_ac_Header+set}\" = set"; then
4367  echo "$as_me:$LINENO: checking for $ac_header" >&5
4368echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4369if eval "test \"\${$as_ac_Header+set}\" = set"; then
4370  echo $ECHO_N "(cached) $ECHO_C" >&6
4371fi
4372echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4373echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4374else
4375  # Is the header compilable?
4376echo "$as_me:$LINENO: checking $ac_header usability" >&5
4377echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4378cat >conftest.$ac_ext <<_ACEOF
4379/* confdefs.h.  */
4380_ACEOF
4381cat confdefs.h >>conftest.$ac_ext
4382cat >>conftest.$ac_ext <<_ACEOF
4383/* end confdefs.h.  */
4384$ac_includes_default
4385#include <$ac_header>
4386_ACEOF
4387rm -f conftest.$ac_objext
4388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4389  (eval $ac_compile) 2>conftest.er1
4390  ac_status=$?
4391  grep -v '^ *+' conftest.er1 >conftest.err
4392  rm -f conftest.er1
4393  cat conftest.err >&5
4394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395  (exit $ac_status); } &&
4396	 { ac_try='test -z "$ac_c_werror_flag"
4397			 || test ! -s conftest.err'
4398  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4399  (eval $ac_try) 2>&5
4400  ac_status=$?
4401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402  (exit $ac_status); }; } &&
4403	 { ac_try='test -s conftest.$ac_objext'
4404  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4405  (eval $ac_try) 2>&5
4406  ac_status=$?
4407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408  (exit $ac_status); }; }; then
4409  ac_header_compiler=yes
4410else
4411  echo "$as_me: failed program was:" >&5
4412sed 's/^/| /' conftest.$ac_ext >&5
4413
4414ac_header_compiler=no
4415fi
4416rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4417echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4418echo "${ECHO_T}$ac_header_compiler" >&6
4419
4420# Is the header present?
4421echo "$as_me:$LINENO: checking $ac_header presence" >&5
4422echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4423cat >conftest.$ac_ext <<_ACEOF
4424/* confdefs.h.  */
4425_ACEOF
4426cat confdefs.h >>conftest.$ac_ext
4427cat >>conftest.$ac_ext <<_ACEOF
4428/* end confdefs.h.  */
4429#include <$ac_header>
4430_ACEOF
4431if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4432  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4433  ac_status=$?
4434  grep -v '^ *+' conftest.er1 >conftest.err
4435  rm -f conftest.er1
4436  cat conftest.err >&5
4437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438  (exit $ac_status); } >/dev/null; then
4439  if test -s conftest.err; then
4440    ac_cpp_err=$ac_c_preproc_warn_flag
4441    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4442  else
4443    ac_cpp_err=
4444  fi
4445else
4446  ac_cpp_err=yes
4447fi
4448if test -z "$ac_cpp_err"; then
4449  ac_header_preproc=yes
4450else
4451  echo "$as_me: failed program was:" >&5
4452sed 's/^/| /' conftest.$ac_ext >&5
4453
4454  ac_header_preproc=no
4455fi
4456rm -f conftest.err conftest.$ac_ext
4457echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4458echo "${ECHO_T}$ac_header_preproc" >&6
4459
4460# So?  What about this header?
4461case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4462  yes:no: )
4463    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4464echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4465    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4466echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4467    ac_header_preproc=yes
4468    ;;
4469  no:yes:* )
4470    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4471echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4472    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4473echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4474    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4475echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4476    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4477echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4478    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4479echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4480    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4481echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4482    (
4483      cat <<\_ASBOX
4484## ------------------------------- ##
4485## Report this to the less lists.  ##
4486## ------------------------------- ##
4487_ASBOX
4488    ) |
4489      sed "s/^/$as_me: WARNING:     /" >&2
4490    ;;
4491esac
4492echo "$as_me:$LINENO: checking for $ac_header" >&5
4493echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4494if eval "test \"\${$as_ac_Header+set}\" = set"; then
4495  echo $ECHO_N "(cached) $ECHO_C" >&6
4496else
4497  eval "$as_ac_Header=\$ac_header_preproc"
4498fi
4499echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4500echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4501
4502fi
4503if test `eval echo '${'$as_ac_Header'}'` = yes; then
4504  cat >>confdefs.h <<_ACEOF
4505#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4506_ACEOF
4507
4508fi
4509
4510done
4511
4512
4513# Checks for typedefs, structures, and compiler characteristics.
4514echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
4515echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
4516if test "${ac_cv_header_stat_broken+set}" = set; then
4517  echo $ECHO_N "(cached) $ECHO_C" >&6
4518else
4519  cat >conftest.$ac_ext <<_ACEOF
4520/* confdefs.h.  */
4521_ACEOF
4522cat confdefs.h >>conftest.$ac_ext
4523cat >>conftest.$ac_ext <<_ACEOF
4524/* end confdefs.h.  */
4525#include <sys/types.h>
4526#include <sys/stat.h>
4527
4528#if defined(S_ISBLK) && defined(S_IFDIR)
4529# if S_ISBLK (S_IFDIR)
4530You lose.
4531# endif
4532#endif
4533
4534#if defined(S_ISBLK) && defined(S_IFCHR)
4535# if S_ISBLK (S_IFCHR)
4536You lose.
4537# endif
4538#endif
4539
4540#if defined(S_ISLNK) && defined(S_IFREG)
4541# if S_ISLNK (S_IFREG)
4542You lose.
4543# endif
4544#endif
4545
4546#if defined(S_ISSOCK) && defined(S_IFREG)
4547# if S_ISSOCK (S_IFREG)
4548You lose.
4549# endif
4550#endif
4551
4552_ACEOF
4553if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4554  $EGREP "You lose" >/dev/null 2>&1; then
4555  ac_cv_header_stat_broken=yes
4556else
4557  ac_cv_header_stat_broken=no
4558fi
4559rm -f conftest*
4560
4561fi
4562echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
4563echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
4564if test $ac_cv_header_stat_broken = yes; then
4565
4566cat >>confdefs.h <<\_ACEOF
4567#define STAT_MACROS_BROKEN 1
4568_ACEOF
4569
4570fi
4571
4572echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4573echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4574if test "${ac_cv_c_const+set}" = set; then
4575  echo $ECHO_N "(cached) $ECHO_C" >&6
4576else
4577  cat >conftest.$ac_ext <<_ACEOF
4578/* confdefs.h.  */
4579_ACEOF
4580cat confdefs.h >>conftest.$ac_ext
4581cat >>conftest.$ac_ext <<_ACEOF
4582/* end confdefs.h.  */
4583
4584int
4585main ()
4586{
4587/* FIXME: Include the comments suggested by Paul. */
4588#ifndef __cplusplus
4589  /* Ultrix mips cc rejects this.  */
4590  typedef int charset[2];
4591  const charset x;
4592  /* SunOS 4.1.1 cc rejects this.  */
4593  char const *const *ccp;
4594  char **p;
4595  /* NEC SVR4.0.2 mips cc rejects this.  */
4596  struct point {int x, y;};
4597  static struct point const zero = {0,0};
4598  /* AIX XL C 1.02.0.0 rejects this.
4599     It does not let you subtract one const X* pointer from another in
4600     an arm of an if-expression whose if-part is not a constant
4601     expression */
4602  const char *g = "string";
4603  ccp = &g + (g ? g-g : 0);
4604  /* HPUX 7.0 cc rejects these. */
4605  ++ccp;
4606  p = (char**) ccp;
4607  ccp = (char const *const *) p;
4608  { /* SCO 3.2v4 cc rejects this.  */
4609    char *t;
4610    char const *s = 0 ? (char *) 0 : (char const *) 0;
4611
4612    *t++ = 0;
4613  }
4614  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4615    int x[] = {25, 17};
4616    const int *foo = &x[0];
4617    ++foo;
4618  }
4619  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4620    typedef const int *iptr;
4621    iptr p = 0;
4622    ++p;
4623  }
4624  { /* AIX XL C 1.02.0.0 rejects this saying
4625       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4626    struct s { int j; const int *ap[3]; };
4627    struct s *b; b->j = 5;
4628  }
4629  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4630    const int foo = 10;
4631  }
4632#endif
4633
4634  ;
4635  return 0;
4636}
4637_ACEOF
4638rm -f conftest.$ac_objext
4639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4640  (eval $ac_compile) 2>conftest.er1
4641  ac_status=$?
4642  grep -v '^ *+' conftest.er1 >conftest.err
4643  rm -f conftest.er1
4644  cat conftest.err >&5
4645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646  (exit $ac_status); } &&
4647	 { ac_try='test -z "$ac_c_werror_flag"
4648			 || test ! -s conftest.err'
4649  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4650  (eval $ac_try) 2>&5
4651  ac_status=$?
4652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653  (exit $ac_status); }; } &&
4654	 { ac_try='test -s conftest.$ac_objext'
4655  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4656  (eval $ac_try) 2>&5
4657  ac_status=$?
4658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659  (exit $ac_status); }; }; then
4660  ac_cv_c_const=yes
4661else
4662  echo "$as_me: failed program was:" >&5
4663sed 's/^/| /' conftest.$ac_ext >&5
4664
4665ac_cv_c_const=no
4666fi
4667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4668fi
4669echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4670echo "${ECHO_T}$ac_cv_c_const" >&6
4671if test $ac_cv_c_const = no; then
4672
4673cat >>confdefs.h <<\_ACEOF
4674#define const
4675_ACEOF
4676
4677fi
4678
4679echo "$as_me:$LINENO: checking for off_t" >&5
4680echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4681if test "${ac_cv_type_off_t+set}" = set; then
4682  echo $ECHO_N "(cached) $ECHO_C" >&6
4683else
4684  cat >conftest.$ac_ext <<_ACEOF
4685/* confdefs.h.  */
4686_ACEOF
4687cat confdefs.h >>conftest.$ac_ext
4688cat >>conftest.$ac_ext <<_ACEOF
4689/* end confdefs.h.  */
4690$ac_includes_default
4691int
4692main ()
4693{
4694if ((off_t *) 0)
4695  return 0;
4696if (sizeof (off_t))
4697  return 0;
4698  ;
4699  return 0;
4700}
4701_ACEOF
4702rm -f conftest.$ac_objext
4703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4704  (eval $ac_compile) 2>conftest.er1
4705  ac_status=$?
4706  grep -v '^ *+' conftest.er1 >conftest.err
4707  rm -f conftest.er1
4708  cat conftest.err >&5
4709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710  (exit $ac_status); } &&
4711	 { ac_try='test -z "$ac_c_werror_flag"
4712			 || test ! -s conftest.err'
4713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4714  (eval $ac_try) 2>&5
4715  ac_status=$?
4716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717  (exit $ac_status); }; } &&
4718	 { ac_try='test -s conftest.$ac_objext'
4719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4720  (eval $ac_try) 2>&5
4721  ac_status=$?
4722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723  (exit $ac_status); }; }; then
4724  ac_cv_type_off_t=yes
4725else
4726  echo "$as_me: failed program was:" >&5
4727sed 's/^/| /' conftest.$ac_ext >&5
4728
4729ac_cv_type_off_t=no
4730fi
4731rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4732fi
4733echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4734echo "${ECHO_T}$ac_cv_type_off_t" >&6
4735if test $ac_cv_type_off_t = yes; then
4736  :
4737else
4738
4739cat >>confdefs.h <<_ACEOF
4740#define off_t long
4741_ACEOF
4742
4743fi
4744
4745echo "$as_me:$LINENO: checking for size_t" >&5
4746echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4747if test "${ac_cv_type_size_t+set}" = set; then
4748  echo $ECHO_N "(cached) $ECHO_C" >&6
4749else
4750  cat >conftest.$ac_ext <<_ACEOF
4751/* confdefs.h.  */
4752_ACEOF
4753cat confdefs.h >>conftest.$ac_ext
4754cat >>conftest.$ac_ext <<_ACEOF
4755/* end confdefs.h.  */
4756$ac_includes_default
4757int
4758main ()
4759{
4760if ((size_t *) 0)
4761  return 0;
4762if (sizeof (size_t))
4763  return 0;
4764  ;
4765  return 0;
4766}
4767_ACEOF
4768rm -f conftest.$ac_objext
4769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4770  (eval $ac_compile) 2>conftest.er1
4771  ac_status=$?
4772  grep -v '^ *+' conftest.er1 >conftest.err
4773  rm -f conftest.er1
4774  cat conftest.err >&5
4775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776  (exit $ac_status); } &&
4777	 { ac_try='test -z "$ac_c_werror_flag"
4778			 || test ! -s conftest.err'
4779  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4780  (eval $ac_try) 2>&5
4781  ac_status=$?
4782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783  (exit $ac_status); }; } &&
4784	 { ac_try='test -s conftest.$ac_objext'
4785  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4786  (eval $ac_try) 2>&5
4787  ac_status=$?
4788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789  (exit $ac_status); }; }; then
4790  ac_cv_type_size_t=yes
4791else
4792  echo "$as_me: failed program was:" >&5
4793sed 's/^/| /' conftest.$ac_ext >&5
4794
4795ac_cv_type_size_t=no
4796fi
4797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4798fi
4799echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4800echo "${ECHO_T}$ac_cv_type_size_t" >&6
4801if test $ac_cv_type_size_t = yes; then
4802  :
4803else
4804
4805cat >>confdefs.h <<_ACEOF
4806#define size_t unsigned
4807_ACEOF
4808
4809fi
4810
4811echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4812echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4813if test "${ac_cv_header_time+set}" = set; then
4814  echo $ECHO_N "(cached) $ECHO_C" >&6
4815else
4816  cat >conftest.$ac_ext <<_ACEOF
4817/* confdefs.h.  */
4818_ACEOF
4819cat confdefs.h >>conftest.$ac_ext
4820cat >>conftest.$ac_ext <<_ACEOF
4821/* end confdefs.h.  */
4822#include <sys/types.h>
4823#include <sys/time.h>
4824#include <time.h>
4825
4826int
4827main ()
4828{
4829if ((struct tm *) 0)
4830return 0;
4831  ;
4832  return 0;
4833}
4834_ACEOF
4835rm -f conftest.$ac_objext
4836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4837  (eval $ac_compile) 2>conftest.er1
4838  ac_status=$?
4839  grep -v '^ *+' conftest.er1 >conftest.err
4840  rm -f conftest.er1
4841  cat conftest.err >&5
4842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843  (exit $ac_status); } &&
4844	 { ac_try='test -z "$ac_c_werror_flag"
4845			 || test ! -s conftest.err'
4846  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4847  (eval $ac_try) 2>&5
4848  ac_status=$?
4849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850  (exit $ac_status); }; } &&
4851	 { ac_try='test -s conftest.$ac_objext'
4852  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4853  (eval $ac_try) 2>&5
4854  ac_status=$?
4855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856  (exit $ac_status); }; }; then
4857  ac_cv_header_time=yes
4858else
4859  echo "$as_me: failed program was:" >&5
4860sed 's/^/| /' conftest.$ac_ext >&5
4861
4862ac_cv_header_time=no
4863fi
4864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4865fi
4866echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4867echo "${ECHO_T}$ac_cv_header_time" >&6
4868if test $ac_cv_header_time = yes; then
4869
4870cat >>confdefs.h <<\_ACEOF
4871#define TIME_WITH_SYS_TIME 1
4872_ACEOF
4873
4874fi
4875
4876
4877# Autoheader templates for symbols defined later by AC_DEFINE.
4878#AH_TEMPLATE([HAVE_POSIX_REGCOMP_CS],
4879#	[POSIX regcomp() and regex.h with character set detection])
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927# Checks for identifiers.
4928echo "$as_me:$LINENO: checking for off_t" >&5
4929echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4930if test "${ac_cv_type_off_t+set}" = set; then
4931  echo $ECHO_N "(cached) $ECHO_C" >&6
4932else
4933  cat >conftest.$ac_ext <<_ACEOF
4934/* confdefs.h.  */
4935_ACEOF
4936cat confdefs.h >>conftest.$ac_ext
4937cat >>conftest.$ac_ext <<_ACEOF
4938/* end confdefs.h.  */
4939$ac_includes_default
4940int
4941main ()
4942{
4943if ((off_t *) 0)
4944  return 0;
4945if (sizeof (off_t))
4946  return 0;
4947  ;
4948  return 0;
4949}
4950_ACEOF
4951rm -f conftest.$ac_objext
4952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4953  (eval $ac_compile) 2>conftest.er1
4954  ac_status=$?
4955  grep -v '^ *+' conftest.er1 >conftest.err
4956  rm -f conftest.er1
4957  cat conftest.err >&5
4958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959  (exit $ac_status); } &&
4960	 { ac_try='test -z "$ac_c_werror_flag"
4961			 || test ! -s conftest.err'
4962  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4963  (eval $ac_try) 2>&5
4964  ac_status=$?
4965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966  (exit $ac_status); }; } &&
4967	 { ac_try='test -s conftest.$ac_objext'
4968  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4969  (eval $ac_try) 2>&5
4970  ac_status=$?
4971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972  (exit $ac_status); }; }; then
4973  ac_cv_type_off_t=yes
4974else
4975  echo "$as_me: failed program was:" >&5
4976sed 's/^/| /' conftest.$ac_ext >&5
4977
4978ac_cv_type_off_t=no
4979fi
4980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4981fi
4982echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4983echo "${ECHO_T}$ac_cv_type_off_t" >&6
4984if test $ac_cv_type_off_t = yes; then
4985  :
4986else
4987
4988cat >>confdefs.h <<_ACEOF
4989#define off_t long
4990_ACEOF
4991
4992fi
4993
4994echo "$as_me:$LINENO: checking for void" >&5
4995echo $ECHO_N "checking for void... $ECHO_C" >&6
4996cat >conftest.$ac_ext <<_ACEOF
4997/* confdefs.h.  */
4998_ACEOF
4999cat confdefs.h >>conftest.$ac_ext
5000cat >>conftest.$ac_ext <<_ACEOF
5001/* end confdefs.h.  */
5002
5003int
5004main ()
5005{
5006void *foo = 0;
5007  ;
5008  return 0;
5009}
5010_ACEOF
5011rm -f conftest.$ac_objext
5012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5013  (eval $ac_compile) 2>conftest.er1
5014  ac_status=$?
5015  grep -v '^ *+' conftest.er1 >conftest.err
5016  rm -f conftest.er1
5017  cat conftest.err >&5
5018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019  (exit $ac_status); } &&
5020	 { ac_try='test -z "$ac_c_werror_flag"
5021			 || test ! -s conftest.err'
5022  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5023  (eval $ac_try) 2>&5
5024  ac_status=$?
5025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026  (exit $ac_status); }; } &&
5027	 { ac_try='test -s conftest.$ac_objext'
5028  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5029  (eval $ac_try) 2>&5
5030  ac_status=$?
5031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032  (exit $ac_status); }; }; then
5033  echo "$as_me:$LINENO: result: yes" >&5
5034echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
5035#define HAVE_VOID 1
5036_ACEOF
5037
5038else
5039  echo "$as_me: failed program was:" >&5
5040sed 's/^/| /' conftest.$ac_ext >&5
5041
5042echo "$as_me:$LINENO: result: no" >&5
5043echo "${ECHO_T}no" >&6
5044fi
5045rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5046echo "$as_me:$LINENO: checking for const" >&5
5047echo $ECHO_N "checking for const... $ECHO_C" >&6
5048cat >conftest.$ac_ext <<_ACEOF
5049/* confdefs.h.  */
5050_ACEOF
5051cat confdefs.h >>conftest.$ac_ext
5052cat >>conftest.$ac_ext <<_ACEOF
5053/* end confdefs.h.  */
5054
5055int
5056main ()
5057{
5058const int foo = 0;
5059  ;
5060  return 0;
5061}
5062_ACEOF
5063rm -f conftest.$ac_objext
5064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5065  (eval $ac_compile) 2>conftest.er1
5066  ac_status=$?
5067  grep -v '^ *+' conftest.er1 >conftest.err
5068  rm -f conftest.er1
5069  cat conftest.err >&5
5070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071  (exit $ac_status); } &&
5072	 { ac_try='test -z "$ac_c_werror_flag"
5073			 || test ! -s conftest.err'
5074  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5075  (eval $ac_try) 2>&5
5076  ac_status=$?
5077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078  (exit $ac_status); }; } &&
5079	 { ac_try='test -s conftest.$ac_objext'
5080  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5081  (eval $ac_try) 2>&5
5082  ac_status=$?
5083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084  (exit $ac_status); }; }; then
5085  echo "$as_me:$LINENO: result: yes" >&5
5086echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
5087#define HAVE_CONST 1
5088_ACEOF
5089
5090else
5091  echo "$as_me: failed program was:" >&5
5092sed 's/^/| /' conftest.$ac_ext >&5
5093
5094echo "$as_me:$LINENO: result: no" >&5
5095echo "${ECHO_T}no" >&6
5096fi
5097rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5098echo "$as_me:$LINENO: checking for time_t" >&5
5099echo $ECHO_N "checking for time_t... $ECHO_C" >&6
5100cat >conftest.$ac_ext <<_ACEOF
5101/* confdefs.h.  */
5102_ACEOF
5103cat confdefs.h >>conftest.$ac_ext
5104cat >>conftest.$ac_ext <<_ACEOF
5105/* end confdefs.h.  */
5106#include <time.h>
5107int
5108main ()
5109{
5110time_t t = 0;
5111  ;
5112  return 0;
5113}
5114_ACEOF
5115rm -f conftest.$ac_objext
5116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5117  (eval $ac_compile) 2>conftest.er1
5118  ac_status=$?
5119  grep -v '^ *+' conftest.er1 >conftest.err
5120  rm -f conftest.er1
5121  cat conftest.err >&5
5122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123  (exit $ac_status); } &&
5124	 { ac_try='test -z "$ac_c_werror_flag"
5125			 || test ! -s conftest.err'
5126  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5127  (eval $ac_try) 2>&5
5128  ac_status=$?
5129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130  (exit $ac_status); }; } &&
5131	 { ac_try='test -s conftest.$ac_objext'
5132  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5133  (eval $ac_try) 2>&5
5134  ac_status=$?
5135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136  (exit $ac_status); }; }; then
5137  echo "$as_me:$LINENO: result: yes" >&5
5138echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
5139#define HAVE_TIME_T 1
5140_ACEOF
5141
5142else
5143  echo "$as_me: failed program was:" >&5
5144sed 's/^/| /' conftest.$ac_ext >&5
5145
5146echo "$as_me:$LINENO: result: no" >&5
5147echo "${ECHO_T}no" >&6
5148fi
5149rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5150
5151# Checks for library functions.
5152echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5153echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5154if test "${ac_cv_type_signal+set}" = set; then
5155  echo $ECHO_N "(cached) $ECHO_C" >&6
5156else
5157  cat >conftest.$ac_ext <<_ACEOF
5158/* confdefs.h.  */
5159_ACEOF
5160cat confdefs.h >>conftest.$ac_ext
5161cat >>conftest.$ac_ext <<_ACEOF
5162/* end confdefs.h.  */
5163#include <sys/types.h>
5164#include <signal.h>
5165#ifdef signal
5166# undef signal
5167#endif
5168#ifdef __cplusplus
5169extern "C" void (*signal (int, void (*)(int)))(int);
5170#else
5171void (*signal ()) ();
5172#endif
5173
5174int
5175main ()
5176{
5177int i;
5178  ;
5179  return 0;
5180}
5181_ACEOF
5182rm -f conftest.$ac_objext
5183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5184  (eval $ac_compile) 2>conftest.er1
5185  ac_status=$?
5186  grep -v '^ *+' conftest.er1 >conftest.err
5187  rm -f conftest.er1
5188  cat conftest.err >&5
5189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190  (exit $ac_status); } &&
5191	 { ac_try='test -z "$ac_c_werror_flag"
5192			 || test ! -s conftest.err'
5193  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5194  (eval $ac_try) 2>&5
5195  ac_status=$?
5196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197  (exit $ac_status); }; } &&
5198	 { ac_try='test -s conftest.$ac_objext'
5199  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5200  (eval $ac_try) 2>&5
5201  ac_status=$?
5202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203  (exit $ac_status); }; }; then
5204  ac_cv_type_signal=void
5205else
5206  echo "$as_me: failed program was:" >&5
5207sed 's/^/| /' conftest.$ac_ext >&5
5208
5209ac_cv_type_signal=int
5210fi
5211rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5212fi
5213echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5214echo "${ECHO_T}$ac_cv_type_signal" >&6
5215
5216cat >>confdefs.h <<_ACEOF
5217#define RETSIGTYPE $ac_cv_type_signal
5218_ACEOF
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231for ac_func in fsync memcpy popen _setjmp sigprocmask sigsetmask stat strchr strstr system
5232do
5233as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5234echo "$as_me:$LINENO: checking for $ac_func" >&5
5235echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5236if eval "test \"\${$as_ac_var+set}\" = set"; then
5237  echo $ECHO_N "(cached) $ECHO_C" >&6
5238else
5239  cat >conftest.$ac_ext <<_ACEOF
5240/* confdefs.h.  */
5241_ACEOF
5242cat confdefs.h >>conftest.$ac_ext
5243cat >>conftest.$ac_ext <<_ACEOF
5244/* end confdefs.h.  */
5245/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5246   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5247#define $ac_func innocuous_$ac_func
5248
5249/* System header to define __stub macros and hopefully few prototypes,
5250    which can conflict with char $ac_func (); below.
5251    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5252    <limits.h> exists even on freestanding compilers.  */
5253
5254#ifdef __STDC__
5255# include <limits.h>
5256#else
5257# include <assert.h>
5258#endif
5259
5260#undef $ac_func
5261
5262/* Override any gcc2 internal prototype to avoid an error.  */
5263#ifdef __cplusplus
5264extern "C"
5265{
5266#endif
5267/* We use char because int might match the return type of a gcc2
5268   builtin and then its argument prototype would still apply.  */
5269char $ac_func ();
5270/* The GNU C library defines this for functions which it implements
5271    to always fail with ENOSYS.  Some functions are actually named
5272    something starting with __ and the normal name is an alias.  */
5273#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5274choke me
5275#else
5276char (*f) () = $ac_func;
5277#endif
5278#ifdef __cplusplus
5279}
5280#endif
5281
5282int
5283main ()
5284{
5285return f != $ac_func;
5286  ;
5287  return 0;
5288}
5289_ACEOF
5290rm -f conftest.$ac_objext conftest$ac_exeext
5291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5292  (eval $ac_link) 2>conftest.er1
5293  ac_status=$?
5294  grep -v '^ *+' conftest.er1 >conftest.err
5295  rm -f conftest.er1
5296  cat conftest.err >&5
5297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298  (exit $ac_status); } &&
5299	 { ac_try='test -z "$ac_c_werror_flag"
5300			 || test ! -s conftest.err'
5301  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5302  (eval $ac_try) 2>&5
5303  ac_status=$?
5304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305  (exit $ac_status); }; } &&
5306	 { ac_try='test -s conftest$ac_exeext'
5307  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5308  (eval $ac_try) 2>&5
5309  ac_status=$?
5310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311  (exit $ac_status); }; }; then
5312  eval "$as_ac_var=yes"
5313else
5314  echo "$as_me: failed program was:" >&5
5315sed 's/^/| /' conftest.$ac_ext >&5
5316
5317eval "$as_ac_var=no"
5318fi
5319rm -f conftest.err conftest.$ac_objext \
5320      conftest$ac_exeext conftest.$ac_ext
5321fi
5322echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5323echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5324if test `eval echo '${'$as_ac_var'}'` = yes; then
5325  cat >>confdefs.h <<_ACEOF
5326#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5327_ACEOF
5328
5329fi
5330done
5331
5332
5333# Some systems have termios.h but not the corresponding functions.
5334echo "$as_me:$LINENO: checking for tcgetattr" >&5
5335echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
5336if test "${ac_cv_func_tcgetattr+set}" = set; then
5337  echo $ECHO_N "(cached) $ECHO_C" >&6
5338else
5339  cat >conftest.$ac_ext <<_ACEOF
5340/* confdefs.h.  */
5341_ACEOF
5342cat confdefs.h >>conftest.$ac_ext
5343cat >>conftest.$ac_ext <<_ACEOF
5344/* end confdefs.h.  */
5345/* Define tcgetattr to an innocuous variant, in case <limits.h> declares tcgetattr.
5346   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5347#define tcgetattr innocuous_tcgetattr
5348
5349/* System header to define __stub macros and hopefully few prototypes,
5350    which can conflict with char tcgetattr (); below.
5351    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5352    <limits.h> exists even on freestanding compilers.  */
5353
5354#ifdef __STDC__
5355# include <limits.h>
5356#else
5357# include <assert.h>
5358#endif
5359
5360#undef tcgetattr
5361
5362/* Override any gcc2 internal prototype to avoid an error.  */
5363#ifdef __cplusplus
5364extern "C"
5365{
5366#endif
5367/* We use char because int might match the return type of a gcc2
5368   builtin and then its argument prototype would still apply.  */
5369char tcgetattr ();
5370/* The GNU C library defines this for functions which it implements
5371    to always fail with ENOSYS.  Some functions are actually named
5372    something starting with __ and the normal name is an alias.  */
5373#if defined (__stub_tcgetattr) || defined (__stub___tcgetattr)
5374choke me
5375#else
5376char (*f) () = tcgetattr;
5377#endif
5378#ifdef __cplusplus
5379}
5380#endif
5381
5382int
5383main ()
5384{
5385return f != tcgetattr;
5386  ;
5387  return 0;
5388}
5389_ACEOF
5390rm -f conftest.$ac_objext conftest$ac_exeext
5391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5392  (eval $ac_link) 2>conftest.er1
5393  ac_status=$?
5394  grep -v '^ *+' conftest.er1 >conftest.err
5395  rm -f conftest.er1
5396  cat conftest.err >&5
5397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398  (exit $ac_status); } &&
5399	 { ac_try='test -z "$ac_c_werror_flag"
5400			 || test ! -s conftest.err'
5401  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5402  (eval $ac_try) 2>&5
5403  ac_status=$?
5404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405  (exit $ac_status); }; } &&
5406	 { ac_try='test -s conftest$ac_exeext'
5407  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5408  (eval $ac_try) 2>&5
5409  ac_status=$?
5410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411  (exit $ac_status); }; }; then
5412  ac_cv_func_tcgetattr=yes
5413else
5414  echo "$as_me: failed program was:" >&5
5415sed 's/^/| /' conftest.$ac_ext >&5
5416
5417ac_cv_func_tcgetattr=no
5418fi
5419rm -f conftest.err conftest.$ac_objext \
5420      conftest$ac_exeext conftest.$ac_ext
5421fi
5422echo "$as_me:$LINENO: result: $ac_cv_func_tcgetattr" >&5
5423echo "${ECHO_T}$ac_cv_func_tcgetattr" >&6
5424if test $ac_cv_func_tcgetattr = yes; then
5425  cat >>confdefs.h <<\_ACEOF
5426#define HAVE_TERMIOS_FUNCS 1
5427_ACEOF
5428
5429fi
5430
5431
5432echo "$as_me:$LINENO: checking for fileno" >&5
5433echo $ECHO_N "checking for fileno... $ECHO_C" >&6
5434cat >conftest.$ac_ext <<_ACEOF
5435/* confdefs.h.  */
5436_ACEOF
5437cat confdefs.h >>conftest.$ac_ext
5438cat >>conftest.$ac_ext <<_ACEOF
5439/* end confdefs.h.  */
5440
5441#if HAVE_STDIO_H
5442#include <stdio.h>
5443#endif
5444int
5445main ()
5446{
5447static int x; x = fileno(stdin);
5448  ;
5449  return 0;
5450}
5451_ACEOF
5452rm -f conftest.$ac_objext conftest$ac_exeext
5453if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5454  (eval $ac_link) 2>conftest.er1
5455  ac_status=$?
5456  grep -v '^ *+' conftest.er1 >conftest.err
5457  rm -f conftest.er1
5458  cat conftest.err >&5
5459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460  (exit $ac_status); } &&
5461	 { ac_try='test -z "$ac_c_werror_flag"
5462			 || test ! -s conftest.err'
5463  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5464  (eval $ac_try) 2>&5
5465  ac_status=$?
5466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467  (exit $ac_status); }; } &&
5468	 { ac_try='test -s conftest$ac_exeext'
5469  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5470  (eval $ac_try) 2>&5
5471  ac_status=$?
5472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473  (exit $ac_status); }; }; then
5474  echo "$as_me:$LINENO: result: yes" >&5
5475echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
5476#define HAVE_FILENO 1
5477_ACEOF
5478
5479else
5480  echo "$as_me: failed program was:" >&5
5481sed 's/^/| /' conftest.$ac_ext >&5
5482
5483echo "$as_me:$LINENO: result: no" >&5
5484echo "${ECHO_T}no" >&6
5485fi
5486rm -f conftest.err conftest.$ac_objext \
5487      conftest$ac_exeext conftest.$ac_ext
5488
5489echo "$as_me:$LINENO: checking for strerror" >&5
5490echo $ECHO_N "checking for strerror... $ECHO_C" >&6
5491cat >conftest.$ac_ext <<_ACEOF
5492/* confdefs.h.  */
5493_ACEOF
5494cat confdefs.h >>conftest.$ac_ext
5495cat >>conftest.$ac_ext <<_ACEOF
5496/* end confdefs.h.  */
5497
5498#if HAVE_STDIO_H
5499#include <stdio.h>
5500#endif
5501#if HAVE_STRING_H
5502#include <string.h>
5503#endif
5504#if HAVE_ERRNO_H
5505#include <errno.h>
5506#endif
5507int
5508main ()
5509{
5510static char *x; x = strerror(0);
5511  ;
5512  return 0;
5513}
5514_ACEOF
5515rm -f conftest.$ac_objext conftest$ac_exeext
5516if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5517  (eval $ac_link) 2>conftest.er1
5518  ac_status=$?
5519  grep -v '^ *+' conftest.er1 >conftest.err
5520  rm -f conftest.er1
5521  cat conftest.err >&5
5522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523  (exit $ac_status); } &&
5524	 { ac_try='test -z "$ac_c_werror_flag"
5525			 || test ! -s conftest.err'
5526  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5527  (eval $ac_try) 2>&5
5528  ac_status=$?
5529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530  (exit $ac_status); }; } &&
5531	 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
5537  echo "$as_me:$LINENO: result: yes" >&5
5538echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
5539#define HAVE_STRERROR 1
5540_ACEOF
5541
5542else
5543  echo "$as_me: failed program was:" >&5
5544sed 's/^/| /' conftest.$ac_ext >&5
5545
5546echo "$as_me:$LINENO: result: no" >&5
5547echo "${ECHO_T}no" >&6
5548fi
5549rm -f conftest.err conftest.$ac_objext \
5550      conftest$ac_exeext conftest.$ac_ext
5551
5552echo "$as_me:$LINENO: checking for sys_errlist" >&5
5553echo $ECHO_N "checking for sys_errlist... $ECHO_C" >&6
5554cat >conftest.$ac_ext <<_ACEOF
5555/* confdefs.h.  */
5556_ACEOF
5557cat confdefs.h >>conftest.$ac_ext
5558cat >>conftest.$ac_ext <<_ACEOF
5559/* end confdefs.h.  */
5560
5561int
5562main ()
5563{
5564extern char *sys_errlist[]; static char **x; x = sys_errlist;
5565  ;
5566  return 0;
5567}
5568_ACEOF
5569rm -f conftest.$ac_objext conftest$ac_exeext
5570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5571  (eval $ac_link) 2>conftest.er1
5572  ac_status=$?
5573  grep -v '^ *+' conftest.er1 >conftest.err
5574  rm -f conftest.er1
5575  cat conftest.err >&5
5576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577  (exit $ac_status); } &&
5578	 { ac_try='test -z "$ac_c_werror_flag"
5579			 || test ! -s conftest.err'
5580  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5581  (eval $ac_try) 2>&5
5582  ac_status=$?
5583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584  (exit $ac_status); }; } &&
5585	 { ac_try='test -s conftest$ac_exeext'
5586  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5587  (eval $ac_try) 2>&5
5588  ac_status=$?
5589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590  (exit $ac_status); }; }; then
5591  echo "$as_me:$LINENO: result: yes" >&5
5592echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
5593#define HAVE_SYS_ERRLIST 1
5594_ACEOF
5595
5596else
5597  echo "$as_me: failed program was:" >&5
5598sed 's/^/| /' conftest.$ac_ext >&5
5599
5600echo "$as_me:$LINENO: result: no" >&5
5601echo "${ECHO_T}no" >&6
5602fi
5603rm -f conftest.err conftest.$ac_objext \
5604      conftest$ac_exeext conftest.$ac_ext
5605
5606echo "$as_me:$LINENO: checking for sigset_t" >&5
5607echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6
5608cat >conftest.$ac_ext <<_ACEOF
5609/* confdefs.h.  */
5610_ACEOF
5611cat confdefs.h >>conftest.$ac_ext
5612cat >>conftest.$ac_ext <<_ACEOF
5613/* end confdefs.h.  */
5614
5615#include <signal.h>
5616
5617int
5618main ()
5619{
5620sigset_t s; s = 0;
5621  ;
5622  return 0;
5623}
5624_ACEOF
5625rm -f conftest.$ac_objext conftest$ac_exeext
5626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5627  (eval $ac_link) 2>conftest.er1
5628  ac_status=$?
5629  grep -v '^ *+' conftest.er1 >conftest.err
5630  rm -f conftest.er1
5631  cat conftest.err >&5
5632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633  (exit $ac_status); } &&
5634	 { ac_try='test -z "$ac_c_werror_flag"
5635			 || test ! -s conftest.err'
5636  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5637  (eval $ac_try) 2>&5
5638  ac_status=$?
5639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640  (exit $ac_status); }; } &&
5641	 { ac_try='test -s conftest$ac_exeext'
5642  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5643  (eval $ac_try) 2>&5
5644  ac_status=$?
5645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646  (exit $ac_status); }; }; then
5647  echo "$as_me:$LINENO: result: yes" >&5
5648echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
5649#define HAVE_SIGSET_T 1
5650_ACEOF
5651
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 \
5660      conftest$ac_exeext conftest.$ac_ext
5661
5662echo "$as_me:$LINENO: checking for sigemptyset" >&5
5663echo $ECHO_N "checking for sigemptyset... $ECHO_C" >&6
5664cat >conftest.$ac_ext <<_ACEOF
5665/* confdefs.h.  */
5666_ACEOF
5667cat confdefs.h >>conftest.$ac_ext
5668cat >>conftest.$ac_ext <<_ACEOF
5669/* end confdefs.h.  */
5670
5671#include <signal.h>
5672
5673int
5674main ()
5675{
5676sigset_t s; sigemptyset(&s);
5677  ;
5678  return 0;
5679}
5680_ACEOF
5681rm -f conftest.$ac_objext conftest$ac_exeext
5682if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5683  (eval $ac_link) 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"
5691			 || test ! -s conftest.err'
5692  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5693  (eval $ac_try) 2>&5
5694  ac_status=$?
5695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696  (exit $ac_status); }; } &&
5697	 { ac_try='test -s conftest$ac_exeext'
5698  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5699  (eval $ac_try) 2>&5
5700  ac_status=$?
5701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702  (exit $ac_status); }; }; then
5703  echo "$as_me:$LINENO: result: yes" >&5
5704echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
5705#define HAVE_SIGEMPTYSET 1
5706_ACEOF
5707
5708else
5709  echo "$as_me: failed program was:" >&5
5710sed 's/^/| /' conftest.$ac_ext >&5
5711
5712echo "$as_me:$LINENO: result: no" >&5
5713echo "${ECHO_T}no" >&6
5714fi
5715rm -f conftest.err conftest.$ac_objext \
5716      conftest$ac_exeext conftest.$ac_ext
5717
5718have_errno=no
5719echo "$as_me:$LINENO: checking for errno" >&5
5720echo $ECHO_N "checking for errno... $ECHO_C" >&6
5721cat >conftest.$ac_ext <<_ACEOF
5722/* confdefs.h.  */
5723_ACEOF
5724cat confdefs.h >>conftest.$ac_ext
5725cat >>conftest.$ac_ext <<_ACEOF
5726/* end confdefs.h.  */
5727
5728#if HAVE_ERRNO_H
5729#include <errno.h>
5730#endif
5731int
5732main ()
5733{
5734static int x; x = errno;
5735  ;
5736  return 0;
5737}
5738_ACEOF
5739rm -f conftest.$ac_objext conftest$ac_exeext
5740if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5741  (eval $ac_link) 2>conftest.er1
5742  ac_status=$?
5743  grep -v '^ *+' conftest.er1 >conftest.err
5744  rm -f conftest.er1
5745  cat conftest.err >&5
5746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747  (exit $ac_status); } &&
5748	 { ac_try='test -z "$ac_c_werror_flag"
5749			 || test ! -s conftest.err'
5750  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5751  (eval $ac_try) 2>&5
5752  ac_status=$?
5753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754  (exit $ac_status); }; } &&
5755	 { ac_try='test -s conftest$ac_exeext'
5756  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5757  (eval $ac_try) 2>&5
5758  ac_status=$?
5759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760  (exit $ac_status); }; }; then
5761  echo "$as_me:$LINENO: result: yes - in errno.h" >&5
5762echo "${ECHO_T}yes - in errno.h" >&6; cat >>confdefs.h <<\_ACEOF
5763#define HAVE_ERRNO 1
5764_ACEOF
5765 have_errno=yes
5766else
5767  echo "$as_me: failed program was:" >&5
5768sed 's/^/| /' conftest.$ac_ext >&5
5769
5770fi
5771rm -f conftest.err conftest.$ac_objext \
5772      conftest$ac_exeext conftest.$ac_ext
5773if test $have_errno = no; then
5774cat >conftest.$ac_ext <<_ACEOF
5775/* confdefs.h.  */
5776_ACEOF
5777cat confdefs.h >>conftest.$ac_ext
5778cat >>conftest.$ac_ext <<_ACEOF
5779/* end confdefs.h.  */
5780
5781#if HAVE_ERRNO_H
5782#include <errno.h>
5783#endif
5784int
5785main ()
5786{
5787extern int errno; static int x; x = errno;
5788  ;
5789  return 0;
5790}
5791_ACEOF
5792rm -f conftest.$ac_objext conftest$ac_exeext
5793if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5794  (eval $ac_link) 2>conftest.er1
5795  ac_status=$?
5796  grep -v '^ *+' conftest.er1 >conftest.err
5797  rm -f conftest.er1
5798  cat conftest.err >&5
5799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800  (exit $ac_status); } &&
5801	 { ac_try='test -z "$ac_c_werror_flag"
5802			 || test ! -s conftest.err'
5803  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5804  (eval $ac_try) 2>&5
5805  ac_status=$?
5806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807  (exit $ac_status); }; } &&
5808	 { ac_try='test -s conftest$ac_exeext'
5809  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5810  (eval $ac_try) 2>&5
5811  ac_status=$?
5812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813  (exit $ac_status); }; }; then
5814  echo "$as_me:$LINENO: result: yes - must define" >&5
5815echo "${ECHO_T}yes - must define" >&6; cat >>confdefs.h <<\_ACEOF
5816#define HAVE_ERRNO 1
5817_ACEOF
5818 cat >>confdefs.h <<\_ACEOF
5819#define MUST_DEFINE_ERRNO 1
5820_ACEOF
5821
5822else
5823  echo "$as_me: failed program was:" >&5
5824sed 's/^/| /' conftest.$ac_ext >&5
5825
5826echo "$as_me:$LINENO: result: no" >&5
5827echo "${ECHO_T}no" >&6
5828fi
5829rm -f conftest.err conftest.$ac_objext \
5830      conftest$ac_exeext conftest.$ac_ext
5831fi
5832
5833echo "$as_me:$LINENO: checking for locale" >&5
5834echo $ECHO_N "checking for locale... $ECHO_C" >&6
5835cat >conftest.$ac_ext <<_ACEOF
5836/* confdefs.h.  */
5837_ACEOF
5838cat confdefs.h >>conftest.$ac_ext
5839cat >>conftest.$ac_ext <<_ACEOF
5840/* end confdefs.h.  */
5841#include <locale.h>
5842#include <ctype.h>
5843int
5844main ()
5845{
5846setlocale(LC_CTYPE,""); isprint(0); iscntrl(0);
5847  ;
5848  return 0;
5849}
5850_ACEOF
5851rm -f conftest.$ac_objext conftest$ac_exeext
5852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5853  (eval $ac_link) 2>conftest.er1
5854  ac_status=$?
5855  grep -v '^ *+' conftest.er1 >conftest.err
5856  rm -f conftest.er1
5857  cat conftest.err >&5
5858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859  (exit $ac_status); } &&
5860	 { ac_try='test -z "$ac_c_werror_flag"
5861			 || test ! -s conftest.err'
5862  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5863  (eval $ac_try) 2>&5
5864  ac_status=$?
5865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866  (exit $ac_status); }; } &&
5867	 { ac_try='test -s conftest$ac_exeext'
5868  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5869  (eval $ac_try) 2>&5
5870  ac_status=$?
5871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872  (exit $ac_status); }; }; then
5873  echo "$as_me:$LINENO: result: yes" >&5
5874echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
5875#define HAVE_LOCALE 1
5876_ACEOF
5877
5878else
5879  echo "$as_me: failed program was:" >&5
5880sed 's/^/| /' conftest.$ac_ext >&5
5881
5882echo "$as_me:$LINENO: result: no" >&5
5883echo "${ECHO_T}no" >&6
5884fi
5885rm -f conftest.err conftest.$ac_objext \
5886      conftest$ac_exeext conftest.$ac_ext
5887echo "$as_me:$LINENO: checking for ctype functions" >&5
5888echo $ECHO_N "checking for ctype functions... $ECHO_C" >&6
5889cat >conftest.$ac_ext <<_ACEOF
5890/* confdefs.h.  */
5891_ACEOF
5892cat confdefs.h >>conftest.$ac_ext
5893cat >>conftest.$ac_ext <<_ACEOF
5894/* end confdefs.h.  */
5895
5896#if HAVE_CTYPE_H
5897#include <ctype.h>
5898#endif
5899int
5900main ()
5901{
5902static int x; x = isupper(x); x = tolower(x); x = toupper(x);
5903  ;
5904  return 0;
5905}
5906_ACEOF
5907rm -f conftest.$ac_objext conftest$ac_exeext
5908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5909  (eval $ac_link) 2>conftest.er1
5910  ac_status=$?
5911  grep -v '^ *+' conftest.er1 >conftest.err
5912  rm -f conftest.er1
5913  cat conftest.err >&5
5914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915  (exit $ac_status); } &&
5916	 { ac_try='test -z "$ac_c_werror_flag"
5917			 || test ! -s conftest.err'
5918  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5919  (eval $ac_try) 2>&5
5920  ac_status=$?
5921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922  (exit $ac_status); }; } &&
5923	 { ac_try='test -s conftest$ac_exeext'
5924  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5925  (eval $ac_try) 2>&5
5926  ac_status=$?
5927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928  (exit $ac_status); }; }; then
5929  echo "$as_me:$LINENO: result: yes" >&5
5930echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
5931#define HAVE_UPPER_LOWER 1
5932_ACEOF
5933
5934else
5935  echo "$as_me: failed program was:" >&5
5936sed 's/^/| /' conftest.$ac_ext >&5
5937
5938echo "$as_me:$LINENO: result: no" >&5
5939echo "${ECHO_T}no" >&6
5940fi
5941rm -f conftest.err conftest.$ac_objext \
5942      conftest$ac_exeext conftest.$ac_ext
5943
5944# Checks for external variable ospeed in the termcap library.
5945have_ospeed=no
5946echo "$as_me:$LINENO: checking termcap for ospeed" >&5
5947echo $ECHO_N "checking termcap for ospeed... $ECHO_C" >&6
5948cat >conftest.$ac_ext <<_ACEOF
5949/* confdefs.h.  */
5950_ACEOF
5951cat confdefs.h >>conftest.$ac_ext
5952cat >>conftest.$ac_ext <<_ACEOF
5953/* end confdefs.h.  */
5954
5955#include <sys/types.h>
5956#if HAVE_TERMIOS_H
5957#include <termios.h>
5958#endif
5959#if HAVE_TERMCAP_H
5960#include <termcap.h>
5961#endif
5962int
5963main ()
5964{
5965ospeed = 0;
5966  ;
5967  return 0;
5968}
5969_ACEOF
5970rm -f conftest.$ac_objext conftest$ac_exeext
5971if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5972  (eval $ac_link) 2>conftest.er1
5973  ac_status=$?
5974  grep -v '^ *+' conftest.er1 >conftest.err
5975  rm -f conftest.er1
5976  cat conftest.err >&5
5977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978  (exit $ac_status); } &&
5979	 { ac_try='test -z "$ac_c_werror_flag"
5980			 || test ! -s conftest.err'
5981  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5982  (eval $ac_try) 2>&5
5983  ac_status=$?
5984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985  (exit $ac_status); }; } &&
5986	 { ac_try='test -s conftest$ac_exeext'
5987  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5988  (eval $ac_try) 2>&5
5989  ac_status=$?
5990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991  (exit $ac_status); }; }; then
5992  echo "$as_me:$LINENO: result: yes - in termcap.h" >&5
5993echo "${ECHO_T}yes - in termcap.h" >&6; cat >>confdefs.h <<\_ACEOF
5994#define HAVE_OSPEED 1
5995_ACEOF
5996 have_ospeed=yes
5997else
5998  echo "$as_me: failed program was:" >&5
5999sed 's/^/| /' conftest.$ac_ext >&5
6000
6001fi
6002rm -f conftest.err conftest.$ac_objext \
6003      conftest$ac_exeext conftest.$ac_ext
6004if test $have_ospeed = no; then
6005cat >conftest.$ac_ext <<_ACEOF
6006/* confdefs.h.  */
6007_ACEOF
6008cat confdefs.h >>conftest.$ac_ext
6009cat >>conftest.$ac_ext <<_ACEOF
6010/* end confdefs.h.  */
6011
6012int
6013main ()
6014{
6015extern short ospeed; ospeed = 0;
6016  ;
6017  return 0;
6018}
6019_ACEOF
6020rm -f conftest.$ac_objext conftest$ac_exeext
6021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6022  (eval $ac_link) 2>conftest.er1
6023  ac_status=$?
6024  grep -v '^ *+' conftest.er1 >conftest.err
6025  rm -f conftest.er1
6026  cat conftest.err >&5
6027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028  (exit $ac_status); } &&
6029	 { ac_try='test -z "$ac_c_werror_flag"
6030			 || test ! -s conftest.err'
6031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6032  (eval $ac_try) 2>&5
6033  ac_status=$?
6034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035  (exit $ac_status); }; } &&
6036	 { ac_try='test -s conftest$ac_exeext'
6037  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6038  (eval $ac_try) 2>&5
6039  ac_status=$?
6040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041  (exit $ac_status); }; }; then
6042  echo "$as_me:$LINENO: result: yes - must define" >&5
6043echo "${ECHO_T}yes - must define" >&6; cat >>confdefs.h <<\_ACEOF
6044#define HAVE_OSPEED 1
6045_ACEOF
6046 cat >>confdefs.h <<\_ACEOF
6047#define MUST_DEFINE_OSPEED 1
6048_ACEOF
6049
6050else
6051  echo "$as_me: failed program was:" >&5
6052sed 's/^/| /' conftest.$ac_ext >&5
6053
6054echo "$as_me:$LINENO: result: no" >&5
6055echo "${ECHO_T}no" >&6
6056fi
6057rm -f conftest.err conftest.$ac_objext \
6058      conftest$ac_exeext conftest.$ac_ext
6059fi
6060
6061# Checks for regular expression functions.
6062if test $have_regex_cs != no; then
6063cat >>confdefs.h <<\_ACEOF
6064#define CS_REGEX 1
6065_ACEOF
6066
6067# try to find it with character set detection.
6068have_regex=no
6069if test $have_regex = no && test -f ${srcdir}/regex_cs.c; then
6070echo "$as_me:$LINENO: result: using POSIX regcomp_cs -- local source" >&5
6071echo "${ECHO_T}using POSIX regcomp_cs -- local source" >&6; cat >>confdefs.h <<\_ACEOF
6072#define HAVE_POSIX_REGCOMP_CS 1
6073_ACEOF
6074 REGEX_O='regex_cs.$(O)'  have_regex=yes
6075fi
6076if test $have_regex = no && test -f ${srcdir}/regexp_cs.c; then
6077echo "$as_me:$LINENO: result: using V8 regcomp_cs -- local source" >&5
6078echo "${ECHO_T}using V8 regcomp_cs -- local source" >&6; cat >>confdefs.h <<\_ACEOF
6079#define HAVE_V8_REGCOMP_CS 1
6080_ACEOF
6081 REGEX_O='regexp_cs.$(O)'  have_regex=yes
6082fi
6083if test $have_regex = no; then
6084echo "$as_me:$LINENO: result: cannot find regular expression library with character set detection" >&5
6085echo "${ECHO_T}cannot find regular expression library with character set detection" >&6; cat >>confdefs.h <<\_ACEOF
6086#define NO_REGEX 1
6087_ACEOF
6088
6089fi
6090else
6091cat >>confdefs.h <<\_ACEOF
6092#define CS_REGEX 0
6093_ACEOF
6094
6095# try to find it without character set detection.
6096have_regex=no
6097have_posix_regex=unknown
6098echo "$as_me:$LINENO: checking for regcomp" >&5
6099echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
6100
6101WANT_REGEX=auto
6102
6103# Check whether --with-regex or --without-regex was given.
6104if test "${with_regex+set}" = set; then
6105  withval="$with_regex"
6106  WANT_REGEX="$withval"
6107fi;
6108
6109if test $have_regex = no; then
6110if test $WANT_REGEX = auto -o $WANT_REGEX = posix; then
6111# Some versions of Solaris have a regcomp() function, but it doesn't work!
6112# So we run a test program.  If we're cross-compiling, do it the old way.
6113if test "$cross_compiling" = yes; then
6114  have_posix_regex=unknown
6115else
6116  cat >conftest.$ac_ext <<_ACEOF
6117/* confdefs.h.  */
6118_ACEOF
6119cat confdefs.h >>conftest.$ac_ext
6120cat >>conftest.$ac_ext <<_ACEOF
6121/* end confdefs.h.  */
6122
6123#include <sys/types.h>
6124#include <regex.h>
6125main() { regex_t r; regmatch_t rm; char *text = "xabcy";
6126if (regcomp(&r, "abc", 0)) exit(1);
6127if (regexec(&r, text, 1, &rm, 0)) exit(1);
6128#ifndef __WATCOMC__
6129if (rm.rm_so != 1) exit(1); /* check for correct offset */
6130#else
6131if (rm.rm_sp != text + 1) exit(1); /* check for correct offset */
6132#endif
6133exit(0); }
6134_ACEOF
6135rm -f conftest$ac_exeext
6136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6137  (eval $ac_link) 2>&5
6138  ac_status=$?
6139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6141  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6142  (eval $ac_try) 2>&5
6143  ac_status=$?
6144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145  (exit $ac_status); }; }; then
6146  have_posix_regex=yes
6147else
6148  echo "$as_me: program exited with status $ac_status" >&5
6149echo "$as_me: failed program was:" >&5
6150sed 's/^/| /' conftest.$ac_ext >&5
6151
6152( exit $ac_status )
6153have_posix_regex=no
6154fi
6155rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6156fi
6157if test $have_posix_regex = yes; then
6158  echo "$as_me:$LINENO: result: using POSIX regcomp" >&5
6159echo "${ECHO_T}using POSIX regcomp" >&6
6160  cat >>confdefs.h <<\_ACEOF
6161#define HAVE_POSIX_REGCOMP 1
6162_ACEOF
6163
6164  have_regex=yes
6165elif test $have_posix_regex = unknown; then
6166  cat >conftest.$ac_ext <<_ACEOF
6167/* confdefs.h.  */
6168_ACEOF
6169cat confdefs.h >>conftest.$ac_ext
6170cat >>conftest.$ac_ext <<_ACEOF
6171/* end confdefs.h.  */
6172
6173#include <sys/types.h>
6174#include <regex.h>
6175int
6176main ()
6177{
6178regex_t *r; regfree(r);
6179  ;
6180  return 0;
6181}
6182_ACEOF
6183rm -f conftest.$ac_objext conftest$ac_exeext
6184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6185  (eval $ac_link) 2>conftest.er1
6186  ac_status=$?
6187  grep -v '^ *+' conftest.er1 >conftest.err
6188  rm -f conftest.er1
6189  cat conftest.err >&5
6190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191  (exit $ac_status); } &&
6192	 { ac_try='test -z "$ac_c_werror_flag"
6193			 || test ! -s conftest.err'
6194  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6195  (eval $ac_try) 2>&5
6196  ac_status=$?
6197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198  (exit $ac_status); }; } &&
6199	 { ac_try='test -s conftest$ac_exeext'
6200  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6201  (eval $ac_try) 2>&5
6202  ac_status=$?
6203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204  (exit $ac_status); }; }; then
6205  echo "$as_me:$LINENO: result: using POSIX regcomp" >&5
6206echo "${ECHO_T}using POSIX regcomp" >&6
6207  cat >>confdefs.h <<\_ACEOF
6208#define HAVE_POSIX_REGCOMP 1
6209_ACEOF
6210 have_regex=yes
6211else
6212  echo "$as_me: failed program was:" >&5
6213sed 's/^/| /' conftest.$ac_ext >&5
6214
6215fi
6216rm -f conftest.err conftest.$ac_objext \
6217      conftest$ac_exeext conftest.$ac_ext
6218else
6219  echo "$as_me:$LINENO: result: no" >&5
6220echo "${ECHO_T}no" >&6
6221fi
6222fi
6223fi
6224
6225if test $have_regex = no; then
6226if test $WANT_REGEX = auto -o $WANT_REGEX = pcre; then
6227echo "$as_me:$LINENO: checking for pcre_compile in -lpcre" >&5
6228echo $ECHO_N "checking for pcre_compile in -lpcre... $ECHO_C" >&6
6229if test "${ac_cv_lib_pcre_pcre_compile+set}" = set; then
6230  echo $ECHO_N "(cached) $ECHO_C" >&6
6231else
6232  ac_check_lib_save_LIBS=$LIBS
6233LIBS="-lpcre  $LIBS"
6234cat >conftest.$ac_ext <<_ACEOF
6235/* confdefs.h.  */
6236_ACEOF
6237cat confdefs.h >>conftest.$ac_ext
6238cat >>conftest.$ac_ext <<_ACEOF
6239/* end confdefs.h.  */
6240
6241/* Override any gcc2 internal prototype to avoid an error.  */
6242#ifdef __cplusplus
6243extern "C"
6244#endif
6245/* We use char because int might match the return type of a gcc2
6246   builtin and then its argument prototype would still apply.  */
6247char pcre_compile ();
6248int
6249main ()
6250{
6251pcre_compile ();
6252  ;
6253  return 0;
6254}
6255_ACEOF
6256rm -f conftest.$ac_objext conftest$ac_exeext
6257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6258  (eval $ac_link) 2>conftest.er1
6259  ac_status=$?
6260  grep -v '^ *+' conftest.er1 >conftest.err
6261  rm -f conftest.er1
6262  cat conftest.err >&5
6263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264  (exit $ac_status); } &&
6265	 { ac_try='test -z "$ac_c_werror_flag"
6266			 || test ! -s conftest.err'
6267  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6268  (eval $ac_try) 2>&5
6269  ac_status=$?
6270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271  (exit $ac_status); }; } &&
6272	 { ac_try='test -s conftest$ac_exeext'
6273  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6274  (eval $ac_try) 2>&5
6275  ac_status=$?
6276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277  (exit $ac_status); }; }; then
6278  ac_cv_lib_pcre_pcre_compile=yes
6279else
6280  echo "$as_me: failed program was:" >&5
6281sed 's/^/| /' conftest.$ac_ext >&5
6282
6283ac_cv_lib_pcre_pcre_compile=no
6284fi
6285rm -f conftest.err conftest.$ac_objext \
6286      conftest$ac_exeext conftest.$ac_ext
6287LIBS=$ac_check_lib_save_LIBS
6288fi
6289echo "$as_me:$LINENO: result: $ac_cv_lib_pcre_pcre_compile" >&5
6290echo "${ECHO_T}$ac_cv_lib_pcre_pcre_compile" >&6
6291if test $ac_cv_lib_pcre_pcre_compile = yes; then
6292  echo "$as_me:$LINENO: result: using pcre" >&5
6293echo "${ECHO_T}using pcre" >&6; cat >>confdefs.h <<\_ACEOF
6294#define HAVE_PCRE 1
6295_ACEOF
6296 LIBS="$LIBS -lpcre" have_regex=yes
6297fi
6298
6299fi
6300fi
6301
6302if test $have_regex = no; then
6303if test $WANT_REGEX = auto -o $WANT_REGEX = regcmp; then
6304echo "$as_me:$LINENO: checking for regcmp" >&5
6305echo $ECHO_N "checking for regcmp... $ECHO_C" >&6
6306if test "${ac_cv_func_regcmp+set}" = set; then
6307  echo $ECHO_N "(cached) $ECHO_C" >&6
6308else
6309  cat >conftest.$ac_ext <<_ACEOF
6310/* confdefs.h.  */
6311_ACEOF
6312cat confdefs.h >>conftest.$ac_ext
6313cat >>conftest.$ac_ext <<_ACEOF
6314/* end confdefs.h.  */
6315/* Define regcmp to an innocuous variant, in case <limits.h> declares regcmp.
6316   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6317#define regcmp innocuous_regcmp
6318
6319/* System header to define __stub macros and hopefully few prototypes,
6320    which can conflict with char regcmp (); below.
6321    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6322    <limits.h> exists even on freestanding compilers.  */
6323
6324#ifdef __STDC__
6325# include <limits.h>
6326#else
6327# include <assert.h>
6328#endif
6329
6330#undef regcmp
6331
6332/* Override any gcc2 internal prototype to avoid an error.  */
6333#ifdef __cplusplus
6334extern "C"
6335{
6336#endif
6337/* We use char because int might match the return type of a gcc2
6338   builtin and then its argument prototype would still apply.  */
6339char regcmp ();
6340/* The GNU C library defines this for functions which it implements
6341    to always fail with ENOSYS.  Some functions are actually named
6342    something starting with __ and the normal name is an alias.  */
6343#if defined (__stub_regcmp) || defined (__stub___regcmp)
6344choke me
6345#else
6346char (*f) () = regcmp;
6347#endif
6348#ifdef __cplusplus
6349}
6350#endif
6351
6352int
6353main ()
6354{
6355return f != regcmp;
6356  ;
6357  return 0;
6358}
6359_ACEOF
6360rm -f conftest.$ac_objext conftest$ac_exeext
6361if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6362  (eval $ac_link) 2>conftest.er1
6363  ac_status=$?
6364  grep -v '^ *+' conftest.er1 >conftest.err
6365  rm -f conftest.er1
6366  cat conftest.err >&5
6367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368  (exit $ac_status); } &&
6369	 { ac_try='test -z "$ac_c_werror_flag"
6370			 || test ! -s conftest.err'
6371  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6372  (eval $ac_try) 2>&5
6373  ac_status=$?
6374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375  (exit $ac_status); }; } &&
6376	 { ac_try='test -s conftest$ac_exeext'
6377  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6378  (eval $ac_try) 2>&5
6379  ac_status=$?
6380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381  (exit $ac_status); }; }; then
6382  ac_cv_func_regcmp=yes
6383else
6384  echo "$as_me: failed program was:" >&5
6385sed 's/^/| /' conftest.$ac_ext >&5
6386
6387ac_cv_func_regcmp=no
6388fi
6389rm -f conftest.err conftest.$ac_objext \
6390      conftest$ac_exeext conftest.$ac_ext
6391fi
6392echo "$as_me:$LINENO: result: $ac_cv_func_regcmp" >&5
6393echo "${ECHO_T}$ac_cv_func_regcmp" >&6
6394if test $ac_cv_func_regcmp = yes; then
6395  echo "$as_me:$LINENO: result: using regcmp" >&5
6396echo "${ECHO_T}using regcmp" >&6; cat >>confdefs.h <<\_ACEOF
6397#define HAVE_REGCMP 1
6398_ACEOF
6399 have_regex=yes
6400fi
6401
6402fi
6403fi
6404
6405if test $have_regex = no; then
6406if test $WANT_REGEX = auto -o $WANT_REGEX = regcomp; then
6407cat >conftest.$ac_ext <<_ACEOF
6408/* confdefs.h.  */
6409_ACEOF
6410cat confdefs.h >>conftest.$ac_ext
6411cat >>conftest.$ac_ext <<_ACEOF
6412/* end confdefs.h.  */
6413
6414#include "regexp.h"
6415int
6416main ()
6417{
6418regcomp("");
6419  ;
6420  return 0;
6421}
6422_ACEOF
6423rm -f conftest.$ac_objext conftest$ac_exeext
6424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6425  (eval $ac_link) 2>conftest.er1
6426  ac_status=$?
6427  grep -v '^ *+' conftest.er1 >conftest.err
6428  rm -f conftest.er1
6429  cat conftest.err >&5
6430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431  (exit $ac_status); } &&
6432	 { ac_try='test -z "$ac_c_werror_flag"
6433			 || test ! -s conftest.err'
6434  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435  (eval $ac_try) 2>&5
6436  ac_status=$?
6437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438  (exit $ac_status); }; } &&
6439	 { ac_try='test -s conftest$ac_exeext'
6440  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6441  (eval $ac_try) 2>&5
6442  ac_status=$?
6443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444  (exit $ac_status); }; }; then
6445  echo "$as_me:$LINENO: result: using V8 regcomp" >&5
6446echo "${ECHO_T}using V8 regcomp" >&6; cat >>confdefs.h <<\_ACEOF
6447#define HAVE_V8_REGCOMP 1
6448_ACEOF
6449 have_regex=yes
6450else
6451  echo "$as_me: failed program was:" >&5
6452sed 's/^/| /' conftest.$ac_ext >&5
6453
6454fi
6455rm -f conftest.err conftest.$ac_objext \
6456      conftest$ac_exeext conftest.$ac_ext
6457fi
6458fi
6459
6460if test $have_regex = no && test -f ${srcdir}/regexp.c; then
6461if test $WANT_REGEX = auto -o $WANT_REGEX = regcomp-local; then
6462echo "$as_me:$LINENO: result: using V8 regcomp -- local source" >&5
6463echo "${ECHO_T}using V8 regcomp -- local source" >&6; cat >>confdefs.h <<\_ACEOF
6464#define HAVE_V8_REGCOMP 1
6465_ACEOF
6466 cat >>confdefs.h <<\_ACEOF
6467#define HAVE_REGEXEC2 1
6468_ACEOF
6469 REGEX_O='regexp.$(O)'  have_regex=yes
6470fi
6471fi
6472
6473if test $have_regex = no; then
6474if test $WANT_REGEX = auto -o $WANT_REGEX = re_comp; then
6475echo "$as_me:$LINENO: result: using re_comp" >&5
6476echo "${ECHO_T}using re_comp" >&6; echo "$as_me:$LINENO: checking for re_comp" >&5
6477echo $ECHO_N "checking for re_comp... $ECHO_C" >&6
6478if test "${ac_cv_func_re_comp+set}" = set; then
6479  echo $ECHO_N "(cached) $ECHO_C" >&6
6480else
6481  cat >conftest.$ac_ext <<_ACEOF
6482/* confdefs.h.  */
6483_ACEOF
6484cat confdefs.h >>conftest.$ac_ext
6485cat >>conftest.$ac_ext <<_ACEOF
6486/* end confdefs.h.  */
6487/* Define re_comp to an innocuous variant, in case <limits.h> declares re_comp.
6488   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6489#define re_comp innocuous_re_comp
6490
6491/* System header to define __stub macros and hopefully few prototypes,
6492    which can conflict with char re_comp (); below.
6493    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6494    <limits.h> exists even on freestanding compilers.  */
6495
6496#ifdef __STDC__
6497# include <limits.h>
6498#else
6499# include <assert.h>
6500#endif
6501
6502#undef re_comp
6503
6504/* Override any gcc2 internal prototype to avoid an error.  */
6505#ifdef __cplusplus
6506extern "C"
6507{
6508#endif
6509/* We use char because int might match the return type of a gcc2
6510   builtin and then its argument prototype would still apply.  */
6511char re_comp ();
6512/* The GNU C library defines this for functions which it implements
6513    to always fail with ENOSYS.  Some functions are actually named
6514    something starting with __ and the normal name is an alias.  */
6515#if defined (__stub_re_comp) || defined (__stub___re_comp)
6516choke me
6517#else
6518char (*f) () = re_comp;
6519#endif
6520#ifdef __cplusplus
6521}
6522#endif
6523
6524int
6525main ()
6526{
6527return f != re_comp;
6528  ;
6529  return 0;
6530}
6531_ACEOF
6532rm -f conftest.$ac_objext conftest$ac_exeext
6533if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6534  (eval $ac_link) 2>conftest.er1
6535  ac_status=$?
6536  grep -v '^ *+' conftest.er1 >conftest.err
6537  rm -f conftest.er1
6538  cat conftest.err >&5
6539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540  (exit $ac_status); } &&
6541	 { ac_try='test -z "$ac_c_werror_flag"
6542			 || test ! -s conftest.err'
6543  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6544  (eval $ac_try) 2>&5
6545  ac_status=$?
6546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547  (exit $ac_status); }; } &&
6548	 { ac_try='test -s conftest$ac_exeext'
6549  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6550  (eval $ac_try) 2>&5
6551  ac_status=$?
6552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553  (exit $ac_status); }; }; then
6554  ac_cv_func_re_comp=yes
6555else
6556  echo "$as_me: failed program was:" >&5
6557sed 's/^/| /' conftest.$ac_ext >&5
6558
6559ac_cv_func_re_comp=no
6560fi
6561rm -f conftest.err conftest.$ac_objext \
6562      conftest$ac_exeext conftest.$ac_ext
6563fi
6564echo "$as_me:$LINENO: result: $ac_cv_func_re_comp" >&5
6565echo "${ECHO_T}$ac_cv_func_re_comp" >&6
6566if test $ac_cv_func_re_comp = yes; then
6567  cat >>confdefs.h <<\_ACEOF
6568#define HAVE_RE_COMP 1
6569_ACEOF
6570 have_regex=yes
6571fi
6572
6573fi
6574fi
6575
6576if test $have_regex = no; then
6577echo "$as_me:$LINENO: result: cannot find regular expression library" >&5
6578echo "${ECHO_T}cannot find regular expression library" >&6; cat >>confdefs.h <<\_ACEOF
6579#define NO_REGEX 1
6580_ACEOF
6581
6582fi
6583fi
6584
6585case $msb_enable in
6586yes) echo "$as_me:$LINENO: result: enable the MSB of non ASCII characters" >&5
6587echo "${ECHO_T}enable the MSB of non ASCII characters" >&6
6588     cat >>confdefs.h <<\_ACEOF
6589#define MSB_ENABLE 1
6590_ACEOF
6591;;
6592no)  echo "$as_me:$LINENO: result: disable the MSB of non ASCII characters" >&5
6593echo "${ECHO_T}disable the MSB of non ASCII characters" >&6
6594     cat >>confdefs.h <<\_ACEOF
6595#define MSB_ENABLE 0
6596_ACEOF
6597;;
6598unknown)
6599     if test $have_regex_cs = no; then
6600     echo "$as_me:$LINENO: result: decide to enable the MSB of non ASCII characters" >&5
6601echo "${ECHO_T}decide to enable the MSB of non ASCII characters" >&6
6602     cat >>confdefs.h <<\_ACEOF
6603#define MSB_ENABLE 1
6604_ACEOF
6605
6606     else
6607     echo "$as_me:$LINENO: result: decide to disable the MSB of non ASCII characters" >&5
6608echo "${ECHO_T}decide to disable the MSB of non ASCII characters" >&6
6609     cat >>confdefs.h <<\_ACEOF
6610#define MSB_ENABLE 0
6611_ACEOF
6612
6613     fi;;
6614esac
6615
6616
6617# Check whether --with-editor or --without-editor was given.
6618if test "${with_editor+set}" = set; then
6619  withval="$with_editor"
6620  cat >>confdefs.h <<_ACEOF
6621#define EDIT_PGM "$withval"
6622_ACEOF
6623
6624else
6625  cat >>confdefs.h <<\_ACEOF
6626#define EDIT_PGM "vi"
6627_ACEOF
6628
6629fi;
6630
6631
6632
6633
6634          ac_config_files="$ac_config_files Makefile"
6635
6636cat >confcache <<\_ACEOF
6637# This file is a shell script that caches the results of configure
6638# tests run on this system so they can be shared between configure
6639# scripts and configure runs, see configure's option --config-cache.
6640# It is not useful on other systems.  If it contains results you don't
6641# want to keep, you may remove or edit it.
6642#
6643# config.status only pays attention to the cache file if you give it
6644# the --recheck option to rerun configure.
6645#
6646# `ac_cv_env_foo' variables (set or unset) will be overridden when
6647# loading this file, other *unset* `ac_cv_foo' will be assigned the
6648# following values.
6649
6650_ACEOF
6651
6652# The following way of writing the cache mishandles newlines in values,
6653# but we know of no workaround that is simple, portable, and efficient.
6654# So, don't put newlines in cache variables' values.
6655# Ultrix sh set writes to stderr and can't be redirected directly,
6656# and sets the high bit in the cache file unless we assign to the vars.
6657{
6658  (set) 2>&1 |
6659    case `(ac_space=' '; set | grep ac_space) 2>&1` in
6660    *ac_space=\ *)
6661      # `set' does not quote correctly, so add quotes (double-quote
6662      # substitution turns \\\\ into \\, and sed turns \\ into \).
6663      sed -n \
6664	"s/'/'\\\\''/g;
6665	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6666      ;;
6667    *)
6668      # `set' quotes correctly as required by POSIX, so do not add quotes.
6669      sed -n \
6670	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6671      ;;
6672    esac;
6673} |
6674  sed '
6675     t clear
6676     : clear
6677     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6678     t end
6679     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6680     : end' >>confcache
6681if diff $cache_file confcache >/dev/null 2>&1; then :; else
6682  if test -w $cache_file; then
6683    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6684    cat confcache >$cache_file
6685  else
6686    echo "not updating unwritable cache $cache_file"
6687  fi
6688fi
6689rm -f confcache
6690
6691test "x$prefix" = xNONE && prefix=$ac_default_prefix
6692# Let make expand exec_prefix.
6693test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6694
6695# VPATH may cause trouble with some makes, so we remove $(srcdir),
6696# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6697# trailing colons and then remove the whole line if VPATH becomes empty
6698# (actually we leave an empty line to preserve line numbers).
6699if test "x$srcdir" = x.; then
6700  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
6701s/:*\$(srcdir):*/:/;
6702s/:*\${srcdir}:*/:/;
6703s/:*@srcdir@:*/:/;
6704s/^\([^=]*=[	 ]*\):*/\1/;
6705s/:*$//;
6706s/^[^=]*=[	 ]*$//;
6707}'
6708fi
6709
6710DEFS=-DHAVE_CONFIG_H
6711
6712ac_libobjs=
6713ac_ltlibobjs=
6714for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6715  # 1. Remove the extension, and $U if already installed.
6716  ac_i=`echo "$ac_i" |
6717	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6718  # 2. Add them.
6719  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6720  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6721done
6722LIBOBJS=$ac_libobjs
6723
6724LTLIBOBJS=$ac_ltlibobjs
6725
6726
6727
6728: ${CONFIG_STATUS=./config.status}
6729ac_clean_files_save=$ac_clean_files
6730ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6731{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6732echo "$as_me: creating $CONFIG_STATUS" >&6;}
6733cat >$CONFIG_STATUS <<_ACEOF
6734#! $SHELL
6735# Generated by $as_me.
6736# Run this file to recreate the current configuration.
6737# Compiler output produced by configure, useful for debugging
6738# configure, is in config.log if it exists.
6739
6740debug=false
6741ac_cs_recheck=false
6742ac_cs_silent=false
6743SHELL=\${CONFIG_SHELL-$SHELL}
6744_ACEOF
6745
6746cat >>$CONFIG_STATUS <<\_ACEOF
6747## --------------------- ##
6748## M4sh Initialization.  ##
6749## --------------------- ##
6750
6751# Be Bourne compatible
6752if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6753  emulate sh
6754  NULLCMD=:
6755  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6756  # is contrary to our usage.  Disable this feature.
6757  alias -g '${1+"$@"}'='"$@"'
6758elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6759  set -o posix
6760fi
6761DUALCASE=1; export DUALCASE # for MKS sh
6762
6763# Support unset when possible.
6764if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6765  as_unset=unset
6766else
6767  as_unset=false
6768fi
6769
6770
6771# Work around bugs in pre-3.0 UWIN ksh.
6772$as_unset ENV MAIL MAILPATH
6773PS1='$ '
6774PS2='> '
6775PS4='+ '
6776
6777# NLS nuisances.
6778for as_var in \
6779  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6780  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6781  LC_TELEPHONE LC_TIME
6782do
6783  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6784    eval $as_var=C; export $as_var
6785  else
6786    $as_unset $as_var
6787  fi
6788done
6789
6790# Required to use basename.
6791if expr a : '\(a\)' >/dev/null 2>&1; then
6792  as_expr=expr
6793else
6794  as_expr=false
6795fi
6796
6797if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6798  as_basename=basename
6799else
6800  as_basename=false
6801fi
6802
6803
6804# Name of the executable.
6805as_me=`$as_basename "$0" ||
6806$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6807	 X"$0" : 'X\(//\)$' \| \
6808	 X"$0" : 'X\(/\)$' \| \
6809	 .     : '\(.\)' 2>/dev/null ||
6810echo X/"$0" |
6811    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6812  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
6813  	  /^X\/\(\/\).*/{ s//\1/; q; }
6814  	  s/.*/./; q'`
6815
6816
6817# PATH needs CR, and LINENO needs CR and PATH.
6818# Avoid depending upon Character Ranges.
6819as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6820as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6821as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6822as_cr_digits='0123456789'
6823as_cr_alnum=$as_cr_Letters$as_cr_digits
6824
6825# The user is always right.
6826if test "${PATH_SEPARATOR+set}" != set; then
6827  echo "#! /bin/sh" >conf$$.sh
6828  echo  "exit 0"   >>conf$$.sh
6829  chmod +x conf$$.sh
6830  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6831    PATH_SEPARATOR=';'
6832  else
6833    PATH_SEPARATOR=:
6834  fi
6835  rm -f conf$$.sh
6836fi
6837
6838
6839  as_lineno_1=$LINENO
6840  as_lineno_2=$LINENO
6841  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6842  test "x$as_lineno_1" != "x$as_lineno_2" &&
6843  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
6844  # Find who we are.  Look in the path if we contain no path at all
6845  # relative or not.
6846  case $0 in
6847    *[\\/]* ) as_myself=$0 ;;
6848    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6849for as_dir in $PATH
6850do
6851  IFS=$as_save_IFS
6852  test -z "$as_dir" && as_dir=.
6853  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6854done
6855
6856       ;;
6857  esac
6858  # We did not find ourselves, most probably we were run as `sh COMMAND'
6859  # in which case we are not to be found in the path.
6860  if test "x$as_myself" = x; then
6861    as_myself=$0
6862  fi
6863  if test ! -f "$as_myself"; then
6864    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6865echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6866   { (exit 1); exit 1; }; }
6867  fi
6868  case $CONFIG_SHELL in
6869  '')
6870    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6871for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6872do
6873  IFS=$as_save_IFS
6874  test -z "$as_dir" && as_dir=.
6875  for as_base in sh bash ksh sh5; do
6876	 case $as_dir in
6877	 /*)
6878	   if ("$as_dir/$as_base" -c '
6879  as_lineno_1=$LINENO
6880  as_lineno_2=$LINENO
6881  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6882  test "x$as_lineno_1" != "x$as_lineno_2" &&
6883  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
6884	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6885	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6886	     CONFIG_SHELL=$as_dir/$as_base
6887	     export CONFIG_SHELL
6888	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6889	   fi;;
6890	 esac
6891       done
6892done
6893;;
6894  esac
6895
6896  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6897  # uniformly replaced by the line number.  The first 'sed' inserts a
6898  # line-number line before each line; the second 'sed' does the real
6899  # work.  The second script uses 'N' to pair each line-number line
6900  # with the numbered line, and appends trailing '-' during
6901  # substitution so that $LINENO is not a special case at line end.
6902  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6903  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
6904  sed '=' <$as_myself |
6905    sed '
6906      N
6907      s,$,-,
6908      : loop
6909      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6910      t loop
6911      s,-$,,
6912      s,^['$as_cr_digits']*\n,,
6913    ' >$as_me.lineno &&
6914  chmod +x $as_me.lineno ||
6915    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6916echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6917   { (exit 1); exit 1; }; }
6918
6919  # Don't try to exec as it changes $[0], causing all sort of problems
6920  # (the dirname of $[0] is not the place where we might find the
6921  # original and so on.  Autoconf is especially sensible to this).
6922  . ./$as_me.lineno
6923  # Exit status is that of the last command.
6924  exit
6925}
6926
6927
6928case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6929  *c*,-n*) ECHO_N= ECHO_C='
6930' ECHO_T='	' ;;
6931  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6932  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
6933esac
6934
6935if expr a : '\(a\)' >/dev/null 2>&1; then
6936  as_expr=expr
6937else
6938  as_expr=false
6939fi
6940
6941rm -f conf$$ conf$$.exe conf$$.file
6942echo >conf$$.file
6943if ln -s conf$$.file conf$$ 2>/dev/null; then
6944  # We could just check for DJGPP; but this test a) works b) is more generic
6945  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6946  if test -f conf$$.exe; then
6947    # Don't use ln at all; we don't have any links
6948    as_ln_s='cp -p'
6949  else
6950    as_ln_s='ln -s'
6951  fi
6952elif ln conf$$.file conf$$ 2>/dev/null; then
6953  as_ln_s=ln
6954else
6955  as_ln_s='cp -p'
6956fi
6957rm -f conf$$ conf$$.exe conf$$.file
6958
6959if mkdir -p . 2>/dev/null; then
6960  as_mkdir_p=:
6961else
6962  test -d ./-p && rmdir ./-p
6963  as_mkdir_p=false
6964fi
6965
6966as_executable_p="test -f"
6967
6968# Sed expression to map a string onto a valid CPP name.
6969as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6970
6971# Sed expression to map a string onto a valid variable name.
6972as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6973
6974
6975# IFS
6976# We need space, tab and new line, in precisely that order.
6977as_nl='
6978'
6979IFS=" 	$as_nl"
6980
6981# CDPATH.
6982$as_unset CDPATH
6983
6984exec 6>&1
6985
6986# Open the log real soon, to keep \$[0] and so on meaningful, and to
6987# report actual input values of CONFIG_FILES etc. instead of their
6988# values after options handling.  Logging --version etc. is OK.
6989exec 5>>config.log
6990{
6991  echo
6992  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6993## Running $as_me. ##
6994_ASBOX
6995} >&5
6996cat >&5 <<_CSEOF
6997
6998This file was extended by less $as_me 1, which was
6999generated by GNU Autoconf 2.59.  Invocation command line was
7000
7001  CONFIG_FILES    = $CONFIG_FILES
7002  CONFIG_HEADERS  = $CONFIG_HEADERS
7003  CONFIG_LINKS    = $CONFIG_LINKS
7004  CONFIG_COMMANDS = $CONFIG_COMMANDS
7005  $ $0 $@
7006
7007_CSEOF
7008echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7009echo >&5
7010_ACEOF
7011
7012# Files that config.status was made for.
7013if test -n "$ac_config_files"; then
7014  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7015fi
7016
7017if test -n "$ac_config_headers"; then
7018  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7019fi
7020
7021if test -n "$ac_config_links"; then
7022  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7023fi
7024
7025if test -n "$ac_config_commands"; then
7026  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7027fi
7028
7029cat >>$CONFIG_STATUS <<\_ACEOF
7030
7031ac_cs_usage="\
7032\`$as_me' instantiates files from templates according to the
7033current configuration.
7034
7035Usage: $0 [OPTIONS] [FILE]...
7036
7037  -h, --help       print this help, then exit
7038  -V, --version    print version number, then exit
7039  -q, --quiet      do not print progress messages
7040  -d, --debug      don't remove temporary files
7041      --recheck    update $as_me by reconfiguring in the same conditions
7042  --file=FILE[:TEMPLATE]
7043		   instantiate the configuration file FILE
7044  --header=FILE[:TEMPLATE]
7045		   instantiate the configuration header FILE
7046
7047Configuration files:
7048$config_files
7049
7050Configuration headers:
7051$config_headers
7052
7053Report bugs to <bug-autoconf@gnu.org>."
7054_ACEOF
7055
7056cat >>$CONFIG_STATUS <<_ACEOF
7057ac_cs_version="\\
7058less config.status 1
7059configured by $0, generated by GNU Autoconf 2.59,
7060  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7061
7062Copyright (C) 2003 Free Software Foundation, Inc.
7063This config.status script is free software; the Free Software Foundation
7064gives unlimited permission to copy, distribute and modify it."
7065srcdir=$srcdir
7066INSTALL="$INSTALL"
7067_ACEOF
7068
7069cat >>$CONFIG_STATUS <<\_ACEOF
7070# If no file are specified by the user, then we need to provide default
7071# value.  By we need to know if files were specified by the user.
7072ac_need_defaults=:
7073while test $# != 0
7074do
7075  case $1 in
7076  --*=*)
7077    ac_option=`expr "x$1" : 'x\([^=]*\)='`
7078    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7079    ac_shift=:
7080    ;;
7081  -*)
7082    ac_option=$1
7083    ac_optarg=$2
7084    ac_shift=shift
7085    ;;
7086  *) # This is not an option, so the user has probably given explicit
7087     # arguments.
7088     ac_option=$1
7089     ac_need_defaults=false;;
7090  esac
7091
7092  case $ac_option in
7093  # Handling of the options.
7094_ACEOF
7095cat >>$CONFIG_STATUS <<\_ACEOF
7096  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7097    ac_cs_recheck=: ;;
7098  --version | --vers* | -V )
7099    echo "$ac_cs_version"; exit 0 ;;
7100  --he | --h)
7101    # Conflict between --help and --header
7102    { { echo "$as_me:$LINENO: error: ambiguous option: $1
7103Try \`$0 --help' for more information." >&5
7104echo "$as_me: error: ambiguous option: $1
7105Try \`$0 --help' for more information." >&2;}
7106   { (exit 1); exit 1; }; };;
7107  --help | --hel | -h )
7108    echo "$ac_cs_usage"; exit 0 ;;
7109  --debug | --d* | -d )
7110    debug=: ;;
7111  --file | --fil | --fi | --f )
7112    $ac_shift
7113    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7114    ac_need_defaults=false;;
7115  --header | --heade | --head | --hea )
7116    $ac_shift
7117    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7118    ac_need_defaults=false;;
7119  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7120  | -silent | --silent | --silen | --sile | --sil | --si | --s)
7121    ac_cs_silent=: ;;
7122
7123  # This is an error.
7124  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7125Try \`$0 --help' for more information." >&5
7126echo "$as_me: error: unrecognized option: $1
7127Try \`$0 --help' for more information." >&2;}
7128   { (exit 1); exit 1; }; } ;;
7129
7130  *) ac_config_targets="$ac_config_targets $1" ;;
7131
7132  esac
7133  shift
7134done
7135
7136ac_configure_extra_args=
7137
7138if $ac_cs_silent; then
7139  exec 6>/dev/null
7140  ac_configure_extra_args="$ac_configure_extra_args --silent"
7141fi
7142
7143_ACEOF
7144cat >>$CONFIG_STATUS <<_ACEOF
7145if \$ac_cs_recheck; then
7146  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7147  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7148fi
7149
7150_ACEOF
7151
7152
7153
7154
7155
7156cat >>$CONFIG_STATUS <<\_ACEOF
7157for ac_config_target in $ac_config_targets
7158do
7159  case "$ac_config_target" in
7160  # Handling of arguments.
7161  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7162  "defines.h" ) CONFIG_HEADERS="$CONFIG_HEADERS defines.h" ;;
7163  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7164echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7165   { (exit 1); exit 1; }; };;
7166  esac
7167done
7168
7169# If the user did not use the arguments to specify the items to instantiate,
7170# then the envvar interface is used.  Set only those that are not.
7171# We use the long form for the default assignment because of an extremely
7172# bizarre bug on SunOS 4.1.3.
7173if $ac_need_defaults; then
7174  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7175  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7176fi
7177
7178# Have a temporary directory for convenience.  Make it in the build tree
7179# simply because there is no reason to put it here, and in addition,
7180# creating and moving files from /tmp can sometimes cause problems.
7181# Create a temporary directory, and hook for its removal unless debugging.
7182$debug ||
7183{
7184  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7185  trap '{ (exit 1); exit 1; }' 1 2 13 15
7186}
7187
7188# Create a (secure) tmp directory for tmp files.
7189
7190{
7191  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7192  test -n "$tmp" && test -d "$tmp"
7193}  ||
7194{
7195  tmp=./confstat$$-$RANDOM
7196  (umask 077 && mkdir $tmp)
7197} ||
7198{
7199   echo "$me: cannot create a temporary directory in ." >&2
7200   { (exit 1); exit 1; }
7201}
7202
7203_ACEOF
7204
7205cat >>$CONFIG_STATUS <<_ACEOF
7206
7207#
7208# CONFIG_FILES section.
7209#
7210
7211# No need to generate the scripts if there are no CONFIG_FILES.
7212# This happens for instance when ./config.status config.h
7213if test -n "\$CONFIG_FILES"; then
7214  # Protect against being on the right side of a sed subst in config.status.
7215  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7216   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7217s,@SHELL@,$SHELL,;t t
7218s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7219s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7220s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7221s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7222s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7223s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7224s,@exec_prefix@,$exec_prefix,;t t
7225s,@prefix@,$prefix,;t t
7226s,@program_transform_name@,$program_transform_name,;t t
7227s,@bindir@,$bindir,;t t
7228s,@sbindir@,$sbindir,;t t
7229s,@libexecdir@,$libexecdir,;t t
7230s,@datadir@,$datadir,;t t
7231s,@sysconfdir@,$sysconfdir,;t t
7232s,@sharedstatedir@,$sharedstatedir,;t t
7233s,@localstatedir@,$localstatedir,;t t
7234s,@libdir@,$libdir,;t t
7235s,@includedir@,$includedir,;t t
7236s,@oldincludedir@,$oldincludedir,;t t
7237s,@infodir@,$infodir,;t t
7238s,@mandir@,$mandir,;t t
7239s,@build_alias@,$build_alias,;t t
7240s,@host_alias@,$host_alias,;t t
7241s,@target_alias@,$target_alias,;t t
7242s,@DEFS@,$DEFS,;t t
7243s,@ECHO_C@,$ECHO_C,;t t
7244s,@ECHO_N@,$ECHO_N,;t t
7245s,@ECHO_T@,$ECHO_T,;t t
7246s,@LIBS@,$LIBS,;t t
7247s,@CC@,$CC,;t t
7248s,@CFLAGS@,$CFLAGS,;t t
7249s,@LDFLAGS@,$LDFLAGS,;t t
7250s,@CPPFLAGS@,$CPPFLAGS,;t t
7251s,@ac_ct_CC@,$ac_ct_CC,;t t
7252s,@EXEEXT@,$EXEEXT,;t t
7253s,@OBJEXT@,$OBJEXT,;t t
7254s,@CPP@,$CPP,;t t
7255s,@EGREP@,$EGREP,;t t
7256s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7257s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7258s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7259s,@REGEX_O@,$REGEX_O,;t t
7260s,@LIBOBJS@,$LIBOBJS,;t t
7261s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7262CEOF
7263
7264_ACEOF
7265
7266  cat >>$CONFIG_STATUS <<\_ACEOF
7267  # Split the substitutions into bite-sized pieces for seds with
7268  # small command number limits, like on Digital OSF/1 and HP-UX.
7269  ac_max_sed_lines=48
7270  ac_sed_frag=1 # Number of current file.
7271  ac_beg=1 # First line for current file.
7272  ac_end=$ac_max_sed_lines # Line after last line for current file.
7273  ac_more_lines=:
7274  ac_sed_cmds=
7275  while $ac_more_lines; do
7276    if test $ac_beg -gt 1; then
7277      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7278    else
7279      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7280    fi
7281    if test ! -s $tmp/subs.frag; then
7282      ac_more_lines=false
7283    else
7284      # The purpose of the label and of the branching condition is to
7285      # speed up the sed processing (if there are no `@' at all, there
7286      # is no need to browse any of the substitutions).
7287      # These are the two extra sed commands mentioned above.
7288      (echo ':t
7289  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7290      if test -z "$ac_sed_cmds"; then
7291	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7292      else
7293	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7294      fi
7295      ac_sed_frag=`expr $ac_sed_frag + 1`
7296      ac_beg=$ac_end
7297      ac_end=`expr $ac_end + $ac_max_sed_lines`
7298    fi
7299  done
7300  if test -z "$ac_sed_cmds"; then
7301    ac_sed_cmds=cat
7302  fi
7303fi # test -n "$CONFIG_FILES"
7304
7305_ACEOF
7306cat >>$CONFIG_STATUS <<\_ACEOF
7307for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7308  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7309  case $ac_file in
7310  - | *:- | *:-:* ) # input from stdin
7311	cat >$tmp/stdin
7312	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7313	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7314  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7315	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7316  * )   ac_file_in=$ac_file.in ;;
7317  esac
7318
7319  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7320  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7321$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7322	 X"$ac_file" : 'X\(//\)[^/]' \| \
7323	 X"$ac_file" : 'X\(//\)$' \| \
7324	 X"$ac_file" : 'X\(/\)' \| \
7325	 .     : '\(.\)' 2>/dev/null ||
7326echo X"$ac_file" |
7327    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7328  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7329  	  /^X\(\/\/\)$/{ s//\1/; q; }
7330  	  /^X\(\/\).*/{ s//\1/; q; }
7331  	  s/.*/./; q'`
7332  { if $as_mkdir_p; then
7333    mkdir -p "$ac_dir"
7334  else
7335    as_dir="$ac_dir"
7336    as_dirs=
7337    while test ! -d "$as_dir"; do
7338      as_dirs="$as_dir $as_dirs"
7339      as_dir=`(dirname "$as_dir") 2>/dev/null ||
7340$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7341	 X"$as_dir" : 'X\(//\)[^/]' \| \
7342	 X"$as_dir" : 'X\(//\)$' \| \
7343	 X"$as_dir" : 'X\(/\)' \| \
7344	 .     : '\(.\)' 2>/dev/null ||
7345echo X"$as_dir" |
7346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7347  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7348  	  /^X\(\/\/\)$/{ s//\1/; q; }
7349  	  /^X\(\/\).*/{ s//\1/; q; }
7350  	  s/.*/./; q'`
7351    done
7352    test ! -n "$as_dirs" || mkdir $as_dirs
7353  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7354echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7355   { (exit 1); exit 1; }; }; }
7356
7357  ac_builddir=.
7358
7359if test "$ac_dir" != .; then
7360  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7361  # A "../" for each directory in $ac_dir_suffix.
7362  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7363else
7364  ac_dir_suffix= ac_top_builddir=
7365fi
7366
7367case $srcdir in
7368  .)  # No --srcdir option.  We are building in place.
7369    ac_srcdir=.
7370    if test -z "$ac_top_builddir"; then
7371       ac_top_srcdir=.
7372    else
7373       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7374    fi ;;
7375  [\\/]* | ?:[\\/]* )  # Absolute path.
7376    ac_srcdir=$srcdir$ac_dir_suffix;
7377    ac_top_srcdir=$srcdir ;;
7378  *) # Relative path.
7379    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7380    ac_top_srcdir=$ac_top_builddir$srcdir ;;
7381esac
7382
7383# Do not use `cd foo && pwd` to compute absolute paths, because
7384# the directories may not exist.
7385case `pwd` in
7386.) ac_abs_builddir="$ac_dir";;
7387*)
7388  case "$ac_dir" in
7389  .) ac_abs_builddir=`pwd`;;
7390  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7391  *) ac_abs_builddir=`pwd`/"$ac_dir";;
7392  esac;;
7393esac
7394case $ac_abs_builddir in
7395.) ac_abs_top_builddir=${ac_top_builddir}.;;
7396*)
7397  case ${ac_top_builddir}. in
7398  .) ac_abs_top_builddir=$ac_abs_builddir;;
7399  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7400  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7401  esac;;
7402esac
7403case $ac_abs_builddir in
7404.) ac_abs_srcdir=$ac_srcdir;;
7405*)
7406  case $ac_srcdir in
7407  .) ac_abs_srcdir=$ac_abs_builddir;;
7408  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7409  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7410  esac;;
7411esac
7412case $ac_abs_builddir in
7413.) ac_abs_top_srcdir=$ac_top_srcdir;;
7414*)
7415  case $ac_top_srcdir in
7416  .) ac_abs_top_srcdir=$ac_abs_builddir;;
7417  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7418  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7419  esac;;
7420esac
7421
7422
7423  case $INSTALL in
7424  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7425  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7426  esac
7427
7428  if test x"$ac_file" != x-; then
7429    { echo "$as_me:$LINENO: creating $ac_file" >&5
7430echo "$as_me: creating $ac_file" >&6;}
7431    rm -f "$ac_file"
7432  fi
7433  # Let's still pretend it is `configure' which instantiates (i.e., don't
7434  # use $as_me), people would be surprised to read:
7435  #    /* config.h.  Generated by config.status.  */
7436  if test x"$ac_file" = x-; then
7437    configure_input=
7438  else
7439    configure_input="$ac_file.  "
7440  fi
7441  configure_input=$configure_input"Generated from `echo $ac_file_in |
7442				     sed 's,.*/,,'` by configure."
7443
7444  # First look for the input files in the build tree, otherwise in the
7445  # src tree.
7446  ac_file_inputs=`IFS=:
7447    for f in $ac_file_in; do
7448      case $f in
7449      -) echo $tmp/stdin ;;
7450      [\\/$]*)
7451	 # Absolute (can't be DOS-style, as IFS=:)
7452	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7453echo "$as_me: error: cannot find input file: $f" >&2;}
7454   { (exit 1); exit 1; }; }
7455	 echo "$f";;
7456      *) # Relative
7457	 if test -f "$f"; then
7458	   # Build tree
7459	   echo "$f"
7460	 elif test -f "$srcdir/$f"; then
7461	   # Source tree
7462	   echo "$srcdir/$f"
7463	 else
7464	   # /dev/null tree
7465	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7466echo "$as_me: error: cannot find input file: $f" >&2;}
7467   { (exit 1); exit 1; }; }
7468	 fi;;
7469      esac
7470    done` || { (exit 1); exit 1; }
7471_ACEOF
7472cat >>$CONFIG_STATUS <<_ACEOF
7473  sed "$ac_vpsub
7474$extrasub
7475_ACEOF
7476cat >>$CONFIG_STATUS <<\_ACEOF
7477:t
7478/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7479s,@configure_input@,$configure_input,;t t
7480s,@srcdir@,$ac_srcdir,;t t
7481s,@abs_srcdir@,$ac_abs_srcdir,;t t
7482s,@top_srcdir@,$ac_top_srcdir,;t t
7483s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7484s,@builddir@,$ac_builddir,;t t
7485s,@abs_builddir@,$ac_abs_builddir,;t t
7486s,@top_builddir@,$ac_top_builddir,;t t
7487s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7488s,@INSTALL@,$ac_INSTALL,;t t
7489" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7490  rm -f $tmp/stdin
7491  if test x"$ac_file" != x-; then
7492    mv $tmp/out $ac_file
7493  else
7494    cat $tmp/out
7495    rm -f $tmp/out
7496  fi
7497
7498done
7499_ACEOF
7500cat >>$CONFIG_STATUS <<\_ACEOF
7501
7502#
7503# CONFIG_HEADER section.
7504#
7505
7506# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7507# NAME is the cpp macro being defined and VALUE is the value it is being given.
7508#
7509# ac_d sets the value in "#define NAME VALUE" lines.
7510ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
7511ac_dB='[	 ].*$,\1#\2'
7512ac_dC=' '
7513ac_dD=',;t'
7514# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7515ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
7516ac_uB='$,\1#\2define\3'
7517ac_uC=' '
7518ac_uD=',;t'
7519
7520for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7521  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7522  case $ac_file in
7523  - | *:- | *:-:* ) # input from stdin
7524	cat >$tmp/stdin
7525	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7526	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7527  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7528	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7529  * )   ac_file_in=$ac_file.in ;;
7530  esac
7531
7532  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7533echo "$as_me: creating $ac_file" >&6;}
7534
7535  # First look for the input files in the build tree, otherwise in the
7536  # src tree.
7537  ac_file_inputs=`IFS=:
7538    for f in $ac_file_in; do
7539      case $f in
7540      -) echo $tmp/stdin ;;
7541      [\\/$]*)
7542	 # Absolute (can't be DOS-style, as IFS=:)
7543	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7544echo "$as_me: error: cannot find input file: $f" >&2;}
7545   { (exit 1); exit 1; }; }
7546	 # Do quote $f, to prevent DOS paths from being IFS'd.
7547	 echo "$f";;
7548      *) # Relative
7549	 if test -f "$f"; then
7550	   # Build tree
7551	   echo "$f"
7552	 elif test -f "$srcdir/$f"; then
7553	   # Source tree
7554	   echo "$srcdir/$f"
7555	 else
7556	   # /dev/null tree
7557	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7558echo "$as_me: error: cannot find input file: $f" >&2;}
7559   { (exit 1); exit 1; }; }
7560	 fi;;
7561      esac
7562    done` || { (exit 1); exit 1; }
7563  # Remove the trailing spaces.
7564  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
7565
7566_ACEOF
7567
7568# Transform confdefs.h into two sed scripts, `conftest.defines' and
7569# `conftest.undefs', that substitutes the proper values into
7570# config.h.in to produce config.h.  The first handles `#define'
7571# templates, and the second `#undef' templates.
7572# And first: Protect against being on the right side of a sed subst in
7573# config.status.  Protect against being in an unquoted here document
7574# in config.status.
7575rm -f conftest.defines conftest.undefs
7576# Using a here document instead of a string reduces the quoting nightmare.
7577# Putting comments in sed scripts is not portable.
7578#
7579# `end' is used to avoid that the second main sed command (meant for
7580# 0-ary CPP macros) applies to n-ary macro definitions.
7581# See the Autoconf documentation for `clear'.
7582cat >confdef2sed.sed <<\_ACEOF
7583s/[\\&,]/\\&/g
7584s,[\\$`],\\&,g
7585t clear
7586: clear
7587s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7588t end
7589s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7590: end
7591_ACEOF
7592# If some macros were called several times there might be several times
7593# the same #defines, which is useless.  Nevertheless, we may not want to
7594# sort them, since we want the *last* AC-DEFINE to be honored.
7595uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7596sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7597rm -f confdef2sed.sed
7598
7599# This sed command replaces #undef with comments.  This is necessary, for
7600# example, in the case of _POSIX_SOURCE, which is predefined and required
7601# on some systems where configure will not decide to define it.
7602cat >>conftest.undefs <<\_ACEOF
7603s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7604_ACEOF
7605
7606# Break up conftest.defines because some shells have a limit on the size
7607# of here documents, and old seds have small limits too (100 cmds).
7608echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7609echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7610echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7611echo '  :' >>$CONFIG_STATUS
7612rm -f conftest.tail
7613while grep . conftest.defines >/dev/null
7614do
7615  # Write a limited-size here document to $tmp/defines.sed.
7616  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7617  # Speed up: don't consider the non `#define' lines.
7618  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
7619  # Work around the forget-to-reset-the-flag bug.
7620  echo 't clr' >>$CONFIG_STATUS
7621  echo ': clr' >>$CONFIG_STATUS
7622  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7623  echo 'CEOF
7624  sed -f $tmp/defines.sed $tmp/in >$tmp/out
7625  rm -f $tmp/in
7626  mv $tmp/out $tmp/in
7627' >>$CONFIG_STATUS
7628  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7629  rm -f conftest.defines
7630  mv conftest.tail conftest.defines
7631done
7632rm -f conftest.defines
7633echo '  fi # grep' >>$CONFIG_STATUS
7634echo >>$CONFIG_STATUS
7635
7636# Break up conftest.undefs because some shells have a limit on the size
7637# of here documents, and old seds have small limits too (100 cmds).
7638echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
7639rm -f conftest.tail
7640while grep . conftest.undefs >/dev/null
7641do
7642  # Write a limited-size here document to $tmp/undefs.sed.
7643  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7644  # Speed up: don't consider the non `#undef'
7645  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
7646  # Work around the forget-to-reset-the-flag bug.
7647  echo 't clr' >>$CONFIG_STATUS
7648  echo ': clr' >>$CONFIG_STATUS
7649  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7650  echo 'CEOF
7651  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7652  rm -f $tmp/in
7653  mv $tmp/out $tmp/in
7654' >>$CONFIG_STATUS
7655  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7656  rm -f conftest.undefs
7657  mv conftest.tail conftest.undefs
7658done
7659rm -f conftest.undefs
7660
7661cat >>$CONFIG_STATUS <<\_ACEOF
7662  # Let's still pretend it is `configure' which instantiates (i.e., don't
7663  # use $as_me), people would be surprised to read:
7664  #    /* config.h.  Generated by config.status.  */
7665  if test x"$ac_file" = x-; then
7666    echo "/* Generated by configure.  */" >$tmp/config.h
7667  else
7668    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
7669  fi
7670  cat $tmp/in >>$tmp/config.h
7671  rm -f $tmp/in
7672  if test x"$ac_file" != x-; then
7673    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7674      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7675echo "$as_me: $ac_file is unchanged" >&6;}
7676    else
7677      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7678$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7679	 X"$ac_file" : 'X\(//\)[^/]' \| \
7680	 X"$ac_file" : 'X\(//\)$' \| \
7681	 X"$ac_file" : 'X\(/\)' \| \
7682	 .     : '\(.\)' 2>/dev/null ||
7683echo X"$ac_file" |
7684    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7685  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7686  	  /^X\(\/\/\)$/{ s//\1/; q; }
7687  	  /^X\(\/\).*/{ s//\1/; q; }
7688  	  s/.*/./; q'`
7689      { if $as_mkdir_p; then
7690    mkdir -p "$ac_dir"
7691  else
7692    as_dir="$ac_dir"
7693    as_dirs=
7694    while test ! -d "$as_dir"; do
7695      as_dirs="$as_dir $as_dirs"
7696      as_dir=`(dirname "$as_dir") 2>/dev/null ||
7697$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7698	 X"$as_dir" : 'X\(//\)[^/]' \| \
7699	 X"$as_dir" : 'X\(//\)$' \| \
7700	 X"$as_dir" : 'X\(/\)' \| \
7701	 .     : '\(.\)' 2>/dev/null ||
7702echo X"$as_dir" |
7703    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7704  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7705  	  /^X\(\/\/\)$/{ s//\1/; q; }
7706  	  /^X\(\/\).*/{ s//\1/; q; }
7707  	  s/.*/./; q'`
7708    done
7709    test ! -n "$as_dirs" || mkdir $as_dirs
7710  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7711echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7712   { (exit 1); exit 1; }; }; }
7713
7714      rm -f $ac_file
7715      mv $tmp/config.h $ac_file
7716    fi
7717  else
7718    cat $tmp/config.h
7719    rm -f $tmp/config.h
7720  fi
7721done
7722_ACEOF
7723
7724cat >>$CONFIG_STATUS <<\_ACEOF
7725
7726{ (exit 0); exit 0; }
7727_ACEOF
7728chmod +x $CONFIG_STATUS
7729ac_clean_files=$ac_clean_files_save
7730
7731
7732# configure is writing to config.log, and then calls config.status.
7733# config.status does its own redirection, appending to config.log.
7734# Unfortunately, on DOS this fails, as config.log is still kept open
7735# by configure, so config.status won't be able to write to it; its
7736# output is simply discarded.  So we exec the FD to /dev/null,
7737# effectively closing config.log, so it can be properly (re)opened and
7738# appended to by config.status.  When coming back to configure, we
7739# need to make the FD available again.
7740if test "$no_create" != yes; then
7741  ac_cs_success=:
7742  ac_config_status_args=
7743  test "$silent" = yes &&
7744    ac_config_status_args="$ac_config_status_args --quiet"
7745  exec 5>/dev/null
7746  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7747  exec 5>>config.log
7748  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7749  # would make configure fail if this is the last instruction.
7750  $ac_cs_success || { (exit 1); exit 1; }
7751fi
7752
7753