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="src/feature.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os VERSION DATE LSMDATE LIBVERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA EGREP LINKER CXXLIB INSTALL_LIBRXVT RXVTNAME TIC CXXCPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS afterimage_config XPM_CPPFLAGS XPM_CFLAGS XPM_LIBS rxvt_int16_typedef rxvt_uint16_typedef rxvt_int32_typedef rxvt_uint32_typedef rxvt_intp_define rxvt_u_intp_define PKG_CONFIG XFT_CONFIG PERL PERLLIB PERLFLAGS PERLPRIVLIBEXP IF_PERL PERL_O LIBAFTERIMAGE_CFLAGS AFTERIMAGE_LIBS include_stdint_h include_stdarg_h include_stdlib_h include_unistd_h include_string_h include_fcntl_h include_util_h include_assert_h include_sys_ioctl_h include_sys_select_h include_sys_strredir_h include_sys_time_h include_time_h LIBOBJS LTLIBOBJS'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CXX_set=${CXX+set}
770 ac_env_CXX_value=$CXX
771 ac_cv_env_CXX_set=${CXX+set}
772 ac_cv_env_CXX_value=$CXX
773 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774 ac_env_CXXFLAGS_value=$CXXFLAGS
775 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777 ac_env_CPP_set=${CPP+set}
778 ac_env_CPP_value=$CPP
779 ac_cv_env_CPP_set=${CPP+set}
780 ac_cv_env_CPP_value=$CPP
781 ac_env_CXXCPP_set=${CXXCPP+set}
782 ac_env_CXXCPP_value=$CXXCPP
783 ac_cv_env_CXXCPP_set=${CXXCPP+set}
784 ac_cv_env_CXXCPP_value=$CXXCPP
787 # Report the --help message.
789 if test "$ac_init_help" = "long"; then
790 # Omit some internal or obsolete options to make the list less imposing.
791 # This message is too long to be a string in the A/UX 3.1 sh.
793 \`configure' configures this package to adapt to many kinds of systems.
795 Usage: $0 [OPTION]... [VAR=VALUE]...
797 To assign environment variables (e.g., CC, CFLAGS...), specify them as
798 VAR=VALUE. See below for descriptions of some of the useful variables.
800 Defaults for the options are specified in brackets.
803 -h, --help display this help and exit
804 --help=short display options specific to this package
805 --help=recursive display the short help of all the included packages
806 -V, --version display version information and exit
807 -q, --quiet, --silent do not print \`checking...' messages
808 --cache-file=FILE cache test results in FILE [disabled]
809 -C, --config-cache alias for \`--cache-file=config.cache'
810 -n, --no-create do not create output files
811 --srcdir=DIR find the sources in DIR [configure dir or \`..']
816 Installation directories:
817 --prefix=PREFIX install architecture-independent files in PREFIX
819 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
822 By default, \`make install' will install all the files in
823 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
824 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
825 for instance \`--prefix=\$HOME'.
827 For better control, use the options below.
829 Fine tuning of the installation directories:
830 --bindir=DIR user executables [EPREFIX/bin]
831 --sbindir=DIR system admin executables [EPREFIX/sbin]
832 --libexecdir=DIR program executables [EPREFIX/libexec]
833 --datadir=DIR read-only architecture-independent data [PREFIX/share]
834 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
835 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
836 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
837 --libdir=DIR object code libraries [EPREFIX/lib]
838 --includedir=DIR C header files [PREFIX/include]
839 --oldincludedir=DIR C header files for non-gcc [/usr/include]
840 --infodir=DIR info documentation [PREFIX/info]
841 --mandir=DIR man documentation [PREFIX/man]
847 --x-includes=DIR X include files are in DIR
848 --x-libraries=DIR X library files are in DIR
851 --program-prefix=PREFIX prepend PREFIX to installed program names
852 --program-suffix=SUFFIX append SUFFIX to installed program names
853 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
856 --build=BUILD configure for building on BUILD [guessed]
857 --host=HOST cross-compile to build programs to run on HOST [BUILD]
861 if test -n "$ac_init_help"; then
866 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
867 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
868 --enable-everything enable standard non-multichoice features
869 NOTE: this option is order dependent
870 NOTE: automatically enabled with --enable-shared
871 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters
872 --enable-combining enable composition of base and combining characters
873 --enable-xft enable xft support on systems that have it
874 --enable-font-styles enable bold and italic support
875 --enable-xpm-background enable background pixmaps
876 --enable-afterimage enable integration with libAfterImage for background images
877 --enable-afterstep enable integration with AfterStep window manager
878 --enable-transparency enable transparent backgrounds
879 --enable-tinting enable tinting of transparent bg
880 --enable-fading enable colors fading when off focus
881 --enable-rxvt-scroll enable rxvt style scrollbar
882 --enable-next-scroll enable NeXT style scrollbar
883 --enable-xterm-scroll enable Xterm style scrollbar
884 --enable-perl enable embedded perl interpreter
885 --enable-plain-scroll enable plain style scrollbar
886 --enable-xim XIM (X Input Method) protocol support
887 --disable-backspace-key disable handling of the backspace key
888 --disable-delete-key disable handling of the delete key
889 --disable-resources disable all resource checking
890 --enable-8bitctrls enable 8 bit control sequences (not recommended)
891 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
892 --disable-swapscreen disable swap screen support
893 --enable-iso14755 enable support for extended ISO 14755 modes
894 --enable-frills enable support for rarely used features
895 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
896 --enable-selectionscrolling enable scrolling during selections
897 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
898 --enable-slipwheeling enable slip wheel scrolling (requires previous)
899 --enable-smart-resize enable smart growth/shrink behaviour
900 --enable-text-blink enable blinking text
901 --enable-pointer-blank enable pointer blank when typing or inactive pointer
902 --enable-utmp enable utmp (utmpx) support
903 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
904 --enable-lastlog enable lastlog support (requires --enable-utmp)
907 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
908 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
909 --with-afterimage-config=DIR use libAfterImage config script in DIR
910 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)
911 --with-res-name=NAME use this as default resource name (default: urxvt)
912 --with-res-class=CLASS use this as the resource class (default: URxvt)
913 --with-name=NAME set the basename for the installed binaries (default: urxvt)
914 --with-term=NAME set the terminal to NAME (default: rxvt)
915 --with-terminfo=PATH set the path to the terminfo tree to PATH
916 --with-x use the X Window System
917 --with-xpm-includes=DIR use XPM includes in DIR
918 --with-xpm-library=DIR use XPM library in DIR
921 Some influential environment variables:
922 CC C compiler command
923 CFLAGS C compiler flags
924 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
925 nonstandard directory <lib dir>
926 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
927 headers in a nonstandard directory <include dir>
928 CXX C++ compiler command
929 CXXFLAGS C++ compiler flags
931 CXXCPP C++ preprocessor
933 Use these variables to override the choices made by `configure' or to help
934 it to find libraries and programs with nonstandard names/locations.
939 if test "$ac_init_help" = "recursive"; then
940 # If there are subdirs, report their specific --help.
942 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
943 test -d $ac_dir || continue
946 if test "$ac_dir" != .; then
947 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
948 # A "../" for each directory in $ac_dir_suffix.
949 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
951 ac_dir_suffix= ac_top_builddir=
955 .) # No --srcdir option. We are building in place.
957 if test -z "$ac_top_builddir"; then
960 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
962 [\\/]* | ?:[\\/]* ) # Absolute path.
963 ac_srcdir=$srcdir$ac_dir_suffix;
964 ac_top_srcdir=$srcdir ;;
966 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
967 ac_top_srcdir=$ac_top_builddir$srcdir ;;
970 # Do not use `cd foo && pwd` to compute absolute paths, because
971 # the directories may not exist.
973 .) ac_abs_builddir="$ac_dir";;
976 .) ac_abs_builddir=`pwd`;;
977 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
978 *) ac_abs_builddir=`pwd`/"$ac_dir";;
981 case $ac_abs_builddir in
982 .) ac_abs_top_builddir=${ac_top_builddir}.;;
984 case ${ac_top_builddir}. in
985 .) ac_abs_top_builddir=$ac_abs_builddir;;
986 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
987 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
990 case $ac_abs_builddir in
991 .) ac_abs_srcdir=$ac_srcdir;;
994 .) ac_abs_srcdir=$ac_abs_builddir;;
995 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
996 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
999 case $ac_abs_builddir in
1000 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1002 case $ac_top_srcdir in
1003 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1004 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1005 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1010 # Check for guested configure; otherwise get Cygnus style configure.
1011 if test -f $ac_srcdir/configure.gnu; then
1013 $SHELL $ac_srcdir/configure.gnu --help=recursive
1014 elif test -f $ac_srcdir/configure; then
1016 $SHELL $ac_srcdir/configure --help=recursive
1017 elif test -f $ac_srcdir/configure.ac ||
1018 test -f $ac_srcdir/configure.in; then
1020 $ac_configure --help
1022 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1028 test -n "$ac_init_help" && exit 0
1029 if $ac_init_version; then
1032 Copyright (C) 2003 Free Software Foundation, Inc.
1033 This configure script is free software; the Free Software Foundation
1034 gives unlimited permission to copy, distribute and modify it.
1040 This file contains any messages produced by compilers while
1041 running configure, to aid debugging if configure makes a mistake.
1043 It was created by $as_me, which was
1044 generated by GNU Autoconf 2.59. Invocation command line was
1055 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1056 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1057 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1058 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1059 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1061 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1062 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1064 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1065 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1066 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1067 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1068 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1069 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1070 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1078 test -z "$as_dir" && as_dir=.
1079 echo "PATH: $as_dir"
1094 # Keep a trace of the command line.
1095 # Strip out --no-create and --no-recursion so they do not pile up.
1096 # Strip out --silent because we don't want to record it for future runs.
1097 # Also quote any args containing shell meta-characters.
1098 # Make two passes to allow for proper duplicate-argument suppression.
1103 ac_must_keep_next=false
1109 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1110 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1111 | -silent | --silent | --silen | --sile | --sil)
1113 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1114 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1117 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1119 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1120 if test $ac_must_keep_next = true; then
1121 ac_must_keep_next=false # Got value, back to normal.
1124 *=* | --config-cache | -C | -disable-* | --disable-* \
1125 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1126 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1127 | -with-* | --with-* | -without-* | --without-* | --x)
1128 case "$ac_configure_args0 " in
1129 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1132 -* ) ac_must_keep_next=true ;;
1135 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1136 # Get rid of the leading space.
1142 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1143 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1145 # When interrupted or exit'd, cleanup temporary files, and complete
1146 # config.log. We remove comments because anyway the quotes in there
1147 # would cause problems or look ugly.
1148 # WARNING: Be sure not to use single quotes in there, as some shells,
1149 # such as our DU 5.0 friend, will then `close' the trap.
1150 trap 'exit_status=$?
1151 # Save into config.log some information that might help in debugging.
1156 ## ---------------- ##
1157 ## Cache variables. ##
1158 ## ---------------- ##
1161 # The following way of writing the cache mishandles newlines in values,
1164 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1167 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1168 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1172 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1179 ## ----------------- ##
1180 ## Output variables. ##
1181 ## ----------------- ##
1184 for ac_var in $ac_subst_vars
1186 eval ac_val=$`echo $ac_var`
1187 echo "$ac_var='"'"'$ac_val'"'"'"
1191 if test -n "$ac_subst_files"; then
1198 for ac_var in $ac_subst_files
1200 eval ac_val=$`echo $ac_var`
1201 echo "$ac_var='"'"'$ac_val'"'"'"
1206 if test -s confdefs.h; then
1213 sed "/^$/d" confdefs.h | sort
1216 test "$ac_signal" != 0 &&
1217 echo "$as_me: caught signal $ac_signal"
1218 echo "$as_me: exit $exit_status"
1220 rm -f core *.core &&
1221 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1224 for ac_signal in 1 2 13 15; do
1225 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1229 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1230 rm -rf conftest* confdefs.h
1231 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1234 # Predefined preprocessor variables.
1236 cat >>confdefs.h <<_ACEOF
1237 #define PACKAGE_NAME "$PACKAGE_NAME"
1241 cat >>confdefs.h <<_ACEOF
1242 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1246 cat >>confdefs.h <<_ACEOF
1247 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1251 cat >>confdefs.h <<_ACEOF
1252 #define PACKAGE_STRING "$PACKAGE_STRING"
1256 cat >>confdefs.h <<_ACEOF
1257 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1261 # Let the site file select an alternate cache file if it wants to.
1262 # Prefer explicitly selected file to automatically selected ones.
1263 if test -z "$CONFIG_SITE"; then
1264 if test "x$prefix" != xNONE; then
1265 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1267 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1270 for ac_site_file in $CONFIG_SITE; do
1271 if test -r "$ac_site_file"; then
1272 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1273 echo "$as_me: loading site script $ac_site_file" >&6;}
1274 sed 's/^/| /' "$ac_site_file" >&5
1279 if test -r "$cache_file"; then
1280 # Some versions of bash will fail to source /dev/null (special
1281 # files actually), so we avoid doing that.
1282 if test -f "$cache_file"; then
1283 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1284 echo "$as_me: loading cache $cache_file" >&6;}
1286 [\\/]* | ?:[\\/]* ) . $cache_file;;
1287 *) . ./$cache_file;;
1291 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1292 echo "$as_me: creating cache $cache_file" >&6;}
1296 # Check that the precious variables saved in the cache have kept the same
1298 ac_cache_corrupted=false
1299 for ac_var in `(set) 2>&1 |
1300 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1301 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1302 eval ac_new_set=\$ac_env_${ac_var}_set
1303 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1304 eval ac_new_val="\$ac_env_${ac_var}_value"
1305 case $ac_old_set,$ac_new_set in
1307 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1308 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1309 ac_cache_corrupted=: ;;
1311 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1312 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1313 ac_cache_corrupted=: ;;
1316 if test "x$ac_old_val" != "x$ac_new_val"; then
1317 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1318 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1319 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1320 echo "$as_me: former value: $ac_old_val" >&2;}
1321 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1322 echo "$as_me: current value: $ac_new_val" >&2;}
1323 ac_cache_corrupted=:
1326 # Pass precious variables to config.status.
1327 if test "$ac_new_set" = set; then
1329 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1330 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1331 *) ac_arg=$ac_var=$ac_new_val ;;
1333 case " $ac_configure_args " in
1334 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1335 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1339 if $ac_cache_corrupted; then
1340 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1341 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1342 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1343 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1344 { (exit 1); exit 1; }; }
1348 ac_cpp='$CPP $CPPFLAGS'
1349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1373 ac_config_headers="$ac_config_headers config.h:config.h.in"
1377 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1378 if test -f $ac_dir/install-sh; then
1380 ac_install_sh="$ac_aux_dir/install-sh -c"
1382 elif test -f $ac_dir/install.sh; then
1384 ac_install_sh="$ac_aux_dir/install.sh -c"
1386 elif test -f $ac_dir/shtool; then
1388 ac_install_sh="$ac_aux_dir/shtool install -c"
1392 if test -z "$ac_aux_dir"; then
1393 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1394 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1395 { (exit 1); exit 1; }; }
1397 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1398 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1399 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1401 # Make sure we can run config.sub.
1402 $ac_config_sub sun4 >/dev/null 2>&1 ||
1403 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1404 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1405 { (exit 1); exit 1; }; }
1407 echo "$as_me:$LINENO: checking build system type" >&5
1408 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1409 if test "${ac_cv_build+set}" = set; then
1410 echo $ECHO_N "(cached) $ECHO_C" >&6
1412 ac_cv_build_alias=$build_alias
1413 test -z "$ac_cv_build_alias" &&
1414 ac_cv_build_alias=`$ac_config_guess`
1415 test -z "$ac_cv_build_alias" &&
1416 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1417 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1418 { (exit 1); exit 1; }; }
1419 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1420 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1421 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1422 { (exit 1); exit 1; }; }
1425 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1426 echo "${ECHO_T}$ac_cv_build" >&6
1428 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1429 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1430 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1433 echo "$as_me:$LINENO: checking host system type" >&5
1434 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1435 if test "${ac_cv_host+set}" = set; then
1436 echo $ECHO_N "(cached) $ECHO_C" >&6
1438 ac_cv_host_alias=$host_alias
1439 test -z "$ac_cv_host_alias" &&
1440 ac_cv_host_alias=$ac_cv_build_alias
1441 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1442 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1443 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1444 { (exit 1); exit 1; }; }
1447 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1448 echo "${ECHO_T}$ac_cv_host" >&6
1450 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1451 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1452 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1456 VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1457 DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1459 echo "configuring for rxvt $VERSION"
1462 orig_CXXFLAGS="$CXXFLAGS"
1466 ac_cpp='$CPP $CPPFLAGS'
1467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1470 if test -n "$ac_tool_prefix"; then
1471 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1472 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1473 echo "$as_me:$LINENO: checking for $ac_word" >&5
1474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1475 if test "${ac_cv_prog_CC+set}" = set; then
1476 echo $ECHO_N "(cached) $ECHO_C" >&6
1478 if test -n "$CC"; then
1479 ac_cv_prog_CC="$CC" # Let the user override the test.
1481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1485 test -z "$as_dir" && as_dir=.
1486 for ac_exec_ext in '' $ac_executable_extensions; do
1487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1488 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1498 if test -n "$CC"; then
1499 echo "$as_me:$LINENO: result: $CC" >&5
1500 echo "${ECHO_T}$CC" >&6
1502 echo "$as_me:$LINENO: result: no" >&5
1503 echo "${ECHO_T}no" >&6
1507 if test -z "$ac_cv_prog_CC"; then
1509 # Extract the first word of "gcc", so it can be a program name with args.
1510 set dummy gcc; ac_word=$2
1511 echo "$as_me:$LINENO: checking for $ac_word" >&5
1512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1513 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1514 echo $ECHO_N "(cached) $ECHO_C" >&6
1516 if test -n "$ac_ct_CC"; then
1517 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1523 test -z "$as_dir" && as_dir=.
1524 for ac_exec_ext in '' $ac_executable_extensions; do
1525 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1526 ac_cv_prog_ac_ct_CC="gcc"
1527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1535 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1536 if test -n "$ac_ct_CC"; then
1537 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1538 echo "${ECHO_T}$ac_ct_CC" >&6
1540 echo "$as_me:$LINENO: result: no" >&5
1541 echo "${ECHO_T}no" >&6
1549 if test -z "$CC"; then
1550 if test -n "$ac_tool_prefix"; then
1551 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1552 set dummy ${ac_tool_prefix}cc; ac_word=$2
1553 echo "$as_me:$LINENO: checking for $ac_word" >&5
1554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1555 if test "${ac_cv_prog_CC+set}" = set; then
1556 echo $ECHO_N "(cached) $ECHO_C" >&6
1558 if test -n "$CC"; then
1559 ac_cv_prog_CC="$CC" # Let the user override the test.
1561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1565 test -z "$as_dir" && as_dir=.
1566 for ac_exec_ext in '' $ac_executable_extensions; do
1567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1568 ac_cv_prog_CC="${ac_tool_prefix}cc"
1569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1578 if test -n "$CC"; then
1579 echo "$as_me:$LINENO: result: $CC" >&5
1580 echo "${ECHO_T}$CC" >&6
1582 echo "$as_me:$LINENO: result: no" >&5
1583 echo "${ECHO_T}no" >&6
1587 if test -z "$ac_cv_prog_CC"; then
1589 # Extract the first word of "cc", so it can be a program name with args.
1590 set dummy cc; ac_word=$2
1591 echo "$as_me:$LINENO: checking for $ac_word" >&5
1592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1593 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1594 echo $ECHO_N "(cached) $ECHO_C" >&6
1596 if test -n "$ac_ct_CC"; then
1597 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1603 test -z "$as_dir" && as_dir=.
1604 for ac_exec_ext in '' $ac_executable_extensions; do
1605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1606 ac_cv_prog_ac_ct_CC="cc"
1607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1615 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1616 if test -n "$ac_ct_CC"; then
1617 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1618 echo "${ECHO_T}$ac_ct_CC" >&6
1620 echo "$as_me:$LINENO: result: no" >&5
1621 echo "${ECHO_T}no" >&6
1630 if test -z "$CC"; then
1631 # Extract the first word of "cc", so it can be a program name with args.
1632 set dummy cc; ac_word=$2
1633 echo "$as_me:$LINENO: checking for $ac_word" >&5
1634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1635 if test "${ac_cv_prog_CC+set}" = set; then
1636 echo $ECHO_N "(cached) $ECHO_C" >&6
1638 if test -n "$CC"; then
1639 ac_cv_prog_CC="$CC" # Let the user override the test.
1642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646 test -z "$as_dir" && as_dir=.
1647 for ac_exec_ext in '' $ac_executable_extensions; do
1648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1649 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1650 ac_prog_rejected=yes
1654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1660 if test $ac_prog_rejected = yes; then
1661 # We found a bogon in the path, so make sure we never use it.
1662 set dummy $ac_cv_prog_CC
1664 if test $# != 0; then
1665 # We chose a different compiler from the bogus one.
1666 # However, it has the same basename, so the bogon will be chosen
1667 # first if we set CC to just the basename; use the full file name.
1669 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1675 if test -n "$CC"; then
1676 echo "$as_me:$LINENO: result: $CC" >&5
1677 echo "${ECHO_T}$CC" >&6
1679 echo "$as_me:$LINENO: result: no" >&5
1680 echo "${ECHO_T}no" >&6
1684 if test -z "$CC"; then
1685 if test -n "$ac_tool_prefix"; then
1688 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1689 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1690 echo "$as_me:$LINENO: checking for $ac_word" >&5
1691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1692 if test "${ac_cv_prog_CC+set}" = set; then
1693 echo $ECHO_N "(cached) $ECHO_C" >&6
1695 if test -n "$CC"; then
1696 ac_cv_prog_CC="$CC" # Let the user override the test.
1698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702 test -z "$as_dir" && as_dir=.
1703 for ac_exec_ext in '' $ac_executable_extensions; do
1704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1705 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1715 if test -n "$CC"; then
1716 echo "$as_me:$LINENO: result: $CC" >&5
1717 echo "${ECHO_T}$CC" >&6
1719 echo "$as_me:$LINENO: result: no" >&5
1720 echo "${ECHO_T}no" >&6
1723 test -n "$CC" && break
1726 if test -z "$CC"; then
1730 # Extract the first word of "$ac_prog", so it can be a program name with args.
1731 set dummy $ac_prog; ac_word=$2
1732 echo "$as_me:$LINENO: checking for $ac_word" >&5
1733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1734 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1735 echo $ECHO_N "(cached) $ECHO_C" >&6
1737 if test -n "$ac_ct_CC"; then
1738 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744 test -z "$as_dir" && as_dir=.
1745 for ac_exec_ext in '' $ac_executable_extensions; do
1746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1747 ac_cv_prog_ac_ct_CC="$ac_prog"
1748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1756 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1757 if test -n "$ac_ct_CC"; then
1758 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1759 echo "${ECHO_T}$ac_ct_CC" >&6
1761 echo "$as_me:$LINENO: result: no" >&5
1762 echo "${ECHO_T}no" >&6
1765 test -n "$ac_ct_CC" && break
1774 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1775 See \`config.log' for more details." >&5
1776 echo "$as_me: error: no acceptable C compiler found in \$PATH
1777 See \`config.log' for more details." >&2;}
1778 { (exit 1); exit 1; }; }
1780 # Provide some information about the compiler.
1781 echo "$as_me:$LINENO:" \
1782 "checking for C compiler version" >&5
1783 ac_compiler=`set X $ac_compile; echo $2`
1784 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1785 (eval $ac_compiler --version </dev/null >&5) 2>&5
1787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1788 (exit $ac_status); }
1789 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1790 (eval $ac_compiler -v </dev/null >&5) 2>&5
1792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1793 (exit $ac_status); }
1794 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1795 (eval $ac_compiler -V </dev/null >&5) 2>&5
1797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1798 (exit $ac_status); }
1800 cat >conftest.$ac_ext <<_ACEOF
1803 cat confdefs.h >>conftest.$ac_ext
1804 cat >>conftest.$ac_ext <<_ACEOF
1805 /* end confdefs.h. */
1815 ac_clean_files_save=$ac_clean_files
1816 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1817 # Try to create an executable without -o first, disregard a.out.
1818 # It will help us diagnose broken compilers, and finding out an intuition
1820 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1821 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1822 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1823 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1824 (eval $ac_link_default) 2>&5
1826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1827 (exit $ac_status); }; then
1828 # Find the output, starting from the most likely. This scheme is
1829 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1832 # Be careful to initialize this variable, since it used to be cached.
1833 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1835 # b.out is created by i960 compilers.
1836 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1838 test -f "$ac_file" || continue
1840 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1843 # This is the source file.
1846 # We found the default executable, but exeext='' is most
1850 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1851 # FIXME: I believe we export ac_cv_exeext for Libtool,
1852 # but it would be cool to find out if it's true. Does anybody
1853 # maintain Libtool? --akim.
1861 echo "$as_me: failed program was:" >&5
1862 sed 's/^/| /' conftest.$ac_ext >&5
1864 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1865 See \`config.log' for more details." >&5
1866 echo "$as_me: error: C compiler cannot create executables
1867 See \`config.log' for more details." >&2;}
1868 { (exit 77); exit 77; }; }
1871 ac_exeext=$ac_cv_exeext
1872 echo "$as_me:$LINENO: result: $ac_file" >&5
1873 echo "${ECHO_T}$ac_file" >&6
1875 # Check the compiler produces executables we can run. If not, either
1876 # the compiler is broken, or we cross compile.
1877 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1878 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1879 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1880 # If not cross compiling, check that we can run a simple program.
1881 if test "$cross_compiling" != yes; then
1882 if { ac_try='./$ac_file'
1883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1887 (exit $ac_status); }; }; then
1890 if test "$cross_compiling" = maybe; then
1893 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1894 If you meant to cross compile, use \`--host'.
1895 See \`config.log' for more details." >&5
1896 echo "$as_me: error: cannot run C compiled programs.
1897 If you meant to cross compile, use \`--host'.
1898 See \`config.log' for more details." >&2;}
1899 { (exit 1); exit 1; }; }
1903 echo "$as_me:$LINENO: result: yes" >&5
1904 echo "${ECHO_T}yes" >&6
1906 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1907 ac_clean_files=$ac_clean_files_save
1908 # Check the compiler produces executables we can run. If not, either
1909 # the compiler is broken, or we cross compile.
1910 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1911 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1912 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1913 echo "${ECHO_T}$cross_compiling" >&6
1915 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1916 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1918 (eval $ac_link) 2>&5
1920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1921 (exit $ac_status); }; then
1922 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1923 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1924 # work properly (i.e., refer to `conftest.exe'), while it won't with
1926 for ac_file in conftest.exe conftest conftest.*; do
1927 test -f "$ac_file" || continue
1929 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1930 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1937 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1938 See \`config.log' for more details." >&5
1939 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1940 See \`config.log' for more details." >&2;}
1941 { (exit 1); exit 1; }; }
1944 rm -f conftest$ac_cv_exeext
1945 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1946 echo "${ECHO_T}$ac_cv_exeext" >&6
1948 rm -f conftest.$ac_ext
1949 EXEEXT=$ac_cv_exeext
1951 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1952 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1953 if test "${ac_cv_objext+set}" = set; then
1954 echo $ECHO_N "(cached) $ECHO_C" >&6
1956 cat >conftest.$ac_ext <<_ACEOF
1959 cat confdefs.h >>conftest.$ac_ext
1960 cat >>conftest.$ac_ext <<_ACEOF
1961 /* end confdefs.h. */
1971 rm -f conftest.o conftest.obj
1972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1973 (eval $ac_compile) 2>&5
1975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1976 (exit $ac_status); }; then
1977 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1979 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1980 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1985 echo "$as_me: failed program was:" >&5
1986 sed 's/^/| /' conftest.$ac_ext >&5
1988 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1989 See \`config.log' for more details." >&5
1990 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1991 See \`config.log' for more details." >&2;}
1992 { (exit 1); exit 1; }; }
1995 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1997 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1998 echo "${ECHO_T}$ac_cv_objext" >&6
1999 OBJEXT=$ac_cv_objext
2001 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2002 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2003 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2004 echo $ECHO_N "(cached) $ECHO_C" >&6
2006 cat >conftest.$ac_ext <<_ACEOF
2009 cat confdefs.h >>conftest.$ac_ext
2010 cat >>conftest.$ac_ext <<_ACEOF
2011 /* end confdefs.h. */
2024 rm -f conftest.$ac_objext
2025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2026 (eval $ac_compile) 2>conftest.er1
2028 grep -v '^ *+' conftest.er1 >conftest.err
2030 cat conftest.err >&5
2031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032 (exit $ac_status); } &&
2033 { ac_try='test -z "$ac_c_werror_flag"
2034 || test ! -s conftest.err'
2035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2039 (exit $ac_status); }; } &&
2040 { ac_try='test -s conftest.$ac_objext'
2041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045 (exit $ac_status); }; }; then
2048 echo "$as_me: failed program was:" >&5
2049 sed 's/^/| /' conftest.$ac_ext >&5
2053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2054 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2057 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2058 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2059 GCC=`test $ac_compiler_gnu = yes && echo yes`
2060 ac_test_CFLAGS=${CFLAGS+set}
2061 ac_save_CFLAGS=$CFLAGS
2063 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2064 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2065 if test "${ac_cv_prog_cc_g+set}" = set; then
2066 echo $ECHO_N "(cached) $ECHO_C" >&6
2068 cat >conftest.$ac_ext <<_ACEOF
2071 cat confdefs.h >>conftest.$ac_ext
2072 cat >>conftest.$ac_ext <<_ACEOF
2073 /* end confdefs.h. */
2083 rm -f conftest.$ac_objext
2084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2085 (eval $ac_compile) 2>conftest.er1
2087 grep -v '^ *+' conftest.er1 >conftest.err
2089 cat conftest.err >&5
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); } &&
2092 { ac_try='test -z "$ac_c_werror_flag"
2093 || test ! -s conftest.err'
2094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098 (exit $ac_status); }; } &&
2099 { ac_try='test -s conftest.$ac_objext'
2100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }; }; then
2107 echo "$as_me: failed program was:" >&5
2108 sed 's/^/| /' conftest.$ac_ext >&5
2112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2114 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2115 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2116 if test "$ac_test_CFLAGS" = set; then
2117 CFLAGS=$ac_save_CFLAGS
2118 elif test $ac_cv_prog_cc_g = yes; then
2119 if test "$GCC" = yes; then
2125 if test "$GCC" = yes; then
2131 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2132 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2133 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2136 ac_cv_prog_cc_stdc=no
2138 cat >conftest.$ac_ext <<_ACEOF
2141 cat confdefs.h >>conftest.$ac_ext
2142 cat >>conftest.$ac_ext <<_ACEOF
2143 /* end confdefs.h. */
2146 #include <sys/types.h>
2147 #include <sys/stat.h>
2148 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2149 struct buf { int x; };
2150 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2151 static char *e (p, i)
2157 static char *f (char * (*g) (char **, int), char **p, ...)
2162 s = g (p, va_arg (v,int));
2167 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2168 function prototypes and stuff, but not '\xHH' hex character constants.
2169 These don't provoke an error unfortunately, instead are silently treated
2170 as 'x'. The following induces an error, until -std1 is added to get
2171 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2172 array size at least. It's necessary to write '\x00'==0 to get something
2173 that's true only with -std1. */
2174 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2176 int test (int i, double x);
2177 struct s1 {int (*f) (int a);};
2178 struct s2 {int (*f) (double a);};
2179 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2185 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2190 # Don't try gcc -ansi; that turns off useful extensions and
2191 # breaks some systems' header files.
2192 # AIX -qlanglvl=ansi
2193 # Ultrix and OSF/1 -std1
2194 # HP-UX 10.20 and later -Ae
2195 # HP-UX older versions -Aa -D_HPUX_SOURCE
2196 # SVR4 -Xc -D__EXTENSIONS__
2197 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2199 CC="$ac_save_CC $ac_arg"
2200 rm -f conftest.$ac_objext
2201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2202 (eval $ac_compile) 2>conftest.er1
2204 grep -v '^ *+' conftest.er1 >conftest.err
2206 cat conftest.err >&5
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); } &&
2209 { ac_try='test -z "$ac_c_werror_flag"
2210 || test ! -s conftest.err'
2211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 (exit $ac_status); }; } &&
2216 { ac_try='test -s conftest.$ac_objext'
2217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221 (exit $ac_status); }; }; then
2222 ac_cv_prog_cc_stdc=$ac_arg
2225 echo "$as_me: failed program was:" >&5
2226 sed 's/^/| /' conftest.$ac_ext >&5
2229 rm -f conftest.err conftest.$ac_objext
2231 rm -f conftest.$ac_ext conftest.$ac_objext
2236 case "x$ac_cv_prog_cc_stdc" in
2238 echo "$as_me:$LINENO: result: none needed" >&5
2239 echo "${ECHO_T}none needed" >&6 ;;
2241 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2242 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2243 CC="$CC $ac_cv_prog_cc_stdc" ;;
2246 # Some people use a C++ compiler to compile C. Since we use `exit',
2247 # in C++ we need to declare it. In case someone uses the same compiler
2248 # for both compiling C and C++ we need to have the C++ compiler decide
2249 # the declaration of exit, since it's the most demanding environment.
2250 cat >conftest.$ac_ext <<_ACEOF
2255 rm -f conftest.$ac_objext
2256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2257 (eval $ac_compile) 2>conftest.er1
2259 grep -v '^ *+' conftest.er1 >conftest.err
2261 cat conftest.err >&5
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); } &&
2264 { ac_try='test -z "$ac_c_werror_flag"
2265 || test ! -s conftest.err'
2266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); }; } &&
2271 { ac_try='test -s conftest.$ac_objext'
2272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); }; }; then
2277 for ac_declaration in \
2279 'extern "C" void std::exit (int) throw (); using std::exit;' \
2280 'extern "C" void std::exit (int); using std::exit;' \
2281 'extern "C" void exit (int) throw ();' \
2282 'extern "C" void exit (int);' \
2285 cat >conftest.$ac_ext <<_ACEOF
2288 cat confdefs.h >>conftest.$ac_ext
2289 cat >>conftest.$ac_ext <<_ACEOF
2290 /* end confdefs.h. */
2301 rm -f conftest.$ac_objext
2302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2303 (eval $ac_compile) 2>conftest.er1
2305 grep -v '^ *+' conftest.er1 >conftest.err
2307 cat conftest.err >&5
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); } &&
2310 { ac_try='test -z "$ac_c_werror_flag"
2311 || test ! -s conftest.err'
2312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316 (exit $ac_status); }; } &&
2317 { ac_try='test -s conftest.$ac_objext'
2318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; }; then
2325 echo "$as_me: failed program was:" >&5
2326 sed 's/^/| /' conftest.$ac_ext >&5
2330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2331 cat >conftest.$ac_ext <<_ACEOF
2334 cat confdefs.h >>conftest.$ac_ext
2335 cat >>conftest.$ac_ext <<_ACEOF
2336 /* end confdefs.h. */
2346 rm -f conftest.$ac_objext
2347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2348 (eval $ac_compile) 2>conftest.er1
2350 grep -v '^ *+' conftest.er1 >conftest.err
2352 cat conftest.err >&5
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); } &&
2355 { ac_try='test -z "$ac_c_werror_flag"
2356 || test ! -s conftest.err'
2357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 (exit $ac_status); }; } &&
2362 { ac_try='test -s conftest.$ac_objext'
2363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367 (exit $ac_status); }; }; then
2370 echo "$as_me: failed program was:" >&5
2371 sed 's/^/| /' conftest.$ac_ext >&5
2374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2377 if test -n "$ac_declaration"; then
2378 echo '#ifdef __cplusplus' >>confdefs.h
2379 echo $ac_declaration >>confdefs.h
2380 echo '#endif' >>confdefs.h
2384 echo "$as_me: failed program was:" >&5
2385 sed 's/^/| /' conftest.$ac_ext >&5
2388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2390 ac_cpp='$CPP $CPPFLAGS'
2391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2396 ac_cpp='$CXXCPP $CPPFLAGS'
2397 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2398 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2399 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2400 if test -n "$ac_tool_prefix"; then
2401 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2403 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2404 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2405 echo "$as_me:$LINENO: checking for $ac_word" >&5
2406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2407 if test "${ac_cv_prog_CXX+set}" = set; then
2408 echo $ECHO_N "(cached) $ECHO_C" >&6
2410 if test -n "$CXX"; then
2411 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2417 test -z "$as_dir" && as_dir=.
2418 for ac_exec_ext in '' $ac_executable_extensions; do
2419 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2420 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2430 if test -n "$CXX"; then
2431 echo "$as_me:$LINENO: result: $CXX" >&5
2432 echo "${ECHO_T}$CXX" >&6
2434 echo "$as_me:$LINENO: result: no" >&5
2435 echo "${ECHO_T}no" >&6
2438 test -n "$CXX" && break
2441 if test -z "$CXX"; then
2443 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2445 # Extract the first word of "$ac_prog", so it can be a program name with args.
2446 set dummy $ac_prog; ac_word=$2
2447 echo "$as_me:$LINENO: checking for $ac_word" >&5
2448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2449 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2450 echo $ECHO_N "(cached) $ECHO_C" >&6
2452 if test -n "$ac_ct_CXX"; then
2453 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2459 test -z "$as_dir" && as_dir=.
2460 for ac_exec_ext in '' $ac_executable_extensions; do
2461 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2462 ac_cv_prog_ac_ct_CXX="$ac_prog"
2463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2471 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2472 if test -n "$ac_ct_CXX"; then
2473 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2474 echo "${ECHO_T}$ac_ct_CXX" >&6
2476 echo "$as_me:$LINENO: result: no" >&5
2477 echo "${ECHO_T}no" >&6
2480 test -n "$ac_ct_CXX" && break
2482 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2488 # Provide some information about the compiler.
2489 echo "$as_me:$LINENO:" \
2490 "checking for C++ compiler version" >&5
2491 ac_compiler=`set X $ac_compile; echo $2`
2492 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2493 (eval $ac_compiler --version </dev/null >&5) 2>&5
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); }
2497 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2498 (eval $ac_compiler -v </dev/null >&5) 2>&5
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); }
2502 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2503 (eval $ac_compiler -V </dev/null >&5) 2>&5
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); }
2508 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2509 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2510 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2511 echo $ECHO_N "(cached) $ECHO_C" >&6
2513 cat >conftest.$ac_ext <<_ACEOF
2516 cat confdefs.h >>conftest.$ac_ext
2517 cat >>conftest.$ac_ext <<_ACEOF
2518 /* end confdefs.h. */
2531 rm -f conftest.$ac_objext
2532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2533 (eval $ac_compile) 2>conftest.er1
2535 grep -v '^ *+' conftest.er1 >conftest.err
2537 cat conftest.err >&5
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); } &&
2540 { ac_try='test -z "$ac_cxx_werror_flag"
2541 || test ! -s conftest.err'
2542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); }; } &&
2547 { ac_try='test -s conftest.$ac_objext'
2548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); }; }; then
2555 echo "$as_me: failed program was:" >&5
2556 sed 's/^/| /' conftest.$ac_ext >&5
2560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2561 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2564 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2565 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2566 GXX=`test $ac_compiler_gnu = yes && echo yes`
2567 ac_test_CXXFLAGS=${CXXFLAGS+set}
2568 ac_save_CXXFLAGS=$CXXFLAGS
2570 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2571 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2572 if test "${ac_cv_prog_cxx_g+set}" = set; then
2573 echo $ECHO_N "(cached) $ECHO_C" >&6
2575 cat >conftest.$ac_ext <<_ACEOF
2578 cat confdefs.h >>conftest.$ac_ext
2579 cat >>conftest.$ac_ext <<_ACEOF
2580 /* end confdefs.h. */
2590 rm -f conftest.$ac_objext
2591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2592 (eval $ac_compile) 2>conftest.er1
2594 grep -v '^ *+' conftest.er1 >conftest.err
2596 cat conftest.err >&5
2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); } &&
2599 { ac_try='test -z "$ac_cxx_werror_flag"
2600 || test ! -s conftest.err'
2601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }; } &&
2606 { ac_try='test -s conftest.$ac_objext'
2607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); }; }; then
2612 ac_cv_prog_cxx_g=yes
2614 echo "$as_me: failed program was:" >&5
2615 sed 's/^/| /' conftest.$ac_ext >&5
2619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2621 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2622 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2623 if test "$ac_test_CXXFLAGS" = set; then
2624 CXXFLAGS=$ac_save_CXXFLAGS
2625 elif test $ac_cv_prog_cxx_g = yes; then
2626 if test "$GXX" = yes; then
2632 if test "$GXX" = yes; then
2638 for ac_declaration in \
2640 'extern "C" void std::exit (int) throw (); using std::exit;' \
2641 'extern "C" void std::exit (int); using std::exit;' \
2642 'extern "C" void exit (int) throw ();' \
2643 'extern "C" void exit (int);' \
2646 cat >conftest.$ac_ext <<_ACEOF
2649 cat confdefs.h >>conftest.$ac_ext
2650 cat >>conftest.$ac_ext <<_ACEOF
2651 /* end confdefs.h. */
2662 rm -f conftest.$ac_objext
2663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2664 (eval $ac_compile) 2>conftest.er1
2666 grep -v '^ *+' conftest.er1 >conftest.err
2668 cat conftest.err >&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); } &&
2671 { ac_try='test -z "$ac_cxx_werror_flag"
2672 || test ! -s conftest.err'
2673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); }; } &&
2678 { ac_try='test -s conftest.$ac_objext'
2679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); }; }; then
2686 echo "$as_me: failed program was:" >&5
2687 sed 's/^/| /' conftest.$ac_ext >&5
2691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2692 cat >conftest.$ac_ext <<_ACEOF
2695 cat confdefs.h >>conftest.$ac_ext
2696 cat >>conftest.$ac_ext <<_ACEOF
2697 /* end confdefs.h. */
2707 rm -f conftest.$ac_objext
2708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2709 (eval $ac_compile) 2>conftest.er1
2711 grep -v '^ *+' conftest.er1 >conftest.err
2713 cat conftest.err >&5
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); } &&
2716 { ac_try='test -z "$ac_cxx_werror_flag"
2717 || test ! -s conftest.err'
2718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); }; } &&
2723 { ac_try='test -s conftest.$ac_objext'
2724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); }; }; then
2731 echo "$as_me: failed program was:" >&5
2732 sed 's/^/| /' conftest.$ac_ext >&5
2735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2738 if test -n "$ac_declaration"; then
2739 echo '#ifdef __cplusplus' >>confdefs.h
2740 echo $ac_declaration >>confdefs.h
2741 echo '#endif' >>confdefs.h
2745 ac_cpp='$CPP $CPPFLAGS'
2746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2751 ac_cpp='$CPP $CPPFLAGS'
2752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2755 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2756 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2757 # On Suns, sometimes $CPP names a directory.
2758 if test -n "$CPP" && test -d "$CPP"; then
2761 if test -z "$CPP"; then
2762 if test "${ac_cv_prog_CPP+set}" = set; then
2763 echo $ECHO_N "(cached) $ECHO_C" >&6
2765 # Double quotes because CPP needs to be expanded
2766 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2769 for ac_c_preproc_warn_flag in '' yes
2771 # Use a header file that comes with gcc, so configuring glibc
2772 # with a fresh cross-compiler works.
2773 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2774 # <limits.h> exists even on freestanding compilers.
2775 # On the NeXT, cc -E runs the code through the compiler's parser,
2776 # not just through cpp. "Syntax error" is here to catch this case.
2777 cat >conftest.$ac_ext <<_ACEOF
2780 cat confdefs.h >>conftest.$ac_ext
2781 cat >>conftest.$ac_ext <<_ACEOF
2782 /* end confdefs.h. */
2784 # include <limits.h>
2786 # include <assert.h>
2790 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2791 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2793 grep -v '^ *+' conftest.er1 >conftest.err
2795 cat conftest.err >&5
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); } >/dev/null; then
2798 if test -s conftest.err; then
2799 ac_cpp_err=$ac_c_preproc_warn_flag
2800 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2807 if test -z "$ac_cpp_err"; then
2810 echo "$as_me: failed program was:" >&5
2811 sed 's/^/| /' conftest.$ac_ext >&5
2813 # Broken: fails on valid input.
2816 rm -f conftest.err conftest.$ac_ext
2818 # OK, works on sane cases. Now check whether non-existent headers
2819 # can be detected and how.
2820 cat >conftest.$ac_ext <<_ACEOF
2823 cat confdefs.h >>conftest.$ac_ext
2824 cat >>conftest.$ac_ext <<_ACEOF
2825 /* end confdefs.h. */
2826 #include <ac_nonexistent.h>
2828 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2829 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2831 grep -v '^ *+' conftest.er1 >conftest.err
2833 cat conftest.err >&5
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); } >/dev/null; then
2836 if test -s conftest.err; then
2837 ac_cpp_err=$ac_c_preproc_warn_flag
2838 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2845 if test -z "$ac_cpp_err"; then
2846 # Broken: success on invalid input.
2849 echo "$as_me: failed program was:" >&5
2850 sed 's/^/| /' conftest.$ac_ext >&5
2852 # Passes both tests.
2856 rm -f conftest.err conftest.$ac_ext
2859 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2860 rm -f conftest.err conftest.$ac_ext
2861 if $ac_preproc_ok; then
2873 echo "$as_me:$LINENO: result: $CPP" >&5
2874 echo "${ECHO_T}$CPP" >&6
2876 for ac_c_preproc_warn_flag in '' yes
2878 # Use a header file that comes with gcc, so configuring glibc
2879 # with a fresh cross-compiler works.
2880 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2881 # <limits.h> exists even on freestanding compilers.
2882 # On the NeXT, cc -E runs the code through the compiler's parser,
2883 # not just through cpp. "Syntax error" is here to catch this case.
2884 cat >conftest.$ac_ext <<_ACEOF
2887 cat confdefs.h >>conftest.$ac_ext
2888 cat >>conftest.$ac_ext <<_ACEOF
2889 /* end confdefs.h. */
2891 # include <limits.h>
2893 # include <assert.h>
2897 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2898 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2900 grep -v '^ *+' conftest.er1 >conftest.err
2902 cat conftest.err >&5
2903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); } >/dev/null; then
2905 if test -s conftest.err; then
2906 ac_cpp_err=$ac_c_preproc_warn_flag
2907 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2914 if test -z "$ac_cpp_err"; then
2917 echo "$as_me: failed program was:" >&5
2918 sed 's/^/| /' conftest.$ac_ext >&5
2920 # Broken: fails on valid input.
2923 rm -f conftest.err conftest.$ac_ext
2925 # OK, works on sane cases. Now check whether non-existent headers
2926 # can be detected and how.
2927 cat >conftest.$ac_ext <<_ACEOF
2930 cat confdefs.h >>conftest.$ac_ext
2931 cat >>conftest.$ac_ext <<_ACEOF
2932 /* end confdefs.h. */
2933 #include <ac_nonexistent.h>
2935 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2936 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2938 grep -v '^ *+' conftest.er1 >conftest.err
2940 cat conftest.err >&5
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); } >/dev/null; then
2943 if test -s conftest.err; then
2944 ac_cpp_err=$ac_c_preproc_warn_flag
2945 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2952 if test -z "$ac_cpp_err"; then
2953 # Broken: success on invalid input.
2956 echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2959 # Passes both tests.
2963 rm -f conftest.err conftest.$ac_ext
2966 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2967 rm -f conftest.err conftest.$ac_ext
2968 if $ac_preproc_ok; then
2971 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2972 See \`config.log' for more details." >&5
2973 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2974 See \`config.log' for more details." >&2;}
2975 { (exit 1); exit 1; }; }
2979 ac_cpp='$CPP $CPPFLAGS'
2980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2984 # Find a good install program. We prefer a C program (faster),
2985 # so one script is as good as another. But avoid the broken or
2986 # incompatible versions:
2987 # SysV /etc/install, /usr/sbin/install
2988 # SunOS /usr/etc/install
2989 # IRIX /sbin/install
2991 # AmigaOS /C/install, which installs bootblocks on floppy discs
2992 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2993 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2994 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2995 # OS/2's system install, which has a completely different semantic
2996 # ./install, which can be erroneously created by make from ./install.sh.
2997 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2998 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2999 if test -z "$INSTALL"; then
3000 if test "${ac_cv_path_install+set}" = set; then
3001 echo $ECHO_N "(cached) $ECHO_C" >&6
3003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007 test -z "$as_dir" && as_dir=.
3008 # Account for people who put trailing slashes in PATH elements.
3010 ./ | .// | /cC/* | \
3011 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3012 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3015 # OSF1 and SCO ODT 3.0 have their own names for install.
3016 # Don't use installbsd from OSF since it installs stuff as root
3018 for ac_prog in ginstall scoinst install; do
3019 for ac_exec_ext in '' $ac_executable_extensions; do
3020 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3021 if test $ac_prog = install &&
3022 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3023 # AIX install. It has an incompatible calling convention.
3025 elif test $ac_prog = install &&
3026 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3027 # program-specific install script used by HP pwplus--don't use.
3030 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3042 if test "${ac_cv_path_install+set}" = set; then
3043 INSTALL=$ac_cv_path_install
3045 # As a last resort, use the slow shell script. We don't cache a
3046 # path for INSTALL within a source directory, because that will
3047 # break other packages using the cache if that directory is
3048 # removed, or if the path is relative.
3049 INSTALL=$ac_install_sh
3052 echo "$as_me:$LINENO: result: $INSTALL" >&5
3053 echo "${ECHO_T}$INSTALL" >&6
3055 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3056 # It thinks the first close brace ends the variable substitution.
3057 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3059 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3061 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3066 echo "$as_me:$LINENO: checking for egrep" >&5
3067 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3068 if test "${ac_cv_prog_egrep+set}" = set; then
3069 echo $ECHO_N "(cached) $ECHO_C" >&6
3071 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3072 then ac_cv_prog_egrep='grep -E'
3073 else ac_cv_prog_egrep='egrep'
3076 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3077 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3078 EGREP=$ac_cv_prog_egrep
3082 echo "$as_me:$LINENO: checking for AIX" >&5
3083 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3084 cat >conftest.$ac_ext <<_ACEOF
3087 cat confdefs.h >>conftest.$ac_ext
3088 cat >>conftest.$ac_ext <<_ACEOF
3089 /* end confdefs.h. */
3095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3096 $EGREP "yes" >/dev/null 2>&1; then
3097 echo "$as_me:$LINENO: result: yes" >&5
3098 echo "${ECHO_T}yes" >&6
3099 cat >>confdefs.h <<\_ACEOF
3100 #define _ALL_SOURCE 1
3104 echo "$as_me:$LINENO: result: no" >&5
3105 echo "${ECHO_T}no" >&6
3110 echo "$as_me:$LINENO: checking for library containing strerror" >&5
3111 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
3112 if test "${ac_cv_search_strerror+set}" = set; then
3113 echo $ECHO_N "(cached) $ECHO_C" >&6
3115 ac_func_search_save_LIBS=$LIBS
3116 ac_cv_search_strerror=no
3117 cat >conftest.$ac_ext <<_ACEOF
3120 cat confdefs.h >>conftest.$ac_ext
3121 cat >>conftest.$ac_ext <<_ACEOF
3122 /* end confdefs.h. */
3124 /* Override any gcc2 internal prototype to avoid an error. */
3128 /* We use char because int might match the return type of a gcc2
3129 builtin and then its argument prototype would still apply. */
3139 rm -f conftest.$ac_objext conftest$ac_exeext
3140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3141 (eval $ac_link) 2>conftest.er1
3143 grep -v '^ *+' conftest.er1 >conftest.err
3145 cat conftest.err >&5
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); } &&
3148 { ac_try='test -z "$ac_c_werror_flag"
3149 || test ! -s conftest.err'
3150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); }; } &&
3155 { ac_try='test -s conftest$ac_exeext'
3156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); }; }; then
3161 ac_cv_search_strerror="none required"
3163 echo "$as_me: failed program was:" >&5
3164 sed 's/^/| /' conftest.$ac_ext >&5
3167 rm -f conftest.err conftest.$ac_objext \
3168 conftest$ac_exeext conftest.$ac_ext
3169 if test "$ac_cv_search_strerror" = no; then
3170 for ac_lib in cposix; do
3171 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3172 cat >conftest.$ac_ext <<_ACEOF
3175 cat confdefs.h >>conftest.$ac_ext
3176 cat >>conftest.$ac_ext <<_ACEOF
3177 /* end confdefs.h. */
3179 /* Override any gcc2 internal prototype to avoid an error. */
3183 /* We use char because int might match the return type of a gcc2
3184 builtin and then its argument prototype would still apply. */
3194 rm -f conftest.$ac_objext conftest$ac_exeext
3195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3196 (eval $ac_link) 2>conftest.er1
3198 grep -v '^ *+' conftest.er1 >conftest.err
3200 cat conftest.err >&5
3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202 (exit $ac_status); } &&
3203 { ac_try='test -z "$ac_c_werror_flag"
3204 || test ! -s conftest.err'
3205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); }; } &&
3210 { ac_try='test -s conftest$ac_exeext'
3211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215 (exit $ac_status); }; }; then
3216 ac_cv_search_strerror="-l$ac_lib"
3219 echo "$as_me: failed program was:" >&5
3220 sed 's/^/| /' conftest.$ac_ext >&5
3223 rm -f conftest.err conftest.$ac_objext \
3224 conftest$ac_exeext conftest.$ac_ext
3227 LIBS=$ac_func_search_save_LIBS
3229 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3230 echo "${ECHO_T}$ac_cv_search_strerror" >&6
3231 if test "$ac_cv_search_strerror" != no; then
3232 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3237 ac_cpp='$CXXCPP $CPPFLAGS'
3238 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3239 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3240 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3243 if test x$GCC = xyes && test x$GXX = xyes; then
3244 echo "$as_me:$LINENO: checking for working libsupc++" >&5
3245 echo $ECHO_N "checking for working libsupc++... $ECHO_C" >&6
3249 LIBS="$LIBS -lsupc++"
3252 cat >conftest.$ac_ext <<_ACEOF
3255 cat confdefs.h >>conftest.$ac_ext
3256 cat >>conftest.$ac_ext <<_ACEOF
3257 /* end confdefs.h. */
3258 struct test { }; void f() try { throw new test; } catch (...) { throw; }
3267 rm -f conftest.$ac_objext conftest$ac_exeext
3268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3269 (eval $ac_link) 2>conftest.er1
3271 grep -v '^ *+' conftest.er1 >conftest.err
3273 cat conftest.err >&5
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); } &&
3276 { ac_try='test -z "$ac_cxx_werror_flag"
3277 || test ! -s conftest.err'
3278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); }; } &&
3283 { ac_try='test -s conftest$ac_exeext'
3284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); }; }; then
3290 echo "$as_me:$LINENO: result: ok" >&5
3291 echo "${ECHO_T}ok" >&6
3295 echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3299 echo "$as_me:$LINENO: result: no, making everything bigger and slower" >&5
3300 echo "${ECHO_T}no, making everything bigger and slower" >&6
3306 rm -f conftest.err conftest.$ac_objext \
3307 conftest$ac_exeext conftest.$ac_ext
3314 if test -z "$orig_CXXFLAGS"; then
3315 if test x$GCC = xyes && test "x$GXX" = xyes; then
3316 CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs"
3317 cat >conftest.$ac_ext <<_ACEOF
3320 cat confdefs.h >>conftest.$ac_ext
3321 cat >>conftest.$ac_ext <<_ACEOF
3322 /* end confdefs.h. */
3332 rm -f conftest.$ac_objext
3333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3334 (eval $ac_compile) 2>conftest.er1
3336 grep -v '^ *+' conftest.er1 >conftest.err
3338 cat conftest.err >&5
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); } &&
3341 { ac_try='test -z "$ac_cxx_werror_flag"
3342 || test ! -s conftest.err'
3343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); }; } &&
3348 { ac_try='test -s conftest.$ac_objext'
3349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); }; }; then
3356 echo "$as_me: failed program was:" >&5
3357 sed 's/^/| /' conftest.$ac_ext >&5
3361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3369 cat >>confdefs.h <<\_ACEOF
3370 #define _GNU_SOURCE 1
3377 cat >>confdefs.h <<\_ACEOF
3378 #define _XOPEN_SOURCE_EXTENDED 1
3382 cat >>confdefs.h <<\_ACEOF
3383 #define _XOPEN_SOURCE 2
3387 cat >>confdefs.h <<\_ACEOF
3388 #define __EXTENSIONS__ 1
3395 echo "$as_me:$LINENO: checking for setlocale" >&5
3396 echo $ECHO_N "checking for setlocale... $ECHO_C" >&6
3397 if test "${ac_cv_func_setlocale+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
3400 cat >conftest.$ac_ext <<_ACEOF
3403 cat confdefs.h >>conftest.$ac_ext
3404 cat >>conftest.$ac_ext <<_ACEOF
3405 /* end confdefs.h. */
3406 /* Define setlocale to an innocuous variant, in case <limits.h> declares setlocale.
3407 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3408 #define setlocale innocuous_setlocale
3410 /* System header to define __stub macros and hopefully few prototypes,
3411 which can conflict with char setlocale (); below.
3412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3413 <limits.h> exists even on freestanding compilers. */
3416 # include <limits.h>
3418 # include <assert.h>
3423 /* Override any gcc2 internal prototype to avoid an error. */
3428 /* We use char because int might match the return type of a gcc2
3429 builtin and then its argument prototype would still apply. */
3431 /* The GNU C library defines this for functions which it implements
3432 to always fail with ENOSYS. Some functions are actually named
3433 something starting with __ and the normal name is an alias. */
3434 #if defined (__stub_setlocale) || defined (__stub___setlocale)
3437 char (*f) () = setlocale;
3446 return f != setlocale;
3451 rm -f conftest.$ac_objext conftest$ac_exeext
3452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3453 (eval $ac_link) 2>conftest.er1
3455 grep -v '^ *+' conftest.er1 >conftest.err
3457 cat conftest.err >&5
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); } &&
3460 { ac_try='test -z "$ac_cxx_werror_flag"
3461 || test ! -s conftest.err'
3462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); }; } &&
3467 { ac_try='test -s conftest$ac_exeext'
3468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); }; }; then
3473 ac_cv_func_setlocale=yes
3475 echo "$as_me: failed program was:" >&5
3476 sed 's/^/| /' conftest.$ac_ext >&5
3478 ac_cv_func_setlocale=no
3480 rm -f conftest.err conftest.$ac_objext \
3481 conftest$ac_exeext conftest.$ac_ext
3483 echo "$as_me:$LINENO: result: $ac_cv_func_setlocale" >&5
3484 echo "${ECHO_T}$ac_cv_func_setlocale" >&6
3485 if test $ac_cv_func_setlocale = yes; then
3488 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
3489 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
3490 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
3491 echo $ECHO_N "(cached) $ECHO_C" >&6
3493 ac_check_lib_save_LIBS=$LIBS
3495 cat >conftest.$ac_ext <<_ACEOF
3498 cat confdefs.h >>conftest.$ac_ext
3499 cat >>conftest.$ac_ext <<_ACEOF
3500 /* end confdefs.h. */
3502 /* Override any gcc2 internal prototype to avoid an error. */
3506 /* We use char because int might match the return type of a gcc2
3507 builtin and then its argument prototype would still apply. */
3517 rm -f conftest.$ac_objext conftest$ac_exeext
3518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3519 (eval $ac_link) 2>conftest.er1
3521 grep -v '^ *+' conftest.er1 >conftest.err
3523 cat conftest.err >&5
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); } &&
3526 { ac_try='test -z "$ac_cxx_werror_flag"
3527 || test ! -s conftest.err'
3528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); }; } &&
3533 { ac_try='test -s conftest$ac_exeext'
3534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); }; }; then
3539 ac_cv_lib_xpg4_setlocale=yes
3541 echo "$as_me: failed program was:" >&5
3542 sed 's/^/| /' conftest.$ac_ext >&5
3544 ac_cv_lib_xpg4_setlocale=no
3546 rm -f conftest.err conftest.$ac_objext \
3547 conftest$ac_exeext conftest.$ac_ext
3548 LIBS=$ac_check_lib_save_LIBS
3550 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
3551 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
3552 if test $ac_cv_lib_xpg4_setlocale = yes; then
3559 echo "$as_me:$LINENO: checking for gethostbyname" >&5
3560 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3561 if test "${ac_cv_func_gethostbyname+set}" = set; then
3562 echo $ECHO_N "(cached) $ECHO_C" >&6
3564 cat >conftest.$ac_ext <<_ACEOF
3567 cat confdefs.h >>conftest.$ac_ext
3568 cat >>conftest.$ac_ext <<_ACEOF
3569 /* end confdefs.h. */
3570 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3572 #define gethostbyname innocuous_gethostbyname
3574 /* System header to define __stub macros and hopefully few prototypes,
3575 which can conflict with char gethostbyname (); below.
3576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3577 <limits.h> exists even on freestanding compilers. */
3580 # include <limits.h>
3582 # include <assert.h>
3585 #undef gethostbyname
3587 /* Override any gcc2 internal prototype to avoid an error. */
3592 /* We use char because int might match the return type of a gcc2
3593 builtin and then its argument prototype would still apply. */
3594 char gethostbyname ();
3595 /* The GNU C library defines this for functions which it implements
3596 to always fail with ENOSYS. Some functions are actually named
3597 something starting with __ and the normal name is an alias. */
3598 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3601 char (*f) () = gethostbyname;
3610 return f != gethostbyname;
3615 rm -f conftest.$ac_objext conftest$ac_exeext
3616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3617 (eval $ac_link) 2>conftest.er1
3619 grep -v '^ *+' conftest.er1 >conftest.err
3621 cat conftest.err >&5
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); } &&
3624 { ac_try='test -z "$ac_cxx_werror_flag"
3625 || test ! -s conftest.err'
3626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); }; } &&
3631 { ac_try='test -s conftest$ac_exeext'
3632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); }; }; then
3637 ac_cv_func_gethostbyname=yes
3639 echo "$as_me: failed program was:" >&5
3640 sed 's/^/| /' conftest.$ac_ext >&5
3642 ac_cv_func_gethostbyname=no
3644 rm -f conftest.err conftest.$ac_objext \
3645 conftest$ac_exeext conftest.$ac_ext
3647 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3648 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3649 if test $ac_cv_func_gethostbyname = yes; then
3652 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3653 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3654 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3657 ac_check_lib_save_LIBS=$LIBS
3659 cat >conftest.$ac_ext <<_ACEOF
3662 cat confdefs.h >>conftest.$ac_ext
3663 cat >>conftest.$ac_ext <<_ACEOF
3664 /* end confdefs.h. */
3666 /* Override any gcc2 internal prototype to avoid an error. */
3670 /* We use char because int might match the return type of a gcc2
3671 builtin and then its argument prototype would still apply. */
3672 char gethostbyname ();
3681 rm -f conftest.$ac_objext conftest$ac_exeext
3682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3683 (eval $ac_link) 2>conftest.er1
3685 grep -v '^ *+' conftest.er1 >conftest.err
3687 cat conftest.err >&5
3688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689 (exit $ac_status); } &&
3690 { ac_try='test -z "$ac_cxx_werror_flag"
3691 || test ! -s conftest.err'
3692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); }; } &&
3697 { ac_try='test -s conftest$ac_exeext'
3698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); }; }; then
3703 ac_cv_lib_nsl_gethostbyname=yes
3705 echo "$as_me: failed program was:" >&5
3706 sed 's/^/| /' conftest.$ac_ext >&5
3708 ac_cv_lib_nsl_gethostbyname=no
3710 rm -f conftest.err conftest.$ac_objext \
3711 conftest$ac_exeext conftest.$ac_ext
3712 LIBS=$ac_check_lib_save_LIBS
3714 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3715 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3716 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3722 echo "$as_me:$LINENO: checking for socket" >&5
3723 echo $ECHO_N "checking for socket... $ECHO_C" >&6
3724 if test "${ac_cv_func_socket+set}" = set; then
3725 echo $ECHO_N "(cached) $ECHO_C" >&6
3727 cat >conftest.$ac_ext <<_ACEOF
3730 cat confdefs.h >>conftest.$ac_ext
3731 cat >>conftest.$ac_ext <<_ACEOF
3732 /* end confdefs.h. */
3733 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
3734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3735 #define socket innocuous_socket
3737 /* System header to define __stub macros and hopefully few prototypes,
3738 which can conflict with char socket (); below.
3739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3740 <limits.h> exists even on freestanding compilers. */
3743 # include <limits.h>
3745 # include <assert.h>
3750 /* Override any gcc2 internal prototype to avoid an error. */
3755 /* We use char because int might match the return type of a gcc2
3756 builtin and then its argument prototype would still apply. */
3758 /* The GNU C library defines this for functions which it implements
3759 to always fail with ENOSYS. Some functions are actually named
3760 something starting with __ and the normal name is an alias. */
3761 #if defined (__stub_socket) || defined (__stub___socket)
3764 char (*f) () = socket;
3778 rm -f conftest.$ac_objext conftest$ac_exeext
3779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3780 (eval $ac_link) 2>conftest.er1
3782 grep -v '^ *+' conftest.er1 >conftest.err
3784 cat conftest.err >&5
3785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786 (exit $ac_status); } &&
3787 { ac_try='test -z "$ac_cxx_werror_flag"
3788 || test ! -s conftest.err'
3789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); }; } &&
3794 { ac_try='test -s conftest$ac_exeext'
3795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); }; }; then
3800 ac_cv_func_socket=yes
3802 echo "$as_me: failed program was:" >&5
3803 sed 's/^/| /' conftest.$ac_ext >&5
3805 ac_cv_func_socket=no
3807 rm -f conftest.err conftest.$ac_objext \
3808 conftest$ac_exeext conftest.$ac_ext
3810 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
3811 echo "${ECHO_T}$ac_cv_func_socket" >&6
3812 if test $ac_cv_func_socket = yes; then
3815 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3816 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3817 if test "${ac_cv_lib_socket_socket+set}" = set; then
3818 echo $ECHO_N "(cached) $ECHO_C" >&6
3820 ac_check_lib_save_LIBS=$LIBS
3821 LIBS="-lsocket $LIBS"
3822 cat >conftest.$ac_ext <<_ACEOF
3825 cat confdefs.h >>conftest.$ac_ext
3826 cat >>conftest.$ac_ext <<_ACEOF
3827 /* end confdefs.h. */
3829 /* Override any gcc2 internal prototype to avoid an error. */
3833 /* We use char because int might match the return type of a gcc2
3834 builtin and then its argument prototype would still apply. */
3844 rm -f conftest.$ac_objext conftest$ac_exeext
3845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3846 (eval $ac_link) 2>conftest.er1
3848 grep -v '^ *+' conftest.er1 >conftest.err
3850 cat conftest.err >&5
3851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852 (exit $ac_status); } &&
3853 { ac_try='test -z "$ac_cxx_werror_flag"
3854 || test ! -s conftest.err'
3855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); }; } &&
3860 { ac_try='test -s conftest$ac_exeext'
3861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }; }; then
3866 ac_cv_lib_socket_socket=yes
3868 echo "$as_me: failed program was:" >&5
3869 sed 's/^/| /' conftest.$ac_ext >&5
3871 ac_cv_lib_socket_socket=no
3873 rm -f conftest.err conftest.$ac_objext \
3874 conftest$ac_exeext conftest.$ac_ext
3875 LIBS=$ac_check_lib_save_LIBS
3877 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3878 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3879 if test $ac_cv_lib_socket_socket = yes; then
3880 LIBS="$LIBS -lsocket"
3888 support_inheritpixmap=yes
3891 support_keepscrolling=yes
3892 support_selectionscrolling=yes
3893 support_mousewheel=yes
3894 support_mouseslipwheel=yes
3895 support_text_blink=yes
3896 support_pointer_blank=yes
3897 support_scroll_rxvt=yes
3898 support_scroll_next=yes
3899 support_scroll_xterm=yes
3900 support_scroll_plain=yes
3903 support_afterimage=yes
3904 support_afterstep=yes
3907 support_combining=yes
3908 support_8bitctrls=no
3909 support_iso14755=yes
3915 if test "x$enable_shared" = xyes; then
3917 cat >>confdefs.h <<\_ACEOF
3925 # Check whether --enable-everything or --disable-everything was given.
3926 if test "${enable_everything+set}" = set; then
3927 enableval="$enable_everything"
3929 if test x$enableval = xno; then
3931 support_inheritpixmap=no
3934 support_keepscrolling=no
3935 support_selectionscrolling=no
3937 support_mousewheel=no
3938 support_mouseslipwheel=no
3939 support_text_blink=no
3940 support_pointer_blank=no
3941 support_scroll_rxvt=no
3942 support_scroll_next=no
3943 support_scroll_xterm=no
3944 support_scroll_plain=no
3949 support_afterimage=no
3950 support_afterstep=no
3953 support_combining=no
3954 support_8bitctrls=no
3960 if test x$enableval = xyes; then
3962 support_inheritpixmap=yes
3965 support_keepscrolling=yes
3966 support_selectionscrolling=yes
3968 support_mousewheel=yes
3969 support_mouseslipwheel=yes
3970 support_text_blink=yes
3971 support_pointer_blank=yes
3972 support_scroll_rxvt=yes
3973 support_scroll_next=yes
3974 support_scroll_xterm=yes
3975 support_scroll_plain=yes
3980 support_afterimage=yes
3981 support_afterstep=yes
3983 support_unicode3=yes
3984 support_combining=yes
3985 #support_8bitctrls=yes
3986 support_iso14755=yes
3994 # Check whether --enable-unicode3 or --disable-unicode3 was given.
3995 if test "${enable_unicode3+set}" = set; then
3996 enableval="$enable_unicode3"
3997 if test x$enableval = xyes -o x$enableval = xno; then
3998 support_unicode3=$enableval
4002 # Check whether --enable-combining or --disable-combining was given.
4003 if test "${enable_combining+set}" = set; then
4004 enableval="$enable_combining"
4005 if test x$enableval = xyes -o x$enableval = xno; then
4006 support_combining=$enableval
4010 # Check whether --enable-xft or --disable-xft was given.
4011 if test "${enable_xft+set}" = set; then
4012 enableval="$enable_xft"
4013 if test x$enableval = xyes -o x$enableval = xno; then
4014 support_xft=$enableval
4018 # Check whether --enable-font-styles or --disable-font-styles was given.
4019 if test "${enable_font_styles+set}" = set; then
4020 enableval="$enable_font_styles"
4021 if test x$enableval = xyes -o x$enableval = xno; then
4022 support_styles=$enableval
4026 # Check whether --enable-xpm-background or --disable-xpm-background was given.
4027 if test "${enable_xpm_background+set}" = set; then
4028 enableval="$enable_xpm_background"
4029 if test x$enableval = xyes -o x$enableval = xno; then
4030 support_xpm=$enableval
4034 # Check whether --enable-afterimage or --disable-afterimage was given.
4035 if test "${enable_afterimage+set}" = set; then
4036 enableval="$enable_afterimage"
4037 if test x$enableval = xyes -o x$enableval = xno; then
4038 support_afterimage=$enableval
4043 # Check whether --with-afterimage_config or --without-afterimage_config was given.
4044 if test "${with_afterimage_config+set}" = set; then
4045 withval="$with_afterimage_config"
4046 if test "x$withval" != x; then
4047 afterimage_config=$withval/afterimage-config
4051 # Check whether --enable-afterstep or --disable-afterstep was given.
4052 if test "${enable_afterstep+set}" = set; then
4053 enableval="$enable_afterstep"
4054 if test x$enableval = xyes -o x$enableval = xno; then
4055 support_afterstep=$enableval
4059 # Check whether --enable-transparency or --disable-transparency was given.
4060 if test "${enable_transparency+set}" = set; then
4061 enableval="$enable_transparency"
4062 if test x$enableval = xyes -o x$enableval = xno; then
4063 support_inheritpixmap=$enableval
4067 # Check whether --enable-tinting or --disable-tinting was given.
4068 if test "${enable_tinting+set}" = set; then
4069 enableval="$enable_tinting"
4070 if test x$enableval = xyes -o x$enableval = xno; then
4071 support_tinting=$enableval
4075 # Check whether --enable-fading or --disable-fading was given.
4076 if test "${enable_fading+set}" = set; then
4077 enableval="$enable_fading"
4078 if test x$enableval = xyes -o x$enableval = xno; then
4079 support_fading=$enableval
4083 # Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given.
4084 if test "${enable_rxvt_scroll+set}" = set; then
4085 enableval="$enable_rxvt_scroll"
4086 if test x$enableval = xyes -o x$enableval = xno; then
4087 support_scroll_rxvt=$enableval
4091 # Check whether --enable-next-scroll or --disable-next-scroll was given.
4092 if test "${enable_next_scroll+set}" = set; then
4093 enableval="$enable_next_scroll"
4094 if test x$enableval = xyes -o x$enableval = xno; then
4095 support_scroll_next=$enableval
4099 # Check whether --enable-xterm-scroll or --disable-xterm-scroll was given.
4100 if test "${enable_xterm_scroll+set}" = set; then
4101 enableval="$enable_xterm_scroll"
4102 if test x$enableval = xyes -o x$enableval = xno; then
4103 support_scroll_xterm=$enableval
4107 # Check whether --enable-perl or --disable-perl was given.
4108 if test "${enable_perl+set}" = set; then
4109 enableval="$enable_perl"
4110 if test x$enableval = xyes -o x$enableval = xno; then
4111 support_perl=$enableval
4115 # Check whether --enable-plain-scroll or --disable-plain-scroll was given.
4116 if test "${enable_plain_scroll+set}" = set; then
4117 enableval="$enable_plain_scroll"
4118 if test x$enableval = xyes -o x$enableval = xno; then
4119 support_scroll_plain=$enableval
4124 # Check whether --with-codesets or --without-codesets was given.
4125 if test "${with_codesets+set}" = set; then
4126 withval="$with_codesets"
4130 # Check whether --enable-xim or --disable-xim was given.
4131 if test "${enable_xim+set}" = set; then
4132 enableval="$enable_xim"
4133 if test x$enableval = xyes -o x$enableval = xno; then
4134 support_xim=$enableval
4138 # Check whether --enable-backspace-key or --disable-backspace-key was given.
4139 if test "${enable_backspace_key+set}" = set; then
4140 enableval="$enable_backspace_key"
4141 if test x$enableval = xno; then
4143 cat >>confdefs.h <<\_ACEOF
4144 #define NO_BACKSPACE_KEY 1
4150 # Check whether --enable-delete-key or --disable-delete-key was given.
4151 if test "${enable_delete_key+set}" = set; then
4152 enableval="$enable_delete_key"
4153 if test x$enableval = xno; then
4155 cat >>confdefs.h <<\_ACEOF
4156 #define NO_DELETE_KEY 1
4162 # Check whether --enable-resources or --disable-resources was given.
4163 if test "${enable_resources+set}" = set; then
4164 enableval="$enable_resources"
4165 if test x$enableval = xno; then
4167 cat >>confdefs.h <<\_ACEOF
4168 #define NO_RESOURCES 1
4174 # Check whether --enable-8bitctrls or --disable-8bitctrls was given.
4175 if test "${enable_8bitctrls+set}" = set; then
4176 enableval="$enable_8bitctrls"
4177 if test x$enableval = xyes -o x$enableval = xno; then
4178 support_8bitctrls=$enableval
4183 # Check whether --enable-fallback or --disable-fallback was given.
4184 if test "${enable_fallback+set}" = set; then
4185 enableval="$enable_fallback"
4187 test x$enableval = xyes && enableval=Rxvt
4188 test x$enableval = xno && enableval=
4189 RESFALLBACK="$enableval"
4193 if test x$RESFALLBACK != x; then
4195 cat >>confdefs.h <<_ACEOF
4196 #define RESFALLBACK "$RESFALLBACK"
4203 # Check whether --with-res-name or --without-res-name was given.
4204 if test "${with_res_name+set}" = set; then
4205 withval="$with_res_name"
4209 cat >>confdefs.h <<_ACEOF
4210 #define RESNAME "$RESNAME"
4216 # Check whether --with-res-class or --without-res-class was given.
4217 if test "${with_res_class+set}" = set; then
4218 withval="$with_res_class"
4222 cat >>confdefs.h <<_ACEOF
4223 #define RESCLASS "$RESCLASS"
4229 # Check whether --with-name or --without-name was given.
4230 if test "${with_name+set}" = set; then
4231 withval="$with_name"
4235 cat >>confdefs.h <<_ACEOF
4236 #define RXVTNAME "$RXVTNAME"
4240 RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
4243 # Check whether --enable-swapscreen or --disable-swapscreen was given.
4244 if test "${enable_swapscreen+set}" = set; then
4245 enableval="$enable_swapscreen"
4246 if test x$enableval = xno; then
4248 cat >>confdefs.h <<\_ACEOF
4249 #define NO_SECONDARY_SCREEN 1
4255 # Check whether --enable-iso14755 or --disable-iso14755 was given.
4256 if test "${enable_iso14755+set}" = set; then
4257 enableval="$enable_iso14755"
4258 if test x$enableval = xyes -o x$enableval = xno; then
4259 support_iso14755=$enableval
4263 # Check whether --enable-frills or --disable-frills was given.
4264 if test "${enable_frills+set}" = set; then
4265 enableval="$enable_frills"
4266 if test x$enableval = xyes -o x$enableval = xno; then
4267 support_frills=$enableval
4271 # Check whether --enable-keepscrolling or --disable-keepscrolling was given.
4272 if test "${enable_keepscrolling+set}" = set; then
4273 enableval="$enable_keepscrolling"
4274 if test x$enableval = xyes -o x$enableval = xno; then
4275 support_keepscrolling=$enableval
4279 # Check whether --enable-selectionscrolling or --disable-selectionscrolling was given.
4280 if test "${enable_selectionscrolling+set}" = set; then
4281 enableval="$enable_selectionscrolling"
4282 if test x$enableval = xyes -o x$enableval = xno; then
4283 support_selectionscrolling=$enableval
4287 # Check whether --enable-mousewheel or --disable-mousewheel was given.
4288 if test "${enable_mousewheel+set}" = set; then
4289 enableval="$enable_mousewheel"
4290 if test x$enableval = xyes -o x$enableval = xno; then
4291 support_mousewheel=$enableval
4295 # Check whether --enable-slipwheeling or --disable-slipwheeling was given.
4296 if test "${enable_slipwheeling+set}" = set; then
4297 enableval="$enable_slipwheeling"
4298 if test x$enableval = xyes -o x$enableval = xno; then
4299 support_mouseslipwheel=$enableval
4303 # Check whether --enable-smart-resize or --disable-smart-resize was given.
4304 if test "${enable_smart_resize+set}" = set; then
4305 enableval="$enable_smart_resize"
4306 if test x$enableval = xyes; then
4308 cat >>confdefs.h <<\_ACEOF
4309 #define SMART_RESIZE 1
4315 # Check whether --enable-text-blink or --disable-text-blink was given.
4316 if test "${enable_text_blink+set}" = set; then
4317 enableval="$enable_text_blink"
4318 if test x$enableval = xyes -o x$enableval = xno; then
4319 support_text_blink=$enableval
4323 # Check whether --enable-pointer-blank or --disable-pointer-blank was given.
4324 if test "${enable_pointer_blank+set}" = set; then
4325 enableval="$enable_pointer_blank"
4326 if test x$enableval = xyes -o x$enableval = xno; then
4327 support_pointer_blank=$enableval
4332 # Check whether --with-term or --without-term was given.
4333 if test "${with_term+set}" = set; then
4334 withval="$with_term"
4335 if test x$withval != x; then
4337 cat >>confdefs.h <<_ACEOF
4338 #define TERMENV "$withval"
4345 # Check whether --with-terminfo or --without-terminfo was given.
4346 if test "${with_terminfo+set}" = set; then
4347 withval="$with_terminfo"
4348 if test x$withval != x; then
4350 cat >>confdefs.h <<_ACEOF
4351 #define RXVT_TERMINFO "$withval"
4358 # Extract the first word of "tic", so it can be a program name with args.
4359 set dummy tic; ac_word=$2
4360 echo "$as_me:$LINENO: checking for $ac_word" >&5
4361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4362 if test "${ac_cv_path_TIC+set}" = set; then
4363 echo $ECHO_N "(cached) $ECHO_C" >&6
4367 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
4370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4374 test -z "$as_dir" && as_dir=.
4375 for ac_exec_ext in '' $ac_executable_extensions; do
4376 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4377 ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext"
4378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4389 if test -n "$TIC"; then
4390 echo "$as_me:$LINENO: result: $TIC" >&5
4391 echo "${ECHO_T}$TIC" >&6
4393 echo "$as_me:$LINENO: result: no" >&5
4394 echo "${ECHO_T}no" >&6
4401 ac_cpp='$CXXCPP $CPPFLAGS'
4402 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4403 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4404 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4405 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4406 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4407 if test -z "$CXXCPP"; then
4408 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4409 echo $ECHO_N "(cached) $ECHO_C" >&6
4411 # Double quotes because CXXCPP needs to be expanded
4412 for CXXCPP in "$CXX -E" "/lib/cpp"
4415 for ac_cxx_preproc_warn_flag in '' yes
4417 # Use a header file that comes with gcc, so configuring glibc
4418 # with a fresh cross-compiler works.
4419 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4420 # <limits.h> exists even on freestanding compilers.
4421 # On the NeXT, cc -E runs the code through the compiler's parser,
4422 # not just through cpp. "Syntax error" is here to catch this case.
4423 cat >conftest.$ac_ext <<_ACEOF
4426 cat confdefs.h >>conftest.$ac_ext
4427 cat >>conftest.$ac_ext <<_ACEOF
4428 /* end confdefs.h. */
4430 # include <limits.h>
4432 # include <assert.h>
4436 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4437 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4439 grep -v '^ *+' conftest.er1 >conftest.err
4441 cat conftest.err >&5
4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443 (exit $ac_status); } >/dev/null; then
4444 if test -s conftest.err; then
4445 ac_cpp_err=$ac_cxx_preproc_warn_flag
4446 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4453 if test -z "$ac_cpp_err"; then
4456 echo "$as_me: failed program was:" >&5
4457 sed 's/^/| /' conftest.$ac_ext >&5
4459 # Broken: fails on valid input.
4462 rm -f conftest.err conftest.$ac_ext
4464 # OK, works on sane cases. Now check whether non-existent headers
4465 # can be detected and how.
4466 cat >conftest.$ac_ext <<_ACEOF
4469 cat confdefs.h >>conftest.$ac_ext
4470 cat >>conftest.$ac_ext <<_ACEOF
4471 /* end confdefs.h. */
4472 #include <ac_nonexistent.h>
4474 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4475 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4477 grep -v '^ *+' conftest.er1 >conftest.err
4479 cat conftest.err >&5
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); } >/dev/null; then
4482 if test -s conftest.err; then
4483 ac_cpp_err=$ac_cxx_preproc_warn_flag
4484 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4491 if test -z "$ac_cpp_err"; then
4492 # Broken: success on invalid input.
4495 echo "$as_me: failed program was:" >&5
4496 sed 's/^/| /' conftest.$ac_ext >&5
4498 # Passes both tests.
4502 rm -f conftest.err conftest.$ac_ext
4505 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4506 rm -f conftest.err conftest.$ac_ext
4507 if $ac_preproc_ok; then
4512 ac_cv_prog_CXXCPP=$CXXCPP
4515 CXXCPP=$ac_cv_prog_CXXCPP
4517 ac_cv_prog_CXXCPP=$CXXCPP
4519 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4520 echo "${ECHO_T}$CXXCPP" >&6
4522 for ac_cxx_preproc_warn_flag in '' yes
4524 # Use a header file that comes with gcc, so configuring glibc
4525 # with a fresh cross-compiler works.
4526 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4527 # <limits.h> exists even on freestanding compilers.
4528 # On the NeXT, cc -E runs the code through the compiler's parser,
4529 # not just through cpp. "Syntax error" is here to catch this case.
4530 cat >conftest.$ac_ext <<_ACEOF
4533 cat confdefs.h >>conftest.$ac_ext
4534 cat >>conftest.$ac_ext <<_ACEOF
4535 /* end confdefs.h. */
4537 # include <limits.h>
4539 # include <assert.h>
4543 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4544 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4546 grep -v '^ *+' conftest.er1 >conftest.err
4548 cat conftest.err >&5
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); } >/dev/null; then
4551 if test -s conftest.err; then
4552 ac_cpp_err=$ac_cxx_preproc_warn_flag
4553 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4560 if test -z "$ac_cpp_err"; then
4563 echo "$as_me: failed program was:" >&5
4564 sed 's/^/| /' conftest.$ac_ext >&5
4566 # Broken: fails on valid input.
4569 rm -f conftest.err conftest.$ac_ext
4571 # OK, works on sane cases. Now check whether non-existent headers
4572 # can be detected and how.
4573 cat >conftest.$ac_ext <<_ACEOF
4576 cat confdefs.h >>conftest.$ac_ext
4577 cat >>conftest.$ac_ext <<_ACEOF
4578 /* end confdefs.h. */
4579 #include <ac_nonexistent.h>
4581 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4582 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4584 grep -v '^ *+' conftest.er1 >conftest.err
4586 cat conftest.err >&5
4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); } >/dev/null; then
4589 if test -s conftest.err; then
4590 ac_cpp_err=$ac_cxx_preproc_warn_flag
4591 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4598 if test -z "$ac_cpp_err"; then
4599 # Broken: success on invalid input.
4602 echo "$as_me: failed program was:" >&5
4603 sed 's/^/| /' conftest.$ac_ext >&5
4605 # Passes both tests.
4609 rm -f conftest.err conftest.$ac_ext
4612 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4613 rm -f conftest.err conftest.$ac_ext
4614 if $ac_preproc_ok; then
4617 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4618 See \`config.log' for more details." >&5
4619 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4620 See \`config.log' for more details." >&2;}
4621 { (exit 1); exit 1; }; }
4625 ac_cpp='$CXXCPP $CPPFLAGS'
4626 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4627 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4628 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4631 echo "$as_me:$LINENO: checking for X" >&5
4632 echo $ECHO_N "checking for X... $ECHO_C" >&6
4635 # Check whether --with-x or --without-x was given.
4636 if test "${with_x+set}" = set; then
4640 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4641 if test "x$with_x" = xno; then
4642 # The user explicitly disabled X.
4645 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4646 # Both variables are already set.
4649 if test "${ac_cv_have_x+set}" = set; then
4650 echo $ECHO_N "(cached) $ECHO_C" >&6
4652 # One or both of the vars are not set, and there is no cached value.
4653 ac_x_includes=no ac_x_libraries=no
4655 if mkdir conftest.dir; then
4657 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4658 cat >Imakefile <<'_ACEOF'
4660 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4662 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4663 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4664 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4665 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4666 for ac_extension in a so sl; do
4667 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4668 test -f $ac_im_libdir/libX11.$ac_extension; then
4669 ac_im_usrlibdir=$ac_im_libdir; break
4672 # Screen out bogus values from the imake configuration. They are
4673 # bogus both because they are the default anyway, and because
4674 # using them would break gcc on systems where it needs fixed includes.
4675 case $ac_im_incroot in
4677 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4679 case $ac_im_usrlibdir in
4681 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4688 # Standard set of common directories for X headers.
4689 # Check X11 before X11Rn because it is often a symlink to the current release.
4701 /usr/local/X11/include
4702 /usr/local/X11R6/include
4703 /usr/local/X11R5/include
4704 /usr/local/X11R4/include
4706 /usr/local/include/X11
4707 /usr/local/include/X11R6
4708 /usr/local/include/X11R5
4709 /usr/local/include/X11R4
4713 /usr/XFree86/include/X11
4717 /usr/unsupported/include
4719 /usr/local/x11r5/include
4720 /usr/lpp/Xamples/include
4722 /usr/openwin/include
4723 /usr/openwin/share/include'
4725 if test "$ac_x_includes" = no; then
4726 # Guess where to find include files, by looking for Intrinsic.h.
4727 # First, try using that file with no special directory specified.
4728 cat >conftest.$ac_ext <<_ACEOF
4731 cat confdefs.h >>conftest.$ac_ext
4732 cat >>conftest.$ac_ext <<_ACEOF
4733 /* end confdefs.h. */
4734 #include <X11/Intrinsic.h>
4736 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4737 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4739 grep -v '^ *+' conftest.er1 >conftest.err
4741 cat conftest.err >&5
4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743 (exit $ac_status); } >/dev/null; then
4744 if test -s conftest.err; then
4745 ac_cpp_err=$ac_cxx_preproc_warn_flag
4746 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4753 if test -z "$ac_cpp_err"; then
4754 # We can compile using X headers with no special include directory.
4757 echo "$as_me: failed program was:" >&5
4758 sed 's/^/| /' conftest.$ac_ext >&5
4760 for ac_dir in $ac_x_header_dirs; do
4761 if test -r "$ac_dir/X11/Intrinsic.h"; then
4762 ac_x_includes=$ac_dir
4767 rm -f conftest.err conftest.$ac_ext
4768 fi # $ac_x_includes = no
4770 if test "$ac_x_libraries" = no; then
4771 # Check for the libraries.
4772 # See if we find them without any special options.
4773 # Don't add to $LIBS permanently.
4776 cat >conftest.$ac_ext <<_ACEOF
4779 cat confdefs.h >>conftest.$ac_ext
4780 cat >>conftest.$ac_ext <<_ACEOF
4781 /* end confdefs.h. */
4782 #include <X11/Intrinsic.h>
4791 rm -f conftest.$ac_objext conftest$ac_exeext
4792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4793 (eval $ac_link) 2>conftest.er1
4795 grep -v '^ *+' conftest.er1 >conftest.err
4797 cat conftest.err >&5
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); } &&
4800 { ac_try='test -z "$ac_cxx_werror_flag"
4801 || test ! -s conftest.err'
4802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); }; } &&
4807 { ac_try='test -s conftest$ac_exeext'
4808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); }; }; then
4814 # We can link X programs with no special library path.
4817 echo "$as_me: failed program was:" >&5
4818 sed 's/^/| /' conftest.$ac_ext >&5
4821 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4823 # Don't even attempt the hair of trying to link an X program!
4824 for ac_extension in a so sl; do
4825 if test -r $ac_dir/libXt.$ac_extension; then
4826 ac_x_libraries=$ac_dir
4832 rm -f conftest.err conftest.$ac_objext \
4833 conftest$ac_exeext conftest.$ac_ext
4834 fi # $ac_x_libraries = no
4836 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
4837 # Didn't find X anywhere. Cache the known absence of X.
4838 ac_cv_have_x="have_x=no"
4840 # Record where we found X for the cache.
4841 ac_cv_have_x="have_x=yes \
4842 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4847 eval "$ac_cv_have_x"
4850 if test "$have_x" != yes; then
4851 echo "$as_me:$LINENO: result: $have_x" >&5
4852 echo "${ECHO_T}$have_x" >&6
4855 # If each of the values was on the command line, it overrides each guess.
4856 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4857 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4858 # Update the cache value to reflect the command line values.
4859 ac_cv_have_x="have_x=yes \
4860 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4861 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4862 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
4865 if test "$no_x" = yes; then
4866 # Not all programs may use this symbol, but it does not hurt to define it.
4868 cat >>confdefs.h <<\_ACEOF
4869 #define X_DISPLAY_MISSING 1
4872 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4874 if test -n "$x_includes"; then
4875 X_CFLAGS="$X_CFLAGS -I$x_includes"
4878 # It would also be nice to do this for all -L options, not just this one.
4879 if test -n "$x_libraries"; then
4880 X_LIBS="$X_LIBS -L$x_libraries"
4881 # For Solaris; some versions of Sun CC require a space after -R and
4882 # others require no space. Words are not sufficient . . . .
4883 case `(uname -sr) 2>/dev/null` in
4885 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4886 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
4887 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4888 cat >conftest.$ac_ext <<_ACEOF
4891 cat confdefs.h >>conftest.$ac_ext
4892 cat >>conftest.$ac_ext <<_ACEOF
4893 /* end confdefs.h. */
4903 rm -f conftest.$ac_objext conftest$ac_exeext
4904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4905 (eval $ac_link) 2>conftest.er1
4907 grep -v '^ *+' conftest.er1 >conftest.err
4909 cat conftest.err >&5
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); } &&
4912 { ac_try='test -z "$ac_cxx_werror_flag"
4913 || test ! -s conftest.err'
4914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); }; } &&
4919 { ac_try='test -s conftest$ac_exeext'
4920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924 (exit $ac_status); }; }; then
4927 echo "$as_me: failed program was:" >&5
4928 sed 's/^/| /' conftest.$ac_ext >&5
4932 rm -f conftest.err conftest.$ac_objext \
4933 conftest$ac_exeext conftest.$ac_ext
4934 if test $ac_R_nospace = yes; then
4935 echo "$as_me:$LINENO: result: no" >&5
4936 echo "${ECHO_T}no" >&6
4937 X_LIBS="$X_LIBS -R$x_libraries"
4939 LIBS="$ac_xsave_LIBS -R $x_libraries"
4940 cat >conftest.$ac_ext <<_ACEOF
4943 cat confdefs.h >>conftest.$ac_ext
4944 cat >>conftest.$ac_ext <<_ACEOF
4945 /* end confdefs.h. */
4955 rm -f conftest.$ac_objext conftest$ac_exeext
4956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4957 (eval $ac_link) 2>conftest.er1
4959 grep -v '^ *+' conftest.er1 >conftest.err
4961 cat conftest.err >&5
4962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963 (exit $ac_status); } &&
4964 { ac_try='test -z "$ac_cxx_werror_flag"
4965 || test ! -s conftest.err'
4966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); }; } &&
4971 { ac_try='test -s conftest$ac_exeext'
4972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); }; }; then
4979 echo "$as_me: failed program was:" >&5
4980 sed 's/^/| /' conftest.$ac_ext >&5
4984 rm -f conftest.err conftest.$ac_objext \
4985 conftest$ac_exeext conftest.$ac_ext
4986 if test $ac_R_space = yes; then
4987 echo "$as_me:$LINENO: result: yes" >&5
4988 echo "${ECHO_T}yes" >&6
4989 X_LIBS="$X_LIBS -R $x_libraries"
4991 echo "$as_me:$LINENO: result: neither works" >&5
4992 echo "${ECHO_T}neither works" >&6
4999 # Check for system-dependent libraries X programs must link with.
5000 # Do this before checking for the system-independent R6 libraries
5001 # (-lICE), since we may need -lsocket or whatever for X linking.
5003 if test "$ISC" = yes; then
5004 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5006 # Martyn Johnson says this is needed for Ultrix, if the X
5007 # libraries were built with DECnet support. And Karl Berry says
5008 # the Alpha needs dnet_stub (dnet does not exist).
5009 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5010 cat >conftest.$ac_ext <<_ACEOF
5013 cat confdefs.h >>conftest.$ac_ext
5014 cat >>conftest.$ac_ext <<_ACEOF
5015 /* end confdefs.h. */
5017 /* Override any gcc2 internal prototype to avoid an error. */
5021 /* We use char because int might match the return type of a gcc2
5022 builtin and then its argument prototype would still apply. */
5023 char XOpenDisplay ();
5032 rm -f conftest.$ac_objext conftest$ac_exeext
5033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5034 (eval $ac_link) 2>conftest.er1
5036 grep -v '^ *+' conftest.er1 >conftest.err
5038 cat conftest.err >&5
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); } &&
5041 { ac_try='test -z "$ac_cxx_werror_flag"
5042 || test ! -s conftest.err'
5043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); }; } &&
5048 { ac_try='test -s conftest$ac_exeext'
5049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); }; }; then
5056 echo "$as_me: failed program was:" >&5
5057 sed 's/^/| /' conftest.$ac_ext >&5
5059 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5060 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5061 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5062 echo $ECHO_N "(cached) $ECHO_C" >&6
5064 ac_check_lib_save_LIBS=$LIBS
5066 cat >conftest.$ac_ext <<_ACEOF
5069 cat confdefs.h >>conftest.$ac_ext
5070 cat >>conftest.$ac_ext <<_ACEOF
5071 /* end confdefs.h. */
5073 /* Override any gcc2 internal prototype to avoid an error. */
5077 /* We use char because int might match the return type of a gcc2
5078 builtin and then its argument prototype would still apply. */
5088 rm -f conftest.$ac_objext conftest$ac_exeext
5089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5090 (eval $ac_link) 2>conftest.er1
5092 grep -v '^ *+' conftest.er1 >conftest.err
5094 cat conftest.err >&5
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); } &&
5097 { ac_try='test -z "$ac_cxx_werror_flag"
5098 || test ! -s conftest.err'
5099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); }; } &&
5104 { ac_try='test -s conftest$ac_exeext'
5105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); }; }; then
5110 ac_cv_lib_dnet_dnet_ntoa=yes
5112 echo "$as_me: failed program was:" >&5
5113 sed 's/^/| /' conftest.$ac_ext >&5
5115 ac_cv_lib_dnet_dnet_ntoa=no
5117 rm -f conftest.err conftest.$ac_objext \
5118 conftest$ac_exeext conftest.$ac_ext
5119 LIBS=$ac_check_lib_save_LIBS
5121 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5122 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5123 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5124 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5127 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5128 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5129 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5130 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5131 echo $ECHO_N "(cached) $ECHO_C" >&6
5133 ac_check_lib_save_LIBS=$LIBS
5134 LIBS="-ldnet_stub $LIBS"
5135 cat >conftest.$ac_ext <<_ACEOF
5138 cat confdefs.h >>conftest.$ac_ext
5139 cat >>conftest.$ac_ext <<_ACEOF
5140 /* end confdefs.h. */
5142 /* Override any gcc2 internal prototype to avoid an error. */
5146 /* We use char because int might match the return type of a gcc2
5147 builtin and then its argument prototype would still apply. */
5157 rm -f conftest.$ac_objext conftest$ac_exeext
5158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5159 (eval $ac_link) 2>conftest.er1
5161 grep -v '^ *+' conftest.er1 >conftest.err
5163 cat conftest.err >&5
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); } &&
5166 { ac_try='test -z "$ac_cxx_werror_flag"
5167 || test ! -s conftest.err'
5168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); }; } &&
5173 { ac_try='test -s conftest$ac_exeext'
5174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178 (exit $ac_status); }; }; then
5179 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5181 echo "$as_me: failed program was:" >&5
5182 sed 's/^/| /' conftest.$ac_ext >&5
5184 ac_cv_lib_dnet_stub_dnet_ntoa=no
5186 rm -f conftest.err conftest.$ac_objext \
5187 conftest$ac_exeext conftest.$ac_ext
5188 LIBS=$ac_check_lib_save_LIBS
5190 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5191 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5192 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5193 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5198 rm -f conftest.err conftest.$ac_objext \
5199 conftest$ac_exeext conftest.$ac_ext
5200 LIBS="$ac_xsave_LIBS"
5202 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5203 # to get the SysV transport functions.
5204 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5206 # The nsl library prevents programs from opening the X display
5207 # on Irix 5.2, according to T.E. Dickey.
5208 # The functions gethostbyname, getservbyname, and inet_addr are
5209 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5210 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5211 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5212 if test "${ac_cv_func_gethostbyname+set}" = set; then
5213 echo $ECHO_N "(cached) $ECHO_C" >&6
5215 cat >conftest.$ac_ext <<_ACEOF
5218 cat confdefs.h >>conftest.$ac_ext
5219 cat >>conftest.$ac_ext <<_ACEOF
5220 /* end confdefs.h. */
5221 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5222 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5223 #define gethostbyname innocuous_gethostbyname
5225 /* System header to define __stub macros and hopefully few prototypes,
5226 which can conflict with char gethostbyname (); below.
5227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5228 <limits.h> exists even on freestanding compilers. */
5231 # include <limits.h>
5233 # include <assert.h>
5236 #undef gethostbyname
5238 /* Override any gcc2 internal prototype to avoid an error. */
5243 /* We use char because int might match the return type of a gcc2
5244 builtin and then its argument prototype would still apply. */
5245 char gethostbyname ();
5246 /* The GNU C library defines this for functions which it implements
5247 to always fail with ENOSYS. Some functions are actually named
5248 something starting with __ and the normal name is an alias. */
5249 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5252 char (*f) () = gethostbyname;
5261 return f != gethostbyname;
5266 rm -f conftest.$ac_objext conftest$ac_exeext
5267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5268 (eval $ac_link) 2>conftest.er1
5270 grep -v '^ *+' conftest.er1 >conftest.err
5272 cat conftest.err >&5
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); } &&
5275 { ac_try='test -z "$ac_cxx_werror_flag"
5276 || test ! -s conftest.err'
5277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); }; } &&
5282 { ac_try='test -s conftest$ac_exeext'
5283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); }; }; then
5288 ac_cv_func_gethostbyname=yes
5290 echo "$as_me: failed program was:" >&5
5291 sed 's/^/| /' conftest.$ac_ext >&5
5293 ac_cv_func_gethostbyname=no
5295 rm -f conftest.err conftest.$ac_objext \
5296 conftest$ac_exeext conftest.$ac_ext
5298 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5299 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5301 if test $ac_cv_func_gethostbyname = no; then
5302 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5303 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5304 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5305 echo $ECHO_N "(cached) $ECHO_C" >&6
5307 ac_check_lib_save_LIBS=$LIBS
5309 cat >conftest.$ac_ext <<_ACEOF
5312 cat confdefs.h >>conftest.$ac_ext
5313 cat >>conftest.$ac_ext <<_ACEOF
5314 /* end confdefs.h. */
5316 /* Override any gcc2 internal prototype to avoid an error. */
5320 /* We use char because int might match the return type of a gcc2
5321 builtin and then its argument prototype would still apply. */
5322 char gethostbyname ();
5331 rm -f conftest.$ac_objext conftest$ac_exeext
5332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5333 (eval $ac_link) 2>conftest.er1
5335 grep -v '^ *+' conftest.er1 >conftest.err
5337 cat conftest.err >&5
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); } &&
5340 { ac_try='test -z "$ac_cxx_werror_flag"
5341 || test ! -s conftest.err'
5342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); }; } &&
5347 { ac_try='test -s conftest$ac_exeext'
5348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); }; }; then
5353 ac_cv_lib_nsl_gethostbyname=yes
5355 echo "$as_me: failed program was:" >&5
5356 sed 's/^/| /' conftest.$ac_ext >&5
5358 ac_cv_lib_nsl_gethostbyname=no
5360 rm -f conftest.err conftest.$ac_objext \
5361 conftest$ac_exeext conftest.$ac_ext
5362 LIBS=$ac_check_lib_save_LIBS
5364 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5365 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5366 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5367 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5370 if test $ac_cv_lib_nsl_gethostbyname = no; then
5371 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5372 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5373 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5374 echo $ECHO_N "(cached) $ECHO_C" >&6
5376 ac_check_lib_save_LIBS=$LIBS
5378 cat >conftest.$ac_ext <<_ACEOF
5381 cat confdefs.h >>conftest.$ac_ext
5382 cat >>conftest.$ac_ext <<_ACEOF
5383 /* end confdefs.h. */
5385 /* Override any gcc2 internal prototype to avoid an error. */
5389 /* We use char because int might match the return type of a gcc2
5390 builtin and then its argument prototype would still apply. */
5391 char gethostbyname ();
5400 rm -f conftest.$ac_objext conftest$ac_exeext
5401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5402 (eval $ac_link) 2>conftest.er1
5404 grep -v '^ *+' conftest.er1 >conftest.err
5406 cat conftest.err >&5
5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); } &&
5409 { ac_try='test -z "$ac_cxx_werror_flag"
5410 || test ! -s conftest.err'
5411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415 (exit $ac_status); }; } &&
5416 { ac_try='test -s conftest$ac_exeext'
5417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421 (exit $ac_status); }; }; then
5422 ac_cv_lib_bsd_gethostbyname=yes
5424 echo "$as_me: failed program was:" >&5
5425 sed 's/^/| /' conftest.$ac_ext >&5
5427 ac_cv_lib_bsd_gethostbyname=no
5429 rm -f conftest.err conftest.$ac_objext \
5430 conftest$ac_exeext conftest.$ac_ext
5431 LIBS=$ac_check_lib_save_LIBS
5433 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5434 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
5435 if test $ac_cv_lib_bsd_gethostbyname = yes; then
5436 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5442 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5443 # socket/setsockopt and other routines are undefined under SCO ODT
5444 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5445 # on later versions), says Simon Leinen: it contains gethostby*
5446 # variants that don't use the name server (or something). -lsocket
5447 # must be given before -lnsl if both are needed. We assume that
5448 # if connect needs -lnsl, so does gethostbyname.
5449 echo "$as_me:$LINENO: checking for connect" >&5
5450 echo $ECHO_N "checking for connect... $ECHO_C" >&6
5451 if test "${ac_cv_func_connect+set}" = set; then
5452 echo $ECHO_N "(cached) $ECHO_C" >&6
5454 cat >conftest.$ac_ext <<_ACEOF
5457 cat confdefs.h >>conftest.$ac_ext
5458 cat >>conftest.$ac_ext <<_ACEOF
5459 /* end confdefs.h. */
5460 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
5461 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5462 #define connect innocuous_connect
5464 /* System header to define __stub macros and hopefully few prototypes,
5465 which can conflict with char connect (); below.
5466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5467 <limits.h> exists even on freestanding compilers. */
5470 # include <limits.h>
5472 # include <assert.h>
5477 /* Override any gcc2 internal prototype to avoid an error. */
5482 /* We use char because int might match the return type of a gcc2
5483 builtin and then its argument prototype would still apply. */
5485 /* The GNU C library defines this for functions which it implements
5486 to always fail with ENOSYS. Some functions are actually named
5487 something starting with __ and the normal name is an alias. */
5488 #if defined (__stub_connect) || defined (__stub___connect)
5491 char (*f) () = connect;
5500 return f != connect;
5505 rm -f conftest.$ac_objext conftest$ac_exeext
5506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5507 (eval $ac_link) 2>conftest.er1
5509 grep -v '^ *+' conftest.er1 >conftest.err
5511 cat conftest.err >&5
5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513 (exit $ac_status); } &&
5514 { ac_try='test -z "$ac_cxx_werror_flag"
5515 || test ! -s conftest.err'
5516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); }; } &&
5521 { ac_try='test -s conftest$ac_exeext'
5522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); }; }; then
5527 ac_cv_func_connect=yes
5529 echo "$as_me: failed program was:" >&5
5530 sed 's/^/| /' conftest.$ac_ext >&5
5532 ac_cv_func_connect=no
5534 rm -f conftest.err conftest.$ac_objext \
5535 conftest$ac_exeext conftest.$ac_ext
5537 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5538 echo "${ECHO_T}$ac_cv_func_connect" >&6
5540 if test $ac_cv_func_connect = no; then
5541 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5542 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5543 if test "${ac_cv_lib_socket_connect+set}" = set; then
5544 echo $ECHO_N "(cached) $ECHO_C" >&6
5546 ac_check_lib_save_LIBS=$LIBS
5547 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5548 cat >conftest.$ac_ext <<_ACEOF
5551 cat confdefs.h >>conftest.$ac_ext
5552 cat >>conftest.$ac_ext <<_ACEOF
5553 /* end confdefs.h. */
5555 /* Override any gcc2 internal prototype to avoid an error. */
5559 /* We use char because int might match the return type of a gcc2
5560 builtin and then its argument prototype would still apply. */
5570 rm -f conftest.$ac_objext conftest$ac_exeext
5571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5572 (eval $ac_link) 2>conftest.er1
5574 grep -v '^ *+' conftest.er1 >conftest.err
5576 cat conftest.err >&5
5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); } &&
5579 { ac_try='test -z "$ac_cxx_werror_flag"
5580 || test ! -s conftest.err'
5581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); }; } &&
5586 { ac_try='test -s conftest$ac_exeext'
5587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591 (exit $ac_status); }; }; then
5592 ac_cv_lib_socket_connect=yes
5594 echo "$as_me: failed program was:" >&5
5595 sed 's/^/| /' conftest.$ac_ext >&5
5597 ac_cv_lib_socket_connect=no
5599 rm -f conftest.err conftest.$ac_objext \
5600 conftest$ac_exeext conftest.$ac_ext
5601 LIBS=$ac_check_lib_save_LIBS
5603 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5604 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5605 if test $ac_cv_lib_socket_connect = yes; then
5606 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5611 # Guillermo Gomez says -lposix is necessary on A/UX.
5612 echo "$as_me:$LINENO: checking for remove" >&5
5613 echo $ECHO_N "checking for remove... $ECHO_C" >&6
5614 if test "${ac_cv_func_remove+set}" = set; then
5615 echo $ECHO_N "(cached) $ECHO_C" >&6
5617 cat >conftest.$ac_ext <<_ACEOF
5620 cat confdefs.h >>conftest.$ac_ext
5621 cat >>conftest.$ac_ext <<_ACEOF
5622 /* end confdefs.h. */
5623 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
5624 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5625 #define remove innocuous_remove
5627 /* System header to define __stub macros and hopefully few prototypes,
5628 which can conflict with char remove (); below.
5629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5630 <limits.h> exists even on freestanding compilers. */
5633 # include <limits.h>
5635 # include <assert.h>
5640 /* Override any gcc2 internal prototype to avoid an error. */
5645 /* We use char because int might match the return type of a gcc2
5646 builtin and then its argument prototype would still apply. */
5648 /* The GNU C library defines this for functions which it implements
5649 to always fail with ENOSYS. Some functions are actually named
5650 something starting with __ and the normal name is an alias. */
5651 #if defined (__stub_remove) || defined (__stub___remove)
5654 char (*f) () = remove;
5668 rm -f conftest.$ac_objext conftest$ac_exeext
5669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5670 (eval $ac_link) 2>conftest.er1
5672 grep -v '^ *+' conftest.er1 >conftest.err
5674 cat conftest.err >&5
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); } &&
5677 { ac_try='test -z "$ac_cxx_werror_flag"
5678 || test ! -s conftest.err'
5679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); }; } &&
5684 { ac_try='test -s conftest$ac_exeext'
5685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); }; }; then
5690 ac_cv_func_remove=yes
5692 echo "$as_me: failed program was:" >&5
5693 sed 's/^/| /' conftest.$ac_ext >&5
5695 ac_cv_func_remove=no
5697 rm -f conftest.err conftest.$ac_objext \
5698 conftest$ac_exeext conftest.$ac_ext
5700 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5701 echo "${ECHO_T}$ac_cv_func_remove" >&6
5703 if test $ac_cv_func_remove = no; then
5704 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5705 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
5706 if test "${ac_cv_lib_posix_remove+set}" = set; then
5707 echo $ECHO_N "(cached) $ECHO_C" >&6
5709 ac_check_lib_save_LIBS=$LIBS
5710 LIBS="-lposix $LIBS"
5711 cat >conftest.$ac_ext <<_ACEOF
5714 cat confdefs.h >>conftest.$ac_ext
5715 cat >>conftest.$ac_ext <<_ACEOF
5716 /* end confdefs.h. */
5718 /* Override any gcc2 internal prototype to avoid an error. */
5722 /* We use char because int might match the return type of a gcc2
5723 builtin and then its argument prototype would still apply. */
5733 rm -f conftest.$ac_objext conftest$ac_exeext
5734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5735 (eval $ac_link) 2>conftest.er1
5737 grep -v '^ *+' conftest.er1 >conftest.err
5739 cat conftest.err >&5
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); } &&
5742 { ac_try='test -z "$ac_cxx_werror_flag"
5743 || test ! -s conftest.err'
5744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); }; } &&
5749 { ac_try='test -s conftest$ac_exeext'
5750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); }; }; then
5755 ac_cv_lib_posix_remove=yes
5757 echo "$as_me: failed program was:" >&5
5758 sed 's/^/| /' conftest.$ac_ext >&5
5760 ac_cv_lib_posix_remove=no
5762 rm -f conftest.err conftest.$ac_objext \
5763 conftest$ac_exeext conftest.$ac_ext
5764 LIBS=$ac_check_lib_save_LIBS
5766 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5767 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
5768 if test $ac_cv_lib_posix_remove = yes; then
5769 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5774 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5775 echo "$as_me:$LINENO: checking for shmat" >&5
5776 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
5777 if test "${ac_cv_func_shmat+set}" = set; then
5778 echo $ECHO_N "(cached) $ECHO_C" >&6
5780 cat >conftest.$ac_ext <<_ACEOF
5783 cat confdefs.h >>conftest.$ac_ext
5784 cat >>conftest.$ac_ext <<_ACEOF
5785 /* end confdefs.h. */
5786 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5788 #define shmat innocuous_shmat
5790 /* System header to define __stub macros and hopefully few prototypes,
5791 which can conflict with char shmat (); below.
5792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5793 <limits.h> exists even on freestanding compilers. */
5796 # include <limits.h>
5798 # include <assert.h>
5803 /* Override any gcc2 internal prototype to avoid an error. */
5808 /* We use char because int might match the return type of a gcc2
5809 builtin and then its argument prototype would still apply. */
5811 /* The GNU C library defines this for functions which it implements
5812 to always fail with ENOSYS. Some functions are actually named
5813 something starting with __ and the normal name is an alias. */
5814 #if defined (__stub_shmat) || defined (__stub___shmat)
5817 char (*f) () = shmat;
5831 rm -f conftest.$ac_objext conftest$ac_exeext
5832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5833 (eval $ac_link) 2>conftest.er1
5835 grep -v '^ *+' conftest.er1 >conftest.err
5837 cat conftest.err >&5
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); } &&
5840 { ac_try='test -z "$ac_cxx_werror_flag"
5841 || test ! -s conftest.err'
5842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }; } &&
5847 { ac_try='test -s conftest$ac_exeext'
5848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852 (exit $ac_status); }; }; then
5853 ac_cv_func_shmat=yes
5855 echo "$as_me: failed program was:" >&5
5856 sed 's/^/| /' conftest.$ac_ext >&5
5860 rm -f conftest.err conftest.$ac_objext \
5861 conftest$ac_exeext conftest.$ac_ext
5863 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5864 echo "${ECHO_T}$ac_cv_func_shmat" >&6
5866 if test $ac_cv_func_shmat = no; then
5867 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5868 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
5869 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5870 echo $ECHO_N "(cached) $ECHO_C" >&6
5872 ac_check_lib_save_LIBS=$LIBS
5874 cat >conftest.$ac_ext <<_ACEOF
5877 cat confdefs.h >>conftest.$ac_ext
5878 cat >>conftest.$ac_ext <<_ACEOF
5879 /* end confdefs.h. */
5881 /* Override any gcc2 internal prototype to avoid an error. */
5885 /* We use char because int might match the return type of a gcc2
5886 builtin and then its argument prototype would still apply. */
5896 rm -f conftest.$ac_objext conftest$ac_exeext
5897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5898 (eval $ac_link) 2>conftest.er1
5900 grep -v '^ *+' conftest.er1 >conftest.err
5902 cat conftest.err >&5
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); } &&
5905 { ac_try='test -z "$ac_cxx_werror_flag"
5906 || test ! -s conftest.err'
5907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); }; } &&
5912 { ac_try='test -s conftest$ac_exeext'
5913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); }; }; then
5918 ac_cv_lib_ipc_shmat=yes
5920 echo "$as_me: failed program was:" >&5
5921 sed 's/^/| /' conftest.$ac_ext >&5
5923 ac_cv_lib_ipc_shmat=no
5925 rm -f conftest.err conftest.$ac_objext \
5926 conftest$ac_exeext conftest.$ac_ext
5927 LIBS=$ac_check_lib_save_LIBS
5929 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5930 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
5931 if test $ac_cv_lib_ipc_shmat = yes; then
5932 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5938 # Check for libraries that X11R6 Xt/Xaw programs need.
5939 ac_save_LDFLAGS=$LDFLAGS
5940 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5941 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5942 # check for ICE first), but we must link in the order -lSM -lICE or
5943 # we get undefined symbols. So assume we have SM if we have ICE.
5944 # These have to be linked with before -lX11, unlike the other
5945 # libraries we check for below, so use a different variable.
5946 # John Interrante, Karl Berry
5947 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5948 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
5949 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5950 echo $ECHO_N "(cached) $ECHO_C" >&6
5952 ac_check_lib_save_LIBS=$LIBS
5953 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5954 cat >conftest.$ac_ext <<_ACEOF
5957 cat confdefs.h >>conftest.$ac_ext
5958 cat >>conftest.$ac_ext <<_ACEOF
5959 /* end confdefs.h. */
5961 /* Override any gcc2 internal prototype to avoid an error. */
5965 /* We use char because int might match the return type of a gcc2
5966 builtin and then its argument prototype would still apply. */
5967 char IceConnectionNumber ();
5971 IceConnectionNumber ();
5976 rm -f conftest.$ac_objext conftest$ac_exeext
5977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5978 (eval $ac_link) 2>conftest.er1
5980 grep -v '^ *+' conftest.er1 >conftest.err
5982 cat conftest.err >&5
5983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 (exit $ac_status); } &&
5985 { ac_try='test -z "$ac_cxx_werror_flag"
5986 || test ! -s conftest.err'
5987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); }; } &&
5992 { ac_try='test -s conftest$ac_exeext'
5993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); }; }; then
5998 ac_cv_lib_ICE_IceConnectionNumber=yes
6000 echo "$as_me: failed program was:" >&5
6001 sed 's/^/| /' conftest.$ac_ext >&5
6003 ac_cv_lib_ICE_IceConnectionNumber=no
6005 rm -f conftest.err conftest.$ac_objext \
6006 conftest$ac_exeext conftest.$ac_ext
6007 LIBS=$ac_check_lib_save_LIBS
6009 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6010 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6011 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6012 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6015 LDFLAGS=$ac_save_LDFLAGS
6021 LIBAFTERIMAGE_CFLAGS=
6025 if test x$support_afterimage = xyes; then
6026 support_afterimage=no
6028 if test "x$afterimage_config" = "x" ; then
6029 # Extract the first word of "afterimage-config", so it can be a program name with args.
6030 set dummy afterimage-config; ac_word=$2
6031 echo "$as_me:$LINENO: checking for $ac_word" >&5
6032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6033 if test "${ac_cv_path_afterimage_config+set}" = set; then
6034 echo $ECHO_N "(cached) $ECHO_C" >&6
6036 case $afterimage_config in
6038 ac_cv_path_afterimage_config="$afterimage_config" # Let the user override the test with a path.
6041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6045 test -z "$as_dir" && as_dir=.
6046 for ac_exec_ext in '' $ac_executable_extensions; do
6047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6048 ac_cv_path_afterimage_config="$as_dir/$ac_word$ac_exec_ext"
6049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6055 test -z "$ac_cv_path_afterimage_config" && ac_cv_path_afterimage_config="no"
6059 afterimage_config=$ac_cv_path_afterimage_config
6061 if test -n "$afterimage_config"; then
6062 echo "$as_me:$LINENO: result: $afterimage_config" >&5
6063 echo "${ECHO_T}$afterimage_config" >&6
6065 echo "$as_me:$LINENO: result: no" >&5
6066 echo "${ECHO_T}no" >&6
6071 echo "$as_me:$LINENO: checking for libAfterImage" >&5
6072 echo $ECHO_N "checking for libAfterImage... $ECHO_C" >&6
6073 if $afterimage_config --version >/dev/null 2>&1 ; then
6074 LIBAFTERIMAGE_CFLAGS=`$afterimage_config --cflags`
6075 AFTERIMAGE_LIBS=`$afterimage_config --libs`
6076 if test "x$AFTERIMAGE_LIBS" != "x"; then
6077 support_afterimage=yes
6081 if test "x$support_afterimage" = "xyes"; then
6082 echo "$as_me:$LINENO: result: $AFTERIMAGE_LIBS" >&5
6083 echo "${ECHO_T}$AFTERIMAGE_LIBS" >&6
6085 echo "$as_me:$LINENO: result: no" >&5
6086 echo "${ECHO_T}no" >&6
6090 if test x$support_afterimage != xyes -a x$support_xpm = xyes ; then
6094 # Initialize some more variables set by options.
6095 # The variables have the same names as the options, with
6096 # dashes changed to underlines.
6098 # If we find XPM, set shell vars xpm_includes and xpm_libraries to the
6099 # paths, otherwise set no_xpm=yes.
6100 # Uses ac_ vars as temps to allow command line to override cache and checks.
6101 echo "$as_me:$LINENO: checking for libXpm" >&5
6102 echo $ECHO_N "checking for libXpm... $ECHO_C" >&6
6105 # Check whether --with-xpm_includes or --without-xpm_includes was given.
6106 if test "${with_xpm_includes+set}" = set; then
6107 withval="$with_xpm_includes"
6108 xpm_includes="$withval"
6113 # Check whether --with-xpm_library or --without-xpm_library was given.
6114 if test "${with_xpm_library+set}" = set; then
6115 withval="$with_xpm_library"
6116 xpm_libraries="$withval"
6121 # --without-xpm overrides everything else, but does not touch the cache.
6123 # Check whether --with-xpm or --without-xpm was given.
6124 if test "${with_xpm+set}" = set; then
6128 if test "$with_xpm" = no; then
6131 if test "${ac_cv_have_xpm+set}" = set; then
6132 echo $ECHO_N "(cached) $ECHO_C" >&6
6135 vt_xpm_include_X11=no
6136 if test -n "$xpm_includes"; then
6137 vt_xpm_includes=$xpm_includes
6141 if test -n "$xpm_libraries"; then
6142 vt_xpm_libraries=$xpm_libraries
6147 if test "$vt_xpm_includes" = NO; then
6148 # Guess where to find xpm.h
6150 ac_save_CPPFLAGS="$CPPFLAGS"
6151 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6153 # First, try using that file with no special directory specified.
6154 cat >conftest.$ac_ext <<_ACEOF
6157 cat confdefs.h >>conftest.$ac_ext
6158 cat >>conftest.$ac_ext <<_ACEOF
6159 /* end confdefs.h. */
6160 #include <X11/xpm.h>
6162 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6163 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6165 grep -v '^ *+' conftest.er1 >conftest.err
6167 cat conftest.err >&5
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); } >/dev/null; then
6170 if test -s conftest.err; then
6171 ac_cpp_err=$ac_cxx_preproc_warn_flag
6172 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6179 if test -z "$ac_cpp_err"; then
6180 # We can compile using X headers with no special include directory.
6182 vt_xpm_include_X11=yes
6184 echo "$as_me: failed program was:" >&5
6185 sed 's/^/| /' conftest.$ac_ext >&5
6187 CPPFLAGS="$ac_save_CPPFLAGS"
6188 # Look for the header file in a standard set of common directories.
6191 /usr/X11R6/include \
6192 /usr/X11R5/include \
6193 /usr/X11R4/include \
6196 /usr/include/X11R6 \
6197 /usr/include/X11R5 \
6198 /usr/include/X11R4 \
6200 /usr/local/X11/include \
6201 /usr/local/X11R6/include \
6202 /usr/local/X11R5/include \
6203 /usr/local/X11R4/include \
6205 /usr/local/include/X11 \
6206 /usr/local/include/X11R6 \
6207 /usr/local/include/X11R5 \
6208 /usr/local/include/X11R4 \
6212 /usr/XFree86/include/X11 \
6215 /usr/local/include \
6216 /usr/unsupported/include \
6217 /usr/athena/include \
6218 /usr/local/x11r5/include \
6219 /usr/lpp/Xamples/include \
6221 /usr/openwin/include \
6222 /usr/openwin/share/include \
6225 if test -r "$ac_dir/X11/xpm.h"; then
6226 vt_xpm_includes="$ac_dir"
6227 vt_xpm_include_X11=yes
6230 if test -r "$ac_dir/xpm.h"; then
6231 vt_xpm_includes=$ac_dir
6237 rm -f conftest.err conftest.$ac_ext
6240 if test "$vt_xpm_libraries" = NO; then
6241 # Check for the libraries.
6243 # See if we find them without any special options.
6244 # Don't add to $LIBS permanently.
6245 ac_save_LIBS="$LIBS"
6246 LIBS="$LIBS $X_LIBS -lXpm -lX11"
6247 cat >conftest.$ac_ext <<_ACEOF
6250 cat confdefs.h >>conftest.$ac_ext
6251 cat >>conftest.$ac_ext <<_ACEOF
6252 /* end confdefs.h. */
6257 XpmReadFileToPixmap()
6262 rm -f conftest.$ac_objext conftest$ac_exeext
6263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6264 (eval $ac_link) 2>conftest.er1
6266 grep -v '^ *+' conftest.er1 >conftest.err
6268 cat conftest.err >&5
6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); } &&
6271 { ac_try='test -z "$ac_cxx_werror_flag"
6272 || test ! -s conftest.err'
6273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277 (exit $ac_status); }; } &&
6278 { ac_try='test -s conftest$ac_exeext'
6279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); }; }; then
6284 LIBS="$ac_save_LIBS"
6285 # We can link libXpm with no special library path.
6288 echo "$as_me: failed program was:" >&5
6289 sed 's/^/| /' conftest.$ac_ext >&5
6291 LIBS="$ac_save_LIBS"
6292 # First see if replacing the include by lib works.
6294 `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \
6305 /usr/local/X11/lib \
6306 /usr/local/X11R6/lib \
6307 /usr/local/X11R5/lib \
6308 /usr/local/X11R4/lib \
6310 /usr/local/lib/X11 \
6311 /usr/local/lib/X11R6 \
6312 /usr/local/lib/X11R5 \
6313 /usr/local/lib/X11R4 \
6317 /usr/XFree86/lib/X11 \
6321 /usr/unsupported/lib \
6323 /usr/local/x11r5/lib \
6324 /usr/lpp/Xamples/lib \
6327 /usr/openwin/share/lib \
6330 for ac_extension in a so sl; do
6331 if test -r $ac_dir/libXpm.$ac_extension; then
6332 vt_xpm_libraries=$ac_dir
6338 rm -f conftest.err conftest.$ac_objext \
6339 conftest$ac_exeext conftest.$ac_ext
6343 if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then
6344 ac_cv_have_xpm="have_xpm=no"
6346 ac_cv_have_xpm="have_xpm=yes \
6347 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
6348 vt_xpm_include_X11=$vt_xpm_include_X11"
6351 eval "$ac_cv_have_xpm"
6354 if test "$have_xpm" != yes; then
6355 echo "$as_me:$LINENO: result: $have_xpm" >&5
6356 echo "${ECHO_T}$have_xpm" >&6
6359 if test "$xpm_includes" != NO; then
6360 if test "$xpm_includes" = "$vt_xpm_includes"; then
6361 if test -r "$xpm_includes/X11/xpm.h"; then
6362 vt_xpm_include_X11=yes
6365 vt_xpm_include_X11=no
6366 if test -z "$xpm_includes"; then
6367 cat >conftest.$ac_ext <<_ACEOF
6370 cat confdefs.h >>conftest.$ac_ext
6371 cat >>conftest.$ac_ext <<_ACEOF
6372 /* end confdefs.h. */
6373 #include <X11/xpm.h>
6375 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6376 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6378 grep -v '^ *+' conftest.er1 >conftest.err
6380 cat conftest.err >&5
6381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382 (exit $ac_status); } >/dev/null; then
6383 if test -s conftest.err; then
6384 ac_cpp_err=$ac_cxx_preproc_warn_flag
6385 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6392 if test -z "$ac_cpp_err"; then
6393 vt_xpm_include_X11=yes
6395 echo "$as_me: failed program was:" >&5
6396 sed 's/^/| /' conftest.$ac_ext >&5
6400 rm -f conftest.err conftest.$ac_ext
6402 if test -r "$xpm_includes/X11/xpm.h"; then
6403 vt_xpm_include_X11=yes
6407 vt_xpm_includes=$xpm_includes
6409 if test "x$xpm_libraries" != xNO; then
6410 vt_xpm_libraries=$xpm_libraries
6412 # Update the cache value to reflect the command line values.
6413 ac_cv_have_xpm="have_xpm=yes \
6414 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
6415 vt_xpm_include_X11=$vt_xpm_include_X11"
6416 eval "$ac_cv_have_xpm"
6417 echo "$as_me:$LINENO: result: -I$vt_xpm_includes, -L$vt_xpm_libraries" >&5
6418 echo "${ECHO_T}-I$vt_xpm_includes, -L$vt_xpm_libraries" >&6
6419 if test -n "$vt_xpm_includes"; then
6420 XPM_CPPFLAGS="-DHAVE_LIBXPM"
6422 if test -n "$vt_xpm_includes"; then
6423 XPM_CFLAGS="-I$vt_xpm_includes"
6426 if test -n "$vt_xpm_libraries"; then
6427 XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS"
6429 if test "x$vt_xpm_include_X11" = xyes; then
6431 cat >>confdefs.h <<\_ACEOF
6432 #define XPM_INC_X11 1
6442 if test x$no_xpm = xyes; then
6443 support_xpm=needsmanualspecification
6447 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6448 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6449 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6450 echo $ECHO_N "(cached) $ECHO_C" >&6
6452 cat >conftest.$ac_ext <<_ACEOF
6455 cat confdefs.h >>conftest.$ac_ext
6456 cat >>conftest.$ac_ext <<_ACEOF
6457 /* end confdefs.h. */
6458 #include <sys/types.h>
6459 #include <sys/wait.h>
6461 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6464 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6472 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6477 rm -f conftest.$ac_objext
6478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6479 (eval $ac_compile) 2>conftest.er1
6481 grep -v '^ *+' conftest.er1 >conftest.err
6483 cat conftest.err >&5
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); } &&
6486 { ac_try='test -z "$ac_cxx_werror_flag"
6487 || test ! -s conftest.err'
6488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); }; } &&
6493 { ac_try='test -s conftest.$ac_objext'
6494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); }; }; then
6499 ac_cv_header_sys_wait_h=yes
6501 echo "$as_me: failed program was:" >&5
6502 sed 's/^/| /' conftest.$ac_ext >&5
6504 ac_cv_header_sys_wait_h=no
6506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6508 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6509 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6510 if test $ac_cv_header_sys_wait_h = yes; then
6512 cat >>confdefs.h <<\_ACEOF
6513 #define HAVE_SYS_WAIT_H 1
6518 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6519 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6520 if test "${ac_cv_header_stdc+set}" = set; then
6521 echo $ECHO_N "(cached) $ECHO_C" >&6
6523 cat >conftest.$ac_ext <<_ACEOF
6526 cat confdefs.h >>conftest.$ac_ext
6527 cat >>conftest.$ac_ext <<_ACEOF
6528 /* end confdefs.h. */
6542 rm -f conftest.$ac_objext
6543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6544 (eval $ac_compile) 2>conftest.er1
6546 grep -v '^ *+' conftest.er1 >conftest.err
6548 cat conftest.err >&5
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); } &&
6551 { ac_try='test -z "$ac_cxx_werror_flag"
6552 || test ! -s conftest.err'
6553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); }; } &&
6558 { ac_try='test -s conftest.$ac_objext'
6559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); }; }; then
6564 ac_cv_header_stdc=yes
6566 echo "$as_me: failed program was:" >&5
6567 sed 's/^/| /' conftest.$ac_ext >&5
6569 ac_cv_header_stdc=no
6571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6573 if test $ac_cv_header_stdc = yes; then
6574 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6575 cat >conftest.$ac_ext <<_ACEOF
6578 cat confdefs.h >>conftest.$ac_ext
6579 cat >>conftest.$ac_ext <<_ACEOF
6580 /* end confdefs.h. */
6584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6585 $EGREP "memchr" >/dev/null 2>&1; then
6588 ac_cv_header_stdc=no
6594 if test $ac_cv_header_stdc = yes; then
6595 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6596 cat >conftest.$ac_ext <<_ACEOF
6599 cat confdefs.h >>conftest.$ac_ext
6600 cat >>conftest.$ac_ext <<_ACEOF
6601 /* end confdefs.h. */
6605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6606 $EGREP "free" >/dev/null 2>&1; then
6609 ac_cv_header_stdc=no
6615 if test $ac_cv_header_stdc = yes; then
6616 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6617 if test "$cross_compiling" = yes; then
6620 cat >conftest.$ac_ext <<_ACEOF
6623 cat confdefs.h >>conftest.$ac_ext
6624 cat >>conftest.$ac_ext <<_ACEOF
6625 /* end confdefs.h. */
6627 #if ((' ' & 0x0FF) == 0x020)
6628 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6629 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6631 # define ISLOWER(c) \
6632 (('a' <= (c) && (c) <= 'i') \
6633 || ('j' <= (c) && (c) <= 'r') \
6634 || ('s' <= (c) && (c) <= 'z'))
6635 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6638 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6643 for (i = 0; i < 256; i++)
6644 if (XOR (islower (i), ISLOWER (i))
6645 || toupper (i) != TOUPPER (i))
6650 rm -f conftest$ac_exeext
6651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6652 (eval $ac_link) 2>&5
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); }; }; then
6663 echo "$as_me: program exited with status $ac_status" >&5
6664 echo "$as_me: failed program was:" >&5
6665 sed 's/^/| /' conftest.$ac_ext >&5
6668 ac_cv_header_stdc=no
6670 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6674 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6675 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6676 if test $ac_cv_header_stdc = yes; then
6678 cat >>confdefs.h <<\_ACEOF
6679 #define STDC_HEADERS 1
6684 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6694 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6695 inttypes.h stdint.h unistd.h
6697 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6698 echo "$as_me:$LINENO: checking for $ac_header" >&5
6699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6701 echo $ECHO_N "(cached) $ECHO_C" >&6
6703 cat >conftest.$ac_ext <<_ACEOF
6706 cat confdefs.h >>conftest.$ac_ext
6707 cat >>conftest.$ac_ext <<_ACEOF
6708 /* end confdefs.h. */
6709 $ac_includes_default
6711 #include <$ac_header>
6713 rm -f conftest.$ac_objext
6714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6715 (eval $ac_compile) 2>conftest.er1
6717 grep -v '^ *+' conftest.er1 >conftest.err
6719 cat conftest.err >&5
6720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721 (exit $ac_status); } &&
6722 { ac_try='test -z "$ac_cxx_werror_flag"
6723 || test ! -s conftest.err'
6724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728 (exit $ac_status); }; } &&
6729 { ac_try='test -s conftest.$ac_objext'
6730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734 (exit $ac_status); }; }; then
6735 eval "$as_ac_Header=yes"
6737 echo "$as_me: failed program was:" >&5
6738 sed 's/^/| /' conftest.$ac_ext >&5
6740 eval "$as_ac_Header=no"
6742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6745 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6746 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6747 cat >>confdefs.h <<_ACEOF
6748 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6793 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6794 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6795 echo "$as_me:$LINENO: checking for $ac_header" >&5
6796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6797 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6798 echo $ECHO_N "(cached) $ECHO_C" >&6
6800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6801 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6803 # Is the header compilable?
6804 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6805 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6806 cat >conftest.$ac_ext <<_ACEOF
6809 cat confdefs.h >>conftest.$ac_ext
6810 cat >>conftest.$ac_ext <<_ACEOF
6811 /* end confdefs.h. */
6812 $ac_includes_default
6813 #include <$ac_header>
6815 rm -f conftest.$ac_objext
6816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6817 (eval $ac_compile) 2>conftest.er1
6819 grep -v '^ *+' conftest.er1 >conftest.err
6821 cat conftest.err >&5
6822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); } &&
6824 { ac_try='test -z "$ac_cxx_werror_flag"
6825 || test ! -s conftest.err'
6826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); }; } &&
6831 { ac_try='test -s conftest.$ac_objext'
6832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); }; }; then
6837 ac_header_compiler=yes
6839 echo "$as_me: failed program was:" >&5
6840 sed 's/^/| /' conftest.$ac_ext >&5
6842 ac_header_compiler=no
6844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6845 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6846 echo "${ECHO_T}$ac_header_compiler" >&6
6848 # Is the header present?
6849 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6850 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6851 cat >conftest.$ac_ext <<_ACEOF
6854 cat confdefs.h >>conftest.$ac_ext
6855 cat >>conftest.$ac_ext <<_ACEOF
6856 /* end confdefs.h. */
6857 #include <$ac_header>
6859 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6860 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6862 grep -v '^ *+' conftest.er1 >conftest.err
6864 cat conftest.err >&5
6865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866 (exit $ac_status); } >/dev/null; then
6867 if test -s conftest.err; then
6868 ac_cpp_err=$ac_cxx_preproc_warn_flag
6869 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6876 if test -z "$ac_cpp_err"; then
6877 ac_header_preproc=yes
6879 echo "$as_me: failed program was:" >&5
6880 sed 's/^/| /' conftest.$ac_ext >&5
6882 ac_header_preproc=no
6884 rm -f conftest.err conftest.$ac_ext
6885 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6886 echo "${ECHO_T}$ac_header_preproc" >&6
6888 # So? What about this header?
6889 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6891 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6892 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6894 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6895 ac_header_preproc=yes
6898 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6899 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6900 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6901 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6902 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6903 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6904 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6905 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6907 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6908 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6909 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6912 ## ------------------------------------------ ##
6913 ## Report this to the AC_PACKAGE_NAME lists. ##
6914 ## ------------------------------------------ ##
6917 sed "s/^/$as_me: WARNING: /" >&2
6920 echo "$as_me:$LINENO: checking for $ac_header" >&5
6921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6922 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6923 echo $ECHO_N "(cached) $ECHO_C" >&6
6925 eval "$as_ac_Header=\$ac_header_preproc"
6927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6928 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6931 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6932 cat >>confdefs.h <<_ACEOF
6933 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6941 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6942 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6943 if test "${ac_cv_header_time+set}" = set; then
6944 echo $ECHO_N "(cached) $ECHO_C" >&6
6946 cat >conftest.$ac_ext <<_ACEOF
6949 cat confdefs.h >>conftest.$ac_ext
6950 cat >>conftest.$ac_ext <<_ACEOF
6951 /* end confdefs.h. */
6952 #include <sys/types.h>
6953 #include <sys/time.h>
6959 if ((struct tm *) 0)
6965 rm -f conftest.$ac_objext
6966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6967 (eval $ac_compile) 2>conftest.er1
6969 grep -v '^ *+' conftest.er1 >conftest.err
6971 cat conftest.err >&5
6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); } &&
6974 { ac_try='test -z "$ac_cxx_werror_flag"
6975 || test ! -s conftest.err'
6976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980 (exit $ac_status); }; } &&
6981 { ac_try='test -s conftest.$ac_objext'
6982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986 (exit $ac_status); }; }; then
6987 ac_cv_header_time=yes
6989 echo "$as_me: failed program was:" >&5
6990 sed 's/^/| /' conftest.$ac_ext >&5
6992 ac_cv_header_time=no
6994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6996 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6997 echo "${ECHO_T}$ac_cv_header_time" >&6
6998 if test $ac_cv_header_time = yes; then
7000 cat >>confdefs.h <<\_ACEOF
7001 #define TIME_WITH_SYS_TIME 1
7007 echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5
7008 echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6
7009 if test "${rxvt_cv_header_sysioctl+set}" = set; then
7010 echo $ECHO_N "(cached) $ECHO_C" >&6
7012 cat >conftest.$ac_ext <<_ACEOF
7015 cat confdefs.h >>conftest.$ac_ext
7016 cat >>conftest.$ac_ext <<_ACEOF
7017 /* end confdefs.h. */
7019 #include <sys/ioctl.h>
7020 #ifdef HAVE_TERMIOS_H
7021 #include <termios.h>
7031 rm -f conftest.$ac_objext
7032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7033 (eval $ac_compile) 2>conftest.er1
7035 grep -v '^ *+' conftest.er1 >conftest.err
7037 cat conftest.err >&5
7038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039 (exit $ac_status); } &&
7040 { ac_try='test -z "$ac_cxx_werror_flag"
7041 || test ! -s conftest.err'
7042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); }; } &&
7047 { ac_try='test -s conftest.$ac_objext'
7048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052 (exit $ac_status); }; }; then
7053 rxvt_cv_header_sysioctl=yes
7055 echo "$as_me: failed program was:" >&5
7056 sed 's/^/| /' conftest.$ac_ext >&5
7058 rxvt_cv_header_sysioctl=no
7060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7062 echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5
7063 echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6
7065 if test -n "$GCC"; then
7070 R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-rpath '$LDARG'\1/g'
7072 ac_save_CFLAGS=$CFLAGS
7074 CFLAGS="$CFLAGS $X_CFLAGS"
7075 LIBS=`echo "$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
7076 echo "$as_me:$LINENO: checking for -rpath dynamic library path recording" >&5
7077 echo $ECHO_N "checking for -rpath dynamic library path recording... $ECHO_C" >&6
7078 if test "${rxvt_cv_rpath+set}" = set; then
7079 echo $ECHO_N "(cached) $ECHO_C" >&6
7081 if test "$cross_compiling" = yes; then
7082 { echo "$as_me:$LINENO: WARNING: You may need to check the LIBS line" >&5
7083 echo "$as_me: WARNING: You may need to check the LIBS line" >&2;}
7085 cat >conftest.$ac_ext <<_ACEOF
7088 cat confdefs.h >>conftest.$ac_ext
7089 cat >>conftest.$ac_ext <<_ACEOF
7090 /* end confdefs.h. */
7091 #include <X11/Xlib.h>
7096 (void) XOpenDisplay("foobar");
7099 rm -f conftest$ac_exeext
7100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7101 (eval $ac_link) 2>&5
7103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7109 (exit $ac_status); }; }; then
7112 echo "$as_me: program exited with status $ac_status" >&5
7113 echo "$as_me: failed program was:" >&5
7114 sed 's/^/| /' conftest.$ac_ext >&5
7119 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7122 echo "$as_me:$LINENO: result: $rxvt_cv_rpath" >&5
7123 echo "${ECHO_T}$rxvt_cv_rpath" >&6
7124 if test x$rxvt_cv_rpath != xyes; then
7125 R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-R\1/g'
7126 LIBS=`echo "$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
7127 echo "$as_me:$LINENO: checking for -R dynamic library path recording" >&5
7128 echo $ECHO_N "checking for -R dynamic library path recording... $ECHO_C" >&6
7129 if test "${rxvt_cv_R+set}" = set; then
7130 echo $ECHO_N "(cached) $ECHO_C" >&6
7132 if test "$cross_compiling" = yes; then
7135 cat >conftest.$ac_ext <<_ACEOF
7138 cat confdefs.h >>conftest.$ac_ext
7139 cat >>conftest.$ac_ext <<_ACEOF
7140 /* end confdefs.h. */
7141 #include <X11/Xlib.h>
7146 (void) XOpenDisplay("foobar");
7149 rm -f conftest$ac_exeext
7150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7151 (eval $ac_link) 2>&5
7153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159 (exit $ac_status); }; }; then
7162 echo "$as_me: program exited with status $ac_status" >&5
7163 echo "$as_me: failed program was:" >&5
7164 sed 's/^/| /' conftest.$ac_ext >&5
7169 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7172 echo "$as_me:$LINENO: result: $rxvt_cv_R" >&5
7173 echo "${ECHO_T}$rxvt_cv_R" >&6
7174 if test x$rxvt_cv_R != xyes; then
7175 LIBS="$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
7179 echo "$as_me:$LINENO: checking for XPointer" >&5
7180 echo $ECHO_N "checking for XPointer... $ECHO_C" >&6
7181 if test "${rxvt_cv_xpointer+set}" = set; then
7182 echo $ECHO_N "(cached) $ECHO_C" >&6
7184 cat >conftest.$ac_ext <<_ACEOF
7187 cat confdefs.h >>conftest.$ac_ext
7188 cat >>conftest.$ac_ext <<_ACEOF
7189 /* end confdefs.h. */
7190 #include <X11/Xlib.h>
7199 rm -f conftest.$ac_objext
7200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7201 (eval $ac_compile) 2>conftest.er1
7203 grep -v '^ *+' conftest.er1 >conftest.err
7205 cat conftest.err >&5
7206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207 (exit $ac_status); } &&
7208 { ac_try='test -z "$ac_cxx_werror_flag"
7209 || test ! -s conftest.err'
7210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214 (exit $ac_status); }; } &&
7215 { ac_try='test -s conftest.$ac_objext'
7216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220 (exit $ac_status); }; }; then
7221 rxvt_cv_xpointer=yes
7223 echo "$as_me: failed program was:" >&5
7224 sed 's/^/| /' conftest.$ac_ext >&5
7228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7230 echo "$as_me:$LINENO: result: $rxvt_cv_xpointer" >&5
7231 echo "${ECHO_T}$rxvt_cv_xpointer" >&6
7232 if test x$rxvt_cv_xpointer = xyes; then
7234 cat >>confdefs.h <<\_ACEOF
7235 #define HAVE_XPOINTER 1
7240 CFLAGS=$ac_save_CFLAGS
7242 echo "$as_me:$LINENO: checking for XLIB_ILLEGAL_ACCESS" >&5
7243 echo $ECHO_N "checking for XLIB_ILLEGAL_ACCESS... $ECHO_C" >&6
7244 if test "${rxvt_xlib_illegal_access+set}" = set; then
7245 echo $ECHO_N "(cached) $ECHO_C" >&6
7247 cat >conftest.$ac_ext <<_ACEOF
7250 cat confdefs.h >>conftest.$ac_ext
7251 cat >>conftest.$ac_ext <<_ACEOF
7252 /* end confdefs.h. */
7254 #define XLIB_ILLEGAL_ACCESS
7255 #include <X11/Xlib.h>
7262 dpy->xdefaults = (char *)0;
7268 rm -f conftest.$ac_objext
7269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7270 (eval $ac_compile) 2>conftest.er1
7272 grep -v '^ *+' conftest.er1 >conftest.err
7274 cat conftest.err >&5
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); } &&
7277 { ac_try='test -z "$ac_cxx_werror_flag"
7278 || test ! -s conftest.err'
7279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); }; } &&
7284 { ac_try='test -s conftest.$ac_objext'
7285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); }; }; then
7290 rxvt_xlib_illegal_access=yes
7292 echo "$as_me: failed program was:" >&5
7293 sed 's/^/| /' conftest.$ac_ext >&5
7295 rxvt_xlib_illegal_access=no
7298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7300 echo "$as_me:$LINENO: result: $rxvt_xlib_illegal_access" >&5
7301 echo "${ECHO_T}$rxvt_xlib_illegal_access" >&6
7302 if test x$rxvt_xlib_illegal_access = xyes; then
7304 cat >>confdefs.h <<\_ACEOF
7305 #define XLIB_ILLEGAL_ACCESS 1
7310 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7311 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7312 if test "${ac_cv_c_const+set}" = set; then
7313 echo $ECHO_N "(cached) $ECHO_C" >&6
7315 cat >conftest.$ac_ext <<_ACEOF
7318 cat confdefs.h >>conftest.$ac_ext
7319 cat >>conftest.$ac_ext <<_ACEOF
7320 /* end confdefs.h. */
7325 /* FIXME: Include the comments suggested by Paul. */
7327 /* Ultrix mips cc rejects this. */
7328 typedef int charset[2];
7330 /* SunOS 4.1.1 cc rejects this. */
7331 char const *const *ccp;
7333 /* NEC SVR4.0.2 mips cc rejects this. */
7334 struct point {int x, y;};
7335 static struct point const zero = {0,0};
7336 /* AIX XL C 1.02.0.0 rejects this.
7337 It does not let you subtract one const X* pointer from another in
7338 an arm of an if-expression whose if-part is not a constant
7340 const char *g = "string";
7341 ccp = &g + (g ? g-g : 0);
7342 /* HPUX 7.0 cc rejects these. */
7345 ccp = (char const *const *) p;
7346 { /* SCO 3.2v4 cc rejects this. */
7348 char const *s = 0 ? (char *) 0 : (char const *) 0;
7352 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7354 const int *foo = &x[0];
7357 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7358 typedef const int *iptr;
7362 { /* AIX XL C 1.02.0.0 rejects this saying
7363 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7364 struct s { int j; const int *ap[3]; };
7365 struct s *b; b->j = 5;
7367 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7376 rm -f conftest.$ac_objext
7377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7378 (eval $ac_compile) 2>conftest.er1
7380 grep -v '^ *+' conftest.er1 >conftest.err
7382 cat conftest.err >&5
7383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384 (exit $ac_status); } &&
7385 { ac_try='test -z "$ac_cxx_werror_flag"
7386 || test ! -s conftest.err'
7387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7391 (exit $ac_status); }; } &&
7392 { ac_try='test -s conftest.$ac_objext'
7393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7397 (exit $ac_status); }; }; then
7400 echo "$as_me: failed program was:" >&5
7401 sed 's/^/| /' conftest.$ac_ext >&5
7405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7407 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7408 echo "${ECHO_T}$ac_cv_c_const" >&6
7409 if test $ac_cv_c_const = no; then
7411 cat >>confdefs.h <<\_ACEOF
7417 echo "$as_me:$LINENO: checking for inline" >&5
7418 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7419 if test "${ac_cv_c_inline+set}" = set; then
7420 echo $ECHO_N "(cached) $ECHO_C" >&6
7423 for ac_kw in inline __inline__ __inline; do
7424 cat >conftest.$ac_ext <<_ACEOF
7427 cat confdefs.h >>conftest.$ac_ext
7428 cat >>conftest.$ac_ext <<_ACEOF
7429 /* end confdefs.h. */
7432 static $ac_kw foo_t static_foo () {return 0; }
7433 $ac_kw foo_t foo () {return 0; }
7437 rm -f conftest.$ac_objext
7438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7439 (eval $ac_compile) 2>conftest.er1
7441 grep -v '^ *+' conftest.er1 >conftest.err
7443 cat conftest.err >&5
7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); } &&
7446 { ac_try='test -z "$ac_cxx_werror_flag"
7447 || test ! -s conftest.err'
7448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452 (exit $ac_status); }; } &&
7453 { ac_try='test -s conftest.$ac_objext'
7454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458 (exit $ac_status); }; }; then
7459 ac_cv_c_inline=$ac_kw; break
7461 echo "$as_me: failed program was:" >&5
7462 sed 's/^/| /' conftest.$ac_ext >&5
7465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7469 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7470 echo "${ECHO_T}$ac_cv_c_inline" >&6
7473 case $ac_cv_c_inline in
7476 case $ac_cv_c_inline in
7478 *) ac_val=$ac_cv_c_inline;;
7480 cat >>confdefs.h <<_ACEOF
7482 #define inline $ac_val
7490 echo "$as_me:$LINENO: checking for mode_t" >&5
7491 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
7492 if test "${ac_cv_type_mode_t+set}" = set; then
7493 echo $ECHO_N "(cached) $ECHO_C" >&6
7495 cat >conftest.$ac_ext <<_ACEOF
7498 cat confdefs.h >>conftest.$ac_ext
7499 cat >>conftest.$ac_ext <<_ACEOF
7500 /* end confdefs.h. */
7501 $ac_includes_default
7507 if (sizeof (mode_t))
7513 rm -f conftest.$ac_objext
7514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7515 (eval $ac_compile) 2>conftest.er1
7517 grep -v '^ *+' conftest.er1 >conftest.err
7519 cat conftest.err >&5
7520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521 (exit $ac_status); } &&
7522 { ac_try='test -z "$ac_cxx_werror_flag"
7523 || test ! -s conftest.err'
7524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528 (exit $ac_status); }; } &&
7529 { ac_try='test -s conftest.$ac_objext'
7530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534 (exit $ac_status); }; }; then
7535 ac_cv_type_mode_t=yes
7537 echo "$as_me: failed program was:" >&5
7538 sed 's/^/| /' conftest.$ac_ext >&5
7540 ac_cv_type_mode_t=no
7542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7544 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
7545 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
7546 if test $ac_cv_type_mode_t = yes; then
7550 cat >>confdefs.h <<_ACEOF
7556 echo "$as_me:$LINENO: checking for pid_t" >&5
7557 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7558 if test "${ac_cv_type_pid_t+set}" = set; then
7559 echo $ECHO_N "(cached) $ECHO_C" >&6
7561 cat >conftest.$ac_ext <<_ACEOF
7564 cat confdefs.h >>conftest.$ac_ext
7565 cat >>conftest.$ac_ext <<_ACEOF
7566 /* end confdefs.h. */
7567 $ac_includes_default
7579 rm -f conftest.$ac_objext
7580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7581 (eval $ac_compile) 2>conftest.er1
7583 grep -v '^ *+' conftest.er1 >conftest.err
7585 cat conftest.err >&5
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); } &&
7588 { ac_try='test -z "$ac_cxx_werror_flag"
7589 || test ! -s conftest.err'
7590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594 (exit $ac_status); }; } &&
7595 { ac_try='test -s conftest.$ac_objext'
7596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7600 (exit $ac_status); }; }; then
7601 ac_cv_type_pid_t=yes
7603 echo "$as_me: failed program was:" >&5
7604 sed 's/^/| /' conftest.$ac_ext >&5
7608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7610 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7611 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7612 if test $ac_cv_type_pid_t = yes; then
7616 cat >>confdefs.h <<_ACEOF
7622 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7623 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7624 if test "${ac_cv_type_uid_t+set}" = set; then
7625 echo $ECHO_N "(cached) $ECHO_C" >&6
7627 cat >conftest.$ac_ext <<_ACEOF
7630 cat confdefs.h >>conftest.$ac_ext
7631 cat >>conftest.$ac_ext <<_ACEOF
7632 /* end confdefs.h. */
7633 #include <sys/types.h>
7636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7637 $EGREP "uid_t" >/dev/null 2>&1; then
7638 ac_cv_type_uid_t=yes
7645 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7646 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7647 if test $ac_cv_type_uid_t = no; then
7649 cat >>confdefs.h <<\_ACEOF
7654 cat >>confdefs.h <<\_ACEOF
7661 echo "$as_me:$LINENO: checking for short" >&5
7662 echo $ECHO_N "checking for short... $ECHO_C" >&6
7663 if test "${ac_cv_type_short+set}" = set; then
7664 echo $ECHO_N "(cached) $ECHO_C" >&6
7666 cat >conftest.$ac_ext <<_ACEOF
7669 cat confdefs.h >>conftest.$ac_ext
7670 cat >>conftest.$ac_ext <<_ACEOF
7671 /* end confdefs.h. */
7672 $ac_includes_default
7684 rm -f conftest.$ac_objext
7685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7686 (eval $ac_compile) 2>conftest.er1
7688 grep -v '^ *+' conftest.er1 >conftest.err
7690 cat conftest.err >&5
7691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692 (exit $ac_status); } &&
7693 { ac_try='test -z "$ac_cxx_werror_flag"
7694 || test ! -s conftest.err'
7695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699 (exit $ac_status); }; } &&
7700 { ac_try='test -s conftest.$ac_objext'
7701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705 (exit $ac_status); }; }; then
7706 ac_cv_type_short=yes
7708 echo "$as_me: failed program was:" >&5
7709 sed 's/^/| /' conftest.$ac_ext >&5
7713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7715 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7716 echo "${ECHO_T}$ac_cv_type_short" >&6
7718 echo "$as_me:$LINENO: checking size of short" >&5
7719 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7720 if test "${ac_cv_sizeof_short+set}" = set; then
7721 echo $ECHO_N "(cached) $ECHO_C" >&6
7723 if test "$ac_cv_type_short" = yes; then
7724 # The cast to unsigned long works around a bug in the HP C Compiler
7725 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7726 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7727 # This bug is HP SR number 8606223364.
7728 if test "$cross_compiling" = yes; then
7729 # Depending upon the size, compute the lo and hi bounds.
7730 cat >conftest.$ac_ext <<_ACEOF
7733 cat confdefs.h >>conftest.$ac_ext
7734 cat >>conftest.$ac_ext <<_ACEOF
7735 /* end confdefs.h. */
7736 $ac_includes_default
7740 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7747 rm -f conftest.$ac_objext
7748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7749 (eval $ac_compile) 2>conftest.er1
7751 grep -v '^ *+' conftest.er1 >conftest.err
7753 cat conftest.err >&5
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); } &&
7756 { ac_try='test -z "$ac_cxx_werror_flag"
7757 || test ! -s conftest.err'
7758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); }; } &&
7763 { ac_try='test -s conftest.$ac_objext'
7764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); }; }; then
7771 cat >conftest.$ac_ext <<_ACEOF
7774 cat confdefs.h >>conftest.$ac_ext
7775 cat >>conftest.$ac_ext <<_ACEOF
7776 /* end confdefs.h. */
7777 $ac_includes_default
7781 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7788 rm -f conftest.$ac_objext
7789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7790 (eval $ac_compile) 2>conftest.er1
7792 grep -v '^ *+' conftest.er1 >conftest.err
7794 cat conftest.err >&5
7795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796 (exit $ac_status); } &&
7797 { ac_try='test -z "$ac_cxx_werror_flag"
7798 || test ! -s conftest.err'
7799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803 (exit $ac_status); }; } &&
7804 { ac_try='test -s conftest.$ac_objext'
7805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7809 (exit $ac_status); }; }; then
7810 ac_hi=$ac_mid; break
7812 echo "$as_me: failed program was:" >&5
7813 sed 's/^/| /' conftest.$ac_ext >&5
7815 ac_lo=`expr $ac_mid + 1`
7816 if test $ac_lo -le $ac_mid; then
7820 ac_mid=`expr 2 '*' $ac_mid + 1`
7822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7825 echo "$as_me: failed program was:" >&5
7826 sed 's/^/| /' conftest.$ac_ext >&5
7828 cat >conftest.$ac_ext <<_ACEOF
7831 cat confdefs.h >>conftest.$ac_ext
7832 cat >>conftest.$ac_ext <<_ACEOF
7833 /* end confdefs.h. */
7834 $ac_includes_default
7838 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7845 rm -f conftest.$ac_objext
7846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7847 (eval $ac_compile) 2>conftest.er1
7849 grep -v '^ *+' conftest.er1 >conftest.err
7851 cat conftest.err >&5
7852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853 (exit $ac_status); } &&
7854 { ac_try='test -z "$ac_cxx_werror_flag"
7855 || test ! -s conftest.err'
7856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860 (exit $ac_status); }; } &&
7861 { ac_try='test -s conftest.$ac_objext'
7862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866 (exit $ac_status); }; }; then
7869 cat >conftest.$ac_ext <<_ACEOF
7872 cat confdefs.h >>conftest.$ac_ext
7873 cat >>conftest.$ac_ext <<_ACEOF
7874 /* end confdefs.h. */
7875 $ac_includes_default
7879 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7886 rm -f conftest.$ac_objext
7887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7888 (eval $ac_compile) 2>conftest.er1
7890 grep -v '^ *+' conftest.er1 >conftest.err
7892 cat conftest.err >&5
7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); } &&
7895 { ac_try='test -z "$ac_cxx_werror_flag"
7896 || test ! -s conftest.err'
7897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); }; } &&
7902 { ac_try='test -s conftest.$ac_objext'
7903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); }; }; then
7908 ac_lo=$ac_mid; break
7910 echo "$as_me: failed program was:" >&5
7911 sed 's/^/| /' conftest.$ac_ext >&5
7913 ac_hi=`expr '(' $ac_mid ')' - 1`
7914 if test $ac_mid -le $ac_hi; then
7918 ac_mid=`expr 2 '*' $ac_mid`
7920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7923 echo "$as_me: failed program was:" >&5
7924 sed 's/^/| /' conftest.$ac_ext >&5
7928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7931 # Binary search between lo and hi bounds.
7932 while test "x$ac_lo" != "x$ac_hi"; do
7933 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7934 cat >conftest.$ac_ext <<_ACEOF
7937 cat confdefs.h >>conftest.$ac_ext
7938 cat >>conftest.$ac_ext <<_ACEOF
7939 /* end confdefs.h. */
7940 $ac_includes_default
7944 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7951 rm -f conftest.$ac_objext
7952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7953 (eval $ac_compile) 2>conftest.er1
7955 grep -v '^ *+' conftest.er1 >conftest.err
7957 cat conftest.err >&5
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); } &&
7960 { ac_try='test -z "$ac_cxx_werror_flag"
7961 || test ! -s conftest.err'
7962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); }; } &&
7967 { ac_try='test -s conftest.$ac_objext'
7968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972 (exit $ac_status); }; }; then
7975 echo "$as_me: failed program was:" >&5
7976 sed 's/^/| /' conftest.$ac_ext >&5
7978 ac_lo=`expr '(' $ac_mid ')' + 1`
7980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7983 ?*) ac_cv_sizeof_short=$ac_lo;;
7984 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7985 See \`config.log' for more details." >&5
7986 echo "$as_me: error: cannot compute sizeof (short), 77
7987 See \`config.log' for more details." >&2;}
7988 { (exit 1); exit 1; }; } ;;
7991 if test "$cross_compiling" = yes; then
7992 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7993 See \`config.log' for more details." >&5
7994 echo "$as_me: error: cannot run test program while cross compiling
7995 See \`config.log' for more details." >&2;}
7996 { (exit 1); exit 1; }; }
7998 cat >conftest.$ac_ext <<_ACEOF
8001 cat confdefs.h >>conftest.$ac_ext
8002 cat >>conftest.$ac_ext <<_ACEOF
8003 /* end confdefs.h. */
8004 $ac_includes_default
8005 long longval () { return (long) (sizeof (short)); }
8006 unsigned long ulongval () { return (long) (sizeof (short)); }
8013 FILE *f = fopen ("conftest.val", "w");
8016 if (((long) (sizeof (short))) < 0)
8018 long i = longval ();
8019 if (i != ((long) (sizeof (short))))
8021 fprintf (f, "%ld\n", i);
8025 unsigned long i = ulongval ();
8026 if (i != ((long) (sizeof (short))))
8028 fprintf (f, "%lu\n", i);
8030 exit (ferror (f) || fclose (f) != 0);
8036 rm -f conftest$ac_exeext
8037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8038 (eval $ac_link) 2>&5
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); }; }; then
8047 ac_cv_sizeof_short=`cat conftest.val`
8049 echo "$as_me: program exited with status $ac_status" >&5
8050 echo "$as_me: failed program was:" >&5
8051 sed 's/^/| /' conftest.$ac_ext >&5
8054 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
8055 See \`config.log' for more details." >&5
8056 echo "$as_me: error: cannot compute sizeof (short), 77
8057 See \`config.log' for more details." >&2;}
8058 { (exit 1); exit 1; }; }
8060 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8065 ac_cv_sizeof_short=0
8068 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8069 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
8070 cat >>confdefs.h <<_ACEOF
8071 #define SIZEOF_SHORT $ac_cv_sizeof_short
8075 echo "$as_me:$LINENO: checking for int" >&5
8076 echo $ECHO_N "checking for int... $ECHO_C" >&6
8077 if test "${ac_cv_type_int+set}" = set; then
8078 echo $ECHO_N "(cached) $ECHO_C" >&6
8080 cat >conftest.$ac_ext <<_ACEOF
8083 cat confdefs.h >>conftest.$ac_ext
8084 cat >>conftest.$ac_ext <<_ACEOF
8085 /* end confdefs.h. */
8086 $ac_includes_default
8098 rm -f conftest.$ac_objext
8099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8100 (eval $ac_compile) 2>conftest.er1
8102 grep -v '^ *+' conftest.er1 >conftest.err
8104 cat conftest.err >&5
8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106 (exit $ac_status); } &&
8107 { ac_try='test -z "$ac_cxx_werror_flag"
8108 || test ! -s conftest.err'
8109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); }; } &&
8114 { ac_try='test -s conftest.$ac_objext'
8115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); }; }; then
8122 echo "$as_me: failed program was:" >&5
8123 sed 's/^/| /' conftest.$ac_ext >&5
8127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8129 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
8130 echo "${ECHO_T}$ac_cv_type_int" >&6
8132 echo "$as_me:$LINENO: checking size of int" >&5
8133 echo $ECHO_N "checking size of int... $ECHO_C" >&6
8134 if test "${ac_cv_sizeof_int+set}" = set; then
8135 echo $ECHO_N "(cached) $ECHO_C" >&6
8137 if test "$ac_cv_type_int" = yes; then
8138 # The cast to unsigned long works around a bug in the HP C Compiler
8139 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8140 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8141 # This bug is HP SR number 8606223364.
8142 if test "$cross_compiling" = yes; then
8143 # Depending upon the size, compute the lo and hi bounds.
8144 cat >conftest.$ac_ext <<_ACEOF
8147 cat confdefs.h >>conftest.$ac_ext
8148 cat >>conftest.$ac_ext <<_ACEOF
8149 /* end confdefs.h. */
8150 $ac_includes_default
8154 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
8161 rm -f conftest.$ac_objext
8162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8163 (eval $ac_compile) 2>conftest.er1
8165 grep -v '^ *+' conftest.er1 >conftest.err
8167 cat conftest.err >&5
8168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169 (exit $ac_status); } &&
8170 { ac_try='test -z "$ac_cxx_werror_flag"
8171 || test ! -s conftest.err'
8172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176 (exit $ac_status); }; } &&
8177 { ac_try='test -s conftest.$ac_objext'
8178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182 (exit $ac_status); }; }; then
8185 cat >conftest.$ac_ext <<_ACEOF
8188 cat confdefs.h >>conftest.$ac_ext
8189 cat >>conftest.$ac_ext <<_ACEOF
8190 /* end confdefs.h. */
8191 $ac_includes_default
8195 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
8202 rm -f conftest.$ac_objext
8203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8204 (eval $ac_compile) 2>conftest.er1
8206 grep -v '^ *+' conftest.er1 >conftest.err
8208 cat conftest.err >&5
8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 (exit $ac_status); } &&
8211 { ac_try='test -z "$ac_cxx_werror_flag"
8212 || test ! -s conftest.err'
8213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217 (exit $ac_status); }; } &&
8218 { ac_try='test -s conftest.$ac_objext'
8219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); }; }; then
8224 ac_hi=$ac_mid; break
8226 echo "$as_me: failed program was:" >&5
8227 sed 's/^/| /' conftest.$ac_ext >&5
8229 ac_lo=`expr $ac_mid + 1`
8230 if test $ac_lo -le $ac_mid; then
8234 ac_mid=`expr 2 '*' $ac_mid + 1`
8236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8239 echo "$as_me: failed program was:" >&5
8240 sed 's/^/| /' conftest.$ac_ext >&5
8242 cat >conftest.$ac_ext <<_ACEOF
8245 cat confdefs.h >>conftest.$ac_ext
8246 cat >>conftest.$ac_ext <<_ACEOF
8247 /* end confdefs.h. */
8248 $ac_includes_default
8252 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
8259 rm -f conftest.$ac_objext
8260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8261 (eval $ac_compile) 2>conftest.er1
8263 grep -v '^ *+' conftest.er1 >conftest.err
8265 cat conftest.err >&5
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); } &&
8268 { ac_try='test -z "$ac_cxx_werror_flag"
8269 || test ! -s conftest.err'
8270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); }; } &&
8275 { ac_try='test -s conftest.$ac_objext'
8276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280 (exit $ac_status); }; }; then
8283 cat >conftest.$ac_ext <<_ACEOF
8286 cat confdefs.h >>conftest.$ac_ext
8287 cat >>conftest.$ac_ext <<_ACEOF
8288 /* end confdefs.h. */
8289 $ac_includes_default
8293 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
8300 rm -f conftest.$ac_objext
8301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8302 (eval $ac_compile) 2>conftest.er1
8304 grep -v '^ *+' conftest.er1 >conftest.err
8306 cat conftest.err >&5
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); } &&
8309 { ac_try='test -z "$ac_cxx_werror_flag"
8310 || test ! -s conftest.err'
8311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); }; } &&
8316 { ac_try='test -s conftest.$ac_objext'
8317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321 (exit $ac_status); }; }; then
8322 ac_lo=$ac_mid; break
8324 echo "$as_me: failed program was:" >&5
8325 sed 's/^/| /' conftest.$ac_ext >&5
8327 ac_hi=`expr '(' $ac_mid ')' - 1`
8328 if test $ac_mid -le $ac_hi; then
8332 ac_mid=`expr 2 '*' $ac_mid`
8334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8337 echo "$as_me: failed program was:" >&5
8338 sed 's/^/| /' conftest.$ac_ext >&5
8342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8345 # Binary search between lo and hi bounds.
8346 while test "x$ac_lo" != "x$ac_hi"; do
8347 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8348 cat >conftest.$ac_ext <<_ACEOF
8351 cat confdefs.h >>conftest.$ac_ext
8352 cat >>conftest.$ac_ext <<_ACEOF
8353 /* end confdefs.h. */
8354 $ac_includes_default
8358 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
8365 rm -f conftest.$ac_objext
8366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8367 (eval $ac_compile) 2>conftest.er1
8369 grep -v '^ *+' conftest.er1 >conftest.err
8371 cat conftest.err >&5
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); } &&
8374 { ac_try='test -z "$ac_cxx_werror_flag"
8375 || test ! -s conftest.err'
8376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); }; } &&
8381 { ac_try='test -s conftest.$ac_objext'
8382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); }; }; then
8389 echo "$as_me: failed program was:" >&5
8390 sed 's/^/| /' conftest.$ac_ext >&5
8392 ac_lo=`expr '(' $ac_mid ')' + 1`
8394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8397 ?*) ac_cv_sizeof_int=$ac_lo;;
8398 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
8399 See \`config.log' for more details." >&5
8400 echo "$as_me: error: cannot compute sizeof (int), 77
8401 See \`config.log' for more details." >&2;}
8402 { (exit 1); exit 1; }; } ;;
8405 if test "$cross_compiling" = yes; then
8406 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8407 See \`config.log' for more details." >&5
8408 echo "$as_me: error: cannot run test program while cross compiling
8409 See \`config.log' for more details." >&2;}
8410 { (exit 1); exit 1; }; }
8412 cat >conftest.$ac_ext <<_ACEOF
8415 cat confdefs.h >>conftest.$ac_ext
8416 cat >>conftest.$ac_ext <<_ACEOF
8417 /* end confdefs.h. */
8418 $ac_includes_default
8419 long longval () { return (long) (sizeof (int)); }
8420 unsigned long ulongval () { return (long) (sizeof (int)); }
8427 FILE *f = fopen ("conftest.val", "w");
8430 if (((long) (sizeof (int))) < 0)
8432 long i = longval ();
8433 if (i != ((long) (sizeof (int))))
8435 fprintf (f, "%ld\n", i);
8439 unsigned long i = ulongval ();
8440 if (i != ((long) (sizeof (int))))
8442 fprintf (f, "%lu\n", i);
8444 exit (ferror (f) || fclose (f) != 0);
8450 rm -f conftest$ac_exeext
8451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8452 (eval $ac_link) 2>&5
8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); }; }; then
8461 ac_cv_sizeof_int=`cat conftest.val`
8463 echo "$as_me: program exited with status $ac_status" >&5
8464 echo "$as_me: failed program was:" >&5
8465 sed 's/^/| /' conftest.$ac_ext >&5
8468 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
8469 See \`config.log' for more details." >&5
8470 echo "$as_me: error: cannot compute sizeof (int), 77
8471 See \`config.log' for more details." >&2;}
8472 { (exit 1); exit 1; }; }
8474 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8482 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
8483 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
8484 cat >>confdefs.h <<_ACEOF
8485 #define SIZEOF_INT $ac_cv_sizeof_int
8489 echo "$as_me:$LINENO: checking for long long" >&5
8490 echo $ECHO_N "checking for long long... $ECHO_C" >&6
8491 if test "${ac_cv_type_long_long+set}" = set; then
8492 echo $ECHO_N "(cached) $ECHO_C" >&6
8494 cat >conftest.$ac_ext <<_ACEOF
8497 cat confdefs.h >>conftest.$ac_ext
8498 cat >>conftest.$ac_ext <<_ACEOF
8499 /* end confdefs.h. */
8500 $ac_includes_default
8504 if ((long long *) 0)
8506 if (sizeof (long long))
8512 rm -f conftest.$ac_objext
8513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8514 (eval $ac_compile) 2>conftest.er1
8516 grep -v '^ *+' conftest.er1 >conftest.err
8518 cat conftest.err >&5
8519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520 (exit $ac_status); } &&
8521 { ac_try='test -z "$ac_cxx_werror_flag"
8522 || test ! -s conftest.err'
8523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); }; } &&
8528 { ac_try='test -s conftest.$ac_objext'
8529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); }; }; then
8534 ac_cv_type_long_long=yes
8536 echo "$as_me: failed program was:" >&5
8537 sed 's/^/| /' conftest.$ac_ext >&5
8539 ac_cv_type_long_long=no
8541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8543 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8544 echo "${ECHO_T}$ac_cv_type_long_long" >&6
8546 echo "$as_me:$LINENO: checking size of long long" >&5
8547 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
8548 if test "${ac_cv_sizeof_long_long+set}" = set; then
8549 echo $ECHO_N "(cached) $ECHO_C" >&6
8551 if test "$ac_cv_type_long_long" = yes; then
8552 # The cast to unsigned long works around a bug in the HP C Compiler
8553 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8554 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8555 # This bug is HP SR number 8606223364.
8556 if test "$cross_compiling" = yes; then
8557 # Depending upon the size, compute the lo and hi bounds.
8558 cat >conftest.$ac_ext <<_ACEOF
8561 cat confdefs.h >>conftest.$ac_ext
8562 cat >>conftest.$ac_ext <<_ACEOF
8563 /* end confdefs.h. */
8564 $ac_includes_default
8568 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
8575 rm -f conftest.$ac_objext
8576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8577 (eval $ac_compile) 2>conftest.er1
8579 grep -v '^ *+' conftest.er1 >conftest.err
8581 cat conftest.err >&5
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); } &&
8584 { ac_try='test -z "$ac_cxx_werror_flag"
8585 || test ! -s conftest.err'
8586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); }; } &&
8591 { ac_try='test -s conftest.$ac_objext'
8592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); }; }; then
8599 cat >conftest.$ac_ext <<_ACEOF
8602 cat confdefs.h >>conftest.$ac_ext
8603 cat >>conftest.$ac_ext <<_ACEOF
8604 /* end confdefs.h. */
8605 $ac_includes_default
8609 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
8616 rm -f conftest.$ac_objext
8617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8618 (eval $ac_compile) 2>conftest.er1
8620 grep -v '^ *+' conftest.er1 >conftest.err
8622 cat conftest.err >&5
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); } &&
8625 { ac_try='test -z "$ac_cxx_werror_flag"
8626 || test ! -s conftest.err'
8627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631 (exit $ac_status); }; } &&
8632 { ac_try='test -s conftest.$ac_objext'
8633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); }; }; then
8638 ac_hi=$ac_mid; break
8640 echo "$as_me: failed program was:" >&5
8641 sed 's/^/| /' conftest.$ac_ext >&5
8643 ac_lo=`expr $ac_mid + 1`
8644 if test $ac_lo -le $ac_mid; then
8648 ac_mid=`expr 2 '*' $ac_mid + 1`
8650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8653 echo "$as_me: failed program was:" >&5
8654 sed 's/^/| /' conftest.$ac_ext >&5
8656 cat >conftest.$ac_ext <<_ACEOF
8659 cat confdefs.h >>conftest.$ac_ext
8660 cat >>conftest.$ac_ext <<_ACEOF
8661 /* end confdefs.h. */
8662 $ac_includes_default
8666 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
8673 rm -f conftest.$ac_objext
8674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8675 (eval $ac_compile) 2>conftest.er1
8677 grep -v '^ *+' conftest.er1 >conftest.err
8679 cat conftest.err >&5
8680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681 (exit $ac_status); } &&
8682 { ac_try='test -z "$ac_cxx_werror_flag"
8683 || test ! -s conftest.err'
8684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688 (exit $ac_status); }; } &&
8689 { ac_try='test -s conftest.$ac_objext'
8690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694 (exit $ac_status); }; }; then
8697 cat >conftest.$ac_ext <<_ACEOF
8700 cat confdefs.h >>conftest.$ac_ext
8701 cat >>conftest.$ac_ext <<_ACEOF
8702 /* end confdefs.h. */
8703 $ac_includes_default
8707 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
8714 rm -f conftest.$ac_objext
8715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8716 (eval $ac_compile) 2>conftest.er1
8718 grep -v '^ *+' conftest.er1 >conftest.err
8720 cat conftest.err >&5
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); } &&
8723 { ac_try='test -z "$ac_cxx_werror_flag"
8724 || test ! -s conftest.err'
8725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 (exit $ac_status); }; } &&
8730 { ac_try='test -s conftest.$ac_objext'
8731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); }; }; then
8736 ac_lo=$ac_mid; break
8738 echo "$as_me: failed program was:" >&5
8739 sed 's/^/| /' conftest.$ac_ext >&5
8741 ac_hi=`expr '(' $ac_mid ')' - 1`
8742 if test $ac_mid -le $ac_hi; then
8746 ac_mid=`expr 2 '*' $ac_mid`
8748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8751 echo "$as_me: failed program was:" >&5
8752 sed 's/^/| /' conftest.$ac_ext >&5
8756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8759 # Binary search between lo and hi bounds.
8760 while test "x$ac_lo" != "x$ac_hi"; do
8761 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8762 cat >conftest.$ac_ext <<_ACEOF
8765 cat confdefs.h >>conftest.$ac_ext
8766 cat >>conftest.$ac_ext <<_ACEOF
8767 /* end confdefs.h. */
8768 $ac_includes_default
8772 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
8779 rm -f conftest.$ac_objext
8780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8781 (eval $ac_compile) 2>conftest.er1
8783 grep -v '^ *+' conftest.er1 >conftest.err
8785 cat conftest.err >&5
8786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787 (exit $ac_status); } &&
8788 { ac_try='test -z "$ac_cxx_werror_flag"
8789 || test ! -s conftest.err'
8790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794 (exit $ac_status); }; } &&
8795 { ac_try='test -s conftest.$ac_objext'
8796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800 (exit $ac_status); }; }; then
8803 echo "$as_me: failed program was:" >&5
8804 sed 's/^/| /' conftest.$ac_ext >&5
8806 ac_lo=`expr '(' $ac_mid ')' + 1`
8808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8811 ?*) ac_cv_sizeof_long_long=$ac_lo;;
8812 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
8813 See \`config.log' for more details." >&5
8814 echo "$as_me: error: cannot compute sizeof (long long), 77
8815 See \`config.log' for more details." >&2;}
8816 { (exit 1); exit 1; }; } ;;
8819 if test "$cross_compiling" = yes; then
8820 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8821 See \`config.log' for more details." >&5
8822 echo "$as_me: error: cannot run test program while cross compiling
8823 See \`config.log' for more details." >&2;}
8824 { (exit 1); exit 1; }; }
8826 cat >conftest.$ac_ext <<_ACEOF
8829 cat confdefs.h >>conftest.$ac_ext
8830 cat >>conftest.$ac_ext <<_ACEOF
8831 /* end confdefs.h. */
8832 $ac_includes_default
8833 long longval () { return (long) (sizeof (long long)); }
8834 unsigned long ulongval () { return (long) (sizeof (long long)); }
8841 FILE *f = fopen ("conftest.val", "w");
8844 if (((long) (sizeof (long long))) < 0)
8846 long i = longval ();
8847 if (i != ((long) (sizeof (long long))))
8849 fprintf (f, "%ld\n", i);
8853 unsigned long i = ulongval ();
8854 if (i != ((long) (sizeof (long long))))
8856 fprintf (f, "%lu\n", i);
8858 exit (ferror (f) || fclose (f) != 0);
8864 rm -f conftest$ac_exeext
8865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8866 (eval $ac_link) 2>&5
8868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); }; }; then
8875 ac_cv_sizeof_long_long=`cat conftest.val`
8877 echo "$as_me: program exited with status $ac_status" >&5
8878 echo "$as_me: failed program was:" >&5
8879 sed 's/^/| /' conftest.$ac_ext >&5
8882 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
8883 See \`config.log' for more details." >&5
8884 echo "$as_me: error: cannot compute sizeof (long long), 77
8885 See \`config.log' for more details." >&2;}
8886 { (exit 1); exit 1; }; }
8888 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8893 ac_cv_sizeof_long_long=0
8896 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
8897 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
8898 cat >>confdefs.h <<_ACEOF
8899 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8903 echo "$as_me:$LINENO: checking for int *" >&5
8904 echo $ECHO_N "checking for int *... $ECHO_C" >&6
8905 if test "${ac_cv_type_int_p+set}" = set; then
8906 echo $ECHO_N "(cached) $ECHO_C" >&6
8908 cat >conftest.$ac_ext <<_ACEOF
8911 cat confdefs.h >>conftest.$ac_ext
8912 cat >>conftest.$ac_ext <<_ACEOF
8913 /* end confdefs.h. */
8914 $ac_includes_default
8926 rm -f conftest.$ac_objext
8927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8928 (eval $ac_compile) 2>conftest.er1
8930 grep -v '^ *+' conftest.er1 >conftest.err
8932 cat conftest.err >&5
8933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934 (exit $ac_status); } &&
8935 { ac_try='test -z "$ac_cxx_werror_flag"
8936 || test ! -s conftest.err'
8937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); }; } &&
8942 { ac_try='test -s conftest.$ac_objext'
8943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947 (exit $ac_status); }; }; then
8948 ac_cv_type_int_p=yes
8950 echo "$as_me: failed program was:" >&5
8951 sed 's/^/| /' conftest.$ac_ext >&5
8955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8957 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
8958 echo "${ECHO_T}$ac_cv_type_int_p" >&6
8960 echo "$as_me:$LINENO: checking size of int *" >&5
8961 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
8962 if test "${ac_cv_sizeof_int_p+set}" = set; then
8963 echo $ECHO_N "(cached) $ECHO_C" >&6
8965 if test "$ac_cv_type_int_p" = yes; then
8966 # The cast to unsigned long works around a bug in the HP C Compiler
8967 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8968 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8969 # This bug is HP SR number 8606223364.
8970 if test "$cross_compiling" = yes; then
8971 # Depending upon the size, compute the lo and hi bounds.
8972 cat >conftest.$ac_ext <<_ACEOF
8975 cat confdefs.h >>conftest.$ac_ext
8976 cat >>conftest.$ac_ext <<_ACEOF
8977 /* end confdefs.h. */
8978 $ac_includes_default
8982 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
8989 rm -f conftest.$ac_objext
8990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8991 (eval $ac_compile) 2>conftest.er1
8993 grep -v '^ *+' conftest.er1 >conftest.err
8995 cat conftest.err >&5
8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997 (exit $ac_status); } &&
8998 { ac_try='test -z "$ac_cxx_werror_flag"
8999 || test ! -s conftest.err'
9000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004 (exit $ac_status); }; } &&
9005 { ac_try='test -s conftest.$ac_objext'
9006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); }; }; then
9013 cat >conftest.$ac_ext <<_ACEOF
9016 cat confdefs.h >>conftest.$ac_ext
9017 cat >>conftest.$ac_ext <<_ACEOF
9018 /* end confdefs.h. */
9019 $ac_includes_default
9023 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
9030 rm -f conftest.$ac_objext
9031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9032 (eval $ac_compile) 2>conftest.er1
9034 grep -v '^ *+' conftest.er1 >conftest.err
9036 cat conftest.err >&5
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); } &&
9039 { ac_try='test -z "$ac_cxx_werror_flag"
9040 || test ! -s conftest.err'
9041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045 (exit $ac_status); }; } &&
9046 { ac_try='test -s conftest.$ac_objext'
9047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); }; }; then
9052 ac_hi=$ac_mid; break
9054 echo "$as_me: failed program was:" >&5
9055 sed 's/^/| /' conftest.$ac_ext >&5
9057 ac_lo=`expr $ac_mid + 1`
9058 if test $ac_lo -le $ac_mid; then
9062 ac_mid=`expr 2 '*' $ac_mid + 1`
9064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9067 echo "$as_me: failed program was:" >&5
9068 sed 's/^/| /' conftest.$ac_ext >&5
9070 cat >conftest.$ac_ext <<_ACEOF
9073 cat confdefs.h >>conftest.$ac_ext
9074 cat >>conftest.$ac_ext <<_ACEOF
9075 /* end confdefs.h. */
9076 $ac_includes_default
9080 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
9087 rm -f conftest.$ac_objext
9088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9089 (eval $ac_compile) 2>conftest.er1
9091 grep -v '^ *+' conftest.er1 >conftest.err
9093 cat conftest.err >&5
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 (exit $ac_status); } &&
9096 { ac_try='test -z "$ac_cxx_werror_flag"
9097 || test ! -s conftest.err'
9098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 (exit $ac_status); }; } &&
9103 { ac_try='test -s conftest.$ac_objext'
9104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108 (exit $ac_status); }; }; then
9111 cat >conftest.$ac_ext <<_ACEOF
9114 cat confdefs.h >>conftest.$ac_ext
9115 cat >>conftest.$ac_ext <<_ACEOF
9116 /* end confdefs.h. */
9117 $ac_includes_default
9121 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
9128 rm -f conftest.$ac_objext
9129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9130 (eval $ac_compile) 2>conftest.er1
9132 grep -v '^ *+' conftest.er1 >conftest.err
9134 cat conftest.err >&5
9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 (exit $ac_status); } &&
9137 { ac_try='test -z "$ac_cxx_werror_flag"
9138 || test ! -s conftest.err'
9139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143 (exit $ac_status); }; } &&
9144 { ac_try='test -s conftest.$ac_objext'
9145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 (exit $ac_status); }; }; then
9150 ac_lo=$ac_mid; break
9152 echo "$as_me: failed program was:" >&5
9153 sed 's/^/| /' conftest.$ac_ext >&5
9155 ac_hi=`expr '(' $ac_mid ')' - 1`
9156 if test $ac_mid -le $ac_hi; then
9160 ac_mid=`expr 2 '*' $ac_mid`
9162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9165 echo "$as_me: failed program was:" >&5
9166 sed 's/^/| /' conftest.$ac_ext >&5
9170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9173 # Binary search between lo and hi bounds.
9174 while test "x$ac_lo" != "x$ac_hi"; do
9175 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9176 cat >conftest.$ac_ext <<_ACEOF
9179 cat confdefs.h >>conftest.$ac_ext
9180 cat >>conftest.$ac_ext <<_ACEOF
9181 /* end confdefs.h. */
9182 $ac_includes_default
9186 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
9193 rm -f conftest.$ac_objext
9194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9195 (eval $ac_compile) 2>conftest.er1
9197 grep -v '^ *+' conftest.er1 >conftest.err
9199 cat conftest.err >&5
9200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201 (exit $ac_status); } &&
9202 { ac_try='test -z "$ac_cxx_werror_flag"
9203 || test ! -s conftest.err'
9204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); }; } &&
9209 { ac_try='test -s conftest.$ac_objext'
9210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214 (exit $ac_status); }; }; then
9217 echo "$as_me: failed program was:" >&5
9218 sed 's/^/| /' conftest.$ac_ext >&5
9220 ac_lo=`expr '(' $ac_mid ')' + 1`
9222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9225 ?*) ac_cv_sizeof_int_p=$ac_lo;;
9226 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
9227 See \`config.log' for more details." >&5
9228 echo "$as_me: error: cannot compute sizeof (int *), 77
9229 See \`config.log' for more details." >&2;}
9230 { (exit 1); exit 1; }; } ;;
9233 if test "$cross_compiling" = yes; then
9234 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9235 See \`config.log' for more details." >&5
9236 echo "$as_me: error: cannot run test program while cross compiling
9237 See \`config.log' for more details." >&2;}
9238 { (exit 1); exit 1; }; }
9240 cat >conftest.$ac_ext <<_ACEOF
9243 cat confdefs.h >>conftest.$ac_ext
9244 cat >>conftest.$ac_ext <<_ACEOF
9245 /* end confdefs.h. */
9246 $ac_includes_default
9247 long longval () { return (long) (sizeof (int *)); }
9248 unsigned long ulongval () { return (long) (sizeof (int *)); }
9255 FILE *f = fopen ("conftest.val", "w");
9258 if (((long) (sizeof (int *))) < 0)
9260 long i = longval ();
9261 if (i != ((long) (sizeof (int *))))
9263 fprintf (f, "%ld\n", i);
9267 unsigned long i = ulongval ();
9268 if (i != ((long) (sizeof (int *))))
9270 fprintf (f, "%lu\n", i);
9272 exit (ferror (f) || fclose (f) != 0);
9278 rm -f conftest$ac_exeext
9279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9280 (eval $ac_link) 2>&5
9282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); }; }; then
9289 ac_cv_sizeof_int_p=`cat conftest.val`
9291 echo "$as_me: program exited with status $ac_status" >&5
9292 echo "$as_me: failed program was:" >&5
9293 sed 's/^/| /' conftest.$ac_ext >&5
9296 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
9297 See \`config.log' for more details." >&5
9298 echo "$as_me: error: cannot compute sizeof (int *), 77
9299 See \`config.log' for more details." >&2;}
9300 { (exit 1); exit 1; }; }
9302 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9307 ac_cv_sizeof_int_p=0
9310 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
9311 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
9312 cat >>confdefs.h <<_ACEOF
9313 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
9319 echo "$as_me:$LINENO: checking for int16_t" >&5
9320 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
9321 if test "${rxvt_cv_int16_t+set}" = set; then
9322 echo $ECHO_N "(cached) $ECHO_C" >&6
9324 cat >conftest.$ac_ext <<_ACEOF
9327 cat confdefs.h >>conftest.$ac_ext
9328 cat >>conftest.$ac_ext <<_ACEOF
9329 /* end confdefs.h. */
9339 rm -f conftest.$ac_objext
9340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9341 (eval $ac_compile) 2>conftest.er1
9343 grep -v '^ *+' conftest.er1 >conftest.err
9345 cat conftest.err >&5
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); } &&
9348 { ac_try='test -z "$ac_cxx_werror_flag"
9349 || test ! -s conftest.err'
9350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354 (exit $ac_status); }; } &&
9355 { ac_try='test -s conftest.$ac_objext'
9356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); }; }; then
9363 echo "$as_me: failed program was:" >&5
9364 sed 's/^/| /' conftest.$ac_ext >&5
9366 if test "$ac_cv_sizeof_char" -ge 2; then
9367 rxvt_cv_int16_t=" char"
9369 if test "$ac_cv_sizeof_short" -ge 2; then
9370 rxvt_cv_int16_t=" short"
9372 if test "$ac_cv_sizeof_int" -ge 2; then
9373 rxvt_cv_int16_t=" int"
9375 if test "$ac_cv_sizeof_long" -ge 2; then
9376 rxvt_cv_int16_t=" long"
9378 if test "$ac_cv_sizeof_long_long" -ge 2; then
9379 rxvt_cv_int16_t=" long long"
9381 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
9388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9390 echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5
9391 echo "${ECHO_T}$rxvt_cv_int16_t" >&6
9392 if test x"$rxvt_cv_int16_t" != xyes; then
9393 rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;"
9395 if test x"" = x; then
9396 rxvt_int16_typedef="/* typedef short int16_t; */"
9398 rxvt_int16_typedef="/* typedef short int16_t; */"
9402 echo "$as_me:$LINENO: checking for uint16_t" >&5
9403 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
9404 if test "${rxvt_cv_uint16_t+set}" = set; then
9405 echo $ECHO_N "(cached) $ECHO_C" >&6
9407 cat >conftest.$ac_ext <<_ACEOF
9410 cat confdefs.h >>conftest.$ac_ext
9411 cat >>conftest.$ac_ext <<_ACEOF
9412 /* end confdefs.h. */
9422 rm -f conftest.$ac_objext
9423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9424 (eval $ac_compile) 2>conftest.er1
9426 grep -v '^ *+' conftest.er1 >conftest.err
9428 cat conftest.err >&5
9429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430 (exit $ac_status); } &&
9431 { ac_try='test -z "$ac_cxx_werror_flag"
9432 || test ! -s conftest.err'
9433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437 (exit $ac_status); }; } &&
9438 { ac_try='test -s conftest.$ac_objext'
9439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443 (exit $ac_status); }; }; then
9444 rxvt_cv_uint16_t=yes
9446 echo "$as_me: failed program was:" >&5
9447 sed 's/^/| /' conftest.$ac_ext >&5
9449 if test "$ac_cv_sizeof_char" -ge 2; then
9450 rxvt_cv_uint16_t="unsigned char"
9452 if test "$ac_cv_sizeof_short" -ge 2; then
9453 rxvt_cv_uint16_t="unsigned short"
9455 if test "$ac_cv_sizeof_int" -ge 2; then
9456 rxvt_cv_uint16_t="unsigned int"
9458 if test "$ac_cv_sizeof_long" -ge 2; then
9459 rxvt_cv_uint16_t="unsigned long"
9461 if test "$ac_cv_sizeof_long_long" -ge 2; then
9462 rxvt_cv_uint16_t="unsigned long long"
9464 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default
9471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9473 echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5
9474 echo "${ECHO_T}$rxvt_cv_uint16_t" >&6
9475 if test x"$rxvt_cv_uint16_t" != xyes; then
9476 rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;"
9478 if test x"unsigned" = x; then
9479 rxvt_uint16_typedef="/* typedef short uint16_t; */"
9481 rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */"
9485 echo "$as_me:$LINENO: checking for int32_t" >&5
9486 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
9487 if test "${rxvt_cv_int32_t+set}" = set; then
9488 echo $ECHO_N "(cached) $ECHO_C" >&6
9490 cat >conftest.$ac_ext <<_ACEOF
9493 cat confdefs.h >>conftest.$ac_ext
9494 cat >>conftest.$ac_ext <<_ACEOF
9495 /* end confdefs.h. */
9505 rm -f conftest.$ac_objext
9506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9507 (eval $ac_compile) 2>conftest.er1
9509 grep -v '^ *+' conftest.er1 >conftest.err
9511 cat conftest.err >&5
9512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513 (exit $ac_status); } &&
9514 { ac_try='test -z "$ac_cxx_werror_flag"
9515 || test ! -s conftest.err'
9516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); }; } &&
9521 { ac_try='test -s conftest.$ac_objext'
9522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526 (exit $ac_status); }; }; then
9529 echo "$as_me: failed program was:" >&5
9530 sed 's/^/| /' conftest.$ac_ext >&5
9532 if test "$ac_cv_sizeof_char" -ge 4; then
9533 rxvt_cv_int32_t=" char"
9535 if test "$ac_cv_sizeof_short" -ge 4; then
9536 rxvt_cv_int32_t=" short"
9538 if test "$ac_cv_sizeof_int" -ge 4; then
9539 rxvt_cv_int32_t=" int"
9541 if test "$ac_cv_sizeof_long" -ge 4; then
9542 rxvt_cv_int32_t=" long"
9544 if test "$ac_cv_sizeof_long_long" -ge 4; then
9545 rxvt_cv_int32_t=" long long"
9547 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
9554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9556 echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5
9557 echo "${ECHO_T}$rxvt_cv_int32_t" >&6
9558 if test x"$rxvt_cv_int32_t" != xyes; then
9559 rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;"
9561 if test x"" = x; then
9562 rxvt_int32_typedef="/* typedef int int32_t; */"
9564 rxvt_int32_typedef="/* typedef int int32_t; */"
9568 echo "$as_me:$LINENO: checking for uint32_t" >&5
9569 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
9570 if test "${rxvt_cv_uint32_t+set}" = set; then
9571 echo $ECHO_N "(cached) $ECHO_C" >&6
9573 cat >conftest.$ac_ext <<_ACEOF
9576 cat confdefs.h >>conftest.$ac_ext
9577 cat >>conftest.$ac_ext <<_ACEOF
9578 /* end confdefs.h. */
9588 rm -f conftest.$ac_objext
9589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9590 (eval $ac_compile) 2>conftest.er1
9592 grep -v '^ *+' conftest.er1 >conftest.err
9594 cat conftest.err >&5
9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596 (exit $ac_status); } &&
9597 { ac_try='test -z "$ac_cxx_werror_flag"
9598 || test ! -s conftest.err'
9599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 (exit $ac_status); }; } &&
9604 { ac_try='test -s conftest.$ac_objext'
9605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 (exit $ac_status); }; }; then
9610 rxvt_cv_uint32_t=yes
9612 echo "$as_me: failed program was:" >&5
9613 sed 's/^/| /' conftest.$ac_ext >&5
9615 if test "$ac_cv_sizeof_char" -ge 4; then
9616 rxvt_cv_uint32_t="unsigned char"
9618 if test "$ac_cv_sizeof_short" -ge 4; then
9619 rxvt_cv_uint32_t="unsigned short"
9621 if test "$ac_cv_sizeof_int" -ge 4; then
9622 rxvt_cv_uint32_t="unsigned int"
9624 if test "$ac_cv_sizeof_long" -ge 4; then
9625 rxvt_cv_uint32_t="unsigned long"
9627 if test "$ac_cv_sizeof_long_long" -ge 4; then
9628 rxvt_cv_uint32_t="unsigned long long"
9630 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default
9637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9639 echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5
9640 echo "${ECHO_T}$rxvt_cv_uint32_t" >&6
9641 if test x"$rxvt_cv_uint32_t" != xyes; then
9642 rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;"
9644 if test x"unsigned" = x; then
9645 rxvt_uint32_typedef="/* typedef int uint32_t; */"
9647 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
9651 if test "$ac_cv_sizeof_int_p" -eq 8; then
9652 rxvt_intp_define="#define intp_t int64_t"
9653 rxvt_u_intp_define="#define u_intp_t u_int64_t"
9655 if test "$ac_cv_sizeof_int_p" -eq 4; then
9656 rxvt_intp_define="#define intp_t int32_t"
9657 rxvt_u_intp_define="#define u_intp_t u_int32_t"
9659 if test "$ac_cv_sizeof_int_p" -eq 2; then
9660 rxvt_intp_define="#define intp_t int16_t"
9661 rxvt_u_intp_define="#define u_intp_t u_int16_t"
9663 rxvt_intp_define="#error set intp_t"
9664 rxvt_u_intp_define="#error set u_intp_t"
9671 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
9672 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
9673 if test "${ac_cv_type_signal+set}" = set; then
9674 echo $ECHO_N "(cached) $ECHO_C" >&6
9676 cat >conftest.$ac_ext <<_ACEOF
9679 cat confdefs.h >>conftest.$ac_ext
9680 cat >>conftest.$ac_ext <<_ACEOF
9681 /* end confdefs.h. */
9682 #include <sys/types.h>
9688 extern "C" void (*signal (int, void (*)(int)))(int);
9690 void (*signal ()) ();
9701 rm -f conftest.$ac_objext
9702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9703 (eval $ac_compile) 2>conftest.er1
9705 grep -v '^ *+' conftest.er1 >conftest.err
9707 cat conftest.err >&5
9708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709 (exit $ac_status); } &&
9710 { ac_try='test -z "$ac_cxx_werror_flag"
9711 || test ! -s conftest.err'
9712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); }; } &&
9717 { ac_try='test -s conftest.$ac_objext'
9718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722 (exit $ac_status); }; }; then
9723 ac_cv_type_signal=void
9725 echo "$as_me: failed program was:" >&5
9726 sed 's/^/| /' conftest.$ac_ext >&5
9728 ac_cv_type_signal=int
9730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9732 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9733 echo "${ECHO_T}$ac_cv_type_signal" >&6
9735 cat >>confdefs.h <<_ACEOF
9736 #define RETSIGTYPE $ac_cv_type_signal
9750 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9751 echo "$as_me:$LINENO: checking for $ac_func" >&5
9752 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9753 if eval "test \"\${$as_ac_var+set}\" = set"; then
9754 echo $ECHO_N "(cached) $ECHO_C" >&6
9756 cat >conftest.$ac_ext <<_ACEOF
9759 cat confdefs.h >>conftest.$ac_ext
9760 cat >>conftest.$ac_ext <<_ACEOF
9761 /* end confdefs.h. */
9762 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9764 #define $ac_func innocuous_$ac_func
9766 /* System header to define __stub macros and hopefully few prototypes,
9767 which can conflict with char $ac_func (); below.
9768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9769 <limits.h> exists even on freestanding compilers. */
9772 # include <limits.h>
9774 # include <assert.h>
9779 /* Override any gcc2 internal prototype to avoid an error. */
9784 /* We use char because int might match the return type of a gcc2
9785 builtin and then its argument prototype would still apply. */
9787 /* The GNU C library defines this for functions which it implements
9788 to always fail with ENOSYS. Some functions are actually named
9789 something starting with __ and the normal name is an alias. */
9790 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9793 char (*f) () = $ac_func;
9802 return f != $ac_func;
9807 rm -f conftest.$ac_objext conftest$ac_exeext
9808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9809 (eval $ac_link) 2>conftest.er1
9811 grep -v '^ *+' conftest.er1 >conftest.err
9813 cat conftest.err >&5
9814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 (exit $ac_status); } &&
9816 { ac_try='test -z "$ac_cxx_werror_flag"
9817 || test ! -s conftest.err'
9818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); }; } &&
9823 { ac_try='test -s conftest$ac_exeext'
9824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); }; }; then
9829 eval "$as_ac_var=yes"
9831 echo "$as_me: failed program was:" >&5
9832 sed 's/^/| /' conftest.$ac_ext >&5
9834 eval "$as_ac_var=no"
9836 rm -f conftest.err conftest.$ac_objext \
9837 conftest$ac_exeext conftest.$ac_ext
9839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9840 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9841 if test `eval echo '${'$as_ac_var'}'` = yes; then
9842 cat >>confdefs.h <<_ACEOF
9843 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9855 # Check whether --enable-utmp or --disable-utmp was given.
9856 if test "${enable_utmp+set}" = set; then
9857 enableval="$enable_utmp"
9858 if test x$enableval = xyes -o x$enableval = xno; then
9859 support_utmp=$enableval
9863 # Check whether --enable-wtmp or --disable-wtmp was given.
9864 if test "${enable_wtmp+set}" = set; then
9865 enableval="$enable_wtmp"
9866 if test x$enableval = xyes -o x$enableval = xno; then
9867 support_wtmp=$enableval
9871 # Check whether --enable-lastlog or --disable-lastlog was given.
9872 if test "${enable_lastlog+set}" = set; then
9873 enableval="$enable_lastlog"
9874 if test x$enableval = xyes -o x$enableval = xno; then
9875 support_lastlog=$enableval
9879 if test x$support_utmp = xyes; then
9881 cat >>confdefs.h <<\_ACEOF
9882 #define UTMP_SUPPORT 1
9886 if test x$support_wtmp = xyes; then
9888 cat >>confdefs.h <<\_ACEOF
9889 #define WTMP_SUPPORT 1
9893 if test x$support_lastlog = xyes; then
9895 cat >>confdefs.h <<\_ACEOF
9896 #define LASTLOG_SUPPORT 1
9910 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9911 echo "$as_me:$LINENO: checking for $ac_func" >&5
9912 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9913 if eval "test \"\${$as_ac_var+set}\" = set"; then
9914 echo $ECHO_N "(cached) $ECHO_C" >&6
9916 cat >conftest.$ac_ext <<_ACEOF
9919 cat confdefs.h >>conftest.$ac_ext
9920 cat >>conftest.$ac_ext <<_ACEOF
9921 /* end confdefs.h. */
9922 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9924 #define $ac_func innocuous_$ac_func
9926 /* System header to define __stub macros and hopefully few prototypes,
9927 which can conflict with char $ac_func (); below.
9928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9929 <limits.h> exists even on freestanding compilers. */
9932 # include <limits.h>
9934 # include <assert.h>
9939 /* Override any gcc2 internal prototype to avoid an error. */
9944 /* We use char because int might match the return type of a gcc2
9945 builtin and then its argument prototype would still apply. */
9947 /* The GNU C library defines this for functions which it implements
9948 to always fail with ENOSYS. Some functions are actually named
9949 something starting with __ and the normal name is an alias. */
9950 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9953 char (*f) () = $ac_func;
9962 return f != $ac_func;
9967 rm -f conftest.$ac_objext conftest$ac_exeext
9968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9969 (eval $ac_link) 2>conftest.er1
9971 grep -v '^ *+' conftest.er1 >conftest.err
9973 cat conftest.err >&5
9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 (exit $ac_status); } &&
9976 { ac_try='test -z "$ac_cxx_werror_flag"
9977 || test ! -s conftest.err'
9978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); }; } &&
9983 { ac_try='test -s conftest$ac_exeext'
9984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); }; }; then
9989 eval "$as_ac_var=yes"
9991 echo "$as_me: failed program was:" >&5
9992 sed 's/^/| /' conftest.$ac_ext >&5
9994 eval "$as_ac_var=no"
9996 rm -f conftest.err conftest.$ac_objext \
9997 conftest$ac_exeext conftest.$ac_ext
9999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10000 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10001 if test `eval echo '${'$as_ac_var'}'` = yes; then
10002 cat >>confdefs.h <<_ACEOF
10003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10019 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10020 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10021 echo "$as_me:$LINENO: checking for $ac_header" >&5
10022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10024 echo $ECHO_N "(cached) $ECHO_C" >&6
10026 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10027 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10029 # Is the header compilable?
10030 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10031 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10032 cat >conftest.$ac_ext <<_ACEOF
10035 cat confdefs.h >>conftest.$ac_ext
10036 cat >>conftest.$ac_ext <<_ACEOF
10037 /* end confdefs.h. */
10038 $ac_includes_default
10039 #include <$ac_header>
10041 rm -f conftest.$ac_objext
10042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10043 (eval $ac_compile) 2>conftest.er1
10045 grep -v '^ *+' conftest.er1 >conftest.err
10047 cat conftest.err >&5
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); } &&
10050 { ac_try='test -z "$ac_cxx_werror_flag"
10051 || test ! -s conftest.err'
10052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10053 (eval $ac_try) 2>&5
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); }; } &&
10057 { ac_try='test -s conftest.$ac_objext'
10058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10059 (eval $ac_try) 2>&5
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); }; }; then
10063 ac_header_compiler=yes
10065 echo "$as_me: failed program was:" >&5
10066 sed 's/^/| /' conftest.$ac_ext >&5
10068 ac_header_compiler=no
10070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10071 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10072 echo "${ECHO_T}$ac_header_compiler" >&6
10074 # Is the header present?
10075 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10076 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10077 cat >conftest.$ac_ext <<_ACEOF
10080 cat confdefs.h >>conftest.$ac_ext
10081 cat >>conftest.$ac_ext <<_ACEOF
10082 /* end confdefs.h. */
10083 #include <$ac_header>
10085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10088 grep -v '^ *+' conftest.er1 >conftest.err
10090 cat conftest.err >&5
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); } >/dev/null; then
10093 if test -s conftest.err; then
10094 ac_cpp_err=$ac_cxx_preproc_warn_flag
10095 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10102 if test -z "$ac_cpp_err"; then
10103 ac_header_preproc=yes
10105 echo "$as_me: failed program was:" >&5
10106 sed 's/^/| /' conftest.$ac_ext >&5
10108 ac_header_preproc=no
10110 rm -f conftest.err conftest.$ac_ext
10111 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10112 echo "${ECHO_T}$ac_header_preproc" >&6
10114 # So? What about this header?
10115 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10117 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10118 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10120 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10121 ac_header_preproc=yes
10124 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10125 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10126 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10127 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10128 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10129 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10130 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10131 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10133 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10134 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10135 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10138 ## ------------------------------------------ ##
10139 ## Report this to the AC_PACKAGE_NAME lists. ##
10140 ## ------------------------------------------ ##
10143 sed "s/^/$as_me: WARNING: /" >&2
10146 echo "$as_me:$LINENO: checking for $ac_header" >&5
10147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10149 echo $ECHO_N "(cached) $ECHO_C" >&6
10151 eval "$as_ac_Header=\$ac_header_preproc"
10153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10154 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10158 cat >>confdefs.h <<_ACEOF
10159 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10168 if test "${ac_cv_header_utmp_h+set}" = set; then
10169 echo "$as_me:$LINENO: checking for utmp.h" >&5
10170 echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
10171 if test "${ac_cv_header_utmp_h+set}" = set; then
10172 echo $ECHO_N "(cached) $ECHO_C" >&6
10174 echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
10175 echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
10177 # Is the header compilable?
10178 echo "$as_me:$LINENO: checking utmp.h usability" >&5
10179 echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6
10180 cat >conftest.$ac_ext <<_ACEOF
10183 cat confdefs.h >>conftest.$ac_ext
10184 cat >>conftest.$ac_ext <<_ACEOF
10185 /* end confdefs.h. */
10186 $ac_includes_default
10189 rm -f conftest.$ac_objext
10190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10191 (eval $ac_compile) 2>conftest.er1
10193 grep -v '^ *+' conftest.er1 >conftest.err
10195 cat conftest.err >&5
10196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197 (exit $ac_status); } &&
10198 { ac_try='test -z "$ac_cxx_werror_flag"
10199 || test ! -s conftest.err'
10200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10201 (eval $ac_try) 2>&5
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); }; } &&
10205 { ac_try='test -s conftest.$ac_objext'
10206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10207 (eval $ac_try) 2>&5
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); }; }; then
10211 ac_header_compiler=yes
10213 echo "$as_me: failed program was:" >&5
10214 sed 's/^/| /' conftest.$ac_ext >&5
10216 ac_header_compiler=no
10218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10219 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10220 echo "${ECHO_T}$ac_header_compiler" >&6
10222 # Is the header present?
10223 echo "$as_me:$LINENO: checking utmp.h presence" >&5
10224 echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6
10225 cat >conftest.$ac_ext <<_ACEOF
10228 cat confdefs.h >>conftest.$ac_ext
10229 cat >>conftest.$ac_ext <<_ACEOF
10230 /* end confdefs.h. */
10233 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10234 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10236 grep -v '^ *+' conftest.er1 >conftest.err
10238 cat conftest.err >&5
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); } >/dev/null; then
10241 if test -s conftest.err; then
10242 ac_cpp_err=$ac_cxx_preproc_warn_flag
10243 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10250 if test -z "$ac_cpp_err"; then
10251 ac_header_preproc=yes
10253 echo "$as_me: failed program was:" >&5
10254 sed 's/^/| /' conftest.$ac_ext >&5
10256 ac_header_preproc=no
10258 rm -f conftest.err conftest.$ac_ext
10259 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10260 echo "${ECHO_T}$ac_header_preproc" >&6
10262 # So? What about this header?
10263 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10265 { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
10266 echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10267 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5
10268 echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;}
10269 ac_header_preproc=yes
10272 { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5
10273 echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;}
10274 { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5
10275 echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;}
10276 { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5
10277 echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;}
10278 { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5
10279 echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
10280 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5
10281 echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;}
10282 { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5
10283 echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;}
10286 ## ------------------------------------------ ##
10287 ## Report this to the AC_PACKAGE_NAME lists. ##
10288 ## ------------------------------------------ ##
10291 sed "s/^/$as_me: WARNING: /" >&2
10294 echo "$as_me:$LINENO: checking for utmp.h" >&5
10295 echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
10296 if test "${ac_cv_header_utmp_h+set}" = set; then
10297 echo $ECHO_N "(cached) $ECHO_C" >&6
10299 ac_cv_header_utmp_h=$ac_header_preproc
10301 echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
10302 echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
10305 if test $ac_cv_header_utmp_h = yes; then
10306 echo "$as_me:$LINENO: checking for struct utmp" >&5
10307 echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6
10308 if test "${struct_utmp+set}" = set; then
10309 echo $ECHO_N "(cached) $ECHO_C" >&6
10311 cat >conftest.$ac_ext <<_ACEOF
10314 cat confdefs.h >>conftest.$ac_ext
10315 cat >>conftest.$ac_ext <<_ACEOF
10316 /* end confdefs.h. */
10317 #include <sys/types.h>
10327 rm -f conftest.$ac_objext
10328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10329 (eval $ac_compile) 2>conftest.er1
10331 grep -v '^ *+' conftest.er1 >conftest.err
10333 cat conftest.err >&5
10334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335 (exit $ac_status); } &&
10336 { ac_try='test -z "$ac_cxx_werror_flag"
10337 || test ! -s conftest.err'
10338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10339 (eval $ac_try) 2>&5
10341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342 (exit $ac_status); }; } &&
10343 { ac_try='test -s conftest.$ac_objext'
10344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10345 (eval $ac_try) 2>&5
10347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348 (exit $ac_status); }; }; then
10351 echo "$as_me: failed program was:" >&5
10352 sed 's/^/| /' conftest.$ac_ext >&5
10356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10358 echo "$as_me:$LINENO: result: $struct_utmp" >&5
10359 echo "${ECHO_T}$struct_utmp" >&6
10360 if test x$struct_utmp = xyes; then
10362 cat >>confdefs.h <<\_ACEOF
10363 #define HAVE_STRUCT_UTMP 1
10369 echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5
10370 echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6
10371 if test "${struct_utmp_host+set}" = set; then
10372 echo $ECHO_N "(cached) $ECHO_C" >&6
10374 cat >conftest.$ac_ext <<_ACEOF
10377 cat confdefs.h >>conftest.$ac_ext
10378 cat >>conftest.$ac_ext <<_ACEOF
10379 /* end confdefs.h. */
10380 #include <sys/types.h>
10385 struct utmp ut; ut.ut_host;
10390 rm -f conftest.$ac_objext
10391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10392 (eval $ac_compile) 2>conftest.er1
10394 grep -v '^ *+' conftest.er1 >conftest.err
10396 cat conftest.err >&5
10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 (exit $ac_status); } &&
10399 { ac_try='test -z "$ac_cxx_werror_flag"
10400 || test ! -s conftest.err'
10401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10402 (eval $ac_try) 2>&5
10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405 (exit $ac_status); }; } &&
10406 { ac_try='test -s conftest.$ac_objext'
10407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10408 (eval $ac_try) 2>&5
10410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411 (exit $ac_status); }; }; then
10412 struct_utmp_host=yes
10414 echo "$as_me: failed program was:" >&5
10415 sed 's/^/| /' conftest.$ac_ext >&5
10417 struct_utmp_host=no
10419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10421 echo "$as_me:$LINENO: result: $struct_utmp_host" >&5
10422 echo "${ECHO_T}$struct_utmp_host" >&6
10423 if test x$struct_utmp_host = xyes; then
10425 cat >>confdefs.h <<\_ACEOF
10426 #define HAVE_UTMP_HOST 1
10431 echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5
10432 echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6
10433 if test "${struct_utmp_pid+set}" = set; then
10434 echo $ECHO_N "(cached) $ECHO_C" >&6
10436 cat >conftest.$ac_ext <<_ACEOF
10439 cat confdefs.h >>conftest.$ac_ext
10440 cat >>conftest.$ac_ext <<_ACEOF
10441 /* end confdefs.h. */
10442 #include <sys/types.h>
10447 struct utmp ut; ut.ut_pid;
10452 rm -f conftest.$ac_objext
10453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10454 (eval $ac_compile) 2>conftest.er1
10456 grep -v '^ *+' conftest.er1 >conftest.err
10458 cat conftest.err >&5
10459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460 (exit $ac_status); } &&
10461 { ac_try='test -z "$ac_cxx_werror_flag"
10462 || test ! -s conftest.err'
10463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10464 (eval $ac_try) 2>&5
10466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467 (exit $ac_status); }; } &&
10468 { ac_try='test -s conftest.$ac_objext'
10469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10470 (eval $ac_try) 2>&5
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); }; }; then
10474 struct_utmp_pid=yes
10476 echo "$as_me: failed program was:" >&5
10477 sed 's/^/| /' conftest.$ac_ext >&5
10481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10483 echo "$as_me:$LINENO: result: $struct_utmp_pid" >&5
10484 echo "${ECHO_T}$struct_utmp_pid" >&6
10485 if test x$struct_utmp_pid = xyes; then
10487 cat >>confdefs.h <<\_ACEOF
10488 #define HAVE_UTMP_PID 1
10497 if test "${ac_cv_header_utmpx_h+set}" = set; then
10498 echo "$as_me:$LINENO: checking for utmpx.h" >&5
10499 echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
10500 if test "${ac_cv_header_utmpx_h+set}" = set; then
10501 echo $ECHO_N "(cached) $ECHO_C" >&6
10503 echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
10504 echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
10506 # Is the header compilable?
10507 echo "$as_me:$LINENO: checking utmpx.h usability" >&5
10508 echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6
10509 cat >conftest.$ac_ext <<_ACEOF
10512 cat confdefs.h >>conftest.$ac_ext
10513 cat >>conftest.$ac_ext <<_ACEOF
10514 /* end confdefs.h. */
10515 $ac_includes_default
10518 rm -f conftest.$ac_objext
10519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10520 (eval $ac_compile) 2>conftest.er1
10522 grep -v '^ *+' conftest.er1 >conftest.err
10524 cat conftest.err >&5
10525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526 (exit $ac_status); } &&
10527 { ac_try='test -z "$ac_cxx_werror_flag"
10528 || test ! -s conftest.err'
10529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10530 (eval $ac_try) 2>&5
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); }; } &&
10534 { ac_try='test -s conftest.$ac_objext'
10535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10536 (eval $ac_try) 2>&5
10538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539 (exit $ac_status); }; }; then
10540 ac_header_compiler=yes
10542 echo "$as_me: failed program was:" >&5
10543 sed 's/^/| /' conftest.$ac_ext >&5
10545 ac_header_compiler=no
10547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10548 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10549 echo "${ECHO_T}$ac_header_compiler" >&6
10551 # Is the header present?
10552 echo "$as_me:$LINENO: checking utmpx.h presence" >&5
10553 echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6
10554 cat >conftest.$ac_ext <<_ACEOF
10557 cat confdefs.h >>conftest.$ac_ext
10558 cat >>conftest.$ac_ext <<_ACEOF
10559 /* end confdefs.h. */
10562 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10563 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10565 grep -v '^ *+' conftest.er1 >conftest.err
10567 cat conftest.err >&5
10568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569 (exit $ac_status); } >/dev/null; then
10570 if test -s conftest.err; then
10571 ac_cpp_err=$ac_cxx_preproc_warn_flag
10572 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10579 if test -z "$ac_cpp_err"; then
10580 ac_header_preproc=yes
10582 echo "$as_me: failed program was:" >&5
10583 sed 's/^/| /' conftest.$ac_ext >&5
10585 ac_header_preproc=no
10587 rm -f conftest.err conftest.$ac_ext
10588 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10589 echo "${ECHO_T}$ac_header_preproc" >&6
10591 # So? What about this header?
10592 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10594 { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5
10595 echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10596 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5
10597 echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;}
10598 ac_header_preproc=yes
10601 { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5
10602 echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;}
10603 { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5
10604 echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;}
10605 { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5
10606 echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;}
10607 { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5
10608 echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;}
10609 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5
10610 echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;}
10611 { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5
10612 echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;}
10615 ## ------------------------------------------ ##
10616 ## Report this to the AC_PACKAGE_NAME lists. ##
10617 ## ------------------------------------------ ##
10620 sed "s/^/$as_me: WARNING: /" >&2
10623 echo "$as_me:$LINENO: checking for utmpx.h" >&5
10624 echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
10625 if test "${ac_cv_header_utmpx_h+set}" = set; then
10626 echo $ECHO_N "(cached) $ECHO_C" >&6
10628 ac_cv_header_utmpx_h=$ac_header_preproc
10630 echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
10631 echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
10634 if test $ac_cv_header_utmpx_h = yes; then
10635 echo "$as_me:$LINENO: checking for struct utmpx" >&5
10636 echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6
10637 if test "${struct_utmpx+set}" = set; then
10638 echo $ECHO_N "(cached) $ECHO_C" >&6
10640 cat >conftest.$ac_ext <<_ACEOF
10643 cat confdefs.h >>conftest.$ac_ext
10644 cat >>conftest.$ac_ext <<_ACEOF
10645 /* end confdefs.h. */
10646 #include <sys/types.h>
10656 rm -f conftest.$ac_objext
10657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10658 (eval $ac_compile) 2>conftest.er1
10660 grep -v '^ *+' conftest.er1 >conftest.err
10662 cat conftest.err >&5
10663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664 (exit $ac_status); } &&
10665 { ac_try='test -z "$ac_cxx_werror_flag"
10666 || test ! -s conftest.err'
10667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10668 (eval $ac_try) 2>&5
10670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671 (exit $ac_status); }; } &&
10672 { ac_try='test -s conftest.$ac_objext'
10673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10674 (eval $ac_try) 2>&5
10676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677 (exit $ac_status); }; }; then
10680 echo "$as_me: failed program was:" >&5
10681 sed 's/^/| /' conftest.$ac_ext >&5
10685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10687 echo "$as_me:$LINENO: result: $struct_utmpx" >&5
10688 echo "${ECHO_T}$struct_utmpx" >&6
10689 if test x$struct_utmpx = xyes; then
10691 cat >>confdefs.h <<\_ACEOF
10692 #define HAVE_STRUCT_UTMPX 1
10698 echo "$as_me:$LINENO: checking for host in utmpx struct" >&5
10699 echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6
10700 if test "${struct_utmpx_host+set}" = set; then
10701 echo $ECHO_N "(cached) $ECHO_C" >&6
10703 cat >conftest.$ac_ext <<_ACEOF
10706 cat confdefs.h >>conftest.$ac_ext
10707 cat >>conftest.$ac_ext <<_ACEOF
10708 /* end confdefs.h. */
10709 #include <sys/types.h>
10714 struct utmpx utx; utx.ut_host;
10719 rm -f conftest.$ac_objext
10720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10721 (eval $ac_compile) 2>conftest.er1
10723 grep -v '^ *+' conftest.er1 >conftest.err
10725 cat conftest.err >&5
10726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727 (exit $ac_status); } &&
10728 { ac_try='test -z "$ac_cxx_werror_flag"
10729 || test ! -s conftest.err'
10730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10731 (eval $ac_try) 2>&5
10733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734 (exit $ac_status); }; } &&
10735 { ac_try='test -s conftest.$ac_objext'
10736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10737 (eval $ac_try) 2>&5
10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740 (exit $ac_status); }; }; then
10741 struct_utmpx_host=yes
10743 echo "$as_me: failed program was:" >&5
10744 sed 's/^/| /' conftest.$ac_ext >&5
10746 struct_utmpx_host=no
10748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10750 echo "$as_me:$LINENO: result: $struct_utmpx_host" >&5
10751 echo "${ECHO_T}$struct_utmpx_host" >&6
10752 if test x$struct_utmpx_host = xyes; then
10754 cat >>confdefs.h <<\_ACEOF
10755 #define HAVE_UTMPX_HOST 1
10760 echo "$as_me:$LINENO: checking for session in utmpx struct" >&5
10761 echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6
10762 if test "${struct_utmpx_session+set}" = set; then
10763 echo $ECHO_N "(cached) $ECHO_C" >&6
10765 cat >conftest.$ac_ext <<_ACEOF
10768 cat confdefs.h >>conftest.$ac_ext
10769 cat >>conftest.$ac_ext <<_ACEOF
10770 /* end confdefs.h. */
10771 #include <sys/types.h>
10776 struct utmpx utx; utx.ut_session;
10781 rm -f conftest.$ac_objext
10782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10783 (eval $ac_compile) 2>conftest.er1
10785 grep -v '^ *+' conftest.er1 >conftest.err
10787 cat conftest.err >&5
10788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789 (exit $ac_status); } &&
10790 { ac_try='test -z "$ac_cxx_werror_flag"
10791 || test ! -s conftest.err'
10792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10793 (eval $ac_try) 2>&5
10795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796 (exit $ac_status); }; } &&
10797 { ac_try='test -s conftest.$ac_objext'
10798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10799 (eval $ac_try) 2>&5
10801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802 (exit $ac_status); }; }; then
10803 struct_utmpx_session=yes
10805 echo "$as_me: failed program was:" >&5
10806 sed 's/^/| /' conftest.$ac_ext >&5
10808 struct_utmpx_session=no
10810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10812 echo "$as_me:$LINENO: result: $struct_utmpx_session" >&5
10813 echo "${ECHO_T}$struct_utmpx_session" >&6
10814 if test x$struct_utmpx_session = xyes; then
10816 cat >>confdefs.h <<\_ACEOF
10817 #define HAVE_UTMPX_SESSION 1
10825 echo "$as_me:$LINENO: checking for struct lastlog" >&5
10826 echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6
10827 if test "${struct_lastlog+set}" = set; then
10828 echo $ECHO_N "(cached) $ECHO_C" >&6
10830 cat >conftest.$ac_ext <<_ACEOF
10833 cat confdefs.h >>conftest.$ac_ext
10834 cat >>conftest.$ac_ext <<_ACEOF
10835 /* end confdefs.h. */
10836 #include <sys/types.h>
10838 #ifdef HAVE_LASTLOG_H
10839 #include <lastlog.h>
10850 rm -f conftest.$ac_objext
10851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10852 (eval $ac_compile) 2>conftest.er1
10854 grep -v '^ *+' conftest.er1 >conftest.err
10856 cat conftest.err >&5
10857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10858 (exit $ac_status); } &&
10859 { ac_try='test -z "$ac_cxx_werror_flag"
10860 || test ! -s conftest.err'
10861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10862 (eval $ac_try) 2>&5
10864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865 (exit $ac_status); }; } &&
10866 { ac_try='test -s conftest.$ac_objext'
10867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10868 (eval $ac_try) 2>&5
10870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871 (exit $ac_status); }; }; then
10874 echo "$as_me: failed program was:" >&5
10875 sed 's/^/| /' conftest.$ac_ext >&5
10879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10881 echo "$as_me:$LINENO: result: $struct_lastlog" >&5
10882 echo "${ECHO_T}$struct_lastlog" >&6
10883 if test x$struct_lastlog = xyes; then
10885 cat >>confdefs.h <<\_ACEOF
10886 #define HAVE_STRUCT_LASTLOG 1
10891 echo "$as_me:$LINENO: checking for struct lastlogx" >&5
10892 echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6
10893 if test "${struct_lastlogx+set}" = set; then
10894 echo $ECHO_N "(cached) $ECHO_C" >&6
10896 cat >conftest.$ac_ext <<_ACEOF
10899 cat confdefs.h >>conftest.$ac_ext
10900 cat >>conftest.$ac_ext <<_ACEOF
10901 /* end confdefs.h. */
10902 #include <sys/types.h>
10904 #ifdef HAVE_LASTLOG_H
10905 #include <lastlog.h>
10911 struct lastlogx ll;
10916 rm -f conftest.$ac_objext
10917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10918 (eval $ac_compile) 2>conftest.er1
10920 grep -v '^ *+' conftest.er1 >conftest.err
10922 cat conftest.err >&5
10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); } &&
10925 { ac_try='test -z "$ac_cxx_werror_flag"
10926 || test ! -s conftest.err'
10927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10928 (eval $ac_try) 2>&5
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); }; } &&
10932 { ac_try='test -s conftest.$ac_objext'
10933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10934 (eval $ac_try) 2>&5
10936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937 (exit $ac_status); }; }; then
10938 struct_lastlogx=yes
10940 echo "$as_me: failed program was:" >&5
10941 sed 's/^/| /' conftest.$ac_ext >&5
10945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10947 echo "$as_me:$LINENO: result: $struct_lastlogx" >&5
10948 echo "${ECHO_T}$struct_lastlogx" >&6
10949 if test x$struct_lastlogx = xyes; then
10951 cat >>confdefs.h <<\_ACEOF
10952 #define HAVE_STRUCT_LASTLOGX 1
10958 echo "$as_me:$LINENO: checking where utmp is located" >&5
10959 echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6
10960 if test "${path_utmp+set}" = set; then
10961 echo $ECHO_N "(cached) $ECHO_C" >&6
10963 if test "$cross_compiling" = yes; then
10964 { echo "$as_me:$LINENO: WARNING: Define UTMP_FILE in config.h manually" >&5
10965 echo "$as_me: WARNING: Define UTMP_FILE in config.h manually" >&2;}
10967 cat >conftest.$ac_ext <<_ACEOF
10970 cat confdefs.h >>conftest.$ac_ext
10971 cat >>conftest.$ac_ext <<_ACEOF
10972 /* end confdefs.h. */
10974 #include <stdlib.h>
10975 #include <sys/types.h>
10980 char **u, *utmplist[] = {
10981 "/var/run/utmp", "/var/adm/utmp", "/etc/utmp", "/usr/etc/utmp", "/usr/adm/utmp", NULL };
10982 FILE *a, *f=fopen("conftestval", "w");
10985 fprintf(f, "%s\n", UTMP_FILE);
10989 fprintf(f, "%s\n", _PATH_UTMP);
10992 for (u = utmplist; *u; u++) {
10993 if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
10994 fprintf(f, "%s\n", *u);
11001 rm -f conftest$ac_exeext
11002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11003 (eval $ac_link) 2>&5
11005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11008 (eval $ac_try) 2>&5
11010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011 (exit $ac_status); }; }; then
11012 path_utmp=`cat conftestval`
11014 echo "$as_me: program exited with status $ac_status" >&5
11015 echo "$as_me: failed program was:" >&5
11016 sed 's/^/| /' conftest.$ac_ext >&5
11018 ( exit $ac_status )
11021 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11024 echo "$as_me:$LINENO: result: $path_utmp" >&5
11025 echo "${ECHO_T}$path_utmp" >&6
11026 if test x$path_utmp != x; then
11028 cat >>confdefs.h <<_ACEOF
11029 #define UTMP_FILE "$path_utmp"
11035 echo "$as_me:$LINENO: checking where utmpx is located" >&5
11036 echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6
11037 if test "${path_utmpx+set}" = set; then
11038 echo $ECHO_N "(cached) $ECHO_C" >&6
11040 if test "$cross_compiling" = yes; then
11041 { echo "$as_me:$LINENO: WARNING: Define UTMPX_FILE in config.h manually" >&5
11042 echo "$as_me: WARNING: Define UTMPX_FILE in config.h manually" >&2;}
11044 cat >conftest.$ac_ext <<_ACEOF
11047 cat confdefs.h >>conftest.$ac_ext
11048 cat >>conftest.$ac_ext <<_ACEOF
11049 /* end confdefs.h. */
11051 #include <stdlib.h>
11052 #include <sys/types.h>
11055 #include <sys/stat.h>
11056 #ifdef HAVE_STRING_H
11057 #include <string.h>
11061 char **u, *p, *utmplist[] = {
11068 "/var/adm/utmpx", "/etc/utmpx", NULL };
11069 FILE *a, *f=fopen("conftestval", "w");
11070 struct stat statu, statux;
11072 for (u = utmplist; *u; u++) {
11073 if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
11074 if (stat(*u, &statux) < 0)
11077 p[strlen(p) - 1] = '\0';
11078 if (stat(p, &statu) >= 0
11079 && (statu.st_mtime - statux.st_mtime > 86400))
11081 fprintf(f, "%s\n", *u);
11088 rm -f conftest$ac_exeext
11089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11090 (eval $ac_link) 2>&5
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11095 (eval $ac_try) 2>&5
11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); }; }; then
11099 path_utmpx=`cat conftestval`
11101 echo "$as_me: program exited with status $ac_status" >&5
11102 echo "$as_me: failed program was:" >&5
11103 sed 's/^/| /' conftest.$ac_ext >&5
11105 ( exit $ac_status )
11108 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11111 echo "$as_me:$LINENO: result: $path_utmpx" >&5
11112 echo "${ECHO_T}$path_utmpx" >&6
11113 if test x$path_utmpx != x; then
11115 cat >>confdefs.h <<_ACEOF
11116 #define UTMPX_FILE "$path_utmpx"
11122 echo "$as_me:$LINENO: checking where wtmp is located" >&5
11123 echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6
11124 if test "${path_wtmp+set}" = set; then
11125 echo $ECHO_N "(cached) $ECHO_C" >&6
11127 if test "$cross_compiling" = yes; then
11128 { echo "$as_me:$LINENO: WARNING: Define WTMP_FILE in config.h manually" >&5
11129 echo "$as_me: WARNING: Define WTMP_FILE in config.h manually" >&2;}
11131 cat >conftest.$ac_ext <<_ACEOF
11134 cat confdefs.h >>conftest.$ac_ext
11135 cat >>conftest.$ac_ext <<_ACEOF
11136 /* end confdefs.h. */
11138 #include <stdlib.h>
11139 #include <sys/types.h>
11146 char **w, *wtmplist[] = {
11147 "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL };
11148 FILE *a, *f=fopen("conftestval", "w");
11151 fprintf(f, "%s\n", WTMP_FILE);
11155 fprintf(f, "%s\n", _PATH_WTMP);
11158 for (w = wtmplist; *w; w++) {
11159 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11160 fprintf(f, "%s\n", *w);
11167 rm -f conftest$ac_exeext
11168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11169 (eval $ac_link) 2>&5
11171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11174 (eval $ac_try) 2>&5
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); }; }; then
11178 path_wtmp=`cat conftestval`
11180 echo "$as_me: program exited with status $ac_status" >&5
11181 echo "$as_me: failed program was:" >&5
11182 sed 's/^/| /' conftest.$ac_ext >&5
11184 ( exit $ac_status )
11187 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11190 echo "$as_me:$LINENO: result: $path_wtmp" >&5
11191 echo "${ECHO_T}$path_wtmp" >&6
11192 if test x$path_wtmp != x; then
11194 cat >>confdefs.h <<_ACEOF
11195 #define WTMP_FILE "$path_wtmp"
11200 echo "$as_me:$LINENO: checking where wtmpx is located" >&5
11201 echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6
11202 if test "${path_wtmpx+set}" = set; then
11203 echo $ECHO_N "(cached) $ECHO_C" >&6
11205 if test "$cross_compiling" = yes; then
11206 { echo "$as_me:$LINENO: WARNING: Define WTMPX_FILE in config.h manually" >&5
11207 echo "$as_me: WARNING: Define WTMPX_FILE in config.h manually" >&2;}
11209 cat >conftest.$ac_ext <<_ACEOF
11212 cat confdefs.h >>conftest.$ac_ext
11213 cat >>conftest.$ac_ext <<_ACEOF
11214 /* end confdefs.h. */
11216 #include <stdlib.h>
11217 #ifdef HAVE_UTMPX_H
11223 char **w, *wtmplist[] = {
11224 "/var/log/wtmpx", "/var/adm/wtmpx", NULL };
11225 FILE *a, *f=fopen("conftestval", "w");
11228 fprintf(f, "%s\n", WTMPX_FILE);
11232 fprintf(f, "%s\n", _PATH_WTMPX);
11235 for (w = wtmplist; *w; w++) {
11236 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11237 fprintf(f, "%s\n", *w);
11244 rm -f conftest$ac_exeext
11245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11246 (eval $ac_link) 2>&5
11248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11251 (eval $ac_try) 2>&5
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 (exit $ac_status); }; }; then
11255 path_wtmpx=`cat conftestval`
11257 echo "$as_me: program exited with status $ac_status" >&5
11258 echo "$as_me: failed program was:" >&5
11259 sed 's/^/| /' conftest.$ac_ext >&5
11261 ( exit $ac_status )
11264 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11267 echo "$as_me:$LINENO: result: $path_wtmpx" >&5
11268 echo "${ECHO_T}$path_wtmpx" >&6
11269 if test x$path_wtmpx != x; then
11271 cat >>confdefs.h <<_ACEOF
11272 #define WTMPX_FILE "$path_wtmpx"
11277 echo "$as_me:$LINENO: checking where lastlog is located" >&5
11278 echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6
11279 if test "${path_lastlog+set}" = set; then
11280 echo $ECHO_N "(cached) $ECHO_C" >&6
11282 if test "$cross_compiling" = yes; then
11283 { echo "$as_me:$LINENO: WARNING: Define LASTLOG_FILE in config.h manually" >&5
11284 echo "$as_me: WARNING: Define LASTLOG_FILE in config.h manually" >&2;}
11286 cat >conftest.$ac_ext <<_ACEOF
11289 cat confdefs.h >>conftest.$ac_ext
11290 cat >>conftest.$ac_ext <<_ACEOF
11291 /* end confdefs.h. */
11293 #include <stdlib.h>
11294 #include <sys/types.h>
11295 #ifdef HAVE_UTMPX_H
11297 #elif defined(HAVE_UTMP_H)
11300 #ifdef HAVE_LASTLOG_H
11301 #include <lastlog.h>
11306 char **w, *lastloglist[] = { "/var/log/lastlog", NULL };
11307 FILE *a, *f=fopen("conftestval", "w");
11309 #ifdef LASTLOG_FILE
11310 fprintf(f, "%s\n", LASTLOG_FILE);
11313 #ifdef _PATH_LASTLOG
11314 fprintf(f, "%s\n", _PATH_LASTLOG);
11317 for (w = lastloglist; *w; w++) {
11318 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11319 fprintf(f, "%s\n", *w);
11326 rm -f conftest$ac_exeext
11327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11328 (eval $ac_link) 2>&5
11330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11333 (eval $ac_try) 2>&5
11335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336 (exit $ac_status); }; }; then
11337 path_lastlog=`cat conftestval`
11339 echo "$as_me: program exited with status $ac_status" >&5
11340 echo "$as_me: failed program was:" >&5
11341 sed 's/^/| /' conftest.$ac_ext >&5
11343 ( exit $ac_status )
11346 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11349 echo "$as_me:$LINENO: result: $path_lastlog" >&5
11350 echo "${ECHO_T}$path_lastlog" >&6
11351 if test x$path_lastlog != x; then
11353 cat >>confdefs.h <<_ACEOF
11354 #define LASTLOG_FILE "$path_lastlog"
11357 if test -d "$path_lastlog"; then
11359 cat >>confdefs.h <<\_ACEOF
11360 #define LASTLOG_IS_DIR 1
11366 echo "$as_me:$LINENO: checking where lastlogx is located" >&5
11367 echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6
11368 if test "${path_lastlogx+set}" = set; then
11369 echo $ECHO_N "(cached) $ECHO_C" >&6
11371 if test "$cross_compiling" = yes; then
11372 { echo "$as_me:$LINENO: WARNING: Define LASTLOGX_FILE in config.h manually" >&5
11373 echo "$as_me: WARNING: Define LASTLOGX_FILE in config.h manually" >&2;}
11375 cat >conftest.$ac_ext <<_ACEOF
11378 cat confdefs.h >>conftest.$ac_ext
11379 cat >>conftest.$ac_ext <<_ACEOF
11380 /* end confdefs.h. */
11382 #include <stdlib.h>
11383 #ifdef HAVE_UTMPX_H
11389 char **w, *wtmplist[] = { "/var/log/lastlogx", "/var/adm/lastlogx", NULL };
11390 FILE *a, *f=fopen("conftestval", "w");
11392 #ifdef LASTLOGX_FILE
11393 fprintf(f, "%s\n", LASTLOGX_FILE);
11396 #ifdef _PATH_LASTLOGX
11397 fprintf(f, "%s\n", _PATH_LASTLOGX);
11400 for (w = wtmplist; *w; w++) {
11401 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11402 fprintf(f, "%s\n", *w);
11409 rm -f conftest$ac_exeext
11410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11411 (eval $ac_link) 2>&5
11413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11416 (eval $ac_try) 2>&5
11418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419 (exit $ac_status); }; }; then
11420 path_lastlogx=`cat conftestval`
11422 echo "$as_me: program exited with status $ac_status" >&5
11423 echo "$as_me: failed program was:" >&5
11424 sed 's/^/| /' conftest.$ac_ext >&5
11426 ( exit $ac_status )
11429 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11432 echo "$as_me:$LINENO: result: $path_lastlogx" >&5
11433 echo "${ECHO_T}$path_lastlogx" >&6
11434 if test x$path_lastlogx != x; then
11436 cat >>confdefs.h <<_ACEOF
11437 #define LASTLOGX_FILE "$path_lastlogx"
11444 echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
11445 echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6
11446 if test "${rxvt_cv_path_ttytab+set}" = set; then
11447 echo $ECHO_N "(cached) $ECHO_C" >&6
11449 for ttys_file in /etc/ttys /etc/ttytab;
11451 if test -f "$ttys_file" ; then
11452 rxvt_cv_path_ttytab=$ttys_file
11458 echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5
11459 echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6
11460 if test x$rxvt_cv_path_ttytab != x; then
11462 cat >>confdefs.h <<_ACEOF
11463 #define TTYTAB_FILENAME "$rxvt_cv_path_ttytab"
11470 ac_save_CFLAGS=$CFLAGS
11471 CFLAGS="$CFLAGS $X_CFLAGS"
11472 LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
11473 if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
11474 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
11476 echo "$as_me:$LINENO: checking for working Xlocale" >&5
11477 echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6
11478 if test "${rxvt_cv_func_xlocale+set}" = set; then
11479 echo $ECHO_N "(cached) $ECHO_C" >&6
11481 if test "$cross_compiling" = yes; then
11482 { echo "$as_me:$LINENO: WARNING: Define NO_XLOCALE in config.h manually" >&5
11483 echo "$as_me: WARNING: Define NO_XLOCALE in config.h manually" >&2;}
11485 cat >conftest.$ac_ext <<_ACEOF
11488 cat confdefs.h >>conftest.$ac_ext
11489 cat >>conftest.$ac_ext <<_ACEOF
11490 /* end confdefs.h. */
11491 #include <X11/Xlib.h>
11492 #include <stdlib.h>
11495 if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
11496 exit (XSupportsLocale() ? 0 : 1);
11500 rm -f conftest$ac_exeext
11501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11502 (eval $ac_link) 2>&5
11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11507 (eval $ac_try) 2>&5
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); }; }; then
11511 rxvt_cv_func_xlocale=yes
11513 echo "$as_me: program exited with status $ac_status" >&5
11514 echo "$as_me: failed program was:" >&5
11515 sed 's/^/| /' conftest.$ac_ext >&5
11517 ( exit $ac_status )
11518 rxvt_cv_func_xlocale=no
11520 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11523 echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5
11524 echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6
11525 if test x$rxvt_cv_func_xlocale = xyes; then
11527 cat >>confdefs.h <<\_ACEOF
11528 #define HAVE_XLOCALE 1
11533 echo "$as_me:$LINENO: checking for working X setlocale" >&5
11534 echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6
11535 if test "${rxvt_cv_func_xsetlocale+set}" = set; then
11536 echo $ECHO_N "(cached) $ECHO_C" >&6
11538 cat >conftest.$ac_ext <<_ACEOF
11541 cat confdefs.h >>conftest.$ac_ext
11542 cat >>conftest.$ac_ext <<_ACEOF
11543 /* end confdefs.h. */
11545 #include <X11/Xlocale.h>
11549 setlocale(LC_CTYPE, "");
11554 rm -f conftest.$ac_objext conftest$ac_exeext
11555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11556 (eval $ac_link) 2>conftest.er1
11558 grep -v '^ *+' conftest.er1 >conftest.err
11560 cat conftest.err >&5
11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); } &&
11563 { ac_try='test -z "$ac_cxx_werror_flag"
11564 || test ! -s conftest.err'
11565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11566 (eval $ac_try) 2>&5
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); }; } &&
11570 { ac_try='test -s conftest$ac_exeext'
11571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11572 (eval $ac_try) 2>&5
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); }; }; then
11576 rxvt_cv_func_xsetlocale=yes
11578 echo "$as_me: failed program was:" >&5
11579 sed 's/^/| /' conftest.$ac_ext >&5
11581 rxvt_cv_func_xsetlocale=no
11583 rm -f conftest.err conftest.$ac_objext \
11584 conftest$ac_exeext conftest.$ac_ext
11586 echo "$as_me:$LINENO: result: $rxvt_cv_func_xsetlocale" >&5
11587 echo "${ECHO_T}$rxvt_cv_func_xsetlocale" >&6
11588 if test x$rxvt_cv_func_xsetlocale = xyes; then
11590 cat >>confdefs.h <<\_ACEOF
11591 #define HAVE_XSETLOCALE 1
11596 CFLAGS=$ac_save_CFLAGS
11598 echo "$as_me:$LINENO: checking for working plain setlocale" >&5
11599 echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6
11600 if test "${rxvt_cv_func_setlocale+set}" = set; then
11601 echo $ECHO_N "(cached) $ECHO_C" >&6
11603 cat >conftest.$ac_ext <<_ACEOF
11606 cat confdefs.h >>conftest.$ac_ext
11607 cat >>conftest.$ac_ext <<_ACEOF
11608 /* end confdefs.h. */
11613 setlocale(LC_CTYPE, "");
11618 rm -f conftest.$ac_objext conftest$ac_exeext
11619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11620 (eval $ac_link) 2>conftest.er1
11622 grep -v '^ *+' conftest.er1 >conftest.err
11624 cat conftest.err >&5
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); } &&
11627 { ac_try='test -z "$ac_cxx_werror_flag"
11628 || test ! -s conftest.err'
11629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11630 (eval $ac_try) 2>&5
11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633 (exit $ac_status); }; } &&
11634 { ac_try='test -s conftest$ac_exeext'
11635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11636 (eval $ac_try) 2>&5
11638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11639 (exit $ac_status); }; }; then
11640 rxvt_cv_func_setlocale=yes
11642 echo "$as_me: failed program was:" >&5
11643 sed 's/^/| /' conftest.$ac_ext >&5
11645 rxvt_cv_func_setlocale=no
11647 rm -f conftest.err conftest.$ac_objext \
11648 conftest$ac_exeext conftest.$ac_ext
11650 echo "$as_me:$LINENO: result: $rxvt_cv_func_setlocale" >&5
11651 echo "${ECHO_T}$rxvt_cv_func_setlocale" >&6
11652 if test x$rxvt_cv_func_setlocale = xyes; then
11654 cat >>confdefs.h <<\_ACEOF
11655 #define HAVE_SETLOCALE 1
11660 echo "$as_me:$LINENO: checking for working nl_langinfo" >&5
11661 echo $ECHO_N "checking for working nl_langinfo... $ECHO_C" >&6
11662 if test "${rxvt_cv_func_nl_langinfo+set}" = set; then
11663 echo $ECHO_N "(cached) $ECHO_C" >&6
11665 cat >conftest.$ac_ext <<_ACEOF
11668 cat confdefs.h >>conftest.$ac_ext
11669 cat >>conftest.$ac_ext <<_ACEOF
11670 /* end confdefs.h. */
11671 #include <langinfo.h>
11675 nl_langinfo(CODESET);
11680 rm -f conftest.$ac_objext conftest$ac_exeext
11681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11682 (eval $ac_link) 2>conftest.er1
11684 grep -v '^ *+' conftest.er1 >conftest.err
11686 cat conftest.err >&5
11687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688 (exit $ac_status); } &&
11689 { ac_try='test -z "$ac_cxx_werror_flag"
11690 || test ! -s conftest.err'
11691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11692 (eval $ac_try) 2>&5
11694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695 (exit $ac_status); }; } &&
11696 { ac_try='test -s conftest$ac_exeext'
11697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11698 (eval $ac_try) 2>&5
11700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701 (exit $ac_status); }; }; then
11702 rxvt_cv_func_nl_langinfo=yes
11704 echo "$as_me: failed program was:" >&5
11705 sed 's/^/| /' conftest.$ac_ext >&5
11707 rxvt_cv_func_nl_langinfo=no
11709 rm -f conftest.err conftest.$ac_objext \
11710 conftest$ac_exeext conftest.$ac_ext
11712 echo "$as_me:$LINENO: result: $rxvt_cv_func_nl_langinfo" >&5
11713 echo "${ECHO_T}$rxvt_cv_func_nl_langinfo" >&6
11714 if test x$rxvt_cv_func_nl_langinfo = xyes; then
11716 cat >>confdefs.h <<\_ACEOF
11717 #define HAVE_NL_LANGINFO 1
11723 echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5
11724 echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6
11725 if test "${can_pass_fds+set}" = set; then
11726 echo $ECHO_N "(cached) $ECHO_C" >&6
11728 cat >conftest.$ac_ext <<_ACEOF
11731 cat confdefs.h >>conftest.$ac_ext
11732 cat >>conftest.$ac_ext <<_ACEOF
11733 /* end confdefs.h. */
11735 #include <cstddef> // broken bsds (is that redundant?) need this
11736 #include <sys/types.h>
11737 #include <sys/socket.h>
11738 #include <sys/uio.h>
11750 iov.iov_base = &data;
11753 msg.msg_iov = &iov;
11754 msg.msg_iovlen = 1;
11755 msg.msg_control = buf;
11756 msg.msg_controllen = sizeof buf;
11758 cmsghdr *cmsg = CMSG_FIRSTHDR (&msg);
11759 cmsg->cmsg_level = SOL_SOCKET;
11760 cmsg->cmsg_type = SCM_RIGHTS;
11761 cmsg->cmsg_len = 100;
11763 *(int *)CMSG_DATA (cmsg) = 5;
11765 return sendmsg (3, &msg, 0);
11772 rm -f conftest.$ac_objext conftest$ac_exeext
11773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11774 (eval $ac_link) 2>conftest.er1
11776 grep -v '^ *+' conftest.er1 >conftest.err
11778 cat conftest.err >&5
11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780 (exit $ac_status); } &&
11781 { ac_try='test -z "$ac_cxx_werror_flag"
11782 || test ! -s conftest.err'
11783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11784 (eval $ac_try) 2>&5
11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787 (exit $ac_status); }; } &&
11788 { ac_try='test -s conftest$ac_exeext'
11789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11790 (eval $ac_try) 2>&5
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); }; }; then
11796 echo "$as_me: failed program was:" >&5
11797 sed 's/^/| /' conftest.$ac_ext >&5
11801 rm -f conftest.err conftest.$ac_objext \
11802 conftest$ac_exeext conftest.$ac_ext
11804 echo "$as_me:$LINENO: result: $can_pass_fds" >&5
11805 echo "${ECHO_T}$can_pass_fds" >&6
11806 if test x$can_pass_fds = xyes; then
11808 cat >>confdefs.h <<\_ACEOF
11809 #define HAVE_UNIX_FDPASS 1
11813 { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5
11814 echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;}
11815 { (exit 1); exit 1; }; }
11819 echo "$as_me:$LINENO: checking for broken XIM callback" >&5
11820 echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6
11821 if test "${rxvt_broken_ximcb+set}" = set; then
11822 echo $ECHO_N "(cached) $ECHO_C" >&6
11824 cat >conftest.$ac_ext <<_ACEOF
11826 #include <X11/Xlib.h>
11828 void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
11832 cb.callback = im_destroy_cb;
11836 rm -f conftest.$ac_objext
11837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11838 (eval $ac_compile) 2>conftest.er1
11840 grep -v '^ *+' conftest.er1 >conftest.err
11842 cat conftest.err >&5
11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844 (exit $ac_status); } &&
11845 { ac_try='test -z "$ac_cxx_werror_flag"
11846 || test ! -s conftest.err'
11847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11848 (eval $ac_try) 2>&5
11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); }; } &&
11852 { ac_try='test -s conftest.$ac_objext'
11853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11854 (eval $ac_try) 2>&5
11856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857 (exit $ac_status); }; }; then
11858 rxvt_broken_ximcb=yes
11860 echo "$as_me: failed program was:" >&5
11861 sed 's/^/| /' conftest.$ac_ext >&5
11863 rxvt_broken_ximcb=no
11865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11867 echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
11868 echo "${ECHO_T}$rxvt_broken_ximcb" >&6
11870 if test x$rxvt_broken_ximcb = xyes; then
11872 cat >>confdefs.h <<\_ACEOF
11873 #define XIMCB_PROTO_BROKEN 1
11892 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11893 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11894 echo "$as_me:$LINENO: checking for $ac_header" >&5
11895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11896 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11897 echo $ECHO_N "(cached) $ECHO_C" >&6
11899 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11900 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11902 # Is the header compilable?
11903 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11904 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11905 cat >conftest.$ac_ext <<_ACEOF
11908 cat confdefs.h >>conftest.$ac_ext
11909 cat >>conftest.$ac_ext <<_ACEOF
11910 /* end confdefs.h. */
11911 $ac_includes_default
11912 #include <$ac_header>
11914 rm -f conftest.$ac_objext
11915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11916 (eval $ac_compile) 2>conftest.er1
11918 grep -v '^ *+' conftest.er1 >conftest.err
11920 cat conftest.err >&5
11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922 (exit $ac_status); } &&
11923 { ac_try='test -z "$ac_cxx_werror_flag"
11924 || test ! -s conftest.err'
11925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11926 (eval $ac_try) 2>&5
11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); }; } &&
11930 { ac_try='test -s conftest.$ac_objext'
11931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11932 (eval $ac_try) 2>&5
11934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935 (exit $ac_status); }; }; then
11936 ac_header_compiler=yes
11938 echo "$as_me: failed program was:" >&5
11939 sed 's/^/| /' conftest.$ac_ext >&5
11941 ac_header_compiler=no
11943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11944 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11945 echo "${ECHO_T}$ac_header_compiler" >&6
11947 # Is the header present?
11948 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11949 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11950 cat >conftest.$ac_ext <<_ACEOF
11953 cat confdefs.h >>conftest.$ac_ext
11954 cat >>conftest.$ac_ext <<_ACEOF
11955 /* end confdefs.h. */
11956 #include <$ac_header>
11958 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11959 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11961 grep -v '^ *+' conftest.er1 >conftest.err
11963 cat conftest.err >&5
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 (exit $ac_status); } >/dev/null; then
11966 if test -s conftest.err; then
11967 ac_cpp_err=$ac_cxx_preproc_warn_flag
11968 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11975 if test -z "$ac_cpp_err"; then
11976 ac_header_preproc=yes
11978 echo "$as_me: failed program was:" >&5
11979 sed 's/^/| /' conftest.$ac_ext >&5
11981 ac_header_preproc=no
11983 rm -f conftest.err conftest.$ac_ext
11984 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11985 echo "${ECHO_T}$ac_header_preproc" >&6
11987 # So? What about this header?
11988 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11990 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11991 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11992 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11993 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11994 ac_header_preproc=yes
11997 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11998 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11999 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12000 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12001 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12002 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12003 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12004 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12005 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12006 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12007 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12008 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12011 ## ------------------------------------------ ##
12012 ## Report this to the AC_PACKAGE_NAME lists. ##
12013 ## ------------------------------------------ ##
12016 sed "s/^/$as_me: WARNING: /" >&2
12019 echo "$as_me:$LINENO: checking for $ac_header" >&5
12020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12021 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12022 echo $ECHO_N "(cached) $ECHO_C" >&6
12024 eval "$as_ac_Header=\$ac_header_preproc"
12026 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12027 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12030 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12031 cat >>confdefs.h <<_ACEOF
12032 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12061 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12062 echo "$as_me:$LINENO: checking for $ac_func" >&5
12063 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12064 if eval "test \"\${$as_ac_var+set}\" = set"; then
12065 echo $ECHO_N "(cached) $ECHO_C" >&6
12067 cat >conftest.$ac_ext <<_ACEOF
12070 cat confdefs.h >>conftest.$ac_ext
12071 cat >>conftest.$ac_ext <<_ACEOF
12072 /* end confdefs.h. */
12073 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12075 #define $ac_func innocuous_$ac_func
12077 /* System header to define __stub macros and hopefully few prototypes,
12078 which can conflict with char $ac_func (); below.
12079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12080 <limits.h> exists even on freestanding compilers. */
12083 # include <limits.h>
12085 # include <assert.h>
12090 /* Override any gcc2 internal prototype to avoid an error. */
12095 /* We use char because int might match the return type of a gcc2
12096 builtin and then its argument prototype would still apply. */
12098 /* The GNU C library defines this for functions which it implements
12099 to always fail with ENOSYS. Some functions are actually named
12100 something starting with __ and the normal name is an alias. */
12101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12104 char (*f) () = $ac_func;
12113 return f != $ac_func;
12118 rm -f conftest.$ac_objext conftest$ac_exeext
12119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12120 (eval $ac_link) 2>conftest.er1
12122 grep -v '^ *+' conftest.er1 >conftest.err
12124 cat conftest.err >&5
12125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126 (exit $ac_status); } &&
12127 { ac_try='test -z "$ac_cxx_werror_flag"
12128 || test ! -s conftest.err'
12129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12130 (eval $ac_try) 2>&5
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); }; } &&
12134 { ac_try='test -s conftest$ac_exeext'
12135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12136 (eval $ac_try) 2>&5
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); }; }; then
12140 eval "$as_ac_var=yes"
12142 echo "$as_me: failed program was:" >&5
12143 sed 's/^/| /' conftest.$ac_ext >&5
12145 eval "$as_ac_var=no"
12147 rm -f conftest.err conftest.$ac_objext \
12148 conftest$ac_exeext conftest.$ac_ext
12150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12151 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12152 if test `eval echo '${'$as_ac_var'}'` = yes; then
12153 cat >>confdefs.h <<_ACEOF
12154 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12163 echo "$as_me:$LINENO: checking for /dev/ptym/clone" >&5
12164 echo $ECHO_N "checking for /dev/ptym/clone... $ECHO_C" >&6
12165 if test -e /dev/ptym/clone; then
12166 echo "$as_me:$LINENO: result: yes" >&5
12167 echo "${ECHO_T}yes" >&6
12169 cat >>confdefs.h <<\_ACEOF
12170 #define HAVE_DEV_CLONE 1
12174 cat >>confdefs.h <<\_ACEOF
12175 #define CLONE_DEVICE "/dev/ptym/clone"
12180 echo "$as_me:$LINENO: result: no" >&5
12181 echo "${ECHO_T}no" >&6
12184 echo "$as_me:$LINENO: checking for /dev/ptc" >&5
12185 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
12186 if test -e /dev/ptc; then
12187 echo "$as_me:$LINENO: result: yes" >&5
12188 echo "${ECHO_T}yes" >&6
12190 cat >>confdefs.h <<\_ACEOF
12191 #define HAVE_DEV_PTC 1
12195 cat >>confdefs.h <<\_ACEOF
12196 #define CLONE_DEVICE "/dev/ptc"
12201 echo "$as_me:$LINENO: result: no" >&5
12202 echo "${ECHO_T}no" >&6
12209 cat >>confdefs.h <<\_ACEOF
12210 #define CLONE_DEVICE "/dev/ptmx"
12215 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
12216 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
12217 if test -e /dev/ptmx; then
12218 echo "$as_me:$LINENO: result: yes" >&5
12219 echo "${ECHO_T}yes" >&6
12221 cat >>confdefs.h <<\_ACEOF
12222 #define HAVE_DEV_PTMX 1
12226 cat >>confdefs.h <<\_ACEOF
12227 #define CLONE_DEVICE "/dev/ptmx"
12232 echo "$as_me:$LINENO: result: no" >&5
12233 echo "${ECHO_T}no" >&6
12238 if test x$ac_cv_func_getpt = xyes -o x$ac_cv_func_posix_openpt = xyes -o x$have_clone = xyes; then
12239 echo "$as_me:$LINENO: checking for UNIX98 ptys" >&5
12240 echo $ECHO_N "checking for UNIX98 ptys... $ECHO_C" >&6
12241 cat >conftest.$ac_ext <<_ACEOF
12244 cat confdefs.h >>conftest.$ac_ext
12245 cat >>conftest.$ac_ext <<_ACEOF
12246 /* end confdefs.h. */
12247 #include <stdlib.h>
12251 grantpt(0);unlockpt(0);ptsname(0);
12256 rm -f conftest.$ac_objext conftest$ac_exeext
12257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12258 (eval $ac_link) 2>conftest.er1
12260 grep -v '^ *+' conftest.er1 >conftest.err
12262 cat conftest.err >&5
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); } &&
12265 { ac_try='test -z "$ac_cxx_werror_flag"
12266 || test ! -s conftest.err'
12267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12268 (eval $ac_try) 2>&5
12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); }; } &&
12272 { ac_try='test -s conftest$ac_exeext'
12273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12274 (eval $ac_try) 2>&5
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); }; }; then
12280 cat >>confdefs.h <<\_ACEOF
12281 #define UNIX98_PTY 1
12284 echo "$as_me:$LINENO: result: yes" >&5
12285 echo "${ECHO_T}yes" >&6
12287 echo "$as_me: failed program was:" >&5
12288 sed 's/^/| /' conftest.$ac_ext >&5
12290 echo "$as_me:$LINENO: result: no" >&5
12291 echo "${ECHO_T}no" >&6
12293 rm -f conftest.err conftest.$ac_objext \
12294 conftest$ac_exeext conftest.$ac_ext
12297 if test -z "$unix98_pty"; then
12299 for ac_func in openpty
12301 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12302 echo "$as_me:$LINENO: checking for $ac_func" >&5
12303 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12304 if eval "test \"\${$as_ac_var+set}\" = set"; then
12305 echo $ECHO_N "(cached) $ECHO_C" >&6
12307 cat >conftest.$ac_ext <<_ACEOF
12310 cat confdefs.h >>conftest.$ac_ext
12311 cat >>conftest.$ac_ext <<_ACEOF
12312 /* end confdefs.h. */
12313 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12314 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12315 #define $ac_func innocuous_$ac_func
12317 /* System header to define __stub macros and hopefully few prototypes,
12318 which can conflict with char $ac_func (); below.
12319 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12320 <limits.h> exists even on freestanding compilers. */
12323 # include <limits.h>
12325 # include <assert.h>
12330 /* Override any gcc2 internal prototype to avoid an error. */
12335 /* We use char because int might match the return type of a gcc2
12336 builtin and then its argument prototype would still apply. */
12338 /* The GNU C library defines this for functions which it implements
12339 to always fail with ENOSYS. Some functions are actually named
12340 something starting with __ and the normal name is an alias. */
12341 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12344 char (*f) () = $ac_func;
12353 return f != $ac_func;
12358 rm -f conftest.$ac_objext conftest$ac_exeext
12359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12360 (eval $ac_link) 2>conftest.er1
12362 grep -v '^ *+' conftest.er1 >conftest.err
12364 cat conftest.err >&5
12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); } &&
12367 { ac_try='test -z "$ac_cxx_werror_flag"
12368 || test ! -s conftest.err'
12369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12370 (eval $ac_try) 2>&5
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); }; } &&
12374 { ac_try='test -s conftest$ac_exeext'
12375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12376 (eval $ac_try) 2>&5
12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); }; }; then
12380 eval "$as_ac_var=yes"
12382 echo "$as_me: failed program was:" >&5
12383 sed 's/^/| /' conftest.$ac_ext >&5
12385 eval "$as_ac_var=no"
12387 rm -f conftest.err conftest.$ac_objext \
12388 conftest$ac_exeext conftest.$ac_ext
12390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12391 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12392 if test `eval echo '${'$as_ac_var'}'` = yes; then
12393 cat >>confdefs.h <<_ACEOF
12394 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12398 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
12399 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
12400 if test "${ac_cv_lib_util_openpty+set}" = set; then
12401 echo $ECHO_N "(cached) $ECHO_C" >&6
12403 ac_check_lib_save_LIBS=$LIBS
12404 LIBS="-lutil $LIBS"
12405 cat >conftest.$ac_ext <<_ACEOF
12408 cat confdefs.h >>conftest.$ac_ext
12409 cat >>conftest.$ac_ext <<_ACEOF
12410 /* end confdefs.h. */
12412 /* Override any gcc2 internal prototype to avoid an error. */
12416 /* We use char because int might match the return type of a gcc2
12417 builtin and then its argument prototype would still apply. */
12427 rm -f conftest.$ac_objext conftest$ac_exeext
12428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12429 (eval $ac_link) 2>conftest.er1
12431 grep -v '^ *+' conftest.er1 >conftest.err
12433 cat conftest.err >&5
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); } &&
12436 { ac_try='test -z "$ac_cxx_werror_flag"
12437 || test ! -s conftest.err'
12438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12439 (eval $ac_try) 2>&5
12441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442 (exit $ac_status); }; } &&
12443 { ac_try='test -s conftest$ac_exeext'
12444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12445 (eval $ac_try) 2>&5
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); }; }; then
12449 ac_cv_lib_util_openpty=yes
12451 echo "$as_me: failed program was:" >&5
12452 sed 's/^/| /' conftest.$ac_ext >&5
12454 ac_cv_lib_util_openpty=no
12456 rm -f conftest.err conftest.$ac_objext \
12457 conftest$ac_exeext conftest.$ac_ext
12458 LIBS=$ac_check_lib_save_LIBS
12460 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
12461 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
12462 if test $ac_cv_lib_util_openpty = yes; then
12463 cat >>confdefs.h <<\_ACEOF
12464 #define HAVE_OPENPTY 1
12466 LIBS="$LIBS -lutil"
12476 echo "$as_me:$LINENO: checking for tty group" >&5
12477 echo $ECHO_N "checking for tty group... $ECHO_C" >&6
12478 if test "${tty_group+set}" = set; then
12479 echo $ECHO_N "(cached) $ECHO_C" >&6
12481 if test "$cross_compiling" = yes; then
12484 cat >conftest.$ac_ext <<_ACEOF
12487 cat confdefs.h >>conftest.$ac_ext
12488 cat >>conftest.$ac_ext <<_ACEOF
12489 /* end confdefs.h. */
12491 #include <sys/types.h>
12492 #include <sys/stat.h>
12493 #include <unistd.h>
12501 gr = getgrnam("tty");
12505 && (stat(tty, &st)) == 0
12506 && st.st_gid == gr->gr_gid)
12512 rm -f conftest$ac_exeext
12513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12514 (eval $ac_link) 2>&5
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12519 (eval $ac_try) 2>&5
12521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522 (exit $ac_status); }; }; then
12525 echo "$as_me: program exited with status $ac_status" >&5
12526 echo "$as_me: failed program was:" >&5
12527 sed 's/^/| /' conftest.$ac_ext >&5
12529 ( exit $ac_status )
12532 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12535 echo "$as_me:$LINENO: result: $tty_group" >&5
12536 echo "${ECHO_T}$tty_group" >&6
12537 if test x$tty_group = xyes; then
12539 cat >>confdefs.h <<\_ACEOF
12540 #define TTY_GID_SUPPORT 1
12545 if test x$support_xft = xyes; then
12546 # Extract the first word of "pkg-config", so it can be a program name with args.
12547 set dummy pkg-config; ac_word=$2
12548 echo "$as_me:$LINENO: checking for $ac_word" >&5
12549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12550 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12551 echo $ECHO_N "(cached) $ECHO_C" >&6
12553 case $PKG_CONFIG in
12555 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12559 for as_dir in $PATH
12562 test -z "$as_dir" && as_dir=.
12563 for ac_exec_ext in '' $ac_executable_extensions; do
12564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12565 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12572 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12576 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12578 if test -n "$PKG_CONFIG"; then
12579 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12580 echo "${ECHO_T}$PKG_CONFIG" >&6
12582 echo "$as_me:$LINENO: result: no" >&5
12583 echo "${ECHO_T}no" >&6
12586 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
12587 LIBS="$LIBS `$PKG_CONFIG xft --libs`"
12588 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
12590 # Extract the first word of "xft-config", so it can be a program name with args.
12591 set dummy xft-config; ac_word=$2
12592 echo "$as_me:$LINENO: checking for $ac_word" >&5
12593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12594 if test "${ac_cv_path_XFT_CONFIG+set}" = set; then
12595 echo $ECHO_N "(cached) $ECHO_C" >&6
12597 case $XFT_CONFIG in
12599 ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path.
12602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12603 for as_dir in $PATH
12606 test -z "$as_dir" && as_dir=.
12607 for ac_exec_ext in '' $ac_executable_extensions; do
12608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12609 ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12616 test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no"
12620 XFT_CONFIG=$ac_cv_path_XFT_CONFIG
12622 if test -n "$XFT_CONFIG"; then
12623 echo "$as_me:$LINENO: result: $XFT_CONFIG" >&5
12624 echo "${ECHO_T}$XFT_CONFIG" >&6
12626 echo "$as_me:$LINENO: result: no" >&5
12627 echo "${ECHO_T}no" >&6
12630 if test $XFT_CONFIG != no; then
12631 LIBS="$LIBS `$XFT_CONFIG --libs`"
12632 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
12637 for ac_header in X11/Xft/Xft.h
12639 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12640 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12641 echo "$as_me:$LINENO: checking for $ac_header" >&5
12642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12644 echo $ECHO_N "(cached) $ECHO_C" >&6
12646 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12647 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12649 # Is the header compilable?
12650 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12651 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12652 cat >conftest.$ac_ext <<_ACEOF
12655 cat confdefs.h >>conftest.$ac_ext
12656 cat >>conftest.$ac_ext <<_ACEOF
12657 /* end confdefs.h. */
12658 $ac_includes_default
12659 #include <$ac_header>
12661 rm -f conftest.$ac_objext
12662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12663 (eval $ac_compile) 2>conftest.er1
12665 grep -v '^ *+' conftest.er1 >conftest.err
12667 cat conftest.err >&5
12668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669 (exit $ac_status); } &&
12670 { ac_try='test -z "$ac_cxx_werror_flag"
12671 || test ! -s conftest.err'
12672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12673 (eval $ac_try) 2>&5
12675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676 (exit $ac_status); }; } &&
12677 { ac_try='test -s conftest.$ac_objext'
12678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12679 (eval $ac_try) 2>&5
12681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682 (exit $ac_status); }; }; then
12683 ac_header_compiler=yes
12685 echo "$as_me: failed program was:" >&5
12686 sed 's/^/| /' conftest.$ac_ext >&5
12688 ac_header_compiler=no
12690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12691 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12692 echo "${ECHO_T}$ac_header_compiler" >&6
12694 # Is the header present?
12695 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12696 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12697 cat >conftest.$ac_ext <<_ACEOF
12700 cat confdefs.h >>conftest.$ac_ext
12701 cat >>conftest.$ac_ext <<_ACEOF
12702 /* end confdefs.h. */
12703 #include <$ac_header>
12705 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12706 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12708 grep -v '^ *+' conftest.er1 >conftest.err
12710 cat conftest.err >&5
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); } >/dev/null; then
12713 if test -s conftest.err; then
12714 ac_cpp_err=$ac_cxx_preproc_warn_flag
12715 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12722 if test -z "$ac_cpp_err"; then
12723 ac_header_preproc=yes
12725 echo "$as_me: failed program was:" >&5
12726 sed 's/^/| /' conftest.$ac_ext >&5
12728 ac_header_preproc=no
12730 rm -f conftest.err conftest.$ac_ext
12731 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12732 echo "${ECHO_T}$ac_header_preproc" >&6
12734 # So? What about this header?
12735 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
12737 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12738 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12740 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12741 ac_header_preproc=yes
12744 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12745 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12746 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12747 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12748 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12749 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12750 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12751 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12753 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12754 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12755 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12758 ## ------------------------------------------ ##
12759 ## Report this to the AC_PACKAGE_NAME lists. ##
12760 ## ------------------------------------------ ##
12763 sed "s/^/$as_me: WARNING: /" >&2
12766 echo "$as_me:$LINENO: checking for $ac_header" >&5
12767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12769 echo $ECHO_N "(cached) $ECHO_C" >&6
12771 eval "$as_ac_Header=\$ac_header_preproc"
12773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12774 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12778 cat >>confdefs.h <<_ACEOF
12779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12789 echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5
12790 echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6
12791 if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then
12792 echo $ECHO_N "(cached) $ECHO_C" >&6
12794 ac_check_lib_save_LIBS=$LIBS
12796 cat >conftest.$ac_ext <<_ACEOF
12799 cat confdefs.h >>conftest.$ac_ext
12800 cat >>conftest.$ac_ext <<_ACEOF
12801 /* end confdefs.h. */
12803 /* Override any gcc2 internal prototype to avoid an error. */
12807 /* We use char because int might match the return type of a gcc2
12808 builtin and then its argument prototype would still apply. */
12809 char XftDrawString32 ();
12813 XftDrawString32 ();
12818 rm -f conftest.$ac_objext conftest$ac_exeext
12819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12820 (eval $ac_link) 2>conftest.er1
12822 grep -v '^ *+' conftest.er1 >conftest.err
12824 cat conftest.err >&5
12825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); } &&
12827 { ac_try='test -z "$ac_cxx_werror_flag"
12828 || test ! -s conftest.err'
12829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12830 (eval $ac_try) 2>&5
12832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833 (exit $ac_status); }; } &&
12834 { ac_try='test -s conftest$ac_exeext'
12835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12836 (eval $ac_try) 2>&5
12838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839 (exit $ac_status); }; }; then
12840 ac_cv_lib_Xft_XftDrawString32=yes
12842 echo "$as_me: failed program was:" >&5
12843 sed 's/^/| /' conftest.$ac_ext >&5
12845 ac_cv_lib_Xft_XftDrawString32=no
12847 rm -f conftest.err conftest.$ac_objext \
12848 conftest$ac_exeext conftest.$ac_ext
12849 LIBS=$ac_check_lib_save_LIBS
12851 echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5
12852 echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6
12853 if test $ac_cv_lib_Xft_XftDrawString32 = yes; then
12854 cat >>confdefs.h <<_ACEOF
12855 #define HAVE_LIBXFT 1
12865 if test x$support_xft = xyes; then
12867 cat >>confdefs.h <<\_ACEOF
12873 if test x$support_styles = xyes; then
12875 cat >>confdefs.h <<\_ACEOF
12876 #define ENABLE_STYLES 1
12880 if test x$support_iso14755 = xyes; then
12882 cat >>confdefs.h <<\_ACEOF
12883 #define ISO_14755 1
12887 if test x$support_8bitctrls = xyes; then
12889 cat >>confdefs.h <<\_ACEOF
12890 #define EIGHT_BIT_CONTROLS 1
12894 if test x$support_fading = xyes; then
12896 cat >>confdefs.h <<\_ACEOF
12897 #define OFF_FOCUS_FADING 1
12901 if test x$support_tinting = xyes; then
12903 cat >>confdefs.h <<\_ACEOF
12908 if test x$support_inheritpixmap = xyes; then
12910 cat >>confdefs.h <<\_ACEOF
12911 #define TRANSPARENT 1
12915 if test x$support_keepscrolling = xno; then
12917 cat >>confdefs.h <<\_ACEOF
12918 #define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
12922 if test x$support_selectionscrolling = xyes; then
12924 cat >>confdefs.h <<\_ACEOF
12925 #define SELECTION_SCROLLING 1
12929 if test x$support_frills = xyes; then
12931 cat >>confdefs.h <<\_ACEOF
12932 #define ENABLE_FRILLS 1
12936 if test x$support_mousewheel = xyes; then
12938 cat >>confdefs.h <<\_ACEOF
12939 #define MOUSE_WHEEL 1
12943 if test x$support_mouseslipwheel = xyes; then
12945 cat >>confdefs.h <<\_ACEOF
12946 #define MOUSE_SLIP_WHEELING 1
12950 if test x$support_xim = xyes -o x$multichar_set = xyes; then
12951 if test x$rxvt_cv_func_xlocale = xyes; then
12953 cat >>confdefs.h <<\_ACEOF
12959 if test x$support_xpm = xyes -o x$support_afterimage = xyes ; then
12961 cat >>confdefs.h <<\_ACEOF
12962 #define XPM_BACKGROUND 1
12967 if test x$support_afterimage = xyes; then
12969 cat >>confdefs.h <<\_ACEOF
12970 #define HAVE_AFTERIMAGE 1
12975 if test x$support_afterstep = xyes; then
12977 cat >>confdefs.h <<\_ACEOF
12978 #define AFTERSTEP_INTEGRATION 1
12983 if test x$support_scroll_rxvt = xyes; then
12985 cat >>confdefs.h <<\_ACEOF
12986 #define RXVT_SCROLLBAR 1
12991 if test x$support_scroll_next = xyes; then
12993 cat >>confdefs.h <<\_ACEOF
12994 #define NEXT_SCROLLBAR 1
12997 scrolltypes="$scrolltypes next"
12999 if test x$support_scroll_xterm = xyes; then
13001 cat >>confdefs.h <<\_ACEOF
13002 #define XTERM_SCROLLBAR 1
13005 scrolltypes="$scrolltypes xterm"
13007 if test x$support_scroll_plain = xyes; then
13009 cat >>confdefs.h <<\_ACEOF
13010 #define PLAIN_SCROLLBAR 1
13013 scrolltypes="$scrolltypes plain"
13015 if test x$support_pointer_blank = xyes; then
13017 cat >>confdefs.h <<\_ACEOF
13018 #define POINTER_BLANK 1
13022 if test x$support_text_blink = xyes; then
13024 cat >>confdefs.h <<\_ACEOF
13025 #define TEXT_BLINK 1
13029 if test x$support_unicode3 = xyes; then
13031 cat >>confdefs.h <<\_ACEOF
13032 #define UNICODE_3 1
13036 if test x$support_combining = xyes; then
13038 cat >>confdefs.h <<\_ACEOF
13039 #define ENABLE_COMBINING 1
13043 if test x$codesets = xall; then
13044 codesets=jp,jp-ext,kr,zh,zh-ext
13047 cat >>confdefs.h <<\_ACEOF
13048 #define ENCODING_EU 1
13052 cat >>confdefs.h <<\_ACEOF
13053 #define ENCODING_VN 1
13056 for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
13059 cat >>confdefs.h <<\_ACEOF
13060 #define ENCODING_JP 1
13064 cat >>confdefs.h <<\_ACEOF
13065 #define ENCODING_JP_EXT 1
13069 cat >>confdefs.h <<\_ACEOF
13070 #define ENCODING_KR 1
13074 cat >>confdefs.h <<\_ACEOF
13075 #define ENCODING_ZH 1
13079 cat >>confdefs.h <<\_ACEOF
13080 #define ENCODING_ZH_EXT 1
13087 if test x$support_perl = xyes; then
13088 # Extract the first word of "perl5", so it can be a program name with args.
13089 set dummy perl5; ac_word=$2
13090 echo "$as_me:$LINENO: checking for $ac_word" >&5
13091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13092 if test "${ac_cv_path_PERL+set}" = set; then
13093 echo $ECHO_N "(cached) $ECHO_C" >&6
13097 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
13100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13101 for as_dir in $PATH
13104 test -z "$as_dir" && as_dir=.
13105 for ac_exec_ext in '' $ac_executable_extensions; do
13106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13107 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
13108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13117 PERL=$ac_cv_path_PERL
13119 if test -n "$PERL"; then
13120 echo "$as_me:$LINENO: result: $PERL" >&5
13121 echo "${ECHO_T}$PERL" >&6
13123 echo "$as_me:$LINENO: result: no" >&5
13124 echo "${ECHO_T}no" >&6
13127 # Extract the first word of "perl", so it can be a program name with args.
13128 set dummy perl; ac_word=$2
13129 echo "$as_me:$LINENO: checking for $ac_word" >&5
13130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13131 if test "${ac_cv_path_PERL+set}" = set; then
13132 echo $ECHO_N "(cached) $ECHO_C" >&6
13136 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
13139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13140 for as_dir in $PATH
13143 test -z "$as_dir" && as_dir=.
13144 for ac_exec_ext in '' $ac_executable_extensions; do
13145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13146 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
13147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13156 PERL=$ac_cv_path_PERL
13158 if test -n "$PERL"; then
13159 echo "$as_me:$LINENO: result: $PERL" >&5
13160 echo "${ECHO_T}$PERL" >&6
13162 echo "$as_me:$LINENO: result: no" >&5
13163 echo "${ECHO_T}no" >&6
13167 echo "$as_me:$LINENO: checking for $PERL suitability" >&5
13168 echo $ECHO_N "checking for $PERL suitability... $ECHO_C" >&6
13169 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then
13171 save_CXXFLAGS="$CXXFLAGS"
13173 CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`"
13174 LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`"
13175 cat >conftest.$ac_ext <<_ACEOF
13178 cat confdefs.h >>conftest.$ac_ext
13179 cat >>conftest.$ac_ext <<_ACEOF
13180 /* end confdefs.h. */
13182 #include <EXTERN.h>
13190 PerlInterpreter *perl = perl_alloc ();
13196 rm -f conftest.$ac_objext conftest$ac_exeext
13197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13198 (eval $ac_link) 2>conftest.er1
13200 grep -v '^ *+' conftest.er1 >conftest.err
13202 cat conftest.err >&5
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); } &&
13205 { ac_try='test -z "$ac_cxx_werror_flag"
13206 || test ! -s conftest.err'
13207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13208 (eval $ac_try) 2>&5
13210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); }; } &&
13212 { ac_try='test -s conftest$ac_exeext'
13213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13214 (eval $ac_try) 2>&5
13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); }; }; then
13220 echo "$as_me: failed program was:" >&5
13221 sed 's/^/| /' conftest.$ac_ext >&5
13225 rm -f conftest.err conftest.$ac_objext \
13226 conftest$ac_exeext conftest.$ac_ext
13227 CXXFLAGS="$save_CXXFLAGS"
13230 if test x$rxvt_perl_link = xyes; then
13231 echo "$as_me:$LINENO: result: ok" >&5
13232 echo "${ECHO_T}ok" >&6
13234 cat >>confdefs.h <<\_ACEOF
13235 #define ENABLE_PERL 1
13240 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
13241 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
13242 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`"
13244 { { echo "$as_me:$LINENO: error: no, unable to link" >&5
13245 echo "$as_me: error: no, unable to link" >&2;}
13246 { (exit 1); exit 1; }; }
13249 { { echo "$as_me:$LINENO: error: no working perl found, or perl not version >= 5.8" >&5
13250 echo "$as_me: error: no working perl found, or perl not version >= 5.8" >&2;}
13251 { (exit 1); exit 1; }; }
13261 if test x$support_perl = xyes; then
13270 if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
13271 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
13272 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
13273 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
13274 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
13283 test "$program_prefix" != NONE &&
13284 program_transform_name="s,^,$program_prefix,;$program_transform_name"
13285 # Use a double $ so make ignores it.
13286 test "$program_suffix" != NONE &&
13287 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
13288 # Double any \ or $. echo might interpret backslashes.
13289 # By default was `s,x,x', remove it if useless.
13290 cat <<\_ACEOF >conftest.sed
13291 s/[\\$]/&&/g;s/;s,x,x,$//
13293 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
13300 if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
13301 include_stdint_h="#include <stdint.h>"
13303 include_stdint_h="/* #include <stdint.h> */"
13305 if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
13306 include_stdarg_h="#include <cstdarg>"
13308 include_stdarg_h="/* #include <cstdarg> */"
13310 if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
13311 include_stdlib_h="#include <cstdlib>"
13313 include_stdlib_h="/* #include <cstdlib> */"
13315 if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
13316 include_unistd_h="#include <unistd.h>"
13318 include_unistd_h="/* #include <unistd.h> */"
13320 if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
13321 include_string_h="#include <cstring>"
13323 include_string_h="/* #include <cstring> */"
13325 if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
13326 include_fcntl_h="#include <fcntl.h>"
13328 include_fcntl_h="/* #include <fcntl.h> */"
13330 if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
13331 include_util_h="#include <util.h>"
13333 include_util_h="/* #include <util.h> */"
13335 if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
13336 include_assert_h="#include <assert.h>"
13338 include_assert_h="/* #include <assert.h> */"
13340 if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
13341 include_sys_ioctl_h="#include <sys/ioctl.h>"
13343 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
13345 if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
13346 include_sys_select_h="#include <sys/select.h>"
13348 include_sys_select_h="/* #include <sys/select.h> */"
13350 if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
13351 include_sys_strredir_h="#include <sys/strredir.h>"
13353 include_sys_strredir_h="/* #include <sys/strredir.h> */"
13355 if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
13356 include_sys_time_h="#include <sys/time.h>"
13358 include_sys_time_h="/* #include <sys/time.h> */"
13360 if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
13361 include_time_h="#include <time.h>"
13363 include_time_h="/* #include <time.h> */"
13366 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h"
13368 cat >confcache <<\_ACEOF
13369 # This file is a shell script that caches the results of configure
13370 # tests run on this system so they can be shared between configure
13371 # scripts and configure runs, see configure's option --config-cache.
13372 # It is not useful on other systems. If it contains results you don't
13373 # want to keep, you may remove or edit it.
13375 # config.status only pays attention to the cache file if you give it
13376 # the --recheck option to rerun configure.
13378 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13379 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13380 # following values.
13384 # The following way of writing the cache mishandles newlines in values,
13385 # but we know of no workaround that is simple, portable, and efficient.
13386 # So, don't put newlines in cache variables' values.
13387 # Ultrix sh set writes to stderr and can't be redirected directly,
13388 # and sets the high bit in the cache file unless we assign to the vars.
13391 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13393 # `set' does not quote correctly, so add quotes (double-quote
13394 # substitution turns \\\\ into \\, and sed turns \\ into \).
13397 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13400 # `set' quotes correctly as required by POSIX, so do not add quotes.
13402 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13409 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13411 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13413 if diff $cache_file confcache >/dev/null 2>&1; then :; else
13414 if test -w $cache_file; then
13415 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13416 cat confcache >$cache_file
13418 echo "not updating unwritable cache $cache_file"
13423 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13424 # Let make expand exec_prefix.
13425 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13427 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13428 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13429 # trailing colons and then remove the whole line if VPATH becomes empty
13430 # (actually we leave an empty line to preserve line numbers).
13431 if test "x$srcdir" = x.; then
13432 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13433 s/:*\$(srcdir):*/:/;
13434 s/:*\${srcdir}:*/:/;
13436 s/^\([^=]*=[ ]*\):*/\1/;
13442 DEFS=-DHAVE_CONFIG_H
13446 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13447 # 1. Remove the extension, and $U if already installed.
13448 ac_i=`echo "$ac_i" |
13449 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13451 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13452 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13454 LIBOBJS=$ac_libobjs
13456 LTLIBOBJS=$ac_ltlibobjs
13460 : ${CONFIG_STATUS=./config.status}
13461 ac_clean_files_save=$ac_clean_files
13462 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13463 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13464 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13465 cat >$CONFIG_STATUS <<_ACEOF
13467 # Generated by $as_me.
13468 # Run this file to recreate the current configuration.
13469 # Compiler output produced by configure, useful for debugging
13470 # configure, is in config.log if it exists.
13473 ac_cs_recheck=false
13475 SHELL=\${CONFIG_SHELL-$SHELL}
13478 cat >>$CONFIG_STATUS <<\_ACEOF
13479 ## --------------------- ##
13480 ## M4sh Initialization. ##
13481 ## --------------------- ##
13483 # Be Bourne compatible
13484 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13487 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13488 # is contrary to our usage. Disable this feature.
13489 alias -g '${1+"$@"}'='"$@"'
13490 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13493 DUALCASE=1; export DUALCASE # for MKS sh
13495 # Support unset when possible.
13496 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13503 # Work around bugs in pre-3.0 UWIN ksh.
13504 $as_unset ENV MAIL MAILPATH
13511 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13512 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13513 LC_TELEPHONE LC_TIME
13515 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13516 eval $as_var=C; export $as_var
13522 # Required to use basename.
13523 if expr a : '\(a\)' >/dev/null 2>&1; then
13529 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13530 as_basename=basename
13536 # Name of the executable.
13537 as_me=`$as_basename "$0" ||
13538 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13539 X"$0" : 'X\(//\)$' \| \
13540 X"$0" : 'X\(/\)$' \| \
13541 . : '\(.\)' 2>/dev/null ||
13543 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13544 /^X\/\(\/\/\)$/{ s//\1/; q; }
13545 /^X\/\(\/\).*/{ s//\1/; q; }
13549 # PATH needs CR, and LINENO needs CR and PATH.
13550 # Avoid depending upon Character Ranges.
13551 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13552 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13553 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13554 as_cr_digits='0123456789'
13555 as_cr_alnum=$as_cr_Letters$as_cr_digits
13557 # The user is always right.
13558 if test "${PATH_SEPARATOR+set}" != set; then
13559 echo "#! /bin/sh" >conf$$.sh
13560 echo "exit 0" >>conf$$.sh
13562 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13571 as_lineno_1=$LINENO
13572 as_lineno_2=$LINENO
13573 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13574 test "x$as_lineno_1" != "x$as_lineno_2" &&
13575 test "x$as_lineno_3" = "x$as_lineno_2" || {
13576 # Find who we are. Look in the path if we contain no path at all
13579 *[\\/]* ) as_myself=$0 ;;
13580 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13581 for as_dir in $PATH
13584 test -z "$as_dir" && as_dir=.
13585 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13590 # We did not find ourselves, most probably we were run as `sh COMMAND'
13591 # in which case we are not to be found in the path.
13592 if test "x$as_myself" = x; then
13595 if test ! -f "$as_myself"; then
13596 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13597 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13598 { (exit 1); exit 1; }; }
13600 case $CONFIG_SHELL in
13602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13603 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13606 test -z "$as_dir" && as_dir=.
13607 for as_base in sh bash ksh sh5; do
13610 if ("$as_dir/$as_base" -c '
13611 as_lineno_1=$LINENO
13612 as_lineno_2=$LINENO
13613 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13614 test "x$as_lineno_1" != "x$as_lineno_2" &&
13615 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13616 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13617 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13618 CONFIG_SHELL=$as_dir/$as_base
13619 export CONFIG_SHELL
13620 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13628 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13629 # uniformly replaced by the line number. The first 'sed' inserts a
13630 # line-number line before each line; the second 'sed' does the real
13631 # work. The second script uses 'N' to pair each line-number line
13632 # with the numbered line, and appends trailing '-' during
13633 # substitution so that $LINENO is not a special case at line end.
13634 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13635 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13636 sed '=' <$as_myself |
13641 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13644 s,^['$as_cr_digits']*\n,,
13645 ' >$as_me.lineno &&
13646 chmod +x $as_me.lineno ||
13647 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13648 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13649 { (exit 1); exit 1; }; }
13651 # Don't try to exec as it changes $[0], causing all sort of problems
13652 # (the dirname of $[0] is not the place where we might find the
13653 # original and so on. Autoconf is especially sensible to this).
13655 # Exit status is that of the last command.
13660 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13661 *c*,-n*) ECHO_N= ECHO_C='
13663 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13664 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13667 if expr a : '\(a\)' >/dev/null 2>&1; then
13673 rm -f conf$$ conf$$.exe conf$$.file
13675 if ln -s conf$$.file conf$$ 2>/dev/null; then
13676 # We could just check for DJGPP; but this test a) works b) is more generic
13677 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13678 if test -f conf$$.exe; then
13679 # Don't use ln at all; we don't have any links
13684 elif ln conf$$.file conf$$ 2>/dev/null; then
13689 rm -f conf$$ conf$$.exe conf$$.file
13691 if mkdir -p . 2>/dev/null; then
13694 test -d ./-p && rmdir ./-p
13698 as_executable_p="test -f"
13700 # Sed expression to map a string onto a valid CPP name.
13701 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13703 # Sed expression to map a string onto a valid variable name.
13704 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13708 # We need space, tab and new line, in precisely that order.
13718 # Open the log real soon, to keep \$[0] and so on meaningful, and to
13719 # report actual input values of CONFIG_FILES etc. instead of their
13720 # values after options handling. Logging --version etc. is OK.
13724 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13725 ## Running $as_me. ##
13730 This file was extended by $as_me, which was
13731 generated by GNU Autoconf 2.59. Invocation command line was
13733 CONFIG_FILES = $CONFIG_FILES
13734 CONFIG_HEADERS = $CONFIG_HEADERS
13735 CONFIG_LINKS = $CONFIG_LINKS
13736 CONFIG_COMMANDS = $CONFIG_COMMANDS
13740 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13744 # Files that config.status was made for.
13745 if test -n "$ac_config_files"; then
13746 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13749 if test -n "$ac_config_headers"; then
13750 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13753 if test -n "$ac_config_links"; then
13754 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13757 if test -n "$ac_config_commands"; then
13758 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13761 cat >>$CONFIG_STATUS <<\_ACEOF
13764 \`$as_me' instantiates files from templates according to the
13765 current configuration.
13767 Usage: $0 [OPTIONS] [FILE]...
13769 -h, --help print this help, then exit
13770 -V, --version print version number, then exit
13771 -q, --quiet do not print progress messages
13772 -d, --debug don't remove temporary files
13773 --recheck update $as_me by reconfiguring in the same conditions
13774 --file=FILE[:TEMPLATE]
13775 instantiate the configuration file FILE
13776 --header=FILE[:TEMPLATE]
13777 instantiate the configuration header FILE
13779 Configuration files:
13782 Configuration headers:
13785 Report bugs to <bug-autoconf@gnu.org>."
13788 cat >>$CONFIG_STATUS <<_ACEOF
13791 configured by $0, generated by GNU Autoconf 2.59,
13792 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13794 Copyright (C) 2003 Free Software Foundation, Inc.
13795 This config.status script is free software; the Free Software Foundation
13796 gives unlimited permission to copy, distribute and modify it."
13801 cat >>$CONFIG_STATUS <<\_ACEOF
13802 # If no file are specified by the user, then we need to provide default
13803 # value. By we need to know if files were specified by the user.
13809 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13810 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13818 *) # This is not an option, so the user has probably given explicit
13821 ac_need_defaults=false;;
13825 # Handling of the options.
13827 cat >>$CONFIG_STATUS <<\_ACEOF
13828 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13830 --version | --vers* | -V )
13831 echo "$ac_cs_version"; exit 0 ;;
13833 # Conflict between --help and --header
13834 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13835 Try \`$0 --help' for more information." >&5
13836 echo "$as_me: error: ambiguous option: $1
13837 Try \`$0 --help' for more information." >&2;}
13838 { (exit 1); exit 1; }; };;
13839 --help | --hel | -h )
13840 echo "$ac_cs_usage"; exit 0 ;;
13841 --debug | --d* | -d )
13843 --file | --fil | --fi | --f )
13845 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13846 ac_need_defaults=false;;
13847 --header | --heade | --head | --hea )
13849 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13850 ac_need_defaults=false;;
13851 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13852 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13855 # This is an error.
13856 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13857 Try \`$0 --help' for more information." >&5
13858 echo "$as_me: error: unrecognized option: $1
13859 Try \`$0 --help' for more information." >&2;}
13860 { (exit 1); exit 1; }; } ;;
13862 *) ac_config_targets="$ac_config_targets $1" ;;
13868 ac_configure_extra_args=
13870 if $ac_cs_silent; then
13872 ac_configure_extra_args="$ac_configure_extra_args --silent"
13876 cat >>$CONFIG_STATUS <<_ACEOF
13877 if \$ac_cs_recheck; then
13878 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13879 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13888 cat >>$CONFIG_STATUS <<\_ACEOF
13889 for ac_config_target in $ac_config_targets
13891 case "$ac_config_target" in
13892 # Handling of arguments.
13893 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13894 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13895 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13896 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
13897 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
13898 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13899 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13900 { (exit 1); exit 1; }; };;
13904 # If the user did not use the arguments to specify the items to instantiate,
13905 # then the envvar interface is used. Set only those that are not.
13906 # We use the long form for the default assignment because of an extremely
13907 # bizarre bug on SunOS 4.1.3.
13908 if $ac_need_defaults; then
13909 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13910 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13913 # Have a temporary directory for convenience. Make it in the build tree
13914 # simply because there is no reason to put it here, and in addition,
13915 # creating and moving files from /tmp can sometimes cause problems.
13916 # Create a temporary directory, and hook for its removal unless debugging.
13919 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13920 trap '{ (exit 1); exit 1; }' 1 2 13 15
13923 # Create a (secure) tmp directory for tmp files.
13926 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13927 test -n "$tmp" && test -d "$tmp"
13930 tmp=./confstat$$-$RANDOM
13931 (umask 077 && mkdir $tmp)
13934 echo "$me: cannot create a temporary directory in ." >&2
13935 { (exit 1); exit 1; }
13940 cat >>$CONFIG_STATUS <<_ACEOF
13943 # CONFIG_FILES section.
13946 # No need to generate the scripts if there are no CONFIG_FILES.
13947 # This happens for instance when ./config.status config.h
13948 if test -n "\$CONFIG_FILES"; then
13949 # Protect against being on the right side of a sed subst in config.status.
13950 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13951 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13952 s,@SHELL@,$SHELL,;t t
13953 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13954 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13955 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13956 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13957 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13958 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13959 s,@exec_prefix@,$exec_prefix,;t t
13960 s,@prefix@,$prefix,;t t
13961 s,@program_transform_name@,$program_transform_name,;t t
13962 s,@bindir@,$bindir,;t t
13963 s,@sbindir@,$sbindir,;t t
13964 s,@libexecdir@,$libexecdir,;t t
13965 s,@datadir@,$datadir,;t t
13966 s,@sysconfdir@,$sysconfdir,;t t
13967 s,@sharedstatedir@,$sharedstatedir,;t t
13968 s,@localstatedir@,$localstatedir,;t t
13969 s,@libdir@,$libdir,;t t
13970 s,@includedir@,$includedir,;t t
13971 s,@oldincludedir@,$oldincludedir,;t t
13972 s,@infodir@,$infodir,;t t
13973 s,@mandir@,$mandir,;t t
13974 s,@build_alias@,$build_alias,;t t
13975 s,@host_alias@,$host_alias,;t t
13976 s,@target_alias@,$target_alias,;t t
13977 s,@DEFS@,$DEFS,;t t
13978 s,@ECHO_C@,$ECHO_C,;t t
13979 s,@ECHO_N@,$ECHO_N,;t t
13980 s,@ECHO_T@,$ECHO_T,;t t
13981 s,@LIBS@,$LIBS,;t t
13982 s,@build@,$build,;t t
13983 s,@build_cpu@,$build_cpu,;t t
13984 s,@build_vendor@,$build_vendor,;t t
13985 s,@build_os@,$build_os,;t t
13986 s,@host@,$host,;t t
13987 s,@host_cpu@,$host_cpu,;t t
13988 s,@host_vendor@,$host_vendor,;t t
13989 s,@host_os@,$host_os,;t t
13990 s,@VERSION@,$VERSION,;t t
13991 s,@DATE@,$DATE,;t t
13992 s,@LSMDATE@,$LSMDATE,;t t
13993 s,@LIBVERSION@,$LIBVERSION,;t t
13995 s,@CFLAGS@,$CFLAGS,;t t
13996 s,@LDFLAGS@,$LDFLAGS,;t t
13997 s,@CPPFLAGS@,$CPPFLAGS,;t t
13998 s,@ac_ct_CC@,$ac_ct_CC,;t t
13999 s,@EXEEXT@,$EXEEXT,;t t
14000 s,@OBJEXT@,$OBJEXT,;t t
14002 s,@CXXFLAGS@,$CXXFLAGS,;t t
14003 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
14005 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14006 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14007 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14008 s,@EGREP@,$EGREP,;t t
14009 s,@LINKER@,$LINKER,;t t
14010 s,@CXXLIB@,$CXXLIB,;t t
14011 s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t
14012 s,@RXVTNAME@,$RXVTNAME,;t t
14014 s,@CXXCPP@,$CXXCPP,;t t
14015 s,@X_CFLAGS@,$X_CFLAGS,;t t
14016 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
14017 s,@X_LIBS@,$X_LIBS,;t t
14018 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
14019 s,@afterimage_config@,$afterimage_config,;t t
14020 s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t
14021 s,@XPM_CFLAGS@,$XPM_CFLAGS,;t t
14022 s,@XPM_LIBS@,$XPM_LIBS,;t t
14023 s,@rxvt_int16_typedef@,$rxvt_int16_typedef,;t t
14024 s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t
14025 s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t
14026 s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t
14027 s,@rxvt_intp_define@,$rxvt_intp_define,;t t
14028 s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t
14029 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
14030 s,@XFT_CONFIG@,$XFT_CONFIG,;t t
14031 s,@PERL@,$PERL,;t t
14032 s,@PERLLIB@,$PERLLIB,;t t
14033 s,@PERLFLAGS@,$PERLFLAGS,;t t
14034 s,@PERLPRIVLIBEXP@,$PERLPRIVLIBEXP,;t t
14035 s,@IF_PERL@,$IF_PERL,;t t
14036 s,@PERL_O@,$PERL_O,;t t
14037 s,@LIBAFTERIMAGE_CFLAGS@,$LIBAFTERIMAGE_CFLAGS,;t t
14038 s,@AFTERIMAGE_LIBS@,$AFTERIMAGE_LIBS,;t t
14039 s,@include_stdint_h@,$include_stdint_h,;t t
14040 s,@include_stdarg_h@,$include_stdarg_h,;t t
14041 s,@include_stdlib_h@,$include_stdlib_h,;t t
14042 s,@include_unistd_h@,$include_unistd_h,;t t
14043 s,@include_string_h@,$include_string_h,;t t
14044 s,@include_fcntl_h@,$include_fcntl_h,;t t
14045 s,@include_util_h@,$include_util_h,;t t
14046 s,@include_assert_h@,$include_assert_h,;t t
14047 s,@include_sys_ioctl_h@,$include_sys_ioctl_h,;t t
14048 s,@include_sys_select_h@,$include_sys_select_h,;t t
14049 s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t
14050 s,@include_sys_time_h@,$include_sys_time_h,;t t
14051 s,@include_time_h@,$include_time_h,;t t
14052 s,@LIBOBJS@,$LIBOBJS,;t t
14053 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
14058 cat >>$CONFIG_STATUS <<\_ACEOF
14059 # Split the substitutions into bite-sized pieces for seds with
14060 # small command number limits, like on Digital OSF/1 and HP-UX.
14061 ac_max_sed_lines=48
14062 ac_sed_frag=1 # Number of current file.
14063 ac_beg=1 # First line for current file.
14064 ac_end=$ac_max_sed_lines # Line after last line for current file.
14067 while $ac_more_lines; do
14068 if test $ac_beg -gt 1; then
14069 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14071 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14073 if test ! -s $tmp/subs.frag; then
14074 ac_more_lines=false
14076 # The purpose of the label and of the branching condition is to
14077 # speed up the sed processing (if there are no `@' at all, there
14078 # is no need to browse any of the substitutions).
14079 # These are the two extra sed commands mentioned above.
14081 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14082 if test -z "$ac_sed_cmds"; then
14083 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14085 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14087 ac_sed_frag=`expr $ac_sed_frag + 1`
14089 ac_end=`expr $ac_end + $ac_max_sed_lines`
14092 if test -z "$ac_sed_cmds"; then
14095 fi # test -n "$CONFIG_FILES"
14098 cat >>$CONFIG_STATUS <<\_ACEOF
14099 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
14100 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14102 - | *:- | *:-:* ) # input from stdin
14104 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14105 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14106 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14107 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14108 * ) ac_file_in=$ac_file.in ;;
14111 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14112 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14113 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14114 X"$ac_file" : 'X\(//\)[^/]' \| \
14115 X"$ac_file" : 'X\(//\)$' \| \
14116 X"$ac_file" : 'X\(/\)' \| \
14117 . : '\(.\)' 2>/dev/null ||
14119 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14120 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14121 /^X\(\/\/\)$/{ s//\1/; q; }
14122 /^X\(\/\).*/{ s//\1/; q; }
14124 { if $as_mkdir_p; then
14129 while test ! -d "$as_dir"; do
14130 as_dirs="$as_dir $as_dirs"
14131 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14132 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14133 X"$as_dir" : 'X\(//\)[^/]' \| \
14134 X"$as_dir" : 'X\(//\)$' \| \
14135 X"$as_dir" : 'X\(/\)' \| \
14136 . : '\(.\)' 2>/dev/null ||
14138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14139 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14140 /^X\(\/\/\)$/{ s//\1/; q; }
14141 /^X\(\/\).*/{ s//\1/; q; }
14144 test ! -n "$as_dirs" || mkdir $as_dirs
14145 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14146 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14147 { (exit 1); exit 1; }; }; }
14151 if test "$ac_dir" != .; then
14152 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14153 # A "../" for each directory in $ac_dir_suffix.
14154 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14156 ac_dir_suffix= ac_top_builddir=
14160 .) # No --srcdir option. We are building in place.
14162 if test -z "$ac_top_builddir"; then
14165 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14167 [\\/]* | ?:[\\/]* ) # Absolute path.
14168 ac_srcdir=$srcdir$ac_dir_suffix;
14169 ac_top_srcdir=$srcdir ;;
14170 *) # Relative path.
14171 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14172 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14175 # Do not use `cd foo && pwd` to compute absolute paths, because
14176 # the directories may not exist.
14178 .) ac_abs_builddir="$ac_dir";;
14181 .) ac_abs_builddir=`pwd`;;
14182 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14183 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14186 case $ac_abs_builddir in
14187 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14189 case ${ac_top_builddir}. in
14190 .) ac_abs_top_builddir=$ac_abs_builddir;;
14191 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14192 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14195 case $ac_abs_builddir in
14196 .) ac_abs_srcdir=$ac_srcdir;;
14199 .) ac_abs_srcdir=$ac_abs_builddir;;
14200 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14201 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14204 case $ac_abs_builddir in
14205 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14207 case $ac_top_srcdir in
14208 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14209 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14210 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14216 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14217 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
14220 if test x"$ac_file" != x-; then
14221 { echo "$as_me:$LINENO: creating $ac_file" >&5
14222 echo "$as_me: creating $ac_file" >&6;}
14225 # Let's still pretend it is `configure' which instantiates (i.e., don't
14226 # use $as_me), people would be surprised to read:
14227 # /* config.h. Generated by config.status. */
14228 if test x"$ac_file" = x-; then
14231 configure_input="$ac_file. "
14233 configure_input=$configure_input"Generated from `echo $ac_file_in |
14234 sed 's,.*/,,'` by configure."
14236 # First look for the input files in the build tree, otherwise in the
14238 ac_file_inputs=`IFS=:
14239 for f in $ac_file_in; do
14241 -) echo $tmp/stdin ;;
14243 # Absolute (can't be DOS-style, as IFS=:)
14244 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14245 echo "$as_me: error: cannot find input file: $f" >&2;}
14246 { (exit 1); exit 1; }; }
14249 if test -f "$f"; then
14252 elif test -f "$srcdir/$f"; then
14257 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14258 echo "$as_me: error: cannot find input file: $f" >&2;}
14259 { (exit 1); exit 1; }; }
14262 done` || { (exit 1); exit 1; }
14264 cat >>$CONFIG_STATUS <<_ACEOF
14268 cat >>$CONFIG_STATUS <<\_ACEOF
14270 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14271 s,@configure_input@,$configure_input,;t t
14272 s,@srcdir@,$ac_srcdir,;t t
14273 s,@abs_srcdir@,$ac_abs_srcdir,;t t
14274 s,@top_srcdir@,$ac_top_srcdir,;t t
14275 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14276 s,@builddir@,$ac_builddir,;t t
14277 s,@abs_builddir@,$ac_abs_builddir,;t t
14278 s,@top_builddir@,$ac_top_builddir,;t t
14279 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14280 s,@INSTALL@,$ac_INSTALL,;t t
14281 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14283 if test x"$ac_file" != x-; then
14284 mv $tmp/out $ac_file
14292 cat >>$CONFIG_STATUS <<\_ACEOF
14295 # CONFIG_HEADER section.
14298 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14299 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14301 # ac_d sets the value in "#define NAME VALUE" lines.
14302 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14303 ac_dB='[ ].*$,\1#\2'
14306 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14307 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14308 ac_uB='$,\1#\2define\3'
14312 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14313 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14315 - | *:- | *:-:* ) # input from stdin
14317 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14318 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14319 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14320 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14321 * ) ac_file_in=$ac_file.in ;;
14324 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14325 echo "$as_me: creating $ac_file" >&6;}
14327 # First look for the input files in the build tree, otherwise in the
14329 ac_file_inputs=`IFS=:
14330 for f in $ac_file_in; do
14332 -) echo $tmp/stdin ;;
14334 # Absolute (can't be DOS-style, as IFS=:)
14335 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14336 echo "$as_me: error: cannot find input file: $f" >&2;}
14337 { (exit 1); exit 1; }; }
14338 # Do quote $f, to prevent DOS paths from being IFS'd.
14341 if test -f "$f"; then
14344 elif test -f "$srcdir/$f"; then
14349 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14350 echo "$as_me: error: cannot find input file: $f" >&2;}
14351 { (exit 1); exit 1; }; }
14354 done` || { (exit 1); exit 1; }
14355 # Remove the trailing spaces.
14356 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14360 # Transform confdefs.h into two sed scripts, `conftest.defines' and
14361 # `conftest.undefs', that substitutes the proper values into
14362 # config.h.in to produce config.h. The first handles `#define'
14363 # templates, and the second `#undef' templates.
14364 # And first: Protect against being on the right side of a sed subst in
14365 # config.status. Protect against being in an unquoted here document
14366 # in config.status.
14367 rm -f conftest.defines conftest.undefs
14368 # Using a here document instead of a string reduces the quoting nightmare.
14369 # Putting comments in sed scripts is not portable.
14371 # `end' is used to avoid that the second main sed command (meant for
14372 # 0-ary CPP macros) applies to n-ary macro definitions.
14373 # See the Autoconf documentation for `clear'.
14374 cat >confdef2sed.sed <<\_ACEOF
14379 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14381 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14384 # If some macros were called several times there might be several times
14385 # the same #defines, which is useless. Nevertheless, we may not want to
14386 # sort them, since we want the *last* AC-DEFINE to be honored.
14387 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14388 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14389 rm -f confdef2sed.sed
14391 # This sed command replaces #undef with comments. This is necessary, for
14392 # example, in the case of _POSIX_SOURCE, which is predefined and required
14393 # on some systems where configure will not decide to define it.
14394 cat >>conftest.undefs <<\_ACEOF
14395 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14398 # Break up conftest.defines because some shells have a limit on the size
14399 # of here documents, and old seds have small limits too (100 cmds).
14400 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14401 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14402 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14403 echo ' :' >>$CONFIG_STATUS
14404 rm -f conftest.tail
14405 while grep . conftest.defines >/dev/null
14407 # Write a limited-size here document to $tmp/defines.sed.
14408 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14409 # Speed up: don't consider the non `#define' lines.
14410 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14411 # Work around the forget-to-reset-the-flag bug.
14412 echo 't clr' >>$CONFIG_STATUS
14413 echo ': clr' >>$CONFIG_STATUS
14414 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14416 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14418 mv $tmp/out $tmp/in
14420 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14421 rm -f conftest.defines
14422 mv conftest.tail conftest.defines
14424 rm -f conftest.defines
14425 echo ' fi # grep' >>$CONFIG_STATUS
14426 echo >>$CONFIG_STATUS
14428 # Break up conftest.undefs because some shells have a limit on the size
14429 # of here documents, and old seds have small limits too (100 cmds).
14430 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
14431 rm -f conftest.tail
14432 while grep . conftest.undefs >/dev/null
14434 # Write a limited-size here document to $tmp/undefs.sed.
14435 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14436 # Speed up: don't consider the non `#undef'
14437 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14438 # Work around the forget-to-reset-the-flag bug.
14439 echo 't clr' >>$CONFIG_STATUS
14440 echo ': clr' >>$CONFIG_STATUS
14441 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14443 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14445 mv $tmp/out $tmp/in
14447 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14448 rm -f conftest.undefs
14449 mv conftest.tail conftest.undefs
14451 rm -f conftest.undefs
14453 cat >>$CONFIG_STATUS <<\_ACEOF
14454 # Let's still pretend it is `configure' which instantiates (i.e., don't
14455 # use $as_me), people would be surprised to read:
14456 # /* config.h. Generated by config.status. */
14457 if test x"$ac_file" = x-; then
14458 echo "/* Generated by configure. */" >$tmp/config.h
14460 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
14462 cat $tmp/in >>$tmp/config.h
14464 if test x"$ac_file" != x-; then
14465 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
14466 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14467 echo "$as_me: $ac_file is unchanged" >&6;}
14469 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14470 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14471 X"$ac_file" : 'X\(//\)[^/]' \| \
14472 X"$ac_file" : 'X\(//\)$' \| \
14473 X"$ac_file" : 'X\(/\)' \| \
14474 . : '\(.\)' 2>/dev/null ||
14476 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14477 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14478 /^X\(\/\/\)$/{ s//\1/; q; }
14479 /^X\(\/\).*/{ s//\1/; q; }
14481 { if $as_mkdir_p; then
14486 while test ! -d "$as_dir"; do
14487 as_dirs="$as_dir $as_dirs"
14488 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14489 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14490 X"$as_dir" : 'X\(//\)[^/]' \| \
14491 X"$as_dir" : 'X\(//\)$' \| \
14492 X"$as_dir" : 'X\(/\)' \| \
14493 . : '\(.\)' 2>/dev/null ||
14495 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14496 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14497 /^X\(\/\/\)$/{ s//\1/; q; }
14498 /^X\(\/\).*/{ s//\1/; q; }
14501 test ! -n "$as_dirs" || mkdir $as_dirs
14502 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14503 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14504 { (exit 1); exit 1; }; }; }
14507 mv $tmp/config.h $ac_file
14511 rm -f $tmp/config.h
14516 cat >>$CONFIG_STATUS <<\_ACEOF
14518 { (exit 0); exit 0; }
14520 chmod +x $CONFIG_STATUS
14521 ac_clean_files=$ac_clean_files_save
14524 # configure is writing to config.log, and then calls config.status.
14525 # config.status does its own redirection, appending to config.log.
14526 # Unfortunately, on DOS this fails, as config.log is still kept open
14527 # by configure, so config.status won't be able to write to it; its
14528 # output is simply discarded. So we exec the FD to /dev/null,
14529 # effectively closing config.log, so it can be properly (re)opened and
14530 # appended to by config.status. When coming back to configure, we
14531 # need to make the FD available again.
14532 if test "$no_create" != yes; then
14534 ac_config_status_args=
14535 test "$silent" = yes &&
14536 ac_config_status_args="$ac_config_status_args --quiet"
14538 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14540 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14541 # would make configure fail if this is the last instruction.
14542 $ac_cs_success || { (exit 1); exit 1; }
14546 echo "Configuration:
14548 Rxvt version: $VERSION : $DATE
14549 Source code location: $srcdir
14550 Install path: ${prefix}/bin
14552 Compiler flags: $CXXFLAGS
14555 if test x$support_xpm = xyes; then
14556 echo " Xpm library: $XPM_LIBS"
14559 if test x$support_afterimage = xyes; then
14560 echo " AfterImage support: yes"
14563 if test x$support_afterstep = xyes; then
14564 echo " AfterStep integration: yes"
14567 if test x$term != x; then
14568 echo " set TERM to: $term"
14570 if test x$terminfo != x; then
14571 echo " set TERMINFO to: $terminfo"
14573 echo " default resource name: $RESNAME"
14574 echo " resource class: $RESCLASS"
14575 if test x$RESFALLBACK != x; then
14576 echo " resource class fallback: $RESFALLBACK"
14579 echo " embedded perl: $support_perl"
14581 if test x$support_xpm = xneedsmanualspecification; then
14582 echo ".----------------------------------------------------------------."
14583 echo ". WARNING: --enable-xpm-background was specified however the ."
14584 echo ". XPM includes files and libraries could not be found. ."
14585 echo ". XPM backgrounds are now being DISABLED! If you want ."
14586 echo ". to use them you should rerun configure with the ."
14587 echo ". appropriate --with-xpm-includes=/path/to/xpm/includes ."
14588 echo ". and --with-xpm-library=/path/to/xpm/library lines. ."
14589 echo ".----------------------------------------------------------------."
14591 if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then
14592 echo ".----------------------------------------------------------------."
14593 echo ". WARNING: --enable-xim was specified however the locale support ."
14594 echo ". functions could not be found. ."
14595 echo ". XIM is now being DISABLED! ."
14596 echo ".----------------------------------------------------------------."
14599 echo "*** Optionally check src/feature.h for further, rarely used options ***"