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-regex={auto
,pcre
,posix
,regcmp
,re_comp
,regcomp
,regcomp-local
} Select a regular expression library auto
847 --with-editor=PROGRAM use PROGRAM as the default editor vi
849 Some influential environment variables
:
850 CC C compiler
command
851 CFLAGS C compiler flags
852 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
853 nonstandard directory
<lib dir
>
854 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
855 headers
in a nonstandard directory
<include dir
>
858 Use these variables to override the choices made by
`configure' or to help
859 it to find libraries and programs with nonstandard names/locations.
864 if test "$ac_init_help" = "recursive"; then
865 # If there are subdirs, report their specific --help.
867 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
868 test -d $ac_dir || continue
871 if test "$ac_dir" != .; then
872 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
873 # A "../" for each directory in $ac_dir_suffix.
874 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
876 ac_dir_suffix= ac_top_builddir=
880 .) # No --srcdir option. We are building in place.
882 if test -z "$ac_top_builddir"; then
885 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
887 [\\/]* | ?:[\\/]* ) # Absolute path.
888 ac_srcdir=$srcdir$ac_dir_suffix;
889 ac_top_srcdir=$srcdir ;;
891 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
892 ac_top_srcdir=$ac_top_builddir$srcdir ;;
894 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
896 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
897 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}.
&& pwd`
898 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
899 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
902 # Check for guested configure; otherwise get Cygnus style configure.
903 if test -f $ac_srcdir/configure.gnu; then
905 $SHELL $ac_srcdir/configure.gnu --help=recursive
906 elif test -f $ac_srcdir/configure; then
908 $SHELL $ac_srcdir/configure --help=recursive
909 elif test -f $ac_srcdir/configure.ac ||
910 test -f $ac_srcdir/configure.in; then
914 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
920 test -n "$ac_init_help" && exit 0
921 if $ac_init_version; then
924 generated by GNU Autoconf 2.54
926 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
927 Free Software Foundation, Inc.
928 This configure script is free software; the Free Software Foundation
929 gives unlimited permission to copy, distribute and modify it.
935 This file contains any messages produced by compilers while
936 running configure, to aid debugging if configure makes a mistake.
938 It was created by less $as_me 1, which was
939 generated by GNU Autoconf 2.54. Invocation command line was
950 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
951 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
952 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
953 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
954 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
956 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
957 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
959 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
960 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
961 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
962 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
963 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
964 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
965 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
973 test -z "$as_dir" && as_dir=.
989 # Keep a trace of the command line.
990 # Strip out --no-create and --no-recursion so they do not pile up.
991 # Also quote any args containing shell meta-characters.
997 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
998 | --no-cr | --no-c | -n ) continue ;;
999 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1000 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1002 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1003 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1005 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1006 # Get rid of the leading space.
1010 # When interrupted or exit'd, cleanup temporary files, and complete
1011 # config.log. We remove comments because anyway the quotes in there
1012 # would cause problems or look ugly.
1013 # WARNING: Be sure not to use single quotes in there, as some shells,
1014 # such as our DU 5.0 friend, will then `close
' the trap.
1015 trap 'exit_status
=$?
1016 # Save into config.log some information that might help in debugging.
1021 ## ---------------- ##
1022 ## Cache variables. ##
1023 ## ---------------- ##
1026 # The following way of writing the cache mishandles newlines in values,
1029 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1032 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1033 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1037 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1044 ## ----------------- ##
1045 ## Output variables. ##
1046 ## ----------------- ##
1049 for ac_var
in $ac_subst_vars
1051 eval ac_val
=$
`echo $ac_var`
1052 echo "$ac_var='"'"'$ac_val'"'"'"
1056 if test -n "$ac_subst_files"; then
1063 for ac_var
in $ac_subst_files
1065 eval ac_val
=$
`echo $ac_var`
1066 echo "$ac_var='"'"'$ac_val'"'"'"
1071 if test -s confdefs.h
; then
1078 sed "/^$/d" confdefs.h |
sort
1081 test "$ac_signal" != 0 &&
1082 echo "$as_me: caught signal $ac_signal"
1083 echo "$as_me: exit $exit_status"
1085 rm -f core core.
* *.core
&&
1086 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1089 for ac_signal in 1 2 13 15; do
1090 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1094 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1095 rm -rf conftest* confdefs.h
1096 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1099 # Predefined preprocessor variables.
1101 cat >>confdefs.h <<_ACEOF
1102 #define PACKAGE_NAME "$PACKAGE_NAME"
1106 cat >>confdefs.h <<_ACEOF
1107 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1111 cat >>confdefs.h <<_ACEOF
1112 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1116 cat >>confdefs.h <<_ACEOF
1117 #define PACKAGE_STRING "$PACKAGE_STRING"
1121 cat >>confdefs.h <<_ACEOF
1122 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1126 # Let the site file select an alternate cache file if it wants to.
1127 # Prefer explicitly selected file to automatically selected ones.
1128 if test -z "$CONFIG_SITE"; then
1129 if test "x$prefix" != xNONE; then
1130 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1132 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1135 for ac_site_file in $CONFIG_SITE; do
1136 if test -r "$ac_site_file"; then
1137 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1138 echo "$as_me: loading site script $ac_site_file" >&6;}
1139 sed 's
/^
/|
/' "$ac_site_file" >&5
1144 if test -r "$cache_file"; then
1145 # Some versions of bash will fail to source /dev/null (special
1146 # files actually), so we avoid doing that.
1147 if test -f "$cache_file"; then
1148 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1149 echo "$as_me: loading cache $cache_file" >&6;}
1151 [\\/]* | ?:[\\/]* ) . $cache_file;;
1152 *) . ./$cache_file;;
1156 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1157 echo "$as_me: creating cache $cache_file" >&6;}
1161 # Check that the precious variables saved in the cache have kept the same
1163 ac_cache_corrupted=false
1164 for ac_var in `(set) 2>&1 |
1165 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1166 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1167 eval ac_new_set=\$ac_env_${ac_var}_set
1168 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1169 eval ac_new_val="\$ac_env_${ac_var}_value"
1170 case $ac_old_set,$ac_new_set in
1172 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1173 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1174 ac_cache_corrupted=: ;;
1176 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1177 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1178 ac_cache_corrupted=: ;;
1181 if test "x$ac_old_val" != "x$ac_new_val"; then
1182 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1183 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1184 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1185 echo "$as_me: former value: $ac_old_val" >&2;}
1186 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1187 echo "$as_me: current value: $ac_new_val" >&2;}
1188 ac_cache_corrupted=:
1191 # Pass precious variables to config.status.
1192 if test "$ac_new_set" = set; then
1194 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1195 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1196 *) ac_arg=$ac_var=$ac_new_val ;;
1198 case " $ac_configure_args " in
1199 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1200 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1204 if $ac_cache_corrupted; then
1205 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1206 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1207 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1208 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1209 { (exit 1); exit 1; }; }
1213 ac_cpp='$CPP $CPPFLAGS'
1214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1215 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1245 ac_config_headers="$ac_config_headers defines.h"
1248 # Checks for programs.
1250 ac_cpp='$CPP $CPPFLAGS'
1251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1252 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1254 if test -n "$ac_tool_prefix"; then
1255 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1256 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1257 echo "$as_me:$LINENO: checking for $ac_word" >&5
1258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1259 if test "${ac_cv_prog_CC+set}" = set; then
1260 echo $ECHO_N "(cached) $ECHO_C" >&6
1262 if test -n "$CC"; then
1263 ac_cv_prog_CC="$CC" # Let the user override the test.
1265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1269 test -z "$as_dir" && as_dir=.
1270 for ac_exec_ext in '' $ac_executable_extensions; do
1271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1272 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1282 if test -n "$CC"; then
1283 echo "$as_me:$LINENO: result: $CC" >&5
1284 echo "${ECHO_T}$CC" >&6
1286 echo "$as_me:$LINENO: result: no" >&5
1287 echo "${ECHO_T}no" >&6
1291 if test -z "$ac_cv_prog_CC"; then
1293 # Extract the first word of "gcc", so it can be a program name with args.
1294 set dummy gcc; ac_word=$2
1295 echo "$as_me:$LINENO: checking for $ac_word" >&5
1296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1297 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1298 echo $ECHO_N "(cached) $ECHO_C" >&6
1300 if test -n "$ac_ct_CC"; then
1301 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1307 test -z "$as_dir" && as_dir=.
1308 for ac_exec_ext in '' $ac_executable_extensions; do
1309 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1310 ac_cv_prog_ac_ct_CC="gcc"
1311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1319 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1320 if test -n "$ac_ct_CC"; then
1321 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1322 echo "${ECHO_T}$ac_ct_CC" >&6
1324 echo "$as_me:$LINENO: result: no" >&5
1325 echo "${ECHO_T}no" >&6
1333 if test -z "$CC"; then
1334 if test -n "$ac_tool_prefix"; then
1335 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1336 set dummy ${ac_tool_prefix}cc; ac_word=$2
1337 echo "$as_me:$LINENO: checking for $ac_word" >&5
1338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1339 if test "${ac_cv_prog_CC+set}" = set; then
1340 echo $ECHO_N "(cached) $ECHO_C" >&6
1342 if test -n "$CC"; then
1343 ac_cv_prog_CC="$CC" # Let the user override the test.
1345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1349 test -z "$as_dir" && as_dir=.
1350 for ac_exec_ext in '' $ac_executable_extensions; do
1351 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1352 ac_cv_prog_CC="${ac_tool_prefix}cc"
1353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1362 if test -n "$CC"; then
1363 echo "$as_me:$LINENO: result: $CC" >&5
1364 echo "${ECHO_T}$CC" >&6
1366 echo "$as_me:$LINENO: result: no" >&5
1367 echo "${ECHO_T}no" >&6
1371 if test -z "$ac_cv_prog_CC"; then
1373 # Extract the first word of "cc", so it can be a program name with args.
1374 set dummy cc; ac_word=$2
1375 echo "$as_me:$LINENO: checking for $ac_word" >&5
1376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1377 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1378 echo $ECHO_N "(cached) $ECHO_C" >&6
1380 if test -n "$ac_ct_CC"; then
1381 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1387 test -z "$as_dir" && as_dir=.
1388 for ac_exec_ext in '' $ac_executable_extensions; do
1389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1390 ac_cv_prog_ac_ct_CC="cc"
1391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1399 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1400 if test -n "$ac_ct_CC"; then
1401 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1402 echo "${ECHO_T}$ac_ct_CC" >&6
1404 echo "$as_me:$LINENO: result: no" >&5
1405 echo "${ECHO_T}no" >&6
1414 if test -z "$CC"; then
1415 # Extract the first word of "cc", so it can be a program name with args.
1416 set dummy cc; ac_word=$2
1417 echo "$as_me:$LINENO: checking for $ac_word" >&5
1418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1419 if test "${ac_cv_prog_CC+set}" = set; then
1420 echo $ECHO_N "(cached) $ECHO_C" >&6
1422 if test -n "$CC"; then
1423 ac_cv_prog_CC="$CC" # Let the user override the test.
1426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1430 test -z "$as_dir" && as_dir=.
1431 for ac_exec_ext in '' $ac_executable_extensions; do
1432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1433 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1434 ac_prog_rejected=yes
1438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1444 if test $ac_prog_rejected = yes; then
1445 # We found a bogon in the path, so make sure we never use it.
1446 set dummy $ac_cv_prog_CC
1448 if test $# != 0; then
1449 # We chose a different compiler from the bogus one.
1450 # However, it has the same basename, so the bogon will be chosen
1451 # first if we set CC to just the basename; use the full file name.
1453 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1459 if test -n "$CC"; then
1460 echo "$as_me:$LINENO: result: $CC" >&5
1461 echo "${ECHO_T}$CC" >&6
1463 echo "$as_me:$LINENO: result: no" >&5
1464 echo "${ECHO_T}no" >&6
1468 if test -z "$CC"; then
1469 if test -n "$ac_tool_prefix"; then
1472 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1473 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1474 echo "$as_me:$LINENO: checking for $ac_word" >&5
1475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1476 if test "${ac_cv_prog_CC+set}" = set; then
1477 echo $ECHO_N "(cached) $ECHO_C" >&6
1479 if test -n "$CC"; then
1480 ac_cv_prog_CC="$CC" # Let the user override the test.
1482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1486 test -z "$as_dir" && as_dir=.
1487 for ac_exec_ext in '' $ac_executable_extensions; do
1488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1489 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1499 if test -n "$CC"; then
1500 echo "$as_me:$LINENO: result: $CC" >&5
1501 echo "${ECHO_T}$CC" >&6
1503 echo "$as_me:$LINENO: result: no" >&5
1504 echo "${ECHO_T}no" >&6
1507 test -n "$CC" && break
1510 if test -z "$CC"; then
1514 # Extract the first word of "$ac_prog", so it can be a program name with args.
1515 set dummy $ac_prog; ac_word=$2
1516 echo "$as_me:$LINENO: checking for $ac_word" >&5
1517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1518 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1519 echo $ECHO_N "(cached) $ECHO_C" >&6
1521 if test -n "$ac_ct_CC"; then
1522 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1528 test -z "$as_dir" && as_dir=.
1529 for ac_exec_ext in '' $ac_executable_extensions; do
1530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1531 ac_cv_prog_ac_ct_CC="$ac_prog"
1532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1540 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1541 if test -n "$ac_ct_CC"; then
1542 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1543 echo "${ECHO_T}$ac_ct_CC" >&6
1545 echo "$as_me:$LINENO: result: no" >&5
1546 echo "${ECHO_T}no" >&6
1549 test -n "$ac_ct_CC" && break
1558 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1559 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1560 { (exit 1); exit 1; }; }
1562 # Provide some information about the compiler.
1563 echo "$as_me:$LINENO:" \
1564 "checking for C compiler version" >&5
1565 ac_compiler=`set X $ac_compile; echo $2`
1566 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1567 (eval $ac_compiler --version </dev/null >&5) 2>&5
1569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1570 (exit $ac_status); }
1571 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1572 (eval $ac_compiler -v </dev/null >&5) 2>&5
1574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1575 (exit $ac_status); }
1576 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1577 (eval $ac_compiler -V </dev/null >&5) 2>&5
1579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1580 (exit $ac_status); }
1582 cat >conftest.$ac_ext <<_ACEOF
1583 #line $LINENO "configure"
1584 #include "confdefs.h"
1594 ac_clean_files_save=$ac_clean_files
1595 ac_clean_files="$ac_clean_files a.out a.exe"
1596 # Try to create an executable without -o first, disregard a.out.
1597 # It will help us diagnose broken compilers, and finding out an intuition
1599 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1600 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1601 ac_link_default=`echo "$ac_link" | sed 's
/ -o *conftest
[^
]*//'`
1602 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1603 (eval $ac_link_default) 2>&5
1605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1606 (exit $ac_status); }; then
1607 # Find the output, starting from the most likely. This scheme is
1608 # not robust to junk in `.', hence go to wildcards
(a.
*) only as a last
1611 # Be careful to initialize this variable, since it used to be cached.
1612 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1614 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
*; do
1615 test -f "$ac_file" ||
continue
1617 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
1618 a.out
) # We found the default executable, but exeext='' is most
1621 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1622 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1629 echo "$as_me: failed program was:" >&5
1630 cat conftest.
$ac_ext >&5
1631 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1632 check \`config.log' for details." >&5
1633 echo "$as_me: error: C compiler cannot create executables
1634 check \`config.log' for details." >&2;}
1635 { (exit 77); exit 77; }; }
1638 ac_exeext
=$ac_cv_exeext
1639 echo "$as_me:$LINENO: result: $ac_file" >&5
1640 echo "${ECHO_T}$ac_file" >&6
1642 # Check the compiler produces executables we can run. If not, either
1643 # the compiler is broken, or we cross compile.
1644 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1645 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1646 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1647 # If not cross compiling, check that we can run a simple program.
1648 if test "$cross_compiling" != yes; then
1649 if { ac_try
='./$ac_file'
1650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1654 (exit $ac_status); }; }; then
1657 if test "$cross_compiling" = maybe
; then
1660 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1661 If you meant to cross compile, use \`--host'." >&5
1662 echo "$as_me: error: cannot run C compiled programs.
1663 If you meant to cross compile, use \`--host'." >&2;}
1664 { (exit 1); exit 1; }; }
1668 echo "$as_me:$LINENO: result: yes" >&5
1669 echo "${ECHO_T}yes" >&6
1671 rm -f a.out a.exe conftest
$ac_cv_exeext
1672 ac_clean_files
=$ac_clean_files_save
1673 # Check the compiler produces executables we can run. If not, either
1674 # the compiler is broken, or we cross compile.
1675 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1676 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1677 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1678 echo "${ECHO_T}$cross_compiling" >&6
1680 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1681 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1683 (eval $ac_link) 2>&5
1685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1686 (exit $ac_status); }; then
1687 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1688 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1689 # work properly (i.e., refer to `conftest.exe'), while it won't with
1691 for ac_file
in conftest.exe conftest conftest.
*; do
1692 test -f "$ac_file" ||
continue
1694 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
1695 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1702 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1703 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1704 { (exit 1); exit 1; }; }
1707 rm -f conftest
$ac_cv_exeext
1708 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1709 echo "${ECHO_T}$ac_cv_exeext" >&6
1711 rm -f conftest.
$ac_ext
1712 EXEEXT
=$ac_cv_exeext
1714 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1715 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1716 if test "${ac_cv_objext+set}" = set; then
1717 echo $ECHO_N "(cached) $ECHO_C" >&6
1719 cat >conftest.
$ac_ext <<_ACEOF
1720 #line $LINENO "configure"
1721 #include "confdefs.h"
1731 rm -f conftest.o conftest.obj
1732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1733 (eval $ac_compile) 2>&5
1735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1736 (exit $ac_status); }; then
1737 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1739 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
1740 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1745 echo "$as_me: failed program was:" >&5
1746 cat conftest.
$ac_ext >&5
1747 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1748 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1749 { (exit 1); exit 1; }; }
1752 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1754 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1755 echo "${ECHO_T}$ac_cv_objext" >&6
1756 OBJEXT
=$ac_cv_objext
1758 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1759 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1760 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1761 echo $ECHO_N "(cached) $ECHO_C" >&6
1763 cat >conftest.
$ac_ext <<_ACEOF
1764 #line $LINENO "configure"
1765 #include "confdefs.h"
1778 rm -f conftest.
$ac_objext
1779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1780 (eval $ac_compile) 2>&5
1782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1783 (exit $ac_status); } &&
1784 { ac_try
='test -s conftest.$ac_objext'
1785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1789 (exit $ac_status); }; }; then
1792 echo "$as_me: failed program was:" >&5
1793 cat conftest.
$ac_ext >&5
1796 rm -f conftest.
$ac_objext conftest.
$ac_ext
1797 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
1800 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1801 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1802 GCC
=`test $ac_compiler_gnu = yes && echo yes`
1803 ac_test_CFLAGS
=${CFLAGS+set}
1804 ac_save_CFLAGS
=$CFLAGS
1806 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1807 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1808 if test "${ac_cv_prog_cc_g+set}" = set; then
1809 echo $ECHO_N "(cached) $ECHO_C" >&6
1811 cat >conftest.
$ac_ext <<_ACEOF
1812 #line $LINENO "configure"
1813 #include "confdefs.h"
1823 rm -f conftest.
$ac_objext
1824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1825 (eval $ac_compile) 2>&5
1827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1828 (exit $ac_status); } &&
1829 { ac_try
='test -s conftest.$ac_objext'
1830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1834 (exit $ac_status); }; }; then
1837 echo "$as_me: failed program was:" >&5
1838 cat conftest.
$ac_ext >&5
1841 rm -f conftest.
$ac_objext conftest.
$ac_ext
1843 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1844 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1845 if test "$ac_test_CFLAGS" = set; then
1846 CFLAGS
=$ac_save_CFLAGS
1847 elif test $ac_cv_prog_cc_g = yes; then
1848 if test "$GCC" = yes; then
1854 if test "$GCC" = yes; then
1860 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1861 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1862 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1863 echo $ECHO_N "(cached) $ECHO_C" >&6
1865 ac_cv_prog_cc_stdc
=no
1867 cat >conftest.
$ac_ext <<_ACEOF
1868 #line $LINENO "configure"
1869 #include "confdefs.h"
1872 #include <sys/types.h>
1873 #include <sys/stat.h>
1874 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1875 struct buf { int x; };
1876 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1877 static char *e (p, i)
1883 static char *f (char * (*g) (char **, int), char **p, ...)
1888 s = g (p, va_arg (v,int));
1892 int test (int i, double x);
1893 struct s1 {int (*f) (int a);};
1894 struct s2 {int (*f) (double a);};
1895 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1901 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1906 # Don't try gcc -ansi; that turns off useful extensions and
1907 # breaks some systems' header files.
1908 # AIX -qlanglvl=ansi
1909 # Ultrix and OSF/1 -std1
1910 # HP-UX 10.20 and later -Ae
1911 # HP-UX older versions -Aa -D_HPUX_SOURCE
1912 # SVR4 -Xc -D__EXTENSIONS__
1913 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1915 CC
="$ac_save_CC $ac_arg"
1916 rm -f conftest.
$ac_objext
1917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1918 (eval $ac_compile) 2>&5
1920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1921 (exit $ac_status); } &&
1922 { ac_try
='test -s conftest.$ac_objext'
1923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1927 (exit $ac_status); }; }; then
1928 ac_cv_prog_cc_stdc
=$ac_arg
1931 echo "$as_me: failed program was:" >&5
1932 cat conftest.
$ac_ext >&5
1934 rm -f conftest.
$ac_objext
1936 rm -f conftest.
$ac_ext conftest.
$ac_objext
1941 case "x$ac_cv_prog_cc_stdc" in
1943 echo "$as_me:$LINENO: result: none needed" >&5
1944 echo "${ECHO_T}none needed" >&6 ;;
1946 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
1947 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
1948 CC
="$CC $ac_cv_prog_cc_stdc" ;;
1951 # Some people use a C++ compiler to compile C. Since we use `exit',
1952 # in C++ we need to declare it. In case someone uses the same compiler
1953 # for both compiling C and C++ we need to have the C++ compiler decide
1954 # the declaration of exit, since it's the most demanding environment.
1955 cat >conftest.
$ac_ext <<_ACEOF
1960 rm -f conftest.
$ac_objext
1961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1962 (eval $ac_compile) 2>&5
1964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1965 (exit $ac_status); } &&
1966 { ac_try
='test -s conftest.$ac_objext'
1967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1971 (exit $ac_status); }; }; then
1972 for ac_declaration
in \
1974 '#include <stdlib.h>' \
1975 'extern "C" void std::exit (int) throw (); using std::exit;' \
1976 'extern "C" void std::exit (int); using std::exit;' \
1977 'extern "C" void exit (int) throw ();' \
1978 'extern "C" void exit (int);' \
1981 cat >conftest.
$ac_ext <<_ACEOF
1982 #line $LINENO "configure"
1983 #include "confdefs.h"
1994 rm -f conftest.
$ac_objext
1995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1996 (eval $ac_compile) 2>&5
1998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1999 (exit $ac_status); } &&
2000 { ac_try
='test -s conftest.$ac_objext'
2001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2005 (exit $ac_status); }; }; then
2008 echo "$as_me: failed program was:" >&5
2009 cat conftest.
$ac_ext >&5
2012 rm -f conftest.
$ac_objext conftest.
$ac_ext
2013 cat >conftest.
$ac_ext <<_ACEOF
2014 #line $LINENO "configure"
2015 #include "confdefs.h"
2025 rm -f conftest.
$ac_objext
2026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2027 (eval $ac_compile) 2>&5
2029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030 (exit $ac_status); } &&
2031 { ac_try
='test -s conftest.$ac_objext'
2032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2036 (exit $ac_status); }; }; then
2039 echo "$as_me: failed program was:" >&5
2040 cat conftest.
$ac_ext >&5
2042 rm -f conftest.
$ac_objext conftest.
$ac_ext
2045 if test -n "$ac_declaration"; then
2046 echo '#ifdef __cplusplus' >>confdefs.h
2047 echo $ac_declaration >>confdefs.h
2048 echo '#endif' >>confdefs.h
2052 echo "$as_me: failed program was:" >&5
2053 cat conftest.
$ac_ext >&5
2055 rm -f conftest.
$ac_objext conftest.
$ac_ext
2057 ac_cpp
='$CPP $CPPFLAGS'
2058 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2059 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2060 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2063 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2064 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2065 if test "${ac_cv_search_strerror+set}" = set; then
2066 echo $ECHO_N "(cached) $ECHO_C" >&6
2068 ac_func_search_save_LIBS
=$LIBS
2069 ac_cv_search_strerror
=no
2070 cat >conftest.
$ac_ext <<_ACEOF
2071 #line $LINENO "configure"
2072 #include "confdefs.h"
2074 /* Override any gcc2 internal prototype to avoid an error. */
2078 /* We use char because int might match the return type of a gcc2
2079 builtin and then its argument prototype would still apply. */
2089 rm -f conftest.
$ac_objext conftest
$ac_exeext
2090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2091 (eval $ac_link) 2>&5
2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094 (exit $ac_status); } &&
2095 { ac_try
='test -s conftest$ac_exeext'
2096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100 (exit $ac_status); }; }; then
2101 ac_cv_search_strerror
="none required"
2103 echo "$as_me: failed program was:" >&5
2104 cat conftest.
$ac_ext >&5
2106 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
2107 if test "$ac_cv_search_strerror" = no
; then
2108 for ac_lib
in cposix
; do
2109 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
2110 cat >conftest.
$ac_ext <<_ACEOF
2111 #line $LINENO "configure"
2112 #include "confdefs.h"
2114 /* Override any gcc2 internal prototype to avoid an error. */
2118 /* We use char because int might match the return type of a gcc2
2119 builtin and then its argument prototype would still apply. */
2129 rm -f conftest.
$ac_objext conftest
$ac_exeext
2130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2131 (eval $ac_link) 2>&5
2133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134 (exit $ac_status); } &&
2135 { ac_try
='test -s conftest$ac_exeext'
2136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140 (exit $ac_status); }; }; then
2141 ac_cv_search_strerror
="-l$ac_lib"
2144 echo "$as_me: failed program was:" >&5
2145 cat conftest.
$ac_ext >&5
2147 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
2150 LIBS
=$ac_func_search_save_LIBS
2152 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2153 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2154 if test "$ac_cv_search_strerror" != no
; then
2155 test "$ac_cv_search_strerror" = "none required" || LIBS
="$ac_cv_search_strerror $LIBS"
2160 ac_cpp
='$CPP $CPPFLAGS'
2161 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2162 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2163 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2164 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2165 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2166 # On Suns, sometimes $CPP names a directory.
2167 if test -n "$CPP" && test -d "$CPP"; then
2170 if test -z "$CPP"; then
2171 if test "${ac_cv_prog_CPP+set}" = set; then
2172 echo $ECHO_N "(cached) $ECHO_C" >&6
2174 # Double quotes because CPP needs to be expanded
2175 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2178 for ac_c_preproc_warn_flag
in '' yes
2180 # Use a header file that comes with gcc, so configuring glibc
2181 # with a fresh cross-compiler works.
2182 # On the NeXT, cc -E runs the code through the compiler's parser,
2183 # not just through cpp. "Syntax error" is here to catch this case.
2184 cat >conftest.
$ac_ext <<_ACEOF
2185 #line $LINENO "configure"
2186 #include "confdefs.h"
2190 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2191 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2193 grep -v '^ *+' conftest.er1
>conftest.err
2195 cat conftest.err
>&5
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); } >/dev
/null
; then
2198 if test -s conftest.err
; then
2199 ac_cpp_err
=$ac_c_preproc_warn_flag
2206 if test -z "$ac_cpp_err"; then
2209 echo "$as_me: failed program was:" >&5
2210 cat conftest.
$ac_ext >&5
2211 # Broken: fails on valid input.
2214 rm -f conftest.err conftest.
$ac_ext
2216 # OK, works on sane cases. Now check whether non-existent headers
2217 # can be detected and how.
2218 cat >conftest.
$ac_ext <<_ACEOF
2219 #line $LINENO "configure"
2220 #include "confdefs.h"
2221 #include <ac_nonexistent.h>
2223 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2224 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2226 grep -v '^ *+' conftest.er1
>conftest.err
2228 cat conftest.err
>&5
2229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230 (exit $ac_status); } >/dev
/null
; then
2231 if test -s conftest.err
; then
2232 ac_cpp_err
=$ac_c_preproc_warn_flag
2239 if test -z "$ac_cpp_err"; then
2240 # Broken: success on invalid input.
2243 echo "$as_me: failed program was:" >&5
2244 cat conftest.
$ac_ext >&5
2245 # Passes both tests.
2249 rm -f conftest.err conftest.
$ac_ext
2252 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2253 rm -f conftest.err conftest.
$ac_ext
2254 if $ac_preproc_ok; then
2266 echo "$as_me:$LINENO: result: $CPP" >&5
2267 echo "${ECHO_T}$CPP" >&6
2269 for ac_c_preproc_warn_flag
in '' yes
2271 # Use a header file that comes with gcc, so configuring glibc
2272 # with a fresh cross-compiler works.
2273 # On the NeXT, cc -E runs the code through the compiler's parser,
2274 # not just through cpp. "Syntax error" is here to catch this case.
2275 cat >conftest.
$ac_ext <<_ACEOF
2276 #line $LINENO "configure"
2277 #include "confdefs.h"
2281 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2282 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2284 grep -v '^ *+' conftest.er1
>conftest.err
2286 cat conftest.err
>&5
2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288 (exit $ac_status); } >/dev
/null
; then
2289 if test -s conftest.err
; then
2290 ac_cpp_err
=$ac_c_preproc_warn_flag
2297 if test -z "$ac_cpp_err"; then
2300 echo "$as_me: failed program was:" >&5
2301 cat conftest.
$ac_ext >&5
2302 # Broken: fails on valid input.
2305 rm -f conftest.err conftest.
$ac_ext
2307 # OK, works on sane cases. Now check whether non-existent headers
2308 # can be detected and how.
2309 cat >conftest.
$ac_ext <<_ACEOF
2310 #line $LINENO "configure"
2311 #include "confdefs.h"
2312 #include <ac_nonexistent.h>
2314 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2315 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2317 grep -v '^ *+' conftest.er1
>conftest.err
2319 cat conftest.err
>&5
2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321 (exit $ac_status); } >/dev
/null
; then
2322 if test -s conftest.err
; then
2323 ac_cpp_err
=$ac_c_preproc_warn_flag
2330 if test -z "$ac_cpp_err"; then
2331 # Broken: success on invalid input.
2334 echo "$as_me: failed program was:" >&5
2335 cat conftest.
$ac_ext >&5
2336 # Passes both tests.
2340 rm -f conftest.err conftest.
$ac_ext
2343 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2344 rm -f conftest.err conftest.
$ac_ext
2345 if $ac_preproc_ok; then
2348 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2349 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2350 { (exit 1); exit 1; }; }
2354 ac_cpp
='$CPP $CPPFLAGS'
2355 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2356 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2357 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2360 echo "$as_me:$LINENO: checking for egrep" >&5
2361 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2362 if test "${ac_cv_prog_egrep+set}" = set; then
2363 echo $ECHO_N "(cached) $ECHO_C" >&6
2365 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
2366 then ac_cv_prog_egrep
='grep -E'
2367 else ac_cv_prog_egrep
='egrep'
2370 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2371 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2372 EGREP
=$ac_cv_prog_egrep
2375 if test $ac_cv_c_compiler_gnu = yes; then
2376 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
2377 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2378 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2379 echo $ECHO_N "(cached) $ECHO_C" >&6
2381 ac_pattern
="Autoconf.*'x'"
2382 cat >conftest.
$ac_ext <<_ACEOF
2383 #line $LINENO "configure"
2384 #include "confdefs.h"
2388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2389 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
2390 ac_cv_prog_gcc_traditional
=yes
2392 ac_cv_prog_gcc_traditional
=no
2397 if test $ac_cv_prog_gcc_traditional = no
; then
2398 cat >conftest.
$ac_ext <<_ACEOF
2399 #line $LINENO "configure"
2400 #include "confdefs.h"
2404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2405 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
2406 ac_cv_prog_gcc_traditional
=yes
2412 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
2413 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2414 if test $ac_cv_prog_gcc_traditional = yes; then
2415 CC
="$CC -traditional"
2420 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
2421 if test -f $ac_dir/install-sh
; then
2423 ac_install_sh
="$ac_aux_dir/install-sh -c"
2425 elif test -f $ac_dir/install.sh
; then
2427 ac_install_sh
="$ac_aux_dir/install.sh -c"
2429 elif test -f $ac_dir/shtool
; then
2431 ac_install_sh
="$ac_aux_dir/shtool install -c"
2435 if test -z "$ac_aux_dir"; then
2436 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2437 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2438 { (exit 1); exit 1; }; }
2440 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
2441 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
2442 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2444 # Find a good install program. We prefer a C program (faster),
2445 # so one script is as good as another. But avoid the broken or
2446 # incompatible versions:
2447 # SysV /etc/install, /usr/sbin/install
2448 # SunOS /usr/etc/install
2449 # IRIX /sbin/install
2451 # AmigaOS /C/install, which installs bootblocks on floppy discs
2452 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2453 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2454 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2455 # ./install, which can be erroneously created by make from ./install.sh.
2456 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2457 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2458 if test -z "$INSTALL"; then
2459 if test "${ac_cv_path_install+set}" = set; then
2460 echo $ECHO_N "(cached) $ECHO_C" >&6
2462 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2466 test -z "$as_dir" && as_dir
=.
2467 # Account for people who put trailing slashes in PATH elements.
2469 .
/ | .
// |
/cC
/* | \
2470 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2473 # OSF1 and SCO ODT 3.0 have their own names for install.
2474 # Don't use installbsd from OSF since it installs stuff as root
2476 for ac_prog
in ginstall scoinst
install; do
2477 for ac_exec_ext
in '' $ac_executable_extensions; do
2478 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2479 if test $ac_prog = install &&
2480 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2481 # AIX install. It has an incompatible calling convention.
2483 elif test $ac_prog = install &&
2484 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2485 # program-specific install script used by HP pwplus--don't use.
2488 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2500 if test "${ac_cv_path_install+set}" = set; then
2501 INSTALL
=$ac_cv_path_install
2503 # As a last resort, use the slow shell script. We don't cache a
2504 # path for INSTALL within a source directory, because that will
2505 # break other packages using the cache if that directory is
2506 # removed, or if the path is relative.
2507 INSTALL
=$ac_install_sh
2510 echo "$as_me:$LINENO: result: $INSTALL" >&5
2511 echo "${ECHO_T}$INSTALL" >&6
2513 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2514 # It thinks the first close brace ends the variable substitution.
2515 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2517 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2519 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2522 # Checks for compilation model.
2523 # Check whether --enable-largefile or --disable-largefile was given.
2524 if test "${enable_largefile+set}" = set; then
2525 enableval
="$enable_largefile"
2528 if test "$enable_largefile" != no
; then
2530 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
2531 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
2532 if test "${ac_cv_sys_largefile_CC+set}" = set; then
2533 echo $ECHO_N "(cached) $ECHO_C" >&6
2535 ac_cv_sys_largefile_CC
=no
2536 if test "$GCC" != yes; then
2539 # IRIX 6.2 and later do not support large files by default,
2540 # so use the C compiler's -n32 option if that helps.
2541 cat >conftest.
$ac_ext <<_ACEOF
2542 #line $LINENO "configure"
2543 #include "confdefs.h"
2544 #include <sys/types.h>
2545 /* Check that off_t can represent 2**63 - 1 correctly.
2546 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2547 since some C++ compilers masquerading as C compilers
2548 incorrectly reject 9223372036854775807. */
2549 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2550 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2551 && LARGE_OFF_T % 2147483647 == 1)
2561 rm -f conftest.
$ac_objext
2562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2563 (eval $ac_compile) 2>&5
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); } &&
2567 { ac_try
='test -s conftest.$ac_objext'
2568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); }; }; then
2575 echo "$as_me: failed program was:" >&5
2576 cat conftest.
$ac_ext >&5
2578 rm -f conftest.
$ac_objext
2580 rm -f conftest.
$ac_objext
2581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2582 (eval $ac_compile) 2>&5
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); } &&
2586 { ac_try
='test -s conftest.$ac_objext'
2587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }; }; then
2592 ac_cv_sys_largefile_CC
=' -n32'; break
2594 echo "$as_me: failed program was:" >&5
2595 cat conftest.
$ac_ext >&5
2597 rm -f conftest.
$ac_objext
2601 rm -f conftest.
$ac_ext
2604 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
2605 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
2606 if test "$ac_cv_sys_largefile_CC" != no
; then
2607 CC
=$CC$ac_cv_sys_largefile_CC
2610 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
2611 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
2612 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
2613 echo $ECHO_N "(cached) $ECHO_C" >&6
2616 ac_cv_sys_file_offset_bits
=no
2617 cat >conftest.
$ac_ext <<_ACEOF
2618 #line $LINENO "configure"
2619 #include "confdefs.h"
2620 #include <sys/types.h>
2621 /* Check that off_t can represent 2**63 - 1 correctly.
2622 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2623 since some C++ compilers masquerading as C compilers
2624 incorrectly reject 9223372036854775807. */
2625 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2626 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2627 && LARGE_OFF_T % 2147483647 == 1)
2637 rm -f conftest.
$ac_objext
2638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2639 (eval $ac_compile) 2>&5
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); } &&
2643 { ac_try
='test -s conftest.$ac_objext'
2644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }; }; then
2651 echo "$as_me: failed program was:" >&5
2652 cat conftest.
$ac_ext >&5
2654 rm -f conftest.
$ac_objext conftest.
$ac_ext
2655 cat >conftest.
$ac_ext <<_ACEOF
2656 #line $LINENO "configure"
2657 #include "confdefs.h"
2658 #define _FILE_OFFSET_BITS 64
2659 #include <sys/types.h>
2660 /* Check that off_t can represent 2**63 - 1 correctly.
2661 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2662 since some C++ compilers masquerading as C compilers
2663 incorrectly reject 9223372036854775807. */
2664 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2665 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2666 && LARGE_OFF_T % 2147483647 == 1)
2676 rm -f conftest.
$ac_objext
2677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2678 (eval $ac_compile) 2>&5
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); } &&
2682 { ac_try
='test -s conftest.$ac_objext'
2683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }; }; then
2688 ac_cv_sys_file_offset_bits
=64; break
2690 echo "$as_me: failed program was:" >&5
2691 cat conftest.
$ac_ext >&5
2693 rm -f conftest.
$ac_objext conftest.
$ac_ext
2697 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
2698 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
2699 if test "$ac_cv_sys_file_offset_bits" != no
; then
2701 cat >>confdefs.h
<<_ACEOF
2702 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
2707 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
2708 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
2709 if test "${ac_cv_sys_large_files+set}" = set; then
2710 echo $ECHO_N "(cached) $ECHO_C" >&6
2713 ac_cv_sys_large_files
=no
2714 cat >conftest.
$ac_ext <<_ACEOF
2715 #line $LINENO "configure"
2716 #include "confdefs.h"
2717 #include <sys/types.h>
2718 /* Check that off_t can represent 2**63 - 1 correctly.
2719 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2720 since some C++ compilers masquerading as C compilers
2721 incorrectly reject 9223372036854775807. */
2722 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2723 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2724 && LARGE_OFF_T % 2147483647 == 1)
2734 rm -f conftest.
$ac_objext
2735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2736 (eval $ac_compile) 2>&5
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); } &&
2740 { ac_try
='test -s conftest.$ac_objext'
2741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); }; }; then
2748 echo "$as_me: failed program was:" >&5
2749 cat conftest.
$ac_ext >&5
2751 rm -f conftest.
$ac_objext conftest.
$ac_ext
2752 cat >conftest.
$ac_ext <<_ACEOF
2753 #line $LINENO "configure"
2754 #include "confdefs.h"
2755 #define _LARGE_FILES 1
2756 #include <sys/types.h>
2757 /* Check that off_t can represent 2**63 - 1 correctly.
2758 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2759 since some C++ compilers masquerading as C compilers
2760 incorrectly reject 9223372036854775807. */
2761 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2762 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2763 && LARGE_OFF_T % 2147483647 == 1)
2773 rm -f conftest.
$ac_objext
2774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2775 (eval $ac_compile) 2>&5
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); } &&
2779 { ac_try
='test -s conftest.$ac_objext'
2780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); }; }; then
2785 ac_cv_sys_large_files
=1; break
2787 echo "$as_me: failed program was:" >&5
2788 cat conftest.
$ac_ext >&5
2790 rm -f conftest.
$ac_objext conftest.
$ac_ext
2794 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
2795 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
2796 if test "$ac_cv_sys_large_files" != no
; then
2798 cat >>confdefs.h
<<_ACEOF
2799 #define _LARGE_FILES $ac_cv_sys_large_files
2807 # Checks for general libraries.
2808 echo "$as_me:$LINENO: checking for initscr in -lxcurses" >&5
2809 echo $ECHO_N "checking for initscr in -lxcurses... $ECHO_C" >&6
2810 if test "${ac_cv_lib_xcurses_initscr+set}" = set; then
2811 echo $ECHO_N "(cached) $ECHO_C" >&6
2813 ac_check_lib_save_LIBS
=$LIBS
2814 LIBS
="-lxcurses $LIBS"
2815 cat >conftest.
$ac_ext <<_ACEOF
2816 #line $LINENO "configure"
2817 #include "confdefs.h"
2819 /* Override any gcc2 internal prototype to avoid an error. */
2823 /* We use char because int might match the return type of a gcc2
2824 builtin and then its argument prototype would still apply. */
2834 rm -f conftest.
$ac_objext conftest
$ac_exeext
2835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2836 (eval $ac_link) 2>&5
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); } &&
2840 { ac_try
='test -s conftest$ac_exeext'
2841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); }; }; then
2846 ac_cv_lib_xcurses_initscr
=yes
2848 echo "$as_me: failed program was:" >&5
2849 cat conftest.
$ac_ext >&5
2850 ac_cv_lib_xcurses_initscr
=no
2852 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
2853 LIBS
=$ac_check_lib_save_LIBS
2855 echo "$as_me:$LINENO: result: $ac_cv_lib_xcurses_initscr" >&5
2856 echo "${ECHO_T}$ac_cv_lib_xcurses_initscr" >&6
2857 if test $ac_cv_lib_xcurses_initscr = yes; then
2863 echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
2864 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
2865 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
2866 echo $ECHO_N "(cached) $ECHO_C" >&6
2868 ac_check_lib_save_LIBS
=$LIBS
2869 LIBS
="-lncurses $LIBS"
2870 cat >conftest.
$ac_ext <<_ACEOF
2871 #line $LINENO "configure"
2872 #include "confdefs.h"
2874 /* Override any gcc2 internal prototype to avoid an error. */
2878 /* We use char because int might match the return type of a gcc2
2879 builtin and then its argument prototype would still apply. */
2889 rm -f conftest.
$ac_objext conftest
$ac_exeext
2890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2891 (eval $ac_link) 2>&5
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); } &&
2895 { ac_try
='test -s conftest$ac_exeext'
2896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); }; }; then
2901 ac_cv_lib_ncurses_initscr
=yes
2903 echo "$as_me: failed program was:" >&5
2904 cat conftest.
$ac_ext >&5
2905 ac_cv_lib_ncurses_initscr
=no
2907 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
2908 LIBS
=$ac_check_lib_save_LIBS
2910 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
2911 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
2912 if test $ac_cv_lib_ncurses_initscr = yes; then
2918 echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
2919 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6
2920 if test "${ac_cv_lib_curses_initscr+set}" = set; then
2921 echo $ECHO_N "(cached) $ECHO_C" >&6
2923 ac_check_lib_save_LIBS
=$LIBS
2924 LIBS
="-lcurses $LIBS"
2925 cat >conftest.
$ac_ext <<_ACEOF
2926 #line $LINENO "configure"
2927 #include "confdefs.h"
2929 /* Override any gcc2 internal prototype to avoid an error. */
2933 /* We use char because int might match the return type of a gcc2
2934 builtin and then its argument prototype would still apply. */
2944 rm -f conftest.
$ac_objext conftest
$ac_exeext
2945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2946 (eval $ac_link) 2>&5
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); } &&
2950 { ac_try
='test -s conftest$ac_exeext'
2951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); }; }; then
2956 ac_cv_lib_curses_initscr
=yes
2958 echo "$as_me: failed program was:" >&5
2959 cat conftest.
$ac_ext >&5
2960 ac_cv_lib_curses_initscr
=no
2962 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
2963 LIBS
=$ac_check_lib_save_LIBS
2965 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
2966 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6
2967 if test $ac_cv_lib_curses_initscr = yes; then
2973 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
2974 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
2975 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
2976 echo $ECHO_N "(cached) $ECHO_C" >&6
2978 ac_check_lib_save_LIBS
=$LIBS
2979 LIBS
="-ltermcap $LIBS"
2980 cat >conftest.
$ac_ext <<_ACEOF
2981 #line $LINENO "configure"
2982 #include "confdefs.h"
2984 /* Override any gcc2 internal prototype to avoid an error. */
2988 /* We use char because int might match the return type of a gcc2
2989 builtin and then its argument prototype would still apply. */
2999 rm -f conftest.
$ac_objext conftest
$ac_exeext
3000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3001 (eval $ac_link) 2>&5
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); } &&
3005 { ac_try
='test -s conftest$ac_exeext'
3006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); }; }; then
3011 ac_cv_lib_termcap_tgetent
=yes
3013 echo "$as_me: failed program was:" >&5
3014 cat conftest.
$ac_ext >&5
3015 ac_cv_lib_termcap_tgetent
=no
3017 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3018 LIBS
=$ac_check_lib_save_LIBS
3020 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
3021 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
3022 if test $ac_cv_lib_termcap_tgetent = yes; then
3028 echo "$as_me:$LINENO: checking for tgetent in -ltermlib" >&5
3029 echo $ECHO_N "checking for tgetent in -ltermlib... $ECHO_C" >&6
3030 if test "${ac_cv_lib_termlib_tgetent+set}" = set; then
3031 echo $ECHO_N "(cached) $ECHO_C" >&6
3033 ac_check_lib_save_LIBS
=$LIBS
3034 LIBS
="-ltermlib $LIBS"
3035 cat >conftest.
$ac_ext <<_ACEOF
3036 #line $LINENO "configure"
3037 #include "confdefs.h"
3039 /* Override any gcc2 internal prototype to avoid an error. */
3043 /* We use char because int might match the return type of a gcc2
3044 builtin and then its argument prototype would still apply. */
3054 rm -f conftest.
$ac_objext conftest
$ac_exeext
3055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3056 (eval $ac_link) 2>&5
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); } &&
3060 { ac_try
='test -s conftest$ac_exeext'
3061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065 (exit $ac_status); }; }; then
3066 ac_cv_lib_termlib_tgetent
=yes
3068 echo "$as_me: failed program was:" >&5
3069 cat conftest.
$ac_ext >&5
3070 ac_cv_lib_termlib_tgetent
=no
3072 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3073 LIBS
=$ac_check_lib_save_LIBS
3075 echo "$as_me:$LINENO: result: $ac_cv_lib_termlib_tgetent" >&5
3076 echo "${ECHO_T}$ac_cv_lib_termlib_tgetent" >&6
3077 if test $ac_cv_lib_termlib_tgetent = yes; then
3083 # Regular expressions (regcmp) are in -lgen on Solaris 2,
3084 # and in -lintl on SCO Unix.
3086 echo "$as_me:$LINENO: checking for regcmp in -lgen" >&5
3087 echo $ECHO_N "checking for regcmp in -lgen... $ECHO_C" >&6
3088 if test "${ac_cv_lib_gen_regcmp+set}" = set; then
3089 echo $ECHO_N "(cached) $ECHO_C" >&6
3091 ac_check_lib_save_LIBS
=$LIBS
3093 cat >conftest.
$ac_ext <<_ACEOF
3094 #line $LINENO "configure"
3095 #include "confdefs.h"
3097 /* Override any gcc2 internal prototype to avoid an error. */
3101 /* We use char because int might match the return type of a gcc2
3102 builtin and then its argument prototype would still apply. */
3112 rm -f conftest.
$ac_objext conftest
$ac_exeext
3113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3114 (eval $ac_link) 2>&5
3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); } &&
3118 { ac_try
='test -s conftest$ac_exeext'
3119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); }; }; then
3124 ac_cv_lib_gen_regcmp
=yes
3126 echo "$as_me: failed program was:" >&5
3127 cat conftest.
$ac_ext >&5
3128 ac_cv_lib_gen_regcmp
=no
3130 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3131 LIBS
=$ac_check_lib_save_LIBS
3133 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_regcmp" >&5
3134 echo "${ECHO_T}$ac_cv_lib_gen_regcmp" >&6
3135 if test $ac_cv_lib_gen_regcmp = yes; then
3136 cat >>confdefs.h
<<_ACEOF
3137 #define HAVE_LIBGEN 1
3145 echo "$as_me:$LINENO: checking for regcmp in -lintl" >&5
3146 echo $ECHO_N "checking for regcmp in -lintl... $ECHO_C" >&6
3147 if test "${ac_cv_lib_intl_regcmp+set}" = set; then
3148 echo $ECHO_N "(cached) $ECHO_C" >&6
3150 ac_check_lib_save_LIBS
=$LIBS
3152 cat >conftest.
$ac_ext <<_ACEOF
3153 #line $LINENO "configure"
3154 #include "confdefs.h"
3156 /* Override any gcc2 internal prototype to avoid an error. */
3160 /* We use char because int might match the return type of a gcc2
3161 builtin and then its argument prototype would still apply. */
3171 rm -f conftest.
$ac_objext conftest
$ac_exeext
3172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3173 (eval $ac_link) 2>&5
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); } &&
3177 { ac_try
='test -s conftest$ac_exeext'
3178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); }; }; then
3183 ac_cv_lib_intl_regcmp
=yes
3185 echo "$as_me: failed program was:" >&5
3186 cat conftest.
$ac_ext >&5
3187 ac_cv_lib_intl_regcmp
=no
3189 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3190 LIBS
=$ac_check_lib_save_LIBS
3192 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_regcmp" >&5
3193 echo "${ECHO_T}$ac_cv_lib_intl_regcmp" >&6
3194 if test $ac_cv_lib_intl_regcmp = yes; then
3195 cat >>confdefs.h
<<_ACEOF
3196 #define HAVE_LIBINTL 1
3204 echo "$as_me:$LINENO: checking for regcmp in -lPW" >&5
3205 echo $ECHO_N "checking for regcmp in -lPW... $ECHO_C" >&6
3206 if test "${ac_cv_lib_PW_regcmp+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
3209 ac_check_lib_save_LIBS
=$LIBS
3211 cat >conftest.
$ac_ext <<_ACEOF
3212 #line $LINENO "configure"
3213 #include "confdefs.h"
3215 /* Override any gcc2 internal prototype to avoid an error. */
3219 /* We use char because int might match the return type of a gcc2
3220 builtin and then its argument prototype would still apply. */
3230 rm -f conftest.
$ac_objext conftest
$ac_exeext
3231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3232 (eval $ac_link) 2>&5
3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); } &&
3236 { ac_try
='test -s conftest$ac_exeext'
3237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); }; }; then
3242 ac_cv_lib_PW_regcmp
=yes
3244 echo "$as_me: failed program was:" >&5
3245 cat conftest.
$ac_ext >&5
3246 ac_cv_lib_PW_regcmp
=no
3248 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3249 LIBS
=$ac_check_lib_save_LIBS
3251 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_regcmp" >&5
3252 echo "${ECHO_T}$ac_cv_lib_PW_regcmp" >&6
3253 if test $ac_cv_lib_PW_regcmp = yes; then
3254 cat >>confdefs.h
<<_ACEOF
3255 #define HAVE_LIBPW 1
3263 # Checks for terminal libraries
3264 echo "$as_me:$LINENO: checking for working terminal libraries" >&5
3265 echo $ECHO_N "checking for working terminal libraries... $ECHO_C" >&6
3268 # Check for systems where curses is broken.
3270 if test x
`uname -s` = "xHP-UX" >/dev
/null
2>&1; then
3271 if test x
`uname -r` = "xB.11.00" >/dev
/null
2>&1; then
3274 if test x
`uname -r` = "xB.11.11" >/dev
/null
2>&1; then
3279 if test $curses_broken = 0; then
3281 if test "x$TERMLIBS" = x
; then
3282 if test $have_xcurses = yes; then
3283 TERMLIBS
="-lxcurses"
3285 LIBS
="$LIBS $TERMLIBS"
3286 cat >conftest.
$ac_ext <<_ACEOF
3287 #line $LINENO "configure"
3288 #include "confdefs.h"
3293 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
3298 rm -f conftest.
$ac_objext conftest
$ac_exeext
3299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3300 (eval $ac_link) 2>&5
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); } &&
3304 { ac_try
='test -s conftest$ac_exeext'
3305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309 (exit $ac_status); }; }; then
3312 echo "$as_me: failed program was:" >&5
3313 cat conftest.
$ac_ext >&5
3316 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3318 if test $termok = no
; then TERMLIBS
=""; fi
3323 if test "x$TERMLIBS" = x
; then
3324 if test $have_ncurses = yes; then
3325 TERMLIBS
="-lncurses"
3327 LIBS
="$LIBS $TERMLIBS"
3328 cat >conftest.
$ac_ext <<_ACEOF
3329 #line $LINENO "configure"
3330 #include "confdefs.h"
3335 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
3340 rm -f conftest.
$ac_objext conftest
$ac_exeext
3341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3342 (eval $ac_link) 2>&5
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); } &&
3346 { ac_try
='test -s conftest$ac_exeext'
3347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; }; then
3354 echo "$as_me: failed program was:" >&5
3355 cat conftest.
$ac_ext >&5
3358 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3360 if test $termok = no
; then TERMLIBS
=""; fi
3365 if test "x$TERMLIBS" = x
; then
3366 if test $have_curses = yes; then
3369 LIBS
="$LIBS $TERMLIBS"
3370 cat >conftest.
$ac_ext <<_ACEOF
3371 #line $LINENO "configure"
3372 #include "confdefs.h"
3377 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
3382 rm -f conftest.
$ac_objext conftest
$ac_exeext
3383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3384 (eval $ac_link) 2>&5
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); } &&
3388 { ac_try
='test -s conftest$ac_exeext'
3389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); }; }; then
3396 echo "$as_me: failed program was:" >&5
3397 cat conftest.
$ac_ext >&5
3400 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3402 if test $termok = no
; then TERMLIBS
=""; fi
3406 # -- Try curses & termcap.
3407 if test "x$TERMLIBS" = x
; then
3408 if test $have_curses = yes; then
3409 if test $have_termcap = yes; then
3410 TERMLIBS
="-lcurses -ltermcap"
3412 LIBS
="$LIBS $TERMLIBS"
3413 cat >conftest.
$ac_ext <<_ACEOF
3414 #line $LINENO "configure"
3415 #include "confdefs.h"
3420 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
3425 rm -f conftest.
$ac_objext conftest
$ac_exeext
3426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3427 (eval $ac_link) 2>&5
3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430 (exit $ac_status); } &&
3431 { ac_try
='test -s conftest$ac_exeext'
3432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); }; }; then
3439 echo "$as_me: failed program was:" >&5
3440 cat conftest.
$ac_ext >&5
3443 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3445 if test $termok = no
; then TERMLIBS
=""; fi
3452 if test "x$TERMLIBS" = x
; then
3453 if test $have_termcap = yes; then
3454 TERMLIBS
="-ltermcap"
3456 LIBS
="$LIBS $TERMLIBS"
3457 cat >conftest.
$ac_ext <<_ACEOF
3458 #line $LINENO "configure"
3459 #include "confdefs.h"
3464 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
3469 rm -f conftest.
$ac_objext conftest
$ac_exeext
3470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3471 (eval $ac_link) 2>&5
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); } &&
3475 { ac_try
='test -s conftest$ac_exeext'
3476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); }; }; then
3483 echo "$as_me: failed program was:" >&5
3484 cat conftest.
$ac_ext >&5
3487 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3489 if test $termok = no
; then TERMLIBS
=""; fi
3494 if test "x$TERMLIBS" = x
; then
3495 if test $have_termlib = yes; then
3496 TERMLIBS
="-lcurses -ltermlib"
3498 LIBS
="$LIBS $TERMLIBS"
3499 cat >conftest.
$ac_ext <<_ACEOF
3500 #line $LINENO "configure"
3501 #include "confdefs.h"
3506 tgetent(0,0); tgetflag(0); tgetnum(0); tgetstr(0,0);
3511 rm -f conftest.
$ac_objext conftest
$ac_exeext
3512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3513 (eval $ac_link) 2>&5
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); } &&
3517 { ac_try
='test -s conftest$ac_exeext'
3518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); }; }; then
3525 echo "$as_me: failed program was:" >&5
3526 cat conftest.
$ac_ext >&5
3529 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3531 if test $termok = no
; then TERMLIBS
=""; fi
3535 if test "x$TERMLIBS" = x
; then
3536 echo "$as_me:$LINENO: result: Cannot find terminal libraries - configure failed" >&5
3537 echo "${ECHO_T}Cannot find terminal libraries - configure failed" >&6
3540 echo "$as_me:$LINENO: result: using $TERMLIBS" >&5
3541 echo "${ECHO_T}using $TERMLIBS" >&6
3542 LIBS
="$LIBS $TERMLIBS"
3544 # Checks for header files.
3545 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3546 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3547 if test "${ac_cv_header_stdc+set}" = set; then
3548 echo $ECHO_N "(cached) $ECHO_C" >&6
3550 cat >conftest.
$ac_ext <<_ACEOF
3551 #line $LINENO "configure"
3552 #include "confdefs.h"
3559 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3560 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3562 grep -v '^ *+' conftest.er1
>conftest.err
3564 cat conftest.err
>&5
3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); } >/dev
/null
; then
3567 if test -s conftest.err
; then
3568 ac_cpp_err
=$ac_c_preproc_warn_flag
3575 if test -z "$ac_cpp_err"; then
3576 ac_cv_header_stdc
=yes
3578 echo "$as_me: failed program was:" >&5
3579 cat conftest.
$ac_ext >&5
3580 ac_cv_header_stdc
=no
3582 rm -f conftest.err conftest.
$ac_ext
3584 if test $ac_cv_header_stdc = yes; then
3585 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3586 cat >conftest.
$ac_ext <<_ACEOF
3587 #line $LINENO "configure"
3588 #include "confdefs.h"
3592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3593 $EGREP "memchr" >/dev
/null
2>&1; then
3596 ac_cv_header_stdc
=no
3602 if test $ac_cv_header_stdc = yes; then
3603 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3604 cat >conftest.
$ac_ext <<_ACEOF
3605 #line $LINENO "configure"
3606 #include "confdefs.h"
3610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3611 $EGREP "free" >/dev
/null
2>&1; then
3614 ac_cv_header_stdc
=no
3620 if test $ac_cv_header_stdc = yes; then
3621 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3622 if test "$cross_compiling" = yes; then
3625 cat >conftest.
$ac_ext <<_ACEOF
3626 #line $LINENO "configure"
3627 #include "confdefs.h"
3629 #if ((' ' & 0x0FF) == 0x020)
3630 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3631 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3633 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3634 || ('j' <= (c) && (c) <= 'r') \
3635 || ('s' <= (c) && (c) <= 'z'))
3636 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3639 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3644 for (i = 0; i < 256; i++)
3645 if (XOR (islower (i), ISLOWER (i))
3646 || toupper (i) != TOUPPER (i))
3651 rm -f conftest
$ac_exeext
3652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3653 (eval $ac_link) 2>&5
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661 (exit $ac_status); }; }; then
3664 echo "$as_me: program exited with status $ac_status" >&5
3665 echo "$as_me: failed program was:" >&5
3666 cat conftest.
$ac_ext >&5
3668 ac_cv_header_stdc
=no
3670 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3674 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3675 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3676 if test $ac_cv_header_stdc = yes; then
3678 cat >>confdefs.h
<<\_ACEOF
3679 #define STDC_HEADERS 1
3684 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3694 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3695 inttypes.h stdint.h unistd.h
3697 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3698 echo "$as_me:$LINENO: checking for $ac_header" >&5
3699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3701 echo $ECHO_N "(cached) $ECHO_C" >&6
3703 cat >conftest.
$ac_ext <<_ACEOF
3704 #line $LINENO "configure"
3705 #include "confdefs.h"
3706 $ac_includes_default
3708 #include <$ac_header>
3710 rm -f conftest.
$ac_objext
3711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3712 (eval $ac_compile) 2>&5
3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); } &&
3716 { ac_try
='test -s conftest.$ac_objext'
3717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); }; }; then
3722 eval "$as_ac_Header=yes"
3724 echo "$as_me: failed program was:" >&5
3725 cat conftest.
$ac_ext >&5
3726 eval "$as_ac_Header=no"
3728 rm -f conftest.
$ac_objext conftest.
$ac_ext
3730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3732 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3733 cat >>confdefs.h
<<_ACEOF
3734 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3758 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
3760 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3762 echo "$as_me:$LINENO: checking for $ac_header" >&5
3763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3765 echo $ECHO_N "(cached) $ECHO_C" >&6
3767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3768 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3770 # Is the header compilable?
3771 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3772 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3773 cat >conftest.
$ac_ext <<_ACEOF
3774 #line $LINENO "configure"
3775 #include "confdefs.h"
3776 $ac_includes_default
3777 #include <$ac_header>
3779 rm -f conftest.
$ac_objext
3780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3781 (eval $ac_compile) 2>&5
3783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784 (exit $ac_status); } &&
3785 { ac_try
='test -s conftest.$ac_objext'
3786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); }; }; then
3791 ac_header_compiler
=yes
3793 echo "$as_me: failed program was:" >&5
3794 cat conftest.
$ac_ext >&5
3795 ac_header_compiler
=no
3797 rm -f conftest.
$ac_objext conftest.
$ac_ext
3798 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3799 echo "${ECHO_T}$ac_header_compiler" >&6
3801 # Is the header present?
3802 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3803 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3804 cat >conftest.
$ac_ext <<_ACEOF
3805 #line $LINENO "configure"
3806 #include "confdefs.h"
3807 #include <$ac_header>
3809 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3810 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3812 grep -v '^ *+' conftest.er1
>conftest.err
3814 cat conftest.err
>&5
3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); } >/dev
/null
; then
3817 if test -s conftest.err
; then
3818 ac_cpp_err
=$ac_c_preproc_warn_flag
3825 if test -z "$ac_cpp_err"; then
3826 ac_header_preproc
=yes
3828 echo "$as_me: failed program was:" >&5
3829 cat conftest.
$ac_ext >&5
3830 ac_header_preproc
=no
3832 rm -f conftest.err conftest.
$ac_ext
3833 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3834 echo "${ECHO_T}$ac_header_preproc" >&6
3836 # So? What about this header?
3837 case $ac_header_compiler:$ac_header_preproc in
3839 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3840 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3842 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3844 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3845 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3846 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3847 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3849 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3851 echo "$as_me:$LINENO: checking for $ac_header" >&5
3852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3854 echo $ECHO_N "(cached) $ECHO_C" >&6
3856 eval "$as_ac_Header=$ac_header_preproc"
3858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3859 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3862 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3863 cat >>confdefs.h
<<_ACEOF
3864 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3872 # Checks for typedefs, structures, and compiler characteristics.
3873 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
3874 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
3875 if test "${ac_cv_header_stat_broken+set}" = set; then
3876 echo $ECHO_N "(cached) $ECHO_C" >&6
3878 cat >conftest.
$ac_ext <<_ACEOF
3879 #line $LINENO "configure"
3880 #include "confdefs.h"
3881 #include <sys/types.h>
3882 #include <sys/stat.h>
3884 #if defined(S_ISBLK) && defined(S_IFDIR)
3885 # if S_ISBLK (S_IFDIR)
3890 #if defined(S_ISBLK) && defined(S_IFCHR)
3891 # if S_ISBLK (S_IFCHR)
3896 #if defined(S_ISLNK) && defined(S_IFREG)
3897 # if S_ISLNK (S_IFREG)
3902 #if defined(S_ISSOCK) && defined(S_IFREG)
3903 # if S_ISSOCK (S_IFREG)
3909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3910 $EGREP "You lose" >/dev
/null
2>&1; then
3911 ac_cv_header_stat_broken
=yes
3913 ac_cv_header_stat_broken
=no
3918 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
3919 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
3920 if test $ac_cv_header_stat_broken = yes; then
3922 cat >>confdefs.h
<<\_ACEOF
3923 #define STAT_MACROS_BROKEN 1
3928 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3929 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3930 if test "${ac_cv_c_const+set}" = set; then
3931 echo $ECHO_N "(cached) $ECHO_C" >&6
3933 cat >conftest.
$ac_ext <<_ACEOF
3934 #line $LINENO "configure"
3935 #include "confdefs.h"
3940 /* FIXME: Include the comments suggested by Paul. */
3942 /* Ultrix mips cc rejects this. */
3943 typedef int charset[2];
3945 /* SunOS 4.1.1 cc rejects this. */
3946 char const *const *ccp;
3948 /* NEC SVR4.0.2 mips cc rejects this. */
3949 struct point {int x, y;};
3950 static struct point const zero = {0,0};
3951 /* AIX XL C 1.02.0.0 rejects this.
3952 It does not let you subtract one const X* pointer from another in
3953 an arm of an if-expression whose if-part is not a constant
3955 const char *g = "string";
3956 ccp = &g + (g ? g-g : 0);
3957 /* HPUX 7.0 cc rejects these. */
3960 ccp = (char const *const *) p;
3961 { /* SCO 3.2v4 cc rejects this. */
3963 char const *s = 0 ? (char *) 0 : (char const *) 0;
3967 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3969 const int *foo = &x[0];
3972 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3973 typedef const int *iptr;
3977 { /* AIX XL C 1.02.0.0 rejects this saying
3978 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3979 struct s { int j; const int *ap[3]; };
3980 struct s *b; b->j = 5;
3982 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3991 rm -f conftest.
$ac_objext
3992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3993 (eval $ac_compile) 2>&5
3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); } &&
3997 { ac_try
='test -s conftest.$ac_objext'
3998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002 (exit $ac_status); }; }; then
4005 echo "$as_me: failed program was:" >&5
4006 cat conftest.
$ac_ext >&5
4009 rm -f conftest.
$ac_objext conftest.
$ac_ext
4011 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4012 echo "${ECHO_T}$ac_cv_c_const" >&6
4013 if test $ac_cv_c_const = no
; then
4015 cat >>confdefs.h
<<\_ACEOF
4021 echo "$as_me:$LINENO: checking for off_t" >&5
4022 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4023 if test "${ac_cv_type_off_t+set}" = set; then
4024 echo $ECHO_N "(cached) $ECHO_C" >&6
4026 cat >conftest.
$ac_ext <<_ACEOF
4027 #line $LINENO "configure"
4028 #include "confdefs.h"
4029 $ac_includes_default
4041 rm -f conftest.
$ac_objext
4042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4043 (eval $ac_compile) 2>&5
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); } &&
4047 { ac_try
='test -s conftest.$ac_objext'
4048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); }; }; then
4053 ac_cv_type_off_t
=yes
4055 echo "$as_me: failed program was:" >&5
4056 cat conftest.
$ac_ext >&5
4059 rm -f conftest.
$ac_objext conftest.
$ac_ext
4061 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4062 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4063 if test $ac_cv_type_off_t = yes; then
4067 cat >>confdefs.h
<<_ACEOF
4073 echo "$as_me:$LINENO: checking for size_t" >&5
4074 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4075 if test "${ac_cv_type_size_t+set}" = set; then
4076 echo $ECHO_N "(cached) $ECHO_C" >&6
4078 cat >conftest.
$ac_ext <<_ACEOF
4079 #line $LINENO "configure"
4080 #include "confdefs.h"
4081 $ac_includes_default
4087 if (sizeof (size_t))
4093 rm -f conftest.
$ac_objext
4094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4095 (eval $ac_compile) 2>&5
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); } &&
4099 { ac_try
='test -s conftest.$ac_objext'
4100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); }; }; then
4105 ac_cv_type_size_t
=yes
4107 echo "$as_me: failed program was:" >&5
4108 cat conftest.
$ac_ext >&5
4109 ac_cv_type_size_t
=no
4111 rm -f conftest.
$ac_objext conftest.
$ac_ext
4113 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4114 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4115 if test $ac_cv_type_size_t = yes; then
4119 cat >>confdefs.h
<<_ACEOF
4120 #define size_t unsigned
4125 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4126 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4127 if test "${ac_cv_header_time+set}" = set; then
4128 echo $ECHO_N "(cached) $ECHO_C" >&6
4130 cat >conftest.
$ac_ext <<_ACEOF
4131 #line $LINENO "configure"
4132 #include "confdefs.h"
4133 #include <sys/types.h>
4134 #include <sys/time.h>
4140 if ((struct tm *) 0)
4146 rm -f conftest.
$ac_objext
4147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4148 (eval $ac_compile) 2>&5
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); } &&
4152 { ac_try
='test -s conftest.$ac_objext'
4153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); }; }; then
4158 ac_cv_header_time
=yes
4160 echo "$as_me: failed program was:" >&5
4161 cat conftest.
$ac_ext >&5
4162 ac_cv_header_time
=no
4164 rm -f conftest.
$ac_objext conftest.
$ac_ext
4166 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4167 echo "${ECHO_T}$ac_cv_header_time" >&6
4168 if test $ac_cv_header_time = yes; then
4170 cat >>confdefs.h
<<\_ACEOF
4171 #define TIME_WITH_SYS_TIME 1
4177 # Autoheader templates for symbols defined later by AC_DEFINE.
4225 # Checks for identifiers.
4226 echo "$as_me:$LINENO: checking for off_t" >&5
4227 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4228 if test "${ac_cv_type_off_t+set}" = set; then
4229 echo $ECHO_N "(cached) $ECHO_C" >&6
4231 cat >conftest.
$ac_ext <<_ACEOF
4232 #line $LINENO "configure"
4233 #include "confdefs.h"
4234 $ac_includes_default
4246 rm -f conftest.
$ac_objext
4247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4248 (eval $ac_compile) 2>&5
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); } &&
4252 { ac_try
='test -s conftest.$ac_objext'
4253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 (exit $ac_status); }; }; then
4258 ac_cv_type_off_t
=yes
4260 echo "$as_me: failed program was:" >&5
4261 cat conftest.
$ac_ext >&5
4264 rm -f conftest.
$ac_objext conftest.
$ac_ext
4266 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4267 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4268 if test $ac_cv_type_off_t = yes; then
4272 cat >>confdefs.h
<<_ACEOF
4278 echo "$as_me:$LINENO: checking for void" >&5
4279 echo $ECHO_N "checking for void... $ECHO_C" >&6
4280 cat >conftest.
$ac_ext <<_ACEOF
4281 #line $LINENO "configure"
4282 #include "confdefs.h"
4292 rm -f conftest.
$ac_objext
4293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4294 (eval $ac_compile) 2>&5
4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297 (exit $ac_status); } &&
4298 { ac_try
='test -s conftest.$ac_objext'
4299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); }; }; then
4304 echo "$as_me:$LINENO: result: yes" >&5
4305 echo "${ECHO_T}yes" >&6; cat >>confdefs.h
<<\_ACEOF
4310 echo "$as_me: failed program was:" >&5
4311 cat conftest.
$ac_ext >&5
4312 echo "$as_me:$LINENO: result: no" >&5
4313 echo "${ECHO_T}no" >&6
4315 rm -f conftest.
$ac_objext conftest.
$ac_ext
4316 echo "$as_me:$LINENO: checking for const" >&5
4317 echo $ECHO_N "checking for const... $ECHO_C" >&6
4318 cat >conftest.
$ac_ext <<_ACEOF
4319 #line $LINENO "configure"
4320 #include "confdefs.h"
4330 rm -f conftest.
$ac_objext
4331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4332 (eval $ac_compile) 2>&5
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); } &&
4336 { ac_try
='test -s conftest.$ac_objext'
4337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); }; }; then
4342 echo "$as_me:$LINENO: result: yes" >&5
4343 echo "${ECHO_T}yes" >&6; cat >>confdefs.h
<<\_ACEOF
4344 #define HAVE_CONST 1
4348 echo "$as_me: failed program was:" >&5
4349 cat conftest.
$ac_ext >&5
4350 echo "$as_me:$LINENO: result: no" >&5
4351 echo "${ECHO_T}no" >&6
4353 rm -f conftest.
$ac_objext conftest.
$ac_ext
4354 echo "$as_me:$LINENO: checking for time_t" >&5
4355 echo $ECHO_N "checking for time_t... $ECHO_C" >&6
4356 cat >conftest.
$ac_ext <<_ACEOF
4357 #line $LINENO "configure"
4358 #include "confdefs.h"
4368 rm -f conftest.
$ac_objext
4369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4370 (eval $ac_compile) 2>&5
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); } &&
4374 { ac_try
='test -s conftest.$ac_objext'
4375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); }; }; then
4380 echo "$as_me:$LINENO: result: yes" >&5
4381 echo "${ECHO_T}yes" >&6; cat >>confdefs.h
<<\_ACEOF
4382 #define HAVE_TIME_T 1
4386 echo "$as_me: failed program was:" >&5
4387 cat conftest.
$ac_ext >&5
4388 echo "$as_me:$LINENO: result: no" >&5
4389 echo "${ECHO_T}no" >&6
4391 rm -f conftest.
$ac_objext conftest.
$ac_ext
4393 # Checks for library functions.
4394 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4395 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4396 if test "${ac_cv_type_signal+set}" = set; then
4397 echo $ECHO_N "(cached) $ECHO_C" >&6
4399 cat >conftest.
$ac_ext <<_ACEOF
4400 #line $LINENO "configure"
4401 #include "confdefs.h"
4402 #include <sys/types.h>
4408 extern "C" void (*signal (int, void (*)(int)))(int);
4410 void (*signal ()) ();
4421 rm -f conftest.
$ac_objext
4422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4423 (eval $ac_compile) 2>&5
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); } &&
4427 { ac_try
='test -s conftest.$ac_objext'
4428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); }; }; then
4433 ac_cv_type_signal
=void
4435 echo "$as_me: failed program was:" >&5
4436 cat conftest.
$ac_ext >&5
4437 ac_cv_type_signal
=int
4439 rm -f conftest.
$ac_objext conftest.
$ac_ext
4441 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4442 echo "${ECHO_T}$ac_cv_type_signal" >&6
4444 cat >>confdefs.h
<<_ACEOF
4445 #define RETSIGTYPE $ac_cv_type_signal
4459 for ac_func
in fsync memcpy popen _setjmp sigprocmask sigsetmask stat strchr strstr system
4461 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4462 echo "$as_me:$LINENO: checking for $ac_func" >&5
4463 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4464 if eval "test \"\${$as_ac_var+set}\" = set"; then
4465 echo $ECHO_N "(cached) $ECHO_C" >&6
4467 cat >conftest.
$ac_ext <<_ACEOF
4468 #line $LINENO "configure"
4469 #include "confdefs.h"
4470 /* System header to define __stub macros and hopefully few prototypes,
4471 which can conflict with char $ac_func (); below. */
4473 /* Override any gcc2 internal prototype to avoid an error. */
4477 /* We use char because int might match the return type of a gcc2
4478 builtin and then its argument prototype would still apply. */
4485 /* The GNU C library defines this for functions which it implements
4486 to always fail with ENOSYS. Some functions are actually named
4487 something starting with __ and the normal name is an alias. */
4488 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4498 rm -f conftest.
$ac_objext conftest
$ac_exeext
4499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4500 (eval $ac_link) 2>&5
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); } &&
4504 { ac_try
='test -s conftest$ac_exeext'
4505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); }; }; then
4510 eval "$as_ac_var=yes"
4512 echo "$as_me: failed program was:" >&5
4513 cat conftest.
$ac_ext >&5
4514 eval "$as_ac_var=no"
4516 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4519 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4520 if test `eval echo '${'$as_ac_var'}'` = yes; then
4521 cat >>confdefs.h
<<_ACEOF
4522 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4529 # Some systems have termios.h but not the corresponding functions.
4530 echo "$as_me:$LINENO: checking for tcgetattr" >&5
4531 echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
4532 if test "${ac_cv_func_tcgetattr+set}" = set; then
4533 echo $ECHO_N "(cached) $ECHO_C" >&6
4535 cat >conftest.
$ac_ext <<_ACEOF
4536 #line $LINENO "configure"
4537 #include "confdefs.h"
4538 /* System header to define __stub macros and hopefully few prototypes,
4539 which can conflict with char tcgetattr (); below. */
4541 /* Override any gcc2 internal prototype to avoid an error. */
4545 /* We use char because int might match the return type of a gcc2
4546 builtin and then its argument prototype would still apply. */
4553 /* The GNU C library defines this for functions which it implements
4554 to always fail with ENOSYS. Some functions are actually named
4555 something starting with __ and the normal name is an alias. */
4556 #if defined (__stub_tcgetattr) || defined (__stub___tcgetattr)
4566 rm -f conftest.
$ac_objext conftest
$ac_exeext
4567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4568 (eval $ac_link) 2>&5
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); } &&
4572 { ac_try
='test -s conftest$ac_exeext'
4573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); }; }; then
4578 ac_cv_func_tcgetattr
=yes
4580 echo "$as_me: failed program was:" >&5
4581 cat conftest.
$ac_ext >&5
4582 ac_cv_func_tcgetattr
=no
4584 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4586 echo "$as_me:$LINENO: result: $ac_cv_func_tcgetattr" >&5
4587 echo "${ECHO_T}$ac_cv_func_tcgetattr" >&6
4588 if test $ac_cv_func_tcgetattr = yes; then
4589 cat >>confdefs.h
<<\_ACEOF
4590 #define HAVE_TERMIOS_FUNCS 1
4596 echo "$as_me:$LINENO: checking for fileno" >&5
4597 echo $ECHO_N "checking for fileno... $ECHO_C" >&6
4598 cat >conftest.
$ac_ext <<_ACEOF
4599 #line $LINENO "configure"
4600 #include "confdefs.h"
4608 static int x; x = fileno(stdin);
4613 rm -f conftest.
$ac_objext conftest
$ac_exeext
4614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4615 (eval $ac_link) 2>&5
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); } &&
4619 { ac_try
='test -s conftest$ac_exeext'
4620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); }; }; then
4625 echo "$as_me:$LINENO: result: yes" >&5
4626 echo "${ECHO_T}yes" >&6; cat >>confdefs.h
<<\_ACEOF
4627 #define HAVE_FILENO 1
4631 echo "$as_me: failed program was:" >&5
4632 cat conftest.
$ac_ext >&5
4633 echo "$as_me:$LINENO: result: no" >&5
4634 echo "${ECHO_T}no" >&6
4636 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4638 echo "$as_me:$LINENO: checking for strerror" >&5
4639 echo $ECHO_N "checking for strerror... $ECHO_C" >&6
4640 cat >conftest.
$ac_ext <<_ACEOF
4641 #line $LINENO "configure"
4642 #include "confdefs.h"
4656 static char *x; x = strerror(0);
4661 rm -f conftest.
$ac_objext conftest
$ac_exeext
4662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4663 (eval $ac_link) 2>&5
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); } &&
4667 { ac_try
='test -s conftest$ac_exeext'
4668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); }; }; then
4673 echo "$as_me:$LINENO: result: yes" >&5
4674 echo "${ECHO_T}yes" >&6; cat >>confdefs.h
<<\_ACEOF
4675 #define HAVE_STRERROR 1
4679 echo "$as_me: failed program was:" >&5
4680 cat conftest.
$ac_ext >&5
4681 echo "$as_me:$LINENO: result: no" >&5
4682 echo "${ECHO_T}no" >&6
4684 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4686 echo "$as_me:$LINENO: checking for sys_errlist" >&5
4687 echo $ECHO_N "checking for sys_errlist... $ECHO_C" >&6
4688 cat >conftest.
$ac_ext <<_ACEOF
4689 #line $LINENO "configure"
4690 #include "confdefs.h"
4695 extern char *sys_errlist[]; static char **x; x = sys_errlist;
4700 rm -f conftest.
$ac_objext conftest
$ac_exeext
4701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4702 (eval $ac_link) 2>&5
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); } &&
4706 { ac_try
='test -s conftest$ac_exeext'
4707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); }; }; then
4712 echo "$as_me:$LINENO: result: yes" >&5
4713 echo "${ECHO_T}yes" >&6; cat >>confdefs.h
<<\_ACEOF
4714 #define HAVE_SYS_ERRLIST 1
4718 echo "$as_me: failed program was:" >&5
4719 cat conftest.
$ac_ext >&5
4720 echo "$as_me:$LINENO: result: no" >&5
4721 echo "${ECHO_T}no" >&6
4723 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4725 echo "$as_me:$LINENO: checking for sigset_t" >&5
4726 echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6
4727 cat >conftest.
$ac_ext <<_ACEOF
4728 #line $LINENO "configure"
4729 #include "confdefs.h"
4741 rm -f conftest.
$ac_objext conftest
$ac_exeext
4742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4743 (eval $ac_link) 2>&5
4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); } &&
4747 { ac_try
='test -s conftest$ac_exeext'
4748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); }; }; then
4753 echo "$as_me:$LINENO: result: yes" >&5
4754 echo "${ECHO_T}yes" >&6; cat >>confdefs.h
<<\_ACEOF
4755 #define HAVE_SIGSET_T 1
4759 echo "$as_me: failed program was:" >&5
4760 cat conftest.
$ac_ext >&5
4761 echo "$as_me:$LINENO: result: no" >&5
4762 echo "${ECHO_T}no" >&6
4764 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4766 echo "$as_me:$LINENO: checking for sigemptyset" >&5
4767 echo $ECHO_N "checking for sigemptyset... $ECHO_C" >&6
4768 cat >conftest.
$ac_ext <<_ACEOF
4769 #line $LINENO "configure"
4770 #include "confdefs.h"
4777 sigset_t s; sigemptyset(&s);
4782 rm -f conftest.
$ac_objext conftest
$ac_exeext
4783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4784 (eval $ac_link) 2>&5
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); } &&
4788 { ac_try
='test -s conftest$ac_exeext'
4789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); }; }; then
4794 echo "$as_me:$LINENO: result: yes" >&5
4795 echo "${ECHO_T}yes" >&6; cat >>confdefs.h
<<\_ACEOF
4796 #define HAVE_SIGEMPTYSET 1
4800 echo "$as_me: failed program was:" >&5
4801 cat conftest.
$ac_ext >&5
4802 echo "$as_me:$LINENO: result: no" >&5
4803 echo "${ECHO_T}no" >&6
4805 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4808 echo "$as_me:$LINENO: checking for errno" >&5
4809 echo $ECHO_N "checking for errno... $ECHO_C" >&6
4810 cat >conftest.
$ac_ext <<_ACEOF
4811 #line $LINENO "configure"
4812 #include "confdefs.h"
4820 static int x; x = errno;
4825 rm -f conftest.
$ac_objext conftest
$ac_exeext
4826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4827 (eval $ac_link) 2>&5
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); } &&
4831 { ac_try
='test -s conftest$ac_exeext'
4832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); }; }; then
4837 echo "$as_me:$LINENO: result: yes - in errno.h" >&5
4838 echo "${ECHO_T}yes - in errno.h" >&6; cat >>confdefs.h
<<\_ACEOF
4839 #define HAVE_ERRNO 1
4843 echo "$as_me: failed program was:" >&5
4844 cat conftest.
$ac_ext >&5
4846 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4847 if test $have_errno = no
; then
4848 cat >conftest.
$ac_ext <<_ACEOF
4849 #line $LINENO "configure"
4850 #include "confdefs.h"
4858 extern int errno; static int x; x = errno;
4863 rm -f conftest.
$ac_objext conftest
$ac_exeext
4864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4865 (eval $ac_link) 2>&5
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); } &&
4869 { ac_try
='test -s conftest$ac_exeext'
4870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); }; }; then
4875 echo "$as_me:$LINENO: result: yes - must define" >&5
4876 echo "${ECHO_T}yes - must define" >&6; cat >>confdefs.h
<<\_ACEOF
4877 #define HAVE_ERRNO 1
4879 cat >>confdefs.h
<<\_ACEOF
4880 #define MUST_DEFINE_ERRNO 1
4884 echo "$as_me: failed program was:" >&5
4885 cat conftest.
$ac_ext >&5
4886 echo "$as_me:$LINENO: result: no" >&5
4887 echo "${ECHO_T}no" >&6
4889 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4892 echo "$as_me:$LINENO: checking for locale" >&5
4893 echo $ECHO_N "checking for locale... $ECHO_C" >&6
4894 cat >conftest.
$ac_ext <<_ACEOF
4895 #line $LINENO "configure"
4896 #include "confdefs.h"
4902 setlocale(LC_CTYPE,""); isprint(0); iscntrl(0);
4907 rm -f conftest.
$ac_objext conftest
$ac_exeext
4908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4909 (eval $ac_link) 2>&5
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); } &&
4913 { ac_try
='test -s conftest$ac_exeext'
4914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); }; }; then
4919 echo "$as_me:$LINENO: result: yes" >&5
4920 echo "${ECHO_T}yes" >&6; cat >>confdefs.h
<<\_ACEOF
4921 #define HAVE_LOCALE 1
4925 echo "$as_me: failed program was:" >&5
4926 cat conftest.
$ac_ext >&5
4927 echo "$as_me:$LINENO: result: no" >&5
4928 echo "${ECHO_T}no" >&6
4930 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4931 echo "$as_me:$LINENO: checking for ctype functions" >&5
4932 echo $ECHO_N "checking for ctype functions... $ECHO_C" >&6
4933 cat >conftest.
$ac_ext <<_ACEOF
4934 #line $LINENO "configure"
4935 #include "confdefs.h"
4943 static int x; x = isupper(x); x = tolower(x); x = toupper(x);
4948 rm -f conftest.
$ac_objext conftest
$ac_exeext
4949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4950 (eval $ac_link) 2>&5
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); } &&
4954 { ac_try
='test -s conftest$ac_exeext'
4955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); }; }; then
4960 echo "$as_me:$LINENO: result: yes" >&5
4961 echo "${ECHO_T}yes" >&6; cat >>confdefs.h
<<\_ACEOF
4962 #define HAVE_UPPER_LOWER 1
4966 echo "$as_me: failed program was:" >&5
4967 cat conftest.
$ac_ext >&5
4968 echo "$as_me:$LINENO: result: no" >&5
4969 echo "${ECHO_T}no" >&6
4971 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4973 # Checks for external variable ospeed in the termcap library.
4975 echo "$as_me:$LINENO: checking termcap for ospeed" >&5
4976 echo $ECHO_N "checking termcap for ospeed... $ECHO_C" >&6
4977 cat >conftest.
$ac_ext <<_ACEOF
4978 #line $LINENO "configure"
4979 #include "confdefs.h"
4981 #include <sys/types.h>
4983 #include <termios.h>
4986 #include <termcap.h>
4996 rm -f conftest.
$ac_objext conftest
$ac_exeext
4997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4998 (eval $ac_link) 2>&5
5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); } &&
5002 { ac_try
='test -s conftest$ac_exeext'
5003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007 (exit $ac_status); }; }; then
5008 echo "$as_me:$LINENO: result: yes - in termcap.h" >&5
5009 echo "${ECHO_T}yes - in termcap.h" >&6; cat >>confdefs.h
<<\_ACEOF
5010 #define HAVE_OSPEED 1
5014 echo "$as_me: failed program was:" >&5
5015 cat conftest.
$ac_ext >&5
5017 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5018 if test $have_ospeed = no
; then
5019 cat >conftest.
$ac_ext <<_ACEOF
5020 #line $LINENO "configure"
5021 #include "confdefs.h"
5026 extern short ospeed; ospeed = 0;
5031 rm -f conftest.
$ac_objext conftest
$ac_exeext
5032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5033 (eval $ac_link) 2>&5
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); } &&
5037 { ac_try
='test -s conftest$ac_exeext'
5038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); }; }; then
5043 echo "$as_me:$LINENO: result: yes - must define" >&5
5044 echo "${ECHO_T}yes - must define" >&6; cat >>confdefs.h
<<\_ACEOF
5045 #define HAVE_OSPEED 1
5047 cat >>confdefs.h
<<\_ACEOF
5048 #define MUST_DEFINE_OSPEED 1
5052 echo "$as_me: failed program was:" >&5
5053 cat conftest.
$ac_ext >&5
5054 echo "$as_me:$LINENO: result: no" >&5
5055 echo "${ECHO_T}no" >&6
5057 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5060 # Checks for regular expression functions.
5062 have_posix_regex
=unknown
5063 echo "$as_me:$LINENO: checking for regcomp" >&5
5064 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
5068 # Check whether --with-regex or --without-regex was given.
5069 if test "${with_regex+set}" = set; then
5070 withval
="$with_regex"
5071 WANT_REGEX
="$withval"
5074 if test $have_regex = no
; then
5075 if test $WANT_REGEX = auto
-o $WANT_REGEX = posix
; then
5076 # Some versions of Solaris have a regcomp() function, but it doesn't work!
5077 # So we run a test program. If we're cross-compiling, do it the old way.
5078 if test "$cross_compiling" = yes; then
5079 have_posix_regex
=unknown
5081 cat >conftest.
$ac_ext <<_ACEOF
5082 #line $LINENO "configure"
5083 #include "confdefs.h"
5085 #include <sys/types.h>
5087 main() { regex_t r; regmatch_t rm; char *text = "xabcy";
5088 if (regcomp(&r, "abc", 0)) exit(1);
5089 if (regexec(&r, text, 1, &rm, 0)) exit(1);
5091 if (rm.rm_so != 1) exit(1); /* check for correct offset */
5093 if (rm.rm_sp != text + 1) exit(1); /* check for correct offset */
5097 rm -f 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); } && { ac_try
='./conftest$ac_exeext'
5103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); }; }; then
5108 have_posix_regex
=yes
5110 echo "$as_me: program exited with status $ac_status" >&5
5111 echo "$as_me: failed program was:" >&5
5112 cat conftest.
$ac_ext >&5
5116 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5118 if test $have_posix_regex = yes; then
5119 echo "$as_me:$LINENO: result: using POSIX regcomp" >&5
5120 echo "${ECHO_T}using POSIX regcomp" >&6
5121 cat >>confdefs.h
<<\_ACEOF
5122 #define HAVE_POSIX_REGCOMP 1
5126 elif test $have_posix_regex = unknown
; then
5127 cat >conftest.
$ac_ext <<_ACEOF
5128 #line $LINENO "configure"
5129 #include "confdefs.h"
5131 #include <sys/types.h>
5136 regex_t *r; regfree(r);
5141 rm -f conftest.
$ac_objext conftest
$ac_exeext
5142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5143 (eval $ac_link) 2>&5
5145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146 (exit $ac_status); } &&
5147 { ac_try
='test -s conftest$ac_exeext'
5148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152 (exit $ac_status); }; }; then
5153 echo "$as_me:$LINENO: result: using POSIX regcomp" >&5
5154 echo "${ECHO_T}using POSIX regcomp" >&6
5155 cat >>confdefs.h
<<\_ACEOF
5156 #define HAVE_POSIX_REGCOMP 1
5160 echo "$as_me: failed program was:" >&5
5161 cat conftest.
$ac_ext >&5
5163 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5165 echo "$as_me:$LINENO: result: no" >&5
5166 echo "${ECHO_T}no" >&6
5171 if test $have_regex = no
; then
5172 if test $WANT_REGEX = auto
-o $WANT_REGEX = pcre
; then
5173 echo "$as_me:$LINENO: checking for pcre_compile in -lpcre" >&5
5174 echo $ECHO_N "checking for pcre_compile in -lpcre... $ECHO_C" >&6
5175 if test "${ac_cv_lib_pcre_pcre_compile+set}" = set; then
5176 echo $ECHO_N "(cached) $ECHO_C" >&6
5178 ac_check_lib_save_LIBS
=$LIBS
5180 cat >conftest.
$ac_ext <<_ACEOF
5181 #line $LINENO "configure"
5182 #include "confdefs.h"
5184 /* Override any gcc2 internal prototype to avoid an error. */
5188 /* We use char because int might match the return type of a gcc2
5189 builtin and then its argument prototype would still apply. */
5190 char pcre_compile ();
5199 rm -f conftest.
$ac_objext conftest
$ac_exeext
5200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5201 (eval $ac_link) 2>&5
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); } &&
5205 { ac_try
='test -s conftest$ac_exeext'
5206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210 (exit $ac_status); }; }; then
5211 ac_cv_lib_pcre_pcre_compile
=yes
5213 echo "$as_me: failed program was:" >&5
5214 cat conftest.
$ac_ext >&5
5215 ac_cv_lib_pcre_pcre_compile
=no
5217 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5218 LIBS
=$ac_check_lib_save_LIBS
5220 echo "$as_me:$LINENO: result: $ac_cv_lib_pcre_pcre_compile" >&5
5221 echo "${ECHO_T}$ac_cv_lib_pcre_pcre_compile" >&6
5222 if test $ac_cv_lib_pcre_pcre_compile = yes; then
5223 echo "$as_me:$LINENO: result: using pcre" >&5
5224 echo "${ECHO_T}using pcre" >&6; cat >>confdefs.h
<<\_ACEOF
5227 LIBS
="$LIBS -lpcre" have_regex
=yes
5233 if test $have_regex = no
; then
5234 if test $WANT_REGEX = auto
-o $WANT_REGEX = regcmp
; then
5235 echo "$as_me:$LINENO: checking for regcmp" >&5
5236 echo $ECHO_N "checking for regcmp... $ECHO_C" >&6
5237 if test "${ac_cv_func_regcmp+set}" = set; then
5238 echo $ECHO_N "(cached) $ECHO_C" >&6
5240 cat >conftest.
$ac_ext <<_ACEOF
5241 #line $LINENO "configure"
5242 #include "confdefs.h"
5243 /* System header to define __stub macros and hopefully few prototypes,
5244 which can conflict with char regcmp (); below. */
5246 /* Override any gcc2 internal prototype to avoid an error. */
5250 /* We use char because int might match the return type of a gcc2
5251 builtin and then its argument prototype would still apply. */
5258 /* The GNU C library defines this for functions which it implements
5259 to always fail with ENOSYS. Some functions are actually named
5260 something starting with __ and the normal name is an alias. */
5261 #if defined (__stub_regcmp) || defined (__stub___regcmp)
5271 rm -f conftest.
$ac_objext conftest
$ac_exeext
5272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5273 (eval $ac_link) 2>&5
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); } &&
5277 { ac_try
='test -s conftest$ac_exeext'
5278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); }; }; then
5283 ac_cv_func_regcmp
=yes
5285 echo "$as_me: failed program was:" >&5
5286 cat conftest.
$ac_ext >&5
5287 ac_cv_func_regcmp
=no
5289 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5291 echo "$as_me:$LINENO: result: $ac_cv_func_regcmp" >&5
5292 echo "${ECHO_T}$ac_cv_func_regcmp" >&6
5293 if test $ac_cv_func_regcmp = yes; then
5294 echo "$as_me:$LINENO: result: using regcmp" >&5
5295 echo "${ECHO_T}using regcmp" >&6; cat >>confdefs.h
<<\_ACEOF
5296 #define HAVE_REGCMP 1
5304 if test $have_regex = no
; then
5305 if test $WANT_REGEX = auto
-o $WANT_REGEX = regcomp
; then
5306 cat >conftest.
$ac_ext <<_ACEOF
5307 #line $LINENO "configure"
5308 #include "confdefs.h"
5319 rm -f conftest.
$ac_objext conftest
$ac_exeext
5320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5321 (eval $ac_link) 2>&5
5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324 (exit $ac_status); } &&
5325 { ac_try
='test -s conftest$ac_exeext'
5326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); }; }; then
5331 echo "$as_me:$LINENO: result: using V8 regcomp" >&5
5332 echo "${ECHO_T}using V8 regcomp" >&6; cat >>confdefs.h
<<\_ACEOF
5333 #define HAVE_V8_REGCOMP 1
5337 echo "$as_me: failed program was:" >&5
5338 cat conftest.
$ac_ext >&5
5340 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5344 if test $have_regex = no
&& test -f ${srcdir}/regexp.c
; then
5345 if test $WANT_REGEX = auto
-o $WANT_REGEX = regcomp-local
; then
5346 echo "$as_me:$LINENO: result: using V8 regcomp -- local source" >&5
5347 echo "${ECHO_T}using V8 regcomp -- local source" >&6; cat >>confdefs.h
<<\_ACEOF
5348 #define HAVE_V8_REGCOMP 1
5350 cat >>confdefs.h
<<\_ACEOF
5351 #define HAVE_REGEXEC2 1
5353 REGEX_O
='regexp.$(O)' have_regex
=yes
5357 if test $have_regex = no
; then
5358 if test $WANT_REGEX = auto
-o $WANT_REGEX = re_comp
; then
5359 echo "$as_me:$LINENO: result: using re_comp" >&5
5360 echo "${ECHO_T}using re_comp" >&6; echo "$as_me:$LINENO: checking for re_comp" >&5
5361 echo $ECHO_N "checking for re_comp... $ECHO_C" >&6
5362 if test "${ac_cv_func_re_comp+set}" = set; then
5363 echo $ECHO_N "(cached) $ECHO_C" >&6
5365 cat >conftest.
$ac_ext <<_ACEOF
5366 #line $LINENO "configure"
5367 #include "confdefs.h"
5368 /* System header to define __stub macros and hopefully few prototypes,
5369 which can conflict with char re_comp (); below. */
5371 /* Override any gcc2 internal prototype to avoid an error. */
5375 /* We use char because int might match the return type of a gcc2
5376 builtin and then its argument prototype would still apply. */
5383 /* The GNU C library defines this for functions which it implements
5384 to always fail with ENOSYS. Some functions are actually named
5385 something starting with __ and the normal name is an alias. */
5386 #if defined (__stub_re_comp) || defined (__stub___re_comp)
5396 rm -f conftest.
$ac_objext conftest
$ac_exeext
5397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5398 (eval $ac_link) 2>&5
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); } &&
5402 { ac_try
='test -s conftest$ac_exeext'
5403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); }; }; then
5408 ac_cv_func_re_comp
=yes
5410 echo "$as_me: failed program was:" >&5
5411 cat conftest.
$ac_ext >&5
5412 ac_cv_func_re_comp
=no
5414 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5416 echo "$as_me:$LINENO: result: $ac_cv_func_re_comp" >&5
5417 echo "${ECHO_T}$ac_cv_func_re_comp" >&6
5418 if test $ac_cv_func_re_comp = yes; then
5419 cat >>confdefs.h
<<\_ACEOF
5420 #define HAVE_RE_COMP 1
5428 if test $have_regex = no
; then
5429 echo "$as_me:$LINENO: result: cannot find regular expression library" >&5
5430 echo "${ECHO_T}cannot find regular expression library" >&6; cat >>confdefs.h
<<\_ACEOF
5437 # Check whether --with-editor or --without-editor was given.
5438 if test "${with_editor+set}" = set; then
5439 withval
="$with_editor"
5440 cat >>confdefs.h
<<_ACEOF
5441 #define EDIT_PGM "$withval"
5445 cat >>confdefs.h
<<\_ACEOF
5446 #define EDIT_PGM "vi"
5454 ac_config_files
="$ac_config_files Makefile"
5456 cat >confcache
<<\_ACEOF
5457 # This file is a shell script that caches the results of configure
5458 # tests run on this system so they can be shared between configure
5459 # scripts and configure runs, see configure's option --config-cache.
5460 # It is not useful on other systems. If it contains results you don't
5461 # want to keep, you may remove or edit it.
5463 # config.status only pays attention to the cache file if you give it
5464 # the --recheck option to rerun configure.
5466 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5467 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5472 # The following way of writing the cache mishandles newlines in values,
5473 # but we know of no workaround that is simple, portable, and efficient.
5474 # So, don't put newlines in cache variables' values.
5475 # Ultrix sh set writes to stderr and can't be redirected directly,
5476 # and sets the high bit in the cache file unless we assign to the vars.
5479 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5481 # `set' does not quote correctly, so add quotes (double-quote
5482 # substitution turns \\\\ into \\, and sed turns \\ into \).
5485 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5488 # `set' quotes correctly as required by POSIX, so do not add quotes.
5490 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5497 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5499 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5501 if cmp -s $cache_file confcache
; then :; else
5502 if test -w $cache_file; then
5503 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5504 cat confcache
>$cache_file
5506 echo "not updating unwritable cache $cache_file"
5511 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5512 # Let make expand exec_prefix.
5513 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5515 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5516 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5517 # trailing colons and then remove the whole line if VPATH becomes empty
5518 # (actually we leave an empty line to preserve line numbers).
5519 if test "x$srcdir" = x.
; then
5520 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
5521 s/:*\$(srcdir):*/:/;
5522 s/:*\${srcdir}:*/:/;
5524 s/^\([^=]*=[ ]*\):*/\1/;
5530 DEFS
=-DHAVE_CONFIG_H
5534 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
5535 # 1. Remove the extension, and $U if already installed.
5536 ac_i
=`echo "$ac_i" |
5537 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5539 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
5540 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
5544 LTLIBOBJS
=$ac_ltlibobjs
5548 : ${CONFIG_STATUS=./config.status}
5549 ac_clean_files_save
=$ac_clean_files
5550 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
5551 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5552 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5553 cat >$CONFIG_STATUS <<_ACEOF
5555 # Generated by $as_me.
5556 # Run this file to recreate the current configuration.
5557 # Compiler output produced by configure, useful for debugging
5558 # configure, is in config.log if it exists.
5561 SHELL=\${CONFIG_SHELL-$SHELL}
5564 cat >>$CONFIG_STATUS <<\_ACEOF
5565 ## --------------------- ##
5566 ## M4sh Initialization. ##
5567 ## --------------------- ##
5569 # Be Bourne compatible
5570 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
5573 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5574 # is contrary to our usage. Disable this feature.
5575 alias -g '${1+"$@"}'='"$@"'
5576 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
5580 # Support unset when possible.
5581 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
5588 # Work around bugs in pre-3.0 UWIN ksh.
5589 $as_unset ENV MAIL MAILPATH
5595 for as_var
in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
5597 if (set +x
; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
5598 eval $as_var=C
; export $as_var
5604 # Required to use basename.
5605 if expr a
: '\(a\)' >/dev
/null
2>&1; then
5611 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
5612 as_basename
=basename
5618 # Name of the executable.
5619 as_me
=`$as_basename "$0" ||
5620 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5621 X"$0" : 'X\(//\)$' \| \
5622 X"$0" : 'X\(/\)$' \| \
5623 . : '\(.\)' 2>/dev/null ||
5625 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5626 /^X\/\(\/\/\)$/{ s//\1/; q; }
5627 /^X\/\(\/\).*/{ s//\1/; q; }
5631 # PATH needs CR, and LINENO needs CR and PATH.
5632 # Avoid depending upon Character Ranges.
5633 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
5634 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5635 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
5636 as_cr_digits
='0123456789'
5637 as_cr_alnum
=$as_cr_Letters$as_cr_digits
5639 # The user is always right.
5640 if test "${PATH_SEPARATOR+set}" != set; then
5641 echo "#! /bin/sh" >conftest.sh
5642 echo "exit 0" >>conftest.sh
5643 chmod +x conftest.sh
5644 if (PATH
="/nonexistent;."; conftest.sh
) >/dev
/null
2>&1; then
5655 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
5656 test "x$as_lineno_1" != "x$as_lineno_2" &&
5657 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
5658 # Find who we are. Look in the path if we contain no path at all
5661 *[\\/]* ) as_myself
=$0 ;;
5662 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5666 test -z "$as_dir" && as_dir
=.
5667 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
5672 # We did not find ourselves, most probably we were run as `sh COMMAND'
5673 # in which case we are not to be found in the path.
5674 if test "x$as_myself" = x
; then
5677 if test ! -f "$as_myself"; then
5678 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5679 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5680 { (exit 1); exit 1; }; }
5682 case $CONFIG_SHELL in
5684 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5685 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
5688 test -z "$as_dir" && as_dir
=.
5689 for as_base
in sh bash ksh sh5
; do
5692 if ("$as_dir/$as_base" -c '
5695 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5696 test "x$as_lineno_1" != "x$as_lineno_2" &&
5697 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
5698 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
5699 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
5700 CONFIG_SHELL
=$as_dir/$as_base
5702 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5710 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5711 # uniformly replaced by the line number. The first 'sed' inserts a
5712 # line-number line before each line; the second 'sed' does the real
5713 # work. The second script uses 'N' to pair each line-number line
5714 # with the numbered line, and appends trailing '-' during
5715 # substitution so that $LINENO is not a special case at line end.
5716 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5717 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5718 sed '=' <$as_myself |
5723 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5726 s,^['$as_cr_digits']*\n,,
5728 chmod +x
$as_me.lineno ||
5729 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5730 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5731 { (exit 1); exit 1; }; }
5733 # Don't try to exec as it changes $[0], causing all sort of problems
5734 # (the dirname of $[0] is not the place where we might find the
5735 # original and so on. Autoconf is especially sensible to this).
5737 # Exit status is that of the last command.
5742 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5743 *c
*,-n*) ECHO_N
= ECHO_C
='
5745 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
5746 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
5749 if expr a
: '\(a\)' >/dev
/null
2>&1; then
5755 rm -f conf$$ conf$$.exe conf$$.
file
5757 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
5758 # We could just check for DJGPP; but this test a) works b) is more generic
5759 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5760 if test -f conf$$.exe
; then
5761 # Don't use ln at all; we don't have any links
5766 elif ln conf$$.
file conf$$
2>/dev
/null
; then
5771 rm -f conf$$ conf$$.exe conf$$.
file
5773 if mkdir
-p .
2>/dev
/null
; then
5779 as_executable_p
="test -f"
5781 # Sed expression to map a string onto a valid CPP name.
5782 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
5784 # Sed expression to map a string onto a valid variable name.
5785 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
5789 # We need space, tab and new line, in precisely that order.
5799 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5800 # report actual input values of CONFIG_FILES etc. instead of their
5801 # values after options handling. Logging --version etc. is OK.
5805 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5806 ## Running $as_me. ##
5811 This file was extended by less $as_me 1, which was
5812 generated by GNU Autoconf 2.54. Invocation command line was
5814 CONFIG_FILES = $CONFIG_FILES
5815 CONFIG_HEADERS = $CONFIG_HEADERS
5816 CONFIG_LINKS = $CONFIG_LINKS
5817 CONFIG_COMMANDS = $CONFIG_COMMANDS
5821 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5825 # Files that config.status was made for.
5826 if test -n "$ac_config_files"; then
5827 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5830 if test -n "$ac_config_headers"; then
5831 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5834 if test -n "$ac_config_links"; then
5835 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5838 if test -n "$ac_config_commands"; then
5839 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5842 cat >>$CONFIG_STATUS <<\_ACEOF
5845 \`$as_me' instantiates files from templates according to the
5846 current configuration.
5848 Usage: $0 [OPTIONS] [FILE]...
5850 -h, --help print this help, then exit
5851 -V, --version print version number, then exit
5852 -d, --debug don't remove temporary files
5853 --recheck update $as_me by reconfiguring in the same conditions
5854 --file=FILE[:TEMPLATE]
5855 instantiate the configuration file FILE
5856 --header=FILE[:TEMPLATE]
5857 instantiate the configuration header FILE
5859 Configuration files:
5862 Configuration headers:
5865 Report bugs to <bug-autoconf@gnu.org>."
5868 cat >>$CONFIG_STATUS <<_ACEOF
5870 less config.status 1
5871 configured by $0, generated by GNU Autoconf 2.54,
5872 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5874 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5875 Free Software Foundation, Inc.
5876 This config.status script is free software; the Free Software Foundation
5877 gives unlimited permission to copy, distribute and modify it."
5882 cat >>$CONFIG_STATUS <<\_ACEOF
5883 # If no file are specified by the user, then we need to provide default
5884 # value. By we need to know if files were specified by the user.
5890 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
5891 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
5899 *) # This is not an option, so the user has probably given explicit
5902 ac_need_defaults
=false
;;
5906 # Handling of the options.
5908 cat >>$CONFIG_STATUS <<_ACEOF
5909 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5910 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
5911 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
5913 cat >>$CONFIG_STATUS <<\_ACEOF
5914 --version |
--vers* |
-V )
5915 echo "$ac_cs_version"; exit 0 ;;
5917 # Conflict between --help and --header
5918 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5919 Try \`$0 --help' for more information." >&5
5920 echo "$as_me: error: ambiguous option: $1
5921 Try \`$0 --help' for more information." >&2;}
5922 { (exit 1); exit 1; }; };;
5923 --help |
--hel |
-h )
5924 echo "$ac_cs_usage"; exit 0 ;;
5925 --debug |
--d* |
-d )
5927 --file |
--fil |
--fi |
--f )
5929 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
5930 ac_need_defaults
=false
;;
5931 --header |
--heade |
--head |
--hea )
5933 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
5934 ac_need_defaults
=false
;;
5937 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5938 Try \`$0 --help' for more information." >&5
5939 echo "$as_me: error: unrecognized option: $1
5940 Try \`$0 --help' for more information." >&2;}
5941 { (exit 1); exit 1; }; } ;;
5943 *) ac_config_targets
="$ac_config_targets $1" ;;
5955 cat >>$CONFIG_STATUS <<\_ACEOF
5956 for ac_config_target
in $ac_config_targets
5958 case "$ac_config_target" in
5959 # Handling of arguments.
5960 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
5961 "defines.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS defines.h" ;;
5962 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5963 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5964 { (exit 1); exit 1; }; };;
5968 # If the user did not use the arguments to specify the items to instantiate,
5969 # then the envvar interface is used. Set only those that are not.
5970 # We use the long form for the default assignment because of an extremely
5971 # bizarre bug on SunOS 4.1.3.
5972 if $ac_need_defaults; then
5973 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
5974 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
5977 # Create a temporary directory, and hook for its removal unless debugging.
5980 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5981 trap '{ (exit 1); exit 1; }' 1 2 13 15
5984 # Create a (secure) tmp directory for tmp files.
5987 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
5988 test -n "$tmp" && test -d "$tmp"
5991 tmp
=$TMPDIR/cs$$
-$RANDOM
5992 (umask 077 && mkdir
$tmp)
5995 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5996 { (exit 1); exit 1; }
6001 cat >>$CONFIG_STATUS <<_ACEOF
6004 # CONFIG_FILES section.
6007 # No need to generate the scripts if there are no CONFIG_FILES.
6008 # This happens for instance when ./config.status config.h
6009 if test -n "\$CONFIG_FILES"; then
6010 # Protect against being on the right side of a sed subst in config.status.
6011 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6012 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6013 s,@SHELL@,$SHELL,;t t
6014 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6015 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6016 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6017 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6018 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6019 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6020 s,@exec_prefix@,$exec_prefix,;t t
6021 s,@prefix@,$prefix,;t t
6022 s,@program_transform_name@,$program_transform_name,;t t
6023 s,@bindir@,$bindir,;t t
6024 s,@sbindir@,$sbindir,;t t
6025 s,@libexecdir@,$libexecdir,;t t
6026 s,@datadir@,$datadir,;t t
6027 s,@sysconfdir@,$sysconfdir,;t t
6028 s,@sharedstatedir@,$sharedstatedir,;t t
6029 s,@localstatedir@,$localstatedir,;t t
6030 s,@libdir@,$libdir,;t t
6031 s,@includedir@,$includedir,;t t
6032 s,@oldincludedir@,$oldincludedir,;t t
6033 s,@infodir@,$infodir,;t t
6034 s,@mandir@,$mandir,;t t
6035 s,@build_alias@,$build_alias,;t t
6036 s,@host_alias@,$host_alias,;t t
6037 s,@target_alias@,$target_alias,;t t
6039 s,@ECHO_C@,$ECHO_C,;t t
6040 s,@ECHO_N@,$ECHO_N,;t t
6041 s,@ECHO_T@,$ECHO_T,;t t
6044 s,@CFLAGS@,$CFLAGS,;t t
6045 s,@LDFLAGS@,$LDFLAGS,;t t
6046 s,@CPPFLAGS@,$CPPFLAGS,;t t
6047 s,@ac_ct_CC@,$ac_ct_CC,;t t
6048 s,@EXEEXT@,$EXEEXT,;t t
6049 s,@OBJEXT@,$OBJEXT,;t t
6051 s,@EGREP@,$EGREP,;t t
6052 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6053 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6054 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6055 s,@REGEX_O@,$REGEX_O,;t t
6056 s,@LIBOBJS@,$LIBOBJS,;t t
6057 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6062 cat >>$CONFIG_STATUS <<\_ACEOF
6063 # Split the substitutions into bite-sized pieces for seds with
6064 # small command number limits, like on Digital OSF/1 and HP-UX.
6066 ac_sed_frag
=1 # Number of current file.
6067 ac_beg
=1 # First line for current file.
6068 ac_end
=$ac_max_sed_lines # Line after last line for current file.
6071 while $ac_more_lines; do
6072 if test $ac_beg -gt 1; then
6073 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
6075 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
6077 if test ! -s $tmp/subs.frag
; then
6080 # The purpose of the label and of the branching condition is to
6081 # speed up the sed processing (if there are no `@' at all, there
6082 # is no need to browse any of the substitutions).
6083 # These are the two extra sed commands mentioned above.
6085 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
6086 if test -z "$ac_sed_cmds"; then
6087 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
6089 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6091 ac_sed_frag
=`expr $ac_sed_frag + 1`
6093 ac_end
=`expr $ac_end + $ac_max_sed_lines`
6096 if test -z "$ac_sed_cmds"; then
6099 fi # test -n "$CONFIG_FILES"
6102 cat >>$CONFIG_STATUS <<\_ACEOF
6103 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
6104 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6106 - |
*:- |
*:-:* ) # input from stdin
6108 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
6109 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
6110 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
6111 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
6112 * ) ac_file_in
=$ac_file.
in ;;
6115 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6116 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
6117 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6118 X"$ac_file" : 'X\(//\)[^/]' \| \
6119 X"$ac_file" : 'X\(//\)$' \| \
6120 X"$ac_file" : 'X\(/\)' \| \
6121 . : '\(.\)' 2>/dev/null ||
6123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6124 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6125 /^X\(\/\/\)$/{ s//\1/; q; }
6126 /^X\(\/\).*/{ s//\1/; q; }
6128 { if $as_mkdir_p; then
6133 while test ! -d "$as_dir"; do
6134 as_dirs
="$as_dir $as_dirs"
6135 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
6136 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6137 X"$as_dir" : 'X\(//\)[^/]' \| \
6138 X"$as_dir" : 'X\(//\)$' \| \
6139 X"$as_dir" : 'X\(/\)' \| \
6140 . : '\(.\)' 2>/dev/null ||
6142 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6143 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6144 /^X\(\/\/\)$/{ s//\1/; q; }
6145 /^X\(\/\).*/{ s//\1/; q; }
6148 test ! -n "$as_dirs" || mkdir
$as_dirs
6149 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6150 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6151 { (exit 1); exit 1; }; }; }
6155 if test "$ac_dir" != .
; then
6156 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6157 # A "../" for each directory in $ac_dir_suffix.
6158 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6160 ac_dir_suffix
= ac_top_builddir
=
6164 .
) # No --srcdir option. We are building in place.
6166 if test -z "$ac_top_builddir"; then
6169 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
6171 [\\/]* | ?
:[\\/]* ) # Absolute path.
6172 ac_srcdir
=$srcdir$ac_dir_suffix;
6173 ac_top_srcdir
=$srcdir ;;
6175 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
6176 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
6178 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6180 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
6181 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
6182 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6183 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6187 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
6188 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
6191 if test x
"$ac_file" != x-
; then
6192 { echo "$as_me:$LINENO: creating $ac_file" >&5
6193 echo "$as_me: creating $ac_file" >&6;}
6196 # Let's still pretend it is `configure' which instantiates (i.e., don't
6197 # use $as_me), people would be surprised to read:
6198 # /* config.h. Generated by config.status. */
6199 if test x
"$ac_file" = x-
; then
6202 configure_input
="$ac_file. "
6204 configure_input
=$configure_input"Generated from `echo $ac_file_in |
6205 sed 's,.*/,,'` by configure."
6207 # First look for the input files in the build tree, otherwise in the
6209 ac_file_inputs
=`IFS=:
6210 for f in $ac_file_in; do
6212 -) echo $tmp/stdin ;;
6214 # Absolute (can't be DOS-style, as IFS=:)
6215 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6216 echo "$as_me: error: cannot find input file: $f" >&2;}
6217 { (exit 1); exit 1; }; }
6220 if test -f "$f"; then
6223 elif test -f "$srcdir/$f"; then
6228 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6229 echo "$as_me: error: cannot find input file: $f" >&2;}
6230 { (exit 1); exit 1; }; }
6233 done` ||
{ (exit 1); exit 1; }
6235 cat >>$CONFIG_STATUS <<_ACEOF
6239 cat >>$CONFIG_STATUS <<\_ACEOF
6241 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
6242 s
,@configure_input@
,$configure_input,;t t
6243 s
,@srcdir@
,$ac_srcdir,;t t
6244 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
6245 s
,@top_srcdir@
,$ac_top_srcdir,;t t
6246 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
6247 s
,@builddir@
,$ac_builddir,;t t
6248 s
,@abs_builddir@
,$ac_abs_builddir,;t t
6249 s
,@top_builddir@
,$ac_top_builddir,;t t
6250 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
6251 s
,@INSTALL@
,$ac_INSTALL,;t t
6252 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6254 if test x"$ac_file" != x-; then
6255 mv $tmp/out $ac_file
6263 cat >>$CONFIG_STATUS <<\_ACEOF
6266 # CONFIG_HEADER section.
6269 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
6270 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6272 # ac_d sets the value in "#define NAME VALUE" lines.
6273 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6274 ac_dB
='[ ].*$,\1#\2'
6277 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6278 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6279 ac_uB
='$,\1#\2define\3'
6283 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
6284 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6286 - |
*:- |
*:-:* ) # input from stdin
6288 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
6289 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
6290 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
6291 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
6292 * ) ac_file_in
=$ac_file.
in ;;
6295 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
6296 echo "$as_me: creating $ac_file" >&6;}
6298 # First look for the input files in the build tree, otherwise in the
6300 ac_file_inputs
=`IFS=:
6301 for f in $ac_file_in; do
6303 -) echo $tmp/stdin ;;
6305 # Absolute (can't be DOS-style, as IFS=:)
6306 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6307 echo "$as_me: error: cannot find input file: $f" >&2;}
6308 { (exit 1); exit 1; }; }
6311 if test -f "$f"; then
6314 elif test -f "$srcdir/$f"; then
6319 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6320 echo "$as_me: error: cannot find input file: $f" >&2;}
6321 { (exit 1); exit 1; }; }
6324 done` ||
{ (exit 1); exit 1; }
6325 # Remove the trailing spaces.
6326 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6330 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6331 # `conftest.undefs', that substitutes the proper values into
6332 # config.h.in to produce config.h. The first handles `#define'
6333 # templates, and the second `#undef' templates.
6334 # And first: Protect against being on the right side of a sed subst in
6335 # config.status. Protect against being in an unquoted here document
6337 rm -f conftest.defines conftest.undefs
6338 # Using a here document instead of a string reduces the quoting nightmare.
6339 # Putting comments in sed scripts is not portable.
6341 # `end' is used to avoid that the second main sed command (meant for
6342 # 0-ary CPP macros) applies to n-ary macro definitions.
6343 # See the Autoconf documentation for `clear'.
6344 cat >confdef2sed.
sed <<\_ACEOF
6349 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6351 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6354 # If some macros were called several times there might be several times
6355 # the same #defines, which is useless. Nevertheless, we may not want to
6356 # sort them, since we want the *last* AC-DEFINE to be honored.
6357 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6358 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6359 rm -f confdef2sed.sed
6361 # This sed command replaces #undef with comments. This is necessary, for
6362 # example, in the case of _POSIX_SOURCE, which is predefined and required
6363 # on some systems where configure will not decide to define it.
6364 cat >>conftest.undefs <<\_ACEOF
6365 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6368 # Break up conftest.defines because some shells have a limit on the size
6369 # of here documents, and old seds have small limits too (100 cmds).
6370 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6371 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6372 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6373 echo ' :' >>$CONFIG_STATUS
6375 while grep . conftest.defines >/dev/null
6377 # Write a limited-size here document to $tmp/defines.sed.
6378 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6379 # Speed up: don't consider the non `#define' lines.
6380 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6381 # Work around the forget-to-reset-the-flag bug.
6382 echo 't clr' >>$CONFIG_STATUS
6383 echo ': clr' >>$CONFIG_STATUS
6384 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
6386 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6390 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
6391 rm -f conftest.defines
6392 mv conftest.
tail conftest.defines
6394 rm -f conftest.defines
6395 echo ' fi # grep' >>$CONFIG_STATUS
6396 echo >>$CONFIG_STATUS
6398 # Break up conftest.undefs because some shells have a limit on the size
6399 # of here documents, and old seds have small limits too (100 cmds).
6400 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6402 while grep . conftest.undefs
>/dev
/null
6404 # Write a limited-size here document to $tmp/undefs.sed.
6405 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6406 # Speed up: don't consider the non
`#undef'
6407 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6408 # Work around the forget-to-reset-the-flag bug.
6409 echo 't clr' >>$CONFIG_STATUS
6410 echo ': clr' >>$CONFIG_STATUS
6411 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6413 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6417 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6418 rm -f conftest.undefs
6419 mv conftest.tail conftest.undefs
6421 rm -f conftest.undefs
6423 cat >>$CONFIG_STATUS <<\_ACEOF
6424 # Let's still pretend it is `configure
' which instantiates (i.e., don't
6425 # use $as_me), people would be surprised to read:
6426 # /* config.h. Generated by config.status. */
6427 if test x
"$ac_file" = x-
; then
6428 echo "/* Generated by configure. */" >$tmp/config.h
6430 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6432 cat $tmp/in >>$tmp/config.h
6434 if test x
"$ac_file" != x-
; then
6435 if cmp -s $ac_file $tmp/config.h
2>/dev
/null
; then
6436 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6437 echo "$as_me: $ac_file is unchanged" >&6;}
6439 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
6440 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6441 X"$ac_file" : 'X\(//\)[^/]' \| \
6442 X"$ac_file" : 'X\(//\)$' \| \
6443 X"$ac_file" : 'X\(/\)' \| \
6444 . : '\(.\)' 2>/dev/null ||
6446 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6447 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6448 /^X\(\/\/\)$/{ s//\1/; q; }
6449 /^X\(\/\).*/{ s//\1/; q; }
6451 { if $as_mkdir_p; then
6456 while test ! -d "$as_dir"; do
6457 as_dirs
="$as_dir $as_dirs"
6458 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
6459 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6460 X"$as_dir" : 'X\(//\)[^/]' \| \
6461 X"$as_dir" : 'X\(//\)$' \| \
6462 X"$as_dir" : 'X\(/\)' \| \
6463 . : '\(.\)' 2>/dev/null ||
6465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6466 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6467 /^X\(\/\/\)$/{ s//\1/; q; }
6468 /^X\(\/\).*/{ s//\1/; q; }
6471 test ! -n "$as_dirs" || mkdir
$as_dirs
6472 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6473 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6474 { (exit 1); exit 1; }; }; }
6477 mv $tmp/config.h
$ac_file
6486 cat >>$CONFIG_STATUS <<\_ACEOF
6488 { (exit 0); exit 0; }
6490 chmod +x
$CONFIG_STATUS
6491 ac_clean_files
=$ac_clean_files_save
6494 # configure is writing to config.log, and then calls config.status.
6495 # config.status does its own redirection, appending to config.log.
6496 # Unfortunately, on DOS this fails, as config.log is still kept open
6497 # by configure, so config.status won't be able to write to it; its
6498 # output is simply discarded. So we exec the FD to /dev/null,
6499 # effectively closing config.log, so it can be properly (re)opened and
6500 # appended to by config.status. When coming back to configure, we
6501 # need to make the FD available again.
6502 if test "$no_create" != yes; then
6505 $SHELL $CONFIG_STATUS || ac_cs_success
=false
6507 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6508 # would make configure fail if this is the last instruction.
6509 $ac_cs_success ||
{ (exit 1); exit 1; }