2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.54 for less 1.
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 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
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
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
39 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
41 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
42 eval $as_var=C; export $as_var
48 # Required to use basename.
49 if expr a : '\(a\)' >/dev/null 2>&1; then
55 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
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 ||
69 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
70 /^X\/\(\/\/\)$/{ s//\1/; q; }
71 /^X\/\(\/\).*/{ s//\1/; q; }
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
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
88 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
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
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
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; }; }
125 case $CONFIG_SHELL in
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
135 if ("$as_dir/$as_base" -c '
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
145 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
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 |
166 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
169 s,^['$as_cr_digits']*\n,,
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; }; }
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).
179 # Exit status is that of the last command.
184 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
185 *c*,-n*) ECHO_N= ECHO_C='
187 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
188 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
191 if expr a : '\(a\)' >/dev/null 2>&1; then
197 rm -f conf$$ conf$$.exe 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
208 elif ln conf$$.file conf$$ 2>/dev/null; then
213 rm -f conf$$ conf$$.exe conf$$.file
215 if mkdir -p . 2>/dev/null; then
221 as_executable_p="test -f"
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"
226 # Sed expression to map a string onto a valid variable name.
227 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231 # We need space, tab and new line, in precisely that order.
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`
250 ac_default_prefix=/usr/local
251 ac_config_libobj_dir=.
256 SHELL=${CONFIG_SHELL-/bin/sh}
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}
263 # Identity of this package.
265 PACKAGE_TARNAME='less'
267 PACKAGE_STRING='less 1'
270 ac_unique_file="forwback.c"
271 # Factoring default headers for most tests.
272 ac_includes_default="\
275 # include <sys/types.h>
278 # include <sys/stat.h>
289 # if !STDC_HEADERS && HAVE_MEMORY_H
295 # include <strings.h>
298 # include <inttypes.h>
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'
311 # Initialize some variables set by options.
313 ac_init_version=false
314 # The variables have the same names as the options, with
315 # dashes changed to underlines.
323 program_transform_name=s,x,x,
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'
352 # If the previous option needs an argument, assign it.
353 if test -n "$ac_prev"; then
354 eval "$ac_prev=\$ac_option"
359 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
361 # Accept the important Cygnus configure options, so we can diagnose typos.
365 -bindir | --bindir | --bindi | --bind | --bin | --bi)
367 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
370 -build | --build | --buil | --bui | --bu)
371 ac_prev=build_alias ;;
372 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
373 build_alias=$ac_optarg ;;
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 ;;
383 cache_file=config.cache ;;
385 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
387 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
389 datadir=$ac_optarg ;;
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" ;;
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'`
408 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
411 eval "enable_$ac_feature='$ac_optarg'" ;;
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 ;;
422 -gas | --gas | --ga | --g)
423 # Obsolete; use --with-gas.
426 -help | --help | --hel | --he | -h)
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 ;;
433 -host | --host | --hos | --ho)
434 ac_prev=host_alias ;;
435 -host=* | --host=* | --hos=* | --ho=*)
436 host_alias=$ac_optarg ;;
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 ;;
445 -infodir | --infodir | --infodi | --infod | --info | --inf)
447 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
448 infodir=$ac_optarg ;;
450 -libdir | --libdir | --libdi | --libd)
452 -libdir=* | --libdir=* | --libdi=* | --libd=*)
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 ;;
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 ;;
471 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
473 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477 # Obsolete; use --without-fp.
480 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
481 | --no-cr | --no-c | -n)
484 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
485 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
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 ;;
497 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
499 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
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 ;;
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 ;;
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 ;;
533 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
534 | -silent | --silent | --silen | --sile | --sil)
537 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
539 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
541 sbindir=$ac_optarg ;;
543 -sharedstatedir | --sharedstatedir | --sharedstatedi \
544 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
545 | --sharedst | --shareds | --shared | --share | --shar \
547 ac_prev=sharedstatedir ;;
548 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
549 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
550 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
552 sharedstatedir=$ac_optarg ;;
554 -site | --site | --sit)
556 -site=* | --site=* | --sit=*)
559 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
561 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
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 ;;
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 ;;
576 -v | -verbose | --verbose | --verbos | --verbo | --verb)
579 -version | --version | --versio | --versi | --vers | -V)
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'`
590 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
593 eval "with_$ac_package='$ac_optarg'" ;;
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" ;;
605 # Obsolete; use --with-x.
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 ;;
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 ;;
622 -*) { echo "$as_me: error: unrecognized option: $ac_option
623 Try \`$0 --help' for more information." >&2
624 { (exit 1); exit 1; }; }
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'"
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}
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; }; }
654 # Be sure to have absolute paths.
655 for ac_var in exec_prefix prefix
657 eval ac_val=$`echo $ac_var`
659 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
660 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
661 { (exit 1); exit 1; }; };;
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
669 eval ac_val=$`echo $ac_var`
671 [\\/$]* | ?:[\\/]* ) ;;
672 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
673 { (exit 1); exit 1; }; };;
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.
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
696 test -n "$host_alias" && ac_tool_prefix=$host_alias-
698 test "$silent" = yes && exec 6>/dev/null
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 ||
712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
713 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
714 /^X\(\/\/\)$/{ s//\1/; q; }
715 /^X\(\/\).*/{ s//\1/; q; }
718 if test ! -r $srcdir/$ac_unique_file; then
722 ac_srcdir_defaulted=no
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; }; }
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
730 { (exit 1); exit 1; }; }
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}
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
771 # Report the --help message.
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.
777 \`configure' configures less 1 to adapt to many kinds of systems.
779 Usage: $0 [OPTION]... [VAR=VALUE]...
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.
784 Defaults for the options are specified in brackets.
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 \`..']
800 Installation directories:
801 --prefix=PREFIX install architecture-independent files in PREFIX
803 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
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'.
811 For better control, use the options below.
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]
832 if test -n "$ac_init_help"; then
833 case $ac_init_help in
834 short | recursive ) echo "Configuration of less 1:";;
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
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
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>
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.
865 if test "$ac_init_help" = "recursive"; then
866 # If there are subdirs, report their specific --help.
868 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
869 test -d $ac_dir || continue
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'`
877 ac_dir_suffix= ac_top_builddir=
881 .) # No --srcdir option. We are building in place.
883 if test -z "$ac_top_builddir"; then
886 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
888 [\\/]* | ?:[\\/]* ) # Absolute path.
889 ac_srcdir=$srcdir$ac_dir_suffix;
890 ac_top_srcdir=$srcdir ;;
892 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
893 ac_top_srcdir=$ac_top_builddir$srcdir ;;
895 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
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`
903 # Check for guested configure; otherwise get Cygnus style configure.
904 if test -f $ac_srcdir/configure.gnu; then
906 $SHELL $ac_srcdir/configure.gnu --help=recursive
907 elif test -f $ac_srcdir/configure; then
909 $SHELL $ac_srcdir/configure --help=recursive
910 elif test -f $ac_srcdir/configure.ac ||
911 test -f $ac_srcdir/configure.in; then
915 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
921 test -n "$ac_init_help" && exit 0
922 if $ac_init_version; then
925 generated by GNU Autoconf 2.54
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.
936 This file contains any messages produced by compilers while
937 running configure, to aid debugging if configure makes a mistake.
939 It was created by less $as_me 1, which was
940 generated by GNU Autoconf 2.54. Invocation command line was
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`
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`
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`
970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
974 test -z "$as_dir" && as_dir=.
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.
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)
1003 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1004 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1006 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1007 # Get rid of the leading space.
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.
1022 ## ---------------- ##
1023 ## Cache variables. ##
1024 ## ---------------- ##
1027 # The following way of writing the cache mishandles newlines in values,
1030 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1033 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1034 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1038 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1045 ## ----------------- ##
1046 ## Output variables. ##
1047 ## ----------------- ##
1050 for ac_var in $ac_subst_vars
1052 eval ac_val=$`echo $ac_var`
1053 echo "$ac_var='"'"'$ac_val'"'"'"
1057 if test -n "$ac_subst_files"; then
1064 for ac_var in $ac_subst_files
1066 eval ac_val=$`echo $ac_var`
1067 echo "$ac_var='"'"'$ac_val'"'"'"
1072 if test -s confdefs.h; then
1079 sed "/^$/d" confdefs.h | sort
1082 test "$ac_signal" != 0 &&
1083 echo "$as_me: caught signal $ac_signal"
1084 echo "$as_me: exit $exit_status"
1086 rm -f core core.* *.core &&
1087 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1090 for ac_signal in 1 2 13 15; do
1091 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
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.
1100 # Predefined preprocessor variables.
1102 cat >>confdefs.h <<_ACEOF
1103 #define PACKAGE_NAME "$PACKAGE_NAME"
1107 cat >>confdefs.h <<_ACEOF
1108 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1112 cat >>confdefs.h <<_ACEOF
1113 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1117 cat >>confdefs.h <<_ACEOF
1118 #define PACKAGE_STRING "$PACKAGE_STRING"
1122 cat >>confdefs.h <<_ACEOF
1123 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
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"
1133 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
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
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;}
1152 [\\/]* | ?:[\\/]* ) . $cache_file;;
1153 *) . ./$cache_file;;
1157 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1158 echo "$as_me: creating cache $cache_file" >&6;}
1162 # Check that the precious variables saved in the cache have kept the same
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
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=: ;;
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=: ;;
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=:
1192 # Pass precious variables to config.status.
1193 if test "$ac_new_set" = set; then
1195 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1196 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1197 *) ac_arg=$ac_var=$ac_new_val ;;
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'" ;;
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; }; }
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
1246 ac_config_headers="$ac_config_headers defines.h"
1249 # Checks for programs.
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
1263 if test -n "$CC"; then
1264 ac_cv_prog_CC="$CC" # Let the user override the test.
1266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
1283 if test -n "$CC"; then
1284 echo "$as_me:$LINENO: result: $CC" >&5
1285 echo "${ECHO_T}$CC" >&6
1287 echo "$as_me:$LINENO: result: no" >&5
1288 echo "${ECHO_T}no" >&6
1292 if test -z "$ac_cv_prog_CC"; then
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
1301 if test -n "$ac_ct_CC"; then
1302 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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
1325 echo "$as_me:$LINENO: result: no" >&5
1326 echo "${ECHO_T}no" >&6
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
1343 if test -n "$CC"; then
1344 ac_cv_prog_CC="$CC" # Let the user override the test.
1346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
1363 if test -n "$CC"; then
1364 echo "$as_me:$LINENO: result: $CC" >&5
1365 echo "${ECHO_T}$CC" >&6
1367 echo "$as_me:$LINENO: result: no" >&5
1368 echo "${ECHO_T}no" >&6
1372 if test -z "$ac_cv_prog_CC"; then
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
1381 if test -n "$ac_ct_CC"; then
1382 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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
1405 echo "$as_me:$LINENO: result: no" >&5
1406 echo "${ECHO_T}no" >&6
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
1423 if test -n "$CC"; then
1424 ac_cv_prog_CC="$CC" # Let the user override the test.
1427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
1439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
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
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.
1454 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1460 if test -n "$CC"; then
1461 echo "$as_me:$LINENO: result: $CC" >&5
1462 echo "${ECHO_T}$CC" >&6
1464 echo "$as_me:$LINENO: result: no" >&5
1465 echo "${ECHO_T}no" >&6
1469 if test -z "$CC"; then
1470 if test -n "$ac_tool_prefix"; then
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
1480 if test -n "$CC"; then
1481 ac_cv_prog_CC="$CC" # Let the user override the test.
1483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
1500 if test -n "$CC"; then
1501 echo "$as_me:$LINENO: result: $CC" >&5
1502 echo "${ECHO_T}$CC" >&6
1504 echo "$as_me:$LINENO: result: no" >&5
1505 echo "${ECHO_T}no" >&6
1508 test -n "$CC" && break
1511 if test -z "$CC"; then
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
1522 if test -n "$ac_ct_CC"; then
1523 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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
1546 echo "$as_me:$LINENO: result: no" >&5
1547 echo "${ECHO_T}no" >&6
1550 test -n "$ac_ct_CC" && break
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; }; }
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
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
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
1580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1581 (exit $ac_status); }
1583 cat >conftest.$ac_ext <<_ACEOF
1584 #line $LINENO "configure"
1585 #include "confdefs.h"
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
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
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
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.
1615 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do
1616 test -f "$ac_file" || continue
1618 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1619 a.out ) # We found the default executable, but exeext='' is most
1622 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1623 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
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; }; }
1639 ac_exeext=$ac_cv_exeext
1640 echo "$as_me:$LINENO: result: $ac_file" >&5
1641 echo "${ECHO_T}$ac_file" >&6
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
1654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1655 (exit $ac_status); }; }; then
1658 if test "$cross_compiling" = maybe; then
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; }; }
1669 echo "$as_me:$LINENO: result: yes" >&5
1670 echo "${ECHO_T}yes" >&6
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
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
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
1692 for ac_file in conftest.exe conftest conftest.*; do
1693 test -f "$ac_file" || continue
1695 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1696 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
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; }; }
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
1712 rm -f conftest.$ac_ext
1713 EXEEXT=$ac_cv_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
1720 cat >conftest.$ac_ext <<_ACEOF
1721 #line $LINENO "configure"
1722 #include "confdefs.h"
1732 rm -f conftest.o conftest.obj
1733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1734 (eval $ac_compile) 2>&5
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
1740 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1741 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
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; }; }
1753 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1755 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1756 echo "${ECHO_T}$ac_cv_objext" >&6
1757 OBJEXT=$ac_cv_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
1764 cat >conftest.$ac_ext <<_ACEOF
1765 #line $LINENO "configure"
1766 #include "confdefs.h"
1779 rm -f conftest.$ac_objext
1780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1781 (eval $ac_compile) 2>&5
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
1789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1790 (exit $ac_status); }; }; then
1793 echo "$as_me: failed program was:" >&5
1794 cat conftest.$ac_ext >&5
1797 rm -f conftest.$ac_objext conftest.$ac_ext
1798 ac_cv_c_compiler_gnu=$ac_compiler_gnu
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
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
1812 cat >conftest.$ac_ext <<_ACEOF
1813 #line $LINENO "configure"
1814 #include "confdefs.h"
1824 rm -f conftest.$ac_objext
1825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1826 (eval $ac_compile) 2>&5
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
1834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1835 (exit $ac_status); }; }; then
1838 echo "$as_me: failed program was:" >&5
1839 cat conftest.$ac_ext >&5
1842 rm -f conftest.$ac_objext conftest.$ac_ext
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
1855 if test "$GCC" = yes; then
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
1866 ac_cv_prog_cc_stdc=no
1868 cat >conftest.$ac_ext <<_ACEOF
1869 #line $LINENO "configure"
1870 #include "confdefs.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)
1884 static char *f (char * (*g) (char **, int), char **p, ...)
1889 s = g (p, va_arg (v,int));
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);
1902 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
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__"
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
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
1927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1928 (exit $ac_status); }; }; then
1929 ac_cv_prog_cc_stdc=$ac_arg
1932 echo "$as_me: failed program was:" >&5
1933 cat conftest.$ac_ext >&5
1935 rm -f conftest.$ac_objext
1937 rm -f conftest.$ac_ext conftest.$ac_objext
1942 case "x$ac_cv_prog_cc_stdc" in
1944 echo "$as_me:$LINENO: result: none needed" >&5
1945 echo "${ECHO_T}none needed" >&6 ;;
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" ;;
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
1961 rm -f conftest.$ac_objext
1962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1963 (eval $ac_compile) 2>&5
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
1971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1972 (exit $ac_status); }; }; then
1973 for ac_declaration in \
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);' \
1982 cat >conftest.$ac_ext <<_ACEOF
1983 #line $LINENO "configure"
1984 #include "confdefs.h"
1995 rm -f conftest.$ac_objext
1996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1997 (eval $ac_compile) 2>&5
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
2005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006 (exit $ac_status); }; }; then
2009 echo "$as_me: failed program was:" >&5
2010 cat conftest.$ac_ext >&5
2013 rm -f conftest.$ac_objext conftest.$ac_ext
2014 cat >conftest.$ac_ext <<_ACEOF
2015 #line $LINENO "configure"
2016 #include "confdefs.h"
2026 rm -f conftest.$ac_objext
2027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2028 (eval $ac_compile) 2>&5
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
2036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2037 (exit $ac_status); }; }; then
2040 echo "$as_me: failed program was:" >&5
2041 cat conftest.$ac_ext >&5
2043 rm -f conftest.$ac_objext conftest.$ac_ext
2046 if test -n "$ac_declaration"; then
2047 echo '#ifdef __cplusplus' >>confdefs.h
2048 echo $ac_declaration >>confdefs.h
2049 echo '#endif' >>confdefs.h
2053 echo "$as_me: failed program was:" >&5
2054 cat conftest.$ac_ext >&5
2056 rm -f conftest.$ac_objext conftest.$ac_ext
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
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
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"
2075 /* Override any gcc2 internal prototype to avoid an error. */
2079 /* We use char because int might match the return type of a gcc2
2080 builtin and then its argument prototype would still apply. */
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
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
2100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101 (exit $ac_status); }; }; then
2102 ac_cv_search_strerror="none required"
2104 echo "$as_me: failed program was:" >&5
2105 cat conftest.$ac_ext >&5
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"
2115 /* Override any gcc2 internal prototype to avoid an error. */
2119 /* We use char because int might match the return type of a gcc2
2120 builtin and then its argument prototype would still apply. */
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
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
2140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141 (exit $ac_status); }; }; then
2142 ac_cv_search_strerror="-l$ac_lib"
2145 echo "$as_me: failed program was:" >&5
2146 cat conftest.$ac_ext >&5
2148 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2151 LIBS=$ac_func_search_save_LIBS
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"
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
2171 if test -z "$CPP"; then
2172 if test "${ac_cv_prog_CPP+set}" = set; then
2173 echo $ECHO_N "(cached) $ECHO_C" >&6
2175 # Double quotes because CPP needs to be expanded
2176 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2179 for ac_c_preproc_warn_flag in '' yes
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"
2191 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2192 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2194 grep -v '^ *+' conftest.er1 >conftest.err
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
2207 if test -z "$ac_cpp_err"; then
2210 echo "$as_me: failed program was:" >&5
2211 cat conftest.$ac_ext >&5
2212 # Broken: fails on valid input.
2215 rm -f conftest.err conftest.$ac_ext
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>
2224 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2225 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2227 grep -v '^ *+' conftest.er1 >conftest.err
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
2240 if test -z "$ac_cpp_err"; then
2241 # Broken: success on invalid input.
2244 echo "$as_me: failed program was:" >&5
2245 cat conftest.$ac_ext >&5
2246 # Passes both tests.
2250 rm -f conftest.err conftest.$ac_ext
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
2267 echo "$as_me:$LINENO: result: $CPP" >&5
2268 echo "${ECHO_T}$CPP" >&6
2270 for ac_c_preproc_warn_flag in '' yes
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"
2282 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2283 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2285 grep -v '^ *+' conftest.er1 >conftest.err
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
2298 if test -z "$ac_cpp_err"; then
2301 echo "$as_me: failed program was:" >&5
2302 cat conftest.$ac_ext >&5
2303 # Broken: fails on valid input.
2306 rm -f conftest.err conftest.$ac_ext
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>
2315 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2316 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2318 grep -v '^ *+' conftest.er1 >conftest.err
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
2331 if test -z "$ac_cpp_err"; then
2332 # Broken: success on invalid input.
2335 echo "$as_me: failed program was:" >&5
2336 cat conftest.$ac_ext >&5
2337 # Passes both tests.
2341 rm -f conftest.err conftest.$ac_ext
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
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; }; }
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
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
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'
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
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
2382 ac_pattern="Autoconf.*'x'"
2383 cat >conftest.$ac_ext <<_ACEOF
2384 #line $LINENO "configure"
2385 #include "confdefs.h"
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
2393 ac_cv_prog_gcc_traditional=no
2398 if test $ac_cv_prog_gcc_traditional = no; then
2399 cat >conftest.$ac_ext <<_ACEOF
2400 #line $LINENO "configure"
2401 #include "confdefs.h"
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
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"
2421 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2422 if test -f $ac_dir/install-sh; then
2424 ac_install_sh="$ac_aux_dir/install-sh -c"
2426 elif test -f $ac_dir/install.sh; then
2428 ac_install_sh="$ac_aux_dir/install.sh -c"
2430 elif test -f $ac_dir/shtool; then
2432 ac_install_sh="$ac_aux_dir/shtool install -c"
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; }; }
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.
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
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
2463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467 test -z "$as_dir" && as_dir=.
2468 # Account for people who put trailing slashes in PATH elements.
2470 ./ | .// | /cC/* | \
2471 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
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
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.
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.
2489 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2501 if test "${ac_cv_path_install+set}" = set; then
2502 INSTALL=$ac_cv_path_install
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
2511 echo "$as_me:$LINENO: result: $INSTALL" >&5
2512 echo "${ECHO_T}$INSTALL" >&6
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}'
2518 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2520 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
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"
2529 if test "$enable_largefile" != no; then
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
2536 ac_cv_sys_largefile_CC=no
2537 if test "$GCC" != yes; then
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)
2562 rm -f conftest.$ac_objext
2563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2564 (eval $ac_compile) 2>&5
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
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); }; }; then
2576 echo "$as_me: failed program was:" >&5
2577 cat conftest.$ac_ext >&5
2579 rm -f conftest.$ac_objext
2581 rm -f conftest.$ac_objext
2582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2583 (eval $ac_compile) 2>&5
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
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); }; }; then
2593 ac_cv_sys_largefile_CC=' -n32'; break
2595 echo "$as_me: failed program was:" >&5
2596 cat conftest.$ac_ext >&5
2598 rm -f conftest.$ac_objext
2602 rm -f conftest.$ac_ext
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
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
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)
2638 rm -f conftest.$ac_objext
2639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2640 (eval $ac_compile) 2>&5
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
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); }; }; then
2652 echo "$as_me: failed program was:" >&5
2653 cat conftest.$ac_ext >&5
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)
2677 rm -f conftest.$ac_objext
2678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2679 (eval $ac_compile) 2>&5
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
2687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688 (exit $ac_status); }; }; then
2689 ac_cv_sys_file_offset_bits=64; break
2691 echo "$as_me: failed program was:" >&5
2692 cat conftest.$ac_ext >&5
2694 rm -f conftest.$ac_objext conftest.$ac_ext
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
2702 cat >>confdefs.h <<_ACEOF
2703 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
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
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)
2735 rm -f conftest.$ac_objext
2736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2737 (eval $ac_compile) 2>&5
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
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); }; }; then
2749 echo "$as_me: failed program was:" >&5
2750 cat conftest.$ac_ext >&5
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)
2774 rm -f conftest.$ac_objext
2775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2776 (eval $ac_compile) 2>&5
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
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); }; }; then
2786 ac_cv_sys_large_files=1; break
2788 echo "$as_me: failed program was:" >&5
2789 cat conftest.$ac_ext >&5
2791 rm -f conftest.$ac_objext conftest.$ac_ext
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
2799 cat >>confdefs.h <<_ACEOF
2800 #define _LARGE_FILES $ac_cv_sys_large_files
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
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"
2820 /* Override any gcc2 internal prototype to avoid an error. */
2824 /* We use char because int might match the return type of a gcc2
2825 builtin and then its argument prototype would still apply. */
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
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
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }; }; then
2847 ac_cv_lib_xcurses_initscr=yes
2849 echo "$as_me: failed program was:" >&5
2850 cat conftest.$ac_ext >&5
2851 ac_cv_lib_xcurses_initscr=no
2853 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2854 LIBS=$ac_check_lib_save_LIBS
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
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
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"
2875 /* Override any gcc2 internal prototype to avoid an error. */
2879 /* We use char because int might match the return type of a gcc2
2880 builtin and then its argument prototype would still apply. */
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
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
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }; }; then
2902 ac_cv_lib_ncursesw_initscr=yes
2904 echo "$as_me: failed program was:" >&5
2905 cat conftest.$ac_ext >&5
2906 ac_cv_lib_ncursesw_initscr=no
2908 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2909 LIBS=$ac_check_lib_save_LIBS
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
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
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"
2930 /* Override any gcc2 internal prototype to avoid an error. */
2934 /* We use char because int might match the return type of a gcc2
2935 builtin and then its argument prototype would still apply. */
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
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
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); }; }; then
2957 ac_cv_lib_ncurses_initscr=yes
2959 echo "$as_me: failed program was:" >&5
2960 cat conftest.$ac_ext >&5
2961 ac_cv_lib_ncurses_initscr=no
2963 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2964 LIBS=$ac_check_lib_save_LIBS
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
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
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"
2985 /* Override any gcc2 internal prototype to avoid an error. */
2989 /* We use char because int might match the return type of a gcc2
2990 builtin and then its argument prototype would still apply. */
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
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
3010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); }; }; then
3012 ac_cv_lib_curses_initscr=yes
3014 echo "$as_me: failed program was:" >&5
3015 cat conftest.$ac_ext >&5
3016 ac_cv_lib_curses_initscr=no
3018 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3019 LIBS=$ac_check_lib_save_LIBS
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
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
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"
3040 /* Override any gcc2 internal prototype to avoid an error. */
3044 /* We use char because int might match the return type of a gcc2
3045 builtin and then its argument prototype would still apply. */
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
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
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); }; }; then
3067 ac_cv_lib_termcap_tgetent=yes
3069 echo "$as_me: failed program was:" >&5
3070 cat conftest.$ac_ext >&5
3071 ac_cv_lib_termcap_tgetent=no
3073 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3074 LIBS=$ac_check_lib_save_LIBS
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
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
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"
3095 /* Override any gcc2 internal prototype to avoid an error. */
3099 /* We use char because int might match the return type of a gcc2
3100 builtin and then its argument prototype would still apply. */
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
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
3120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); }; }; then
3122 ac_cv_lib_termlib_tgetent=yes
3124 echo "$as_me: failed program was:" >&5
3125 cat conftest.$ac_ext >&5
3126 ac_cv_lib_termlib_tgetent=no
3128 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3129 LIBS=$ac_check_lib_save_LIBS
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
3139 # Regular expressions (regcmp) are in -lgen on Solaris 2,
3140 # and in -lintl on SCO Unix.
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
3147 ac_check_lib_save_LIBS=$LIBS
3149 cat >conftest.$ac_ext <<_ACEOF
3150 #line $LINENO "configure"
3151 #include "confdefs.h"
3153 /* Override any gcc2 internal prototype to avoid an error. */
3157 /* We use char because int might match the return type of a gcc2
3158 builtin and then its argument prototype would still apply. */
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
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
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); }; }; then
3180 ac_cv_lib_gen_regcmp=yes
3182 echo "$as_me: failed program was:" >&5
3183 cat conftest.$ac_ext >&5
3184 ac_cv_lib_gen_regcmp=no
3186 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3187 LIBS=$ac_check_lib_save_LIBS
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
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
3206 ac_check_lib_save_LIBS=$LIBS
3208 cat >conftest.$ac_ext <<_ACEOF
3209 #line $LINENO "configure"
3210 #include "confdefs.h"
3212 /* Override any gcc2 internal prototype to avoid an error. */
3216 /* We use char because int might match the return type of a gcc2
3217 builtin and then its argument prototype would still apply. */
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
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
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); }; }; then
3239 ac_cv_lib_intl_regcmp=yes
3241 echo "$as_me: failed program was:" >&5
3242 cat conftest.$ac_ext >&5
3243 ac_cv_lib_intl_regcmp=no
3245 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3246 LIBS=$ac_check_lib_save_LIBS
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
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
3265 ac_check_lib_save_LIBS=$LIBS
3267 cat >conftest.$ac_ext <<_ACEOF
3268 #line $LINENO "configure"
3269 #include "confdefs.h"
3271 /* Override any gcc2 internal prototype to avoid an error. */
3275 /* We use char because int might match the return type of a gcc2
3276 builtin and then its argument prototype would still apply. */
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
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
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); }; }; then
3298 ac_cv_lib_PW_regcmp=yes
3300 echo "$as_me: failed program was:" >&5
3301 cat conftest.$ac_ext >&5
3302 ac_cv_lib_PW_regcmp=no
3304 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3305 LIBS=$ac_check_lib_save_LIBS
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
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
3324 # Check for systems where curses is broken.
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
3330 if test x`uname -r` = "xB.11.11" >/dev/null 2>&1; then
3335 if test $curses_broken = 0; then
3337 if test "x$TERMLIBS" = x; then
3338 if test $have_xcurses = yes; then
3339 TERMLIBS="-lxcurses"
3341 LIBS="$LIBS $TERMLIBS"
3342 cat >conftest.$ac_ext <<_ACEOF
3343 #line $LINENO "configure"
3344 #include "confdefs.h"
3349 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
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
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
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); }; }; then
3368 echo "$as_me: failed program was:" >&5
3369 cat conftest.$ac_ext >&5
3372 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3374 if test $termok = no; then TERMLIBS=""; fi
3378 if test "x$TERMLIBS" = x; then
3379 if test $have_ncursesw = yes; then
3380 TERMLIBS="-lncursesw"
3382 LIBS="$LIBS $TERMLIBS"
3383 cat >conftest.$ac_ext <<_ACEOF
3384 #line $LINENO "configure"
3385 #include "confdefs.h"
3390 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
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
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
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); }; }; then
3409 echo "$as_me: failed program was:" >&5
3410 cat conftest.$ac_ext >&5
3413 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3415 if test $termok = no; then TERMLIBS=""; fi
3420 if test "x$TERMLIBS" = x; then
3421 if test $have_ncurses = yes; then
3422 TERMLIBS="-lncurses"
3424 LIBS="$LIBS $TERMLIBS"
3425 cat >conftest.$ac_ext <<_ACEOF
3426 #line $LINENO "configure"
3427 #include "confdefs.h"
3432 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
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
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
3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); }; }; then
3451 echo "$as_me: failed program was:" >&5
3452 cat conftest.$ac_ext >&5
3455 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3457 if test $termok = no; then TERMLIBS=""; fi
3462 if test "x$TERMLIBS" = x; then
3463 if test $have_curses = yes; then
3466 LIBS="$LIBS $TERMLIBS"
3467 cat >conftest.$ac_ext <<_ACEOF
3468 #line $LINENO "configure"
3469 #include "confdefs.h"
3474 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
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
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
3489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); }; }; then
3493 echo "$as_me: failed program was:" >&5
3494 cat conftest.$ac_ext >&5
3497 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3499 if test $termok = no; then TERMLIBS=""; fi
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"
3509 LIBS="$LIBS $TERMLIBS"
3510 cat >conftest.$ac_ext <<_ACEOF
3511 #line $LINENO "configure"
3512 #include "confdefs.h"
3517 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
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
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
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); }; }; then
3536 echo "$as_me: failed program was:" >&5
3537 cat conftest.$ac_ext >&5
3540 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3542 if test $termok = no; then TERMLIBS=""; fi
3549 if test "x$TERMLIBS" = x; then
3550 if test $have_termcap = yes; then
3551 TERMLIBS="-ltermcap"
3553 LIBS="$LIBS $TERMLIBS"
3554 cat >conftest.$ac_ext <<_ACEOF
3555 #line $LINENO "configure"
3556 #include "confdefs.h"
3561 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
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
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
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); }; }; then
3580 echo "$as_me: failed program was:" >&5
3581 cat conftest.$ac_ext >&5
3584 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3586 if test $termok = no; then TERMLIBS=""; fi
3591 if test "x$TERMLIBS" = x; then
3592 if test $have_termlib = yes; then
3593 TERMLIBS="-lcurses -ltermlib"
3595 LIBS="$LIBS $TERMLIBS"
3596 cat >conftest.$ac_ext <<_ACEOF
3597 #line $LINENO "configure"
3598 #include "confdefs.h"
3603 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
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
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
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); }; }; then
3622 echo "$as_me: failed program was:" >&5
3623 cat conftest.$ac_ext >&5
3626 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3628 if test $termok = no; then TERMLIBS=""; fi
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
3637 echo "$as_me:$LINENO: result: using $TERMLIBS" >&5
3638 echo "${ECHO_T}using $TERMLIBS" >&6
3639 LIBS="$LIBS $TERMLIBS"
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
3647 cat >conftest.$ac_ext <<_ACEOF
3648 #line $LINENO "configure"
3649 #include "confdefs.h"
3656 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3657 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3659 grep -v '^ *+' conftest.er1 >conftest.err
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
3672 if test -z "$ac_cpp_err"; then
3673 ac_cv_header_stdc=yes
3675 echo "$as_me: failed program was:" >&5
3676 cat conftest.$ac_ext >&5
3677 ac_cv_header_stdc=no
3679 rm -f conftest.err conftest.$ac_ext
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"
3689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3690 $EGREP "memchr" >/dev/null 2>&1; then
3693 ac_cv_header_stdc=no
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"
3707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3708 $EGREP "free" >/dev/null 2>&1; then
3711 ac_cv_header_stdc=no
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
3722 cat >conftest.$ac_ext <<_ACEOF
3723 #line $LINENO "configure"
3724 #include "confdefs.h"
3726 #if ((' ' & 0x0FF) == 0x020)
3727 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3728 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
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))
3736 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3741 for (i = 0; i < 256; i++)
3742 if (XOR (islower (i), ISLOWER (i))
3743 || toupper (i) != TOUPPER (i))
3748 rm -f conftest$ac_exeext
3749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3750 (eval $ac_link) 2>&5
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
3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); }; }; then
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
3765 ac_cv_header_stdc=no
3767 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
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
3775 cat >>confdefs.h <<\_ACEOF
3776 #define STDC_HEADERS 1
3781 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
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
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
3800 cat >conftest.$ac_ext <<_ACEOF
3801 #line $LINENO "configure"
3802 #include "confdefs.h"
3803 $ac_includes_default
3805 #include <$ac_header>
3807 rm -f conftest.$ac_objext
3808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3809 (eval $ac_compile) 2>&5
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
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); }; }; then
3819 eval "$as_ac_Header=yes"
3821 echo "$as_me: failed program was:" >&5
3822 cat conftest.$ac_ext >&5
3823 eval "$as_ac_Header=no"
3825 rm -f conftest.$ac_objext conftest.$ac_ext
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
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
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
3864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3865 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
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>
3876 rm -f conftest.$ac_objext
3877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3878 (eval $ac_compile) 2>&5
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
3886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887 (exit $ac_status); }; }; then
3888 ac_header_compiler=yes
3890 echo "$as_me: failed program was:" >&5
3891 cat conftest.$ac_ext >&5
3892 ac_header_compiler=no
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
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>
3906 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3907 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3909 grep -v '^ *+' conftest.er1 >conftest.err
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
3922 if test -z "$ac_cpp_err"; then
3923 ac_header_preproc=yes
3925 echo "$as_me: failed program was:" >&5
3926 cat conftest.$ac_ext >&5
3927 ac_header_preproc=no
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
3933 # So? What about this header?
3934 case $ac_header_compiler:$ac_header_preproc in
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;};;
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;};;
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
3953 eval "$as_ac_Header=$ac_header_preproc"
3955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3956 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
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
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
3975 cat >conftest.$ac_ext <<_ACEOF
3976 #line $LINENO "configure"
3977 #include "confdefs.h"
3978 #include <sys/types.h>
3979 #include <sys/stat.h>
3981 #if defined(S_ISBLK) && defined(S_IFDIR)
3982 # if S_ISBLK (S_IFDIR)
3987 #if defined(S_ISBLK) && defined(S_IFCHR)
3988 # if S_ISBLK (S_IFCHR)
3993 #if defined(S_ISLNK) && defined(S_IFREG)
3994 # if S_ISLNK (S_IFREG)
3999 #if defined(S_ISSOCK) && defined(S_IFREG)
4000 # if S_ISSOCK (S_IFREG)
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
4010 ac_cv_header_stat_broken=no
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
4019 cat >>confdefs.h <<\_ACEOF
4020 #define STAT_MACROS_BROKEN 1
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
4030 cat >conftest.$ac_ext <<_ACEOF
4031 #line $LINENO "configure"
4032 #include "confdefs.h"
4037 /* FIXME: Include the comments suggested by Paul. */
4039 /* Ultrix mips cc rejects this. */
4040 typedef int charset[2];
4042 /* SunOS 4.1.1 cc rejects this. */
4043 char const *const *ccp;
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
4052 const char *g = "string";
4053 ccp = &g + (g ? g-g : 0);
4054 /* HPUX 7.0 cc rejects these. */
4057 ccp = (char const *const *) p;
4058 { /* SCO 3.2v4 cc rejects this. */
4060 char const *s = 0 ? (char *) 0 : (char const *) 0;
4064 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4066 const int *foo = &x[0];
4069 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4070 typedef const int *iptr;
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;
4079 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4088 rm -f conftest.$ac_objext
4089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4090 (eval $ac_compile) 2>&5
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
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); }; }; then
4102 echo "$as_me: failed program was:" >&5
4103 cat conftest.$ac_ext >&5
4106 rm -f conftest.$ac_objext conftest.$ac_ext
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
4112 cat >>confdefs.h <<\_ACEOF
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
4123 cat >conftest.$ac_ext <<_ACEOF
4124 #line $LINENO "configure"
4125 #include "confdefs.h"
4126 $ac_includes_default
4138 rm -f conftest.$ac_objext
4139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4140 (eval $ac_compile) 2>&5
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
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); }; }; then
4150 ac_cv_type_off_t=yes
4152 echo "$as_me: failed program was:" >&5
4153 cat conftest.$ac_ext >&5
4156 rm -f conftest.$ac_objext conftest.$ac_ext
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
4164 cat >>confdefs.h <<_ACEOF
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
4175 cat >conftest.$ac_ext <<_ACEOF
4176 #line $LINENO "configure"
4177 #include "confdefs.h"
4178 $ac_includes_default
4184 if (sizeof (size_t))
4190 rm -f conftest.$ac_objext
4191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4192 (eval $ac_compile) 2>&5
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
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); }; }; then
4202 ac_cv_type_size_t=yes
4204 echo "$as_me: failed program was:" >&5
4205 cat conftest.$ac_ext >&5
4206 ac_cv_type_size_t=no
4208 rm -f conftest.$ac_objext conftest.$ac_ext
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
4216 cat >>confdefs.h <<_ACEOF
4217 #define size_t unsigned
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
4227 cat >conftest.$ac_ext <<_ACEOF
4228 #line $LINENO "configure"
4229 #include "confdefs.h"
4230 #include <sys/types.h>
4231 #include <sys/time.h>
4237 if ((struct tm *) 0)
4243 rm -f conftest.$ac_objext
4244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4245 (eval $ac_compile) 2>&5
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
4253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254 (exit $ac_status); }; }; then
4255 ac_cv_header_time=yes
4257 echo "$as_me: failed program was:" >&5
4258 cat conftest.$ac_ext >&5
4259 ac_cv_header_time=no
4261 rm -f conftest.$ac_objext conftest.$ac_ext
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
4267 cat >>confdefs.h <<\_ACEOF
4268 #define TIME_WITH_SYS_TIME 1
4274 # Autoheader templates for symbols defined later by AC_DEFINE.
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
4330 cat >conftest.$ac_ext <<_ACEOF
4331 #line $LINENO "configure"
4332 #include "confdefs.h"
4333 $ac_includes_default
4345 rm -f conftest.$ac_objext
4346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4347 (eval $ac_compile) 2>&5
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
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); }; }; then
4357 ac_cv_type_off_t=yes
4359 echo "$as_me: failed program was:" >&5
4360 cat conftest.$ac_ext >&5
4363 rm -f conftest.$ac_objext conftest.$ac_ext
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
4371 cat >>confdefs.h <<_ACEOF
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"
4391 rm -f conftest.$ac_objext
4392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4393 (eval $ac_compile) 2>&5
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
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
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
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"
4429 rm -f conftest.$ac_objext
4430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4431 (eval $ac_compile) 2>&5
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
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
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
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"
4467 rm -f conftest.$ac_objext
4468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4469 (eval $ac_compile) 2>&5
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
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
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
4490 rm -f conftest.$ac_objext conftest.$ac_ext
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
4498 cat >conftest.$ac_ext <<_ACEOF
4499 #line $LINENO "configure"
4500 #include "confdefs.h"
4501 #include <sys/types.h>
4507 extern "C" void (*signal (int, void (*)(int)))(int);
4509 void (*signal ()) ();
4520 rm -f conftest.$ac_objext
4521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4522 (eval $ac_compile) 2>&5
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
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); }; }; then
4532 ac_cv_type_signal=void
4534 echo "$as_me: failed program was:" >&5
4535 cat conftest.$ac_ext >&5
4536 ac_cv_type_signal=int
4538 rm -f conftest.$ac_objext conftest.$ac_ext
4540 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4541 echo "${ECHO_T}$ac_cv_type_signal" >&6
4543 cat >>confdefs.h <<_ACEOF
4544 #define RETSIGTYPE $ac_cv_type_signal
4560 for ac_func in fsync memcpy popen _setjmp sigprocmask sigsetmask snprintf stat strchr strstr system fchmod
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
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. */
4574 /* Override any gcc2 internal prototype to avoid an error. */
4578 /* We use char because int might match the return type of a gcc2
4579 builtin and then its argument prototype would still apply. */
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)
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
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
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); }; }; then
4611 eval "$as_ac_var=yes"
4613 echo "$as_me: failed program was:" >&5
4614 cat conftest.$ac_ext >&5
4615 eval "$as_ac_var=no"
4617 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
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
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
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. */
4642 /* Override any gcc2 internal prototype to avoid an error. */
4646 /* We use char because int might match the return type of a gcc2
4647 builtin and then its argument prototype would still apply. */
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)
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
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
4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678 (exit $ac_status); }; }; then
4679 ac_cv_func_tcgetattr=yes
4681 echo "$as_me: failed program was:" >&5
4682 cat conftest.$ac_ext >&5
4683 ac_cv_func_tcgetattr=no
4685 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
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
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"
4709 static int x; x = fileno(stdin);
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
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
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
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
4737 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
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"
4757 static char *x; x = strerror(0);
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
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
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
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
4785 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
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"
4796 extern char *sys_errlist[]; static char **x; x = sys_errlist;
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
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
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
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
4824 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
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"
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
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
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
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
4865 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
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"
4878 sigset_t s; sigemptyset(&s);
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
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
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
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
4906 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
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"
4921 static int x; x = errno;
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
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
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
4944 echo "$as_me: failed program was:" >&5
4945 cat conftest.$ac_ext >&5
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"
4959 extern int errno; static int x; x = errno;
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
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
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
4980 cat >>confdefs.h <<\_ACEOF
4981 #define MUST_DEFINE_ERRNO 1
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
4990 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
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"
5003 setlocale(LC_CTYPE,""); isprint(0); iscntrl(0);
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
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
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
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
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"
5044 static int x; x = isupper(x); x = tolower(x); x = toupper(x);
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
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
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
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
5072 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5074 # Checks for external variable ospeed in the termcap library.
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"
5082 #include <sys/types.h>
5084 #include <termios.h>
5087 #include <termcap.h>
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
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
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
5115 echo "$as_me: failed program was:" >&5
5116 cat conftest.$ac_ext >&5
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"
5127 extern short ospeed; ospeed = 0;
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
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
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
5148 cat >>confdefs.h <<\_ACEOF
5149 #define MUST_DEFINE_OSPEED 1
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
5158 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5161 # Compile in secure mode?
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
5171 cat >>confdefs.h <<\_ACEOF
5172 #define SECURE_COMPILE 0
5177 # Checks for regular expression functions.
5179 have_posix_regex=unknown
5180 echo "$as_me:$LINENO: checking for regcomp" >&5
5181 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
5183 # Select a regular expression library.
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"
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
5199 cat >conftest.$ac_ext <<_ACEOF
5200 #line $LINENO "configure"
5201 #include "confdefs.h"
5203 #include <sys/types.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);
5209 if (rm.rm_so != 1) exit(1); /* check for correct offset */
5211 if (rm.rm_sp != text + 1) exit(1); /* check for correct offset */
5215 rm -f conftest$ac_exeext
5216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5217 (eval $ac_link) 2>&5
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
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); }; }; then
5226 have_posix_regex=yes
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
5234 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
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
5244 elif test $have_posix_regex = unknown; then
5245 cat >conftest.$ac_ext <<_ACEOF
5246 #line $LINENO "configure"
5247 #include "confdefs.h"
5249 #include <sys/types.h>
5254 regex_t *r; regfree(r);
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
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
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
5278 echo "$as_me: failed program was:" >&5
5279 cat conftest.$ac_ext >&5
5281 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5283 echo "$as_me:$LINENO: result: no" >&5
5284 echo "${ECHO_T}no" >&6
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
5296 ac_check_lib_save_LIBS=$LIBS
5298 cat >conftest.$ac_ext <<_ACEOF
5299 #line $LINENO "configure"
5300 #include "confdefs.h"
5302 /* Override any gcc2 internal prototype to avoid an error. */
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 ();
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
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
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); }; }; then
5329 ac_cv_lib_pcre_pcre_compile=yes
5331 echo "$as_me: failed program was:" >&5
5332 cat conftest.$ac_ext >&5
5333 ac_cv_lib_pcre_pcre_compile=no
5335 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5336 LIBS=$ac_check_lib_save_LIBS
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
5345 LIBS="$LIBS -lpcre" have_regex=yes
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
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. */
5364 /* Override any gcc2 internal prototype to avoid an error. */
5368 /* We use char because int might match the return type of a gcc2
5369 builtin and then its argument prototype would still apply. */
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)
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
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
5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400 (exit $ac_status); }; }; then
5401 ac_cv_func_regcmp=yes
5403 echo "$as_me: failed program was:" >&5
5404 cat conftest.$ac_ext >&5
5405 ac_cv_func_regcmp=no
5407 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
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
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"
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
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
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
5455 echo "$as_me: failed program was:" >&5
5456 cat conftest.$ac_ext >&5
5458 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
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
5468 cat >>confdefs.h <<\_ACEOF
5469 #define HAVE_REGEXEC2 1
5471 REGEX_O='regexp.$(O)' have_regex=yes
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
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. */
5489 /* Override any gcc2 internal prototype to avoid an error. */
5493 /* We use char because int might match the return type of a gcc2
5494 builtin and then its argument prototype would still apply. */
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)
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
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
5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525 (exit $ac_status); }; }; then
5526 ac_cv_func_re_comp=yes
5528 echo "$as_me: failed program was:" >&5
5529 cat conftest.$ac_ext >&5
5530 ac_cv_func_re_comp=no
5532 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
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
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
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"
5563 cat >>confdefs.h <<\_ACEOF
5564 #define EDIT_PGM "vi"
5572 ac_config_files="$ac_config_files Makefile"
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.
5581 # config.status only pays attention to the cache file if you give it
5582 # the --recheck option to rerun configure.
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
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.
5597 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5599 # `set' does not quote correctly, so add quotes (double-quote
5600 # substitution turns \\\\ into \\, and sed turns \\ into \).
5603 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5606 # `set' quotes correctly as required by POSIX, so do not add quotes.
5608 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5615 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5617 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
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
5624 echo "not updating unwritable cache $cache_file"
5629 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5630 # Let make expand exec_prefix.
5631 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
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}:*/:/;
5642 s/^\([^=]*=[ ]*\):*/\1/;
5648 DEFS=-DHAVE_CONFIG_H
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$//'`
5657 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5658 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5662 LTLIBOBJS=$ac_ltlibobjs
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
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.
5679 SHELL=\${CONFIG_SHELL-$SHELL}
5682 cat >>$CONFIG_STATUS <<\_ACEOF
5683 ## --------------------- ##
5684 ## M4sh Initialization. ##
5685 ## --------------------- ##
5687 # Be Bourne compatible
5688 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
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
5698 # Support unset when possible.
5699 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5706 # Work around bugs in pre-3.0 UWIN ksh.
5707 $as_unset ENV MAIL MAILPATH
5713 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
5715 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
5716 eval $as_var=C; export $as_var
5722 # Required to use basename.
5723 if expr a : '\(a\)' >/dev/null 2>&1; then
5729 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5730 as_basename=basename
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 ||
5743 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5744 /^X\/\(\/\/\)$/{ s//\1/; q; }
5745 /^X\/\(\/\).*/{ s//\1/; q; }
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
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
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
5779 *[\\/]* ) as_myself=$0 ;;
5780 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5784 test -z "$as_dir" && as_dir=.
5785 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
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; }; }
5800 case $CONFIG_SHELL in
5802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5806 test -z "$as_dir" && as_dir=.
5807 for as_base in sh bash ksh sh5; do
5810 if ("$as_dir/$as_base" -c '
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
5820 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
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 |
5841 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5844 s,^['$as_cr_digits']*\n,,
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; }; }
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).
5855 # Exit status is that of the last command.
5860 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5861 *c*,-n*) ECHO_N= ECHO_C='
5863 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5864 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5867 if expr a : '\(a\)' >/dev/null 2>&1; then
5873 rm -f conf$$ conf$$.exe 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
5884 elif ln conf$$.file conf$$ 2>/dev/null; then
5889 rm -f conf$$ conf$$.exe conf$$.file
5891 if mkdir -p . 2>/dev/null; then
5897 as_executable_p="test -f"
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"
5902 # Sed expression to map a string onto a valid variable name.
5903 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
5907 # We need space, tab and new line, in precisely that order.
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.
5923 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5924 ## Running $as_me. ##
5929 This file was extended by less $as_me 1, which was
5930 generated by GNU Autoconf 2.54. Invocation command line was
5932 CONFIG_FILES = $CONFIG_FILES
5933 CONFIG_HEADERS = $CONFIG_HEADERS
5934 CONFIG_LINKS = $CONFIG_LINKS
5935 CONFIG_COMMANDS = $CONFIG_COMMANDS
5939 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
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
5948 if test -n "$ac_config_headers"; then
5949 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5952 if test -n "$ac_config_links"; then
5953 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5956 if test -n "$ac_config_commands"; then
5957 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5960 cat >>$CONFIG_STATUS <<\_ACEOF
5963 \`$as_me' instantiates files from templates according to the
5964 current configuration.
5966 Usage: $0 [OPTIONS] [FILE]...
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
5977 Configuration files:
5980 Configuration headers:
5983 Report bugs to <bug-autoconf@gnu.org>."
5986 cat >>$CONFIG_STATUS <<_ACEOF
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'`\\"
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."
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.
6008 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6009 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6017 *) # This is not an option, so the user has probably given explicit
6020 ac_need_defaults=false;;
6024 # Handling of the options.
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 ;;
6031 cat >>$CONFIG_STATUS <<\_ACEOF
6032 --version | --vers* | -V )
6033 echo "$ac_cs_version"; exit 0 ;;
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 )
6045 --file | --fil | --fi | --f )
6047 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6048 ac_need_defaults=false;;
6049 --header | --heade | --head | --hea )
6051 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6052 ac_need_defaults=false;;
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; }; } ;;
6061 *) ac_config_targets="$ac_config_targets $1" ;;
6073 cat >>$CONFIG_STATUS <<\_ACEOF
6074 for ac_config_target in $ac_config_targets
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; }; };;
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
6095 # Create a temporary directory, and hook for its removal unless debugging.
6098 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6099 trap '{ (exit 1); exit 1; }' 1 2 13 15
6102 # Create a (secure) tmp directory for tmp files.
6105 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
6106 test -n "$tmp" && test -d "$tmp"
6109 tmp=$TMPDIR/cs$$-$RANDOM
6110 (umask 077 && mkdir $tmp)
6113 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
6114 { (exit 1); exit 1; }
6119 cat >>$CONFIG_STATUS <<_ACEOF
6122 # CONFIG_FILES section.
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
6157 s,@ECHO_C@,$ECHO_C,;t t
6158 s,@ECHO_N@,$ECHO_N,;t t
6159 s,@ECHO_T@,$ECHO_T,;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
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
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.
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.
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
6193 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6195 if test ! -s $tmp/subs.frag; then
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.
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"
6207 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6209 ac_sed_frag=`expr $ac_sed_frag + 1`
6211 ac_end=`expr $ac_end + $ac_max_sed_lines`
6214 if test -z "$ac_sed_cmds"; then
6217 fi # test -n "$CONFIG_FILES"
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".
6224 - | *:- | *:-:* ) # input from 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 ;;
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 ||
6241 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6242 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6243 /^X\(\/\/\)$/{ s//\1/; q; }
6244 /^X\(\/\).*/{ s//\1/; q; }
6246 { if $as_mkdir_p; then
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 ||
6260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6261 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6262 /^X\(\/\/\)$/{ s//\1/; q; }
6263 /^X\(\/\).*/{ s//\1/; q; }
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; }; }; }
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'`
6278 ac_dir_suffix= ac_top_builddir=
6282 .) # No --srcdir option. We are building in place.
6284 if test -z "$ac_top_builddir"; then
6287 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6289 [\\/]* | ?:[\\/]* ) # Absolute path.
6290 ac_srcdir=$srcdir$ac_dir_suffix;
6291 ac_top_srcdir=$srcdir ;;
6293 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6294 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6296 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
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`
6305 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6306 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
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;}
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
6320 configure_input="$ac_file. "
6322 configure_input=$configure_input"Generated from `echo $ac_file_in |
6323 sed 's,.*/,,'` by configure."
6325 # First look for the input files in the build tree, otherwise in the
6327 ac_file_inputs=`IFS=:
6328 for f in $ac_file_in; do
6330 -) echo $tmp/stdin ;;
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; }; }
6338 if test -f "$f"; then
6341 elif test -f "$srcdir/$f"; then
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; }; }
6351 done` || { (exit 1); exit 1; }
6353 cat >>$CONFIG_STATUS <<_ACEOF
6357 cat >>$CONFIG_STATUS <<\_ACEOF
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
6372 if test x"$ac_file" != x-; then
6373 mv $tmp/out $ac_file
6381 cat >>$CONFIG_STATUS <<\_ACEOF
6384 # CONFIG_HEADER section.
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.
6390 # ac_d sets the value in "#define NAME VALUE" lines.
6391 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6392 ac_dB='[ ].*$,\1#\2'
6395 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6396 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6397 ac_uB='$,\1#\2define\3'
6401 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6402 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6404 - | *:- | *:-:* ) # input from 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 ;;
6413 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6414 echo "$as_me: creating $ac_file" >&6;}
6416 # First look for the input files in the build tree, otherwise in the
6418 ac_file_inputs=`IFS=:
6419 for f in $ac_file_in; do
6421 -) echo $tmp/stdin ;;
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; }; }
6429 if test -f "$f"; then
6432 elif test -f "$srcdir/$f"; then
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; }; }
6442 done` || { (exit 1); exit 1; }
6443 # Remove the trailing spaces.
6444 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
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
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.
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
6467 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6469 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
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
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]*,/* & */,
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
6493 while grep . conftest.defines >/dev/null
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
6504 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6508 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6509 rm -f conftest.defines
6510 mv conftest.tail conftest.defines
6512 rm -f conftest.defines
6513 echo ' fi # grep' >>$CONFIG_STATUS
6514 echo >>$CONFIG_STATUS
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
6520 while grep . conftest.undefs >/dev/null
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
6531 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6535 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6536 rm -f conftest.undefs
6537 mv conftest.tail conftest.undefs
6539 rm -f conftest.undefs
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
6548 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6550 cat $tmp/in >>$tmp/config.h
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;}
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 ||
6564 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6565 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6566 /^X\(\/\/\)$/{ s//\1/; q; }
6567 /^X\(\/\).*/{ s//\1/; q; }
6569 { if $as_mkdir_p; then
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 ||
6583 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6584 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6585 /^X\(\/\/\)$/{ s//\1/; q; }
6586 /^X\(\/\).*/{ s//\1/; q; }
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; }; }; }
6595 mv $tmp/config.h $ac_file
6604 cat >>$CONFIG_STATUS <<\_ACEOF
6606 { (exit 0); exit 0; }
6608 chmod +x $CONFIG_STATUS
6609 ac_clean_files=$ac_clean_files_save
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
6623 $SHELL $CONFIG_STATUS || ac_cs_success=false
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; }