2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix
=/usr
/local
255 ac_config_libobj_dir
=.
260 SHELL
=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file
="rlfe.c"
275 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 VERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP AWK WRITEPATH XTERMPATH LIBOBJS LTLIBOBJS'
279 # Initialize some variables set by options.
281 ac_init_version
=false
282 # The variables have the same names as the options, with
283 # dashes changed to underlines.
291 program_transform_name
=s
,x
,x
,
299 # Installation directory options.
300 # These are left unexpanded so users can "make install exec_prefix=/foo"
301 # and all the variables that are supposed to be based on exec_prefix
302 # by default will actually change.
303 # Use braces instead of parens because sh, perl, etc. also accept them.
304 bindir
='${exec_prefix}/bin'
305 sbindir
='${exec_prefix}/sbin'
306 libexecdir
='${exec_prefix}/libexec'
307 datadir
='${prefix}/share'
308 sysconfdir
='${prefix}/etc'
309 sharedstatedir
='${prefix}/com'
310 localstatedir
='${prefix}/var'
311 libdir
='${exec_prefix}/lib'
312 includedir
='${prefix}/include'
313 oldincludedir
='/usr/include'
314 infodir
='${prefix}/info'
315 mandir
='${prefix}/man'
320 # If the previous option needs an argument, assign it.
321 if test -n "$ac_prev"; then
322 eval "$ac_prev=\$ac_option"
327 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
329 # Accept the important Cygnus configure options, so we can diagnose typos.
333 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
335 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
338 -build |
--build |
--buil |
--bui |
--bu)
339 ac_prev
=build_alias
;;
340 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
341 build_alias
=$ac_optarg ;;
343 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
344 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
345 ac_prev
=cache_file
;;
346 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
347 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
348 cache_file
=$ac_optarg ;;
351 cache_file
=config.cache
;;
353 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
355 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
357 datadir
=$ac_optarg ;;
359 -disable-* |
--disable-*)
360 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
361 # Reject names that are not valid shell variable names.
362 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
363 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
364 { (exit 1); exit 1; }; }
365 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
366 eval "enable_$ac_feature=no" ;;
368 -enable-* |
--enable-*)
369 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
370 # Reject names that are not valid shell variable names.
371 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
372 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
373 { (exit 1); exit 1; }; }
374 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
376 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
379 eval "enable_$ac_feature='$ac_optarg'" ;;
381 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
382 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
383 |
--exec |
--exe |
--ex)
384 ac_prev
=exec_prefix
;;
385 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
386 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
387 |
--exec=* |
--exe=* |
--ex=*)
388 exec_prefix
=$ac_optarg ;;
390 -gas |
--gas |
--ga |
--g)
391 # Obsolete; use --with-gas.
394 -help |
--help |
--hel |
--he |
-h)
396 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
397 ac_init_help
=recursive
;;
398 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
399 ac_init_help
=short
;;
401 -host |
--host |
--hos |
--ho)
402 ac_prev
=host_alias
;;
403 -host=* |
--host=* |
--hos=* |
--ho=*)
404 host_alias
=$ac_optarg ;;
406 -includedir |
--includedir |
--includedi |
--included |
--include \
407 |
--includ |
--inclu |
--incl |
--inc)
408 ac_prev
=includedir
;;
409 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
410 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
411 includedir
=$ac_optarg ;;
413 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
415 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
416 infodir
=$ac_optarg ;;
418 -libdir |
--libdir |
--libdi |
--libd)
420 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
423 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
424 |
--libexe |
--libex |
--libe)
425 ac_prev
=libexecdir
;;
426 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
427 |
--libexe=* |
--libex=* |
--libe=*)
428 libexecdir
=$ac_optarg ;;
430 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
431 |
--localstate |
--localstat |
--localsta |
--localst \
432 |
--locals |
--local |
--loca |
--loc |
--lo)
433 ac_prev
=localstatedir
;;
434 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
435 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
436 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
437 localstatedir
=$ac_optarg ;;
439 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
441 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
445 # Obsolete; use --without-fp.
448 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
449 |
--no-cr |
--no-c |
-n)
452 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
453 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
456 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
457 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
458 |
--oldin |
--oldi |
--old |
--ol |
--o)
459 ac_prev
=oldincludedir
;;
460 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
461 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
462 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
463 oldincludedir
=$ac_optarg ;;
465 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
467 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
470 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
471 |
--program-pre |
--program-pr |
--program-p)
472 ac_prev
=program_prefix
;;
473 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
474 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
475 program_prefix
=$ac_optarg ;;
477 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
478 |
--program-suf |
--program-su |
--program-s)
479 ac_prev
=program_suffix
;;
480 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
481 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
482 program_suffix
=$ac_optarg ;;
484 -program-transform-name |
--program-transform-name \
485 |
--program-transform-nam |
--program-transform-na \
486 |
--program-transform-n |
--program-transform- \
487 |
--program-transform |
--program-transfor \
488 |
--program-transfo |
--program-transf \
489 |
--program-trans |
--program-tran \
490 |
--progr-tra |
--program-tr |
--program-t)
491 ac_prev
=program_transform_name
;;
492 -program-transform-name=* |
--program-transform-name=* \
493 |
--program-transform-nam=* |
--program-transform-na=* \
494 |
--program-transform-n=* |
--program-transform-=* \
495 |
--program-transform=* |
--program-transfor=* \
496 |
--program-transfo=* |
--program-transf=* \
497 |
--program-trans=* |
--program-tran=* \
498 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
499 program_transform_name
=$ac_optarg ;;
501 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
502 |
-silent |
--silent |
--silen |
--sile |
--sil)
505 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
507 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
509 sbindir
=$ac_optarg ;;
511 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
512 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
513 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
515 ac_prev
=sharedstatedir
;;
516 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
517 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
518 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
520 sharedstatedir
=$ac_optarg ;;
522 -site |
--site |
--sit)
524 -site=* |
--site=* |
--sit=*)
527 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
529 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
532 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
533 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
534 ac_prev
=sysconfdir
;;
535 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
536 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
537 sysconfdir
=$ac_optarg ;;
539 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
540 ac_prev
=target_alias
;;
541 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
542 target_alias
=$ac_optarg ;;
544 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
547 -version |
--version |
--versio |
--versi |
--vers |
-V)
551 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
554 { echo "$as_me: error: invalid package name: $ac_package" >&2
555 { (exit 1); exit 1; }; }
556 ac_package
=`echo $ac_package| sed 's/-/_/g'`
558 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
561 eval "with_$ac_package='$ac_optarg'" ;;
563 -without-* |
--without-*)
564 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
565 # Reject names that are not valid shell variable names.
566 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
567 { echo "$as_me: error: invalid package name: $ac_package" >&2
568 { (exit 1); exit 1; }; }
569 ac_package
=`echo $ac_package | sed 's/-/_/g'`
570 eval "with_$ac_package=no" ;;
573 # Obsolete; use --with-x.
576 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
577 |
--x-incl |
--x-inc |
--x-in |
--x-i)
578 ac_prev
=x_includes
;;
579 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
580 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
581 x_includes
=$ac_optarg ;;
583 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
584 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
585 ac_prev
=x_libraries
;;
586 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
587 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
588 x_libraries
=$ac_optarg ;;
590 -*) { echo "$as_me: error: unrecognized option: $ac_option
591 Try \`$0 --help' for more information." >&2
592 { (exit 1); exit 1; }; }
596 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
597 # Reject names that are not valid shell variable names.
598 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
599 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
600 { (exit 1); exit 1; }; }
601 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
602 eval "$ac_envvar='$ac_optarg'"
606 # FIXME: should be removed in autoconf 3.0.
607 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
608 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
609 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
610 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
616 if test -n "$ac_prev"; then
617 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
618 { echo "$as_me: error: missing argument to $ac_option" >&2
619 { (exit 1); exit 1; }; }
622 # Be sure to have absolute paths.
623 for ac_var
in exec_prefix prefix
625 eval ac_val
=$
`echo $ac_var`
627 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
628 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
629 { (exit 1); exit 1; }; };;
633 # Be sure to have absolute paths.
634 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
635 localstatedir libdir includedir oldincludedir infodir mandir
637 eval ac_val
=$
`echo $ac_var`
639 [\\/$
]* | ?
:[\\/]* ) ;;
640 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
641 { (exit 1); exit 1; }; };;
645 # There might be people who depend on the old broken behavior: `$host'
646 # used to hold the argument of --host etc.
647 # FIXME: To remove some day.
652 # FIXME: To remove some day.
653 if test "x$host_alias" != x
; then
654 if test "x$build_alias" = x
; then
655 cross_compiling
=maybe
656 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
657 If a cross compiler is detected then cross compile mode will be used." >&2
658 elif test "x$build_alias" != "x$host_alias"; then
664 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
666 test "$silent" = yes && exec 6>/dev
/null
669 # Find the source files, if location was not specified.
670 if test -z "$srcdir"; then
671 ac_srcdir_defaulted
=yes
672 # Try the directory containing this script, then its parent.
673 ac_confdir
=`(dirname "$0") 2>/dev/null ||
674 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
675 X"$0" : 'X\(//\)[^/]' \| \
676 X"$0" : 'X\(//\)$' \| \
677 X"$0" : 'X\(/\)' \| \
678 . : '\(.\)' 2>/dev/null ||
680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
682 /^X\(\/\/\)$/{ s//\1/; q; }
683 /^X\(\/\).*/{ s//\1/; q; }
686 if test ! -r $srcdir/$ac_unique_file; then
690 ac_srcdir_defaulted
=no
692 if test ! -r $srcdir/$ac_unique_file; then
693 if test "$ac_srcdir_defaulted" = yes; then
694 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
695 { (exit 1); exit 1; }; }
697 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
698 { (exit 1); exit 1; }; }
701 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
702 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
703 { (exit 1); exit 1; }; }
704 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
705 ac_env_build_alias_set
=${build_alias+set}
706 ac_env_build_alias_value
=$build_alias
707 ac_cv_env_build_alias_set
=${build_alias+set}
708 ac_cv_env_build_alias_value
=$build_alias
709 ac_env_host_alias_set
=${host_alias+set}
710 ac_env_host_alias_value
=$host_alias
711 ac_cv_env_host_alias_set
=${host_alias+set}
712 ac_cv_env_host_alias_value
=$host_alias
713 ac_env_target_alias_set
=${target_alias+set}
714 ac_env_target_alias_value
=$target_alias
715 ac_cv_env_target_alias_set
=${target_alias+set}
716 ac_cv_env_target_alias_value
=$target_alias
717 ac_env_CC_set
=${CC+set}
719 ac_cv_env_CC_set
=${CC+set}
720 ac_cv_env_CC_value
=$CC
721 ac_env_CFLAGS_set
=${CFLAGS+set}
722 ac_env_CFLAGS_value
=$CFLAGS
723 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
724 ac_cv_env_CFLAGS_value
=$CFLAGS
725 ac_env_LDFLAGS_set
=${LDFLAGS+set}
726 ac_env_LDFLAGS_value
=$LDFLAGS
727 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
728 ac_cv_env_LDFLAGS_value
=$LDFLAGS
729 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
730 ac_env_CPPFLAGS_value
=$CPPFLAGS
731 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
732 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
733 ac_env_CPP_set
=${CPP+set}
734 ac_env_CPP_value
=$CPP
735 ac_cv_env_CPP_set
=${CPP+set}
736 ac_cv_env_CPP_value
=$CPP
739 # Report the --help message.
741 if test "$ac_init_help" = "long"; then
742 # Omit some internal or obsolete options to make the list less imposing.
743 # This message is too long to be a string in the A/UX 3.1 sh.
745 \`configure' configures this package to adapt to many kinds of systems.
747 Usage: $0 [OPTION]... [VAR=VALUE]...
749 To assign environment variables (e.g., CC, CFLAGS...), specify them as
750 VAR=VALUE. See below for descriptions of some of the useful variables.
752 Defaults for the options are specified in brackets.
755 -h, --help display this help and exit
756 --help=short display options specific to this package
757 --help=recursive display the short help of all the included packages
758 -V, --version display version information and exit
759 -q, --quiet, --silent do not print \`checking...' messages
760 --cache-file=FILE cache test results in FILE [disabled]
761 -C, --config-cache alias for \`--cache-file=config.cache'
762 -n, --no-create do not create output files
763 --srcdir=DIR find the sources in DIR [configure dir or \`..']
768 Installation directories:
769 --prefix=PREFIX install architecture-independent files in PREFIX
771 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
774 By default, \`make install' will install all the files in
775 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
776 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
777 for instance \`--prefix=\$HOME'.
779 For better control, use the options below.
781 Fine tuning of the installation directories:
782 --bindir=DIR user executables [EPREFIX/bin]
783 --sbindir=DIR system admin executables [EPREFIX/sbin]
784 --libexecdir=DIR program executables [EPREFIX/libexec]
785 --datadir=DIR read-only architecture-independent data [PREFIX/share]
786 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
787 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
788 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
789 --libdir=DIR object code libraries [EPREFIX/lib]
790 --includedir=DIR C header files [PREFIX/include]
791 --oldincludedir=DIR C header files for non-gcc [/usr/include]
792 --infodir=DIR info documentation [PREFIX/info]
793 --mandir=DIR man documentation [PREFIX/man]
800 if test -n "$ac_init_help"; then
805 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
806 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
807 --with-pty-mode=mode default mode
for ptys
808 --with-pty-group=group default group
for ptys
810 Some influential environment variables
:
811 CC C compiler
command
812 CFLAGS C compiler flags
813 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
814 nonstandard directory
<lib dir
>
815 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
816 headers
in a nonstandard directory
<include dir
>
819 Use these variables to override the choices made by
`configure' or to help
820 it to find libraries and programs with nonstandard names/locations.
825 if test "$ac_init_help" = "recursive"; then
826 # If there are subdirs, report their specific --help.
828 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
829 test -d $ac_dir || continue
832 if test "$ac_dir" != .; then
833 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
834 # A "../" for each directory in $ac_dir_suffix.
835 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
837 ac_dir_suffix= ac_top_builddir=
841 .) # No --srcdir option. We are building in place.
843 if test -z "$ac_top_builddir"; then
846 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
848 [\\/]* | ?:[\\/]* ) # Absolute path.
849 ac_srcdir=$srcdir$ac_dir_suffix;
850 ac_top_srcdir=$srcdir ;;
852 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
853 ac_top_srcdir=$ac_top_builddir$srcdir ;;
856 # Do not use `cd foo
&& pwd` to compute absolute paths, because
857 # the directories may not exist.
859 .) ac_abs_builddir="$ac_dir";;
862 .) ac_abs_builddir=`pwd`;;
863 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
864 *) ac_abs_builddir=`pwd`/"$ac_dir";;
867 case $ac_abs_builddir in
868 .) ac_abs_top_builddir=${ac_top_builddir}.;;
870 case ${ac_top_builddir}. in
871 .) ac_abs_top_builddir=$ac_abs_builddir;;
872 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
873 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
876 case $ac_abs_builddir in
877 .) ac_abs_srcdir=$ac_srcdir;;
880 .) ac_abs_srcdir=$ac_abs_builddir;;
881 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
882 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
885 case $ac_abs_builddir in
886 .) ac_abs_top_srcdir=$ac_top_srcdir;;
888 case $ac_top_srcdir in
889 .) ac_abs_top_srcdir=$ac_abs_builddir;;
890 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
891 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
896 # Check for guested configure; otherwise get Cygnus style configure.
897 if test -f $ac_srcdir/configure.gnu; then
899 $SHELL $ac_srcdir/configure.gnu --help=recursive
900 elif test -f $ac_srcdir/configure; then
902 $SHELL $ac_srcdir/configure --help=recursive
903 elif test -f $ac_srcdir/configure.ac ||
904 test -f $ac_srcdir/configure.in; then
908 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
914 test -n "$ac_init_help" && exit 0
915 if $ac_init_version; then
918 Copyright (C) 2003 Free Software Foundation, Inc.
919 This configure script is free software; the Free Software Foundation
920 gives unlimited permission to copy, distribute and modify it.
926 This file contains any messages produced by compilers while
927 running configure, to aid debugging if configure makes a mistake.
929 It was created by $as_me, which was
930 generated by GNU Autoconf 2.59. Invocation command line was
941 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
942 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
943 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
944 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
945 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
947 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
948 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
950 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
951 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
952 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
953 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
954 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
955 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
956 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
964 test -z "$as_dir" && as_dir=.
980 # Keep a trace of the command line.
981 # Strip out --no-create and --no-recursion so they do not pile up.
982 # Strip out --silent because we don't want to record it for future runs.
983 # Also quote any args containing shell meta-characters.
984 # Make two passes to allow for proper duplicate-argument suppression.
989 ac_must_keep_next=false
995 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
996 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
997 | -silent | --silent | --silen | --sile | --sil)
999 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1000 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1003 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1005 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1006 if test $ac_must_keep_next = true; then
1007 ac_must_keep_next=false # Got value, back to normal.
1010 *=* | --config-cache | -C | -disable-* | --disable-* \
1011 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1012 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1013 | -with-* | --with-* | -without-* | --without-* | --x)
1014 case "$ac_configure_args0 " in
1015 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1018 -* ) ac_must_keep_next=true ;;
1021 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1022 # Get rid of the leading space.
1028 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1029 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1031 # When interrupted or exit'd, cleanup temporary files, and complete
1032 # config.log. We remove comments because anyway the quotes in there
1033 # would cause problems or look ugly.
1034 # WARNING: Be sure not to use single quotes in there, as some shells,
1035 # such as our DU 5.0 friend, will then `close
' the trap.
1036 trap 'exit_status
=$?
1037 # Save into config.log some information that might help in debugging.
1042 ## ---------------- ##
1043 ## Cache variables. ##
1044 ## ---------------- ##
1047 # The following way of writing the cache mishandles newlines in values,
1050 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1053 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1054 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1058 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1065 ## ----------------- ##
1066 ## Output variables. ##
1067 ## ----------------- ##
1070 for ac_var
in $ac_subst_vars
1072 eval ac_val
=$
`echo $ac_var`
1073 echo "$ac_var='"'"'$ac_val'"'"'"
1077 if test -n "$ac_subst_files"; then
1084 for ac_var
in $ac_subst_files
1086 eval ac_val
=$
`echo $ac_var`
1087 echo "$ac_var='"'"'$ac_val'"'"'"
1092 if test -s confdefs.h
; then
1099 sed "/^$/d" confdefs.h |
sort
1102 test "$ac_signal" != 0 &&
1103 echo "$as_me: caught signal $ac_signal"
1104 echo "$as_me: exit $exit_status"
1106 rm -f core
*.core
&&
1107 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1110 for ac_signal in 1 2 13 15; do
1111 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1115 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1116 rm -rf conftest* confdefs.h
1117 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1120 # Predefined preprocessor variables.
1122 cat >>confdefs.h <<_ACEOF
1123 #define PACKAGE_NAME "$PACKAGE_NAME"
1127 cat >>confdefs.h <<_ACEOF
1128 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1132 cat >>confdefs.h <<_ACEOF
1133 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1137 cat >>confdefs.h <<_ACEOF
1138 #define PACKAGE_STRING "$PACKAGE_STRING"
1142 cat >>confdefs.h <<_ACEOF
1143 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1147 # Let the site file select an alternate cache file if it wants to.
1148 # Prefer explicitly selected file to automatically selected ones.
1149 if test -z "$CONFIG_SITE"; then
1150 if test "x$prefix" != xNONE; then
1151 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1153 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1156 for ac_site_file in $CONFIG_SITE; do
1157 if test -r "$ac_site_file"; then
1158 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1159 echo "$as_me: loading site script $ac_site_file" >&6;}
1160 sed 's
/^
/|
/' "$ac_site_file" >&5
1165 if test -r "$cache_file"; then
1166 # Some versions of bash will fail to source /dev/null (special
1167 # files actually), so we avoid doing that.
1168 if test -f "$cache_file"; then
1169 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1170 echo "$as_me: loading cache $cache_file" >&6;}
1172 [\\/]* | ?:[\\/]* ) . $cache_file;;
1173 *) . ./$cache_file;;
1177 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1178 echo "$as_me: creating cache $cache_file" >&6;}
1182 # Check that the precious variables saved in the cache have kept the same
1184 ac_cache_corrupted=false
1185 for ac_var in `(set) 2>&1 |
1186 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1187 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1188 eval ac_new_set=\$ac_env_${ac_var}_set
1189 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1190 eval ac_new_val="\$ac_env_${ac_var}_value"
1191 case $ac_old_set,$ac_new_set in
1193 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1194 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1195 ac_cache_corrupted=: ;;
1197 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1198 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1199 ac_cache_corrupted=: ;;
1202 if test "x$ac_old_val" != "x$ac_new_val"; then
1203 # differences in whitespace do not lead to failure.
1204 ac_old_val_w=`echo x $ac_old_val`
1205 ac_new_val_w=`echo x $ac_new_val`
1206 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1207 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1208 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1209 ac_cache_corrupted=:
1211 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1212 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run
:" >&2;}
1213 eval $ac_var=\$ac_old_val
1215 { echo "$as_me:$LINENO: former value
: \
`$ac_old_val'" >&5
1216 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1217 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1218 echo "$as_me: current value
: \
`$ac_new_val'" >&2;}
1221 # Pass precious variables to config.status.
1222 if test "$ac_new_set" = set; then
1224 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1225 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1226 *) ac_arg=$ac_var=$ac_new_val ;;
1228 case " $ac_configure_args " in
1229 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1230 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1234 if $ac_cache_corrupted; then
1235 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1236 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1237 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1238 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1239 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1240 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1241 { (exit 1); exit 1; }; }
1245 ac_cpp='$CPP $CPPFLAGS'
1246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1271 ac_config_headers="$ac_config_headers config.h"
1277 old_CFLAGS="$CFLAGS"
1279 ac_cpp='$CPP $CPPFLAGS'
1280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1283 if test -n "$ac_tool_prefix"; then
1284 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1285 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1286 echo "$as_me:$LINENO: checking for $ac_word" >&5
1287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1288 if test "${ac_cv_prog_CC+set}" = set; then
1289 echo $ECHO_N "(cached) $ECHO_C" >&6
1291 if test -n "$CC"; then
1292 ac_cv_prog_CC="$CC" # Let the user override the test.
1294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1298 test -z "$as_dir" && as_dir=.
1299 for ac_exec_ext in '' $ac_executable_extensions; do
1300 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1301 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1311 if test -n "$CC"; then
1312 echo "$as_me:$LINENO: result: $CC" >&5
1313 echo "${ECHO_T}$CC" >&6
1315 echo "$as_me:$LINENO: result: no" >&5
1316 echo "${ECHO_T}no" >&6
1320 if test -z "$ac_cv_prog_CC"; then
1322 # Extract the first word of "gcc", so it can be a program name with args.
1323 set dummy gcc; ac_word=$2
1324 echo "$as_me:$LINENO: checking for $ac_word" >&5
1325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1326 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1327 echo $ECHO_N "(cached) $ECHO_C" >&6
1329 if test -n "$ac_ct_CC"; then
1330 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1336 test -z "$as_dir" && as_dir=.
1337 for ac_exec_ext in '' $ac_executable_extensions; do
1338 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1339 ac_cv_prog_ac_ct_CC="gcc"
1340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1348 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1349 if test -n "$ac_ct_CC"; then
1350 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1351 echo "${ECHO_T}$ac_ct_CC" >&6
1353 echo "$as_me:$LINENO: result: no" >&5
1354 echo "${ECHO_T}no" >&6
1362 if test -z "$CC"; then
1363 if test -n "$ac_tool_prefix"; then
1364 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1365 set dummy ${ac_tool_prefix}cc; ac_word=$2
1366 echo "$as_me:$LINENO: checking for $ac_word" >&5
1367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1368 if test "${ac_cv_prog_CC+set}" = set; then
1369 echo $ECHO_N "(cached) $ECHO_C" >&6
1371 if test -n "$CC"; then
1372 ac_cv_prog_CC="$CC" # Let the user override the test.
1374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1378 test -z "$as_dir" && as_dir=.
1379 for ac_exec_ext in '' $ac_executable_extensions; do
1380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1381 ac_cv_prog_CC="${ac_tool_prefix}cc"
1382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1391 if test -n "$CC"; then
1392 echo "$as_me:$LINENO: result: $CC" >&5
1393 echo "${ECHO_T}$CC" >&6
1395 echo "$as_me:$LINENO: result: no" >&5
1396 echo "${ECHO_T}no" >&6
1400 if test -z "$ac_cv_prog_CC"; then
1402 # Extract the first word of "cc", so it can be a program name with args.
1403 set dummy cc; ac_word=$2
1404 echo "$as_me:$LINENO: checking for $ac_word" >&5
1405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1406 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1407 echo $ECHO_N "(cached) $ECHO_C" >&6
1409 if test -n "$ac_ct_CC"; then
1410 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1416 test -z "$as_dir" && as_dir=.
1417 for ac_exec_ext in '' $ac_executable_extensions; do
1418 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1419 ac_cv_prog_ac_ct_CC="cc"
1420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1428 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1429 if test -n "$ac_ct_CC"; then
1430 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1431 echo "${ECHO_T}$ac_ct_CC" >&6
1433 echo "$as_me:$LINENO: result: no" >&5
1434 echo "${ECHO_T}no" >&6
1443 if test -z "$CC"; then
1444 # Extract the first word of "cc", so it can be a program name with args.
1445 set dummy cc; ac_word=$2
1446 echo "$as_me:$LINENO: checking for $ac_word" >&5
1447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1448 if test "${ac_cv_prog_CC+set}" = set; then
1449 echo $ECHO_N "(cached) $ECHO_C" >&6
1451 if test -n "$CC"; then
1452 ac_cv_prog_CC="$CC" # Let the user override the test.
1455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1459 test -z "$as_dir" && as_dir=.
1460 for ac_exec_ext in '' $ac_executable_extensions; do
1461 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1462 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1463 ac_prog_rejected=yes
1467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1473 if test $ac_prog_rejected = yes; then
1474 # We found a bogon in the path, so make sure we never use it.
1475 set dummy $ac_cv_prog_CC
1477 if test $# != 0; then
1478 # We chose a different compiler from the bogus one.
1479 # However, it has the same basename, so the bogon will be chosen
1480 # first if we set CC to just the basename; use the full file name.
1482 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1488 if test -n "$CC"; then
1489 echo "$as_me:$LINENO: result: $CC" >&5
1490 echo "${ECHO_T}$CC" >&6
1492 echo "$as_me:$LINENO: result: no" >&5
1493 echo "${ECHO_T}no" >&6
1497 if test -z "$CC"; then
1498 if test -n "$ac_tool_prefix"; then
1501 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1502 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1503 echo "$as_me:$LINENO: checking for $ac_word" >&5
1504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1505 if test "${ac_cv_prog_CC+set}" = set; then
1506 echo $ECHO_N "(cached) $ECHO_C" >&6
1508 if test -n "$CC"; then
1509 ac_cv_prog_CC="$CC" # Let the user override the test.
1511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1515 test -z "$as_dir" && as_dir=.
1516 for ac_exec_ext in '' $ac_executable_extensions; do
1517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1518 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1528 if test -n "$CC"; then
1529 echo "$as_me:$LINENO: result: $CC" >&5
1530 echo "${ECHO_T}$CC" >&6
1532 echo "$as_me:$LINENO: result: no" >&5
1533 echo "${ECHO_T}no" >&6
1536 test -n "$CC" && break
1539 if test -z "$CC"; then
1543 # Extract the first word of "$ac_prog", so it can be a program name with args.
1544 set dummy $ac_prog; ac_word=$2
1545 echo "$as_me:$LINENO: checking for $ac_word" >&5
1546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1547 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1548 echo $ECHO_N "(cached) $ECHO_C" >&6
1550 if test -n "$ac_ct_CC"; then
1551 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1557 test -z "$as_dir" && as_dir=.
1558 for ac_exec_ext in '' $ac_executable_extensions; do
1559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1560 ac_cv_prog_ac_ct_CC="$ac_prog"
1561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1569 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1570 if test -n "$ac_ct_CC"; then
1571 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1572 echo "${ECHO_T}$ac_ct_CC" >&6
1574 echo "$as_me:$LINENO: result: no" >&5
1575 echo "${ECHO_T}no" >&6
1578 test -n "$ac_ct_CC" && break
1587 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1588 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1589 { { echo "$as_me:$LINENO: error
: no acceptable C compiler found
in \
$PATH
1590 See \
`config.log' for more details." >&5
1591 echo "$as_me: error: no acceptable C compiler found in \$PATH
1592 See \`config.log
' for more details." >&2;}
1593 { (exit 1); exit 1; }; }; }
1595 # Provide some information about the compiler.
1596 echo "$as_me:$LINENO:" \
1597 "checking for C compiler version" >&5
1598 ac_compiler=`set X $ac_compile; echo $2`
1599 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1600 (eval $ac_compiler --version </dev/null >&5) 2>&5
1602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1603 (exit $ac_status); }
1604 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1605 (eval $ac_compiler -v </dev/null >&5) 2>&5
1607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1608 (exit $ac_status); }
1609 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1610 (eval $ac_compiler -V </dev/null >&5) 2>&5
1612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1613 (exit $ac_status); }
1615 cat >conftest.$ac_ext <<_ACEOF
1618 cat confdefs.h >>conftest.$ac_ext
1619 cat >>conftest.$ac_ext <<_ACEOF
1620 /* end confdefs.h. */
1630 ac_clean_files_save=$ac_clean_files
1631 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1632 # Try to create an executable without -o first, disregard a.out.
1633 # It will help us diagnose broken compilers, and finding out an intuition
1635 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1636 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1637 ac_link_default=`echo "$ac_link" | sed 's
/ -o *conftest
[^
]*//'`
1638 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1639 (eval $ac_link_default) 2>&5
1641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1642 (exit $ac_status); }; then
1643 # Find the output, starting from the most likely. This scheme is
1644 # not robust to junk in `.', hence go to wildcards
(a.
*) only as a last
1647 # Be careful to initialize this variable, since it used to be cached.
1648 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1650 # b.out is created by i960 compilers.
1651 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
1653 test -f "$ac_file" ||
continue
1655 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
1658 # This is the source file.
1661 # We found the default executable, but exeext='' is most
1665 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1666 # FIXME: I believe we export ac_cv_exeext for Libtool,
1667 # but it would be cool to find out if it's true. Does anybody
1668 # maintain Libtool? --akim.
1676 echo "$as_me: failed program was:" >&5
1677 sed 's/^/| /' conftest.
$ac_ext >&5
1679 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1680 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1681 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1682 See \`config.log' for more details." >&5
1683 echo "$as_me: error: C compiler cannot create executables
1684 See \`config.log' for more details." >&2;}
1685 { (exit 77); exit 77; }; }; }
1688 ac_exeext
=$ac_cv_exeext
1689 echo "$as_me:$LINENO: result: $ac_file" >&5
1690 echo "${ECHO_T}$ac_file" >&6
1692 # Check the compiler produces executables we can run. If not, either
1693 # the compiler is broken, or we cross compile.
1694 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1695 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1696 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1697 # If not cross compiling, check that we can run a simple program.
1698 if test "$cross_compiling" != yes; then
1699 if { ac_try
='./$ac_file'
1700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1704 (exit $ac_status); }; }; then
1707 if test "$cross_compiling" = maybe
; then
1710 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1711 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1712 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1713 If you meant to cross compile, use \`--host'.
1714 See \`config.log' for more details." >&5
1715 echo "$as_me: error: cannot run C compiled programs.
1716 If you meant to cross compile, use \`--host'.
1717 See \`config.log' for more details." >&2;}
1718 { (exit 1); exit 1; }; }; }
1722 echo "$as_me:$LINENO: result: yes" >&5
1723 echo "${ECHO_T}yes" >&6
1725 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
1726 ac_clean_files
=$ac_clean_files_save
1727 # Check the compiler produces executables we can run. If not, either
1728 # the compiler is broken, or we cross compile.
1729 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1730 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1731 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1732 echo "${ECHO_T}$cross_compiling" >&6
1734 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1735 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1737 (eval $ac_link) 2>&5
1739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1740 (exit $ac_status); }; then
1741 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1742 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1743 # work properly (i.e., refer to `conftest.exe'), while it won't with
1745 for ac_file
in conftest.exe conftest conftest.
*; do
1746 test -f "$ac_file" ||
continue
1748 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
1749 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1756 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1757 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1758 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1759 See \`config.log' for more details." >&5
1760 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1761 See \`config.log' for more details." >&2;}
1762 { (exit 1); exit 1; }; }; }
1765 rm -f conftest
$ac_cv_exeext
1766 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1767 echo "${ECHO_T}$ac_cv_exeext" >&6
1769 rm -f conftest.
$ac_ext
1770 EXEEXT
=$ac_cv_exeext
1772 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1773 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1774 if test "${ac_cv_objext+set}" = set; then
1775 echo $ECHO_N "(cached) $ECHO_C" >&6
1777 cat >conftest.
$ac_ext <<_ACEOF
1780 cat confdefs.h
>>conftest.
$ac_ext
1781 cat >>conftest.
$ac_ext <<_ACEOF
1782 /* end confdefs.h. */
1792 rm -f conftest.o conftest.obj
1793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1794 (eval $ac_compile) 2>&5
1796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1797 (exit $ac_status); }; then
1798 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1800 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
1801 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1806 echo "$as_me: failed program was:" >&5
1807 sed 's/^/| /' conftest.
$ac_ext >&5
1809 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1810 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1811 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1812 See \`config.log' for more details." >&5
1813 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1814 See \`config.log' for more details." >&2;}
1815 { (exit 1); exit 1; }; }; }
1818 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1820 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1821 echo "${ECHO_T}$ac_cv_objext" >&6
1822 OBJEXT
=$ac_cv_objext
1824 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1825 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1826 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1827 echo $ECHO_N "(cached) $ECHO_C" >&6
1829 cat >conftest.
$ac_ext <<_ACEOF
1832 cat confdefs.h
>>conftest.
$ac_ext
1833 cat >>conftest.
$ac_ext <<_ACEOF
1834 /* end confdefs.h. */
1847 rm -f conftest.
$ac_objext
1848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1849 (eval $ac_compile) 2>conftest.er1
1851 grep -v '^ *+' conftest.er1
>conftest.err
1853 cat conftest.err
>&5
1854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1855 (exit $ac_status); } &&
1856 { ac_try
='test -z "$ac_c_werror_flag"
1857 || test ! -s conftest.err'
1858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1862 (exit $ac_status); }; } &&
1863 { ac_try
='test -s conftest.$ac_objext'
1864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1868 (exit $ac_status); }; }; then
1871 echo "$as_me: failed program was:" >&5
1872 sed 's/^/| /' conftest.
$ac_ext >&5
1876 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
1877 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
1880 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1881 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1882 GCC
=`test $ac_compiler_gnu = yes && echo yes`
1883 ac_test_CFLAGS
=${CFLAGS+set}
1884 ac_save_CFLAGS
=$CFLAGS
1886 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1887 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1888 if test "${ac_cv_prog_cc_g+set}" = set; then
1889 echo $ECHO_N "(cached) $ECHO_C" >&6
1891 cat >conftest.
$ac_ext <<_ACEOF
1894 cat confdefs.h
>>conftest.
$ac_ext
1895 cat >>conftest.
$ac_ext <<_ACEOF
1896 /* end confdefs.h. */
1906 rm -f conftest.
$ac_objext
1907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1908 (eval $ac_compile) 2>conftest.er1
1910 grep -v '^ *+' conftest.er1
>conftest.err
1912 cat conftest.err
>&5
1913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1914 (exit $ac_status); } &&
1915 { ac_try
='test -z "$ac_c_werror_flag"
1916 || test ! -s conftest.err'
1917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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
1930 echo "$as_me: failed program was:" >&5
1931 sed 's/^/| /' conftest.
$ac_ext >&5
1935 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
1937 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1938 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1939 if test "$ac_test_CFLAGS" = set; then
1940 CFLAGS
=$ac_save_CFLAGS
1941 elif test $ac_cv_prog_cc_g = yes; then
1942 if test "$GCC" = yes; then
1948 if test "$GCC" = yes; then
1954 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1955 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1956 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1957 echo $ECHO_N "(cached) $ECHO_C" >&6
1959 ac_cv_prog_cc_stdc
=no
1961 cat >conftest.
$ac_ext <<_ACEOF
1964 cat confdefs.h
>>conftest.
$ac_ext
1965 cat >>conftest.
$ac_ext <<_ACEOF
1966 /* end confdefs.h. */
1969 #include <sys/types.h>
1970 #include <sys/stat.h>
1971 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1972 struct buf { int x; };
1973 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1974 static char *e (p, i)
1980 static char *f (char * (*g) (char **, int), char **p, ...)
1985 s = g (p, va_arg (v,int));
1990 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
1991 function prototypes and stuff, but not '\xHH' hex character constants.
1992 These don't provoke an error unfortunately, instead are silently treated
1993 as 'x'. The following induces an error, until -std1 is added to get
1994 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
1995 array size at least. It's necessary to write '\x00'==0 to get something
1996 that's true only with -std1. */
1997 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1999 int test (int i, double x);
2000 struct s1 {int (*f) (int a);};
2001 struct s2 {int (*f) (double a);};
2002 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2008 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2013 # Don't try gcc -ansi; that turns off useful extensions and
2014 # breaks some systems' header files.
2015 # AIX -qlanglvl=ansi
2016 # Ultrix and OSF/1 -std1
2017 # HP-UX 10.20 and later -Ae
2018 # HP-UX older versions -Aa -D_HPUX_SOURCE
2019 # SVR4 -Xc -D__EXTENSIONS__
2020 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2022 CC
="$ac_save_CC $ac_arg"
2023 rm -f conftest.
$ac_objext
2024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2025 (eval $ac_compile) 2>conftest.er1
2027 grep -v '^ *+' conftest.er1
>conftest.err
2029 cat conftest.err
>&5
2030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2031 (exit $ac_status); } &&
2032 { ac_try
='test -z "$ac_c_werror_flag"
2033 || test ! -s conftest.err'
2034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038 (exit $ac_status); }; } &&
2039 { ac_try
='test -s conftest.$ac_objext'
2040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2044 (exit $ac_status); }; }; then
2045 ac_cv_prog_cc_stdc
=$ac_arg
2048 echo "$as_me: failed program was:" >&5
2049 sed 's/^/| /' conftest.
$ac_ext >&5
2052 rm -f conftest.err conftest.
$ac_objext
2054 rm -f conftest.
$ac_ext conftest.
$ac_objext
2059 case "x$ac_cv_prog_cc_stdc" in
2061 echo "$as_me:$LINENO: result: none needed" >&5
2062 echo "${ECHO_T}none needed" >&6 ;;
2064 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2065 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2066 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2069 # Some people use a C++ compiler to compile C. Since we use `exit',
2070 # in C++ we need to declare it. In case someone uses the same compiler
2071 # for both compiling C and C++ we need to have the C++ compiler decide
2072 # the declaration of exit, since it's the most demanding environment.
2073 cat >conftest.
$ac_ext <<_ACEOF
2078 rm -f conftest.
$ac_objext
2079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2080 (eval $ac_compile) 2>conftest.er1
2082 grep -v '^ *+' conftest.er1
>conftest.err
2084 cat conftest.err
>&5
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); } &&
2087 { ac_try
='test -z "$ac_c_werror_flag"
2088 || test ! -s conftest.err'
2089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093 (exit $ac_status); }; } &&
2094 { ac_try
='test -s conftest.$ac_objext'
2095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }; }; then
2100 for ac_declaration
in \
2102 'extern "C" void std::exit (int) throw (); using std::exit;' \
2103 'extern "C" void std::exit (int); using std::exit;' \
2104 'extern "C" void exit (int) throw ();' \
2105 'extern "C" void exit (int);' \
2108 cat >conftest.
$ac_ext <<_ACEOF
2111 cat confdefs.h
>>conftest.
$ac_ext
2112 cat >>conftest.
$ac_ext <<_ACEOF
2113 /* end confdefs.h. */
2124 rm -f conftest.
$ac_objext
2125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2126 (eval $ac_compile) 2>conftest.er1
2128 grep -v '^ *+' conftest.er1
>conftest.err
2130 cat conftest.err
>&5
2131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2132 (exit $ac_status); } &&
2133 { ac_try
='test -z "$ac_c_werror_flag"
2134 || test ! -s conftest.err'
2135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139 (exit $ac_status); }; } &&
2140 { ac_try
='test -s conftest.$ac_objext'
2141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145 (exit $ac_status); }; }; then
2148 echo "$as_me: failed program was:" >&5
2149 sed 's/^/| /' conftest.
$ac_ext >&5
2153 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2154 cat >conftest.
$ac_ext <<_ACEOF
2157 cat confdefs.h
>>conftest.
$ac_ext
2158 cat >>conftest.
$ac_ext <<_ACEOF
2159 /* end confdefs.h. */
2169 rm -f conftest.
$ac_objext
2170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2171 (eval $ac_compile) 2>conftest.er1
2173 grep -v '^ *+' conftest.er1
>conftest.err
2175 cat conftest.err
>&5
2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); } &&
2178 { ac_try
='test -z "$ac_c_werror_flag"
2179 || test ! -s conftest.err'
2180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); }; } &&
2185 { ac_try
='test -s conftest.$ac_objext'
2186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190 (exit $ac_status); }; }; then
2193 echo "$as_me: failed program was:" >&5
2194 sed 's/^/| /' conftest.
$ac_ext >&5
2197 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2200 if test -n "$ac_declaration"; then
2201 echo '#ifdef __cplusplus' >>confdefs.h
2202 echo $ac_declaration >>confdefs.h
2203 echo '#endif' >>confdefs.h
2207 echo "$as_me: failed program was:" >&5
2208 sed 's/^/| /' conftest.
$ac_ext >&5
2211 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2213 ac_cpp
='$CPP $CPPFLAGS'
2214 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2215 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2216 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2219 ac_cpp
='$CPP $CPPFLAGS'
2220 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2221 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2222 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2223 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2224 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2225 # On Suns, sometimes $CPP names a directory.
2226 if test -n "$CPP" && test -d "$CPP"; then
2229 if test -z "$CPP"; then
2230 if test "${ac_cv_prog_CPP+set}" = set; then
2231 echo $ECHO_N "(cached) $ECHO_C" >&6
2233 # Double quotes because CPP needs to be expanded
2234 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2237 for ac_c_preproc_warn_flag
in '' yes
2239 # Use a header file that comes with gcc, so configuring glibc
2240 # with a fresh cross-compiler works.
2241 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2242 # <limits.h> exists even on freestanding compilers.
2243 # On the NeXT, cc -E runs the code through the compiler's parser,
2244 # not just through cpp. "Syntax error" is here to catch this case.
2245 cat >conftest.
$ac_ext <<_ACEOF
2248 cat confdefs.h
>>conftest.
$ac_ext
2249 cat >>conftest.
$ac_ext <<_ACEOF
2250 /* end confdefs.h. */
2252 # include <limits.h>
2254 # include <assert.h>
2258 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2259 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2261 grep -v '^ *+' conftest.er1
>conftest.err
2263 cat conftest.err
>&5
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); } >/dev
/null
; then
2266 if test -s conftest.err
; then
2267 ac_cpp_err
=$ac_c_preproc_warn_flag
2268 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2275 if test -z "$ac_cpp_err"; then
2278 echo "$as_me: failed program was:" >&5
2279 sed 's/^/| /' conftest.
$ac_ext >&5
2281 # Broken: fails on valid input.
2284 rm -f conftest.err conftest.
$ac_ext
2286 # OK, works on sane cases. Now check whether non-existent headers
2287 # can be detected and how.
2288 cat >conftest.
$ac_ext <<_ACEOF
2291 cat confdefs.h
>>conftest.
$ac_ext
2292 cat >>conftest.
$ac_ext <<_ACEOF
2293 /* end confdefs.h. */
2294 #include <ac_nonexistent.h>
2296 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2297 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2299 grep -v '^ *+' conftest.er1
>conftest.err
2301 cat conftest.err
>&5
2302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303 (exit $ac_status); } >/dev
/null
; then
2304 if test -s conftest.err
; then
2305 ac_cpp_err
=$ac_c_preproc_warn_flag
2306 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2313 if test -z "$ac_cpp_err"; then
2314 # Broken: success on invalid input.
2317 echo "$as_me: failed program was:" >&5
2318 sed 's/^/| /' conftest.
$ac_ext >&5
2320 # Passes both tests.
2324 rm -f conftest.err conftest.
$ac_ext
2327 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2328 rm -f conftest.err conftest.
$ac_ext
2329 if $ac_preproc_ok; then
2341 echo "$as_me:$LINENO: result: $CPP" >&5
2342 echo "${ECHO_T}$CPP" >&6
2344 for ac_c_preproc_warn_flag
in '' yes
2346 # Use a header file that comes with gcc, so configuring glibc
2347 # with a fresh cross-compiler works.
2348 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2349 # <limits.h> exists even on freestanding compilers.
2350 # On the NeXT, cc -E runs the code through the compiler's parser,
2351 # not just through cpp. "Syntax error" is here to catch this case.
2352 cat >conftest.
$ac_ext <<_ACEOF
2355 cat confdefs.h
>>conftest.
$ac_ext
2356 cat >>conftest.
$ac_ext <<_ACEOF
2357 /* end confdefs.h. */
2359 # include <limits.h>
2361 # include <assert.h>
2365 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2366 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2368 grep -v '^ *+' conftest.er1
>conftest.err
2370 cat conftest.err
>&5
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); } >/dev
/null
; then
2373 if test -s conftest.err
; then
2374 ac_cpp_err
=$ac_c_preproc_warn_flag
2375 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2382 if test -z "$ac_cpp_err"; then
2385 echo "$as_me: failed program was:" >&5
2386 sed 's/^/| /' conftest.
$ac_ext >&5
2388 # Broken: fails on valid input.
2391 rm -f conftest.err conftest.
$ac_ext
2393 # OK, works on sane cases. Now check whether non-existent headers
2394 # can be detected and how.
2395 cat >conftest.
$ac_ext <<_ACEOF
2398 cat confdefs.h
>>conftest.
$ac_ext
2399 cat >>conftest.
$ac_ext <<_ACEOF
2400 /* end confdefs.h. */
2401 #include <ac_nonexistent.h>
2403 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2404 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2406 grep -v '^ *+' conftest.er1
>conftest.err
2408 cat conftest.err
>&5
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); } >/dev
/null
; then
2411 if test -s conftest.err
; then
2412 ac_cpp_err
=$ac_c_preproc_warn_flag
2413 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2420 if test -z "$ac_cpp_err"; then
2421 # Broken: success on invalid input.
2424 echo "$as_me: failed program was:" >&5
2425 sed 's/^/| /' conftest.
$ac_ext >&5
2427 # Passes both tests.
2431 rm -f conftest.err conftest.
$ac_ext
2434 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2435 rm -f conftest.err conftest.
$ac_ext
2436 if $ac_preproc_ok; then
2439 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2440 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2441 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2442 See \`config.log' for more details." >&5
2443 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2444 See \`config.log' for more details." >&2;}
2445 { (exit 1); exit 1; }; }; }
2449 ac_cpp
='$CPP $CPPFLAGS'
2450 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2451 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2452 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2456 echo "$as_me:$LINENO: checking for egrep" >&5
2457 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2458 if test "${ac_cv_prog_egrep+set}" = set; then
2459 echo $ECHO_N "(cached) $ECHO_C" >&6
2461 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
2462 then ac_cv_prog_egrep
='grep -E'
2463 else ac_cv_prog_egrep
='egrep'
2466 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2467 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2468 EGREP
=$ac_cv_prog_egrep
2471 if test $ac_cv_c_compiler_gnu = yes; then
2472 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
2473 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2474 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2475 echo $ECHO_N "(cached) $ECHO_C" >&6
2477 ac_pattern
="Autoconf.*'x'"
2478 cat >conftest.
$ac_ext <<_ACEOF
2481 cat confdefs.h
>>conftest.
$ac_ext
2482 cat >>conftest.
$ac_ext <<_ACEOF
2483 /* end confdefs.h. */
2487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2488 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
2489 ac_cv_prog_gcc_traditional
=yes
2491 ac_cv_prog_gcc_traditional
=no
2496 if test $ac_cv_prog_gcc_traditional = no
; then
2497 cat >conftest.
$ac_ext <<_ACEOF
2500 cat confdefs.h
>>conftest.
$ac_ext
2501 cat >>conftest.
$ac_ext <<_ACEOF
2502 /* end confdefs.h. */
2506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2507 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
2508 ac_cv_prog_gcc_traditional
=yes
2514 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
2515 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2516 if test $ac_cv_prog_gcc_traditional = yes; then
2517 CC
="$CC -traditional"
2521 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2522 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2523 if test "${ac_cv_search_strerror+set}" = set; then
2524 echo $ECHO_N "(cached) $ECHO_C" >&6
2526 ac_func_search_save_LIBS
=$LIBS
2527 ac_cv_search_strerror
=no
2528 cat >conftest.
$ac_ext <<_ACEOF
2531 cat confdefs.h
>>conftest.
$ac_ext
2532 cat >>conftest.
$ac_ext <<_ACEOF
2533 /* end confdefs.h. */
2535 /* Override any gcc2 internal prototype to avoid an error. */
2539 /* We use char because int might match the return type of a gcc2
2540 builtin and then its argument prototype would still apply. */
2550 rm -f conftest.
$ac_objext conftest
$ac_exeext
2551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2552 (eval $ac_link) 2>conftest.er1
2554 grep -v '^ *+' conftest.er1
>conftest.err
2556 cat conftest.err
>&5
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); } &&
2559 { ac_try
='test -z "$ac_c_werror_flag"
2560 || test ! -s conftest.err'
2561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); }; } &&
2566 { ac_try
='test -s conftest$ac_exeext'
2567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); }; }; then
2572 ac_cv_search_strerror
="none required"
2574 echo "$as_me: failed program was:" >&5
2575 sed 's/^/| /' conftest.
$ac_ext >&5
2578 rm -f conftest.err conftest.
$ac_objext \
2579 conftest
$ac_exeext conftest.
$ac_ext
2580 if test "$ac_cv_search_strerror" = no
; then
2581 for ac_lib
in cposix
; do
2582 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
2583 cat >conftest.
$ac_ext <<_ACEOF
2586 cat confdefs.h
>>conftest.
$ac_ext
2587 cat >>conftest.
$ac_ext <<_ACEOF
2588 /* end confdefs.h. */
2590 /* Override any gcc2 internal prototype to avoid an error. */
2594 /* We use char because int might match the return type of a gcc2
2595 builtin and then its argument prototype would still apply. */
2605 rm -f conftest.
$ac_objext conftest
$ac_exeext
2606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2607 (eval $ac_link) 2>conftest.er1
2609 grep -v '^ *+' conftest.er1
>conftest.err
2611 cat conftest.err
>&5
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); } &&
2614 { ac_try
='test -z "$ac_c_werror_flag"
2615 || test ! -s conftest.err'
2616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); }; } &&
2621 { ac_try
='test -s conftest$ac_exeext'
2622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }; }; then
2627 ac_cv_search_strerror
="-l$ac_lib"
2630 echo "$as_me: failed program was:" >&5
2631 sed 's/^/| /' conftest.
$ac_ext >&5
2634 rm -f conftest.err conftest.
$ac_objext \
2635 conftest
$ac_exeext conftest.
$ac_ext
2638 LIBS
=$ac_func_search_save_LIBS
2640 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2641 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2642 if test "$ac_cv_search_strerror" != no
; then
2643 test "$ac_cv_search_strerror" = "none required" || LIBS
="$ac_cv_search_strerror $LIBS"
2648 if test "$cross_compiling" = yes; then
2649 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2650 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2651 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
2652 See \`config.log' for more details." >&5
2653 echo "$as_me: error: cannot run test program while cross compiling
2654 See \`config.log' for more details." >&2;}
2655 { (exit 1); exit 1; }; }; }
2657 cat >conftest.
$ac_ext <<_ACEOF
2660 cat confdefs.h
>>conftest.
$ac_ext
2661 cat >>conftest.
$ac_ext <<_ACEOF
2662 /* end confdefs.h. */
2665 rm -f conftest
$ac_exeext
2666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2667 (eval $ac_link) 2>&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
2671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); }; }; then
2678 echo "$as_me: program exited with status $ac_status" >&5
2679 echo "$as_me: failed program was:" >&5
2680 sed 's/^/| /' conftest.
$ac_ext >&5
2684 if test $CC != cc
; then
2685 echo "Your $CC failed - restarting with CC=cc" 1>&6
2691 exec $0 $configure_args
2695 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
2698 if test "$cross_compiling" = yes; then
2699 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2700 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2701 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
2702 See \`config.log' for more details." >&5
2703 echo "$as_me: error: cannot run test program while cross compiling
2704 See \`config.log' for more details." >&2;}
2705 { (exit 1); exit 1; }; }; }
2707 cat >conftest.
$ac_ext <<_ACEOF
2710 cat confdefs.h
>>conftest.
$ac_ext
2711 cat >>conftest.
$ac_ext <<_ACEOF
2712 /* end confdefs.h. */
2715 rm -f conftest
$ac_exeext
2716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2717 (eval $ac_link) 2>&5
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
2721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); }; }; then
2728 echo "$as_me: program exited with status $ac_status" >&5
2729 echo "$as_me: failed program was:" >&5
2730 sed 's/^/| /' conftest.
$ac_ext >&5
2735 echo "CC=$CC; CFLAGS=$CFLAGS; LIBS=$LIBS;" 1>&6
2737 echo "$ac_compile" 1>&6
2739 { { echo "$as_me:$LINENO: error: Can't run the compiler - sorry" >&5
2740 echo "$as_me: error: Can't run the compiler - sorry" >&2;}
2741 { (exit 1); exit 1; }; }
2743 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
2746 if test "$cross_compiling" = yes; then
2747 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2748 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2749 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
2750 See \`config.log' for more details." >&5
2751 echo "$as_me: error: cannot run test program while cross compiling
2752 See \`config.log' for more details." >&2;}
2753 { (exit 1); exit 1; }; }; }
2755 cat >conftest.
$ac_ext <<_ACEOF
2758 cat confdefs.h
>>conftest.
$ac_ext
2759 cat >>conftest.
$ac_ext <<_ACEOF
2760 /* end confdefs.h. */
2764 int __something_strange_();
2765 __something_strange_(0);
2769 rm -f conftest
$ac_exeext
2770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2771 (eval $ac_link) 2>&5
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
2775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); }; }; then
2780 { { echo "$as_me:$LINENO: error: Your compiler does not set the exit status - sorry" >&5
2781 echo "$as_me: error: Your compiler does not set the exit status - sorry" >&2;}
2782 { (exit 1); exit 1; }; }
2784 echo "$as_me: program exited with status $ac_status" >&5
2785 echo "$as_me: failed program was:" >&5
2786 sed 's/^/| /' conftest.
$ac_ext >&5
2789 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
2792 for ac_prog
in gawk mawk nawk
awk
2794 # Extract the first word of "$ac_prog", so it can be a program name with args.
2795 set dummy
$ac_prog; ac_word
=$2
2796 echo "$as_me:$LINENO: checking for $ac_word" >&5
2797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2798 if test "${ac_cv_prog_AWK+set}" = set; then
2799 echo $ECHO_N "(cached) $ECHO_C" >&6
2801 if test -n "$AWK"; then
2802 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2804 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2808 test -z "$as_dir" && as_dir
=.
2809 for ac_exec_ext
in '' $ac_executable_extensions; do
2810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2811 ac_cv_prog_AWK
="$ac_prog"
2812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2821 if test -n "$AWK"; then
2822 echo "$as_me:$LINENO: result: $AWK" >&5
2823 echo "${ECHO_T}$AWK" >&6
2825 echo "$as_me:$LINENO: result: no" >&5
2826 echo "${ECHO_T}no" >&6
2829 test -n "$AWK" && break
2833 if test -f etc
/toolcheck
; then
2834 { echo "$as_me:$LINENO: checking for buggy tools..." >&5
2835 echo "$as_me: checking for buggy tools..." >&6;}
2836 sh etc
/toolcheck
1>&6
2840 { echo "$as_me:$LINENO: checking for System V..." >&5
2841 echo "$as_me: checking for System V..." >&6;}
2842 cat >conftest.
$ac_ext <<_ACEOF
2845 cat confdefs.h
>>conftest.
$ac_ext
2846 cat >>conftest.
$ac_ext <<_ACEOF
2847 /* end confdefs.h. */
2848 #include <sys/types.h>
2854 int x = SIGCHLD | FNDELAY;
2859 rm -f conftest.
$ac_objext
2860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2861 (eval $ac_compile) 2>conftest.er1
2863 grep -v '^ *+' conftest.er1
>conftest.err
2865 cat conftest.err
>&5
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); } &&
2868 { ac_try
='test -z "$ac_c_werror_flag"
2869 || test ! -s conftest.err'
2870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874 (exit $ac_status); }; } &&
2875 { ac_try
='test -s conftest.$ac_objext'
2876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); }; }; then
2883 echo "$as_me: failed program was:" >&5
2884 sed 's/^/| /' conftest.
$ac_ext >&5
2886 cat >>confdefs.h
<<\_ACEOF
2891 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2893 { echo "$as_me:$LINENO: checking for Solaris 2.x..." >&5
2894 echo "$as_me: checking for Solaris 2.x..." >&6;}
2895 cat >conftest.
$ac_ext <<_ACEOF
2898 cat confdefs.h
>>conftest.
$ac_ext
2899 cat >>conftest.
$ac_ext <<_ACEOF
2900 /* end confdefs.h. */
2901 #if defined(SVR4) && defined(sun)
2906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2907 $EGREP "yes" >/dev
/null
2>&1; then
2908 LIBS
="$LIBS -lsocket -lnsl -lkstat"
2914 { echo "$as_me:$LINENO: checking select..." >&5
2915 echo "$as_me: checking select..." >&6;}
2916 cat >conftest.
$ac_ext <<_ACEOF
2919 cat confdefs.h
>>conftest.
$ac_ext
2920 cat >>conftest.
$ac_ext <<_ACEOF
2921 /* end confdefs.h. */
2926 select(0, 0, 0, 0, 0);
2931 rm -f conftest.
$ac_objext conftest
$ac_exeext
2932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2933 (eval $ac_link) 2>conftest.er1
2935 grep -v '^ *+' conftest.er1
>conftest.err
2937 cat conftest.err
>&5
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); } &&
2940 { ac_try
='test -z "$ac_c_werror_flag"
2941 || test ! -s conftest.err'
2942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); }; } &&
2947 { ac_try
='test -s conftest$ac_exeext'
2948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); }; }; then
2955 echo "$as_me: failed program was:" >&5
2956 sed 's/^/| /' conftest.
$ac_ext >&5
2958 LIBS
="$LIBS -lnet -lnsl"
2959 { echo "$as_me:$LINENO: checking select with $LIBS..." >&5
2960 echo "$as_me: checking select with $LIBS..." >&6;}
2961 cat >conftest.
$ac_ext <<_ACEOF
2964 cat confdefs.h
>>conftest.
$ac_ext
2965 cat >>conftest.
$ac_ext <<_ACEOF
2966 /* end confdefs.h. */
2971 select(0, 0, 0, 0, 0);
2976 rm -f conftest.
$ac_objext conftest
$ac_exeext
2977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2978 (eval $ac_link) 2>conftest.er1
2980 grep -v '^ *+' conftest.er1
>conftest.err
2982 cat conftest.err
>&5
2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); } &&
2985 { ac_try
='test -z "$ac_c_werror_flag"
2986 || test ! -s conftest.err'
2987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); }; } &&
2992 { ac_try
='test -s conftest$ac_exeext'
2993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997 (exit $ac_status); }; }; then
3000 echo "$as_me: failed program was:" >&5
3001 sed 's/^/| /' conftest.
$ac_ext >&5
3003 { { echo "$as_me:$LINENO: error: !!! no select - no screen" >&5
3004 echo "$as_me: error: !!! no select - no screen" >&2;}
3005 { (exit 1); exit 1; }; }
3007 rm -f conftest.err conftest.
$ac_objext \
3008 conftest
$ac_exeext conftest.
$ac_ext
3011 rm -f conftest.err conftest.
$ac_objext \
3012 conftest
$ac_exeext conftest.
$ac_ext
3014 { echo "$as_me:$LINENO: checking select return value..." >&5
3015 echo "$as_me: checking select return value..." >&6;}
3016 if test "$cross_compiling" = yes; then
3017 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3018 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3019 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3020 See \`config.log' for more details." >&5
3021 echo "$as_me: error: cannot run test program while cross compiling
3022 See \`config.log' for more details." >&2;}
3023 { (exit 1); exit 1; }; }; }
3025 cat >conftest.
$ac_ext <<_ACEOF
3028 cat confdefs.h
>>conftest.
$ac_ext
3029 cat >>conftest.
$ac_ext <<_ACEOF
3030 /* end confdefs.h. */
3032 #include <sys/types.h>
3033 #include <sys/stat.h>
3036 char *nam = "/tmp/conftest$$";
3041 #define O_NONBLOCK O_NDELAY
3044 #define S_IFIFO 0010000
3057 /* From Andrew A. Chernov (ache@astral.msk.su):
3058 * opening RDWR fifo fails in BSD 4.4, but select return values are
3065 if (mkfifo(nam, 0777))
3067 if (mknod(nam, S_IFIFO|0777, 0))
3071 if (open(nam, O_RDWR | O_NONBLOCK))
3073 if (write(0, "TEST", 4) == -1)
3078 #include <sys/types.h>
3079 #include <sys/socket.h>
3085 struct sockaddr_un a;
3093 if ((s1 = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
3095 a.sun_family = AF_UNIX;
3096 strcpy(a.sun_path, nam);
3098 if (bind(s1, (struct sockaddr *) &a, strlen(nam)+2) == -1)
3104 if ((s2 = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
3106 (void)connect(s2, (struct sockaddr *)&a, strlen(nam) + 2);
3107 if (write(s2, "HELLO", 5) == -1)
3113 if (accept(s1, (struct sockaddr *)&a, &l))
3123 if (select(1, &f, 0, 0, 0) == -1)
3125 if (select(1, &f, &f, 0, 0) != 2)
3131 rm -f conftest
$ac_exeext
3132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3133 (eval $ac_link) 2>&5
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); }; }; then
3142 echo "- select is ok" 1>&6
3145 echo "$as_me: program exited with status $ac_status" >&5
3146 echo "$as_me: failed program was:" >&5
3147 sed 's/^/| /' conftest.
$ac_ext >&5
3150 echo "- select can't count" 1>&6
3151 cat >>confdefs.h
<<\_ACEOF
3152 #define SELECT_BROKEN 1
3156 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3159 { echo "$as_me:$LINENO: checking for tgetent..." >&5
3160 echo "$as_me: checking for tgetent..." >&6;}
3161 cat >conftest.
$ac_ext <<_ACEOF
3164 cat confdefs.h
>>conftest.
$ac_ext
3165 cat >>conftest.
$ac_ext <<_ACEOF
3166 /* end confdefs.h. */
3171 tgetent((char *)0, (char *)0);
3176 rm -f conftest.
$ac_objext conftest
$ac_exeext
3177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3178 (eval $ac_link) 2>conftest.er1
3180 grep -v '^ *+' conftest.er1
>conftest.err
3182 cat conftest.err
>&5
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); } &&
3185 { ac_try
='test -z "$ac_c_werror_flag"
3186 || test ! -s conftest.err'
3187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); }; } &&
3192 { ac_try
='test -s conftest$ac_exeext'
3193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); }; }; then
3200 echo "$as_me: failed program was:" >&5
3201 sed 's/^/| /' conftest.
$ac_ext >&5
3204 LIBS
="-lcurses $olibs"
3205 { echo "$as_me:$LINENO: checking libcurses..." >&5
3206 echo "$as_me: checking libcurses..." >&6;}
3207 cat >conftest.
$ac_ext <<_ACEOF
3210 cat confdefs.h
>>conftest.
$ac_ext
3211 cat >>conftest.
$ac_ext <<_ACEOF
3212 /* end confdefs.h. */
3219 __sorry_hpux_libcurses_is_totally_broken_in_10_10();
3221 tgetent((char *)0, (char *)0);
3228 rm -f conftest.
$ac_objext conftest
$ac_exeext
3229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3230 (eval $ac_link) 2>conftest.er1
3232 grep -v '^ *+' conftest.er1
>conftest.err
3234 cat conftest.err
>&5
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); } &&
3237 { ac_try
='test -z "$ac_c_werror_flag"
3238 || test ! -s conftest.err'
3239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); }; } &&
3244 { ac_try
='test -s conftest$ac_exeext'
3245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); }; }; then
3252 echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.
$ac_ext >&5
3255 LIBS
="-ltermcap $olibs"
3256 { echo "$as_me:$LINENO: checking libtermcap..." >&5
3257 echo "$as_me: checking libtermcap..." >&6;}
3258 cat >conftest.
$ac_ext <<_ACEOF
3261 cat confdefs.h
>>conftest.
$ac_ext
3262 cat >>conftest.
$ac_ext <<_ACEOF
3263 /* end confdefs.h. */
3268 tgetent((char *)0, (char *)0);
3273 rm -f conftest.
$ac_objext conftest
$ac_exeext
3274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3275 (eval $ac_link) 2>conftest.er1
3277 grep -v '^ *+' conftest.er1
>conftest.err
3279 cat conftest.err
>&5
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); } &&
3282 { ac_try
='test -z "$ac_c_werror_flag"
3283 || test ! -s conftest.err'
3284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); }; } &&
3289 { ac_try
='test -s conftest$ac_exeext'
3290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); }; }; then
3297 echo "$as_me: failed program was:" >&5
3298 sed 's/^/| /' conftest.
$ac_ext >&5
3300 LIBS
="-ltermlib $olibs"
3301 { echo "$as_me:$LINENO: checking libtermlib..." >&5
3302 echo "$as_me: checking libtermlib..." >&6;}
3303 cat >conftest.
$ac_ext <<_ACEOF
3306 cat confdefs.h
>>conftest.
$ac_ext
3307 cat >>conftest.
$ac_ext <<_ACEOF
3308 /* end confdefs.h. */
3313 tgetent((char *)0, (char *)0);
3318 rm -f conftest.
$ac_objext conftest
$ac_exeext
3319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3320 (eval $ac_link) 2>conftest.er1
3322 grep -v '^ *+' conftest.er1
>conftest.err
3324 cat conftest.err
>&5
3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 (exit $ac_status); } &&
3327 { ac_try
='test -z "$ac_c_werror_flag"
3328 || test ! -s conftest.err'
3329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); }; } &&
3334 { ac_try
='test -s conftest$ac_exeext'
3335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); }; }; then
3342 echo "$as_me: failed program was:" >&5
3343 sed 's/^/| /' conftest.
$ac_ext >&5
3345 LIBS
="-lncurses $olibs"
3346 { echo "$as_me:$LINENO: checking libncurses..." >&5
3347 echo "$as_me: checking libncurses..." >&6;}
3348 cat >conftest.
$ac_ext <<_ACEOF
3351 cat confdefs.h
>>conftest.
$ac_ext
3352 cat >>conftest.
$ac_ext <<_ACEOF
3353 /* end confdefs.h. */
3358 tgetent((char *)0, (char *)0);
3363 rm -f conftest.
$ac_objext conftest
$ac_exeext
3364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3365 (eval $ac_link) 2>conftest.er1
3367 grep -v '^ *+' conftest.er1
>conftest.err
3369 cat conftest.err
>&5
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); } &&
3372 { ac_try
='test -z "$ac_c_werror_flag"
3373 || test ! -s conftest.err'
3374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); }; } &&
3379 { ac_try
='test -s conftest$ac_exeext'
3380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); }; }; then
3387 echo "$as_me: failed program was:" >&5
3388 sed 's/^/| /' conftest.
$ac_ext >&5
3390 { { echo "$as_me:$LINENO: error: !!! no tgetent - no screen" >&5
3391 echo "$as_me: error: !!! no tgetent - no screen" >&2;}
3392 { (exit 1); exit 1; }; }
3394 rm -f conftest.err conftest.
$ac_objext \
3395 conftest
$ac_exeext conftest.
$ac_ext
3397 rm -f conftest.err conftest.
$ac_objext \
3398 conftest
$ac_exeext conftest.
$ac_ext
3400 rm -f conftest.err conftest.
$ac_objext \
3401 conftest
$ac_exeext conftest.
$ac_ext
3403 rm -f conftest.err conftest.
$ac_objext \
3404 conftest
$ac_exeext conftest.
$ac_ext
3406 rm -f conftest.err conftest.
$ac_objext \
3407 conftest
$ac_exeext conftest.
$ac_ext
3409 if test "$cross_compiling" = yes; then
3410 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3411 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3412 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3413 See \`config.log' for more details." >&5
3414 echo "$as_me: error: cannot run test program while cross compiling
3415 See \`config.log' for more details." >&2;}
3416 { (exit 1); exit 1; }; }; }
3418 cat >conftest.
$ac_ext <<_ACEOF
3421 cat confdefs.h
>>conftest.
$ac_ext
3422 cat >>conftest.
$ac_ext <<_ACEOF
3423 /* end confdefs.h. */
3427 exit(strcmp(tgoto("%p1%d", 0, 1), "1") ? 0 : 1);
3430 rm -f conftest
$ac_exeext
3431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3432 (eval $ac_link) 2>&5
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); }; }; then
3441 echo "- you use the termcap database" 1>&6
3444 echo "$as_me: program exited with status $ac_status" >&5
3445 echo "$as_me: failed program was:" >&5
3446 sed 's/^/| /' conftest.
$ac_ext >&5
3449 echo "- you use the terminfo database" 1>&6
3450 cat >>confdefs.h
<<\_ACEOF
3455 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3457 { echo "$as_me:$LINENO: checking ospeed..." >&5
3458 echo "$as_me: checking ospeed..." >&6;}
3459 cat >conftest.
$ac_ext <<_ACEOF
3462 cat confdefs.h
>>conftest.
$ac_ext
3463 cat >>conftest.
$ac_ext <<_ACEOF
3464 /* end confdefs.h. */
3465 extern short ospeed;
3474 rm -f conftest.
$ac_objext conftest
$ac_exeext
3475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3476 (eval $ac_link) 2>conftest.er1
3478 grep -v '^ *+' conftest.er1
>conftest.err
3480 cat conftest.err
>&5
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); } &&
3483 { ac_try
='test -z "$ac_c_werror_flag"
3484 || test ! -s conftest.err'
3485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); }; } &&
3490 { ac_try
='test -s conftest$ac_exeext'
3491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); }; }; then
3498 echo "$as_me: failed program was:" >&5
3499 sed 's/^/| /' conftest.
$ac_ext >&5
3501 cat >>confdefs.h
<<\_ACEOF
3502 #define NEED_OSPEED 1
3506 rm -f conftest.err conftest.
$ac_objext \
3507 conftest
$ac_exeext conftest.
$ac_ext
3509 { echo "$as_me:$LINENO: checking for /dev/ptc..." >&5
3510 echo "$as_me: checking for /dev/ptc..." >&6;}
3511 if test -r /dev
/ptc
; then
3512 cat >>confdefs.h
<<\_ACEOF
3513 #define HAVE_DEV_PTC 1
3518 { echo "$as_me:$LINENO: checking for SVR4 ptys..." >&5
3519 echo "$as_me: checking for SVR4 ptys..." >&6;}
3521 if test -c /dev
/ptmx
; then
3522 cat >conftest.
$ac_ext <<_ACEOF
3525 cat confdefs.h
>>conftest.
$ac_ext
3526 cat >>conftest.
$ac_ext <<_ACEOF
3527 /* end confdefs.h. */
3532 ptsname(0);grantpt(0);unlockpt(0);
3537 rm -f conftest.
$ac_objext conftest
$ac_exeext
3538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3539 (eval $ac_link) 2>conftest.er1
3541 grep -v '^ *+' conftest.er1
>conftest.err
3543 cat conftest.err
>&5
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); } &&
3546 { ac_try
='test -z "$ac_c_werror_flag"
3547 || test ! -s conftest.err'
3548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); }; } &&
3553 { ac_try
='test -s conftest$ac_exeext'
3554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); }; }; then
3559 cat >>confdefs.h
<<\_ACEOF
3560 #define HAVE_SVR4_PTYS 1
3565 echo "$as_me: failed program was:" >&5
3566 sed 's/^/| /' conftest.
$ac_ext >&5
3569 rm -f conftest.err conftest.
$ac_objext \
3570 conftest
$ac_exeext conftest.
$ac_ext
3574 for ac_func
in getpt
3576 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3577 echo "$as_me:$LINENO: checking for $ac_func" >&5
3578 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3579 if eval "test \"\${$as_ac_var+set}\" = set"; then
3580 echo $ECHO_N "(cached) $ECHO_C" >&6
3582 cat >conftest.
$ac_ext <<_ACEOF
3585 cat confdefs.h
>>conftest.
$ac_ext
3586 cat >>conftest.
$ac_ext <<_ACEOF
3587 /* end confdefs.h. */
3588 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3590 #define $ac_func innocuous_$ac_func
3592 /* System header to define __stub macros and hopefully few prototypes,
3593 which can conflict with char $ac_func (); below.
3594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3595 <limits.h> exists even on freestanding compilers. */
3598 # include <limits.h>
3600 # include <assert.h>
3605 /* Override any gcc2 internal prototype to avoid an error. */
3610 /* We use char because int might match the return type of a gcc2
3611 builtin and then its argument prototype would still apply. */
3613 /* The GNU C library defines this for functions which it implements
3614 to always fail with ENOSYS. Some functions are actually named
3615 something starting with __ and the normal name is an alias. */
3616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3619 char (*f) () = $ac_func;
3628 return f != $ac_func;
3633 rm -f conftest.
$ac_objext conftest
$ac_exeext
3634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3635 (eval $ac_link) 2>conftest.er1
3637 grep -v '^ *+' conftest.er1
>conftest.err
3639 cat conftest.err
>&5
3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); } &&
3642 { ac_try
='test -z "$ac_c_werror_flag"
3643 || test ! -s conftest.err'
3644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); }; } &&
3649 { ac_try
='test -s conftest$ac_exeext'
3650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654 (exit $ac_status); }; }; then
3655 eval "$as_ac_var=yes"
3657 echo "$as_me: failed program was:" >&5
3658 sed 's/^/| /' conftest.
$ac_ext >&5
3660 eval "$as_ac_var=no"
3662 rm -f conftest.err conftest.
$ac_objext \
3663 conftest
$ac_exeext conftest.
$ac_ext
3665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3666 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3667 if test `eval echo '${'$as_ac_var'}'` = yes; then
3668 cat >>confdefs.h
<<_ACEOF
3669 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3676 if test -z "$sysvr4ptys"; then
3678 for ac_func
in openpty
3680 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3681 echo "$as_me:$LINENO: checking for $ac_func" >&5
3682 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3683 if eval "test \"\${$as_ac_var+set}\" = set"; then
3684 echo $ECHO_N "(cached) $ECHO_C" >&6
3686 cat >conftest.
$ac_ext <<_ACEOF
3689 cat confdefs.h
>>conftest.
$ac_ext
3690 cat >>conftest.
$ac_ext <<_ACEOF
3691 /* end confdefs.h. */
3692 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3694 #define $ac_func innocuous_$ac_func
3696 /* System header to define __stub macros and hopefully few prototypes,
3697 which can conflict with char $ac_func (); below.
3698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3699 <limits.h> exists even on freestanding compilers. */
3702 # include <limits.h>
3704 # include <assert.h>
3709 /* Override any gcc2 internal prototype to avoid an error. */
3714 /* We use char because int might match the return type of a gcc2
3715 builtin and then its argument prototype would still apply. */
3717 /* The GNU C library defines this for functions which it implements
3718 to always fail with ENOSYS. Some functions are actually named
3719 something starting with __ and the normal name is an alias. */
3720 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3723 char (*f) () = $ac_func;
3732 return f != $ac_func;
3737 rm -f conftest.
$ac_objext conftest
$ac_exeext
3738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3739 (eval $ac_link) 2>conftest.er1
3741 grep -v '^ *+' conftest.er1
>conftest.err
3743 cat conftest.err
>&5
3744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745 (exit $ac_status); } &&
3746 { ac_try
='test -z "$ac_c_werror_flag"
3747 || test ! -s conftest.err'
3748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); }; } &&
3753 { ac_try
='test -s conftest$ac_exeext'
3754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); }; }; then
3759 eval "$as_ac_var=yes"
3761 echo "$as_me: failed program was:" >&5
3762 sed 's/^/| /' conftest.
$ac_ext >&5
3764 eval "$as_ac_var=no"
3766 rm -f conftest.err conftest.
$ac_objext \
3767 conftest
$ac_exeext conftest.
$ac_ext
3769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3770 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3771 if test `eval echo '${'$as_ac_var'}'` = yes; then
3772 cat >>confdefs.h
<<_ACEOF
3773 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3777 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
3778 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
3779 if test "${ac_cv_lib_util_openpty+set}" = set; then
3780 echo $ECHO_N "(cached) $ECHO_C" >&6
3782 ac_check_lib_save_LIBS
=$LIBS
3784 cat >conftest.
$ac_ext <<_ACEOF
3787 cat confdefs.h
>>conftest.
$ac_ext
3788 cat >>conftest.
$ac_ext <<_ACEOF
3789 /* end confdefs.h. */
3791 /* Override any gcc2 internal prototype to avoid an error. */
3795 /* We use char because int might match the return type of a gcc2
3796 builtin and then its argument prototype would still apply. */
3806 rm -f conftest.
$ac_objext conftest
$ac_exeext
3807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3808 (eval $ac_link) 2>conftest.er1
3810 grep -v '^ *+' conftest.er1
>conftest.err
3812 cat conftest.err
>&5
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); } &&
3815 { ac_try
='test -z "$ac_c_werror_flag"
3816 || test ! -s conftest.err'
3817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); }; } &&
3822 { ac_try
='test -s conftest$ac_exeext'
3823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); }; }; then
3828 ac_cv_lib_util_openpty
=yes
3830 echo "$as_me: failed program was:" >&5
3831 sed 's/^/| /' conftest.
$ac_ext >&5
3833 ac_cv_lib_util_openpty
=no
3835 rm -f conftest.err conftest.
$ac_objext \
3836 conftest
$ac_exeext conftest.
$ac_ext
3837 LIBS
=$ac_check_lib_save_LIBS
3839 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
3840 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
3841 if test $ac_cv_lib_util_openpty = yes; then
3842 cat >>confdefs.h
<<\_ACEOF
3843 #define HAVE_OPENPTY 1
3853 { echo "$as_me:$LINENO: checking for ptyranges..." >&5
3854 echo "$as_me: checking for ptyranges..." >&6;}
3855 if test -d /dev
/ptym
; then
3860 cat >conftest.
$ac_ext <<_ACEOF
3863 cat confdefs.h
>>conftest.
$ac_ext
3864 cat >>conftest.
$ac_ext <<_ACEOF
3865 /* end confdefs.h. */
3871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3872 $EGREP "yes" >/dev
/null
2>&1; then
3873 ptys
=`echo /dev/ptyp??`
3875 ptys
=`echo $pdir/pty??`
3879 if test "$ptys" != "$pdir/pty??" ; then
3880 p0
=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
3881 p1
=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
3882 cat >>confdefs.h
<<_ACEOF
3883 #define PTYRANGE0 "$p0"
3886 cat >>confdefs.h
<<_ACEOF
3887 #define PTYRANGE1 "$p1"
3893 # Check whether --with-pty-mode or --without-pty-mode was given.
3894 if test "${with_pty_mode+set}" = set; then
3895 withval
="$with_pty_mode"
3896 ptymode
="${withval}"
3899 # Check whether --with-pty-group or --without-pty-group was given.
3900 if test "${with_pty_group+set}" = set; then
3901 withval
="$with_pty_group"
3904 test -n "$ptymode" || ptymode
=0620
3905 if test -n "$ptygrp" ; then
3906 cat >>confdefs.h
<<_ACEOF
3907 #define PTYMODE $ptymode
3910 cat >>confdefs.h
<<_ACEOF
3911 #define PTYGROUP $ptygrp
3916 { echo "$as_me:$LINENO: checking default tty permissions/group..." >&5
3917 echo "$as_me: checking default tty permissions/group..." >&6;}
3919 if test "$cross_compiling" = yes; then
3920 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3921 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3922 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3923 See \`config.log' for more details." >&5
3924 echo "$as_me: error: cannot run test program while cross compiling
3925 See \`config.log' for more details." >&2;}
3926 { (exit 1); exit 1; }; }; }
3928 cat >conftest.
$ac_ext <<_ACEOF
3931 cat confdefs.h
>>conftest.
$ac_ext
3932 cat >>conftest.
$ac_ext <<_ACEOF
3933 /* end confdefs.h. */
3935 #include <sys/types.h>
3936 #include <sys/stat.h>
3945 if (!(x = ttyname(0))) exit(1);
3946 if (stat(x, &sb)) exit(1);
3948 if (om & 002) exit(0);
3949 m = system("mesg y");
3950 if (m == -1 || m == 127) exit(1);
3951 if (stat(x, &sb)) exit(1);
3953 if (chmod(x, om)) exit(1);
3954 if (m & 002) exit(0);
3955 if (sb.st_gid == getgid()) exit(1);
3956 if (!(fp=fopen("conftest_grp", "w")))
3958 fprintf(fp, "%d\n", sb.st_gid);
3964 rm -f conftest
$ac_exeext
3965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3966 (eval $ac_link) 2>&5
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); }; }; then
3976 if test -f conftest_grp
; then
3977 ptygrp
=`cat conftest_grp`
3978 echo "- pty mode: $ptymode, group: $ptygrp" 1>&6
3980 cat >>confdefs.h
<<_ACEOF
3981 #define PTYMODE $ptymode
3984 cat >>confdefs.h
<<_ACEOF
3985 #define PTYGROUP $ptygrp
3989 echo "- ptys are world accessable" 1>&6
3994 echo "$as_me: program exited with status $ac_status" >&5
3995 echo "$as_me: failed program was:" >&5
3996 sed 's/^/| /' conftest.
$ac_ext >&5
4002 # Extract the first word of "write", so it can be a program name with args.
4003 set dummy
write; ac_word
=$2
4004 echo "$as_me:$LINENO: checking for $ac_word" >&5
4005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4006 if test "${ac_cv_path_WRITEPATH+set}" = set; then
4007 echo $ECHO_N "(cached) $ECHO_C" >&6
4011 ac_cv_path_WRITEPATH
="$WRITEPATH" # Let the user override the test with a path.
4014 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4018 test -z "$as_dir" && as_dir
=.
4019 for ac_exec_ext
in '' $ac_executable_extensions; do
4020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4021 ac_cv_path_WRITEPATH
="$as_dir/$ac_word$ac_exec_ext"
4022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4031 WRITEPATH
=$ac_cv_path_WRITEPATH
4033 if test -n "$WRITEPATH"; then
4034 echo "$as_me:$LINENO: result: $WRITEPATH" >&5
4035 echo "${ECHO_T}$WRITEPATH" >&6
4037 echo "$as_me:$LINENO: result: no" >&5
4038 echo "${ECHO_T}no" >&6
4041 # Extract the first word of "xterm", so it can be a program name with args.
4042 set dummy xterm
; ac_word
=$2
4043 echo "$as_me:$LINENO: checking for $ac_word" >&5
4044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4045 if test "${ac_cv_path_XTERMPATH+set}" = set; then
4046 echo $ECHO_N "(cached) $ECHO_C" >&6
4050 ac_cv_path_XTERMPATH
="$XTERMPATH" # Let the user override the test with a path.
4053 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4057 test -z "$as_dir" && as_dir
=.
4058 for ac_exec_ext
in '' $ac_executable_extensions; do
4059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4060 ac_cv_path_XTERMPATH
="$as_dir/$ac_word$ac_exec_ext"
4061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4070 XTERMPATH
=$ac_cv_path_XTERMPATH
4072 if test -n "$XTERMPATH"; then
4073 echo "$as_me:$LINENO: result: $XTERMPATH" >&5
4074 echo "${ECHO_T}$XTERMPATH" >&6
4076 echo "$as_me:$LINENO: result: no" >&5
4077 echo "${ECHO_T}no" >&6
4081 if test -n "$WRITEPATH$XTERMPATH"; then
4084 found
=`find $WRITEPATH $XTERMPATH -follow -print 2>/dev/null`
4085 if test -n "$found"; then
4089 if test -n "$XTERMPATH"; then
4090 ptygrpn
=`ls -l$lsfollow $XTERMPATH | sed -n -e 1p | $AWK '{print $4}'`
4091 if test tty
!= "$ptygrpn"; then
4096 if test -n "$WRITEPATH$XTERMPATH"; then
4097 found
=`find $WRITEPATH $XTERMPATH $findfollow -perm -2000 -print`
4098 if test -n "$found"; then
4099 ptygrp
=`ls -ln$lsfollow $found | sed -n -e 1p | $AWK '{print $4}'`
4100 echo "- pty mode: $ptymode, group: $ptygrp" 1>&6
4102 cat >>confdefs.h
<<_ACEOF
4103 #define PTYMODE $ptymode
4106 cat >>confdefs.h
<<_ACEOF
4107 #define PTYGROUP $ptygrp
4111 echo "- ptys are world accessable" 1>&6
4115 echo "- can't determine - assume ptys are world accessable" 1>&6
4121 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4126 if test -n "$posix" ; then
4128 echo "assuming posix signal definition" 1>&6
4130 cat >>confdefs.h
<<\_ACEOF
4137 { echo "$as_me:$LINENO: checking return type of signal handlers..." >&5
4138 echo "$as_me: checking return type of signal handlers..." >&6;}
4139 cat >conftest.
$ac_ext <<_ACEOF
4142 cat confdefs.h
>>conftest.
$ac_ext
4143 cat >>conftest.
$ac_ext <<_ACEOF
4144 /* end confdefs.h. */
4145 #include <sys/types.h>
4150 extern void (*signal ()) ();
4159 rm -f conftest.
$ac_objext
4160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4161 (eval $ac_compile) 2>conftest.er1
4163 grep -v '^ *+' conftest.er1
>conftest.err
4165 cat conftest.err
>&5
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); } &&
4168 { ac_try
='test -z "$ac_c_werror_flag"
4169 || test ! -s conftest.err'
4170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); }; } &&
4175 { ac_try
='test -s conftest.$ac_objext'
4176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); }; }; then
4181 cat >>confdefs.h
<<\_ACEOF
4186 echo "$as_me: failed program was:" >&5
4187 sed 's/^/| /' conftest.
$ac_ext >&5
4190 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4191 { echo "$as_me:$LINENO: checking sigset..." >&5
4192 echo "$as_me: checking sigset..." >&6;}
4193 cat >conftest.
$ac_ext <<_ACEOF
4196 cat confdefs.h
>>conftest.
$ac_ext
4197 cat >>conftest.
$ac_ext <<_ACEOF
4198 /* end confdefs.h. */
4200 #include <sys/types.h>
4208 sigset(0, (void (*)())0);
4210 sigset(0, (int (*)())0);
4217 rm -f conftest.
$ac_objext conftest
$ac_exeext
4218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4219 (eval $ac_link) 2>conftest.er1
4221 grep -v '^ *+' conftest.er1
>conftest.err
4223 cat conftest.err
>&5
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); } &&
4226 { ac_try
='test -z "$ac_c_werror_flag"
4227 || test ! -s conftest.err'
4228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); }; } &&
4233 { ac_try
='test -s conftest$ac_exeext'
4234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); }; }; then
4239 cat >>confdefs.h
<<\_ACEOF
4244 echo "$as_me: failed program was:" >&5
4245 sed 's/^/| /' conftest.
$ac_ext >&5
4248 rm -f conftest.err conftest.
$ac_objext \
4249 conftest
$ac_exeext conftest.
$ac_ext
4250 { echo "$as_me:$LINENO: checking signal implementation..." >&5
4251 echo "$as_me: checking signal implementation..." >&6;}
4252 if test "$cross_compiling" = yes; then
4253 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4254 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4255 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4256 See \`config.log' for more details." >&5
4257 echo "$as_me: error: cannot run test program while cross compiling
4258 See \`config.log' for more details." >&2;}
4259 { (exit 1); exit 1; }; }; }
4261 cat >conftest.
$ac_ext <<_ACEOF
4264 cat confdefs.h
>>conftest.
$ac_ext
4265 cat >>conftest.
$ac_ext <<_ACEOF
4266 /* end confdefs.h. */
4268 #include <sys/types.h>
4272 #define SIGCLD SIGCHLD
4275 #define signal sigset
4290 /* on hpux we use sigvec to get bsd signals */
4292 (void)signal(SIGCLD, hand);
4293 kill(getpid(), SIGCLD);
4294 kill(getpid(), SIGCLD);
4302 rm -f conftest
$ac_exeext
4303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4304 (eval $ac_link) 2>&5
4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); }; }; then
4315 echo "$as_me: program exited with status $ac_status" >&5
4316 echo "$as_me: failed program was:" >&5
4317 sed 's/^/| /' conftest.
$ac_ext >&5
4320 cat >>confdefs.h
<<\_ACEOF
4325 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4330 ac_config_files
="$ac_config_files Makefile"
4331 cat >confcache
<<\_ACEOF
4332 # This file is a shell script that caches the results of configure
4333 # tests run on this system so they can be shared between configure
4334 # scripts and configure runs, see configure's option --config-cache.
4335 # It is not useful on other systems. If it contains results you don't
4336 # want to keep, you may remove or edit it.
4338 # config.status only pays attention to the cache file if you give it
4339 # the --recheck option to rerun configure.
4341 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4342 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4347 # The following way of writing the cache mishandles newlines in values,
4348 # but we know of no workaround that is simple, portable, and efficient.
4349 # So, don't put newlines in cache variables' values.
4350 # Ultrix sh set writes to stderr and can't be redirected directly,
4351 # and sets the high bit in the cache file unless we assign to the vars.
4354 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4356 # `set' does not quote correctly, so add quotes (double-quote
4357 # substitution turns \\\\ into \\, and sed turns \\ into \).
4360 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4363 # `set' quotes correctly as required by POSIX, so do not add quotes.
4365 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4372 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4374 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4376 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
4377 if test -w $cache_file; then
4378 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4379 cat confcache
>$cache_file
4381 echo "not updating unwritable cache $cache_file"
4386 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4387 # Let make expand exec_prefix.
4388 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4390 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4391 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4392 # trailing colons and then remove the whole line if VPATH becomes empty
4393 # (actually we leave an empty line to preserve line numbers).
4394 if test "x$srcdir" = x.
; then
4395 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
4396 s/:*\$(srcdir):*/:/;
4397 s/:*\${srcdir}:*/:/;
4399 s/^\([^=]*=[ ]*\):*/\1/;
4405 DEFS
=-DHAVE_CONFIG_H
4409 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
4410 # 1. Remove the extension, and $U if already installed.
4411 ac_i
=`echo "$ac_i" |
4412 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4414 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
4415 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
4419 LTLIBOBJS
=$ac_ltlibobjs
4423 : ${CONFIG_STATUS=./config.status}
4424 ac_clean_files_save
=$ac_clean_files
4425 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
4426 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4427 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4428 cat >$CONFIG_STATUS <<_ACEOF
4430 # Generated by $as_me.
4431 # Run this file to recreate the current configuration.
4432 # Compiler output produced by configure, useful for debugging
4433 # configure, is in config.log if it exists.
4438 SHELL=\${CONFIG_SHELL-$SHELL}
4441 cat >>$CONFIG_STATUS <<\_ACEOF
4442 ## --------------------- ##
4443 ## M4sh Initialization. ##
4444 ## --------------------- ##
4446 # Be Bourne compatible
4447 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
4450 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4451 # is contrary to our usage. Disable this feature.
4452 alias -g '${1+"$@"}'='"$@"'
4453 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
4456 DUALCASE
=1; export DUALCASE
# for MKS sh
4458 # Support unset when possible.
4459 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
4466 # Work around bugs in pre-3.0 UWIN ksh.
4467 $as_unset ENV MAIL MAILPATH
4474 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4475 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4476 LC_TELEPHONE LC_TIME
4478 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4479 eval $as_var=C
; export $as_var
4485 # Required to use basename.
4486 if expr a
: '\(a\)' >/dev
/null
2>&1; then
4492 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
4493 as_basename
=basename
4499 # Name of the executable.
4500 as_me
=`$as_basename "$0" ||
4501 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4502 X"$0" : 'X\(//\)$' \| \
4503 X"$0" : 'X\(/\)$' \| \
4504 . : '\(.\)' 2>/dev/null ||
4506 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4507 /^X\/\(\/\/\)$/{ s//\1/; q; }
4508 /^X\/\(\/\).*/{ s//\1/; q; }
4512 # PATH needs CR, and LINENO needs CR and PATH.
4513 # Avoid depending upon Character Ranges.
4514 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
4515 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4516 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
4517 as_cr_digits
='0123456789'
4518 as_cr_alnum
=$as_cr_Letters$as_cr_digits
4520 # The user is always right.
4521 if test "${PATH_SEPARATOR+set}" != set; then
4522 echo "#! /bin/sh" >conf$$.sh
4523 echo "exit 0" >>conf$$.sh
4525 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
4536 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
4537 test "x$as_lineno_1" != "x$as_lineno_2" &&
4538 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
4539 # Find who we are. Look in the path if we contain no path at all
4542 *[\\/]* ) as_myself
=$0 ;;
4543 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4547 test -z "$as_dir" && as_dir
=.
4548 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
4553 # We did not find ourselves, most probably we were run as `sh COMMAND'
4554 # in which case we are not to be found in the path.
4555 if test "x$as_myself" = x
; then
4558 if test ! -f "$as_myself"; then
4559 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4560 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4561 { (exit 1); exit 1; }; }
4563 case $CONFIG_SHELL in
4565 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4566 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
4569 test -z "$as_dir" && as_dir
=.
4570 for as_base
in sh bash ksh sh5
; do
4573 if ("$as_dir/$as_base" -c '
4576 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4577 test "x$as_lineno_1" != "x$as_lineno_2" &&
4578 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
4579 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
4580 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
4581 CONFIG_SHELL
=$as_dir/$as_base
4583 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4591 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4592 # uniformly replaced by the line number. The first 'sed' inserts a
4593 # line-number line before each line; the second 'sed' does the real
4594 # work. The second script uses 'N' to pair each line-number line
4595 # with the numbered line, and appends trailing '-' during
4596 # substitution so that $LINENO is not a special case at line end.
4597 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4598 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4599 sed '=' <$as_myself |
4604 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4607 s,^['$as_cr_digits']*\n,,
4609 chmod +x
$as_me.lineno ||
4610 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4611 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4612 { (exit 1); exit 1; }; }
4614 # Don't try to exec as it changes $[0], causing all sort of problems
4615 # (the dirname of $[0] is not the place where we might find the
4616 # original and so on. Autoconf is especially sensible to this).
4618 # Exit status is that of the last command.
4623 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4624 *c
*,-n*) ECHO_N
= ECHO_C
='
4626 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
4627 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
4630 if expr a
: '\(a\)' >/dev
/null
2>&1; then
4636 rm -f conf$$ conf$$.exe conf$$.
file
4638 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
4639 # We could just check for DJGPP; but this test a) works b) is more generic
4640 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4641 if test -f conf$$.exe
; then
4642 # Don't use ln at all; we don't have any links
4647 elif ln conf$$.
file conf$$
2>/dev
/null
; then
4652 rm -f conf$$ conf$$.exe conf$$.
file
4654 if mkdir
-p .
2>/dev
/null
; then
4657 test -d .
/-p && rmdir .
/-p
4661 as_executable_p
="test -f"
4663 # Sed expression to map a string onto a valid CPP name.
4664 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4666 # Sed expression to map a string onto a valid variable name.
4667 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4671 # We need space, tab and new line, in precisely that order.
4681 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4682 # report actual input values of CONFIG_FILES etc. instead of their
4683 # values after options handling. Logging --version etc. is OK.
4687 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4688 ## Running $as_me. ##
4693 This file was extended by $as_me, which was
4694 generated by GNU Autoconf 2.59. Invocation command line was
4696 CONFIG_FILES = $CONFIG_FILES
4697 CONFIG_HEADERS = $CONFIG_HEADERS
4698 CONFIG_LINKS = $CONFIG_LINKS
4699 CONFIG_COMMANDS = $CONFIG_COMMANDS
4703 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4707 # Files that config.status was made for.
4708 if test -n "$ac_config_files"; then
4709 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4712 if test -n "$ac_config_headers"; then
4713 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4716 if test -n "$ac_config_links"; then
4717 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4720 if test -n "$ac_config_commands"; then
4721 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4724 cat >>$CONFIG_STATUS <<\_ACEOF
4727 \`$as_me' instantiates files from templates according to the
4728 current configuration.
4730 Usage: $0 [OPTIONS] [FILE]...
4732 -h, --help print this help, then exit
4733 -V, --version print version number, then exit
4734 -q, --quiet do not print progress messages
4735 -d, --debug don't remove temporary files
4736 --recheck update $as_me by reconfiguring in the same conditions
4737 --file=FILE[:TEMPLATE]
4738 instantiate the configuration file FILE
4739 --header=FILE[:TEMPLATE]
4740 instantiate the configuration header FILE
4742 Configuration files:
4745 Configuration headers:
4748 Report bugs to <bug-autoconf@gnu.org>."
4751 cat >>$CONFIG_STATUS <<_ACEOF
4754 configured by $0, generated by GNU Autoconf 2.59,
4755 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4757 Copyright (C) 2003 Free Software Foundation, Inc.
4758 This config.status script is free software; the Free Software Foundation
4759 gives unlimited permission to copy, distribute and modify it."
4763 cat >>$CONFIG_STATUS <<\_ACEOF
4764 # If no file are specified by the user, then we need to provide default
4765 # value. By we need to know if files were specified by the user.
4771 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
4772 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
4780 *) # This is not an option, so the user has probably given explicit
4783 ac_need_defaults
=false
;;
4787 # Handling of the options.
4789 cat >>$CONFIG_STATUS <<\_ACEOF
4790 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
4792 --version |
--vers* |
-V )
4793 echo "$ac_cs_version"; exit 0 ;;
4795 # Conflict between --help and --header
4796 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4797 Try \`$0 --help' for more information." >&5
4798 echo "$as_me: error: ambiguous option: $1
4799 Try \`$0 --help' for more information." >&2;}
4800 { (exit 1); exit 1; }; };;
4801 --help |
--hel |
-h )
4802 echo "$ac_cs_usage"; exit 0 ;;
4803 --debug |
--d* |
-d )
4805 --file |
--fil |
--fi |
--f )
4807 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
4808 ac_need_defaults
=false
;;
4809 --header |
--heade |
--head |
--hea )
4811 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
4812 ac_need_defaults
=false
;;
4813 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
4814 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
4818 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4819 Try \`$0 --help' for more information." >&5
4820 echo "$as_me: error: unrecognized option: $1
4821 Try \`$0 --help' for more information." >&2;}
4822 { (exit 1); exit 1; }; } ;;
4824 *) ac_config_targets
="$ac_config_targets $1" ;;
4830 ac_configure_extra_args
=
4832 if $ac_cs_silent; then
4834 ac_configure_extra_args
="$ac_configure_extra_args --silent"
4838 cat >>$CONFIG_STATUS <<_ACEOF
4839 if \$ac_cs_recheck; then
4840 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4841 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4850 cat >>$CONFIG_STATUS <<\_ACEOF
4851 for ac_config_target
in $ac_config_targets
4853 case "$ac_config_target" in
4854 # Handling of arguments.
4855 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
4856 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
4857 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4858 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4859 { (exit 1); exit 1; }; };;
4863 # If the user did not use the arguments to specify the items to instantiate,
4864 # then the envvar interface is used. Set only those that are not.
4865 # We use the long form for the default assignment because of an extremely
4866 # bizarre bug on SunOS 4.1.3.
4867 if $ac_need_defaults; then
4868 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
4869 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
4872 # Have a temporary directory for convenience. Make it in the build tree
4873 # simply because there is no reason to put it here, and in addition,
4874 # creating and moving files from /tmp can sometimes cause problems.
4875 # Create a temporary directory, and hook for its removal unless debugging.
4878 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4879 trap '{ (exit 1); exit 1; }' 1 2 13 15
4882 # Create a (secure) tmp directory for tmp files.
4885 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4886 test -n "$tmp" && test -d "$tmp"
4889 tmp
=.
/confstat$$
-$RANDOM
4890 (umask 077 && mkdir
$tmp)
4893 echo "$me: cannot create a temporary directory in ." >&2
4894 { (exit 1); exit 1; }
4899 cat >>$CONFIG_STATUS <<_ACEOF
4902 # CONFIG_FILES section.
4905 # No need to generate the scripts if there are no CONFIG_FILES.
4906 # This happens for instance when ./config.status config.h
4907 if test -n "\$CONFIG_FILES"; then
4908 # Protect against being on the right side of a sed subst in config.status.
4909 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4910 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4911 s,@SHELL@,$SHELL,;t t
4912 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4913 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4914 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4915 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4916 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4917 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4918 s,@exec_prefix@,$exec_prefix,;t t
4919 s,@prefix@,$prefix,;t t
4920 s,@program_transform_name@,$program_transform_name,;t t
4921 s,@bindir@,$bindir,;t t
4922 s,@sbindir@,$sbindir,;t t
4923 s,@libexecdir@,$libexecdir,;t t
4924 s,@datadir@,$datadir,;t t
4925 s,@sysconfdir@,$sysconfdir,;t t
4926 s,@sharedstatedir@,$sharedstatedir,;t t
4927 s,@localstatedir@,$localstatedir,;t t
4928 s,@libdir@,$libdir,;t t
4929 s,@includedir@,$includedir,;t t
4930 s,@oldincludedir@,$oldincludedir,;t t
4931 s,@infodir@,$infodir,;t t
4932 s,@mandir@,$mandir,;t t
4933 s,@build_alias@,$build_alias,;t t
4934 s,@host_alias@,$host_alias,;t t
4935 s,@target_alias@,$target_alias,;t t
4937 s,@ECHO_C@,$ECHO_C,;t t
4938 s,@ECHO_N@,$ECHO_N,;t t
4939 s,@ECHO_T@,$ECHO_T,;t t
4941 s,@VERSION@,$VERSION,;t t
4943 s,@CFLAGS@,$CFLAGS,;t t
4944 s,@LDFLAGS@,$LDFLAGS,;t t
4945 s,@CPPFLAGS@,$CPPFLAGS,;t t
4946 s,@ac_ct_CC@,$ac_ct_CC,;t t
4947 s,@EXEEXT@,$EXEEXT,;t t
4948 s,@OBJEXT@,$OBJEXT,;t t
4950 s,@EGREP@,$EGREP,;t t
4952 s,@WRITEPATH@,$WRITEPATH,;t t
4953 s,@XTERMPATH@,$XTERMPATH,;t t
4954 s,@LIBOBJS@,$LIBOBJS,;t t
4955 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4960 cat >>$CONFIG_STATUS <<\_ACEOF
4961 # Split the substitutions into bite-sized pieces for seds with
4962 # small command number limits, like on Digital OSF/1 and HP-UX.
4964 ac_sed_frag
=1 # Number of current file.
4965 ac_beg
=1 # First line for current file.
4966 ac_end
=$ac_max_sed_lines # Line after last line for current file.
4969 while $ac_more_lines; do
4970 if test $ac_beg -gt 1; then
4971 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
4973 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
4975 if test ! -s $tmp/subs.frag
; then
4978 # The purpose of the label and of the branching condition is to
4979 # speed up the sed processing (if there are no `@' at all, there
4980 # is no need to browse any of the substitutions).
4981 # These are the two extra sed commands mentioned above.
4983 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
4984 if test -z "$ac_sed_cmds"; then
4985 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
4987 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4989 ac_sed_frag
=`expr $ac_sed_frag + 1`
4991 ac_end
=`expr $ac_end + $ac_max_sed_lines`
4994 if test -z "$ac_sed_cmds"; then
4997 fi # test -n "$CONFIG_FILES"
5000 cat >>$CONFIG_STATUS <<\_ACEOF
5001 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
5002 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5004 - |
*:- |
*:-:* ) # input from stdin
5006 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
5007 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
5008 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
5009 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
5010 * ) ac_file_in
=$ac_file.
in ;;
5013 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5014 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
5015 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5016 X"$ac_file" : 'X\(//\)[^/]' \| \
5017 X"$ac_file" : 'X\(//\)$' \| \
5018 X"$ac_file" : 'X\(/\)' \| \
5019 . : '\(.\)' 2>/dev/null ||
5021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5022 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5023 /^X\(\/\/\)$/{ s//\1/; q; }
5024 /^X\(\/\).*/{ s//\1/; q; }
5026 { if $as_mkdir_p; then
5031 while test ! -d "$as_dir"; do
5032 as_dirs
="$as_dir $as_dirs"
5033 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
5034 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5035 X"$as_dir" : 'X\(//\)[^/]' \| \
5036 X"$as_dir" : 'X\(//\)$' \| \
5037 X"$as_dir" : 'X\(/\)' \| \
5038 . : '\(.\)' 2>/dev/null ||
5040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5041 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5042 /^X\(\/\/\)$/{ s//\1/; q; }
5043 /^X\(\/\).*/{ s//\1/; q; }
5046 test ! -n "$as_dirs" || mkdir
$as_dirs
5047 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5048 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5049 { (exit 1); exit 1; }; }; }
5053 if test "$ac_dir" != .
; then
5054 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5055 # A "../" for each directory in $ac_dir_suffix.
5056 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5058 ac_dir_suffix
= ac_top_builddir
=
5062 .
) # No --srcdir option. We are building in place.
5064 if test -z "$ac_top_builddir"; then
5067 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
5069 [\\/]* | ?
:[\\/]* ) # Absolute path.
5070 ac_srcdir
=$srcdir$ac_dir_suffix;
5071 ac_top_srcdir
=$srcdir ;;
5073 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
5074 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
5077 # Do not use `cd foo && pwd` to compute absolute paths, because
5078 # the directories may not exist.
5080 .
) ac_abs_builddir
="$ac_dir";;
5083 .
) ac_abs_builddir
=`pwd`;;
5084 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
5085 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
5088 case $ac_abs_builddir in
5089 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
5091 case ${ac_top_builddir}.
in
5092 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
5093 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
5094 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
5097 case $ac_abs_builddir in
5098 .
) ac_abs_srcdir
=$ac_srcdir;;
5101 .
) ac_abs_srcdir
=$ac_abs_builddir;;
5102 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
5103 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
5106 case $ac_abs_builddir in
5107 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
5109 case $ac_top_srcdir in
5110 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
5111 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
5112 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
5118 if test x
"$ac_file" != x-
; then
5119 { echo "$as_me:$LINENO: creating $ac_file" >&5
5120 echo "$as_me: creating $ac_file" >&6;}
5123 # Let's still pretend it is `configure' which instantiates (i.e., don't
5124 # use $as_me), people would be surprised to read:
5125 # /* config.h. Generated by config.status. */
5126 if test x
"$ac_file" = x-
; then
5129 configure_input
="$ac_file. "
5131 configure_input
=$configure_input"Generated from `echo $ac_file_in |
5132 sed 's,.*/,,'` by configure."
5134 # First look for the input files in the build tree, otherwise in the
5136 ac_file_inputs
=`IFS=:
5137 for f in $ac_file_in; do
5139 -) echo $tmp/stdin ;;
5141 # Absolute (can't be DOS-style, as IFS=:)
5142 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5143 echo "$as_me: error: cannot find input file: $f" >&2;}
5144 { (exit 1); exit 1; }; }
5147 if test -f "$f"; then
5150 elif test -f "$srcdir/$f"; then
5155 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5156 echo "$as_me: error: cannot find input file: $f" >&2;}
5157 { (exit 1); exit 1; }; }
5160 done` ||
{ (exit 1); exit 1; }
5162 cat >>$CONFIG_STATUS <<_ACEOF
5166 cat >>$CONFIG_STATUS <<\_ACEOF
5168 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
5169 s
,@configure_input@
,$configure_input,;t t
5170 s
,@srcdir@
,$ac_srcdir,;t t
5171 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
5172 s
,@top_srcdir@
,$ac_top_srcdir,;t t
5173 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
5174 s
,@builddir@
,$ac_builddir,;t t
5175 s
,@abs_builddir@
,$ac_abs_builddir,;t t
5176 s
,@top_builddir@
,$ac_top_builddir,;t t
5177 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
5178 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5180 if test x"$ac_file" != x-; then
5181 mv $tmp/out $ac_file
5189 cat >>$CONFIG_STATUS <<\_ACEOF
5192 # CONFIG_HEADER section.
5195 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
5196 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5198 # ac_d sets the value in "#define NAME VALUE" lines.
5199 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5200 ac_dB
='[ ].*$,\1#\2'
5203 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5204 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5205 ac_uB
='$,\1#\2define\3'
5209 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
5210 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5212 - |
*:- |
*:-:* ) # input from stdin
5214 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
5215 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
5216 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
5217 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
5218 * ) ac_file_in
=$ac_file.
in ;;
5221 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
5222 echo "$as_me: creating $ac_file" >&6;}
5224 # First look for the input files in the build tree, otherwise in the
5226 ac_file_inputs
=`IFS=:
5227 for f in $ac_file_in; do
5229 -) echo $tmp/stdin ;;
5231 # Absolute (can't be DOS-style, as IFS=:)
5232 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5233 echo "$as_me: error: cannot find input file: $f" >&2;}
5234 { (exit 1); exit 1; }; }
5235 # Do quote $f, to prevent DOS paths from being IFS'd.
5238 if test -f "$f"; then
5241 elif test -f "$srcdir/$f"; then
5246 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5247 echo "$as_me: error: cannot find input file: $f" >&2;}
5248 { (exit 1); exit 1; }; }
5251 done` ||
{ (exit 1); exit 1; }
5252 # Remove the trailing spaces.
5253 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5257 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5258 # `conftest.undefs', that substitutes the proper values into
5259 # config.h.in to produce config.h. The first handles `#define'
5260 # templates, and the second `#undef' templates.
5261 # And first: Protect against being on the right side of a sed subst in
5262 # config.status. Protect against being in an unquoted here document
5264 rm -f conftest.defines conftest.undefs
5265 # Using a here document instead of a string reduces the quoting nightmare.
5266 # Putting comments in sed scripts is not portable.
5268 # `end' is used to avoid that the second main sed command (meant for
5269 # 0-ary CPP macros) applies to n-ary macro definitions.
5270 # See the Autoconf documentation for `clear'.
5271 cat >confdef2sed.
sed <<\_ACEOF
5276 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5278 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5281 # If some macros were called several times there might be several times
5282 # the same #defines, which is useless. Nevertheless, we may not want to
5283 # sort them, since we want the *last* AC-DEFINE to be honored.
5284 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5285 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5286 rm -f confdef2sed.sed
5288 # This sed command replaces #undef with comments. This is necessary, for
5289 # example, in the case of _POSIX_SOURCE, which is predefined and required
5290 # on some systems where configure will not decide to define it.
5291 cat >>conftest.undefs <<\_ACEOF
5292 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5295 # Break up conftest.defines because some shells have a limit on the size
5296 # of here documents, and old seds have small limits too (100 cmds).
5297 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5298 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5299 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5300 echo ' :' >>$CONFIG_STATUS
5302 while grep . conftest.defines >/dev/null
5304 # Write a limited-size here document to $tmp/defines.sed.
5305 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5306 # Speed up: don't consider the non `#define' lines.
5307 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5308 # Work around the forget-to-reset-the-flag bug.
5309 echo 't clr' >>$CONFIG_STATUS
5310 echo ': clr' >>$CONFIG_STATUS
5311 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
5313 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5317 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
5318 rm -f conftest.defines
5319 mv conftest.
tail conftest.defines
5321 rm -f conftest.defines
5322 echo ' fi # grep' >>$CONFIG_STATUS
5323 echo >>$CONFIG_STATUS
5325 # Break up conftest.undefs because some shells have a limit on the size
5326 # of here documents, and old seds have small limits too (100 cmds).
5327 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5329 while grep . conftest.undefs
>/dev
/null
5331 # Write a limited-size here document to $tmp/undefs.sed.
5332 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5333 # Speed up: don't consider the non
`#undef'
5334 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5335 # Work around the forget-to-reset-the-flag bug.
5336 echo 't clr' >>$CONFIG_STATUS
5337 echo ': clr' >>$CONFIG_STATUS
5338 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5340 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5344 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5345 rm -f conftest.undefs
5346 mv conftest.tail conftest.undefs
5348 rm -f conftest.undefs
5350 cat >>$CONFIG_STATUS <<\_ACEOF
5351 # Let's still pretend it is `configure
' which instantiates (i.e., don't
5352 # use $as_me), people would be surprised to read:
5353 # /* config.h. Generated by config.status. */
5354 if test x
"$ac_file" = x-
; then
5355 echo "/* Generated by configure. */" >$tmp/config.h
5357 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5359 cat $tmp/in >>$tmp/config.h
5361 if test x
"$ac_file" != x-
; then
5362 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
5363 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5364 echo "$as_me: $ac_file is unchanged" >&6;}
5366 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
5367 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5368 X"$ac_file" : 'X\(//\)[^/]' \| \
5369 X"$ac_file" : 'X\(//\)$' \| \
5370 X"$ac_file" : 'X\(/\)' \| \
5371 . : '\(.\)' 2>/dev/null ||
5373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5374 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5375 /^X\(\/\/\)$/{ s//\1/; q; }
5376 /^X\(\/\).*/{ s//\1/; q; }
5378 { if $as_mkdir_p; then
5383 while test ! -d "$as_dir"; do
5384 as_dirs
="$as_dir $as_dirs"
5385 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
5386 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5387 X"$as_dir" : 'X\(//\)[^/]' \| \
5388 X"$as_dir" : 'X\(//\)$' \| \
5389 X"$as_dir" : 'X\(/\)' \| \
5390 . : '\(.\)' 2>/dev/null ||
5392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5393 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5394 /^X\(\/\/\)$/{ s//\1/; q; }
5395 /^X\(\/\).*/{ s//\1/; q; }
5398 test ! -n "$as_dirs" || mkdir
$as_dirs
5399 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5400 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5401 { (exit 1); exit 1; }; }; }
5404 mv $tmp/config.h
$ac_file
5413 cat >>$CONFIG_STATUS <<\_ACEOF
5415 { (exit 0); exit 0; }
5417 chmod +x
$CONFIG_STATUS
5418 ac_clean_files
=$ac_clean_files_save
5421 # configure is writing to config.log, and then calls config.status.
5422 # config.status does its own redirection, appending to config.log.
5423 # Unfortunately, on DOS this fails, as config.log is still kept open
5424 # by configure, so config.status won't be able to write to it; its
5425 # output is simply discarded. So we exec the FD to /dev/null,
5426 # effectively closing config.log, so it can be properly (re)opened and
5427 # appended to by config.status. When coming back to configure, we
5428 # need to make the FD available again.
5429 if test "$no_create" != yes; then
5431 ac_config_status_args
=
5432 test "$silent" = yes &&
5433 ac_config_status_args
="$ac_config_status_args --quiet"
5435 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
5437 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5438 # would make configure fail if this is the last instruction.
5439 $ac_cs_success ||
{ (exit 1); exit 1; }