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