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 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
3289 echo "$as_me:$LINENO: result: ok" >&5
3290 echo "${ECHO_T}ok" >&6
3292 echo "$as_me: failed program was:" >&5
3293 sed 's/^/| /' conftest.$ac_ext >&5
3296 echo "$as_me:$LINENO: result: no, making everything bigger and slower" >&5
3297 echo "${ECHO_T}no, making everything bigger and slower" >&6
3303 rm -f conftest.err conftest.$ac_objext \
3304 conftest$ac_exeext conftest.$ac_ext
3310 if test -z "$orig_CXXFLAGS"; then
3311 if test x$GCC = xyes && test "x$GXX" = xyes; then
3312 CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs"
3313 cat >conftest.$ac_ext <<_ACEOF
3316 cat confdefs.h >>conftest.$ac_ext
3317 cat >>conftest.$ac_ext <<_ACEOF
3318 /* end confdefs.h. */
3328 rm -f conftest.$ac_objext
3329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3330 (eval $ac_compile) 2>conftest.er1
3332 grep -v '^ *+' conftest.er1 >conftest.err
3334 cat conftest.err >&5
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); } &&
3337 { ac_try='test -z "$ac_cxx_werror_flag"
3338 || test ! -s conftest.err'
3339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); }; } &&
3344 { ac_try='test -s conftest.$ac_objext'
3345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); }; }; then
3352 echo "$as_me: failed program was:" >&5
3353 sed 's/^/| /' conftest.$ac_ext >&5
3357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3365 cat >>confdefs.h <<\_ACEOF
3366 #define _GNU_SOURCE 1
3373 cat >>confdefs.h <<\_ACEOF
3374 #define _XOPEN_SOURCE 500
3381 echo "$as_me:$LINENO: checking for setlocale" >&5
3382 echo $ECHO_N "checking for setlocale... $ECHO_C" >&6
3383 if test "${ac_cv_func_setlocale+set}" = set; then
3384 echo $ECHO_N "(cached) $ECHO_C" >&6
3386 cat >conftest.$ac_ext <<_ACEOF
3389 cat confdefs.h >>conftest.$ac_ext
3390 cat >>conftest.$ac_ext <<_ACEOF
3391 /* end confdefs.h. */
3392 /* Define setlocale to an innocuous variant, in case <limits.h> declares setlocale.
3393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3394 #define setlocale innocuous_setlocale
3396 /* System header to define __stub macros and hopefully few prototypes,
3397 which can conflict with char setlocale (); below.
3398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3399 <limits.h> exists even on freestanding compilers. */
3402 # include <limits.h>
3404 # include <assert.h>
3409 /* Override any gcc2 internal prototype to avoid an error. */
3414 /* We use char because int might match the return type of a gcc2
3415 builtin and then its argument prototype would still apply. */
3417 /* The GNU C library defines this for functions which it implements
3418 to always fail with ENOSYS. Some functions are actually named
3419 something starting with __ and the normal name is an alias. */
3420 #if defined (__stub_setlocale) || defined (__stub___setlocale)
3423 char (*f) () = setlocale;
3432 return f != setlocale;
3437 rm -f conftest.$ac_objext conftest$ac_exeext
3438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3439 (eval $ac_link) 2>conftest.er1
3441 grep -v '^ *+' conftest.er1 >conftest.err
3443 cat conftest.err >&5
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); } &&
3446 { ac_try='test -z "$ac_cxx_werror_flag"
3447 || test ! -s conftest.err'
3448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); }; } &&
3453 { ac_try='test -s conftest$ac_exeext'
3454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); }; }; then
3459 ac_cv_func_setlocale=yes
3461 echo "$as_me: failed program was:" >&5
3462 sed 's/^/| /' conftest.$ac_ext >&5
3464 ac_cv_func_setlocale=no
3466 rm -f conftest.err conftest.$ac_objext \
3467 conftest$ac_exeext conftest.$ac_ext
3469 echo "$as_me:$LINENO: result: $ac_cv_func_setlocale" >&5
3470 echo "${ECHO_T}$ac_cv_func_setlocale" >&6
3471 if test $ac_cv_func_setlocale = yes; then
3474 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
3475 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
3476 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
3477 echo $ECHO_N "(cached) $ECHO_C" >&6
3479 ac_check_lib_save_LIBS=$LIBS
3481 cat >conftest.$ac_ext <<_ACEOF
3484 cat confdefs.h >>conftest.$ac_ext
3485 cat >>conftest.$ac_ext <<_ACEOF
3486 /* end confdefs.h. */
3488 /* Override any gcc2 internal prototype to avoid an error. */
3492 /* We use char because int might match the return type of a gcc2
3493 builtin and then its argument prototype would still apply. */
3503 rm -f conftest.$ac_objext conftest$ac_exeext
3504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3505 (eval $ac_link) 2>conftest.er1
3507 grep -v '^ *+' conftest.er1 >conftest.err
3509 cat conftest.err >&5
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); } &&
3512 { ac_try='test -z "$ac_cxx_werror_flag"
3513 || test ! -s conftest.err'
3514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518 (exit $ac_status); }; } &&
3519 { ac_try='test -s conftest$ac_exeext'
3520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); }; }; then
3525 ac_cv_lib_xpg4_setlocale=yes
3527 echo "$as_me: failed program was:" >&5
3528 sed 's/^/| /' conftest.$ac_ext >&5
3530 ac_cv_lib_xpg4_setlocale=no
3532 rm -f conftest.err conftest.$ac_objext \
3533 conftest$ac_exeext conftest.$ac_ext
3534 LIBS=$ac_check_lib_save_LIBS
3536 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
3537 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
3538 if test $ac_cv_lib_xpg4_setlocale = yes; then
3545 echo "$as_me:$LINENO: checking for gethostbyname" >&5
3546 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3547 if test "${ac_cv_func_gethostbyname+set}" = set; then
3548 echo $ECHO_N "(cached) $ECHO_C" >&6
3550 cat >conftest.$ac_ext <<_ACEOF
3553 cat confdefs.h >>conftest.$ac_ext
3554 cat >>conftest.$ac_ext <<_ACEOF
3555 /* end confdefs.h. */
3556 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3558 #define gethostbyname innocuous_gethostbyname
3560 /* System header to define __stub macros and hopefully few prototypes,
3561 which can conflict with char gethostbyname (); below.
3562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3563 <limits.h> exists even on freestanding compilers. */
3566 # include <limits.h>
3568 # include <assert.h>
3571 #undef gethostbyname
3573 /* Override any gcc2 internal prototype to avoid an error. */
3578 /* We use char because int might match the return type of a gcc2
3579 builtin and then its argument prototype would still apply. */
3580 char gethostbyname ();
3581 /* The GNU C library defines this for functions which it implements
3582 to always fail with ENOSYS. Some functions are actually named
3583 something starting with __ and the normal name is an alias. */
3584 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3587 char (*f) () = gethostbyname;
3596 return f != gethostbyname;
3601 rm -f conftest.$ac_objext conftest$ac_exeext
3602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3603 (eval $ac_link) 2>conftest.er1
3605 grep -v '^ *+' conftest.er1 >conftest.err
3607 cat conftest.err >&5
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); } &&
3610 { ac_try='test -z "$ac_cxx_werror_flag"
3611 || test ! -s conftest.err'
3612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); }; } &&
3617 { ac_try='test -s conftest$ac_exeext'
3618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); }; }; then
3623 ac_cv_func_gethostbyname=yes
3625 echo "$as_me: failed program was:" >&5
3626 sed 's/^/| /' conftest.$ac_ext >&5
3628 ac_cv_func_gethostbyname=no
3630 rm -f conftest.err conftest.$ac_objext \
3631 conftest$ac_exeext conftest.$ac_ext
3633 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3634 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3635 if test $ac_cv_func_gethostbyname = yes; then
3638 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3639 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3640 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3641 echo $ECHO_N "(cached) $ECHO_C" >&6
3643 ac_check_lib_save_LIBS=$LIBS
3645 cat >conftest.$ac_ext <<_ACEOF
3648 cat confdefs.h >>conftest.$ac_ext
3649 cat >>conftest.$ac_ext <<_ACEOF
3650 /* end confdefs.h. */
3652 /* Override any gcc2 internal prototype to avoid an error. */
3656 /* We use char because int might match the return type of a gcc2
3657 builtin and then its argument prototype would still apply. */
3658 char gethostbyname ();
3667 rm -f conftest.$ac_objext conftest$ac_exeext
3668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3669 (eval $ac_link) 2>conftest.er1
3671 grep -v '^ *+' conftest.er1 >conftest.err
3673 cat conftest.err >&5
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); } &&
3676 { ac_try='test -z "$ac_cxx_werror_flag"
3677 || test ! -s conftest.err'
3678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 (exit $ac_status); }; } &&
3683 { ac_try='test -s conftest$ac_exeext'
3684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); }; }; then
3689 ac_cv_lib_nsl_gethostbyname=yes
3691 echo "$as_me: failed program was:" >&5
3692 sed 's/^/| /' conftest.$ac_ext >&5
3694 ac_cv_lib_nsl_gethostbyname=no
3696 rm -f conftest.err conftest.$ac_objext \
3697 conftest$ac_exeext conftest.$ac_ext
3698 LIBS=$ac_check_lib_save_LIBS
3700 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3701 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3702 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3708 echo "$as_me:$LINENO: checking for socket" >&5
3709 echo $ECHO_N "checking for socket... $ECHO_C" >&6
3710 if test "${ac_cv_func_socket+set}" = set; then
3711 echo $ECHO_N "(cached) $ECHO_C" >&6
3713 cat >conftest.$ac_ext <<_ACEOF
3716 cat confdefs.h >>conftest.$ac_ext
3717 cat >>conftest.$ac_ext <<_ACEOF
3718 /* end confdefs.h. */
3719 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
3720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3721 #define socket innocuous_socket
3723 /* System header to define __stub macros and hopefully few prototypes,
3724 which can conflict with char socket (); below.
3725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3726 <limits.h> exists even on freestanding compilers. */
3729 # include <limits.h>
3731 # include <assert.h>
3736 /* Override any gcc2 internal prototype to avoid an error. */
3741 /* We use char because int might match the return type of a gcc2
3742 builtin and then its argument prototype would still apply. */
3744 /* The GNU C library defines this for functions which it implements
3745 to always fail with ENOSYS. Some functions are actually named
3746 something starting with __ and the normal name is an alias. */
3747 #if defined (__stub_socket) || defined (__stub___socket)
3750 char (*f) () = socket;
3764 rm -f conftest.$ac_objext conftest$ac_exeext
3765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3766 (eval $ac_link) 2>conftest.er1
3768 grep -v '^ *+' conftest.er1 >conftest.err
3770 cat conftest.err >&5
3771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772 (exit $ac_status); } &&
3773 { ac_try='test -z "$ac_cxx_werror_flag"
3774 || test ! -s conftest.err'
3775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); }; } &&
3780 { ac_try='test -s conftest$ac_exeext'
3781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 (exit $ac_status); }; }; then
3786 ac_cv_func_socket=yes
3788 echo "$as_me: failed program was:" >&5
3789 sed 's/^/| /' conftest.$ac_ext >&5
3791 ac_cv_func_socket=no
3793 rm -f conftest.err conftest.$ac_objext \
3794 conftest$ac_exeext conftest.$ac_ext
3796 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
3797 echo "${ECHO_T}$ac_cv_func_socket" >&6
3798 if test $ac_cv_func_socket = yes; then
3801 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3802 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3803 if test "${ac_cv_lib_socket_socket+set}" = set; then
3804 echo $ECHO_N "(cached) $ECHO_C" >&6
3806 ac_check_lib_save_LIBS=$LIBS
3807 LIBS="-lsocket $LIBS"
3808 cat >conftest.$ac_ext <<_ACEOF
3811 cat confdefs.h >>conftest.$ac_ext
3812 cat >>conftest.$ac_ext <<_ACEOF
3813 /* end confdefs.h. */
3815 /* Override any gcc2 internal prototype to avoid an error. */
3819 /* We use char because int might match the return type of a gcc2
3820 builtin and then its argument prototype would still apply. */
3830 rm -f conftest.$ac_objext conftest$ac_exeext
3831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3832 (eval $ac_link) 2>conftest.er1
3834 grep -v '^ *+' conftest.er1 >conftest.err
3836 cat conftest.err >&5
3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); } &&
3839 { ac_try='test -z "$ac_cxx_werror_flag"
3840 || test ! -s conftest.err'
3841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); }; } &&
3846 { ac_try='test -s conftest$ac_exeext'
3847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); }; }; then
3852 ac_cv_lib_socket_socket=yes
3854 echo "$as_me: failed program was:" >&5
3855 sed 's/^/| /' conftest.$ac_ext >&5
3857 ac_cv_lib_socket_socket=no
3859 rm -f conftest.err conftest.$ac_objext \
3860 conftest$ac_exeext conftest.$ac_ext
3861 LIBS=$ac_check_lib_save_LIBS
3863 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3864 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3865 if test $ac_cv_lib_socket_socket = yes; then
3866 LIBS="$LIBS -lsocket"
3874 support_inheritpixmap=yes
3877 support_keepscrolling=yes
3878 support_selectionscrolling=yes
3879 support_mousewheel=yes
3880 support_mouseslipwheel=yes
3881 support_text_blink=yes
3882 support_pointer_blank=yes
3883 support_scroll_rxvt=yes
3884 support_scroll_next=yes
3885 support_scroll_xterm=yes
3886 support_scroll_plain=yes
3889 support_afterimage=yes
3890 support_afterstep=yes
3893 support_combining=yes
3894 support_8bitctrls=no
3895 support_iso14755=yes
3901 if test "x$enable_shared" = xyes; then
3903 cat >>confdefs.h <<\_ACEOF
3911 # Check whether --enable-everything or --disable-everything was given.
3912 if test "${enable_everything+set}" = set; then
3913 enableval="$enable_everything"
3915 if test x$enableval = xno; then
3917 support_inheritpixmap=no
3920 support_keepscrolling=no
3921 support_selectionscrolling=no
3923 support_mousewheel=no
3924 support_mouseslipwheel=no
3925 support_text_blink=no
3926 support_pointer_blank=no
3927 support_scroll_rxvt=no
3928 support_scroll_next=no
3929 support_scroll_xterm=no
3930 support_scroll_plain=no
3935 support_afterimage=no
3936 support_afterstep=no
3939 support_combining=no
3940 support_8bitctrls=no
3946 if test x$enableval = xyes; then
3948 support_inheritpixmap=yes
3951 support_keepscrolling=yes
3952 support_selectionscrolling=yes
3954 support_mousewheel=yes
3955 support_mouseslipwheel=yes
3956 support_text_blink=yes
3957 support_pointer_blank=yes
3958 support_scroll_rxvt=yes
3959 support_scroll_next=yes
3960 support_scroll_xterm=yes
3961 support_scroll_plain=yes
3966 support_afterimage=yes
3967 support_afterstep=yes
3969 support_unicode3=yes
3970 support_combining=yes
3971 #support_8bitctrls=yes
3972 support_iso14755=yes
3980 # Check whether --enable-unicode3 or --disable-unicode3 was given.
3981 if test "${enable_unicode3+set}" = set; then
3982 enableval="$enable_unicode3"
3983 if test x$enableval = xyes -o x$enableval = xno; then
3984 support_unicode3=$enableval
3988 # Check whether --enable-combining or --disable-combining was given.
3989 if test "${enable_combining+set}" = set; then
3990 enableval="$enable_combining"
3991 if test x$enableval = xyes -o x$enableval = xno; then
3992 support_combining=$enableval
3996 # Check whether --enable-xft or --disable-xft was given.
3997 if test "${enable_xft+set}" = set; then
3998 enableval="$enable_xft"
3999 if test x$enableval = xyes -o x$enableval = xno; then
4000 support_xft=$enableval
4004 # Check whether --enable-font-styles or --disable-font-styles was given.
4005 if test "${enable_font_styles+set}" = set; then
4006 enableval="$enable_font_styles"
4007 if test x$enableval = xyes -o x$enableval = xno; then
4008 support_styles=$enableval
4012 # Check whether --enable-xpm-background or --disable-xpm-background was given.
4013 if test "${enable_xpm_background+set}" = set; then
4014 enableval="$enable_xpm_background"
4015 if test x$enableval = xyes -o x$enableval = xno; then
4016 support_xpm=$enableval
4020 # Check whether --enable-afterimage or --disable-afterimage was given.
4021 if test "${enable_afterimage+set}" = set; then
4022 enableval="$enable_afterimage"
4023 if test x$enableval = xyes -o x$enableval = xno; then
4024 support_afterimage=$enableval
4029 # Check whether --with-afterimage_config or --without-afterimage_config was given.
4030 if test "${with_afterimage_config+set}" = set; then
4031 withval="$with_afterimage_config"
4032 if test "x$withval" != x; then
4033 afterimage_config=$withval/afterimage-config
4037 # Check whether --enable-afterstep or --disable-afterstep was given.
4038 if test "${enable_afterstep+set}" = set; then
4039 enableval="$enable_afterstep"
4040 if test x$enableval = xyes -o x$enableval = xno; then
4041 support_afterstep=$enableval
4045 # Check whether --enable-transparency or --disable-transparency was given.
4046 if test "${enable_transparency+set}" = set; then
4047 enableval="$enable_transparency"
4048 if test x$enableval = xyes -o x$enableval = xno; then
4049 support_inheritpixmap=$enableval
4053 # Check whether --enable-tinting or --disable-tinting was given.
4054 if test "${enable_tinting+set}" = set; then
4055 enableval="$enable_tinting"
4056 if test x$enableval = xyes -o x$enableval = xno; then
4057 support_tinting=$enableval
4061 # Check whether --enable-fading or --disable-fading was given.
4062 if test "${enable_fading+set}" = set; then
4063 enableval="$enable_fading"
4064 if test x$enableval = xyes -o x$enableval = xno; then
4065 support_fading=$enableval
4069 # Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given.
4070 if test "${enable_rxvt_scroll+set}" = set; then
4071 enableval="$enable_rxvt_scroll"
4072 if test x$enableval = xyes -o x$enableval = xno; then
4073 support_scroll_rxvt=$enableval
4077 # Check whether --enable-next-scroll or --disable-next-scroll was given.
4078 if test "${enable_next_scroll+set}" = set; then
4079 enableval="$enable_next_scroll"
4080 if test x$enableval = xyes -o x$enableval = xno; then
4081 support_scroll_next=$enableval
4085 # Check whether --enable-xterm-scroll or --disable-xterm-scroll was given.
4086 if test "${enable_xterm_scroll+set}" = set; then
4087 enableval="$enable_xterm_scroll"
4088 if test x$enableval = xyes -o x$enableval = xno; then
4089 support_scroll_xterm=$enableval
4093 # Check whether --enable-perl or --disable-perl was given.
4094 if test "${enable_perl+set}" = set; then
4095 enableval="$enable_perl"
4096 if test x$enableval = xyes -o x$enableval = xno; then
4097 support_perl=$enableval
4101 # Check whether --enable-plain-scroll or --disable-plain-scroll was given.
4102 if test "${enable_plain_scroll+set}" = set; then
4103 enableval="$enable_plain_scroll"
4104 if test x$enableval = xyes -o x$enableval = xno; then
4105 support_scroll_plain=$enableval
4110 # Check whether --with-codesets or --without-codesets was given.
4111 if test "${with_codesets+set}" = set; then
4112 withval="$with_codesets"
4116 # Check whether --enable-xim or --disable-xim was given.
4117 if test "${enable_xim+set}" = set; then
4118 enableval="$enable_xim"
4119 if test x$enableval = xyes -o x$enableval = xno; then
4120 support_xim=$enableval
4124 # Check whether --enable-backspace-key or --disable-backspace-key was given.
4125 if test "${enable_backspace_key+set}" = set; then
4126 enableval="$enable_backspace_key"
4127 if test x$enableval = xno; then
4129 cat >>confdefs.h <<\_ACEOF
4130 #define NO_BACKSPACE_KEY 1
4136 # Check whether --enable-delete-key or --disable-delete-key was given.
4137 if test "${enable_delete_key+set}" = set; then
4138 enableval="$enable_delete_key"
4139 if test x$enableval = xno; then
4141 cat >>confdefs.h <<\_ACEOF
4142 #define NO_DELETE_KEY 1
4148 # Check whether --enable-resources or --disable-resources was given.
4149 if test "${enable_resources+set}" = set; then
4150 enableval="$enable_resources"
4151 if test x$enableval = xno; then
4153 cat >>confdefs.h <<\_ACEOF
4154 #define NO_RESOURCES 1
4160 # Check whether --enable-8bitctrls or --disable-8bitctrls was given.
4161 if test "${enable_8bitctrls+set}" = set; then
4162 enableval="$enable_8bitctrls"
4163 if test x$enableval = xyes -o x$enableval = xno; then
4164 support_8bitctrls=$enableval
4169 # Check whether --enable-fallback or --disable-fallback was given.
4170 if test "${enable_fallback+set}" = set; then
4171 enableval="$enable_fallback"
4173 test x$enableval = xyes && enableval=Rxvt
4174 test x$enableval = xno && enableval=
4175 RESFALLBACK="$enableval"
4179 if test x$RESFALLBACK != x; then
4181 cat >>confdefs.h <<_ACEOF
4182 #define RESFALLBACK "$RESFALLBACK"
4189 # Check whether --with-res-name or --without-res-name was given.
4190 if test "${with_res_name+set}" = set; then
4191 withval="$with_res_name"
4195 cat >>confdefs.h <<_ACEOF
4196 #define RESNAME "$RESNAME"
4202 # Check whether --with-res-class or --without-res-class was given.
4203 if test "${with_res_class+set}" = set; then
4204 withval="$with_res_class"
4208 cat >>confdefs.h <<_ACEOF
4209 #define RESCLASS "$RESCLASS"
4215 # Check whether --with-name or --without-name was given.
4216 if test "${with_name+set}" = set; then
4217 withval="$with_name"
4221 cat >>confdefs.h <<_ACEOF
4222 #define RXVTNAME "$RXVTNAME"
4226 RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
4229 # Check whether --enable-swapscreen or --disable-swapscreen was given.
4230 if test "${enable_swapscreen+set}" = set; then
4231 enableval="$enable_swapscreen"
4232 if test x$enableval = xno; then
4234 cat >>confdefs.h <<\_ACEOF
4235 #define NO_SECONDARY_SCREEN 1
4241 # Check whether --enable-iso14755 or --disable-iso14755 was given.
4242 if test "${enable_iso14755+set}" = set; then
4243 enableval="$enable_iso14755"
4244 if test x$enableval = xyes -o x$enableval = xno; then
4245 support_iso14755=$enableval
4249 # Check whether --enable-frills or --disable-frills was given.
4250 if test "${enable_frills+set}" = set; then
4251 enableval="$enable_frills"
4252 if test x$enableval = xyes -o x$enableval = xno; then
4253 support_frills=$enableval
4257 # Check whether --enable-keepscrolling or --disable-keepscrolling was given.
4258 if test "${enable_keepscrolling+set}" = set; then
4259 enableval="$enable_keepscrolling"
4260 if test x$enableval = xyes -o x$enableval = xno; then
4261 support_keepscrolling=$enableval
4265 # Check whether --enable-selectionscrolling or --disable-selectionscrolling was given.
4266 if test "${enable_selectionscrolling+set}" = set; then
4267 enableval="$enable_selectionscrolling"
4268 if test x$enableval = xyes -o x$enableval = xno; then
4269 support_selectionscrolling=$enableval
4273 # Check whether --enable-mousewheel or --disable-mousewheel was given.
4274 if test "${enable_mousewheel+set}" = set; then
4275 enableval="$enable_mousewheel"
4276 if test x$enableval = xyes -o x$enableval = xno; then
4277 support_mousewheel=$enableval
4281 # Check whether --enable-slipwheeling or --disable-slipwheeling was given.
4282 if test "${enable_slipwheeling+set}" = set; then
4283 enableval="$enable_slipwheeling"
4284 if test x$enableval = xyes -o x$enableval = xno; then
4285 support_mouseslipwheel=$enableval
4289 # Check whether --enable-smart-resize or --disable-smart-resize was given.
4290 if test "${enable_smart_resize+set}" = set; then
4291 enableval="$enable_smart_resize"
4292 if test x$enableval = xyes; then
4294 cat >>confdefs.h <<\_ACEOF
4295 #define SMART_RESIZE 1
4301 # Check whether --enable-text-blink or --disable-text-blink was given.
4302 if test "${enable_text_blink+set}" = set; then
4303 enableval="$enable_text_blink"
4304 if test x$enableval = xyes -o x$enableval = xno; then
4305 support_text_blink=$enableval
4309 # Check whether --enable-pointer-blank or --disable-pointer-blank was given.
4310 if test "${enable_pointer_blank+set}" = set; then
4311 enableval="$enable_pointer_blank"
4312 if test x$enableval = xyes -o x$enableval = xno; then
4313 support_pointer_blank=$enableval
4318 # Check whether --with-term or --without-term was given.
4319 if test "${with_term+set}" = set; then
4320 withval="$with_term"
4321 if test x$withval != x; then
4323 cat >>confdefs.h <<_ACEOF
4324 #define TERMENV "$withval"
4331 # Check whether --with-terminfo or --without-terminfo was given.
4332 if test "${with_terminfo+set}" = set; then
4333 withval="$with_terminfo"
4334 if test x$withval != x; then
4336 cat >>confdefs.h <<_ACEOF
4337 #define RXVT_TERMINFO "$withval"
4344 # Extract the first word of "tic", so it can be a program name with args.
4345 set dummy tic; ac_word=$2
4346 echo "$as_me:$LINENO: checking for $ac_word" >&5
4347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4348 if test "${ac_cv_path_TIC+set}" = set; then
4349 echo $ECHO_N "(cached) $ECHO_C" >&6
4353 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
4356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4360 test -z "$as_dir" && as_dir=.
4361 for ac_exec_ext in '' $ac_executable_extensions; do
4362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4363 ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext"
4364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4375 if test -n "$TIC"; then
4376 echo "$as_me:$LINENO: result: $TIC" >&5
4377 echo "${ECHO_T}$TIC" >&6
4379 echo "$as_me:$LINENO: result: no" >&5
4380 echo "${ECHO_T}no" >&6
4387 ac_cpp='$CXXCPP $CPPFLAGS'
4388 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4389 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4390 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4391 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4392 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4393 if test -z "$CXXCPP"; then
4394 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4395 echo $ECHO_N "(cached) $ECHO_C" >&6
4397 # Double quotes because CXXCPP needs to be expanded
4398 for CXXCPP in "$CXX -E" "/lib/cpp"
4401 for ac_cxx_preproc_warn_flag in '' yes
4403 # Use a header file that comes with gcc, so configuring glibc
4404 # with a fresh cross-compiler works.
4405 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4406 # <limits.h> exists even on freestanding compilers.
4407 # On the NeXT, cc -E runs the code through the compiler's parser,
4408 # not just through cpp. "Syntax error" is here to catch this case.
4409 cat >conftest.$ac_ext <<_ACEOF
4412 cat confdefs.h >>conftest.$ac_ext
4413 cat >>conftest.$ac_ext <<_ACEOF
4414 /* end confdefs.h. */
4416 # include <limits.h>
4418 # include <assert.h>
4422 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4423 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4425 grep -v '^ *+' conftest.er1 >conftest.err
4427 cat conftest.err >&5
4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 (exit $ac_status); } >/dev/null; then
4430 if test -s conftest.err; then
4431 ac_cpp_err=$ac_cxx_preproc_warn_flag
4432 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4439 if test -z "$ac_cpp_err"; then
4442 echo "$as_me: failed program was:" >&5
4443 sed 's/^/| /' conftest.$ac_ext >&5
4445 # Broken: fails on valid input.
4448 rm -f conftest.err conftest.$ac_ext
4450 # OK, works on sane cases. Now check whether non-existent headers
4451 # can be detected and how.
4452 cat >conftest.$ac_ext <<_ACEOF
4455 cat confdefs.h >>conftest.$ac_ext
4456 cat >>conftest.$ac_ext <<_ACEOF
4457 /* end confdefs.h. */
4458 #include <ac_nonexistent.h>
4460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4461 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4463 grep -v '^ *+' conftest.er1 >conftest.err
4465 cat conftest.err >&5
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); } >/dev/null; then
4468 if test -s conftest.err; then
4469 ac_cpp_err=$ac_cxx_preproc_warn_flag
4470 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4477 if test -z "$ac_cpp_err"; then
4478 # Broken: success on invalid input.
4481 echo "$as_me: failed program was:" >&5
4482 sed 's/^/| /' conftest.$ac_ext >&5
4484 # Passes both tests.
4488 rm -f conftest.err conftest.$ac_ext
4491 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4492 rm -f conftest.err conftest.$ac_ext
4493 if $ac_preproc_ok; then
4498 ac_cv_prog_CXXCPP=$CXXCPP
4501 CXXCPP=$ac_cv_prog_CXXCPP
4503 ac_cv_prog_CXXCPP=$CXXCPP
4505 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4506 echo "${ECHO_T}$CXXCPP" >&6
4508 for ac_cxx_preproc_warn_flag in '' yes
4510 # Use a header file that comes with gcc, so configuring glibc
4511 # with a fresh cross-compiler works.
4512 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4513 # <limits.h> exists even on freestanding compilers.
4514 # On the NeXT, cc -E runs the code through the compiler's parser,
4515 # not just through cpp. "Syntax error" is here to catch this case.
4516 cat >conftest.$ac_ext <<_ACEOF
4519 cat confdefs.h >>conftest.$ac_ext
4520 cat >>conftest.$ac_ext <<_ACEOF
4521 /* end confdefs.h. */
4523 # include <limits.h>
4525 # include <assert.h>
4529 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4530 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4532 grep -v '^ *+' conftest.er1 >conftest.err
4534 cat conftest.err >&5
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); } >/dev/null; then
4537 if test -s conftest.err; then
4538 ac_cpp_err=$ac_cxx_preproc_warn_flag
4539 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4546 if test -z "$ac_cpp_err"; then
4549 echo "$as_me: failed program was:" >&5
4550 sed 's/^/| /' conftest.$ac_ext >&5
4552 # Broken: fails on valid input.
4555 rm -f conftest.err conftest.$ac_ext
4557 # OK, works on sane cases. Now check whether non-existent headers
4558 # can be detected and how.
4559 cat >conftest.$ac_ext <<_ACEOF
4562 cat confdefs.h >>conftest.$ac_ext
4563 cat >>conftest.$ac_ext <<_ACEOF
4564 /* end confdefs.h. */
4565 #include <ac_nonexistent.h>
4567 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4568 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4570 grep -v '^ *+' conftest.er1 >conftest.err
4572 cat conftest.err >&5
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); } >/dev/null; then
4575 if test -s conftest.err; then
4576 ac_cpp_err=$ac_cxx_preproc_warn_flag
4577 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4584 if test -z "$ac_cpp_err"; then
4585 # Broken: success on invalid input.
4588 echo "$as_me: failed program was:" >&5
4589 sed 's/^/| /' conftest.$ac_ext >&5
4591 # Passes both tests.
4595 rm -f conftest.err conftest.$ac_ext
4598 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4599 rm -f conftest.err conftest.$ac_ext
4600 if $ac_preproc_ok; then
4603 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4604 See \`config.log' for more details." >&5
4605 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4606 See \`config.log' for more details." >&2;}
4607 { (exit 1); exit 1; }; }
4611 ac_cpp='$CXXCPP $CPPFLAGS'
4612 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4613 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4614 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4617 echo "$as_me:$LINENO: checking for X" >&5
4618 echo $ECHO_N "checking for X... $ECHO_C" >&6
4621 # Check whether --with-x or --without-x was given.
4622 if test "${with_x+set}" = set; then
4626 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4627 if test "x$with_x" = xno; then
4628 # The user explicitly disabled X.
4631 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4632 # Both variables are already set.
4635 if test "${ac_cv_have_x+set}" = set; then
4636 echo $ECHO_N "(cached) $ECHO_C" >&6
4638 # One or both of the vars are not set, and there is no cached value.
4639 ac_x_includes=no ac_x_libraries=no
4641 if mkdir conftest.dir; then
4643 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4644 cat >Imakefile <<'_ACEOF'
4646 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4648 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4649 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4650 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4651 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4652 for ac_extension in a so sl; do
4653 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4654 test -f $ac_im_libdir/libX11.$ac_extension; then
4655 ac_im_usrlibdir=$ac_im_libdir; break
4658 # Screen out bogus values from the imake configuration. They are
4659 # bogus both because they are the default anyway, and because
4660 # using them would break gcc on systems where it needs fixed includes.
4661 case $ac_im_incroot in
4663 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4665 case $ac_im_usrlibdir in
4667 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4674 # Standard set of common directories for X headers.
4675 # Check X11 before X11Rn because it is often a symlink to the current release.
4687 /usr/local/X11/include
4688 /usr/local/X11R6/include
4689 /usr/local/X11R5/include
4690 /usr/local/X11R4/include
4692 /usr/local/include/X11
4693 /usr/local/include/X11R6
4694 /usr/local/include/X11R5
4695 /usr/local/include/X11R4
4699 /usr/XFree86/include/X11
4703 /usr/unsupported/include
4705 /usr/local/x11r5/include
4706 /usr/lpp/Xamples/include
4708 /usr/openwin/include
4709 /usr/openwin/share/include'
4711 if test "$ac_x_includes" = no; then
4712 # Guess where to find include files, by looking for Intrinsic.h.
4713 # First, try using that file with no special directory specified.
4714 cat >conftest.$ac_ext <<_ACEOF
4717 cat confdefs.h >>conftest.$ac_ext
4718 cat >>conftest.$ac_ext <<_ACEOF
4719 /* end confdefs.h. */
4720 #include <X11/Intrinsic.h>
4722 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4723 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4725 grep -v '^ *+' conftest.er1 >conftest.err
4727 cat conftest.err >&5
4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); } >/dev/null; then
4730 if test -s conftest.err; then
4731 ac_cpp_err=$ac_cxx_preproc_warn_flag
4732 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4739 if test -z "$ac_cpp_err"; then
4740 # We can compile using X headers with no special include directory.
4743 echo "$as_me: failed program was:" >&5
4744 sed 's/^/| /' conftest.$ac_ext >&5
4746 for ac_dir in $ac_x_header_dirs; do
4747 if test -r "$ac_dir/X11/Intrinsic.h"; then
4748 ac_x_includes=$ac_dir
4753 rm -f conftest.err conftest.$ac_ext
4754 fi # $ac_x_includes = no
4756 if test "$ac_x_libraries" = no; then
4757 # Check for the libraries.
4758 # See if we find them without any special options.
4759 # Don't add to $LIBS permanently.
4762 cat >conftest.$ac_ext <<_ACEOF
4765 cat confdefs.h >>conftest.$ac_ext
4766 cat >>conftest.$ac_ext <<_ACEOF
4767 /* end confdefs.h. */
4768 #include <X11/Intrinsic.h>
4777 rm -f conftest.$ac_objext conftest$ac_exeext
4778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4779 (eval $ac_link) 2>conftest.er1
4781 grep -v '^ *+' conftest.er1 >conftest.err
4783 cat conftest.err >&5
4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785 (exit $ac_status); } &&
4786 { ac_try='test -z "$ac_cxx_werror_flag"
4787 || test ! -s conftest.err'
4788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792 (exit $ac_status); }; } &&
4793 { ac_try='test -s conftest$ac_exeext'
4794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798 (exit $ac_status); }; }; then
4800 # We can link X programs with no special library path.
4803 echo "$as_me: failed program was:" >&5
4804 sed 's/^/| /' conftest.$ac_ext >&5
4807 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4809 # Don't even attempt the hair of trying to link an X program!
4810 for ac_extension in a so sl; do
4811 if test -r $ac_dir/libXt.$ac_extension; then
4812 ac_x_libraries=$ac_dir
4818 rm -f conftest.err conftest.$ac_objext \
4819 conftest$ac_exeext conftest.$ac_ext
4820 fi # $ac_x_libraries = no
4822 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
4823 # Didn't find X anywhere. Cache the known absence of X.
4824 ac_cv_have_x="have_x=no"
4826 # Record where we found X for the cache.
4827 ac_cv_have_x="have_x=yes \
4828 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4833 eval "$ac_cv_have_x"
4836 if test "$have_x" != yes; then
4837 echo "$as_me:$LINENO: result: $have_x" >&5
4838 echo "${ECHO_T}$have_x" >&6
4841 # If each of the values was on the command line, it overrides each guess.
4842 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4843 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4844 # Update the cache value to reflect the command line values.
4845 ac_cv_have_x="have_x=yes \
4846 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4847 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4848 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
4851 if test "$no_x" = yes; then
4852 # Not all programs may use this symbol, but it does not hurt to define it.
4854 cat >>confdefs.h <<\_ACEOF
4855 #define X_DISPLAY_MISSING 1
4858 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4860 if test -n "$x_includes"; then
4861 X_CFLAGS="$X_CFLAGS -I$x_includes"
4864 # It would also be nice to do this for all -L options, not just this one.
4865 if test -n "$x_libraries"; then
4866 X_LIBS="$X_LIBS -L$x_libraries"
4867 # For Solaris; some versions of Sun CC require a space after -R and
4868 # others require no space. Words are not sufficient . . . .
4869 case `(uname -sr) 2>/dev/null` in
4871 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4872 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
4873 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4874 cat >conftest.$ac_ext <<_ACEOF
4877 cat confdefs.h >>conftest.$ac_ext
4878 cat >>conftest.$ac_ext <<_ACEOF
4879 /* end confdefs.h. */
4889 rm -f conftest.$ac_objext conftest$ac_exeext
4890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4891 (eval $ac_link) 2>conftest.er1
4893 grep -v '^ *+' conftest.er1 >conftest.err
4895 cat conftest.err >&5
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); } &&
4898 { ac_try='test -z "$ac_cxx_werror_flag"
4899 || test ! -s conftest.err'
4900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 (exit $ac_status); }; } &&
4905 { ac_try='test -s conftest$ac_exeext'
4906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); }; }; then
4913 echo "$as_me: failed program was:" >&5
4914 sed 's/^/| /' conftest.$ac_ext >&5
4918 rm -f conftest.err conftest.$ac_objext \
4919 conftest$ac_exeext conftest.$ac_ext
4920 if test $ac_R_nospace = yes; then
4921 echo "$as_me:$LINENO: result: no" >&5
4922 echo "${ECHO_T}no" >&6
4923 X_LIBS="$X_LIBS -R$x_libraries"
4925 LIBS="$ac_xsave_LIBS -R $x_libraries"
4926 cat >conftest.$ac_ext <<_ACEOF
4929 cat confdefs.h >>conftest.$ac_ext
4930 cat >>conftest.$ac_ext <<_ACEOF
4931 /* end confdefs.h. */
4941 rm -f conftest.$ac_objext conftest$ac_exeext
4942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4943 (eval $ac_link) 2>conftest.er1
4945 grep -v '^ *+' conftest.er1 >conftest.err
4947 cat conftest.err >&5
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); } &&
4950 { ac_try='test -z "$ac_cxx_werror_flag"
4951 || test ! -s conftest.err'
4952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); }; } &&
4957 { ac_try='test -s conftest$ac_exeext'
4958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962 (exit $ac_status); }; }; then
4965 echo "$as_me: failed program was:" >&5
4966 sed 's/^/| /' conftest.$ac_ext >&5
4970 rm -f conftest.err conftest.$ac_objext \
4971 conftest$ac_exeext conftest.$ac_ext
4972 if test $ac_R_space = yes; then
4973 echo "$as_me:$LINENO: result: yes" >&5
4974 echo "${ECHO_T}yes" >&6
4975 X_LIBS="$X_LIBS -R $x_libraries"
4977 echo "$as_me:$LINENO: result: neither works" >&5
4978 echo "${ECHO_T}neither works" >&6
4985 # Check for system-dependent libraries X programs must link with.
4986 # Do this before checking for the system-independent R6 libraries
4987 # (-lICE), since we may need -lsocket or whatever for X linking.
4989 if test "$ISC" = yes; then
4990 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4992 # Martyn Johnson says this is needed for Ultrix, if the X
4993 # libraries were built with DECnet support. And Karl Berry says
4994 # the Alpha needs dnet_stub (dnet does not exist).
4995 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4996 cat >conftest.$ac_ext <<_ACEOF
4999 cat confdefs.h >>conftest.$ac_ext
5000 cat >>conftest.$ac_ext <<_ACEOF
5001 /* end confdefs.h. */
5003 /* Override any gcc2 internal prototype to avoid an error. */
5007 /* We use char because int might match the return type of a gcc2
5008 builtin and then its argument prototype would still apply. */
5009 char XOpenDisplay ();
5018 rm -f conftest.$ac_objext conftest$ac_exeext
5019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5020 (eval $ac_link) 2>conftest.er1
5022 grep -v '^ *+' conftest.er1 >conftest.err
5024 cat conftest.err >&5
5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026 (exit $ac_status); } &&
5027 { ac_try='test -z "$ac_cxx_werror_flag"
5028 || test ! -s conftest.err'
5029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033 (exit $ac_status); }; } &&
5034 { ac_try='test -s conftest$ac_exeext'
5035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); }; }; then
5042 echo "$as_me: failed program was:" >&5
5043 sed 's/^/| /' conftest.$ac_ext >&5
5045 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5046 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5047 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5048 echo $ECHO_N "(cached) $ECHO_C" >&6
5050 ac_check_lib_save_LIBS=$LIBS
5052 cat >conftest.$ac_ext <<_ACEOF
5055 cat confdefs.h >>conftest.$ac_ext
5056 cat >>conftest.$ac_ext <<_ACEOF
5057 /* end confdefs.h. */
5059 /* Override any gcc2 internal prototype to avoid an error. */
5063 /* We use char because int might match the return type of a gcc2
5064 builtin and then its argument prototype would still apply. */
5074 rm -f conftest.$ac_objext conftest$ac_exeext
5075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5076 (eval $ac_link) 2>conftest.er1
5078 grep -v '^ *+' conftest.er1 >conftest.err
5080 cat conftest.err >&5
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); } &&
5083 { ac_try='test -z "$ac_cxx_werror_flag"
5084 || test ! -s conftest.err'
5085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); }; } &&
5090 { ac_try='test -s conftest$ac_exeext'
5091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); }; }; then
5096 ac_cv_lib_dnet_dnet_ntoa=yes
5098 echo "$as_me: failed program was:" >&5
5099 sed 's/^/| /' conftest.$ac_ext >&5
5101 ac_cv_lib_dnet_dnet_ntoa=no
5103 rm -f conftest.err conftest.$ac_objext \
5104 conftest$ac_exeext conftest.$ac_ext
5105 LIBS=$ac_check_lib_save_LIBS
5107 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5108 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5109 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5110 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5113 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5114 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5115 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5116 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5117 echo $ECHO_N "(cached) $ECHO_C" >&6
5119 ac_check_lib_save_LIBS=$LIBS
5120 LIBS="-ldnet_stub $LIBS"
5121 cat >conftest.$ac_ext <<_ACEOF
5124 cat confdefs.h >>conftest.$ac_ext
5125 cat >>conftest.$ac_ext <<_ACEOF
5126 /* end confdefs.h. */
5128 /* Override any gcc2 internal prototype to avoid an error. */
5132 /* We use char because int might match the return type of a gcc2
5133 builtin and then its argument prototype would still apply. */
5143 rm -f conftest.$ac_objext conftest$ac_exeext
5144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5145 (eval $ac_link) 2>conftest.er1
5147 grep -v '^ *+' conftest.er1 >conftest.err
5149 cat conftest.err >&5
5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151 (exit $ac_status); } &&
5152 { ac_try='test -z "$ac_cxx_werror_flag"
5153 || test ! -s conftest.err'
5154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158 (exit $ac_status); }; } &&
5159 { ac_try='test -s conftest$ac_exeext'
5160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164 (exit $ac_status); }; }; then
5165 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5167 echo "$as_me: failed program was:" >&5
5168 sed 's/^/| /' conftest.$ac_ext >&5
5170 ac_cv_lib_dnet_stub_dnet_ntoa=no
5172 rm -f conftest.err conftest.$ac_objext \
5173 conftest$ac_exeext conftest.$ac_ext
5174 LIBS=$ac_check_lib_save_LIBS
5176 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5177 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5178 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5179 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5184 rm -f conftest.err conftest.$ac_objext \
5185 conftest$ac_exeext conftest.$ac_ext
5186 LIBS="$ac_xsave_LIBS"
5188 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5189 # to get the SysV transport functions.
5190 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5192 # The nsl library prevents programs from opening the X display
5193 # on Irix 5.2, according to T.E. Dickey.
5194 # The functions gethostbyname, getservbyname, and inet_addr are
5195 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5196 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5197 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5198 if test "${ac_cv_func_gethostbyname+set}" = set; then
5199 echo $ECHO_N "(cached) $ECHO_C" >&6
5201 cat >conftest.$ac_ext <<_ACEOF
5204 cat confdefs.h >>conftest.$ac_ext
5205 cat >>conftest.$ac_ext <<_ACEOF
5206 /* end confdefs.h. */
5207 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5208 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5209 #define gethostbyname innocuous_gethostbyname
5211 /* System header to define __stub macros and hopefully few prototypes,
5212 which can conflict with char gethostbyname (); below.
5213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5214 <limits.h> exists even on freestanding compilers. */
5217 # include <limits.h>
5219 # include <assert.h>
5222 #undef gethostbyname
5224 /* Override any gcc2 internal prototype to avoid an error. */
5229 /* We use char because int might match the return type of a gcc2
5230 builtin and then its argument prototype would still apply. */
5231 char gethostbyname ();
5232 /* The GNU C library defines this for functions which it implements
5233 to always fail with ENOSYS. Some functions are actually named
5234 something starting with __ and the normal name is an alias. */
5235 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5238 char (*f) () = gethostbyname;
5247 return f != gethostbyname;
5252 rm -f conftest.$ac_objext conftest$ac_exeext
5253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5254 (eval $ac_link) 2>conftest.er1
5256 grep -v '^ *+' conftest.er1 >conftest.err
5258 cat conftest.err >&5
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); } &&
5261 { ac_try='test -z "$ac_cxx_werror_flag"
5262 || test ! -s conftest.err'
5263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267 (exit $ac_status); }; } &&
5268 { ac_try='test -s conftest$ac_exeext'
5269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273 (exit $ac_status); }; }; then
5274 ac_cv_func_gethostbyname=yes
5276 echo "$as_me: failed program was:" >&5
5277 sed 's/^/| /' conftest.$ac_ext >&5
5279 ac_cv_func_gethostbyname=no
5281 rm -f conftest.err conftest.$ac_objext \
5282 conftest$ac_exeext conftest.$ac_ext
5284 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5285 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5287 if test $ac_cv_func_gethostbyname = no; then
5288 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5289 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5290 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5291 echo $ECHO_N "(cached) $ECHO_C" >&6
5293 ac_check_lib_save_LIBS=$LIBS
5295 cat >conftest.$ac_ext <<_ACEOF
5298 cat confdefs.h >>conftest.$ac_ext
5299 cat >>conftest.$ac_ext <<_ACEOF
5300 /* end confdefs.h. */
5302 /* Override any gcc2 internal prototype to avoid an error. */
5306 /* We use char because int might match the return type of a gcc2
5307 builtin and then its argument prototype would still apply. */
5308 char gethostbyname ();
5317 rm -f conftest.$ac_objext conftest$ac_exeext
5318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5319 (eval $ac_link) 2>conftest.er1
5321 grep -v '^ *+' conftest.er1 >conftest.err
5323 cat conftest.err >&5
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); } &&
5326 { ac_try='test -z "$ac_cxx_werror_flag"
5327 || test ! -s conftest.err'
5328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332 (exit $ac_status); }; } &&
5333 { ac_try='test -s conftest$ac_exeext'
5334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); }; }; then
5339 ac_cv_lib_nsl_gethostbyname=yes
5341 echo "$as_me: failed program was:" >&5
5342 sed 's/^/| /' conftest.$ac_ext >&5
5344 ac_cv_lib_nsl_gethostbyname=no
5346 rm -f conftest.err conftest.$ac_objext \
5347 conftest$ac_exeext conftest.$ac_ext
5348 LIBS=$ac_check_lib_save_LIBS
5350 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5351 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5352 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5353 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5356 if test $ac_cv_lib_nsl_gethostbyname = no; then
5357 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5358 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5359 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5360 echo $ECHO_N "(cached) $ECHO_C" >&6
5362 ac_check_lib_save_LIBS=$LIBS
5364 cat >conftest.$ac_ext <<_ACEOF
5367 cat confdefs.h >>conftest.$ac_ext
5368 cat >>conftest.$ac_ext <<_ACEOF
5369 /* end confdefs.h. */
5371 /* Override any gcc2 internal prototype to avoid an error. */
5375 /* We use char because int might match the return type of a gcc2
5376 builtin and then its argument prototype would still apply. */
5377 char gethostbyname ();
5386 rm -f conftest.$ac_objext conftest$ac_exeext
5387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5388 (eval $ac_link) 2>conftest.er1
5390 grep -v '^ *+' conftest.er1 >conftest.err
5392 cat conftest.err >&5
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); } &&
5395 { ac_try='test -z "$ac_cxx_werror_flag"
5396 || test ! -s conftest.err'
5397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); }; } &&
5402 { ac_try='test -s conftest$ac_exeext'
5403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); }; }; then
5408 ac_cv_lib_bsd_gethostbyname=yes
5410 echo "$as_me: failed program was:" >&5
5411 sed 's/^/| /' conftest.$ac_ext >&5
5413 ac_cv_lib_bsd_gethostbyname=no
5415 rm -f conftest.err conftest.$ac_objext \
5416 conftest$ac_exeext conftest.$ac_ext
5417 LIBS=$ac_check_lib_save_LIBS
5419 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5420 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
5421 if test $ac_cv_lib_bsd_gethostbyname = yes; then
5422 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5428 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5429 # socket/setsockopt and other routines are undefined under SCO ODT
5430 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5431 # on later versions), says Simon Leinen: it contains gethostby*
5432 # variants that don't use the name server (or something). -lsocket
5433 # must be given before -lnsl if both are needed. We assume that
5434 # if connect needs -lnsl, so does gethostbyname.
5435 echo "$as_me:$LINENO: checking for connect" >&5
5436 echo $ECHO_N "checking for connect... $ECHO_C" >&6
5437 if test "${ac_cv_func_connect+set}" = set; then
5438 echo $ECHO_N "(cached) $ECHO_C" >&6
5440 cat >conftest.$ac_ext <<_ACEOF
5443 cat confdefs.h >>conftest.$ac_ext
5444 cat >>conftest.$ac_ext <<_ACEOF
5445 /* end confdefs.h. */
5446 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
5447 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5448 #define connect innocuous_connect
5450 /* System header to define __stub macros and hopefully few prototypes,
5451 which can conflict with char connect (); below.
5452 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5453 <limits.h> exists even on freestanding compilers. */
5456 # include <limits.h>
5458 # include <assert.h>
5463 /* Override any gcc2 internal prototype to avoid an error. */
5468 /* We use char because int might match the return type of a gcc2
5469 builtin and then its argument prototype would still apply. */
5471 /* The GNU C library defines this for functions which it implements
5472 to always fail with ENOSYS. Some functions are actually named
5473 something starting with __ and the normal name is an alias. */
5474 #if defined (__stub_connect) || defined (__stub___connect)
5477 char (*f) () = connect;
5486 return f != connect;
5491 rm -f conftest.$ac_objext conftest$ac_exeext
5492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5493 (eval $ac_link) 2>conftest.er1
5495 grep -v '^ *+' conftest.er1 >conftest.err
5497 cat conftest.err >&5
5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499 (exit $ac_status); } &&
5500 { ac_try='test -z "$ac_cxx_werror_flag"
5501 || test ! -s conftest.err'
5502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); }; } &&
5507 { ac_try='test -s conftest$ac_exeext'
5508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512 (exit $ac_status); }; }; then
5513 ac_cv_func_connect=yes
5515 echo "$as_me: failed program was:" >&5
5516 sed 's/^/| /' conftest.$ac_ext >&5
5518 ac_cv_func_connect=no
5520 rm -f conftest.err conftest.$ac_objext \
5521 conftest$ac_exeext conftest.$ac_ext
5523 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5524 echo "${ECHO_T}$ac_cv_func_connect" >&6
5526 if test $ac_cv_func_connect = no; then
5527 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5528 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5529 if test "${ac_cv_lib_socket_connect+set}" = set; then
5530 echo $ECHO_N "(cached) $ECHO_C" >&6
5532 ac_check_lib_save_LIBS=$LIBS
5533 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5534 cat >conftest.$ac_ext <<_ACEOF
5537 cat confdefs.h >>conftest.$ac_ext
5538 cat >>conftest.$ac_ext <<_ACEOF
5539 /* end confdefs.h. */
5541 /* Override any gcc2 internal prototype to avoid an error. */
5545 /* We use char because int might match the return type of a gcc2
5546 builtin and then its argument prototype would still apply. */
5556 rm -f conftest.$ac_objext conftest$ac_exeext
5557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5558 (eval $ac_link) 2>conftest.er1
5560 grep -v '^ *+' conftest.er1 >conftest.err
5562 cat conftest.err >&5
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); } &&
5565 { ac_try='test -z "$ac_cxx_werror_flag"
5566 || test ! -s conftest.err'
5567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }; } &&
5572 { ac_try='test -s conftest$ac_exeext'
5573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); }; }; then
5578 ac_cv_lib_socket_connect=yes
5580 echo "$as_me: failed program was:" >&5
5581 sed 's/^/| /' conftest.$ac_ext >&5
5583 ac_cv_lib_socket_connect=no
5585 rm -f conftest.err conftest.$ac_objext \
5586 conftest$ac_exeext conftest.$ac_ext
5587 LIBS=$ac_check_lib_save_LIBS
5589 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5590 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5591 if test $ac_cv_lib_socket_connect = yes; then
5592 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5597 # Guillermo Gomez says -lposix is necessary on A/UX.
5598 echo "$as_me:$LINENO: checking for remove" >&5
5599 echo $ECHO_N "checking for remove... $ECHO_C" >&6
5600 if test "${ac_cv_func_remove+set}" = set; then
5601 echo $ECHO_N "(cached) $ECHO_C" >&6
5603 cat >conftest.$ac_ext <<_ACEOF
5606 cat confdefs.h >>conftest.$ac_ext
5607 cat >>conftest.$ac_ext <<_ACEOF
5608 /* end confdefs.h. */
5609 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
5610 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5611 #define remove innocuous_remove
5613 /* System header to define __stub macros and hopefully few prototypes,
5614 which can conflict with char remove (); below.
5615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5616 <limits.h> exists even on freestanding compilers. */
5619 # include <limits.h>
5621 # include <assert.h>
5626 /* Override any gcc2 internal prototype to avoid an error. */
5631 /* We use char because int might match the return type of a gcc2
5632 builtin and then its argument prototype would still apply. */
5634 /* The GNU C library defines this for functions which it implements
5635 to always fail with ENOSYS. Some functions are actually named
5636 something starting with __ and the normal name is an alias. */
5637 #if defined (__stub_remove) || defined (__stub___remove)
5640 char (*f) () = remove;
5654 rm -f conftest.$ac_objext conftest$ac_exeext
5655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5656 (eval $ac_link) 2>conftest.er1
5658 grep -v '^ *+' conftest.er1 >conftest.err
5660 cat conftest.err >&5
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); } &&
5663 { ac_try='test -z "$ac_cxx_werror_flag"
5664 || test ! -s conftest.err'
5665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); }; } &&
5670 { ac_try='test -s conftest$ac_exeext'
5671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); }; }; then
5676 ac_cv_func_remove=yes
5678 echo "$as_me: failed program was:" >&5
5679 sed 's/^/| /' conftest.$ac_ext >&5
5681 ac_cv_func_remove=no
5683 rm -f conftest.err conftest.$ac_objext \
5684 conftest$ac_exeext conftest.$ac_ext
5686 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5687 echo "${ECHO_T}$ac_cv_func_remove" >&6
5689 if test $ac_cv_func_remove = no; then
5690 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5691 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
5692 if test "${ac_cv_lib_posix_remove+set}" = set; then
5693 echo $ECHO_N "(cached) $ECHO_C" >&6
5695 ac_check_lib_save_LIBS=$LIBS
5696 LIBS="-lposix $LIBS"
5697 cat >conftest.$ac_ext <<_ACEOF
5700 cat confdefs.h >>conftest.$ac_ext
5701 cat >>conftest.$ac_ext <<_ACEOF
5702 /* end confdefs.h. */
5704 /* Override any gcc2 internal prototype to avoid an error. */
5708 /* We use char because int might match the return type of a gcc2
5709 builtin and then its argument prototype would still apply. */
5719 rm -f conftest.$ac_objext conftest$ac_exeext
5720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5721 (eval $ac_link) 2>conftest.er1
5723 grep -v '^ *+' conftest.er1 >conftest.err
5725 cat conftest.err >&5
5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727 (exit $ac_status); } &&
5728 { ac_try='test -z "$ac_cxx_werror_flag"
5729 || test ! -s conftest.err'
5730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); }; } &&
5735 { ac_try='test -s conftest$ac_exeext'
5736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 (exit $ac_status); }; }; then
5741 ac_cv_lib_posix_remove=yes
5743 echo "$as_me: failed program was:" >&5
5744 sed 's/^/| /' conftest.$ac_ext >&5
5746 ac_cv_lib_posix_remove=no
5748 rm -f conftest.err conftest.$ac_objext \
5749 conftest$ac_exeext conftest.$ac_ext
5750 LIBS=$ac_check_lib_save_LIBS
5752 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5753 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
5754 if test $ac_cv_lib_posix_remove = yes; then
5755 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5760 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5761 echo "$as_me:$LINENO: checking for shmat" >&5
5762 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
5763 if test "${ac_cv_func_shmat+set}" = set; then
5764 echo $ECHO_N "(cached) $ECHO_C" >&6
5766 cat >conftest.$ac_ext <<_ACEOF
5769 cat confdefs.h >>conftest.$ac_ext
5770 cat >>conftest.$ac_ext <<_ACEOF
5771 /* end confdefs.h. */
5772 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5773 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5774 #define shmat innocuous_shmat
5776 /* System header to define __stub macros and hopefully few prototypes,
5777 which can conflict with char shmat (); below.
5778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5779 <limits.h> exists even on freestanding compilers. */
5782 # include <limits.h>
5784 # include <assert.h>
5789 /* Override any gcc2 internal prototype to avoid an error. */
5794 /* We use char because int might match the return type of a gcc2
5795 builtin and then its argument prototype would still apply. */
5797 /* The GNU C library defines this for functions which it implements
5798 to always fail with ENOSYS. Some functions are actually named
5799 something starting with __ and the normal name is an alias. */
5800 #if defined (__stub_shmat) || defined (__stub___shmat)
5803 char (*f) () = shmat;
5817 rm -f conftest.$ac_objext conftest$ac_exeext
5818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5819 (eval $ac_link) 2>conftest.er1
5821 grep -v '^ *+' conftest.er1 >conftest.err
5823 cat conftest.err >&5
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); } &&
5826 { ac_try='test -z "$ac_cxx_werror_flag"
5827 || test ! -s conftest.err'
5828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); }; } &&
5833 { ac_try='test -s conftest$ac_exeext'
5834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838 (exit $ac_status); }; }; then
5839 ac_cv_func_shmat=yes
5841 echo "$as_me: failed program was:" >&5
5842 sed 's/^/| /' conftest.$ac_ext >&5
5846 rm -f conftest.err conftest.$ac_objext \
5847 conftest$ac_exeext conftest.$ac_ext
5849 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5850 echo "${ECHO_T}$ac_cv_func_shmat" >&6
5852 if test $ac_cv_func_shmat = no; then
5853 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5854 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
5855 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5856 echo $ECHO_N "(cached) $ECHO_C" >&6
5858 ac_check_lib_save_LIBS=$LIBS
5860 cat >conftest.$ac_ext <<_ACEOF
5863 cat confdefs.h >>conftest.$ac_ext
5864 cat >>conftest.$ac_ext <<_ACEOF
5865 /* end confdefs.h. */
5867 /* Override any gcc2 internal prototype to avoid an error. */
5871 /* We use char because int might match the return type of a gcc2
5872 builtin and then its argument prototype would still apply. */
5882 rm -f conftest.$ac_objext conftest$ac_exeext
5883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5884 (eval $ac_link) 2>conftest.er1
5886 grep -v '^ *+' conftest.er1 >conftest.err
5888 cat conftest.err >&5
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); } &&
5891 { ac_try='test -z "$ac_cxx_werror_flag"
5892 || test ! -s conftest.err'
5893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897 (exit $ac_status); }; } &&
5898 { ac_try='test -s conftest$ac_exeext'
5899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); }; }; then
5904 ac_cv_lib_ipc_shmat=yes
5906 echo "$as_me: failed program was:" >&5
5907 sed 's/^/| /' conftest.$ac_ext >&5
5909 ac_cv_lib_ipc_shmat=no
5911 rm -f conftest.err conftest.$ac_objext \
5912 conftest$ac_exeext conftest.$ac_ext
5913 LIBS=$ac_check_lib_save_LIBS
5915 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5916 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
5917 if test $ac_cv_lib_ipc_shmat = yes; then
5918 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5924 # Check for libraries that X11R6 Xt/Xaw programs need.
5925 ac_save_LDFLAGS=$LDFLAGS
5926 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5927 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5928 # check for ICE first), but we must link in the order -lSM -lICE or
5929 # we get undefined symbols. So assume we have SM if we have ICE.
5930 # These have to be linked with before -lX11, unlike the other
5931 # libraries we check for below, so use a different variable.
5932 # John Interrante, Karl Berry
5933 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5934 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
5935 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5936 echo $ECHO_N "(cached) $ECHO_C" >&6
5938 ac_check_lib_save_LIBS=$LIBS
5939 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5940 cat >conftest.$ac_ext <<_ACEOF
5943 cat confdefs.h >>conftest.$ac_ext
5944 cat >>conftest.$ac_ext <<_ACEOF
5945 /* end confdefs.h. */
5947 /* Override any gcc2 internal prototype to avoid an error. */
5951 /* We use char because int might match the return type of a gcc2
5952 builtin and then its argument prototype would still apply. */
5953 char IceConnectionNumber ();
5957 IceConnectionNumber ();
5962 rm -f conftest.$ac_objext conftest$ac_exeext
5963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5964 (eval $ac_link) 2>conftest.er1
5966 grep -v '^ *+' conftest.er1 >conftest.err
5968 cat conftest.err >&5
5969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970 (exit $ac_status); } &&
5971 { ac_try='test -z "$ac_cxx_werror_flag"
5972 || test ! -s conftest.err'
5973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); }; } &&
5978 { ac_try='test -s conftest$ac_exeext'
5979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); }; }; then
5984 ac_cv_lib_ICE_IceConnectionNumber=yes
5986 echo "$as_me: failed program was:" >&5
5987 sed 's/^/| /' conftest.$ac_ext >&5
5989 ac_cv_lib_ICE_IceConnectionNumber=no
5991 rm -f conftest.err conftest.$ac_objext \
5992 conftest$ac_exeext conftest.$ac_ext
5993 LIBS=$ac_check_lib_save_LIBS
5995 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5996 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
5997 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5998 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6001 LDFLAGS=$ac_save_LDFLAGS
6007 LIBAFTERIMAGE_CFLAGS=
6011 if test x$support_afterimage = xyes; then
6012 support_afterimage=no
6014 if test "x$afterimage_config" = "x" ; then
6015 # Extract the first word of "afterimage-config", so it can be a program name with args.
6016 set dummy afterimage-config; ac_word=$2
6017 echo "$as_me:$LINENO: checking for $ac_word" >&5
6018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6019 if test "${ac_cv_path_afterimage_config+set}" = set; then
6020 echo $ECHO_N "(cached) $ECHO_C" >&6
6022 case $afterimage_config in
6024 ac_cv_path_afterimage_config="$afterimage_config" # Let the user override the test with a path.
6027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6031 test -z "$as_dir" && as_dir=.
6032 for ac_exec_ext in '' $ac_executable_extensions; do
6033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6034 ac_cv_path_afterimage_config="$as_dir/$ac_word$ac_exec_ext"
6035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6041 test -z "$ac_cv_path_afterimage_config" && ac_cv_path_afterimage_config="no"
6045 afterimage_config=$ac_cv_path_afterimage_config
6047 if test -n "$afterimage_config"; then
6048 echo "$as_me:$LINENO: result: $afterimage_config" >&5
6049 echo "${ECHO_T}$afterimage_config" >&6
6051 echo "$as_me:$LINENO: result: no" >&5
6052 echo "${ECHO_T}no" >&6
6057 echo "$as_me:$LINENO: checking for libAfterImage" >&5
6058 echo $ECHO_N "checking for libAfterImage... $ECHO_C" >&6
6059 if $afterimage_config --version >/dev/null 2>&1 ; then
6060 LIBAFTERIMAGE_CFLAGS=`$afterimage_config --cflags`
6061 AFTERIMAGE_LIBS=`$afterimage_config --libs`
6062 if test "x$AFTERIMAGE_LIBS" != "x"; then
6063 support_afterimage=yes
6067 if test "x$support_afterimage" = "xyes"; then
6068 echo "$as_me:$LINENO: result: $AFTERIMAGE_LIBS" >&5
6069 echo "${ECHO_T}$AFTERIMAGE_LIBS" >&6
6071 echo "$as_me:$LINENO: result: no" >&5
6072 echo "${ECHO_T}no" >&6
6076 if test x$support_afterimage != xyes -a x$support_xpm = xyes ; then
6080 # Initialize some more variables set by options.
6081 # The variables have the same names as the options, with
6082 # dashes changed to underlines.
6084 # If we find XPM, set shell vars xpm_includes and xpm_libraries to the
6085 # paths, otherwise set no_xpm=yes.
6086 # Uses ac_ vars as temps to allow command line to override cache and checks.
6087 echo "$as_me:$LINENO: checking for libXpm" >&5
6088 echo $ECHO_N "checking for libXpm... $ECHO_C" >&6
6091 # Check whether --with-xpm_includes or --without-xpm_includes was given.
6092 if test "${with_xpm_includes+set}" = set; then
6093 withval="$with_xpm_includes"
6094 xpm_includes="$withval"
6099 # Check whether --with-xpm_library or --without-xpm_library was given.
6100 if test "${with_xpm_library+set}" = set; then
6101 withval="$with_xpm_library"
6102 xpm_libraries="$withval"
6107 # --without-xpm overrides everything else, but does not touch the cache.
6109 # Check whether --with-xpm or --without-xpm was given.
6110 if test "${with_xpm+set}" = set; then
6114 if test "$with_xpm" = no; then
6117 if test "${ac_cv_have_xpm+set}" = set; then
6118 echo $ECHO_N "(cached) $ECHO_C" >&6
6121 vt_xpm_include_X11=no
6122 if test -n "$xpm_includes"; then
6123 vt_xpm_includes=$xpm_includes
6127 if test -n "$xpm_libraries"; then
6128 vt_xpm_libraries=$xpm_libraries
6133 if test "$vt_xpm_includes" = NO; then
6134 # Guess where to find xpm.h
6136 ac_save_CPPFLAGS="$CPPFLAGS"
6137 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6139 # First, try using that file with no special directory specified.
6140 cat >conftest.$ac_ext <<_ACEOF
6143 cat confdefs.h >>conftest.$ac_ext
6144 cat >>conftest.$ac_ext <<_ACEOF
6145 /* end confdefs.h. */
6146 #include <X11/xpm.h>
6148 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6149 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6151 grep -v '^ *+' conftest.er1 >conftest.err
6153 cat conftest.err >&5
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); } >/dev/null; then
6156 if test -s conftest.err; then
6157 ac_cpp_err=$ac_cxx_preproc_warn_flag
6158 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6165 if test -z "$ac_cpp_err"; then
6166 # We can compile using X headers with no special include directory.
6168 vt_xpm_include_X11=yes
6170 echo "$as_me: failed program was:" >&5
6171 sed 's/^/| /' conftest.$ac_ext >&5
6173 CPPFLAGS="$ac_save_CPPFLAGS"
6174 # Look for the header file in a standard set of common directories.
6177 /usr/X11R6/include \
6178 /usr/X11R5/include \
6179 /usr/X11R4/include \
6182 /usr/include/X11R6 \
6183 /usr/include/X11R5 \
6184 /usr/include/X11R4 \
6186 /usr/local/X11/include \
6187 /usr/local/X11R6/include \
6188 /usr/local/X11R5/include \
6189 /usr/local/X11R4/include \
6191 /usr/local/include/X11 \
6192 /usr/local/include/X11R6 \
6193 /usr/local/include/X11R5 \
6194 /usr/local/include/X11R4 \
6198 /usr/XFree86/include/X11 \
6201 /usr/local/include \
6202 /usr/unsupported/include \
6203 /usr/athena/include \
6204 /usr/local/x11r5/include \
6205 /usr/lpp/Xamples/include \
6207 /usr/openwin/include \
6208 /usr/openwin/share/include \
6211 if test -r "$ac_dir/X11/xpm.h"; then
6212 vt_xpm_includes="$ac_dir"
6213 vt_xpm_include_X11=yes
6216 if test -r "$ac_dir/xpm.h"; then
6217 vt_xpm_includes=$ac_dir
6223 rm -f conftest.err conftest.$ac_ext
6226 if test "$vt_xpm_libraries" = NO; then
6227 # Check for the libraries.
6229 # See if we find them without any special options.
6230 # Don't add to $LIBS permanently.
6231 ac_save_LIBS="$LIBS"
6232 LIBS="$LIBS $X_LIBS -lXpm -lX11"
6233 cat >conftest.$ac_ext <<_ACEOF
6236 cat confdefs.h >>conftest.$ac_ext
6237 cat >>conftest.$ac_ext <<_ACEOF
6238 /* end confdefs.h. */
6243 XpmReadFileToPixmap()
6248 rm -f conftest.$ac_objext conftest$ac_exeext
6249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6250 (eval $ac_link) 2>conftest.er1
6252 grep -v '^ *+' conftest.er1 >conftest.err
6254 cat conftest.err >&5
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); } &&
6257 { ac_try='test -z "$ac_cxx_werror_flag"
6258 || test ! -s conftest.err'
6259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); }; } &&
6264 { ac_try='test -s conftest$ac_exeext'
6265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269 (exit $ac_status); }; }; then
6270 LIBS="$ac_save_LIBS"
6271 # We can link libXpm with no special library path.
6274 echo "$as_me: failed program was:" >&5
6275 sed 's/^/| /' conftest.$ac_ext >&5
6277 LIBS="$ac_save_LIBS"
6278 # First see if replacing the include by lib works.
6280 `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \
6291 /usr/local/X11/lib \
6292 /usr/local/X11R6/lib \
6293 /usr/local/X11R5/lib \
6294 /usr/local/X11R4/lib \
6296 /usr/local/lib/X11 \
6297 /usr/local/lib/X11R6 \
6298 /usr/local/lib/X11R5 \
6299 /usr/local/lib/X11R4 \
6303 /usr/XFree86/lib/X11 \
6307 /usr/unsupported/lib \
6309 /usr/local/x11r5/lib \
6310 /usr/lpp/Xamples/lib \
6313 /usr/openwin/share/lib \
6316 for ac_extension in a so sl; do
6317 if test -r $ac_dir/libXpm.$ac_extension; then
6318 vt_xpm_libraries=$ac_dir
6324 rm -f conftest.err conftest.$ac_objext \
6325 conftest$ac_exeext conftest.$ac_ext
6329 if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then
6330 ac_cv_have_xpm="have_xpm=no"
6332 ac_cv_have_xpm="have_xpm=yes \
6333 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
6334 vt_xpm_include_X11=$vt_xpm_include_X11"
6337 eval "$ac_cv_have_xpm"
6340 if test "$have_xpm" != yes; then
6341 echo "$as_me:$LINENO: result: $have_xpm" >&5
6342 echo "${ECHO_T}$have_xpm" >&6
6345 if test "$xpm_includes" != NO; then
6346 if test "$xpm_includes" = "$vt_xpm_includes"; then
6347 if test -r "$xpm_includes/X11/xpm.h"; then
6348 vt_xpm_include_X11=yes
6351 vt_xpm_include_X11=no
6352 if test -z "$xpm_includes"; then
6353 cat >conftest.$ac_ext <<_ACEOF
6356 cat confdefs.h >>conftest.$ac_ext
6357 cat >>conftest.$ac_ext <<_ACEOF
6358 /* end confdefs.h. */
6359 #include <X11/xpm.h>
6361 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6362 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6364 grep -v '^ *+' conftest.er1 >conftest.err
6366 cat conftest.err >&5
6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); } >/dev/null; then
6369 if test -s conftest.err; then
6370 ac_cpp_err=$ac_cxx_preproc_warn_flag
6371 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6378 if test -z "$ac_cpp_err"; then
6379 vt_xpm_include_X11=yes
6381 echo "$as_me: failed program was:" >&5
6382 sed 's/^/| /' conftest.$ac_ext >&5
6386 rm -f conftest.err conftest.$ac_ext
6388 if test -r "$xpm_includes/X11/xpm.h"; then
6389 vt_xpm_include_X11=yes
6393 vt_xpm_includes=$xpm_includes
6395 if test "x$xpm_libraries" != xNO; then
6396 vt_xpm_libraries=$xpm_libraries
6398 # Update the cache value to reflect the command line values.
6399 ac_cv_have_xpm="have_xpm=yes \
6400 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
6401 vt_xpm_include_X11=$vt_xpm_include_X11"
6402 eval "$ac_cv_have_xpm"
6403 echo "$as_me:$LINENO: result: -I$vt_xpm_includes, -L$vt_xpm_libraries" >&5
6404 echo "${ECHO_T}-I$vt_xpm_includes, -L$vt_xpm_libraries" >&6
6405 if test -n "$vt_xpm_includes"; then
6406 XPM_CPPFLAGS="-DHAVE_LIBXPM"
6408 if test -n "$vt_xpm_includes"; then
6409 XPM_CFLAGS="-I$vt_xpm_includes"
6412 if test -n "$vt_xpm_libraries"; then
6413 XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS"
6415 if test "x$vt_xpm_include_X11" = xyes; then
6417 cat >>confdefs.h <<\_ACEOF
6418 #define XPM_INC_X11 1
6428 if test x$no_xpm = xyes; then
6429 support_xpm=needsmanualspecification
6433 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6434 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6435 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6436 echo $ECHO_N "(cached) $ECHO_C" >&6
6438 cat >conftest.$ac_ext <<_ACEOF
6441 cat confdefs.h >>conftest.$ac_ext
6442 cat >>conftest.$ac_ext <<_ACEOF
6443 /* end confdefs.h. */
6444 #include <sys/types.h>
6445 #include <sys/wait.h>
6447 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6450 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6458 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6463 rm -f conftest.$ac_objext
6464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6465 (eval $ac_compile) 2>conftest.er1
6467 grep -v '^ *+' conftest.er1 >conftest.err
6469 cat conftest.err >&5
6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); } &&
6472 { ac_try='test -z "$ac_cxx_werror_flag"
6473 || test ! -s conftest.err'
6474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); }; } &&
6479 { ac_try='test -s conftest.$ac_objext'
6480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); }; }; then
6485 ac_cv_header_sys_wait_h=yes
6487 echo "$as_me: failed program was:" >&5
6488 sed 's/^/| /' conftest.$ac_ext >&5
6490 ac_cv_header_sys_wait_h=no
6492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6494 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6495 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6496 if test $ac_cv_header_sys_wait_h = yes; then
6498 cat >>confdefs.h <<\_ACEOF
6499 #define HAVE_SYS_WAIT_H 1
6504 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6505 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6506 if test "${ac_cv_header_stdc+set}" = set; then
6507 echo $ECHO_N "(cached) $ECHO_C" >&6
6509 cat >conftest.$ac_ext <<_ACEOF
6512 cat confdefs.h >>conftest.$ac_ext
6513 cat >>conftest.$ac_ext <<_ACEOF
6514 /* end confdefs.h. */
6528 rm -f conftest.$ac_objext
6529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6530 (eval $ac_compile) 2>conftest.er1
6532 grep -v '^ *+' conftest.er1 >conftest.err
6534 cat conftest.err >&5
6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); } &&
6537 { ac_try='test -z "$ac_cxx_werror_flag"
6538 || test ! -s conftest.err'
6539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); }; } &&
6544 { ac_try='test -s conftest.$ac_objext'
6545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); }; }; then
6550 ac_cv_header_stdc=yes
6552 echo "$as_me: failed program was:" >&5
6553 sed 's/^/| /' conftest.$ac_ext >&5
6555 ac_cv_header_stdc=no
6557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6559 if test $ac_cv_header_stdc = yes; then
6560 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6561 cat >conftest.$ac_ext <<_ACEOF
6564 cat confdefs.h >>conftest.$ac_ext
6565 cat >>conftest.$ac_ext <<_ACEOF
6566 /* end confdefs.h. */
6570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6571 $EGREP "memchr" >/dev/null 2>&1; then
6574 ac_cv_header_stdc=no
6580 if test $ac_cv_header_stdc = yes; then
6581 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6582 cat >conftest.$ac_ext <<_ACEOF
6585 cat confdefs.h >>conftest.$ac_ext
6586 cat >>conftest.$ac_ext <<_ACEOF
6587 /* end confdefs.h. */
6591 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6592 $EGREP "free" >/dev/null 2>&1; then
6595 ac_cv_header_stdc=no
6601 if test $ac_cv_header_stdc = yes; then
6602 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6603 if test "$cross_compiling" = yes; then
6606 cat >conftest.$ac_ext <<_ACEOF
6609 cat confdefs.h >>conftest.$ac_ext
6610 cat >>conftest.$ac_ext <<_ACEOF
6611 /* end confdefs.h. */
6613 #if ((' ' & 0x0FF) == 0x020)
6614 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6615 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6617 # define ISLOWER(c) \
6618 (('a' <= (c) && (c) <= 'i') \
6619 || ('j' <= (c) && (c) <= 'r') \
6620 || ('s' <= (c) && (c) <= 'z'))
6621 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6624 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6629 for (i = 0; i < 256; i++)
6630 if (XOR (islower (i), ISLOWER (i))
6631 || toupper (i) != TOUPPER (i))
6636 rm -f conftest$ac_exeext
6637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6638 (eval $ac_link) 2>&5
6640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646 (exit $ac_status); }; }; then
6649 echo "$as_me: program exited with status $ac_status" >&5
6650 echo "$as_me: failed program was:" >&5
6651 sed 's/^/| /' conftest.$ac_ext >&5
6654 ac_cv_header_stdc=no
6656 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6660 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6661 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6662 if test $ac_cv_header_stdc = yes; then
6664 cat >>confdefs.h <<\_ACEOF
6665 #define STDC_HEADERS 1
6670 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6680 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6681 inttypes.h stdint.h unistd.h
6683 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6684 echo "$as_me:$LINENO: checking for $ac_header" >&5
6685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6686 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6687 echo $ECHO_N "(cached) $ECHO_C" >&6
6689 cat >conftest.$ac_ext <<_ACEOF
6692 cat confdefs.h >>conftest.$ac_ext
6693 cat >>conftest.$ac_ext <<_ACEOF
6694 /* end confdefs.h. */
6695 $ac_includes_default
6697 #include <$ac_header>
6699 rm -f conftest.$ac_objext
6700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6701 (eval $ac_compile) 2>conftest.er1
6703 grep -v '^ *+' conftest.er1 >conftest.err
6705 cat conftest.err >&5
6706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707 (exit $ac_status); } &&
6708 { ac_try='test -z "$ac_cxx_werror_flag"
6709 || test ! -s conftest.err'
6710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); }; } &&
6715 { ac_try='test -s conftest.$ac_objext'
6716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720 (exit $ac_status); }; }; then
6721 eval "$as_ac_Header=yes"
6723 echo "$as_me: failed program was:" >&5
6724 sed 's/^/| /' conftest.$ac_ext >&5
6726 eval "$as_ac_Header=no"
6728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6732 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6733 cat >>confdefs.h <<_ACEOF
6734 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6779 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6780 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6781 echo "$as_me:$LINENO: checking for $ac_header" >&5
6782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6784 echo $ECHO_N "(cached) $ECHO_C" >&6
6786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6787 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6789 # Is the header compilable?
6790 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6791 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6792 cat >conftest.$ac_ext <<_ACEOF
6795 cat confdefs.h >>conftest.$ac_ext
6796 cat >>conftest.$ac_ext <<_ACEOF
6797 /* end confdefs.h. */
6798 $ac_includes_default
6799 #include <$ac_header>
6801 rm -f conftest.$ac_objext
6802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6803 (eval $ac_compile) 2>conftest.er1
6805 grep -v '^ *+' conftest.er1 >conftest.err
6807 cat conftest.err >&5
6808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809 (exit $ac_status); } &&
6810 { ac_try='test -z "$ac_cxx_werror_flag"
6811 || test ! -s conftest.err'
6812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816 (exit $ac_status); }; } &&
6817 { ac_try='test -s conftest.$ac_objext'
6818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822 (exit $ac_status); }; }; then
6823 ac_header_compiler=yes
6825 echo "$as_me: failed program was:" >&5
6826 sed 's/^/| /' conftest.$ac_ext >&5
6828 ac_header_compiler=no
6830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6831 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6832 echo "${ECHO_T}$ac_header_compiler" >&6
6834 # Is the header present?
6835 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6836 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6837 cat >conftest.$ac_ext <<_ACEOF
6840 cat confdefs.h >>conftest.$ac_ext
6841 cat >>conftest.$ac_ext <<_ACEOF
6842 /* end confdefs.h. */
6843 #include <$ac_header>
6845 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6846 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6848 grep -v '^ *+' conftest.er1 >conftest.err
6850 cat conftest.err >&5
6851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852 (exit $ac_status); } >/dev/null; then
6853 if test -s conftest.err; then
6854 ac_cpp_err=$ac_cxx_preproc_warn_flag
6855 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6862 if test -z "$ac_cpp_err"; then
6863 ac_header_preproc=yes
6865 echo "$as_me: failed program was:" >&5
6866 sed 's/^/| /' conftest.$ac_ext >&5
6868 ac_header_preproc=no
6870 rm -f conftest.err conftest.$ac_ext
6871 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6872 echo "${ECHO_T}$ac_header_preproc" >&6
6874 # So? What about this header?
6875 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6877 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6878 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6880 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6881 ac_header_preproc=yes
6884 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6885 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6886 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6887 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6888 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6889 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6890 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6891 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6893 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6894 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6895 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6898 ## ------------------------------------------ ##
6899 ## Report this to the AC_PACKAGE_NAME lists. ##
6900 ## ------------------------------------------ ##
6903 sed "s/^/$as_me: WARNING: /" >&2
6906 echo "$as_me:$LINENO: checking for $ac_header" >&5
6907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6909 echo $ECHO_N "(cached) $ECHO_C" >&6
6911 eval "$as_ac_Header=\$ac_header_preproc"
6913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6914 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6917 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6918 cat >>confdefs.h <<_ACEOF
6919 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6927 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6928 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6929 if test "${ac_cv_header_time+set}" = set; then
6930 echo $ECHO_N "(cached) $ECHO_C" >&6
6932 cat >conftest.$ac_ext <<_ACEOF
6935 cat confdefs.h >>conftest.$ac_ext
6936 cat >>conftest.$ac_ext <<_ACEOF
6937 /* end confdefs.h. */
6938 #include <sys/types.h>
6939 #include <sys/time.h>
6945 if ((struct tm *) 0)
6951 rm -f conftest.$ac_objext
6952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6953 (eval $ac_compile) 2>conftest.er1
6955 grep -v '^ *+' conftest.er1 >conftest.err
6957 cat conftest.err >&5
6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); } &&
6960 { ac_try='test -z "$ac_cxx_werror_flag"
6961 || test ! -s conftest.err'
6962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966 (exit $ac_status); }; } &&
6967 { ac_try='test -s conftest.$ac_objext'
6968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6972 (exit $ac_status); }; }; then
6973 ac_cv_header_time=yes
6975 echo "$as_me: failed program was:" >&5
6976 sed 's/^/| /' conftest.$ac_ext >&5
6978 ac_cv_header_time=no
6980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6982 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6983 echo "${ECHO_T}$ac_cv_header_time" >&6
6984 if test $ac_cv_header_time = yes; then
6986 cat >>confdefs.h <<\_ACEOF
6987 #define TIME_WITH_SYS_TIME 1
6993 echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5
6994 echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6
6995 if test "${rxvt_cv_header_sysioctl+set}" = set; then
6996 echo $ECHO_N "(cached) $ECHO_C" >&6
6998 cat >conftest.$ac_ext <<_ACEOF
7001 cat confdefs.h >>conftest.$ac_ext
7002 cat >>conftest.$ac_ext <<_ACEOF
7003 /* end confdefs.h. */
7005 #include <sys/ioctl.h>
7006 #ifdef HAVE_TERMIOS_H
7007 #include <termios.h>
7017 rm -f conftest.$ac_objext
7018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7019 (eval $ac_compile) 2>conftest.er1
7021 grep -v '^ *+' conftest.er1 >conftest.err
7023 cat conftest.err >&5
7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025 (exit $ac_status); } &&
7026 { ac_try='test -z "$ac_cxx_werror_flag"
7027 || test ! -s conftest.err'
7028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 (exit $ac_status); }; } &&
7033 { ac_try='test -s conftest.$ac_objext'
7034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038 (exit $ac_status); }; }; then
7039 rxvt_cv_header_sysioctl=yes
7041 echo "$as_me: failed program was:" >&5
7042 sed 's/^/| /' conftest.$ac_ext >&5
7044 rxvt_cv_header_sysioctl=no
7046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7048 echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5
7049 echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6
7051 echo "$as_me:$LINENO: checking for XPointer" >&5
7052 echo $ECHO_N "checking for XPointer... $ECHO_C" >&6
7053 if test "${rxvt_cv_xpointer+set}" = set; then
7054 echo $ECHO_N "(cached) $ECHO_C" >&6
7056 cat >conftest.$ac_ext <<_ACEOF
7059 cat confdefs.h >>conftest.$ac_ext
7060 cat >>conftest.$ac_ext <<_ACEOF
7061 /* end confdefs.h. */
7062 #include <X11/Xlib.h>
7071 rm -f conftest.$ac_objext
7072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7073 (eval $ac_compile) 2>conftest.er1
7075 grep -v '^ *+' conftest.er1 >conftest.err
7077 cat conftest.err >&5
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); } &&
7080 { ac_try='test -z "$ac_cxx_werror_flag"
7081 || test ! -s conftest.err'
7082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086 (exit $ac_status); }; } &&
7087 { ac_try='test -s conftest.$ac_objext'
7088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7092 (exit $ac_status); }; }; then
7093 rxvt_cv_xpointer=yes
7095 echo "$as_me: failed program was:" >&5
7096 sed 's/^/| /' conftest.$ac_ext >&5
7100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7102 echo "$as_me:$LINENO: result: $rxvt_cv_xpointer" >&5
7103 echo "${ECHO_T}$rxvt_cv_xpointer" >&6
7104 if test x$rxvt_cv_xpointer = xyes; then
7106 cat >>confdefs.h <<\_ACEOF
7107 #define HAVE_XPOINTER 1
7112 CFLAGS=$ac_save_CFLAGS
7114 echo "$as_me:$LINENO: checking for XLIB_ILLEGAL_ACCESS" >&5
7115 echo $ECHO_N "checking for XLIB_ILLEGAL_ACCESS... $ECHO_C" >&6
7116 if test "${rxvt_xlib_illegal_access+set}" = set; then
7117 echo $ECHO_N "(cached) $ECHO_C" >&6
7119 cat >conftest.$ac_ext <<_ACEOF
7122 cat confdefs.h >>conftest.$ac_ext
7123 cat >>conftest.$ac_ext <<_ACEOF
7124 /* end confdefs.h. */
7126 #define XLIB_ILLEGAL_ACCESS
7127 #include <X11/Xlib.h>
7134 dpy->xdefaults = (char *)0;
7140 rm -f conftest.$ac_objext
7141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7142 (eval $ac_compile) 2>conftest.er1
7144 grep -v '^ *+' conftest.er1 >conftest.err
7146 cat conftest.err >&5
7147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148 (exit $ac_status); } &&
7149 { ac_try='test -z "$ac_cxx_werror_flag"
7150 || test ! -s conftest.err'
7151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155 (exit $ac_status); }; } &&
7156 { ac_try='test -s conftest.$ac_objext'
7157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161 (exit $ac_status); }; }; then
7162 rxvt_xlib_illegal_access=yes
7164 echo "$as_me: failed program was:" >&5
7165 sed 's/^/| /' conftest.$ac_ext >&5
7167 rxvt_xlib_illegal_access=no
7170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7172 echo "$as_me:$LINENO: result: $rxvt_xlib_illegal_access" >&5
7173 echo "${ECHO_T}$rxvt_xlib_illegal_access" >&6
7174 if test x$rxvt_xlib_illegal_access = xyes; then
7176 cat >>confdefs.h <<\_ACEOF
7177 #define XLIB_ILLEGAL_ACCESS 1
7182 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7183 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7184 if test "${ac_cv_c_const+set}" = set; then
7185 echo $ECHO_N "(cached) $ECHO_C" >&6
7187 cat >conftest.$ac_ext <<_ACEOF
7190 cat confdefs.h >>conftest.$ac_ext
7191 cat >>conftest.$ac_ext <<_ACEOF
7192 /* end confdefs.h. */
7197 /* FIXME: Include the comments suggested by Paul. */
7199 /* Ultrix mips cc rejects this. */
7200 typedef int charset[2];
7202 /* SunOS 4.1.1 cc rejects this. */
7203 char const *const *ccp;
7205 /* NEC SVR4.0.2 mips cc rejects this. */
7206 struct point {int x, y;};
7207 static struct point const zero = {0,0};
7208 /* AIX XL C 1.02.0.0 rejects this.
7209 It does not let you subtract one const X* pointer from another in
7210 an arm of an if-expression whose if-part is not a constant
7212 const char *g = "string";
7213 ccp = &g + (g ? g-g : 0);
7214 /* HPUX 7.0 cc rejects these. */
7217 ccp = (char const *const *) p;
7218 { /* SCO 3.2v4 cc rejects this. */
7220 char const *s = 0 ? (char *) 0 : (char const *) 0;
7224 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7226 const int *foo = &x[0];
7229 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7230 typedef const int *iptr;
7234 { /* AIX XL C 1.02.0.0 rejects this saying
7235 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7236 struct s { int j; const int *ap[3]; };
7237 struct s *b; b->j = 5;
7239 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7248 rm -f conftest.$ac_objext
7249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7250 (eval $ac_compile) 2>conftest.er1
7252 grep -v '^ *+' conftest.er1 >conftest.err
7254 cat conftest.err >&5
7255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256 (exit $ac_status); } &&
7257 { ac_try='test -z "$ac_cxx_werror_flag"
7258 || test ! -s conftest.err'
7259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263 (exit $ac_status); }; } &&
7264 { ac_try='test -s conftest.$ac_objext'
7265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269 (exit $ac_status); }; }; then
7272 echo "$as_me: failed program was:" >&5
7273 sed 's/^/| /' conftest.$ac_ext >&5
7277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7279 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7280 echo "${ECHO_T}$ac_cv_c_const" >&6
7281 if test $ac_cv_c_const = no; then
7283 cat >>confdefs.h <<\_ACEOF
7289 echo "$as_me:$LINENO: checking for inline" >&5
7290 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7291 if test "${ac_cv_c_inline+set}" = set; then
7292 echo $ECHO_N "(cached) $ECHO_C" >&6
7295 for ac_kw in inline __inline__ __inline; do
7296 cat >conftest.$ac_ext <<_ACEOF
7299 cat confdefs.h >>conftest.$ac_ext
7300 cat >>conftest.$ac_ext <<_ACEOF
7301 /* end confdefs.h. */
7304 static $ac_kw foo_t static_foo () {return 0; }
7305 $ac_kw foo_t foo () {return 0; }
7309 rm -f conftest.$ac_objext
7310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7311 (eval $ac_compile) 2>conftest.er1
7313 grep -v '^ *+' conftest.er1 >conftest.err
7315 cat conftest.err >&5
7316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317 (exit $ac_status); } &&
7318 { ac_try='test -z "$ac_cxx_werror_flag"
7319 || test ! -s conftest.err'
7320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324 (exit $ac_status); }; } &&
7325 { ac_try='test -s conftest.$ac_objext'
7326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330 (exit $ac_status); }; }; then
7331 ac_cv_c_inline=$ac_kw; break
7333 echo "$as_me: failed program was:" >&5
7334 sed 's/^/| /' conftest.$ac_ext >&5
7337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7341 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7342 echo "${ECHO_T}$ac_cv_c_inline" >&6
7345 case $ac_cv_c_inline in
7348 case $ac_cv_c_inline in
7350 *) ac_val=$ac_cv_c_inline;;
7352 cat >>confdefs.h <<_ACEOF
7354 #define inline $ac_val
7362 echo "$as_me:$LINENO: checking for mode_t" >&5
7363 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
7364 if test "${ac_cv_type_mode_t+set}" = set; then
7365 echo $ECHO_N "(cached) $ECHO_C" >&6
7367 cat >conftest.$ac_ext <<_ACEOF
7370 cat confdefs.h >>conftest.$ac_ext
7371 cat >>conftest.$ac_ext <<_ACEOF
7372 /* end confdefs.h. */
7373 $ac_includes_default
7379 if (sizeof (mode_t))
7385 rm -f conftest.$ac_objext
7386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7387 (eval $ac_compile) 2>conftest.er1
7389 grep -v '^ *+' conftest.er1 >conftest.err
7391 cat conftest.err >&5
7392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393 (exit $ac_status); } &&
7394 { ac_try='test -z "$ac_cxx_werror_flag"
7395 || test ! -s conftest.err'
7396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7400 (exit $ac_status); }; } &&
7401 { ac_try='test -s conftest.$ac_objext'
7402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406 (exit $ac_status); }; }; then
7407 ac_cv_type_mode_t=yes
7409 echo "$as_me: failed program was:" >&5
7410 sed 's/^/| /' conftest.$ac_ext >&5
7412 ac_cv_type_mode_t=no
7414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7416 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
7417 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
7418 if test $ac_cv_type_mode_t = yes; then
7422 cat >>confdefs.h <<_ACEOF
7428 echo "$as_me:$LINENO: checking for pid_t" >&5
7429 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7430 if test "${ac_cv_type_pid_t+set}" = set; then
7431 echo $ECHO_N "(cached) $ECHO_C" >&6
7433 cat >conftest.$ac_ext <<_ACEOF
7436 cat confdefs.h >>conftest.$ac_ext
7437 cat >>conftest.$ac_ext <<_ACEOF
7438 /* end confdefs.h. */
7439 $ac_includes_default
7451 rm -f conftest.$ac_objext
7452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7453 (eval $ac_compile) 2>conftest.er1
7455 grep -v '^ *+' conftest.er1 >conftest.err
7457 cat conftest.err >&5
7458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459 (exit $ac_status); } &&
7460 { ac_try='test -z "$ac_cxx_werror_flag"
7461 || test ! -s conftest.err'
7462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466 (exit $ac_status); }; } &&
7467 { ac_try='test -s conftest.$ac_objext'
7468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472 (exit $ac_status); }; }; then
7473 ac_cv_type_pid_t=yes
7475 echo "$as_me: failed program was:" >&5
7476 sed 's/^/| /' conftest.$ac_ext >&5
7480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7482 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7483 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7484 if test $ac_cv_type_pid_t = yes; then
7488 cat >>confdefs.h <<_ACEOF
7494 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7495 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7496 if test "${ac_cv_type_uid_t+set}" = set; then
7497 echo $ECHO_N "(cached) $ECHO_C" >&6
7499 cat >conftest.$ac_ext <<_ACEOF
7502 cat confdefs.h >>conftest.$ac_ext
7503 cat >>conftest.$ac_ext <<_ACEOF
7504 /* end confdefs.h. */
7505 #include <sys/types.h>
7508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7509 $EGREP "uid_t" >/dev/null 2>&1; then
7510 ac_cv_type_uid_t=yes
7517 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7518 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7519 if test $ac_cv_type_uid_t = no; then
7521 cat >>confdefs.h <<\_ACEOF
7526 cat >>confdefs.h <<\_ACEOF
7533 echo "$as_me:$LINENO: checking for short" >&5
7534 echo $ECHO_N "checking for short... $ECHO_C" >&6
7535 if test "${ac_cv_type_short+set}" = set; then
7536 echo $ECHO_N "(cached) $ECHO_C" >&6
7538 cat >conftest.$ac_ext <<_ACEOF
7541 cat confdefs.h >>conftest.$ac_ext
7542 cat >>conftest.$ac_ext <<_ACEOF
7543 /* end confdefs.h. */
7544 $ac_includes_default
7556 rm -f conftest.$ac_objext
7557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7558 (eval $ac_compile) 2>conftest.er1
7560 grep -v '^ *+' conftest.er1 >conftest.err
7562 cat conftest.err >&5
7563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564 (exit $ac_status); } &&
7565 { ac_try='test -z "$ac_cxx_werror_flag"
7566 || test ! -s conftest.err'
7567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571 (exit $ac_status); }; } &&
7572 { ac_try='test -s conftest.$ac_objext'
7573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577 (exit $ac_status); }; }; then
7578 ac_cv_type_short=yes
7580 echo "$as_me: failed program was:" >&5
7581 sed 's/^/| /' conftest.$ac_ext >&5
7585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7587 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7588 echo "${ECHO_T}$ac_cv_type_short" >&6
7590 echo "$as_me:$LINENO: checking size of short" >&5
7591 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7592 if test "${ac_cv_sizeof_short+set}" = set; then
7593 echo $ECHO_N "(cached) $ECHO_C" >&6
7595 if test "$ac_cv_type_short" = yes; then
7596 # The cast to unsigned long works around a bug in the HP C Compiler
7597 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7598 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7599 # This bug is HP SR number 8606223364.
7600 if test "$cross_compiling" = yes; then
7601 # Depending upon the size, compute the lo and hi bounds.
7602 cat >conftest.$ac_ext <<_ACEOF
7605 cat confdefs.h >>conftest.$ac_ext
7606 cat >>conftest.$ac_ext <<_ACEOF
7607 /* end confdefs.h. */
7608 $ac_includes_default
7612 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7619 rm -f conftest.$ac_objext
7620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7621 (eval $ac_compile) 2>conftest.er1
7623 grep -v '^ *+' conftest.er1 >conftest.err
7625 cat conftest.err >&5
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); } &&
7628 { ac_try='test -z "$ac_cxx_werror_flag"
7629 || test ! -s conftest.err'
7630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634 (exit $ac_status); }; } &&
7635 { ac_try='test -s conftest.$ac_objext'
7636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640 (exit $ac_status); }; }; then
7643 cat >conftest.$ac_ext <<_ACEOF
7646 cat confdefs.h >>conftest.$ac_ext
7647 cat >>conftest.$ac_ext <<_ACEOF
7648 /* end confdefs.h. */
7649 $ac_includes_default
7653 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7660 rm -f conftest.$ac_objext
7661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7662 (eval $ac_compile) 2>conftest.er1
7664 grep -v '^ *+' conftest.er1 >conftest.err
7666 cat conftest.err >&5
7667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668 (exit $ac_status); } &&
7669 { ac_try='test -z "$ac_cxx_werror_flag"
7670 || test ! -s conftest.err'
7671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675 (exit $ac_status); }; } &&
7676 { ac_try='test -s conftest.$ac_objext'
7677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681 (exit $ac_status); }; }; then
7682 ac_hi=$ac_mid; break
7684 echo "$as_me: failed program was:" >&5
7685 sed 's/^/| /' conftest.$ac_ext >&5
7687 ac_lo=`expr $ac_mid + 1`
7688 if test $ac_lo -le $ac_mid; then
7692 ac_mid=`expr 2 '*' $ac_mid + 1`
7694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7697 echo "$as_me: failed program was:" >&5
7698 sed 's/^/| /' conftest.$ac_ext >&5
7700 cat >conftest.$ac_ext <<_ACEOF
7703 cat confdefs.h >>conftest.$ac_ext
7704 cat >>conftest.$ac_ext <<_ACEOF
7705 /* end confdefs.h. */
7706 $ac_includes_default
7710 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7717 rm -f conftest.$ac_objext
7718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7719 (eval $ac_compile) 2>conftest.er1
7721 grep -v '^ *+' conftest.er1 >conftest.err
7723 cat conftest.err >&5
7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); } &&
7726 { ac_try='test -z "$ac_cxx_werror_flag"
7727 || test ! -s conftest.err'
7728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732 (exit $ac_status); }; } &&
7733 { ac_try='test -s conftest.$ac_objext'
7734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738 (exit $ac_status); }; }; then
7741 cat >conftest.$ac_ext <<_ACEOF
7744 cat confdefs.h >>conftest.$ac_ext
7745 cat >>conftest.$ac_ext <<_ACEOF
7746 /* end confdefs.h. */
7747 $ac_includes_default
7751 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7758 rm -f conftest.$ac_objext
7759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7760 (eval $ac_compile) 2>conftest.er1
7762 grep -v '^ *+' conftest.er1 >conftest.err
7764 cat conftest.err >&5
7765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766 (exit $ac_status); } &&
7767 { ac_try='test -z "$ac_cxx_werror_flag"
7768 || test ! -s conftest.err'
7769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773 (exit $ac_status); }; } &&
7774 { ac_try='test -s conftest.$ac_objext'
7775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779 (exit $ac_status); }; }; then
7780 ac_lo=$ac_mid; break
7782 echo "$as_me: failed program was:" >&5
7783 sed 's/^/| /' conftest.$ac_ext >&5
7785 ac_hi=`expr '(' $ac_mid ')' - 1`
7786 if test $ac_mid -le $ac_hi; then
7790 ac_mid=`expr 2 '*' $ac_mid`
7792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7795 echo "$as_me: failed program was:" >&5
7796 sed 's/^/| /' conftest.$ac_ext >&5
7800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7803 # Binary search between lo and hi bounds.
7804 while test "x$ac_lo" != "x$ac_hi"; do
7805 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7806 cat >conftest.$ac_ext <<_ACEOF
7809 cat confdefs.h >>conftest.$ac_ext
7810 cat >>conftest.$ac_ext <<_ACEOF
7811 /* end confdefs.h. */
7812 $ac_includes_default
7816 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7823 rm -f conftest.$ac_objext
7824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7825 (eval $ac_compile) 2>conftest.er1
7827 grep -v '^ *+' conftest.er1 >conftest.err
7829 cat conftest.err >&5
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); } &&
7832 { ac_try='test -z "$ac_cxx_werror_flag"
7833 || test ! -s conftest.err'
7834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); }; } &&
7839 { ac_try='test -s conftest.$ac_objext'
7840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844 (exit $ac_status); }; }; then
7847 echo "$as_me: failed program was:" >&5
7848 sed 's/^/| /' conftest.$ac_ext >&5
7850 ac_lo=`expr '(' $ac_mid ')' + 1`
7852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7855 ?*) ac_cv_sizeof_short=$ac_lo;;
7856 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7857 See \`config.log' for more details." >&5
7858 echo "$as_me: error: cannot compute sizeof (short), 77
7859 See \`config.log' for more details." >&2;}
7860 { (exit 1); exit 1; }; } ;;
7863 if test "$cross_compiling" = yes; then
7864 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7865 See \`config.log' for more details." >&5
7866 echo "$as_me: error: cannot run test program while cross compiling
7867 See \`config.log' for more details." >&2;}
7868 { (exit 1); exit 1; }; }
7870 cat >conftest.$ac_ext <<_ACEOF
7873 cat confdefs.h >>conftest.$ac_ext
7874 cat >>conftest.$ac_ext <<_ACEOF
7875 /* end confdefs.h. */
7876 $ac_includes_default
7877 long longval () { return (long) (sizeof (short)); }
7878 unsigned long ulongval () { return (long) (sizeof (short)); }
7885 FILE *f = fopen ("conftest.val", "w");
7888 if (((long) (sizeof (short))) < 0)
7890 long i = longval ();
7891 if (i != ((long) (sizeof (short))))
7893 fprintf (f, "%ld\n", i);
7897 unsigned long i = ulongval ();
7898 if (i != ((long) (sizeof (short))))
7900 fprintf (f, "%lu\n", i);
7902 exit (ferror (f) || fclose (f) != 0);
7908 rm -f conftest$ac_exeext
7909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7910 (eval $ac_link) 2>&5
7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918 (exit $ac_status); }; }; then
7919 ac_cv_sizeof_short=`cat conftest.val`
7921 echo "$as_me: program exited with status $ac_status" >&5
7922 echo "$as_me: failed program was:" >&5
7923 sed 's/^/| /' conftest.$ac_ext >&5
7926 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7927 See \`config.log' for more details." >&5
7928 echo "$as_me: error: cannot compute sizeof (short), 77
7929 See \`config.log' for more details." >&2;}
7930 { (exit 1); exit 1; }; }
7932 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7937 ac_cv_sizeof_short=0
7940 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7941 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7942 cat >>confdefs.h <<_ACEOF
7943 #define SIZEOF_SHORT $ac_cv_sizeof_short
7947 echo "$as_me:$LINENO: checking for int" >&5
7948 echo $ECHO_N "checking for int... $ECHO_C" >&6
7949 if test "${ac_cv_type_int+set}" = set; then
7950 echo $ECHO_N "(cached) $ECHO_C" >&6
7952 cat >conftest.$ac_ext <<_ACEOF
7955 cat confdefs.h >>conftest.$ac_ext
7956 cat >>conftest.$ac_ext <<_ACEOF
7957 /* end confdefs.h. */
7958 $ac_includes_default
7970 rm -f conftest.$ac_objext
7971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7972 (eval $ac_compile) 2>conftest.er1
7974 grep -v '^ *+' conftest.er1 >conftest.err
7976 cat conftest.err >&5
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); } &&
7979 { ac_try='test -z "$ac_cxx_werror_flag"
7980 || test ! -s conftest.err'
7981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985 (exit $ac_status); }; } &&
7986 { ac_try='test -s conftest.$ac_objext'
7987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991 (exit $ac_status); }; }; then
7994 echo "$as_me: failed program was:" >&5
7995 sed 's/^/| /' conftest.$ac_ext >&5
7999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8001 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
8002 echo "${ECHO_T}$ac_cv_type_int" >&6
8004 echo "$as_me:$LINENO: checking size of int" >&5
8005 echo $ECHO_N "checking size of int... $ECHO_C" >&6
8006 if test "${ac_cv_sizeof_int+set}" = set; then
8007 echo $ECHO_N "(cached) $ECHO_C" >&6
8009 if test "$ac_cv_type_int" = yes; then
8010 # The cast to unsigned long works around a bug in the HP C Compiler
8011 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8012 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8013 # This bug is HP SR number 8606223364.
8014 if test "$cross_compiling" = yes; then
8015 # Depending upon the size, compute the lo and hi bounds.
8016 cat >conftest.$ac_ext <<_ACEOF
8019 cat confdefs.h >>conftest.$ac_ext
8020 cat >>conftest.$ac_ext <<_ACEOF
8021 /* end confdefs.h. */
8022 $ac_includes_default
8026 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
8033 rm -f conftest.$ac_objext
8034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8035 (eval $ac_compile) 2>conftest.er1
8037 grep -v '^ *+' conftest.er1 >conftest.err
8039 cat conftest.err >&5
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); } &&
8042 { ac_try='test -z "$ac_cxx_werror_flag"
8043 || test ! -s conftest.err'
8044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); }; } &&
8049 { ac_try='test -s conftest.$ac_objext'
8050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); }; }; then
8057 cat >conftest.$ac_ext <<_ACEOF
8060 cat confdefs.h >>conftest.$ac_ext
8061 cat >>conftest.$ac_ext <<_ACEOF
8062 /* end confdefs.h. */
8063 $ac_includes_default
8067 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
8074 rm -f conftest.$ac_objext
8075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8076 (eval $ac_compile) 2>conftest.er1
8078 grep -v '^ *+' conftest.er1 >conftest.err
8080 cat conftest.err >&5
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); } &&
8083 { ac_try='test -z "$ac_cxx_werror_flag"
8084 || test ! -s conftest.err'
8085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089 (exit $ac_status); }; } &&
8090 { ac_try='test -s conftest.$ac_objext'
8091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095 (exit $ac_status); }; }; then
8096 ac_hi=$ac_mid; break
8098 echo "$as_me: failed program was:" >&5
8099 sed 's/^/| /' conftest.$ac_ext >&5
8101 ac_lo=`expr $ac_mid + 1`
8102 if test $ac_lo -le $ac_mid; then
8106 ac_mid=`expr 2 '*' $ac_mid + 1`
8108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8111 echo "$as_me: failed program was:" >&5
8112 sed 's/^/| /' conftest.$ac_ext >&5
8114 cat >conftest.$ac_ext <<_ACEOF
8117 cat confdefs.h >>conftest.$ac_ext
8118 cat >>conftest.$ac_ext <<_ACEOF
8119 /* end confdefs.h. */
8120 $ac_includes_default
8124 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
8131 rm -f conftest.$ac_objext
8132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8133 (eval $ac_compile) 2>conftest.er1
8135 grep -v '^ *+' conftest.er1 >conftest.err
8137 cat conftest.err >&5
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); } &&
8140 { ac_try='test -z "$ac_cxx_werror_flag"
8141 || test ! -s conftest.err'
8142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 (exit $ac_status); }; } &&
8147 { ac_try='test -s conftest.$ac_objext'
8148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 (exit $ac_status); }; }; then
8155 cat >conftest.$ac_ext <<_ACEOF
8158 cat confdefs.h >>conftest.$ac_ext
8159 cat >>conftest.$ac_ext <<_ACEOF
8160 /* end confdefs.h. */
8161 $ac_includes_default
8165 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
8172 rm -f conftest.$ac_objext
8173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8174 (eval $ac_compile) 2>conftest.er1
8176 grep -v '^ *+' conftest.er1 >conftest.err
8178 cat conftest.err >&5
8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180 (exit $ac_status); } &&
8181 { ac_try='test -z "$ac_cxx_werror_flag"
8182 || test ! -s conftest.err'
8183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); }; } &&
8188 { ac_try='test -s conftest.$ac_objext'
8189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); }; }; then
8194 ac_lo=$ac_mid; break
8196 echo "$as_me: failed program was:" >&5
8197 sed 's/^/| /' conftest.$ac_ext >&5
8199 ac_hi=`expr '(' $ac_mid ')' - 1`
8200 if test $ac_mid -le $ac_hi; then
8204 ac_mid=`expr 2 '*' $ac_mid`
8206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8209 echo "$as_me: failed program was:" >&5
8210 sed 's/^/| /' conftest.$ac_ext >&5
8214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8217 # Binary search between lo and hi bounds.
8218 while test "x$ac_lo" != "x$ac_hi"; do
8219 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8220 cat >conftest.$ac_ext <<_ACEOF
8223 cat confdefs.h >>conftest.$ac_ext
8224 cat >>conftest.$ac_ext <<_ACEOF
8225 /* end confdefs.h. */
8226 $ac_includes_default
8230 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
8237 rm -f conftest.$ac_objext
8238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8239 (eval $ac_compile) 2>conftest.er1
8241 grep -v '^ *+' conftest.er1 >conftest.err
8243 cat conftest.err >&5
8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245 (exit $ac_status); } &&
8246 { ac_try='test -z "$ac_cxx_werror_flag"
8247 || test ! -s conftest.err'
8248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252 (exit $ac_status); }; } &&
8253 { ac_try='test -s conftest.$ac_objext'
8254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258 (exit $ac_status); }; }; then
8261 echo "$as_me: failed program was:" >&5
8262 sed 's/^/| /' conftest.$ac_ext >&5
8264 ac_lo=`expr '(' $ac_mid ')' + 1`
8266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8269 ?*) ac_cv_sizeof_int=$ac_lo;;
8270 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
8271 See \`config.log' for more details." >&5
8272 echo "$as_me: error: cannot compute sizeof (int), 77
8273 See \`config.log' for more details." >&2;}
8274 { (exit 1); exit 1; }; } ;;
8277 if test "$cross_compiling" = yes; then
8278 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8279 See \`config.log' for more details." >&5
8280 echo "$as_me: error: cannot run test program while cross compiling
8281 See \`config.log' for more details." >&2;}
8282 { (exit 1); exit 1; }; }
8284 cat >conftest.$ac_ext <<_ACEOF
8287 cat confdefs.h >>conftest.$ac_ext
8288 cat >>conftest.$ac_ext <<_ACEOF
8289 /* end confdefs.h. */
8290 $ac_includes_default
8291 long longval () { return (long) (sizeof (int)); }
8292 unsigned long ulongval () { return (long) (sizeof (int)); }
8299 FILE *f = fopen ("conftest.val", "w");
8302 if (((long) (sizeof (int))) < 0)
8304 long i = longval ();
8305 if (i != ((long) (sizeof (int))))
8307 fprintf (f, "%ld\n", i);
8311 unsigned long i = ulongval ();
8312 if (i != ((long) (sizeof (int))))
8314 fprintf (f, "%lu\n", i);
8316 exit (ferror (f) || fclose (f) != 0);
8322 rm -f conftest$ac_exeext
8323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8324 (eval $ac_link) 2>&5
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); }; }; then
8333 ac_cv_sizeof_int=`cat conftest.val`
8335 echo "$as_me: program exited with status $ac_status" >&5
8336 echo "$as_me: failed program was:" >&5
8337 sed 's/^/| /' conftest.$ac_ext >&5
8340 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
8341 See \`config.log' for more details." >&5
8342 echo "$as_me: error: cannot compute sizeof (int), 77
8343 See \`config.log' for more details." >&2;}
8344 { (exit 1); exit 1; }; }
8346 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8354 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
8355 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
8356 cat >>confdefs.h <<_ACEOF
8357 #define SIZEOF_INT $ac_cv_sizeof_int
8361 echo "$as_me:$LINENO: checking for long long" >&5
8362 echo $ECHO_N "checking for long long... $ECHO_C" >&6
8363 if test "${ac_cv_type_long_long+set}" = set; then
8364 echo $ECHO_N "(cached) $ECHO_C" >&6
8366 cat >conftest.$ac_ext <<_ACEOF
8369 cat confdefs.h >>conftest.$ac_ext
8370 cat >>conftest.$ac_ext <<_ACEOF
8371 /* end confdefs.h. */
8372 $ac_includes_default
8376 if ((long long *) 0)
8378 if (sizeof (long long))
8384 rm -f conftest.$ac_objext
8385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8386 (eval $ac_compile) 2>conftest.er1
8388 grep -v '^ *+' conftest.er1 >conftest.err
8390 cat conftest.err >&5
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); } &&
8393 { ac_try='test -z "$ac_cxx_werror_flag"
8394 || test ! -s conftest.err'
8395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399 (exit $ac_status); }; } &&
8400 { ac_try='test -s conftest.$ac_objext'
8401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405 (exit $ac_status); }; }; then
8406 ac_cv_type_long_long=yes
8408 echo "$as_me: failed program was:" >&5
8409 sed 's/^/| /' conftest.$ac_ext >&5
8411 ac_cv_type_long_long=no
8413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8415 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8416 echo "${ECHO_T}$ac_cv_type_long_long" >&6
8418 echo "$as_me:$LINENO: checking size of long long" >&5
8419 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
8420 if test "${ac_cv_sizeof_long_long+set}" = set; then
8421 echo $ECHO_N "(cached) $ECHO_C" >&6
8423 if test "$ac_cv_type_long_long" = yes; then
8424 # The cast to unsigned long works around a bug in the HP C Compiler
8425 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8426 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8427 # This bug is HP SR number 8606223364.
8428 if test "$cross_compiling" = yes; then
8429 # Depending upon the size, compute the lo and hi bounds.
8430 cat >conftest.$ac_ext <<_ACEOF
8433 cat confdefs.h >>conftest.$ac_ext
8434 cat >>conftest.$ac_ext <<_ACEOF
8435 /* end confdefs.h. */
8436 $ac_includes_default
8440 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
8447 rm -f conftest.$ac_objext
8448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8449 (eval $ac_compile) 2>conftest.er1
8451 grep -v '^ *+' conftest.er1 >conftest.err
8453 cat conftest.err >&5
8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 (exit $ac_status); } &&
8456 { ac_try='test -z "$ac_cxx_werror_flag"
8457 || test ! -s conftest.err'
8458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); }; } &&
8463 { ac_try='test -s conftest.$ac_objext'
8464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); }; }; then
8471 cat >conftest.$ac_ext <<_ACEOF
8474 cat confdefs.h >>conftest.$ac_ext
8475 cat >>conftest.$ac_ext <<_ACEOF
8476 /* end confdefs.h. */
8477 $ac_includes_default
8481 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
8488 rm -f conftest.$ac_objext
8489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8490 (eval $ac_compile) 2>conftest.er1
8492 grep -v '^ *+' conftest.er1 >conftest.err
8494 cat conftest.err >&5
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); } &&
8497 { ac_try='test -z "$ac_cxx_werror_flag"
8498 || test ! -s conftest.err'
8499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); }; } &&
8504 { ac_try='test -s conftest.$ac_objext'
8505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 (exit $ac_status); }; }; then
8510 ac_hi=$ac_mid; break
8512 echo "$as_me: failed program was:" >&5
8513 sed 's/^/| /' conftest.$ac_ext >&5
8515 ac_lo=`expr $ac_mid + 1`
8516 if test $ac_lo -le $ac_mid; then
8520 ac_mid=`expr 2 '*' $ac_mid + 1`
8522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8525 echo "$as_me: failed program was:" >&5
8526 sed 's/^/| /' conftest.$ac_ext >&5
8528 cat >conftest.$ac_ext <<_ACEOF
8531 cat confdefs.h >>conftest.$ac_ext
8532 cat >>conftest.$ac_ext <<_ACEOF
8533 /* end confdefs.h. */
8534 $ac_includes_default
8538 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
8545 rm -f conftest.$ac_objext
8546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8547 (eval $ac_compile) 2>conftest.er1
8549 grep -v '^ *+' conftest.er1 >conftest.err
8551 cat conftest.err >&5
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); } &&
8554 { ac_try='test -z "$ac_cxx_werror_flag"
8555 || test ! -s conftest.err'
8556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); }; } &&
8561 { ac_try='test -s conftest.$ac_objext'
8562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); }; }; then
8569 cat >conftest.$ac_ext <<_ACEOF
8572 cat confdefs.h >>conftest.$ac_ext
8573 cat >>conftest.$ac_ext <<_ACEOF
8574 /* end confdefs.h. */
8575 $ac_includes_default
8579 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
8586 rm -f conftest.$ac_objext
8587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8588 (eval $ac_compile) 2>conftest.er1
8590 grep -v '^ *+' conftest.er1 >conftest.err
8592 cat conftest.err >&5
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); } &&
8595 { ac_try='test -z "$ac_cxx_werror_flag"
8596 || test ! -s conftest.err'
8597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601 (exit $ac_status); }; } &&
8602 { ac_try='test -s conftest.$ac_objext'
8603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607 (exit $ac_status); }; }; then
8608 ac_lo=$ac_mid; break
8610 echo "$as_me: failed program was:" >&5
8611 sed 's/^/| /' conftest.$ac_ext >&5
8613 ac_hi=`expr '(' $ac_mid ')' - 1`
8614 if test $ac_mid -le $ac_hi; then
8618 ac_mid=`expr 2 '*' $ac_mid`
8620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8623 echo "$as_me: failed program was:" >&5
8624 sed 's/^/| /' conftest.$ac_ext >&5
8628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8631 # Binary search between lo and hi bounds.
8632 while test "x$ac_lo" != "x$ac_hi"; do
8633 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8634 cat >conftest.$ac_ext <<_ACEOF
8637 cat confdefs.h >>conftest.$ac_ext
8638 cat >>conftest.$ac_ext <<_ACEOF
8639 /* end confdefs.h. */
8640 $ac_includes_default
8644 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
8651 rm -f conftest.$ac_objext
8652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8653 (eval $ac_compile) 2>conftest.er1
8655 grep -v '^ *+' conftest.er1 >conftest.err
8657 cat conftest.err >&5
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 (exit $ac_status); } &&
8660 { ac_try='test -z "$ac_cxx_werror_flag"
8661 || test ! -s conftest.err'
8662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666 (exit $ac_status); }; } &&
8667 { ac_try='test -s conftest.$ac_objext'
8668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672 (exit $ac_status); }; }; then
8675 echo "$as_me: failed program was:" >&5
8676 sed 's/^/| /' conftest.$ac_ext >&5
8678 ac_lo=`expr '(' $ac_mid ')' + 1`
8680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8683 ?*) ac_cv_sizeof_long_long=$ac_lo;;
8684 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
8685 See \`config.log' for more details." >&5
8686 echo "$as_me: error: cannot compute sizeof (long long), 77
8687 See \`config.log' for more details." >&2;}
8688 { (exit 1); exit 1; }; } ;;
8691 if test "$cross_compiling" = yes; then
8692 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8693 See \`config.log' for more details." >&5
8694 echo "$as_me: error: cannot run test program while cross compiling
8695 See \`config.log' for more details." >&2;}
8696 { (exit 1); exit 1; }; }
8698 cat >conftest.$ac_ext <<_ACEOF
8701 cat confdefs.h >>conftest.$ac_ext
8702 cat >>conftest.$ac_ext <<_ACEOF
8703 /* end confdefs.h. */
8704 $ac_includes_default
8705 long longval () { return (long) (sizeof (long long)); }
8706 unsigned long ulongval () { return (long) (sizeof (long long)); }
8713 FILE *f = fopen ("conftest.val", "w");
8716 if (((long) (sizeof (long long))) < 0)
8718 long i = longval ();
8719 if (i != ((long) (sizeof (long long))))
8721 fprintf (f, "%ld\n", i);
8725 unsigned long i = ulongval ();
8726 if (i != ((long) (sizeof (long long))))
8728 fprintf (f, "%lu\n", i);
8730 exit (ferror (f) || fclose (f) != 0);
8736 rm -f conftest$ac_exeext
8737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8738 (eval $ac_link) 2>&5
8740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 (exit $ac_status); }; }; then
8747 ac_cv_sizeof_long_long=`cat conftest.val`
8749 echo "$as_me: program exited with status $ac_status" >&5
8750 echo "$as_me: failed program was:" >&5
8751 sed 's/^/| /' conftest.$ac_ext >&5
8754 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
8755 See \`config.log' for more details." >&5
8756 echo "$as_me: error: cannot compute sizeof (long long), 77
8757 See \`config.log' for more details." >&2;}
8758 { (exit 1); exit 1; }; }
8760 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8765 ac_cv_sizeof_long_long=0
8768 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
8769 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
8770 cat >>confdefs.h <<_ACEOF
8771 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8775 echo "$as_me:$LINENO: checking for int *" >&5
8776 echo $ECHO_N "checking for int *... $ECHO_C" >&6
8777 if test "${ac_cv_type_int_p+set}" = set; then
8778 echo $ECHO_N "(cached) $ECHO_C" >&6
8780 cat >conftest.$ac_ext <<_ACEOF
8783 cat confdefs.h >>conftest.$ac_ext
8784 cat >>conftest.$ac_ext <<_ACEOF
8785 /* end confdefs.h. */
8786 $ac_includes_default
8798 rm -f conftest.$ac_objext
8799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8800 (eval $ac_compile) 2>conftest.er1
8802 grep -v '^ *+' conftest.er1 >conftest.err
8804 cat conftest.err >&5
8805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 (exit $ac_status); } &&
8807 { ac_try='test -z "$ac_cxx_werror_flag"
8808 || test ! -s conftest.err'
8809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813 (exit $ac_status); }; } &&
8814 { ac_try='test -s conftest.$ac_objext'
8815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); }; }; then
8820 ac_cv_type_int_p=yes
8822 echo "$as_me: failed program was:" >&5
8823 sed 's/^/| /' conftest.$ac_ext >&5
8827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8829 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
8830 echo "${ECHO_T}$ac_cv_type_int_p" >&6
8832 echo "$as_me:$LINENO: checking size of int *" >&5
8833 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
8834 if test "${ac_cv_sizeof_int_p+set}" = set; then
8835 echo $ECHO_N "(cached) $ECHO_C" >&6
8837 if test "$ac_cv_type_int_p" = yes; then
8838 # The cast to unsigned long works around a bug in the HP C Compiler
8839 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8840 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8841 # This bug is HP SR number 8606223364.
8842 if test "$cross_compiling" = yes; then
8843 # Depending upon the size, compute the lo and hi bounds.
8844 cat >conftest.$ac_ext <<_ACEOF
8847 cat confdefs.h >>conftest.$ac_ext
8848 cat >>conftest.$ac_ext <<_ACEOF
8849 /* end confdefs.h. */
8850 $ac_includes_default
8854 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
8861 rm -f conftest.$ac_objext
8862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8863 (eval $ac_compile) 2>conftest.er1
8865 grep -v '^ *+' conftest.er1 >conftest.err
8867 cat conftest.err >&5
8868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869 (exit $ac_status); } &&
8870 { ac_try='test -z "$ac_cxx_werror_flag"
8871 || test ! -s conftest.err'
8872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876 (exit $ac_status); }; } &&
8877 { ac_try='test -s conftest.$ac_objext'
8878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 (exit $ac_status); }; }; then
8885 cat >conftest.$ac_ext <<_ACEOF
8888 cat confdefs.h >>conftest.$ac_ext
8889 cat >>conftest.$ac_ext <<_ACEOF
8890 /* end confdefs.h. */
8891 $ac_includes_default
8895 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
8902 rm -f conftest.$ac_objext
8903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8904 (eval $ac_compile) 2>conftest.er1
8906 grep -v '^ *+' conftest.er1 >conftest.err
8908 cat conftest.err >&5
8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); } &&
8911 { ac_try='test -z "$ac_cxx_werror_flag"
8912 || test ! -s conftest.err'
8913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 (exit $ac_status); }; } &&
8918 { ac_try='test -s conftest.$ac_objext'
8919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923 (exit $ac_status); }; }; then
8924 ac_hi=$ac_mid; break
8926 echo "$as_me: failed program was:" >&5
8927 sed 's/^/| /' conftest.$ac_ext >&5
8929 ac_lo=`expr $ac_mid + 1`
8930 if test $ac_lo -le $ac_mid; then
8934 ac_mid=`expr 2 '*' $ac_mid + 1`
8936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8939 echo "$as_me: failed program was:" >&5
8940 sed 's/^/| /' conftest.$ac_ext >&5
8942 cat >conftest.$ac_ext <<_ACEOF
8945 cat confdefs.h >>conftest.$ac_ext
8946 cat >>conftest.$ac_ext <<_ACEOF
8947 /* end confdefs.h. */
8948 $ac_includes_default
8952 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
8959 rm -f conftest.$ac_objext
8960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8961 (eval $ac_compile) 2>conftest.er1
8963 grep -v '^ *+' conftest.er1 >conftest.err
8965 cat conftest.err >&5
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); } &&
8968 { ac_try='test -z "$ac_cxx_werror_flag"
8969 || test ! -s conftest.err'
8970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974 (exit $ac_status); }; } &&
8975 { ac_try='test -s conftest.$ac_objext'
8976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980 (exit $ac_status); }; }; then
8983 cat >conftest.$ac_ext <<_ACEOF
8986 cat confdefs.h >>conftest.$ac_ext
8987 cat >>conftest.$ac_ext <<_ACEOF
8988 /* end confdefs.h. */
8989 $ac_includes_default
8993 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
9000 rm -f conftest.$ac_objext
9001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9002 (eval $ac_compile) 2>conftest.er1
9004 grep -v '^ *+' conftest.er1 >conftest.err
9006 cat conftest.err >&5
9007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 (exit $ac_status); } &&
9009 { ac_try='test -z "$ac_cxx_werror_flag"
9010 || test ! -s conftest.err'
9011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015 (exit $ac_status); }; } &&
9016 { ac_try='test -s conftest.$ac_objext'
9017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021 (exit $ac_status); }; }; then
9022 ac_lo=$ac_mid; break
9024 echo "$as_me: failed program was:" >&5
9025 sed 's/^/| /' conftest.$ac_ext >&5
9027 ac_hi=`expr '(' $ac_mid ')' - 1`
9028 if test $ac_mid -le $ac_hi; then
9032 ac_mid=`expr 2 '*' $ac_mid`
9034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9037 echo "$as_me: failed program was:" >&5
9038 sed 's/^/| /' conftest.$ac_ext >&5
9042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9045 # Binary search between lo and hi bounds.
9046 while test "x$ac_lo" != "x$ac_hi"; do
9047 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9048 cat >conftest.$ac_ext <<_ACEOF
9051 cat confdefs.h >>conftest.$ac_ext
9052 cat >>conftest.$ac_ext <<_ACEOF
9053 /* end confdefs.h. */
9054 $ac_includes_default
9058 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
9065 rm -f conftest.$ac_objext
9066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9067 (eval $ac_compile) 2>conftest.er1
9069 grep -v '^ *+' conftest.er1 >conftest.err
9071 cat conftest.err >&5
9072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073 (exit $ac_status); } &&
9074 { ac_try='test -z "$ac_cxx_werror_flag"
9075 || test ! -s conftest.err'
9076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080 (exit $ac_status); }; } &&
9081 { ac_try='test -s conftest.$ac_objext'
9082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086 (exit $ac_status); }; }; then
9089 echo "$as_me: failed program was:" >&5
9090 sed 's/^/| /' conftest.$ac_ext >&5
9092 ac_lo=`expr '(' $ac_mid ')' + 1`
9094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9097 ?*) ac_cv_sizeof_int_p=$ac_lo;;
9098 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
9099 See \`config.log' for more details." >&5
9100 echo "$as_me: error: cannot compute sizeof (int *), 77
9101 See \`config.log' for more details." >&2;}
9102 { (exit 1); exit 1; }; } ;;
9105 if test "$cross_compiling" = yes; then
9106 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9107 See \`config.log' for more details." >&5
9108 echo "$as_me: error: cannot run test program while cross compiling
9109 See \`config.log' for more details." >&2;}
9110 { (exit 1); exit 1; }; }
9112 cat >conftest.$ac_ext <<_ACEOF
9115 cat confdefs.h >>conftest.$ac_ext
9116 cat >>conftest.$ac_ext <<_ACEOF
9117 /* end confdefs.h. */
9118 $ac_includes_default
9119 long longval () { return (long) (sizeof (int *)); }
9120 unsigned long ulongval () { return (long) (sizeof (int *)); }
9127 FILE *f = fopen ("conftest.val", "w");
9130 if (((long) (sizeof (int *))) < 0)
9132 long i = longval ();
9133 if (i != ((long) (sizeof (int *))))
9135 fprintf (f, "%ld\n", i);
9139 unsigned long i = ulongval ();
9140 if (i != ((long) (sizeof (int *))))
9142 fprintf (f, "%lu\n", i);
9144 exit (ferror (f) || fclose (f) != 0);
9150 rm -f conftest$ac_exeext
9151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9152 (eval $ac_link) 2>&5
9154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 (exit $ac_status); }; }; then
9161 ac_cv_sizeof_int_p=`cat conftest.val`
9163 echo "$as_me: program exited with status $ac_status" >&5
9164 echo "$as_me: failed program was:" >&5
9165 sed 's/^/| /' conftest.$ac_ext >&5
9168 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
9169 See \`config.log' for more details." >&5
9170 echo "$as_me: error: cannot compute sizeof (int *), 77
9171 See \`config.log' for more details." >&2;}
9172 { (exit 1); exit 1; }; }
9174 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9179 ac_cv_sizeof_int_p=0
9182 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
9183 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
9184 cat >>confdefs.h <<_ACEOF
9185 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
9191 echo "$as_me:$LINENO: checking for int16_t" >&5
9192 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
9193 if test "${rxvt_cv_int16_t+set}" = set; then
9194 echo $ECHO_N "(cached) $ECHO_C" >&6
9196 cat >conftest.$ac_ext <<_ACEOF
9199 cat confdefs.h >>conftest.$ac_ext
9200 cat >>conftest.$ac_ext <<_ACEOF
9201 /* end confdefs.h. */
9211 rm -f conftest.$ac_objext
9212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9213 (eval $ac_compile) 2>conftest.er1
9215 grep -v '^ *+' conftest.er1 >conftest.err
9217 cat conftest.err >&5
9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 (exit $ac_status); } &&
9220 { ac_try='test -z "$ac_cxx_werror_flag"
9221 || test ! -s conftest.err'
9222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226 (exit $ac_status); }; } &&
9227 { ac_try='test -s conftest.$ac_objext'
9228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); }; }; then
9235 echo "$as_me: failed program was:" >&5
9236 sed 's/^/| /' conftest.$ac_ext >&5
9238 if test "$ac_cv_sizeof_char" -ge 2; then
9239 rxvt_cv_int16_t=" char"
9241 if test "$ac_cv_sizeof_short" -ge 2; then
9242 rxvt_cv_int16_t=" short"
9244 if test "$ac_cv_sizeof_int" -ge 2; then
9245 rxvt_cv_int16_t=" int"
9247 if test "$ac_cv_sizeof_long" -ge 2; then
9248 rxvt_cv_int16_t=" long"
9250 if test "$ac_cv_sizeof_long_long" -ge 2; then
9251 rxvt_cv_int16_t=" long long"
9253 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
9260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9262 echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5
9263 echo "${ECHO_T}$rxvt_cv_int16_t" >&6
9264 if test x"$rxvt_cv_int16_t" != xyes; then
9265 rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;"
9267 if test x"" = x; then
9268 rxvt_int16_typedef="/* typedef short int16_t; */"
9270 rxvt_int16_typedef="/* typedef short int16_t; */"
9274 echo "$as_me:$LINENO: checking for uint16_t" >&5
9275 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
9276 if test "${rxvt_cv_uint16_t+set}" = set; then
9277 echo $ECHO_N "(cached) $ECHO_C" >&6
9279 cat >conftest.$ac_ext <<_ACEOF
9282 cat confdefs.h >>conftest.$ac_ext
9283 cat >>conftest.$ac_ext <<_ACEOF
9284 /* end confdefs.h. */
9294 rm -f conftest.$ac_objext
9295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9296 (eval $ac_compile) 2>conftest.er1
9298 grep -v '^ *+' conftest.er1 >conftest.err
9300 cat conftest.err >&5
9301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302 (exit $ac_status); } &&
9303 { ac_try='test -z "$ac_cxx_werror_flag"
9304 || test ! -s conftest.err'
9305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309 (exit $ac_status); }; } &&
9310 { ac_try='test -s conftest.$ac_objext'
9311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315 (exit $ac_status); }; }; then
9316 rxvt_cv_uint16_t=yes
9318 echo "$as_me: failed program was:" >&5
9319 sed 's/^/| /' conftest.$ac_ext >&5
9321 if test "$ac_cv_sizeof_char" -ge 2; then
9322 rxvt_cv_uint16_t="unsigned char"
9324 if test "$ac_cv_sizeof_short" -ge 2; then
9325 rxvt_cv_uint16_t="unsigned short"
9327 if test "$ac_cv_sizeof_int" -ge 2; then
9328 rxvt_cv_uint16_t="unsigned int"
9330 if test "$ac_cv_sizeof_long" -ge 2; then
9331 rxvt_cv_uint16_t="unsigned long"
9333 if test "$ac_cv_sizeof_long_long" -ge 2; then
9334 rxvt_cv_uint16_t="unsigned long long"
9336 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default
9343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9345 echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5
9346 echo "${ECHO_T}$rxvt_cv_uint16_t" >&6
9347 if test x"$rxvt_cv_uint16_t" != xyes; then
9348 rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;"
9350 if test x"unsigned" = x; then
9351 rxvt_uint16_typedef="/* typedef short uint16_t; */"
9353 rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */"
9357 echo "$as_me:$LINENO: checking for int32_t" >&5
9358 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
9359 if test "${rxvt_cv_int32_t+set}" = set; then
9360 echo $ECHO_N "(cached) $ECHO_C" >&6
9362 cat >conftest.$ac_ext <<_ACEOF
9365 cat confdefs.h >>conftest.$ac_ext
9366 cat >>conftest.$ac_ext <<_ACEOF
9367 /* end confdefs.h. */
9377 rm -f conftest.$ac_objext
9378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9379 (eval $ac_compile) 2>conftest.er1
9381 grep -v '^ *+' conftest.er1 >conftest.err
9383 cat conftest.err >&5
9384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9385 (exit $ac_status); } &&
9386 { ac_try='test -z "$ac_cxx_werror_flag"
9387 || test ! -s conftest.err'
9388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); }; } &&
9393 { ac_try='test -s conftest.$ac_objext'
9394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398 (exit $ac_status); }; }; then
9401 echo "$as_me: failed program was:" >&5
9402 sed 's/^/| /' conftest.$ac_ext >&5
9404 if test "$ac_cv_sizeof_char" -ge 4; then
9405 rxvt_cv_int32_t=" char"
9407 if test "$ac_cv_sizeof_short" -ge 4; then
9408 rxvt_cv_int32_t=" short"
9410 if test "$ac_cv_sizeof_int" -ge 4; then
9411 rxvt_cv_int32_t=" int"
9413 if test "$ac_cv_sizeof_long" -ge 4; then
9414 rxvt_cv_int32_t=" long"
9416 if test "$ac_cv_sizeof_long_long" -ge 4; then
9417 rxvt_cv_int32_t=" long long"
9419 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
9426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9428 echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5
9429 echo "${ECHO_T}$rxvt_cv_int32_t" >&6
9430 if test x"$rxvt_cv_int32_t" != xyes; then
9431 rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;"
9433 if test x"" = x; then
9434 rxvt_int32_typedef="/* typedef int int32_t; */"
9436 rxvt_int32_typedef="/* typedef int int32_t; */"
9440 echo "$as_me:$LINENO: checking for uint32_t" >&5
9441 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
9442 if test "${rxvt_cv_uint32_t+set}" = set; then
9443 echo $ECHO_N "(cached) $ECHO_C" >&6
9445 cat >conftest.$ac_ext <<_ACEOF
9448 cat confdefs.h >>conftest.$ac_ext
9449 cat >>conftest.$ac_ext <<_ACEOF
9450 /* end confdefs.h. */
9460 rm -f conftest.$ac_objext
9461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9462 (eval $ac_compile) 2>conftest.er1
9464 grep -v '^ *+' conftest.er1 >conftest.err
9466 cat conftest.err >&5
9467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468 (exit $ac_status); } &&
9469 { ac_try='test -z "$ac_cxx_werror_flag"
9470 || test ! -s conftest.err'
9471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); }; } &&
9476 { ac_try='test -s conftest.$ac_objext'
9477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481 (exit $ac_status); }; }; then
9482 rxvt_cv_uint32_t=yes
9484 echo "$as_me: failed program was:" >&5
9485 sed 's/^/| /' conftest.$ac_ext >&5
9487 if test "$ac_cv_sizeof_char" -ge 4; then
9488 rxvt_cv_uint32_t="unsigned char"
9490 if test "$ac_cv_sizeof_short" -ge 4; then
9491 rxvt_cv_uint32_t="unsigned short"
9493 if test "$ac_cv_sizeof_int" -ge 4; then
9494 rxvt_cv_uint32_t="unsigned int"
9496 if test "$ac_cv_sizeof_long" -ge 4; then
9497 rxvt_cv_uint32_t="unsigned long"
9499 if test "$ac_cv_sizeof_long_long" -ge 4; then
9500 rxvt_cv_uint32_t="unsigned long long"
9502 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default
9509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9511 echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5
9512 echo "${ECHO_T}$rxvt_cv_uint32_t" >&6
9513 if test x"$rxvt_cv_uint32_t" != xyes; then
9514 rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;"
9516 if test x"unsigned" = x; then
9517 rxvt_uint32_typedef="/* typedef int uint32_t; */"
9519 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
9523 if test "$ac_cv_sizeof_int_p" -eq 8; then
9524 rxvt_intp_define="#define intp_t int64_t"
9525 rxvt_u_intp_define="#define u_intp_t u_int64_t"
9527 if test "$ac_cv_sizeof_int_p" -eq 4; then
9528 rxvt_intp_define="#define intp_t int32_t"
9529 rxvt_u_intp_define="#define u_intp_t u_int32_t"
9531 if test "$ac_cv_sizeof_int_p" -eq 2; then
9532 rxvt_intp_define="#define intp_t int16_t"
9533 rxvt_u_intp_define="#define u_intp_t u_int16_t"
9535 rxvt_intp_define="#error set intp_t"
9536 rxvt_u_intp_define="#error set u_intp_t"
9543 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
9544 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
9545 if test "${ac_cv_type_signal+set}" = set; then
9546 echo $ECHO_N "(cached) $ECHO_C" >&6
9548 cat >conftest.$ac_ext <<_ACEOF
9551 cat confdefs.h >>conftest.$ac_ext
9552 cat >>conftest.$ac_ext <<_ACEOF
9553 /* end confdefs.h. */
9554 #include <sys/types.h>
9560 extern "C" void (*signal (int, void (*)(int)))(int);
9562 void (*signal ()) ();
9573 rm -f conftest.$ac_objext
9574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9575 (eval $ac_compile) 2>conftest.er1
9577 grep -v '^ *+' conftest.er1 >conftest.err
9579 cat conftest.err >&5
9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); } &&
9582 { ac_try='test -z "$ac_cxx_werror_flag"
9583 || test ! -s conftest.err'
9584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588 (exit $ac_status); }; } &&
9589 { ac_try='test -s conftest.$ac_objext'
9590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594 (exit $ac_status); }; }; then
9595 ac_cv_type_signal=void
9597 echo "$as_me: failed program was:" >&5
9598 sed 's/^/| /' conftest.$ac_ext >&5
9600 ac_cv_type_signal=int
9602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9604 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9605 echo "${ECHO_T}$ac_cv_type_signal" >&6
9607 cat >>confdefs.h <<_ACEOF
9608 #define RETSIGTYPE $ac_cv_type_signal
9622 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9623 echo "$as_me:$LINENO: checking for $ac_func" >&5
9624 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9625 if eval "test \"\${$as_ac_var+set}\" = set"; then
9626 echo $ECHO_N "(cached) $ECHO_C" >&6
9628 cat >conftest.$ac_ext <<_ACEOF
9631 cat confdefs.h >>conftest.$ac_ext
9632 cat >>conftest.$ac_ext <<_ACEOF
9633 /* end confdefs.h. */
9634 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9635 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9636 #define $ac_func innocuous_$ac_func
9638 /* System header to define __stub macros and hopefully few prototypes,
9639 which can conflict with char $ac_func (); below.
9640 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9641 <limits.h> exists even on freestanding compilers. */
9644 # include <limits.h>
9646 # include <assert.h>
9651 /* Override any gcc2 internal prototype to avoid an error. */
9656 /* We use char because int might match the return type of a gcc2
9657 builtin and then its argument prototype would still apply. */
9659 /* The GNU C library defines this for functions which it implements
9660 to always fail with ENOSYS. Some functions are actually named
9661 something starting with __ and the normal name is an alias. */
9662 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9665 char (*f) () = $ac_func;
9674 return f != $ac_func;
9679 rm -f conftest.$ac_objext conftest$ac_exeext
9680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9681 (eval $ac_link) 2>conftest.er1
9683 grep -v '^ *+' conftest.er1 >conftest.err
9685 cat conftest.err >&5
9686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687 (exit $ac_status); } &&
9688 { ac_try='test -z "$ac_cxx_werror_flag"
9689 || test ! -s conftest.err'
9690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); }; } &&
9695 { ac_try='test -s conftest$ac_exeext'
9696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700 (exit $ac_status); }; }; then
9701 eval "$as_ac_var=yes"
9703 echo "$as_me: failed program was:" >&5
9704 sed 's/^/| /' conftest.$ac_ext >&5
9706 eval "$as_ac_var=no"
9708 rm -f conftest.err conftest.$ac_objext \
9709 conftest$ac_exeext conftest.$ac_ext
9711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9712 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9713 if test `eval echo '${'$as_ac_var'}'` = yes; then
9714 cat >>confdefs.h <<_ACEOF
9715 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9727 # Check whether --enable-utmp or --disable-utmp was given.
9728 if test "${enable_utmp+set}" = set; then
9729 enableval="$enable_utmp"
9730 if test x$enableval = xyes -o x$enableval = xno; then
9731 support_utmp=$enableval
9735 # Check whether --enable-wtmp or --disable-wtmp was given.
9736 if test "${enable_wtmp+set}" = set; then
9737 enableval="$enable_wtmp"
9738 if test x$enableval = xyes -o x$enableval = xno; then
9739 support_wtmp=$enableval
9743 # Check whether --enable-lastlog or --disable-lastlog was given.
9744 if test "${enable_lastlog+set}" = set; then
9745 enableval="$enable_lastlog"
9746 if test x$enableval = xyes -o x$enableval = xno; then
9747 support_lastlog=$enableval
9751 if test x$support_utmp = xyes; then
9753 cat >>confdefs.h <<\_ACEOF
9754 #define UTMP_SUPPORT 1
9758 if test x$support_wtmp = xyes; then
9760 cat >>confdefs.h <<\_ACEOF
9761 #define WTMP_SUPPORT 1
9765 if test x$support_lastlog = xyes; then
9767 cat >>confdefs.h <<\_ACEOF
9768 #define LASTLOG_SUPPORT 1
9782 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9783 echo "$as_me:$LINENO: checking for $ac_func" >&5
9784 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9785 if eval "test \"\${$as_ac_var+set}\" = set"; then
9786 echo $ECHO_N "(cached) $ECHO_C" >&6
9788 cat >conftest.$ac_ext <<_ACEOF
9791 cat confdefs.h >>conftest.$ac_ext
9792 cat >>conftest.$ac_ext <<_ACEOF
9793 /* end confdefs.h. */
9794 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9796 #define $ac_func innocuous_$ac_func
9798 /* System header to define __stub macros and hopefully few prototypes,
9799 which can conflict with char $ac_func (); below.
9800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9801 <limits.h> exists even on freestanding compilers. */
9804 # include <limits.h>
9806 # include <assert.h>
9811 /* Override any gcc2 internal prototype to avoid an error. */
9816 /* We use char because int might match the return type of a gcc2
9817 builtin and then its argument prototype would still apply. */
9819 /* The GNU C library defines this for functions which it implements
9820 to always fail with ENOSYS. Some functions are actually named
9821 something starting with __ and the normal name is an alias. */
9822 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9825 char (*f) () = $ac_func;
9834 return f != $ac_func;
9839 rm -f conftest.$ac_objext conftest$ac_exeext
9840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9841 (eval $ac_link) 2>conftest.er1
9843 grep -v '^ *+' conftest.er1 >conftest.err
9845 cat conftest.err >&5
9846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847 (exit $ac_status); } &&
9848 { ac_try='test -z "$ac_cxx_werror_flag"
9849 || test ! -s conftest.err'
9850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); }; } &&
9855 { ac_try='test -s conftest$ac_exeext'
9856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); }; }; then
9861 eval "$as_ac_var=yes"
9863 echo "$as_me: failed program was:" >&5
9864 sed 's/^/| /' conftest.$ac_ext >&5
9866 eval "$as_ac_var=no"
9868 rm -f conftest.err conftest.$ac_objext \
9869 conftest$ac_exeext conftest.$ac_ext
9871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9872 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9873 if test `eval echo '${'$as_ac_var'}'` = yes; then
9874 cat >>confdefs.h <<_ACEOF
9875 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9891 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9892 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9893 echo "$as_me:$LINENO: checking for $ac_header" >&5
9894 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9895 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9896 echo $ECHO_N "(cached) $ECHO_C" >&6
9898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9899 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9901 # Is the header compilable?
9902 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9903 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9904 cat >conftest.$ac_ext <<_ACEOF
9907 cat confdefs.h >>conftest.$ac_ext
9908 cat >>conftest.$ac_ext <<_ACEOF
9909 /* end confdefs.h. */
9910 $ac_includes_default
9911 #include <$ac_header>
9913 rm -f conftest.$ac_objext
9914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9915 (eval $ac_compile) 2>conftest.er1
9917 grep -v '^ *+' conftest.er1 >conftest.err
9919 cat conftest.err >&5
9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921 (exit $ac_status); } &&
9922 { ac_try='test -z "$ac_cxx_werror_flag"
9923 || test ! -s conftest.err'
9924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928 (exit $ac_status); }; } &&
9929 { ac_try='test -s conftest.$ac_objext'
9930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); }; }; then
9935 ac_header_compiler=yes
9937 echo "$as_me: failed program was:" >&5
9938 sed 's/^/| /' conftest.$ac_ext >&5
9940 ac_header_compiler=no
9942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9943 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9944 echo "${ECHO_T}$ac_header_compiler" >&6
9946 # Is the header present?
9947 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9948 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9949 cat >conftest.$ac_ext <<_ACEOF
9952 cat confdefs.h >>conftest.$ac_ext
9953 cat >>conftest.$ac_ext <<_ACEOF
9954 /* end confdefs.h. */
9955 #include <$ac_header>
9957 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9958 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9960 grep -v '^ *+' conftest.er1 >conftest.err
9962 cat conftest.err >&5
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); } >/dev/null; then
9965 if test -s conftest.err; then
9966 ac_cpp_err=$ac_cxx_preproc_warn_flag
9967 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
9974 if test -z "$ac_cpp_err"; then
9975 ac_header_preproc=yes
9977 echo "$as_me: failed program was:" >&5
9978 sed 's/^/| /' conftest.$ac_ext >&5
9980 ac_header_preproc=no
9982 rm -f conftest.err conftest.$ac_ext
9983 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9984 echo "${ECHO_T}$ac_header_preproc" >&6
9986 # So? What about this header?
9987 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9989 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9990 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9991 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9992 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9993 ac_header_preproc=yes
9996 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9997 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9998 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9999 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10000 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10001 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10002 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10003 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10005 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10006 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10007 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10010 ## ------------------------------------------ ##
10011 ## Report this to the AC_PACKAGE_NAME lists. ##
10012 ## ------------------------------------------ ##
10015 sed "s/^/$as_me: WARNING: /" >&2
10018 echo "$as_me:$LINENO: checking for $ac_header" >&5
10019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10020 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10021 echo $ECHO_N "(cached) $ECHO_C" >&6
10023 eval "$as_ac_Header=\$ac_header_preproc"
10025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10026 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10029 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10030 cat >>confdefs.h <<_ACEOF
10031 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10040 if test "${ac_cv_header_utmp_h+set}" = set; then
10041 echo "$as_me:$LINENO: checking for utmp.h" >&5
10042 echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
10043 if test "${ac_cv_header_utmp_h+set}" = set; then
10044 echo $ECHO_N "(cached) $ECHO_C" >&6
10046 echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
10047 echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
10049 # Is the header compilable?
10050 echo "$as_me:$LINENO: checking utmp.h usability" >&5
10051 echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6
10052 cat >conftest.$ac_ext <<_ACEOF
10055 cat confdefs.h >>conftest.$ac_ext
10056 cat >>conftest.$ac_ext <<_ACEOF
10057 /* end confdefs.h. */
10058 $ac_includes_default
10061 rm -f conftest.$ac_objext
10062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10063 (eval $ac_compile) 2>conftest.er1
10065 grep -v '^ *+' conftest.er1 >conftest.err
10067 cat conftest.err >&5
10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069 (exit $ac_status); } &&
10070 { ac_try='test -z "$ac_cxx_werror_flag"
10071 || test ! -s conftest.err'
10072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10073 (eval $ac_try) 2>&5
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); }; } &&
10077 { ac_try='test -s conftest.$ac_objext'
10078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10079 (eval $ac_try) 2>&5
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); }; }; then
10083 ac_header_compiler=yes
10085 echo "$as_me: failed program was:" >&5
10086 sed 's/^/| /' conftest.$ac_ext >&5
10088 ac_header_compiler=no
10090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10091 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10092 echo "${ECHO_T}$ac_header_compiler" >&6
10094 # Is the header present?
10095 echo "$as_me:$LINENO: checking utmp.h presence" >&5
10096 echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6
10097 cat >conftest.$ac_ext <<_ACEOF
10100 cat confdefs.h >>conftest.$ac_ext
10101 cat >>conftest.$ac_ext <<_ACEOF
10102 /* end confdefs.h. */
10105 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10106 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10108 grep -v '^ *+' conftest.er1 >conftest.err
10110 cat conftest.err >&5
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); } >/dev/null; then
10113 if test -s conftest.err; then
10114 ac_cpp_err=$ac_cxx_preproc_warn_flag
10115 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10122 if test -z "$ac_cpp_err"; then
10123 ac_header_preproc=yes
10125 echo "$as_me: failed program was:" >&5
10126 sed 's/^/| /' conftest.$ac_ext >&5
10128 ac_header_preproc=no
10130 rm -f conftest.err conftest.$ac_ext
10131 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10132 echo "${ECHO_T}$ac_header_preproc" >&6
10134 # So? What about this header?
10135 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10137 { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
10138 echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10139 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5
10140 echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;}
10141 ac_header_preproc=yes
10144 { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5
10145 echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;}
10146 { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5
10147 echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;}
10148 { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5
10149 echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;}
10150 { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5
10151 echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
10152 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5
10153 echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;}
10154 { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5
10155 echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;}
10158 ## ------------------------------------------ ##
10159 ## Report this to the AC_PACKAGE_NAME lists. ##
10160 ## ------------------------------------------ ##
10163 sed "s/^/$as_me: WARNING: /" >&2
10166 echo "$as_me:$LINENO: checking for utmp.h" >&5
10167 echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
10168 if test "${ac_cv_header_utmp_h+set}" = set; then
10169 echo $ECHO_N "(cached) $ECHO_C" >&6
10171 ac_cv_header_utmp_h=$ac_header_preproc
10173 echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
10174 echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
10177 if test $ac_cv_header_utmp_h = yes; then
10178 echo "$as_me:$LINENO: checking for struct utmp" >&5
10179 echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6
10180 if test "${struct_utmp+set}" = set; then
10181 echo $ECHO_N "(cached) $ECHO_C" >&6
10183 cat >conftest.$ac_ext <<_ACEOF
10186 cat confdefs.h >>conftest.$ac_ext
10187 cat >>conftest.$ac_ext <<_ACEOF
10188 /* end confdefs.h. */
10189 #include <sys/types.h>
10199 rm -f conftest.$ac_objext
10200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10201 (eval $ac_compile) 2>conftest.er1
10203 grep -v '^ *+' conftest.er1 >conftest.err
10205 cat conftest.err >&5
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); } &&
10208 { ac_try='test -z "$ac_cxx_werror_flag"
10209 || test ! -s conftest.err'
10210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10211 (eval $ac_try) 2>&5
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); }; } &&
10215 { ac_try='test -s conftest.$ac_objext'
10216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10217 (eval $ac_try) 2>&5
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); }; }; then
10223 echo "$as_me: failed program was:" >&5
10224 sed 's/^/| /' conftest.$ac_ext >&5
10228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10230 echo "$as_me:$LINENO: result: $struct_utmp" >&5
10231 echo "${ECHO_T}$struct_utmp" >&6
10232 if test x$struct_utmp = xyes; then
10234 cat >>confdefs.h <<\_ACEOF
10235 #define HAVE_STRUCT_UTMP 1
10241 echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5
10242 echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6
10243 if test "${struct_utmp_host+set}" = set; then
10244 echo $ECHO_N "(cached) $ECHO_C" >&6
10246 cat >conftest.$ac_ext <<_ACEOF
10249 cat confdefs.h >>conftest.$ac_ext
10250 cat >>conftest.$ac_ext <<_ACEOF
10251 /* end confdefs.h. */
10252 #include <sys/types.h>
10257 struct utmp ut; ut.ut_host;
10262 rm -f conftest.$ac_objext
10263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10264 (eval $ac_compile) 2>conftest.er1
10266 grep -v '^ *+' conftest.er1 >conftest.err
10268 cat conftest.err >&5
10269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270 (exit $ac_status); } &&
10271 { ac_try='test -z "$ac_cxx_werror_flag"
10272 || test ! -s conftest.err'
10273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10274 (eval $ac_try) 2>&5
10276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277 (exit $ac_status); }; } &&
10278 { ac_try='test -s conftest.$ac_objext'
10279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10280 (eval $ac_try) 2>&5
10282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283 (exit $ac_status); }; }; then
10284 struct_utmp_host=yes
10286 echo "$as_me: failed program was:" >&5
10287 sed 's/^/| /' conftest.$ac_ext >&5
10289 struct_utmp_host=no
10291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10293 echo "$as_me:$LINENO: result: $struct_utmp_host" >&5
10294 echo "${ECHO_T}$struct_utmp_host" >&6
10295 if test x$struct_utmp_host = xyes; then
10297 cat >>confdefs.h <<\_ACEOF
10298 #define HAVE_UTMP_HOST 1
10303 echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5
10304 echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6
10305 if test "${struct_utmp_pid+set}" = set; then
10306 echo $ECHO_N "(cached) $ECHO_C" >&6
10308 cat >conftest.$ac_ext <<_ACEOF
10311 cat confdefs.h >>conftest.$ac_ext
10312 cat >>conftest.$ac_ext <<_ACEOF
10313 /* end confdefs.h. */
10314 #include <sys/types.h>
10319 struct utmp ut; ut.ut_pid;
10324 rm -f conftest.$ac_objext
10325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10326 (eval $ac_compile) 2>conftest.er1
10328 grep -v '^ *+' conftest.er1 >conftest.err
10330 cat conftest.err >&5
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); } &&
10333 { ac_try='test -z "$ac_cxx_werror_flag"
10334 || test ! -s conftest.err'
10335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10336 (eval $ac_try) 2>&5
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); }; } &&
10340 { ac_try='test -s conftest.$ac_objext'
10341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10342 (eval $ac_try) 2>&5
10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 (exit $ac_status); }; }; then
10346 struct_utmp_pid=yes
10348 echo "$as_me: failed program was:" >&5
10349 sed 's/^/| /' conftest.$ac_ext >&5
10353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10355 echo "$as_me:$LINENO: result: $struct_utmp_pid" >&5
10356 echo "${ECHO_T}$struct_utmp_pid" >&6
10357 if test x$struct_utmp_pid = xyes; then
10359 cat >>confdefs.h <<\_ACEOF
10360 #define HAVE_UTMP_PID 1
10369 if test "${ac_cv_header_utmpx_h+set}" = set; then
10370 echo "$as_me:$LINENO: checking for utmpx.h" >&5
10371 echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
10372 if test "${ac_cv_header_utmpx_h+set}" = set; then
10373 echo $ECHO_N "(cached) $ECHO_C" >&6
10375 echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
10376 echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
10378 # Is the header compilable?
10379 echo "$as_me:$LINENO: checking utmpx.h usability" >&5
10380 echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6
10381 cat >conftest.$ac_ext <<_ACEOF
10384 cat confdefs.h >>conftest.$ac_ext
10385 cat >>conftest.$ac_ext <<_ACEOF
10386 /* end confdefs.h. */
10387 $ac_includes_default
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 ac_header_compiler=yes
10414 echo "$as_me: failed program was:" >&5
10415 sed 's/^/| /' conftest.$ac_ext >&5
10417 ac_header_compiler=no
10419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10420 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10421 echo "${ECHO_T}$ac_header_compiler" >&6
10423 # Is the header present?
10424 echo "$as_me:$LINENO: checking utmpx.h presence" >&5
10425 echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6
10426 cat >conftest.$ac_ext <<_ACEOF
10429 cat confdefs.h >>conftest.$ac_ext
10430 cat >>conftest.$ac_ext <<_ACEOF
10431 /* end confdefs.h. */
10434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10435 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10437 grep -v '^ *+' conftest.er1 >conftest.err
10439 cat conftest.err >&5
10440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441 (exit $ac_status); } >/dev/null; then
10442 if test -s conftest.err; then
10443 ac_cpp_err=$ac_cxx_preproc_warn_flag
10444 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10451 if test -z "$ac_cpp_err"; then
10452 ac_header_preproc=yes
10454 echo "$as_me: failed program was:" >&5
10455 sed 's/^/| /' conftest.$ac_ext >&5
10457 ac_header_preproc=no
10459 rm -f conftest.err conftest.$ac_ext
10460 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10461 echo "${ECHO_T}$ac_header_preproc" >&6
10463 # So? What about this header?
10464 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10466 { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5
10467 echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10468 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5
10469 echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;}
10470 ac_header_preproc=yes
10473 { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5
10474 echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;}
10475 { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5
10476 echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;}
10477 { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5
10478 echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;}
10479 { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5
10480 echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;}
10481 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5
10482 echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;}
10483 { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5
10484 echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;}
10487 ## ------------------------------------------ ##
10488 ## Report this to the AC_PACKAGE_NAME lists. ##
10489 ## ------------------------------------------ ##
10492 sed "s/^/$as_me: WARNING: /" >&2
10495 echo "$as_me:$LINENO: checking for utmpx.h" >&5
10496 echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
10497 if test "${ac_cv_header_utmpx_h+set}" = set; then
10498 echo $ECHO_N "(cached) $ECHO_C" >&6
10500 ac_cv_header_utmpx_h=$ac_header_preproc
10502 echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
10503 echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
10506 if test $ac_cv_header_utmpx_h = yes; then
10507 echo "$as_me:$LINENO: checking for struct utmpx" >&5
10508 echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6
10509 if test "${struct_utmpx+set}" = set; then
10510 echo $ECHO_N "(cached) $ECHO_C" >&6
10512 cat >conftest.$ac_ext <<_ACEOF
10515 cat confdefs.h >>conftest.$ac_ext
10516 cat >>conftest.$ac_ext <<_ACEOF
10517 /* end confdefs.h. */
10518 #include <sys/types.h>
10528 rm -f conftest.$ac_objext
10529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10530 (eval $ac_compile) 2>conftest.er1
10532 grep -v '^ *+' conftest.er1 >conftest.err
10534 cat conftest.err >&5
10535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536 (exit $ac_status); } &&
10537 { ac_try='test -z "$ac_cxx_werror_flag"
10538 || test ! -s conftest.err'
10539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10540 (eval $ac_try) 2>&5
10542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543 (exit $ac_status); }; } &&
10544 { ac_try='test -s conftest.$ac_objext'
10545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10546 (eval $ac_try) 2>&5
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); }; }; then
10552 echo "$as_me: failed program was:" >&5
10553 sed 's/^/| /' conftest.$ac_ext >&5
10557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10559 echo "$as_me:$LINENO: result: $struct_utmpx" >&5
10560 echo "${ECHO_T}$struct_utmpx" >&6
10561 if test x$struct_utmpx = xyes; then
10563 cat >>confdefs.h <<\_ACEOF
10564 #define HAVE_STRUCT_UTMPX 1
10570 echo "$as_me:$LINENO: checking for host in utmpx struct" >&5
10571 echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6
10572 if test "${struct_utmpx_host+set}" = set; then
10573 echo $ECHO_N "(cached) $ECHO_C" >&6
10575 cat >conftest.$ac_ext <<_ACEOF
10578 cat confdefs.h >>conftest.$ac_ext
10579 cat >>conftest.$ac_ext <<_ACEOF
10580 /* end confdefs.h. */
10581 #include <sys/types.h>
10586 struct utmpx utx; utx.ut_host;
10591 rm -f conftest.$ac_objext
10592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10593 (eval $ac_compile) 2>conftest.er1
10595 grep -v '^ *+' conftest.er1 >conftest.err
10597 cat conftest.err >&5
10598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599 (exit $ac_status); } &&
10600 { ac_try='test -z "$ac_cxx_werror_flag"
10601 || test ! -s conftest.err'
10602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10603 (eval $ac_try) 2>&5
10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606 (exit $ac_status); }; } &&
10607 { ac_try='test -s conftest.$ac_objext'
10608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10609 (eval $ac_try) 2>&5
10611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612 (exit $ac_status); }; }; then
10613 struct_utmpx_host=yes
10615 echo "$as_me: failed program was:" >&5
10616 sed 's/^/| /' conftest.$ac_ext >&5
10618 struct_utmpx_host=no
10620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10622 echo "$as_me:$LINENO: result: $struct_utmpx_host" >&5
10623 echo "${ECHO_T}$struct_utmpx_host" >&6
10624 if test x$struct_utmpx_host = xyes; then
10626 cat >>confdefs.h <<\_ACEOF
10627 #define HAVE_UTMPX_HOST 1
10632 echo "$as_me:$LINENO: checking for session in utmpx struct" >&5
10633 echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6
10634 if test "${struct_utmpx_session+set}" = set; then
10635 echo $ECHO_N "(cached) $ECHO_C" >&6
10637 cat >conftest.$ac_ext <<_ACEOF
10640 cat confdefs.h >>conftest.$ac_ext
10641 cat >>conftest.$ac_ext <<_ACEOF
10642 /* end confdefs.h. */
10643 #include <sys/types.h>
10648 struct utmpx utx; utx.ut_session;
10653 rm -f conftest.$ac_objext
10654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10655 (eval $ac_compile) 2>conftest.er1
10657 grep -v '^ *+' conftest.er1 >conftest.err
10659 cat conftest.err >&5
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); } &&
10662 { ac_try='test -z "$ac_cxx_werror_flag"
10663 || test ! -s conftest.err'
10664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10665 (eval $ac_try) 2>&5
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); }; } &&
10669 { ac_try='test -s conftest.$ac_objext'
10670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10671 (eval $ac_try) 2>&5
10673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674 (exit $ac_status); }; }; then
10675 struct_utmpx_session=yes
10677 echo "$as_me: failed program was:" >&5
10678 sed 's/^/| /' conftest.$ac_ext >&5
10680 struct_utmpx_session=no
10682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10684 echo "$as_me:$LINENO: result: $struct_utmpx_session" >&5
10685 echo "${ECHO_T}$struct_utmpx_session" >&6
10686 if test x$struct_utmpx_session = xyes; then
10688 cat >>confdefs.h <<\_ACEOF
10689 #define HAVE_UTMPX_SESSION 1
10697 echo "$as_me:$LINENO: checking for struct lastlog" >&5
10698 echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6
10699 if test "${struct_lastlog+set}" = set; then
10700 echo $ECHO_N "(cached) $ECHO_C" >&6
10702 cat >conftest.$ac_ext <<_ACEOF
10705 cat confdefs.h >>conftest.$ac_ext
10706 cat >>conftest.$ac_ext <<_ACEOF
10707 /* end confdefs.h. */
10708 #include <sys/types.h>
10710 #ifdef HAVE_LASTLOG_H
10711 #include <lastlog.h>
10722 rm -f conftest.$ac_objext
10723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10724 (eval $ac_compile) 2>conftest.er1
10726 grep -v '^ *+' conftest.er1 >conftest.err
10728 cat conftest.err >&5
10729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730 (exit $ac_status); } &&
10731 { ac_try='test -z "$ac_cxx_werror_flag"
10732 || test ! -s conftest.err'
10733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10734 (eval $ac_try) 2>&5
10736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737 (exit $ac_status); }; } &&
10738 { ac_try='test -s conftest.$ac_objext'
10739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10740 (eval $ac_try) 2>&5
10742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743 (exit $ac_status); }; }; then
10746 echo "$as_me: failed program was:" >&5
10747 sed 's/^/| /' conftest.$ac_ext >&5
10751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10753 echo "$as_me:$LINENO: result: $struct_lastlog" >&5
10754 echo "${ECHO_T}$struct_lastlog" >&6
10755 if test x$struct_lastlog = xyes; then
10757 cat >>confdefs.h <<\_ACEOF
10758 #define HAVE_STRUCT_LASTLOG 1
10763 echo "$as_me:$LINENO: checking for struct lastlogx" >&5
10764 echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6
10765 if test "${struct_lastlogx+set}" = set; then
10766 echo $ECHO_N "(cached) $ECHO_C" >&6
10768 cat >conftest.$ac_ext <<_ACEOF
10771 cat confdefs.h >>conftest.$ac_ext
10772 cat >>conftest.$ac_ext <<_ACEOF
10773 /* end confdefs.h. */
10774 #include <sys/types.h>
10776 #ifdef HAVE_LASTLOG_H
10777 #include <lastlog.h>
10783 struct lastlogx ll;
10788 rm -f conftest.$ac_objext
10789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10790 (eval $ac_compile) 2>conftest.er1
10792 grep -v '^ *+' conftest.er1 >conftest.err
10794 cat conftest.err >&5
10795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796 (exit $ac_status); } &&
10797 { ac_try='test -z "$ac_cxx_werror_flag"
10798 || test ! -s conftest.err'
10799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10800 (eval $ac_try) 2>&5
10802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803 (exit $ac_status); }; } &&
10804 { ac_try='test -s conftest.$ac_objext'
10805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10806 (eval $ac_try) 2>&5
10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809 (exit $ac_status); }; }; then
10810 struct_lastlogx=yes
10812 echo "$as_me: failed program was:" >&5
10813 sed 's/^/| /' conftest.$ac_ext >&5
10817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10819 echo "$as_me:$LINENO: result: $struct_lastlogx" >&5
10820 echo "${ECHO_T}$struct_lastlogx" >&6
10821 if test x$struct_lastlogx = xyes; then
10823 cat >>confdefs.h <<\_ACEOF
10824 #define HAVE_STRUCT_LASTLOGX 1
10830 echo "$as_me:$LINENO: checking where utmp is located" >&5
10831 echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6
10832 if test "${path_utmp+set}" = set; then
10833 echo $ECHO_N "(cached) $ECHO_C" >&6
10835 if test "$cross_compiling" = yes; then
10836 { echo "$as_me:$LINENO: WARNING: Define UTMP_FILE in config.h manually" >&5
10837 echo "$as_me: WARNING: Define UTMP_FILE in config.h manually" >&2;}
10839 cat >conftest.$ac_ext <<_ACEOF
10842 cat confdefs.h >>conftest.$ac_ext
10843 cat >>conftest.$ac_ext <<_ACEOF
10844 /* end confdefs.h. */
10846 #include <stdlib.h>
10847 #include <sys/types.h>
10852 char **u, *utmplist[] = {
10853 "/var/run/utmp", "/var/adm/utmp", "/etc/utmp", "/usr/etc/utmp", "/usr/adm/utmp", NULL };
10854 FILE *a, *f=fopen("conftestval", "w");
10857 fprintf(f, "%s\n", UTMP_FILE);
10861 fprintf(f, "%s\n", _PATH_UTMP);
10864 for (u = utmplist; *u; u++) {
10865 if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
10866 fprintf(f, "%s\n", *u);
10873 rm -f conftest$ac_exeext
10874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10875 (eval $ac_link) 2>&5
10877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10880 (eval $ac_try) 2>&5
10882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883 (exit $ac_status); }; }; then
10884 path_utmp=`cat conftestval`
10886 echo "$as_me: program exited with status $ac_status" >&5
10887 echo "$as_me: failed program was:" >&5
10888 sed 's/^/| /' conftest.$ac_ext >&5
10890 ( exit $ac_status )
10893 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10896 echo "$as_me:$LINENO: result: $path_utmp" >&5
10897 echo "${ECHO_T}$path_utmp" >&6
10898 if test x$path_utmp != x; then
10900 cat >>confdefs.h <<_ACEOF
10901 #define UTMP_FILE "$path_utmp"
10907 echo "$as_me:$LINENO: checking where utmpx is located" >&5
10908 echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6
10909 if test "${path_utmpx+set}" = set; then
10910 echo $ECHO_N "(cached) $ECHO_C" >&6
10912 if test "$cross_compiling" = yes; then
10913 { echo "$as_me:$LINENO: WARNING: Define UTMPX_FILE in config.h manually" >&5
10914 echo "$as_me: WARNING: Define UTMPX_FILE in config.h manually" >&2;}
10916 cat >conftest.$ac_ext <<_ACEOF
10919 cat confdefs.h >>conftest.$ac_ext
10920 cat >>conftest.$ac_ext <<_ACEOF
10921 /* end confdefs.h. */
10923 #include <stdlib.h>
10924 #include <sys/types.h>
10927 #include <sys/stat.h>
10928 #ifdef HAVE_STRING_H
10929 #include <string.h>
10933 char **u, *p, *utmplist[] = {
10940 "/var/adm/utmpx", "/etc/utmpx", NULL };
10941 FILE *a, *f=fopen("conftestval", "w");
10942 struct stat statu, statux;
10944 for (u = utmplist; *u; u++) {
10945 if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
10946 if (stat(*u, &statux) < 0)
10949 p[strlen(p) - 1] = '\0';
10950 if (stat(p, &statu) >= 0
10951 && (statu.st_mtime - statux.st_mtime > 86400))
10953 fprintf(f, "%s\n", *u);
10960 rm -f conftest$ac_exeext
10961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10962 (eval $ac_link) 2>&5
10964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10967 (eval $ac_try) 2>&5
10969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970 (exit $ac_status); }; }; then
10971 path_utmpx=`cat conftestval`
10973 echo "$as_me: program exited with status $ac_status" >&5
10974 echo "$as_me: failed program was:" >&5
10975 sed 's/^/| /' conftest.$ac_ext >&5
10977 ( exit $ac_status )
10980 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10983 echo "$as_me:$LINENO: result: $path_utmpx" >&5
10984 echo "${ECHO_T}$path_utmpx" >&6
10985 if test x$path_utmpx != x; then
10987 cat >>confdefs.h <<_ACEOF
10988 #define UTMPX_FILE "$path_utmpx"
10994 echo "$as_me:$LINENO: checking where wtmp is located" >&5
10995 echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6
10996 if test "${path_wtmp+set}" = set; then
10997 echo $ECHO_N "(cached) $ECHO_C" >&6
10999 if test "$cross_compiling" = yes; then
11000 { echo "$as_me:$LINENO: WARNING: Define WTMP_FILE in config.h manually" >&5
11001 echo "$as_me: WARNING: Define WTMP_FILE in config.h manually" >&2;}
11003 cat >conftest.$ac_ext <<_ACEOF
11006 cat confdefs.h >>conftest.$ac_ext
11007 cat >>conftest.$ac_ext <<_ACEOF
11008 /* end confdefs.h. */
11010 #include <stdlib.h>
11011 #include <sys/types.h>
11018 char **w, *wtmplist[] = {
11019 "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL };
11020 FILE *a, *f=fopen("conftestval", "w");
11023 fprintf(f, "%s\n", WTMP_FILE);
11027 fprintf(f, "%s\n", _PATH_WTMP);
11030 for (w = wtmplist; *w; w++) {
11031 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11032 fprintf(f, "%s\n", *w);
11039 rm -f conftest$ac_exeext
11040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11041 (eval $ac_link) 2>&5
11043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11046 (eval $ac_try) 2>&5
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); }; }; then
11050 path_wtmp=`cat conftestval`
11052 echo "$as_me: program exited with status $ac_status" >&5
11053 echo "$as_me: failed program was:" >&5
11054 sed 's/^/| /' conftest.$ac_ext >&5
11056 ( exit $ac_status )
11059 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11062 echo "$as_me:$LINENO: result: $path_wtmp" >&5
11063 echo "${ECHO_T}$path_wtmp" >&6
11064 if test x$path_wtmp != x; then
11066 cat >>confdefs.h <<_ACEOF
11067 #define WTMP_FILE "$path_wtmp"
11072 echo "$as_me:$LINENO: checking where wtmpx is located" >&5
11073 echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6
11074 if test "${path_wtmpx+set}" = set; then
11075 echo $ECHO_N "(cached) $ECHO_C" >&6
11077 if test "$cross_compiling" = yes; then
11078 { echo "$as_me:$LINENO: WARNING: Define WTMPX_FILE in config.h manually" >&5
11079 echo "$as_me: WARNING: Define WTMPX_FILE in config.h manually" >&2;}
11081 cat >conftest.$ac_ext <<_ACEOF
11084 cat confdefs.h >>conftest.$ac_ext
11085 cat >>conftest.$ac_ext <<_ACEOF
11086 /* end confdefs.h. */
11088 #include <stdlib.h>
11089 #ifdef HAVE_UTMPX_H
11095 char **w, *wtmplist[] = {
11096 "/var/log/wtmpx", "/var/adm/wtmpx", NULL };
11097 FILE *a, *f=fopen("conftestval", "w");
11100 fprintf(f, "%s\n", WTMPX_FILE);
11104 fprintf(f, "%s\n", _PATH_WTMPX);
11107 for (w = wtmplist; *w; w++) {
11108 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11109 fprintf(f, "%s\n", *w);
11116 rm -f conftest$ac_exeext
11117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11118 (eval $ac_link) 2>&5
11120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11123 (eval $ac_try) 2>&5
11125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11126 (exit $ac_status); }; }; then
11127 path_wtmpx=`cat conftestval`
11129 echo "$as_me: program exited with status $ac_status" >&5
11130 echo "$as_me: failed program was:" >&5
11131 sed 's/^/| /' conftest.$ac_ext >&5
11133 ( exit $ac_status )
11136 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11139 echo "$as_me:$LINENO: result: $path_wtmpx" >&5
11140 echo "${ECHO_T}$path_wtmpx" >&6
11141 if test x$path_wtmpx != x; then
11143 cat >>confdefs.h <<_ACEOF
11144 #define WTMPX_FILE "$path_wtmpx"
11149 echo "$as_me:$LINENO: checking where lastlog is located" >&5
11150 echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6
11151 if test "${path_lastlog+set}" = set; then
11152 echo $ECHO_N "(cached) $ECHO_C" >&6
11154 if test "$cross_compiling" = yes; then
11155 { echo "$as_me:$LINENO: WARNING: Define LASTLOG_FILE in config.h manually" >&5
11156 echo "$as_me: WARNING: Define LASTLOG_FILE in config.h manually" >&2;}
11158 cat >conftest.$ac_ext <<_ACEOF
11161 cat confdefs.h >>conftest.$ac_ext
11162 cat >>conftest.$ac_ext <<_ACEOF
11163 /* end confdefs.h. */
11165 #include <stdlib.h>
11166 #include <sys/types.h>
11167 #ifdef HAVE_UTMPX_H
11169 #elif defined(HAVE_UTMP_H)
11172 #ifdef HAVE_LASTLOG_H
11173 #include <lastlog.h>
11178 char **w, *lastloglist[] = { "/var/log/lastlog", NULL };
11179 FILE *a, *f=fopen("conftestval", "w");
11181 #ifdef LASTLOG_FILE
11182 fprintf(f, "%s\n", LASTLOG_FILE);
11185 #ifdef _PATH_LASTLOG
11186 fprintf(f, "%s\n", _PATH_LASTLOG);
11189 for (w = lastloglist; *w; w++) {
11190 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11191 fprintf(f, "%s\n", *w);
11198 rm -f conftest$ac_exeext
11199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11200 (eval $ac_link) 2>&5
11202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11205 (eval $ac_try) 2>&5
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); }; }; then
11209 path_lastlog=`cat conftestval`
11211 echo "$as_me: program exited with status $ac_status" >&5
11212 echo "$as_me: failed program was:" >&5
11213 sed 's/^/| /' conftest.$ac_ext >&5
11215 ( exit $ac_status )
11218 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11221 echo "$as_me:$LINENO: result: $path_lastlog" >&5
11222 echo "${ECHO_T}$path_lastlog" >&6
11223 if test x$path_lastlog != x; then
11225 cat >>confdefs.h <<_ACEOF
11226 #define LASTLOG_FILE "$path_lastlog"
11229 if test -d "$path_lastlog"; then
11231 cat >>confdefs.h <<\_ACEOF
11232 #define LASTLOG_IS_DIR 1
11238 echo "$as_me:$LINENO: checking where lastlogx is located" >&5
11239 echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6
11240 if test "${path_lastlogx+set}" = set; then
11241 echo $ECHO_N "(cached) $ECHO_C" >&6
11243 if test "$cross_compiling" = yes; then
11244 { echo "$as_me:$LINENO: WARNING: Define LASTLOGX_FILE in config.h manually" >&5
11245 echo "$as_me: WARNING: Define LASTLOGX_FILE in config.h manually" >&2;}
11247 cat >conftest.$ac_ext <<_ACEOF
11250 cat confdefs.h >>conftest.$ac_ext
11251 cat >>conftest.$ac_ext <<_ACEOF
11252 /* end confdefs.h. */
11254 #include <stdlib.h>
11255 #ifdef HAVE_UTMPX_H
11261 char **w, *wtmplist[] = { "/var/log/lastlogx", "/var/adm/lastlogx", NULL };
11262 FILE *a, *f=fopen("conftestval", "w");
11264 #ifdef LASTLOGX_FILE
11265 fprintf(f, "%s\n", LASTLOGX_FILE);
11268 #ifdef _PATH_LASTLOGX
11269 fprintf(f, "%s\n", _PATH_LASTLOGX);
11272 for (w = wtmplist; *w; w++) {
11273 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11274 fprintf(f, "%s\n", *w);
11281 rm -f conftest$ac_exeext
11282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11283 (eval $ac_link) 2>&5
11285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11288 (eval $ac_try) 2>&5
11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291 (exit $ac_status); }; }; then
11292 path_lastlogx=`cat conftestval`
11294 echo "$as_me: program exited with status $ac_status" >&5
11295 echo "$as_me: failed program was:" >&5
11296 sed 's/^/| /' conftest.$ac_ext >&5
11298 ( exit $ac_status )
11301 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11304 echo "$as_me:$LINENO: result: $path_lastlogx" >&5
11305 echo "${ECHO_T}$path_lastlogx" >&6
11306 if test x$path_lastlogx != x; then
11308 cat >>confdefs.h <<_ACEOF
11309 #define LASTLOGX_FILE "$path_lastlogx"
11316 echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
11317 echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6
11318 if test "${rxvt_cv_path_ttytab+set}" = set; then
11319 echo $ECHO_N "(cached) $ECHO_C" >&6
11321 for ttys_file in /etc/ttys /etc/ttytab;
11323 if test -f "$ttys_file" ; then
11324 rxvt_cv_path_ttytab=$ttys_file
11330 echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5
11331 echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6
11332 if test x$rxvt_cv_path_ttytab != x; then
11334 cat >>confdefs.h <<_ACEOF
11335 #define TTYTAB_FILENAME "$rxvt_cv_path_ttytab"
11342 ac_save_CFLAGS=$CFLAGS
11343 CFLAGS="$CFLAGS $X_CFLAGS"
11344 LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
11345 echo "$as_me:$LINENO: checking for working Xlocale" >&5
11346 echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6
11347 if test "${rxvt_cv_func_xlocale+set}" = set; then
11348 echo $ECHO_N "(cached) $ECHO_C" >&6
11350 if test "$cross_compiling" = yes; then
11353 cat >conftest.$ac_ext <<_ACEOF
11356 cat confdefs.h >>conftest.$ac_ext
11357 cat >>conftest.$ac_ext <<_ACEOF
11358 /* end confdefs.h. */
11359 #include <X11/Xlib.h>
11360 #include <stdlib.h>
11363 if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
11364 exit (XSupportsLocale() ? 0 : 1);
11368 rm -f conftest$ac_exeext
11369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11370 (eval $ac_link) 2>&5
11372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11375 (eval $ac_try) 2>&5
11377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 (exit $ac_status); }; }; then
11379 rxvt_cv_func_xlocale=yes
11381 echo "$as_me: program exited with status $ac_status" >&5
11382 echo "$as_me: failed program was:" >&5
11383 sed 's/^/| /' conftest.$ac_ext >&5
11385 ( exit $ac_status )
11386 rxvt_cv_func_xlocale=no
11388 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11391 echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5
11392 echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6
11393 if test x$support_xim = xyes; then
11394 if test x$rxvt_cv_func_xlocale = xyes; then
11396 cat >>confdefs.h <<\_ACEOF
11403 echo "$as_me:$LINENO: checking for working X setlocale" >&5
11404 echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6
11405 if test "${rxvt_cv_func_xsetlocale+set}" = set; then
11406 echo $ECHO_N "(cached) $ECHO_C" >&6
11408 cat >conftest.$ac_ext <<_ACEOF
11411 cat confdefs.h >>conftest.$ac_ext
11412 cat >>conftest.$ac_ext <<_ACEOF
11413 /* end confdefs.h. */
11415 #include <X11/Xlocale.h>
11419 setlocale(LC_CTYPE, "");
11424 rm -f conftest.$ac_objext conftest$ac_exeext
11425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11426 (eval $ac_link) 2>conftest.er1
11428 grep -v '^ *+' conftest.er1 >conftest.err
11430 cat conftest.err >&5
11431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432 (exit $ac_status); } &&
11433 { ac_try='test -z "$ac_cxx_werror_flag"
11434 || test ! -s conftest.err'
11435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11436 (eval $ac_try) 2>&5
11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439 (exit $ac_status); }; } &&
11440 { ac_try='test -s conftest$ac_exeext'
11441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11442 (eval $ac_try) 2>&5
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); }; }; then
11446 rxvt_cv_func_xsetlocale=yes
11448 echo "$as_me: failed program was:" >&5
11449 sed 's/^/| /' conftest.$ac_ext >&5
11451 rxvt_cv_func_xsetlocale=no
11453 rm -f conftest.err conftest.$ac_objext \
11454 conftest$ac_exeext conftest.$ac_ext
11456 echo "$as_me:$LINENO: result: $rxvt_cv_func_xsetlocale" >&5
11457 echo "${ECHO_T}$rxvt_cv_func_xsetlocale" >&6
11458 if test x$rxvt_cv_func_xsetlocale = xyes; then
11460 cat >>confdefs.h <<\_ACEOF
11461 #define HAVE_XSETLOCALE 1
11466 CFLAGS=$ac_save_CFLAGS
11468 echo "$as_me:$LINENO: checking for working plain setlocale" >&5
11469 echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6
11470 if test "${rxvt_cv_func_setlocale+set}" = set; then
11471 echo $ECHO_N "(cached) $ECHO_C" >&6
11473 cat >conftest.$ac_ext <<_ACEOF
11476 cat confdefs.h >>conftest.$ac_ext
11477 cat >>conftest.$ac_ext <<_ACEOF
11478 /* end confdefs.h. */
11483 setlocale(LC_CTYPE, "");
11488 rm -f conftest.$ac_objext conftest$ac_exeext
11489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11490 (eval $ac_link) 2>conftest.er1
11492 grep -v '^ *+' conftest.er1 >conftest.err
11494 cat conftest.err >&5
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); } &&
11497 { ac_try='test -z "$ac_cxx_werror_flag"
11498 || test ! -s conftest.err'
11499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500 (eval $ac_try) 2>&5
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); }; } &&
11504 { ac_try='test -s conftest$ac_exeext'
11505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11506 (eval $ac_try) 2>&5
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); }; }; then
11510 rxvt_cv_func_setlocale=yes
11512 echo "$as_me: failed program was:" >&5
11513 sed 's/^/| /' conftest.$ac_ext >&5
11515 rxvt_cv_func_setlocale=no
11517 rm -f conftest.err conftest.$ac_objext \
11518 conftest$ac_exeext conftest.$ac_ext
11520 echo "$as_me:$LINENO: result: $rxvt_cv_func_setlocale" >&5
11521 echo "${ECHO_T}$rxvt_cv_func_setlocale" >&6
11522 if test x$rxvt_cv_func_setlocale = xyes; then
11524 cat >>confdefs.h <<\_ACEOF
11525 #define HAVE_SETLOCALE 1
11530 echo "$as_me:$LINENO: checking for working nl_langinfo" >&5
11531 echo $ECHO_N "checking for working nl_langinfo... $ECHO_C" >&6
11532 if test "${rxvt_cv_func_nl_langinfo+set}" = set; then
11533 echo $ECHO_N "(cached) $ECHO_C" >&6
11535 cat >conftest.$ac_ext <<_ACEOF
11538 cat confdefs.h >>conftest.$ac_ext
11539 cat >>conftest.$ac_ext <<_ACEOF
11540 /* end confdefs.h. */
11541 #include <langinfo.h>
11545 nl_langinfo(CODESET);
11550 rm -f conftest.$ac_objext conftest$ac_exeext
11551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11552 (eval $ac_link) 2>conftest.er1
11554 grep -v '^ *+' conftest.er1 >conftest.err
11556 cat conftest.err >&5
11557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558 (exit $ac_status); } &&
11559 { ac_try='test -z "$ac_cxx_werror_flag"
11560 || test ! -s conftest.err'
11561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11562 (eval $ac_try) 2>&5
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); }; } &&
11566 { ac_try='test -s conftest$ac_exeext'
11567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11568 (eval $ac_try) 2>&5
11570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571 (exit $ac_status); }; }; then
11572 rxvt_cv_func_nl_langinfo=yes
11574 echo "$as_me: failed program was:" >&5
11575 sed 's/^/| /' conftest.$ac_ext >&5
11577 rxvt_cv_func_nl_langinfo=no
11579 rm -f conftest.err conftest.$ac_objext \
11580 conftest$ac_exeext conftest.$ac_ext
11582 echo "$as_me:$LINENO: result: $rxvt_cv_func_nl_langinfo" >&5
11583 echo "${ECHO_T}$rxvt_cv_func_nl_langinfo" >&6
11584 if test x$rxvt_cv_func_nl_langinfo = xyes; then
11586 cat >>confdefs.h <<\_ACEOF
11587 #define HAVE_NL_LANGINFO 1
11593 echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5
11594 echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6
11595 if test "${can_pass_fds+set}" = set; then
11596 echo $ECHO_N "(cached) $ECHO_C" >&6
11598 cat >conftest.$ac_ext <<_ACEOF
11601 cat confdefs.h >>conftest.$ac_ext
11602 cat >>conftest.$ac_ext <<_ACEOF
11603 /* end confdefs.h. */
11605 #include <cstddef> // broken bsds (is that redundant?) need this
11606 #include <sys/types.h>
11607 #include <sys/socket.h>
11608 #include <sys/uio.h>
11620 iov.iov_base = &data;
11623 msg.msg_iov = &iov;
11624 msg.msg_iovlen = 1;
11625 msg.msg_control = buf;
11626 msg.msg_controllen = sizeof buf;
11628 cmsghdr *cmsg = CMSG_FIRSTHDR (&msg);
11629 cmsg->cmsg_level = SOL_SOCKET;
11630 cmsg->cmsg_type = SCM_RIGHTS;
11631 cmsg->cmsg_len = 100;
11633 *(int *)CMSG_DATA (cmsg) = 5;
11635 return sendmsg (3, &msg, 0);
11642 rm -f conftest.$ac_objext conftest$ac_exeext
11643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11644 (eval $ac_link) 2>conftest.er1
11646 grep -v '^ *+' conftest.er1 >conftest.err
11648 cat conftest.err >&5
11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650 (exit $ac_status); } &&
11651 { ac_try='test -z "$ac_cxx_werror_flag"
11652 || test ! -s conftest.err'
11653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11654 (eval $ac_try) 2>&5
11656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657 (exit $ac_status); }; } &&
11658 { ac_try='test -s conftest$ac_exeext'
11659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11660 (eval $ac_try) 2>&5
11662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663 (exit $ac_status); }; }; then
11666 echo "$as_me: failed program was:" >&5
11667 sed 's/^/| /' conftest.$ac_ext >&5
11671 rm -f conftest.err conftest.$ac_objext \
11672 conftest$ac_exeext conftest.$ac_ext
11674 echo "$as_me:$LINENO: result: $can_pass_fds" >&5
11675 echo "${ECHO_T}$can_pass_fds" >&6
11676 if test x$can_pass_fds = xyes; then
11678 cat >>confdefs.h <<\_ACEOF
11679 #define HAVE_UNIX_FDPASS 1
11683 { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5
11684 echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;}
11685 { (exit 1); exit 1; }; }
11689 echo "$as_me:$LINENO: checking for broken XIM callback" >&5
11690 echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6
11691 if test "${rxvt_broken_ximcb+set}" = set; then
11692 echo $ECHO_N "(cached) $ECHO_C" >&6
11694 cat >conftest.$ac_ext <<_ACEOF
11696 #include <X11/Xlib.h>
11698 void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
11702 cb.callback = im_destroy_cb;
11706 rm -f conftest.$ac_objext
11707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11708 (eval $ac_compile) 2>conftest.er1
11710 grep -v '^ *+' conftest.er1 >conftest.err
11712 cat conftest.err >&5
11713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714 (exit $ac_status); } &&
11715 { ac_try='test -z "$ac_cxx_werror_flag"
11716 || test ! -s conftest.err'
11717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11718 (eval $ac_try) 2>&5
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); }; } &&
11722 { ac_try='test -s conftest.$ac_objext'
11723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11724 (eval $ac_try) 2>&5
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); }; }; then
11728 rxvt_broken_ximcb=yes
11730 echo "$as_me: failed program was:" >&5
11731 sed 's/^/| /' conftest.$ac_ext >&5
11733 rxvt_broken_ximcb=no
11735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11737 echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
11738 echo "${ECHO_T}$rxvt_broken_ximcb" >&6
11740 if test x$rxvt_broken_ximcb = xyes; then
11742 cat >>confdefs.h <<\_ACEOF
11743 #define XIMCB_PROTO_BROKEN 1
11762 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11764 echo "$as_me:$LINENO: checking for $ac_header" >&5
11765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11767 echo $ECHO_N "(cached) $ECHO_C" >&6
11769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11770 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11772 # Is the header compilable?
11773 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11774 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11775 cat >conftest.$ac_ext <<_ACEOF
11778 cat confdefs.h >>conftest.$ac_ext
11779 cat >>conftest.$ac_ext <<_ACEOF
11780 /* end confdefs.h. */
11781 $ac_includes_default
11782 #include <$ac_header>
11784 rm -f conftest.$ac_objext
11785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11786 (eval $ac_compile) 2>conftest.er1
11788 grep -v '^ *+' conftest.er1 >conftest.err
11790 cat conftest.err >&5
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); } &&
11793 { ac_try='test -z "$ac_cxx_werror_flag"
11794 || test ! -s conftest.err'
11795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11796 (eval $ac_try) 2>&5
11798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799 (exit $ac_status); }; } &&
11800 { ac_try='test -s conftest.$ac_objext'
11801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11802 (eval $ac_try) 2>&5
11804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805 (exit $ac_status); }; }; then
11806 ac_header_compiler=yes
11808 echo "$as_me: failed program was:" >&5
11809 sed 's/^/| /' conftest.$ac_ext >&5
11811 ac_header_compiler=no
11813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11814 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11815 echo "${ECHO_T}$ac_header_compiler" >&6
11817 # Is the header present?
11818 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11819 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11820 cat >conftest.$ac_ext <<_ACEOF
11823 cat confdefs.h >>conftest.$ac_ext
11824 cat >>conftest.$ac_ext <<_ACEOF
11825 /* end confdefs.h. */
11826 #include <$ac_header>
11828 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11829 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11831 grep -v '^ *+' conftest.er1 >conftest.err
11833 cat conftest.err >&5
11834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 (exit $ac_status); } >/dev/null; then
11836 if test -s conftest.err; then
11837 ac_cpp_err=$ac_cxx_preproc_warn_flag
11838 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11845 if test -z "$ac_cpp_err"; then
11846 ac_header_preproc=yes
11848 echo "$as_me: failed program was:" >&5
11849 sed 's/^/| /' conftest.$ac_ext >&5
11851 ac_header_preproc=no
11853 rm -f conftest.err conftest.$ac_ext
11854 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11855 echo "${ECHO_T}$ac_header_preproc" >&6
11857 # So? What about this header?
11858 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11860 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11861 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11863 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11864 ac_header_preproc=yes
11867 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11868 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11869 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11870 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11871 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11872 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11873 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11874 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11876 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11877 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11878 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11881 ## ------------------------------------------ ##
11882 ## Report this to the AC_PACKAGE_NAME lists. ##
11883 ## ------------------------------------------ ##
11886 sed "s/^/$as_me: WARNING: /" >&2
11889 echo "$as_me:$LINENO: checking for $ac_header" >&5
11890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11892 echo $ECHO_N "(cached) $ECHO_C" >&6
11894 eval "$as_ac_Header=\$ac_header_preproc"
11896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11897 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11900 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11901 cat >>confdefs.h <<_ACEOF
11902 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11931 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11932 echo "$as_me:$LINENO: checking for $ac_func" >&5
11933 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11934 if eval "test \"\${$as_ac_var+set}\" = set"; then
11935 echo $ECHO_N "(cached) $ECHO_C" >&6
11937 cat >conftest.$ac_ext <<_ACEOF
11940 cat confdefs.h >>conftest.$ac_ext
11941 cat >>conftest.$ac_ext <<_ACEOF
11942 /* end confdefs.h. */
11943 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11945 #define $ac_func innocuous_$ac_func
11947 /* System header to define __stub macros and hopefully few prototypes,
11948 which can conflict with char $ac_func (); below.
11949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11950 <limits.h> exists even on freestanding compilers. */
11953 # include <limits.h>
11955 # include <assert.h>
11960 /* Override any gcc2 internal prototype to avoid an error. */
11965 /* We use char because int might match the return type of a gcc2
11966 builtin and then its argument prototype would still apply. */
11968 /* The GNU C library defines this for functions which it implements
11969 to always fail with ENOSYS. Some functions are actually named
11970 something starting with __ and the normal name is an alias. */
11971 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11974 char (*f) () = $ac_func;
11983 return f != $ac_func;
11988 rm -f conftest.$ac_objext conftest$ac_exeext
11989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11990 (eval $ac_link) 2>conftest.er1
11992 grep -v '^ *+' conftest.er1 >conftest.err
11994 cat conftest.err >&5
11995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11996 (exit $ac_status); } &&
11997 { ac_try='test -z "$ac_cxx_werror_flag"
11998 || test ! -s conftest.err'
11999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12000 (eval $ac_try) 2>&5
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); }; } &&
12004 { ac_try='test -s conftest$ac_exeext'
12005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12006 (eval $ac_try) 2>&5
12008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009 (exit $ac_status); }; }; then
12010 eval "$as_ac_var=yes"
12012 echo "$as_me: failed program was:" >&5
12013 sed 's/^/| /' conftest.$ac_ext >&5
12015 eval "$as_ac_var=no"
12017 rm -f conftest.err conftest.$ac_objext \
12018 conftest$ac_exeext conftest.$ac_ext
12020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12021 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12022 if test `eval echo '${'$as_ac_var'}'` = yes; then
12023 cat >>confdefs.h <<_ACEOF
12024 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12033 echo "$as_me:$LINENO: checking for /dev/ptym/clone" >&5
12034 echo $ECHO_N "checking for /dev/ptym/clone... $ECHO_C" >&6
12035 if test -e /dev/ptym/clone; then
12036 echo "$as_me:$LINENO: result: yes" >&5
12037 echo "${ECHO_T}yes" >&6
12039 cat >>confdefs.h <<\_ACEOF
12040 #define HAVE_DEV_CLONE 1
12044 cat >>confdefs.h <<\_ACEOF
12045 #define CLONE_DEVICE "/dev/ptym/clone"
12050 echo "$as_me:$LINENO: result: no" >&5
12051 echo "${ECHO_T}no" >&6
12054 echo "$as_me:$LINENO: checking for /dev/ptc" >&5
12055 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
12056 if test -e /dev/ptc; then
12057 echo "$as_me:$LINENO: result: yes" >&5
12058 echo "${ECHO_T}yes" >&6
12060 cat >>confdefs.h <<\_ACEOF
12061 #define HAVE_DEV_PTC 1
12065 cat >>confdefs.h <<\_ACEOF
12066 #define CLONE_DEVICE "/dev/ptc"
12071 echo "$as_me:$LINENO: result: no" >&5
12072 echo "${ECHO_T}no" >&6
12079 cat >>confdefs.h <<\_ACEOF
12080 #define CLONE_DEVICE "/dev/ptmx"
12085 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
12086 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
12087 if test -e /dev/ptmx; then
12088 echo "$as_me:$LINENO: result: yes" >&5
12089 echo "${ECHO_T}yes" >&6
12091 cat >>confdefs.h <<\_ACEOF
12092 #define HAVE_DEV_PTMX 1
12096 cat >>confdefs.h <<\_ACEOF
12097 #define CLONE_DEVICE "/dev/ptmx"
12102 echo "$as_me:$LINENO: result: no" >&5
12103 echo "${ECHO_T}no" >&6
12108 if test x$ac_cv_func_getpt = xyes -o x$ac_cv_func_posix_openpt = xyes -o x$have_clone = xyes; then
12109 echo "$as_me:$LINENO: checking for UNIX98 ptys" >&5
12110 echo $ECHO_N "checking for UNIX98 ptys... $ECHO_C" >&6
12111 cat >conftest.$ac_ext <<_ACEOF
12114 cat confdefs.h >>conftest.$ac_ext
12115 cat >>conftest.$ac_ext <<_ACEOF
12116 /* end confdefs.h. */
12117 #include <stdlib.h>
12121 grantpt(0);unlockpt(0);ptsname(0);
12126 rm -f conftest.$ac_objext conftest$ac_exeext
12127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12128 (eval $ac_link) 2>conftest.er1
12130 grep -v '^ *+' conftest.er1 >conftest.err
12132 cat conftest.err >&5
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); } &&
12135 { ac_try='test -z "$ac_cxx_werror_flag"
12136 || test ! -s conftest.err'
12137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12138 (eval $ac_try) 2>&5
12140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141 (exit $ac_status); }; } &&
12142 { ac_try='test -s conftest$ac_exeext'
12143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12144 (eval $ac_try) 2>&5
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); }; }; then
12150 cat >>confdefs.h <<\_ACEOF
12151 #define UNIX98_PTY 1
12154 echo "$as_me:$LINENO: result: yes" >&5
12155 echo "${ECHO_T}yes" >&6
12157 echo "$as_me: failed program was:" >&5
12158 sed 's/^/| /' conftest.$ac_ext >&5
12160 echo "$as_me:$LINENO: result: no" >&5
12161 echo "${ECHO_T}no" >&6
12163 rm -f conftest.err conftest.$ac_objext \
12164 conftest$ac_exeext conftest.$ac_ext
12167 if test -z "$unix98_pty"; then
12169 for ac_func in openpty
12171 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12172 echo "$as_me:$LINENO: checking for $ac_func" >&5
12173 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12174 if eval "test \"\${$as_ac_var+set}\" = set"; then
12175 echo $ECHO_N "(cached) $ECHO_C" >&6
12177 cat >conftest.$ac_ext <<_ACEOF
12180 cat confdefs.h >>conftest.$ac_ext
12181 cat >>conftest.$ac_ext <<_ACEOF
12182 /* end confdefs.h. */
12183 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12185 #define $ac_func innocuous_$ac_func
12187 /* System header to define __stub macros and hopefully few prototypes,
12188 which can conflict with char $ac_func (); below.
12189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12190 <limits.h> exists even on freestanding compilers. */
12193 # include <limits.h>
12195 # include <assert.h>
12200 /* Override any gcc2 internal prototype to avoid an error. */
12205 /* We use char because int might match the return type of a gcc2
12206 builtin and then its argument prototype would still apply. */
12208 /* The GNU C library defines this for functions which it implements
12209 to always fail with ENOSYS. Some functions are actually named
12210 something starting with __ and the normal name is an alias. */
12211 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12214 char (*f) () = $ac_func;
12223 return f != $ac_func;
12228 rm -f conftest.$ac_objext conftest$ac_exeext
12229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12230 (eval $ac_link) 2>conftest.er1
12232 grep -v '^ *+' conftest.er1 >conftest.err
12234 cat conftest.err >&5
12235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12236 (exit $ac_status); } &&
12237 { ac_try='test -z "$ac_cxx_werror_flag"
12238 || test ! -s conftest.err'
12239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12240 (eval $ac_try) 2>&5
12242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243 (exit $ac_status); }; } &&
12244 { ac_try='test -s conftest$ac_exeext'
12245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12246 (eval $ac_try) 2>&5
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); }; }; then
12250 eval "$as_ac_var=yes"
12252 echo "$as_me: failed program was:" >&5
12253 sed 's/^/| /' conftest.$ac_ext >&5
12255 eval "$as_ac_var=no"
12257 rm -f conftest.err conftest.$ac_objext \
12258 conftest$ac_exeext conftest.$ac_ext
12260 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12261 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12262 if test `eval echo '${'$as_ac_var'}'` = yes; then
12263 cat >>confdefs.h <<_ACEOF
12264 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12268 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
12269 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
12270 if test "${ac_cv_lib_util_openpty+set}" = set; then
12271 echo $ECHO_N "(cached) $ECHO_C" >&6
12273 ac_check_lib_save_LIBS=$LIBS
12274 LIBS="-lutil $LIBS"
12275 cat >conftest.$ac_ext <<_ACEOF
12278 cat confdefs.h >>conftest.$ac_ext
12279 cat >>conftest.$ac_ext <<_ACEOF
12280 /* end confdefs.h. */
12282 /* Override any gcc2 internal prototype to avoid an error. */
12286 /* We use char because int might match the return type of a gcc2
12287 builtin and then its argument prototype would still apply. */
12297 rm -f conftest.$ac_objext conftest$ac_exeext
12298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12299 (eval $ac_link) 2>conftest.er1
12301 grep -v '^ *+' conftest.er1 >conftest.err
12303 cat conftest.err >&5
12304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305 (exit $ac_status); } &&
12306 { ac_try='test -z "$ac_cxx_werror_flag"
12307 || test ! -s conftest.err'
12308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12309 (eval $ac_try) 2>&5
12311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312 (exit $ac_status); }; } &&
12313 { ac_try='test -s conftest$ac_exeext'
12314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12315 (eval $ac_try) 2>&5
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); }; }; then
12319 ac_cv_lib_util_openpty=yes
12321 echo "$as_me: failed program was:" >&5
12322 sed 's/^/| /' conftest.$ac_ext >&5
12324 ac_cv_lib_util_openpty=no
12326 rm -f conftest.err conftest.$ac_objext \
12327 conftest$ac_exeext conftest.$ac_ext
12328 LIBS=$ac_check_lib_save_LIBS
12330 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
12331 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
12332 if test $ac_cv_lib_util_openpty = yes; then
12333 cat >>confdefs.h <<\_ACEOF
12334 #define HAVE_OPENPTY 1
12336 LIBS="$LIBS -lutil"
12346 echo "$as_me:$LINENO: checking for tty group" >&5
12347 echo $ECHO_N "checking for tty group... $ECHO_C" >&6
12348 if test "${tty_group+set}" = set; then
12349 echo $ECHO_N "(cached) $ECHO_C" >&6
12351 if test "$cross_compiling" = yes; then
12354 cat >conftest.$ac_ext <<_ACEOF
12357 cat confdefs.h >>conftest.$ac_ext
12358 cat >>conftest.$ac_ext <<_ACEOF
12359 /* end confdefs.h. */
12361 #include <sys/types.h>
12362 #include <sys/stat.h>
12363 #include <unistd.h>
12371 gr = getgrnam("tty");
12375 && (stat(tty, &st)) == 0
12376 && st.st_gid == gr->gr_gid)
12382 rm -f conftest$ac_exeext
12383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12384 (eval $ac_link) 2>&5
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12389 (eval $ac_try) 2>&5
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); }; }; then
12395 echo "$as_me: program exited with status $ac_status" >&5
12396 echo "$as_me: failed program was:" >&5
12397 sed 's/^/| /' conftest.$ac_ext >&5
12399 ( exit $ac_status )
12402 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12405 echo "$as_me:$LINENO: result: $tty_group" >&5
12406 echo "${ECHO_T}$tty_group" >&6
12407 if test x$tty_group = xyes; then
12409 cat >>confdefs.h <<\_ACEOF
12410 #define TTY_GID_SUPPORT 1
12415 if test x$support_xft = xyes; then
12416 # Extract the first word of "pkg-config", so it can be a program name with args.
12417 set dummy pkg-config; ac_word=$2
12418 echo "$as_me:$LINENO: checking for $ac_word" >&5
12419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12420 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12421 echo $ECHO_N "(cached) $ECHO_C" >&6
12423 case $PKG_CONFIG in
12425 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12429 for as_dir in $PATH
12432 test -z "$as_dir" && as_dir=.
12433 for ac_exec_ext in '' $ac_executable_extensions; do
12434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12435 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12442 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12446 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12448 if test -n "$PKG_CONFIG"; then
12449 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12450 echo "${ECHO_T}$PKG_CONFIG" >&6
12452 echo "$as_me:$LINENO: result: no" >&5
12453 echo "${ECHO_T}no" >&6
12456 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
12457 LIBS="$LIBS `$PKG_CONFIG xft --libs`"
12458 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
12460 # Extract the first word of "xft-config", so it can be a program name with args.
12461 set dummy xft-config; ac_word=$2
12462 echo "$as_me:$LINENO: checking for $ac_word" >&5
12463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12464 if test "${ac_cv_path_XFT_CONFIG+set}" = set; then
12465 echo $ECHO_N "(cached) $ECHO_C" >&6
12467 case $XFT_CONFIG in
12469 ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path.
12472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12473 for as_dir in $PATH
12476 test -z "$as_dir" && as_dir=.
12477 for ac_exec_ext in '' $ac_executable_extensions; do
12478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12479 ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12486 test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no"
12490 XFT_CONFIG=$ac_cv_path_XFT_CONFIG
12492 if test -n "$XFT_CONFIG"; then
12493 echo "$as_me:$LINENO: result: $XFT_CONFIG" >&5
12494 echo "${ECHO_T}$XFT_CONFIG" >&6
12496 echo "$as_me:$LINENO: result: no" >&5
12497 echo "${ECHO_T}no" >&6
12500 if test $XFT_CONFIG != no; then
12501 LIBS="$LIBS `$XFT_CONFIG --libs`"
12502 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
12507 for ac_header in X11/Xft/Xft.h
12509 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12510 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12511 echo "$as_me:$LINENO: checking for $ac_header" >&5
12512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12514 echo $ECHO_N "(cached) $ECHO_C" >&6
12516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12517 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12519 # Is the header compilable?
12520 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12521 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12522 cat >conftest.$ac_ext <<_ACEOF
12525 cat confdefs.h >>conftest.$ac_ext
12526 cat >>conftest.$ac_ext <<_ACEOF
12527 /* end confdefs.h. */
12528 $ac_includes_default
12529 #include <$ac_header>
12531 rm -f conftest.$ac_objext
12532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12533 (eval $ac_compile) 2>conftest.er1
12535 grep -v '^ *+' conftest.er1 >conftest.err
12537 cat conftest.err >&5
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); } &&
12540 { ac_try='test -z "$ac_cxx_werror_flag"
12541 || test ! -s conftest.err'
12542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12543 (eval $ac_try) 2>&5
12545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546 (exit $ac_status); }; } &&
12547 { ac_try='test -s conftest.$ac_objext'
12548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12549 (eval $ac_try) 2>&5
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); }; }; then
12553 ac_header_compiler=yes
12555 echo "$as_me: failed program was:" >&5
12556 sed 's/^/| /' conftest.$ac_ext >&5
12558 ac_header_compiler=no
12560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12561 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12562 echo "${ECHO_T}$ac_header_compiler" >&6
12564 # Is the header present?
12565 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12566 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12567 cat >conftest.$ac_ext <<_ACEOF
12570 cat confdefs.h >>conftest.$ac_ext
12571 cat >>conftest.$ac_ext <<_ACEOF
12572 /* end confdefs.h. */
12573 #include <$ac_header>
12575 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12576 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12578 grep -v '^ *+' conftest.er1 >conftest.err
12580 cat conftest.err >&5
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); } >/dev/null; then
12583 if test -s conftest.err; then
12584 ac_cpp_err=$ac_cxx_preproc_warn_flag
12585 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12592 if test -z "$ac_cpp_err"; then
12593 ac_header_preproc=yes
12595 echo "$as_me: failed program was:" >&5
12596 sed 's/^/| /' conftest.$ac_ext >&5
12598 ac_header_preproc=no
12600 rm -f conftest.err conftest.$ac_ext
12601 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12602 echo "${ECHO_T}$ac_header_preproc" >&6
12604 # So? What about this header?
12605 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
12607 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12608 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12609 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12610 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12611 ac_header_preproc=yes
12614 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12615 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12616 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12617 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12618 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12619 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12620 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12621 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12623 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12624 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12625 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12628 ## ------------------------------------------ ##
12629 ## Report this to the AC_PACKAGE_NAME lists. ##
12630 ## ------------------------------------------ ##
12633 sed "s/^/$as_me: WARNING: /" >&2
12636 echo "$as_me:$LINENO: checking for $ac_header" >&5
12637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12639 echo $ECHO_N "(cached) $ECHO_C" >&6
12641 eval "$as_ac_Header=\$ac_header_preproc"
12643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12644 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12647 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12648 cat >>confdefs.h <<_ACEOF
12649 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12659 echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5
12660 echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6
12661 if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then
12662 echo $ECHO_N "(cached) $ECHO_C" >&6
12664 ac_check_lib_save_LIBS=$LIBS
12666 cat >conftest.$ac_ext <<_ACEOF
12669 cat confdefs.h >>conftest.$ac_ext
12670 cat >>conftest.$ac_ext <<_ACEOF
12671 /* end confdefs.h. */
12673 /* Override any gcc2 internal prototype to avoid an error. */
12677 /* We use char because int might match the return type of a gcc2
12678 builtin and then its argument prototype would still apply. */
12679 char XftDrawString32 ();
12683 XftDrawString32 ();
12688 rm -f conftest.$ac_objext conftest$ac_exeext
12689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12690 (eval $ac_link) 2>conftest.er1
12692 grep -v '^ *+' conftest.er1 >conftest.err
12694 cat conftest.err >&5
12695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); } &&
12697 { ac_try='test -z "$ac_cxx_werror_flag"
12698 || test ! -s conftest.err'
12699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12700 (eval $ac_try) 2>&5
12702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703 (exit $ac_status); }; } &&
12704 { ac_try='test -s conftest$ac_exeext'
12705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12706 (eval $ac_try) 2>&5
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); }; }; then
12710 ac_cv_lib_Xft_XftDrawString32=yes
12712 echo "$as_me: failed program was:" >&5
12713 sed 's/^/| /' conftest.$ac_ext >&5
12715 ac_cv_lib_Xft_XftDrawString32=no
12717 rm -f conftest.err conftest.$ac_objext \
12718 conftest$ac_exeext conftest.$ac_ext
12719 LIBS=$ac_check_lib_save_LIBS
12721 echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5
12722 echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6
12723 if test $ac_cv_lib_Xft_XftDrawString32 = yes; then
12724 cat >>confdefs.h <<_ACEOF
12725 #define HAVE_LIBXFT 1
12735 if test x$support_xft = xyes; then
12737 cat >>confdefs.h <<\_ACEOF
12743 if test x$support_styles = xyes; then
12745 cat >>confdefs.h <<\_ACEOF
12746 #define ENABLE_STYLES 1
12750 if test x$support_iso14755 = xyes; then
12752 cat >>confdefs.h <<\_ACEOF
12753 #define ISO_14755 1
12757 if test x$support_8bitctrls = xyes; then
12759 cat >>confdefs.h <<\_ACEOF
12760 #define EIGHT_BIT_CONTROLS 1
12764 if test x$support_fading = xyes; then
12766 cat >>confdefs.h <<\_ACEOF
12767 #define OFF_FOCUS_FADING 1
12771 if test x$support_tinting = xyes; then
12773 cat >>confdefs.h <<\_ACEOF
12778 if test x$support_inheritpixmap = xyes; then
12780 cat >>confdefs.h <<\_ACEOF
12781 #define ENABLE_TRANSPARENCY 1
12785 if test x$support_keepscrolling = xno; then
12787 cat >>confdefs.h <<\_ACEOF
12788 #define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
12792 if test x$support_selectionscrolling = xyes; then
12794 cat >>confdefs.h <<\_ACEOF
12795 #define SELECTION_SCROLLING 1
12799 if test x$support_mousewheel = xyes; then
12801 cat >>confdefs.h <<\_ACEOF
12802 #define MOUSE_WHEEL 1
12806 if test x$support_mouseslipwheel = xyes; then
12808 cat >>confdefs.h <<\_ACEOF
12809 #define MOUSE_SLIP_WHEELING 1
12813 if test x$support_xpm = xyes -o x$support_afterimage = xyes ; then
12815 cat >>confdefs.h <<\_ACEOF
12816 #define XPM_BACKGROUND 1
12821 if test x$support_afterimage = xyes; then
12823 cat >>confdefs.h <<\_ACEOF
12824 #define HAVE_AFTERIMAGE 1
12829 if test x$support_afterstep = xyes; then
12831 cat >>confdefs.h <<\_ACEOF
12832 #define AFTERSTEP_INTEGRATION 1
12837 if test x$support_scroll_rxvt = xyes; then
12839 cat >>confdefs.h <<\_ACEOF
12840 #define RXVT_SCROLLBAR 1
12845 if test x$support_scroll_next = xyes; then
12847 cat >>confdefs.h <<\_ACEOF
12848 #define NEXT_SCROLLBAR 1
12851 scrolltypes="$scrolltypes next"
12853 if test x$support_scroll_xterm = xyes; then
12855 cat >>confdefs.h <<\_ACEOF
12856 #define XTERM_SCROLLBAR 1
12859 scrolltypes="$scrolltypes xterm"
12861 if test x$support_scroll_plain = xyes; then
12863 cat >>confdefs.h <<\_ACEOF
12864 #define PLAIN_SCROLLBAR 1
12867 scrolltypes="$scrolltypes plain"
12869 if test x$support_pointer_blank = xyes; then
12871 cat >>confdefs.h <<\_ACEOF
12872 #define POINTER_BLANK 1
12876 if test x$support_text_blink = xyes; then
12878 cat >>confdefs.h <<\_ACEOF
12879 #define TEXT_BLINK 1
12883 if test x$support_unicode3 = xyes; then
12885 cat >>confdefs.h <<\_ACEOF
12886 #define UNICODE_3 1
12890 if test x$support_combining = xyes; then
12892 cat >>confdefs.h <<\_ACEOF
12893 #define ENABLE_COMBINING 1
12897 if test x$codesets = xall; then
12898 codesets=jp,jp-ext,kr,zh,zh-ext
12901 cat >>confdefs.h <<\_ACEOF
12902 #define ENCODING_EU 1
12906 cat >>confdefs.h <<\_ACEOF
12907 #define ENCODING_VN 1
12910 for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
12913 cat >>confdefs.h <<\_ACEOF
12914 #define ENCODING_JP 1
12918 cat >>confdefs.h <<\_ACEOF
12919 #define ENCODING_JP_EXT 1
12923 cat >>confdefs.h <<\_ACEOF
12924 #define ENCODING_KR 1
12928 cat >>confdefs.h <<\_ACEOF
12929 #define ENCODING_ZH 1
12933 cat >>confdefs.h <<\_ACEOF
12934 #define ENCODING_ZH_EXT 1
12941 if test x$support_perl = xyes; then
12942 # Extract the first word of "perl5", so it can be a program name with args.
12943 set dummy perl5; ac_word=$2
12944 echo "$as_me:$LINENO: checking for $ac_word" >&5
12945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12946 if test "${ac_cv_path_PERL+set}" = set; then
12947 echo $ECHO_N "(cached) $ECHO_C" >&6
12951 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12955 for as_dir in $PATH
12958 test -z "$as_dir" && as_dir=.
12959 for ac_exec_ext in '' $ac_executable_extensions; do
12960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12961 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12971 PERL=$ac_cv_path_PERL
12973 if test -n "$PERL"; then
12974 echo "$as_me:$LINENO: result: $PERL" >&5
12975 echo "${ECHO_T}$PERL" >&6
12977 echo "$as_me:$LINENO: result: no" >&5
12978 echo "${ECHO_T}no" >&6
12981 # Extract the first word of "perl", so it can be a program name with args.
12982 set dummy perl; ac_word=$2
12983 echo "$as_me:$LINENO: checking for $ac_word" >&5
12984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12985 if test "${ac_cv_path_PERL+set}" = set; then
12986 echo $ECHO_N "(cached) $ECHO_C" >&6
12990 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12994 for as_dir in $PATH
12997 test -z "$as_dir" && as_dir=.
12998 for ac_exec_ext in '' $ac_executable_extensions; do
12999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13000 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
13001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13010 PERL=$ac_cv_path_PERL
13012 if test -n "$PERL"; then
13013 echo "$as_me:$LINENO: result: $PERL" >&5
13014 echo "${ECHO_T}$PERL" >&6
13016 echo "$as_me:$LINENO: result: no" >&5
13017 echo "${ECHO_T}no" >&6
13021 echo "$as_me:$LINENO: checking for $PERL suitability" >&5
13022 echo $ECHO_N "checking for $PERL suitability... $ECHO_C" >&6
13023 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then
13025 save_CXXFLAGS="$CXXFLAGS"
13027 CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`"
13028 LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`"
13029 cat >conftest.$ac_ext <<_ACEOF
13032 cat confdefs.h >>conftest.$ac_ext
13033 cat >>conftest.$ac_ext <<_ACEOF
13034 /* end confdefs.h. */
13036 #include <EXTERN.h>
13044 PerlInterpreter *perl = perl_alloc ();
13050 rm -f conftest.$ac_objext conftest$ac_exeext
13051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13052 (eval $ac_link) 2>conftest.er1
13054 grep -v '^ *+' conftest.er1 >conftest.err
13056 cat conftest.err >&5
13057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 (exit $ac_status); } &&
13059 { ac_try='test -z "$ac_cxx_werror_flag"
13060 || test ! -s conftest.err'
13061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13062 (eval $ac_try) 2>&5
13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); }; } &&
13066 { ac_try='test -s conftest$ac_exeext'
13067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13068 (eval $ac_try) 2>&5
13070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071 (exit $ac_status); }; }; then
13074 echo "$as_me: failed program was:" >&5
13075 sed 's/^/| /' conftest.$ac_ext >&5
13079 rm -f conftest.err conftest.$ac_objext \
13080 conftest$ac_exeext conftest.$ac_ext
13081 CXXFLAGS="$save_CXXFLAGS"
13084 if test x$rxvt_perl_link = xyes; then
13085 echo "$as_me:$LINENO: result: ok" >&5
13086 echo "${ECHO_T}ok" >&6
13088 cat >>confdefs.h <<\_ACEOF
13089 #define ENABLE_PERL 1
13094 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
13095 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
13096 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`"
13098 { { echo "$as_me:$LINENO: error: no, unable to link" >&5
13099 echo "$as_me: error: no, unable to link" >&2;}
13100 { (exit 1); exit 1; }; }
13103 { { echo "$as_me:$LINENO: error: no working perl found, or perl not version >= 5.8" >&5
13104 echo "$as_me: error: no working perl found, or perl not version >= 5.8" >&2;}
13105 { (exit 1); exit 1; }; }
13115 if test x$support_perl = xyes; then
13119 if test x$support_frills = xyes; then
13121 cat >>confdefs.h <<\_ACEOF
13122 #define ENABLE_FRILLS 1
13139 test "$program_prefix" != NONE &&
13140 program_transform_name="s,^,$program_prefix,;$program_transform_name"
13141 # Use a double $ so make ignores it.
13142 test "$program_suffix" != NONE &&
13143 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
13144 # Double any \ or $. echo might interpret backslashes.
13145 # By default was `s,x,x', remove it if useless.
13146 cat <<\_ACEOF >conftest.sed
13147 s/[\\$]/&&/g;s/;s,x,x,$//
13149 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
13156 if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
13157 include_stdint_h="#include <stdint.h>"
13159 include_stdint_h="/* #include <stdint.h> */"
13161 if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
13162 include_stdarg_h="#include <cstdarg>"
13164 include_stdarg_h="/* #include <cstdarg> */"
13166 if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
13167 include_stdlib_h="#include <cstdlib>"
13169 include_stdlib_h="/* #include <cstdlib> */"
13171 if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
13172 include_unistd_h="#include <unistd.h>"
13174 include_unistd_h="/* #include <unistd.h> */"
13176 if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
13177 include_string_h="#include <cstring>"
13179 include_string_h="/* #include <cstring> */"
13181 if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
13182 include_fcntl_h="#include <fcntl.h>"
13184 include_fcntl_h="/* #include <fcntl.h> */"
13186 if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
13187 include_util_h="#include <util.h>"
13189 include_util_h="/* #include <util.h> */"
13191 if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
13192 include_assert_h="#include <assert.h>"
13194 include_assert_h="/* #include <assert.h> */"
13196 if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
13197 include_sys_ioctl_h="#include <sys/ioctl.h>"
13199 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
13201 if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
13202 include_sys_select_h="#include <sys/select.h>"
13204 include_sys_select_h="/* #include <sys/select.h> */"
13206 if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
13207 include_sys_strredir_h="#include <sys/strredir.h>"
13209 include_sys_strredir_h="/* #include <sys/strredir.h> */"
13211 if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
13212 include_sys_time_h="#include <sys/time.h>"
13214 include_sys_time_h="/* #include <sys/time.h> */"
13216 if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
13217 include_time_h="#include <time.h>"
13219 include_time_h="/* #include <time.h> */"
13222 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h"
13224 cat >confcache <<\_ACEOF
13225 # This file is a shell script that caches the results of configure
13226 # tests run on this system so they can be shared between configure
13227 # scripts and configure runs, see configure's option --config-cache.
13228 # It is not useful on other systems. If it contains results you don't
13229 # want to keep, you may remove or edit it.
13231 # config.status only pays attention to the cache file if you give it
13232 # the --recheck option to rerun configure.
13234 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13235 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13236 # following values.
13240 # The following way of writing the cache mishandles newlines in values,
13241 # but we know of no workaround that is simple, portable, and efficient.
13242 # So, don't put newlines in cache variables' values.
13243 # Ultrix sh set writes to stderr and can't be redirected directly,
13244 # and sets the high bit in the cache file unless we assign to the vars.
13247 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13249 # `set' does not quote correctly, so add quotes (double-quote
13250 # substitution turns \\\\ into \\, and sed turns \\ into \).
13253 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13256 # `set' quotes correctly as required by POSIX, so do not add quotes.
13258 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13265 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13267 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13269 if diff $cache_file confcache >/dev/null 2>&1; then :; else
13270 if test -w $cache_file; then
13271 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13272 cat confcache >$cache_file
13274 echo "not updating unwritable cache $cache_file"
13279 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13280 # Let make expand exec_prefix.
13281 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13283 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13284 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13285 # trailing colons and then remove the whole line if VPATH becomes empty
13286 # (actually we leave an empty line to preserve line numbers).
13287 if test "x$srcdir" = x.; then
13288 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13289 s/:*\$(srcdir):*/:/;
13290 s/:*\${srcdir}:*/:/;
13292 s/^\([^=]*=[ ]*\):*/\1/;
13298 DEFS=-DHAVE_CONFIG_H
13302 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13303 # 1. Remove the extension, and $U if already installed.
13304 ac_i=`echo "$ac_i" |
13305 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13307 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13308 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13310 LIBOBJS=$ac_libobjs
13312 LTLIBOBJS=$ac_ltlibobjs
13316 : ${CONFIG_STATUS=./config.status}
13317 ac_clean_files_save=$ac_clean_files
13318 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13319 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13320 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13321 cat >$CONFIG_STATUS <<_ACEOF
13323 # Generated by $as_me.
13324 # Run this file to recreate the current configuration.
13325 # Compiler output produced by configure, useful for debugging
13326 # configure, is in config.log if it exists.
13329 ac_cs_recheck=false
13331 SHELL=\${CONFIG_SHELL-$SHELL}
13334 cat >>$CONFIG_STATUS <<\_ACEOF
13335 ## --------------------- ##
13336 ## M4sh Initialization. ##
13337 ## --------------------- ##
13339 # Be Bourne compatible
13340 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13343 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13344 # is contrary to our usage. Disable this feature.
13345 alias -g '${1+"$@"}'='"$@"'
13346 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13349 DUALCASE=1; export DUALCASE # for MKS sh
13351 # Support unset when possible.
13352 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13359 # Work around bugs in pre-3.0 UWIN ksh.
13360 $as_unset ENV MAIL MAILPATH
13367 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13368 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13369 LC_TELEPHONE LC_TIME
13371 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13372 eval $as_var=C; export $as_var
13378 # Required to use basename.
13379 if expr a : '\(a\)' >/dev/null 2>&1; then
13385 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13386 as_basename=basename
13392 # Name of the executable.
13393 as_me=`$as_basename "$0" ||
13394 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13395 X"$0" : 'X\(//\)$' \| \
13396 X"$0" : 'X\(/\)$' \| \
13397 . : '\(.\)' 2>/dev/null ||
13399 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13400 /^X\/\(\/\/\)$/{ s//\1/; q; }
13401 /^X\/\(\/\).*/{ s//\1/; q; }
13405 # PATH needs CR, and LINENO needs CR and PATH.
13406 # Avoid depending upon Character Ranges.
13407 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13408 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13409 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13410 as_cr_digits='0123456789'
13411 as_cr_alnum=$as_cr_Letters$as_cr_digits
13413 # The user is always right.
13414 if test "${PATH_SEPARATOR+set}" != set; then
13415 echo "#! /bin/sh" >conf$$.sh
13416 echo "exit 0" >>conf$$.sh
13418 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13427 as_lineno_1=$LINENO
13428 as_lineno_2=$LINENO
13429 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13430 test "x$as_lineno_1" != "x$as_lineno_2" &&
13431 test "x$as_lineno_3" = "x$as_lineno_2" || {
13432 # Find who we are. Look in the path if we contain no path at all
13435 *[\\/]* ) as_myself=$0 ;;
13436 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13437 for as_dir in $PATH
13440 test -z "$as_dir" && as_dir=.
13441 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13446 # We did not find ourselves, most probably we were run as `sh COMMAND'
13447 # in which case we are not to be found in the path.
13448 if test "x$as_myself" = x; then
13451 if test ! -f "$as_myself"; then
13452 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13453 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13454 { (exit 1); exit 1; }; }
13456 case $CONFIG_SHELL in
13458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13459 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13462 test -z "$as_dir" && as_dir=.
13463 for as_base in sh bash ksh sh5; do
13466 if ("$as_dir/$as_base" -c '
13467 as_lineno_1=$LINENO
13468 as_lineno_2=$LINENO
13469 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13470 test "x$as_lineno_1" != "x$as_lineno_2" &&
13471 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13472 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13473 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13474 CONFIG_SHELL=$as_dir/$as_base
13475 export CONFIG_SHELL
13476 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13484 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13485 # uniformly replaced by the line number. The first 'sed' inserts a
13486 # line-number line before each line; the second 'sed' does the real
13487 # work. The second script uses 'N' to pair each line-number line
13488 # with the numbered line, and appends trailing '-' during
13489 # substitution so that $LINENO is not a special case at line end.
13490 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13491 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13492 sed '=' <$as_myself |
13497 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13500 s,^['$as_cr_digits']*\n,,
13501 ' >$as_me.lineno &&
13502 chmod +x $as_me.lineno ||
13503 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13504 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13505 { (exit 1); exit 1; }; }
13507 # Don't try to exec as it changes $[0], causing all sort of problems
13508 # (the dirname of $[0] is not the place where we might find the
13509 # original and so on. Autoconf is especially sensible to this).
13511 # Exit status is that of the last command.
13516 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13517 *c*,-n*) ECHO_N= ECHO_C='
13519 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13520 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13523 if expr a : '\(a\)' >/dev/null 2>&1; then
13529 rm -f conf$$ conf$$.exe conf$$.file
13531 if ln -s conf$$.file conf$$ 2>/dev/null; then
13532 # We could just check for DJGPP; but this test a) works b) is more generic
13533 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13534 if test -f conf$$.exe; then
13535 # Don't use ln at all; we don't have any links
13540 elif ln conf$$.file conf$$ 2>/dev/null; then
13545 rm -f conf$$ conf$$.exe conf$$.file
13547 if mkdir -p . 2>/dev/null; then
13550 test -d ./-p && rmdir ./-p
13554 as_executable_p="test -f"
13556 # Sed expression to map a string onto a valid CPP name.
13557 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13559 # Sed expression to map a string onto a valid variable name.
13560 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13564 # We need space, tab and new line, in precisely that order.
13574 # Open the log real soon, to keep \$[0] and so on meaningful, and to
13575 # report actual input values of CONFIG_FILES etc. instead of their
13576 # values after options handling. Logging --version etc. is OK.
13580 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13581 ## Running $as_me. ##
13586 This file was extended by $as_me, which was
13587 generated by GNU Autoconf 2.59. Invocation command line was
13589 CONFIG_FILES = $CONFIG_FILES
13590 CONFIG_HEADERS = $CONFIG_HEADERS
13591 CONFIG_LINKS = $CONFIG_LINKS
13592 CONFIG_COMMANDS = $CONFIG_COMMANDS
13596 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13600 # Files that config.status was made for.
13601 if test -n "$ac_config_files"; then
13602 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13605 if test -n "$ac_config_headers"; then
13606 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13609 if test -n "$ac_config_links"; then
13610 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13613 if test -n "$ac_config_commands"; then
13614 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13617 cat >>$CONFIG_STATUS <<\_ACEOF
13620 \`$as_me' instantiates files from templates according to the
13621 current configuration.
13623 Usage: $0 [OPTIONS] [FILE]...
13625 -h, --help print this help, then exit
13626 -V, --version print version number, then exit
13627 -q, --quiet do not print progress messages
13628 -d, --debug don't remove temporary files
13629 --recheck update $as_me by reconfiguring in the same conditions
13630 --file=FILE[:TEMPLATE]
13631 instantiate the configuration file FILE
13632 --header=FILE[:TEMPLATE]
13633 instantiate the configuration header FILE
13635 Configuration files:
13638 Configuration headers:
13641 Report bugs to <bug-autoconf@gnu.org>."
13644 cat >>$CONFIG_STATUS <<_ACEOF
13647 configured by $0, generated by GNU Autoconf 2.59,
13648 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13650 Copyright (C) 2003 Free Software Foundation, Inc.
13651 This config.status script is free software; the Free Software Foundation
13652 gives unlimited permission to copy, distribute and modify it."
13657 cat >>$CONFIG_STATUS <<\_ACEOF
13658 # If no file are specified by the user, then we need to provide default
13659 # value. By we need to know if files were specified by the user.
13665 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13666 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13674 *) # This is not an option, so the user has probably given explicit
13677 ac_need_defaults=false;;
13681 # Handling of the options.
13683 cat >>$CONFIG_STATUS <<\_ACEOF
13684 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13686 --version | --vers* | -V )
13687 echo "$ac_cs_version"; exit 0 ;;
13689 # Conflict between --help and --header
13690 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13691 Try \`$0 --help' for more information." >&5
13692 echo "$as_me: error: ambiguous option: $1
13693 Try \`$0 --help' for more information." >&2;}
13694 { (exit 1); exit 1; }; };;
13695 --help | --hel | -h )
13696 echo "$ac_cs_usage"; exit 0 ;;
13697 --debug | --d* | -d )
13699 --file | --fil | --fi | --f )
13701 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13702 ac_need_defaults=false;;
13703 --header | --heade | --head | --hea )
13705 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13706 ac_need_defaults=false;;
13707 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13708 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13711 # This is an error.
13712 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13713 Try \`$0 --help' for more information." >&5
13714 echo "$as_me: error: unrecognized option: $1
13715 Try \`$0 --help' for more information." >&2;}
13716 { (exit 1); exit 1; }; } ;;
13718 *) ac_config_targets="$ac_config_targets $1" ;;
13724 ac_configure_extra_args=
13726 if $ac_cs_silent; then
13728 ac_configure_extra_args="$ac_configure_extra_args --silent"
13732 cat >>$CONFIG_STATUS <<_ACEOF
13733 if \$ac_cs_recheck; then
13734 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13735 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13744 cat >>$CONFIG_STATUS <<\_ACEOF
13745 for ac_config_target in $ac_config_targets
13747 case "$ac_config_target" in
13748 # Handling of arguments.
13749 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13750 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13751 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13752 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
13753 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
13754 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13755 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13756 { (exit 1); exit 1; }; };;
13760 # If the user did not use the arguments to specify the items to instantiate,
13761 # then the envvar interface is used. Set only those that are not.
13762 # We use the long form for the default assignment because of an extremely
13763 # bizarre bug on SunOS 4.1.3.
13764 if $ac_need_defaults; then
13765 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13766 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13769 # Have a temporary directory for convenience. Make it in the build tree
13770 # simply because there is no reason to put it here, and in addition,
13771 # creating and moving files from /tmp can sometimes cause problems.
13772 # Create a temporary directory, and hook for its removal unless debugging.
13775 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13776 trap '{ (exit 1); exit 1; }' 1 2 13 15
13779 # Create a (secure) tmp directory for tmp files.
13782 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13783 test -n "$tmp" && test -d "$tmp"
13786 tmp=./confstat$$-$RANDOM
13787 (umask 077 && mkdir $tmp)
13790 echo "$me: cannot create a temporary directory in ." >&2
13791 { (exit 1); exit 1; }
13796 cat >>$CONFIG_STATUS <<_ACEOF
13799 # CONFIG_FILES section.
13802 # No need to generate the scripts if there are no CONFIG_FILES.
13803 # This happens for instance when ./config.status config.h
13804 if test -n "\$CONFIG_FILES"; then
13805 # Protect against being on the right side of a sed subst in config.status.
13806 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13807 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13808 s,@SHELL@,$SHELL,;t t
13809 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13810 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13811 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13812 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13813 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13814 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13815 s,@exec_prefix@,$exec_prefix,;t t
13816 s,@prefix@,$prefix,;t t
13817 s,@program_transform_name@,$program_transform_name,;t t
13818 s,@bindir@,$bindir,;t t
13819 s,@sbindir@,$sbindir,;t t
13820 s,@libexecdir@,$libexecdir,;t t
13821 s,@datadir@,$datadir,;t t
13822 s,@sysconfdir@,$sysconfdir,;t t
13823 s,@sharedstatedir@,$sharedstatedir,;t t
13824 s,@localstatedir@,$localstatedir,;t t
13825 s,@libdir@,$libdir,;t t
13826 s,@includedir@,$includedir,;t t
13827 s,@oldincludedir@,$oldincludedir,;t t
13828 s,@infodir@,$infodir,;t t
13829 s,@mandir@,$mandir,;t t
13830 s,@build_alias@,$build_alias,;t t
13831 s,@host_alias@,$host_alias,;t t
13832 s,@target_alias@,$target_alias,;t t
13833 s,@DEFS@,$DEFS,;t t
13834 s,@ECHO_C@,$ECHO_C,;t t
13835 s,@ECHO_N@,$ECHO_N,;t t
13836 s,@ECHO_T@,$ECHO_T,;t t
13837 s,@LIBS@,$LIBS,;t t
13838 s,@build@,$build,;t t
13839 s,@build_cpu@,$build_cpu,;t t
13840 s,@build_vendor@,$build_vendor,;t t
13841 s,@build_os@,$build_os,;t t
13842 s,@host@,$host,;t t
13843 s,@host_cpu@,$host_cpu,;t t
13844 s,@host_vendor@,$host_vendor,;t t
13845 s,@host_os@,$host_os,;t t
13846 s,@VERSION@,$VERSION,;t t
13847 s,@DATE@,$DATE,;t t
13848 s,@LSMDATE@,$LSMDATE,;t t
13849 s,@LIBVERSION@,$LIBVERSION,;t t
13851 s,@CFLAGS@,$CFLAGS,;t t
13852 s,@LDFLAGS@,$LDFLAGS,;t t
13853 s,@CPPFLAGS@,$CPPFLAGS,;t t
13854 s,@ac_ct_CC@,$ac_ct_CC,;t t
13855 s,@EXEEXT@,$EXEEXT,;t t
13856 s,@OBJEXT@,$OBJEXT,;t t
13858 s,@CXXFLAGS@,$CXXFLAGS,;t t
13859 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
13861 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13862 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13863 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13864 s,@EGREP@,$EGREP,;t t
13865 s,@LINKER@,$LINKER,;t t
13866 s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t
13867 s,@RXVTNAME@,$RXVTNAME,;t t
13869 s,@CXXCPP@,$CXXCPP,;t t
13870 s,@X_CFLAGS@,$X_CFLAGS,;t t
13871 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
13872 s,@X_LIBS@,$X_LIBS,;t t
13873 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
13874 s,@afterimage_config@,$afterimage_config,;t t
13875 s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t
13876 s,@XPM_CFLAGS@,$XPM_CFLAGS,;t t
13877 s,@XPM_LIBS@,$XPM_LIBS,;t t
13878 s,@rxvt_int16_typedef@,$rxvt_int16_typedef,;t t
13879 s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t
13880 s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t
13881 s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t
13882 s,@rxvt_intp_define@,$rxvt_intp_define,;t t
13883 s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t
13884 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
13885 s,@XFT_CONFIG@,$XFT_CONFIG,;t t
13886 s,@PERL@,$PERL,;t t
13887 s,@PERLLIB@,$PERLLIB,;t t
13888 s,@PERLFLAGS@,$PERLFLAGS,;t t
13889 s,@PERLPRIVLIBEXP@,$PERLPRIVLIBEXP,;t t
13890 s,@IF_PERL@,$IF_PERL,;t t
13891 s,@PERL_O@,$PERL_O,;t t
13892 s,@LIBAFTERIMAGE_CFLAGS@,$LIBAFTERIMAGE_CFLAGS,;t t
13893 s,@AFTERIMAGE_LIBS@,$AFTERIMAGE_LIBS,;t t
13894 s,@include_stdint_h@,$include_stdint_h,;t t
13895 s,@include_stdarg_h@,$include_stdarg_h,;t t
13896 s,@include_stdlib_h@,$include_stdlib_h,;t t
13897 s,@include_unistd_h@,$include_unistd_h,;t t
13898 s,@include_string_h@,$include_string_h,;t t
13899 s,@include_fcntl_h@,$include_fcntl_h,;t t
13900 s,@include_util_h@,$include_util_h,;t t
13901 s,@include_assert_h@,$include_assert_h,;t t
13902 s,@include_sys_ioctl_h@,$include_sys_ioctl_h,;t t
13903 s,@include_sys_select_h@,$include_sys_select_h,;t t
13904 s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t
13905 s,@include_sys_time_h@,$include_sys_time_h,;t t
13906 s,@include_time_h@,$include_time_h,;t t
13907 s,@LIBOBJS@,$LIBOBJS,;t t
13908 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13913 cat >>$CONFIG_STATUS <<\_ACEOF
13914 # Split the substitutions into bite-sized pieces for seds with
13915 # small command number limits, like on Digital OSF/1 and HP-UX.
13916 ac_max_sed_lines=48
13917 ac_sed_frag=1 # Number of current file.
13918 ac_beg=1 # First line for current file.
13919 ac_end=$ac_max_sed_lines # Line after last line for current file.
13922 while $ac_more_lines; do
13923 if test $ac_beg -gt 1; then
13924 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13926 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13928 if test ! -s $tmp/subs.frag; then
13929 ac_more_lines=false
13931 # The purpose of the label and of the branching condition is to
13932 # speed up the sed processing (if there are no `@' at all, there
13933 # is no need to browse any of the substitutions).
13934 # These are the two extra sed commands mentioned above.
13936 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13937 if test -z "$ac_sed_cmds"; then
13938 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13940 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13942 ac_sed_frag=`expr $ac_sed_frag + 1`
13944 ac_end=`expr $ac_end + $ac_max_sed_lines`
13947 if test -z "$ac_sed_cmds"; then
13950 fi # test -n "$CONFIG_FILES"
13953 cat >>$CONFIG_STATUS <<\_ACEOF
13954 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13955 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13957 - | *:- | *:-:* ) # input from stdin
13959 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13960 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13961 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13962 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13963 * ) ac_file_in=$ac_file.in ;;
13966 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13967 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13968 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13969 X"$ac_file" : 'X\(//\)[^/]' \| \
13970 X"$ac_file" : 'X\(//\)$' \| \
13971 X"$ac_file" : 'X\(/\)' \| \
13972 . : '\(.\)' 2>/dev/null ||
13974 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13975 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13976 /^X\(\/\/\)$/{ s//\1/; q; }
13977 /^X\(\/\).*/{ s//\1/; q; }
13979 { if $as_mkdir_p; then
13984 while test ! -d "$as_dir"; do
13985 as_dirs="$as_dir $as_dirs"
13986 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13987 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13988 X"$as_dir" : 'X\(//\)[^/]' \| \
13989 X"$as_dir" : 'X\(//\)$' \| \
13990 X"$as_dir" : 'X\(/\)' \| \
13991 . : '\(.\)' 2>/dev/null ||
13993 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13994 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13995 /^X\(\/\/\)$/{ s//\1/; q; }
13996 /^X\(\/\).*/{ s//\1/; q; }
13999 test ! -n "$as_dirs" || mkdir $as_dirs
14000 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14001 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14002 { (exit 1); exit 1; }; }; }
14006 if test "$ac_dir" != .; then
14007 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14008 # A "../" for each directory in $ac_dir_suffix.
14009 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14011 ac_dir_suffix= ac_top_builddir=
14015 .) # No --srcdir option. We are building in place.
14017 if test -z "$ac_top_builddir"; then
14020 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14022 [\\/]* | ?:[\\/]* ) # Absolute path.
14023 ac_srcdir=$srcdir$ac_dir_suffix;
14024 ac_top_srcdir=$srcdir ;;
14025 *) # Relative path.
14026 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14027 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14030 # Do not use `cd foo && pwd` to compute absolute paths, because
14031 # the directories may not exist.
14033 .) ac_abs_builddir="$ac_dir";;
14036 .) ac_abs_builddir=`pwd`;;
14037 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14038 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14041 case $ac_abs_builddir in
14042 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14044 case ${ac_top_builddir}. in
14045 .) ac_abs_top_builddir=$ac_abs_builddir;;
14046 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14047 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14050 case $ac_abs_builddir in
14051 .) ac_abs_srcdir=$ac_srcdir;;
14054 .) ac_abs_srcdir=$ac_abs_builddir;;
14055 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14056 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14059 case $ac_abs_builddir in
14060 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14062 case $ac_top_srcdir in
14063 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14064 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14065 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14071 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14072 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
14075 if test x"$ac_file" != x-; then
14076 { echo "$as_me:$LINENO: creating $ac_file" >&5
14077 echo "$as_me: creating $ac_file" >&6;}
14080 # Let's still pretend it is `configure' which instantiates (i.e., don't
14081 # use $as_me), people would be surprised to read:
14082 # /* config.h. Generated by config.status. */
14083 if test x"$ac_file" = x-; then
14086 configure_input="$ac_file. "
14088 configure_input=$configure_input"Generated from `echo $ac_file_in |
14089 sed 's,.*/,,'` by configure."
14091 # First look for the input files in the build tree, otherwise in the
14093 ac_file_inputs=`IFS=:
14094 for f in $ac_file_in; do
14096 -) echo $tmp/stdin ;;
14098 # Absolute (can't be DOS-style, as IFS=:)
14099 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14100 echo "$as_me: error: cannot find input file: $f" >&2;}
14101 { (exit 1); exit 1; }; }
14104 if test -f "$f"; then
14107 elif test -f "$srcdir/$f"; then
14112 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14113 echo "$as_me: error: cannot find input file: $f" >&2;}
14114 { (exit 1); exit 1; }; }
14117 done` || { (exit 1); exit 1; }
14119 cat >>$CONFIG_STATUS <<_ACEOF
14123 cat >>$CONFIG_STATUS <<\_ACEOF
14125 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14126 s,@configure_input@,$configure_input,;t t
14127 s,@srcdir@,$ac_srcdir,;t t
14128 s,@abs_srcdir@,$ac_abs_srcdir,;t t
14129 s,@top_srcdir@,$ac_top_srcdir,;t t
14130 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14131 s,@builddir@,$ac_builddir,;t t
14132 s,@abs_builddir@,$ac_abs_builddir,;t t
14133 s,@top_builddir@,$ac_top_builddir,;t t
14134 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14135 s,@INSTALL@,$ac_INSTALL,;t t
14136 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14138 if test x"$ac_file" != x-; then
14139 mv $tmp/out $ac_file
14147 cat >>$CONFIG_STATUS <<\_ACEOF
14150 # CONFIG_HEADER section.
14153 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14154 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14156 # ac_d sets the value in "#define NAME VALUE" lines.
14157 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14158 ac_dB='[ ].*$,\1#\2'
14161 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14162 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14163 ac_uB='$,\1#\2define\3'
14167 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14168 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14170 - | *:- | *:-:* ) # input from stdin
14172 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14173 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14174 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14175 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14176 * ) ac_file_in=$ac_file.in ;;
14179 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14180 echo "$as_me: creating $ac_file" >&6;}
14182 # First look for the input files in the build tree, otherwise in the
14184 ac_file_inputs=`IFS=:
14185 for f in $ac_file_in; do
14187 -) echo $tmp/stdin ;;
14189 # Absolute (can't be DOS-style, as IFS=:)
14190 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14191 echo "$as_me: error: cannot find input file: $f" >&2;}
14192 { (exit 1); exit 1; }; }
14193 # Do quote $f, to prevent DOS paths from being IFS'd.
14196 if test -f "$f"; then
14199 elif test -f "$srcdir/$f"; then
14204 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14205 echo "$as_me: error: cannot find input file: $f" >&2;}
14206 { (exit 1); exit 1; }; }
14209 done` || { (exit 1); exit 1; }
14210 # Remove the trailing spaces.
14211 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14215 # Transform confdefs.h into two sed scripts, `conftest.defines' and
14216 # `conftest.undefs', that substitutes the proper values into
14217 # config.h.in to produce config.h. The first handles `#define'
14218 # templates, and the second `#undef' templates.
14219 # And first: Protect against being on the right side of a sed subst in
14220 # config.status. Protect against being in an unquoted here document
14221 # in config.status.
14222 rm -f conftest.defines conftest.undefs
14223 # Using a here document instead of a string reduces the quoting nightmare.
14224 # Putting comments in sed scripts is not portable.
14226 # `end' is used to avoid that the second main sed command (meant for
14227 # 0-ary CPP macros) applies to n-ary macro definitions.
14228 # See the Autoconf documentation for `clear'.
14229 cat >confdef2sed.sed <<\_ACEOF
14234 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14236 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14239 # If some macros were called several times there might be several times
14240 # the same #defines, which is useless. Nevertheless, we may not want to
14241 # sort them, since we want the *last* AC-DEFINE to be honored.
14242 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14243 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14244 rm -f confdef2sed.sed
14246 # This sed command replaces #undef with comments. This is necessary, for
14247 # example, in the case of _POSIX_SOURCE, which is predefined and required
14248 # on some systems where configure will not decide to define it.
14249 cat >>conftest.undefs <<\_ACEOF
14250 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14253 # Break up conftest.defines because some shells have a limit on the size
14254 # of here documents, and old seds have small limits too (100 cmds).
14255 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14256 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14257 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14258 echo ' :' >>$CONFIG_STATUS
14259 rm -f conftest.tail
14260 while grep . conftest.defines >/dev/null
14262 # Write a limited-size here document to $tmp/defines.sed.
14263 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14264 # Speed up: don't consider the non `#define' lines.
14265 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14266 # Work around the forget-to-reset-the-flag bug.
14267 echo 't clr' >>$CONFIG_STATUS
14268 echo ': clr' >>$CONFIG_STATUS
14269 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14271 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14273 mv $tmp/out $tmp/in
14275 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14276 rm -f conftest.defines
14277 mv conftest.tail conftest.defines
14279 rm -f conftest.defines
14280 echo ' fi # grep' >>$CONFIG_STATUS
14281 echo >>$CONFIG_STATUS
14283 # Break up conftest.undefs because some shells have a limit on the size
14284 # of here documents, and old seds have small limits too (100 cmds).
14285 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
14286 rm -f conftest.tail
14287 while grep . conftest.undefs >/dev/null
14289 # Write a limited-size here document to $tmp/undefs.sed.
14290 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14291 # Speed up: don't consider the non `#undef'
14292 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14293 # Work around the forget-to-reset-the-flag bug.
14294 echo 't clr' >>$CONFIG_STATUS
14295 echo ': clr' >>$CONFIG_STATUS
14296 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14298 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14300 mv $tmp/out $tmp/in
14302 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14303 rm -f conftest.undefs
14304 mv conftest.tail conftest.undefs
14306 rm -f conftest.undefs
14308 cat >>$CONFIG_STATUS <<\_ACEOF
14309 # Let's still pretend it is `configure' which instantiates (i.e., don't
14310 # use $as_me), people would be surprised to read:
14311 # /* config.h. Generated by config.status. */
14312 if test x"$ac_file" = x-; then
14313 echo "/* Generated by configure. */" >$tmp/config.h
14315 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
14317 cat $tmp/in >>$tmp/config.h
14319 if test x"$ac_file" != x-; then
14320 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
14321 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14322 echo "$as_me: $ac_file is unchanged" >&6;}
14324 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14325 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14326 X"$ac_file" : 'X\(//\)[^/]' \| \
14327 X"$ac_file" : 'X\(//\)$' \| \
14328 X"$ac_file" : 'X\(/\)' \| \
14329 . : '\(.\)' 2>/dev/null ||
14331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14332 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14333 /^X\(\/\/\)$/{ s//\1/; q; }
14334 /^X\(\/\).*/{ s//\1/; q; }
14336 { if $as_mkdir_p; then
14341 while test ! -d "$as_dir"; do
14342 as_dirs="$as_dir $as_dirs"
14343 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14344 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14345 X"$as_dir" : 'X\(//\)[^/]' \| \
14346 X"$as_dir" : 'X\(//\)$' \| \
14347 X"$as_dir" : 'X\(/\)' \| \
14348 . : '\(.\)' 2>/dev/null ||
14350 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14351 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14352 /^X\(\/\/\)$/{ s//\1/; q; }
14353 /^X\(\/\).*/{ s//\1/; q; }
14356 test ! -n "$as_dirs" || mkdir $as_dirs
14357 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14358 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14359 { (exit 1); exit 1; }; }; }
14362 mv $tmp/config.h $ac_file
14366 rm -f $tmp/config.h
14371 cat >>$CONFIG_STATUS <<\_ACEOF
14373 { (exit 0); exit 0; }
14375 chmod +x $CONFIG_STATUS
14376 ac_clean_files=$ac_clean_files_save
14379 # configure is writing to config.log, and then calls config.status.
14380 # config.status does its own redirection, appending to config.log.
14381 # Unfortunately, on DOS this fails, as config.log is still kept open
14382 # by configure, so config.status won't be able to write to it; its
14383 # output is simply discarded. So we exec the FD to /dev/null,
14384 # effectively closing config.log, so it can be properly (re)opened and
14385 # appended to by config.status. When coming back to configure, we
14386 # need to make the FD available again.
14387 if test "$no_create" != yes; then
14389 ac_config_status_args=
14390 test "$silent" = yes &&
14391 ac_config_status_args="$ac_config_status_args --quiet"
14393 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14395 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14396 # would make configure fail if this is the last instruction.
14397 $ac_cs_success || { (exit 1); exit 1; }
14401 echo "Configuration:
14403 Rxvt version: $VERSION : $DATE
14404 Source code location: $srcdir
14405 Install path: ${prefix}/bin
14407 Compiler flags: $CXXFLAGS
14410 if test x$support_xpm = xyes; then
14411 echo " Xpm library: $XPM_LIBS"
14414 if test x$support_afterimage = xyes; then
14415 echo " AfterImage support: yes"
14418 if test x$support_afterstep = xyes; then
14419 echo " AfterStep integration: yes"
14422 if test x$term != x; then
14423 echo " set TERM to: $term"
14425 if test x$terminfo != x; then
14426 echo " set TERMINFO to: $terminfo"
14428 echo " default resource name: $RESNAME"
14429 echo " resource class: $RESCLASS"
14430 if test x$RESFALLBACK != x; then
14431 echo " resource class fallback: $RESFALLBACK"
14434 echo " embedded perl: $support_perl"
14436 if test x$support_xpm = xneedsmanualspecification; then
14437 echo ".----------------------------------------------------------------."
14438 echo ". WARNING: --enable-xpm-background was specified however the ."
14439 echo ". XPM includes files and libraries could not be found. ."
14440 echo ". XPM backgrounds are now being DISABLED! If you want ."
14441 echo ". to use them you should rerun configure with the ."
14442 echo ". appropriate --with-xpm-includes=/path/to/xpm/includes ."
14443 echo ". and --with-xpm-library=/path/to/xpm/library lines. ."
14444 echo ".----------------------------------------------------------------."
14446 if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then
14447 echo ".----------------------------------------------------------------."
14448 echo ". WARNING: --enable-xim was specified however the locale support ."
14449 echo ". functions could not be found. ."
14450 echo ". XIM is now being DISABLED! ."
14451 echo ".----------------------------------------------------------------."
14454 echo "*** Optionally check src/feature.h for further, rarely used options ***"