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