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 AWK LINKER CXXCPP EGREP INSTALL_LIBRXVT RXVTNAME MV RM CP LN SED ECHO CMP TBL TIC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS 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 DEBUG DINCLUDE DLIB 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'
313 ac_subst_files='MCOMMON'
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-utmp enable utmp (utmpx) support
876 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
877 --enable-lastlog enable lastlog support (requires --enable-utmp)
878 --enable-xpm-background enable XPM background pixmaps
879 --enable-transparency enable transparent backgrounds
880 --enable-tinting enable tinting of transparent bg
881 --enable-fading enable colors fading when off focus
882 --enable-menubar enable menubar
883 --enable-rxvt-scroll enable rxvt style scrollbar
884 --enable-next-scroll enable NeXT style scrollbar
885 --enable-xterm-scroll enable Xterm style scrollbar
886 --enable-plain-scroll enable plain style scrollbar
887 --enable-half-shadow use half width/height shadow on rxvt scrollbar
888 --enable-xim XIM (X Input Method) protocol support
889 --enable-ttygid enable tty setting to group named "tty"
890 --disable-backspace-key disable handling of the backspace key
891 --disable-delete-key disable handling of the delete key
892 --disable-resources disable all resource checking
893 --enable-xgetdefault enable resources via X instead of our small version
894 --enable-8bitctrls enable 8 bit control sequences (not recommended)
895 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
896 --enable-strings enable some replacement system functions
897 --disable-swapscreen disable swap screen support
898 --enable-iso14755 enable support for extended ISO 14755 modes
899 --enable-frills enable support for rarely used features
900 --enable-24bit enable support for using 24bit visuals if available
901 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
902 --enable-selectionscrolling enable scrolling during selections
903 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
904 --enable-slipwheeling enable slip wheel scrolling (requires previous)
905 --enable-dmalloc enable Gray Watson's malloc - for debugging use
906 --enable-dlmalloc enable Doug Lea's malloc - for production use
907 NOTE: enable only one malloc package
908 --enable-smart-resize enable smart growth/shrink behaviour
909 --enable-text-blink enable blinking text
910 --enable-pointer-blank enable pointer blank when typing or inactive pointer
913 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
914 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
915 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)
916 --with-res-name=NAME use this as default resource name (default: urxvt)
917 --with-res-class=CLASS use this as the resource class (default: URxvt)
918 --with-name=NAME set the basename for the installed binaries (default: urxvt)
919 --with-term=NAME set the terminal to NAME (default: rxvt)
920 --with-terminfo=PATH set the path to the terminfo tree to PATH
921 --with-x use the X Window System
922 --with-xpm-includes=DIR use XPM includes in DIR
923 --with-xpm-library=DIR use XPM library in DIR
926 Some influential environment variables:
927 CC C compiler command
928 CFLAGS C compiler flags
929 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
930 nonstandard directory <lib dir>
931 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
932 headers in a nonstandard directory <include dir>
933 CXX C++ compiler command
934 CXXFLAGS C++ compiler flags
936 CXXCPP C++ preprocessor
938 Use these variables to override the choices made by `configure' or to help
939 it to find libraries and programs with nonstandard names/locations.
944 if test "$ac_init_help" = "recursive"; then
945 # If there are subdirs, report their specific --help.
947 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
948 test -d $ac_dir || continue
951 if test "$ac_dir" != .; then
952 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
953 # A "../" for each directory in $ac_dir_suffix.
954 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
956 ac_dir_suffix= ac_top_builddir=
960 .) # No --srcdir option. We are building in place.
962 if test -z "$ac_top_builddir"; then
965 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
967 [\\/]* | ?:[\\/]* ) # Absolute path.
968 ac_srcdir=$srcdir$ac_dir_suffix;
969 ac_top_srcdir=$srcdir ;;
971 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
972 ac_top_srcdir=$ac_top_builddir$srcdir ;;
975 # Do not use `cd foo && pwd` to compute absolute paths, because
976 # the directories may not exist.
978 .) ac_abs_builddir="$ac_dir";;
981 .) ac_abs_builddir=`pwd`;;
982 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
983 *) ac_abs_builddir=`pwd`/"$ac_dir";;
986 case $ac_abs_builddir in
987 .) ac_abs_top_builddir=${ac_top_builddir}.;;
989 case ${ac_top_builddir}. in
990 .) ac_abs_top_builddir=$ac_abs_builddir;;
991 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
992 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
995 case $ac_abs_builddir in
996 .) ac_abs_srcdir=$ac_srcdir;;
999 .) ac_abs_srcdir=$ac_abs_builddir;;
1000 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1001 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1004 case $ac_abs_builddir in
1005 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1007 case $ac_top_srcdir in
1008 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1009 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1010 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1015 # Check for guested configure; otherwise get Cygnus style configure.
1016 if test -f $ac_srcdir/configure.gnu; then
1018 $SHELL $ac_srcdir/configure.gnu --help=recursive
1019 elif test -f $ac_srcdir/configure; then
1021 $SHELL $ac_srcdir/configure --help=recursive
1022 elif test -f $ac_srcdir/configure.ac ||
1023 test -f $ac_srcdir/configure.in; then
1025 $ac_configure --help
1027 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1033 test -n "$ac_init_help" && exit 0
1034 if $ac_init_version; then
1037 Copyright (C) 2003 Free Software Foundation, Inc.
1038 This configure script is free software; the Free Software Foundation
1039 gives unlimited permission to copy, distribute and modify it.
1045 This file contains any messages produced by compilers while
1046 running configure, to aid debugging if configure makes a mistake.
1048 It was created by $as_me, which was
1049 generated by GNU Autoconf 2.59. Invocation command line was
1060 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1061 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1062 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1063 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1064 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1066 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1067 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1069 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1070 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1071 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1072 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1073 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1074 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1075 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1083 test -z "$as_dir" && as_dir=.
1084 echo "PATH: $as_dir"
1099 # Keep a trace of the command line.
1100 # Strip out --no-create and --no-recursion so they do not pile up.
1101 # Strip out --silent because we don't want to record it for future runs.
1102 # Also quote any args containing shell meta-characters.
1103 # Make two passes to allow for proper duplicate-argument suppression.
1108 ac_must_keep_next=false
1114 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1115 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1116 | -silent | --silent | --silen | --sile | --sil)
1118 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1119 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1122 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1124 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1125 if test $ac_must_keep_next = true; then
1126 ac_must_keep_next=false # Got value, back to normal.
1129 *=* | --config-cache | -C | -disable-* | --disable-* \
1130 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1131 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1132 | -with-* | --with-* | -without-* | --without-* | --x)
1133 case "$ac_configure_args0 " in
1134 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1137 -* ) ac_must_keep_next=true ;;
1140 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1141 # Get rid of the leading space.
1147 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1148 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1150 # When interrupted or exit'd, cleanup temporary files, and complete
1151 # config.log. We remove comments because anyway the quotes in there
1152 # would cause problems or look ugly.
1153 # WARNING: Be sure not to use single quotes in there, as some shells,
1154 # such as our DU 5.0 friend, will then `close' the trap.
1155 trap 'exit_status=$?
1156 # Save into config.log some information that might help in debugging.
1161 ## ---------------- ##
1162 ## Cache variables. ##
1163 ## ---------------- ##
1166 # The following way of writing the cache mishandles newlines in values,
1169 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1172 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1173 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1177 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1184 ## ----------------- ##
1185 ## Output variables. ##
1186 ## ----------------- ##
1189 for ac_var in $ac_subst_vars
1191 eval ac_val=$`echo $ac_var`
1192 echo "$ac_var='"'"'$ac_val'"'"'"
1196 if test -n "$ac_subst_files"; then
1203 for ac_var in $ac_subst_files
1205 eval ac_val=$`echo $ac_var`
1206 echo "$ac_var='"'"'$ac_val'"'"'"
1211 if test -s confdefs.h; then
1218 sed "/^$/d" confdefs.h | sort
1221 test "$ac_signal" != 0 &&
1222 echo "$as_me: caught signal $ac_signal"
1223 echo "$as_me: exit $exit_status"
1225 rm -f core *.core &&
1226 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1229 for ac_signal in 1 2 13 15; do
1230 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1234 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1235 rm -rf conftest* confdefs.h
1236 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1239 # Predefined preprocessor variables.
1241 cat >>confdefs.h <<_ACEOF
1242 #define PACKAGE_NAME "$PACKAGE_NAME"
1246 cat >>confdefs.h <<_ACEOF
1247 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1251 cat >>confdefs.h <<_ACEOF
1252 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1256 cat >>confdefs.h <<_ACEOF
1257 #define PACKAGE_STRING "$PACKAGE_STRING"
1261 cat >>confdefs.h <<_ACEOF
1262 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1266 # Let the site file select an alternate cache file if it wants to.
1267 # Prefer explicitly selected file to automatically selected ones.
1268 if test -z "$CONFIG_SITE"; then
1269 if test "x$prefix" != xNONE; then
1270 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1272 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1275 for ac_site_file in $CONFIG_SITE; do
1276 if test -r "$ac_site_file"; then
1277 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1278 echo "$as_me: loading site script $ac_site_file" >&6;}
1279 sed 's/^/| /' "$ac_site_file" >&5
1284 if test -r "$cache_file"; then
1285 # Some versions of bash will fail to source /dev/null (special
1286 # files actually), so we avoid doing that.
1287 if test -f "$cache_file"; then
1288 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1289 echo "$as_me: loading cache $cache_file" >&6;}
1291 [\\/]* | ?:[\\/]* ) . $cache_file;;
1292 *) . ./$cache_file;;
1296 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1297 echo "$as_me: creating cache $cache_file" >&6;}
1301 # Check that the precious variables saved in the cache have kept the same
1303 ac_cache_corrupted=false
1304 for ac_var in `(set) 2>&1 |
1305 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1306 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1307 eval ac_new_set=\$ac_env_${ac_var}_set
1308 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1309 eval ac_new_val="\$ac_env_${ac_var}_value"
1310 case $ac_old_set,$ac_new_set in
1312 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1313 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1314 ac_cache_corrupted=: ;;
1316 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1317 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1318 ac_cache_corrupted=: ;;
1321 if test "x$ac_old_val" != "x$ac_new_val"; then
1322 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1323 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1324 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1325 echo "$as_me: former value: $ac_old_val" >&2;}
1326 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1327 echo "$as_me: current value: $ac_new_val" >&2;}
1328 ac_cache_corrupted=:
1331 # Pass precious variables to config.status.
1332 if test "$ac_new_set" = set; then
1334 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1335 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1336 *) ac_arg=$ac_var=$ac_new_val ;;
1338 case " $ac_configure_args " in
1339 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1340 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1344 if $ac_cache_corrupted; then
1345 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1346 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1347 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1348 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1349 { (exit 1); exit 1; }; }
1353 ac_cpp='$CPP $CPPFLAGS'
1354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1378 for ac_dir in autoconf $srcdir/autoconf; do
1379 if test -f $ac_dir/install-sh; then
1381 ac_install_sh="$ac_aux_dir/install-sh -c"
1383 elif test -f $ac_dir/install.sh; then
1385 ac_install_sh="$ac_aux_dir/install.sh -c"
1387 elif test -f $ac_dir/shtool; then
1389 ac_install_sh="$ac_aux_dir/shtool install -c"
1393 if test -z "$ac_aux_dir"; then
1394 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1395 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1396 { (exit 1); exit 1; }; }
1398 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1399 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1400 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1402 ac_config_headers="$ac_config_headers config.h:autoconf/config.h.in"
1405 # Make sure we can run config.sub.
1406 $ac_config_sub sun4 >/dev/null 2>&1 ||
1407 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1408 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1409 { (exit 1); exit 1; }; }
1411 echo "$as_me:$LINENO: checking build system type" >&5
1412 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1413 if test "${ac_cv_build+set}" = set; then
1414 echo $ECHO_N "(cached) $ECHO_C" >&6
1416 ac_cv_build_alias=$build_alias
1417 test -z "$ac_cv_build_alias" &&
1418 ac_cv_build_alias=`$ac_config_guess`
1419 test -z "$ac_cv_build_alias" &&
1420 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1421 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1422 { (exit 1); exit 1; }; }
1423 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1424 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1425 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1426 { (exit 1); exit 1; }; }
1429 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1430 echo "${ECHO_T}$ac_cv_build" >&6
1432 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1433 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1434 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1437 echo "$as_me:$LINENO: checking host system type" >&5
1438 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1439 if test "${ac_cv_host+set}" = set; then
1440 echo $ECHO_N "(cached) $ECHO_C" >&6
1442 ac_cv_host_alias=$host_alias
1443 test -z "$ac_cv_host_alias" &&
1444 ac_cv_host_alias=$ac_cv_build_alias
1445 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1446 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1447 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1448 { (exit 1); exit 1; }; }
1451 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1452 echo "${ECHO_T}$ac_cv_host" >&6
1454 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1455 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1456 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1460 VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1461 DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1463 echo "configuring for rxvt $VERSION"
1468 ac_cpp='$CPP $CPPFLAGS'
1469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1472 if test -n "$ac_tool_prefix"; then
1473 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1474 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1475 echo "$as_me:$LINENO: checking for $ac_word" >&5
1476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1477 if test "${ac_cv_prog_CC+set}" = set; then
1478 echo $ECHO_N "(cached) $ECHO_C" >&6
1480 if test -n "$CC"; then
1481 ac_cv_prog_CC="$CC" # Let the user override the test.
1483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1487 test -z "$as_dir" && as_dir=.
1488 for ac_exec_ext in '' $ac_executable_extensions; do
1489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1490 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1500 if test -n "$CC"; then
1501 echo "$as_me:$LINENO: result: $CC" >&5
1502 echo "${ECHO_T}$CC" >&6
1504 echo "$as_me:$LINENO: result: no" >&5
1505 echo "${ECHO_T}no" >&6
1509 if test -z "$ac_cv_prog_CC"; then
1511 # Extract the first word of "gcc", so it can be a program name with args.
1512 set dummy gcc; ac_word=$2
1513 echo "$as_me:$LINENO: checking for $ac_word" >&5
1514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1515 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1516 echo $ECHO_N "(cached) $ECHO_C" >&6
1518 if test -n "$ac_ct_CC"; then
1519 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1525 test -z "$as_dir" && as_dir=.
1526 for ac_exec_ext in '' $ac_executable_extensions; do
1527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1528 ac_cv_prog_ac_ct_CC="gcc"
1529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1537 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1538 if test -n "$ac_ct_CC"; then
1539 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1540 echo "${ECHO_T}$ac_ct_CC" >&6
1542 echo "$as_me:$LINENO: result: no" >&5
1543 echo "${ECHO_T}no" >&6
1551 if test -z "$CC"; then
1552 if test -n "$ac_tool_prefix"; then
1553 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1554 set dummy ${ac_tool_prefix}cc; ac_word=$2
1555 echo "$as_me:$LINENO: checking for $ac_word" >&5
1556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1557 if test "${ac_cv_prog_CC+set}" = set; then
1558 echo $ECHO_N "(cached) $ECHO_C" >&6
1560 if test -n "$CC"; then
1561 ac_cv_prog_CC="$CC" # Let the user override the test.
1563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1567 test -z "$as_dir" && as_dir=.
1568 for ac_exec_ext in '' $ac_executable_extensions; do
1569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1570 ac_cv_prog_CC="${ac_tool_prefix}cc"
1571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1580 if test -n "$CC"; then
1581 echo "$as_me:$LINENO: result: $CC" >&5
1582 echo "${ECHO_T}$CC" >&6
1584 echo "$as_me:$LINENO: result: no" >&5
1585 echo "${ECHO_T}no" >&6
1589 if test -z "$ac_cv_prog_CC"; then
1591 # Extract the first word of "cc", so it can be a program name with args.
1592 set dummy cc; ac_word=$2
1593 echo "$as_me:$LINENO: checking for $ac_word" >&5
1594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1595 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1596 echo $ECHO_N "(cached) $ECHO_C" >&6
1598 if test -n "$ac_ct_CC"; then
1599 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1605 test -z "$as_dir" && as_dir=.
1606 for ac_exec_ext in '' $ac_executable_extensions; do
1607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1608 ac_cv_prog_ac_ct_CC="cc"
1609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1617 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1618 if test -n "$ac_ct_CC"; then
1619 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1620 echo "${ECHO_T}$ac_ct_CC" >&6
1622 echo "$as_me:$LINENO: result: no" >&5
1623 echo "${ECHO_T}no" >&6
1632 if test -z "$CC"; then
1633 # Extract the first word of "cc", so it can be a program name with args.
1634 set dummy cc; ac_word=$2
1635 echo "$as_me:$LINENO: checking for $ac_word" >&5
1636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1637 if test "${ac_cv_prog_CC+set}" = set; then
1638 echo $ECHO_N "(cached) $ECHO_C" >&6
1640 if test -n "$CC"; then
1641 ac_cv_prog_CC="$CC" # Let the user override the test.
1644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1648 test -z "$as_dir" && as_dir=.
1649 for ac_exec_ext in '' $ac_executable_extensions; do
1650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1651 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1652 ac_prog_rejected=yes
1656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1662 if test $ac_prog_rejected = yes; then
1663 # We found a bogon in the path, so make sure we never use it.
1664 set dummy $ac_cv_prog_CC
1666 if test $# != 0; then
1667 # We chose a different compiler from the bogus one.
1668 # However, it has the same basename, so the bogon will be chosen
1669 # first if we set CC to just the basename; use the full file name.
1671 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1677 if test -n "$CC"; then
1678 echo "$as_me:$LINENO: result: $CC" >&5
1679 echo "${ECHO_T}$CC" >&6
1681 echo "$as_me:$LINENO: result: no" >&5
1682 echo "${ECHO_T}no" >&6
1686 if test -z "$CC"; then
1687 if test -n "$ac_tool_prefix"; then
1690 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1691 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1692 echo "$as_me:$LINENO: checking for $ac_word" >&5
1693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1694 if test "${ac_cv_prog_CC+set}" = set; then
1695 echo $ECHO_N "(cached) $ECHO_C" >&6
1697 if test -n "$CC"; then
1698 ac_cv_prog_CC="$CC" # Let the user override the test.
1700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1704 test -z "$as_dir" && as_dir=.
1705 for ac_exec_ext in '' $ac_executable_extensions; do
1706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1707 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1717 if test -n "$CC"; then
1718 echo "$as_me:$LINENO: result: $CC" >&5
1719 echo "${ECHO_T}$CC" >&6
1721 echo "$as_me:$LINENO: result: no" >&5
1722 echo "${ECHO_T}no" >&6
1725 test -n "$CC" && break
1728 if test -z "$CC"; then
1732 # Extract the first word of "$ac_prog", so it can be a program name with args.
1733 set dummy $ac_prog; ac_word=$2
1734 echo "$as_me:$LINENO: checking for $ac_word" >&5
1735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1736 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1737 echo $ECHO_N "(cached) $ECHO_C" >&6
1739 if test -n "$ac_ct_CC"; then
1740 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1746 test -z "$as_dir" && as_dir=.
1747 for ac_exec_ext in '' $ac_executable_extensions; do
1748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1749 ac_cv_prog_ac_ct_CC="$ac_prog"
1750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1758 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1759 if test -n "$ac_ct_CC"; then
1760 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1761 echo "${ECHO_T}$ac_ct_CC" >&6
1763 echo "$as_me:$LINENO: result: no" >&5
1764 echo "${ECHO_T}no" >&6
1767 test -n "$ac_ct_CC" && break
1776 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1777 See \`config.log' for more details." >&5
1778 echo "$as_me: error: no acceptable C compiler found in \$PATH
1779 See \`config.log' for more details." >&2;}
1780 { (exit 1); exit 1; }; }
1782 # Provide some information about the compiler.
1783 echo "$as_me:$LINENO:" \
1784 "checking for C compiler version" >&5
1785 ac_compiler=`set X $ac_compile; echo $2`
1786 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1787 (eval $ac_compiler --version </dev/null >&5) 2>&5
1789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1790 (exit $ac_status); }
1791 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1792 (eval $ac_compiler -v </dev/null >&5) 2>&5
1794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1795 (exit $ac_status); }
1796 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1797 (eval $ac_compiler -V </dev/null >&5) 2>&5
1799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1800 (exit $ac_status); }
1802 cat >conftest.$ac_ext <<_ACEOF
1805 cat confdefs.h >>conftest.$ac_ext
1806 cat >>conftest.$ac_ext <<_ACEOF
1807 /* end confdefs.h. */
1817 ac_clean_files_save=$ac_clean_files
1818 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1819 # Try to create an executable without -o first, disregard a.out.
1820 # It will help us diagnose broken compilers, and finding out an intuition
1822 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1823 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1824 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1825 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1826 (eval $ac_link_default) 2>&5
1828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1829 (exit $ac_status); }; then
1830 # Find the output, starting from the most likely. This scheme is
1831 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1834 # Be careful to initialize this variable, since it used to be cached.
1835 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1837 # b.out is created by i960 compilers.
1838 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1840 test -f "$ac_file" || continue
1842 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1845 # This is the source file.
1848 # We found the default executable, but exeext='' is most
1852 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1853 # FIXME: I believe we export ac_cv_exeext for Libtool,
1854 # but it would be cool to find out if it's true. Does anybody
1855 # maintain Libtool? --akim.
1863 echo "$as_me: failed program was:" >&5
1864 sed 's/^/| /' conftest.$ac_ext >&5
1866 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1867 See \`config.log' for more details." >&5
1868 echo "$as_me: error: C compiler cannot create executables
1869 See \`config.log' for more details." >&2;}
1870 { (exit 77); exit 77; }; }
1873 ac_exeext=$ac_cv_exeext
1874 echo "$as_me:$LINENO: result: $ac_file" >&5
1875 echo "${ECHO_T}$ac_file" >&6
1877 # Check the compiler produces executables we can run. If not, either
1878 # the compiler is broken, or we cross compile.
1879 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1880 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1881 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1882 # If not cross compiling, check that we can run a simple program.
1883 if test "$cross_compiling" != yes; then
1884 if { ac_try='./$ac_file'
1885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1889 (exit $ac_status); }; }; then
1892 if test "$cross_compiling" = maybe; then
1895 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1896 If you meant to cross compile, use \`--host'.
1897 See \`config.log' for more details." >&5
1898 echo "$as_me: error: cannot run C compiled programs.
1899 If you meant to cross compile, use \`--host'.
1900 See \`config.log' for more details." >&2;}
1901 { (exit 1); exit 1; }; }
1905 echo "$as_me:$LINENO: result: yes" >&5
1906 echo "${ECHO_T}yes" >&6
1908 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1909 ac_clean_files=$ac_clean_files_save
1910 # Check the compiler produces executables we can run. If not, either
1911 # the compiler is broken, or we cross compile.
1912 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1913 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1914 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1915 echo "${ECHO_T}$cross_compiling" >&6
1917 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1918 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1920 (eval $ac_link) 2>&5
1922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1923 (exit $ac_status); }; then
1924 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1925 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1926 # work properly (i.e., refer to `conftest.exe'), while it won't with
1928 for ac_file in conftest.exe conftest conftest.*; do
1929 test -f "$ac_file" || continue
1931 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1932 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1939 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1940 See \`config.log' for more details." >&5
1941 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1942 See \`config.log' for more details." >&2;}
1943 { (exit 1); exit 1; }; }
1946 rm -f conftest$ac_cv_exeext
1947 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1948 echo "${ECHO_T}$ac_cv_exeext" >&6
1950 rm -f conftest.$ac_ext
1951 EXEEXT=$ac_cv_exeext
1953 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1954 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1955 if test "${ac_cv_objext+set}" = set; then
1956 echo $ECHO_N "(cached) $ECHO_C" >&6
1958 cat >conftest.$ac_ext <<_ACEOF
1961 cat confdefs.h >>conftest.$ac_ext
1962 cat >>conftest.$ac_ext <<_ACEOF
1963 /* end confdefs.h. */
1973 rm -f conftest.o conftest.obj
1974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1975 (eval $ac_compile) 2>&5
1977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1978 (exit $ac_status); }; then
1979 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1981 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1982 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1987 echo "$as_me: failed program was:" >&5
1988 sed 's/^/| /' conftest.$ac_ext >&5
1990 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1991 See \`config.log' for more details." >&5
1992 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1993 See \`config.log' for more details." >&2;}
1994 { (exit 1); exit 1; }; }
1997 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1999 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2000 echo "${ECHO_T}$ac_cv_objext" >&6
2001 OBJEXT=$ac_cv_objext
2003 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2004 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2005 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2006 echo $ECHO_N "(cached) $ECHO_C" >&6
2008 cat >conftest.$ac_ext <<_ACEOF
2011 cat confdefs.h >>conftest.$ac_ext
2012 cat >>conftest.$ac_ext <<_ACEOF
2013 /* end confdefs.h. */
2026 rm -f conftest.$ac_objext
2027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2028 (eval $ac_compile) 2>conftest.er1
2030 grep -v '^ *+' conftest.er1 >conftest.err
2032 cat conftest.err >&5
2033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034 (exit $ac_status); } &&
2035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040 (exit $ac_status); }; } &&
2041 { ac_try='test -s conftest.$ac_objext'
2042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2046 (exit $ac_status); }; }; then
2049 echo "$as_me: failed program was:" >&5
2050 sed 's/^/| /' conftest.$ac_ext >&5
2054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2055 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2058 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2059 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2060 GCC=`test $ac_compiler_gnu = yes && echo yes`
2061 ac_test_CFLAGS=${CFLAGS+set}
2062 ac_save_CFLAGS=$CFLAGS
2064 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2065 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2066 if test "${ac_cv_prog_cc_g+set}" = set; then
2067 echo $ECHO_N "(cached) $ECHO_C" >&6
2069 cat >conftest.$ac_ext <<_ACEOF
2072 cat confdefs.h >>conftest.$ac_ext
2073 cat >>conftest.$ac_ext <<_ACEOF
2074 /* end confdefs.h. */
2084 rm -f conftest.$ac_objext
2085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2086 (eval $ac_compile) 2>conftest.er1
2088 grep -v '^ *+' conftest.er1 >conftest.err
2090 cat conftest.err >&5
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); } &&
2093 { ac_try='test -z "$ac_c_werror_flag" || 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" || test ! -s conftest.err'
2210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); }; } &&
2215 { ac_try='test -s conftest.$ac_objext'
2216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }; }; then
2221 ac_cv_prog_cc_stdc=$ac_arg
2224 echo "$as_me: failed program was:" >&5
2225 sed 's/^/| /' conftest.$ac_ext >&5
2228 rm -f conftest.err conftest.$ac_objext
2230 rm -f conftest.$ac_ext conftest.$ac_objext
2235 case "x$ac_cv_prog_cc_stdc" in
2237 echo "$as_me:$LINENO: result: none needed" >&5
2238 echo "${ECHO_T}none needed" >&6 ;;
2240 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2241 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2242 CC="$CC $ac_cv_prog_cc_stdc" ;;
2245 # Some people use a C++ compiler to compile C. Since we use `exit',
2246 # in C++ we need to declare it. In case someone uses the same compiler
2247 # for both compiling C and C++ we need to have the C++ compiler decide
2248 # the declaration of exit, since it's the most demanding environment.
2249 cat >conftest.$ac_ext <<_ACEOF
2254 rm -f conftest.$ac_objext
2255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2256 (eval $ac_compile) 2>conftest.er1
2258 grep -v '^ *+' conftest.er1 >conftest.err
2260 cat conftest.err >&5
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); } &&
2263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); }; } &&
2269 { ac_try='test -s conftest.$ac_objext'
2270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; }; then
2275 for ac_declaration in \
2277 'extern "C" void std::exit (int) throw (); using std::exit;' \
2278 'extern "C" void std::exit (int); using std::exit;' \
2279 'extern "C" void exit (int) throw ();' \
2280 'extern "C" void exit (int);' \
2283 cat >conftest.$ac_ext <<_ACEOF
2286 cat confdefs.h >>conftest.$ac_ext
2287 cat >>conftest.$ac_ext <<_ACEOF
2288 /* end confdefs.h. */
2299 rm -f conftest.$ac_objext
2300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2301 (eval $ac_compile) 2>conftest.er1
2303 grep -v '^ *+' conftest.er1 >conftest.err
2305 cat conftest.err >&5
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); } &&
2308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); }; } &&
2314 { ac_try='test -s conftest.$ac_objext'
2315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); }; }; then
2322 echo "$as_me: failed program was:" >&5
2323 sed 's/^/| /' conftest.$ac_ext >&5
2327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2328 cat >conftest.$ac_ext <<_ACEOF
2331 cat confdefs.h >>conftest.$ac_ext
2332 cat >>conftest.$ac_ext <<_ACEOF
2333 /* end confdefs.h. */
2343 rm -f conftest.$ac_objext
2344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2345 (eval $ac_compile) 2>conftest.er1
2347 grep -v '^ *+' conftest.er1 >conftest.err
2349 cat conftest.err >&5
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); } &&
2352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); }; } &&
2358 { ac_try='test -s conftest.$ac_objext'
2359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); }; }; then
2366 echo "$as_me: failed program was:" >&5
2367 sed 's/^/| /' conftest.$ac_ext >&5
2370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2373 if test -n "$ac_declaration"; then
2374 echo '#ifdef __cplusplus' >>confdefs.h
2375 echo $ac_declaration >>confdefs.h
2376 echo '#endif' >>confdefs.h
2380 echo "$as_me: failed program was:" >&5
2381 sed 's/^/| /' conftest.$ac_ext >&5
2384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2386 ac_cpp='$CPP $CPPFLAGS'
2387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2392 ac_cpp='$CXXCPP $CPPFLAGS'
2393 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2394 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2395 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2396 if test -n "$ac_tool_prefix"; then
2397 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2399 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2400 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2401 echo "$as_me:$LINENO: checking for $ac_word" >&5
2402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2403 if test "${ac_cv_prog_CXX+set}" = set; then
2404 echo $ECHO_N "(cached) $ECHO_C" >&6
2406 if test -n "$CXX"; then
2407 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413 test -z "$as_dir" && as_dir=.
2414 for ac_exec_ext in '' $ac_executable_extensions; do
2415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2416 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2426 if test -n "$CXX"; then
2427 echo "$as_me:$LINENO: result: $CXX" >&5
2428 echo "${ECHO_T}$CXX" >&6
2430 echo "$as_me:$LINENO: result: no" >&5
2431 echo "${ECHO_T}no" >&6
2434 test -n "$CXX" && break
2437 if test -z "$CXX"; then
2439 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2441 # Extract the first word of "$ac_prog", so it can be a program name with args.
2442 set dummy $ac_prog; ac_word=$2
2443 echo "$as_me:$LINENO: checking for $ac_word" >&5
2444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2445 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2446 echo $ECHO_N "(cached) $ECHO_C" >&6
2448 if test -n "$ac_ct_CXX"; then
2449 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2455 test -z "$as_dir" && as_dir=.
2456 for ac_exec_ext in '' $ac_executable_extensions; do
2457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2458 ac_cv_prog_ac_ct_CXX="$ac_prog"
2459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2467 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2468 if test -n "$ac_ct_CXX"; then
2469 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2470 echo "${ECHO_T}$ac_ct_CXX" >&6
2472 echo "$as_me:$LINENO: result: no" >&5
2473 echo "${ECHO_T}no" >&6
2476 test -n "$ac_ct_CXX" && break
2478 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2484 # Provide some information about the compiler.
2485 echo "$as_me:$LINENO:" \
2486 "checking for C++ compiler version" >&5
2487 ac_compiler=`set X $ac_compile; echo $2`
2488 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2489 (eval $ac_compiler --version </dev/null >&5) 2>&5
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492 (exit $ac_status); }
2493 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2494 (eval $ac_compiler -v </dev/null >&5) 2>&5
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); }
2498 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2499 (eval $ac_compiler -V </dev/null >&5) 2>&5
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); }
2504 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2505 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2506 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2507 echo $ECHO_N "(cached) $ECHO_C" >&6
2509 cat >conftest.$ac_ext <<_ACEOF
2512 cat confdefs.h >>conftest.$ac_ext
2513 cat >>conftest.$ac_ext <<_ACEOF
2514 /* end confdefs.h. */
2527 rm -f conftest.$ac_objext
2528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2529 (eval $ac_compile) 2>conftest.er1
2531 grep -v '^ *+' conftest.er1 >conftest.err
2533 cat conftest.err >&5
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); } &&
2536 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); }; } &&
2542 { ac_try='test -s conftest.$ac_objext'
2543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); }; }; then
2550 echo "$as_me: failed program was:" >&5
2551 sed 's/^/| /' conftest.$ac_ext >&5
2555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2556 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2559 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2560 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2561 GXX=`test $ac_compiler_gnu = yes && echo yes`
2562 ac_test_CXXFLAGS=${CXXFLAGS+set}
2563 ac_save_CXXFLAGS=$CXXFLAGS
2565 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2566 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2567 if test "${ac_cv_prog_cxx_g+set}" = set; then
2568 echo $ECHO_N "(cached) $ECHO_C" >&6
2570 cat >conftest.$ac_ext <<_ACEOF
2573 cat confdefs.h >>conftest.$ac_ext
2574 cat >>conftest.$ac_ext <<_ACEOF
2575 /* end confdefs.h. */
2585 rm -f conftest.$ac_objext
2586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2587 (eval $ac_compile) 2>conftest.er1
2589 grep -v '^ *+' conftest.er1 >conftest.err
2591 cat conftest.err >&5
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); } &&
2594 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }; } &&
2600 { ac_try='test -s conftest.$ac_objext'
2601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }; }; then
2606 ac_cv_prog_cxx_g=yes
2608 echo "$as_me: failed program was:" >&5
2609 sed 's/^/| /' conftest.$ac_ext >&5
2613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2615 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2616 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2617 if test "$ac_test_CXXFLAGS" = set; then
2618 CXXFLAGS=$ac_save_CXXFLAGS
2619 elif test $ac_cv_prog_cxx_g = yes; then
2620 if test "$GXX" = yes; then
2626 if test "$GXX" = yes; then
2632 for ac_declaration in \
2634 'extern "C" void std::exit (int) throw (); using std::exit;' \
2635 'extern "C" void std::exit (int); using std::exit;' \
2636 'extern "C" void exit (int) throw ();' \
2637 'extern "C" void exit (int);' \
2640 cat >conftest.$ac_ext <<_ACEOF
2643 cat confdefs.h >>conftest.$ac_ext
2644 cat >>conftest.$ac_ext <<_ACEOF
2645 /* end confdefs.h. */
2656 rm -f conftest.$ac_objext
2657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2658 (eval $ac_compile) 2>conftest.er1
2660 grep -v '^ *+' conftest.er1 >conftest.err
2662 cat conftest.err >&5
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); } &&
2665 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); }; } &&
2671 { ac_try='test -s conftest.$ac_objext'
2672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }; }; then
2679 echo "$as_me: failed program was:" >&5
2680 sed 's/^/| /' conftest.$ac_ext >&5
2684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2685 cat >conftest.$ac_ext <<_ACEOF
2688 cat confdefs.h >>conftest.$ac_ext
2689 cat >>conftest.$ac_ext <<_ACEOF
2690 /* end confdefs.h. */
2700 rm -f conftest.$ac_objext
2701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2702 (eval $ac_compile) 2>conftest.er1
2704 grep -v '^ *+' conftest.er1 >conftest.err
2706 cat conftest.err >&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); } &&
2709 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); }; } &&
2715 { ac_try='test -s conftest.$ac_objext'
2716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); }; }; then
2723 echo "$as_me: failed program was:" >&5
2724 sed 's/^/| /' conftest.$ac_ext >&5
2727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2730 if test -n "$ac_declaration"; then
2731 echo '#ifdef __cplusplus' >>confdefs.h
2732 echo $ac_declaration >>confdefs.h
2733 echo '#endif' >>confdefs.h
2737 ac_cpp='$CPP $CPPFLAGS'
2738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2743 ac_cpp='$CPP $CPPFLAGS'
2744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2747 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2748 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2749 # On Suns, sometimes $CPP names a directory.
2750 if test -n "$CPP" && test -d "$CPP"; then
2753 if test -z "$CPP"; then
2754 if test "${ac_cv_prog_CPP+set}" = set; then
2755 echo $ECHO_N "(cached) $ECHO_C" >&6
2757 # Double quotes because CPP needs to be expanded
2758 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2761 for ac_c_preproc_warn_flag in '' yes
2763 # Use a header file that comes with gcc, so configuring glibc
2764 # with a fresh cross-compiler works.
2765 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2766 # <limits.h> exists even on freestanding compilers.
2767 # On the NeXT, cc -E runs the code through the compiler's parser,
2768 # not just through cpp. "Syntax error" is here to catch this case.
2769 cat >conftest.$ac_ext <<_ACEOF
2772 cat confdefs.h >>conftest.$ac_ext
2773 cat >>conftest.$ac_ext <<_ACEOF
2774 /* end confdefs.h. */
2776 # include <limits.h>
2778 # include <assert.h>
2782 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2783 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2785 grep -v '^ *+' conftest.er1 >conftest.err
2787 cat conftest.err >&5
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); } >/dev/null; then
2790 if test -s conftest.err; then
2791 ac_cpp_err=$ac_c_preproc_warn_flag
2792 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2799 if test -z "$ac_cpp_err"; then
2802 echo "$as_me: failed program was:" >&5
2803 sed 's/^/| /' conftest.$ac_ext >&5
2805 # Broken: fails on valid input.
2808 rm -f conftest.err conftest.$ac_ext
2810 # OK, works on sane cases. Now check whether non-existent headers
2811 # can be detected and how.
2812 cat >conftest.$ac_ext <<_ACEOF
2815 cat confdefs.h >>conftest.$ac_ext
2816 cat >>conftest.$ac_ext <<_ACEOF
2817 /* end confdefs.h. */
2818 #include <ac_nonexistent.h>
2820 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2821 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2823 grep -v '^ *+' conftest.er1 >conftest.err
2825 cat conftest.err >&5
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); } >/dev/null; then
2828 if test -s conftest.err; then
2829 ac_cpp_err=$ac_c_preproc_warn_flag
2830 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2837 if test -z "$ac_cpp_err"; then
2838 # Broken: success on invalid input.
2841 echo "$as_me: failed program was:" >&5
2842 sed 's/^/| /' conftest.$ac_ext >&5
2844 # Passes both tests.
2848 rm -f conftest.err conftest.$ac_ext
2851 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2852 rm -f conftest.err conftest.$ac_ext
2853 if $ac_preproc_ok; then
2865 echo "$as_me:$LINENO: result: $CPP" >&5
2866 echo "${ECHO_T}$CPP" >&6
2868 for ac_c_preproc_warn_flag in '' yes
2870 # Use a header file that comes with gcc, so configuring glibc
2871 # with a fresh cross-compiler works.
2872 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2873 # <limits.h> exists even on freestanding compilers.
2874 # On the NeXT, cc -E runs the code through the compiler's parser,
2875 # not just through cpp. "Syntax error" is here to catch this case.
2876 cat >conftest.$ac_ext <<_ACEOF
2879 cat confdefs.h >>conftest.$ac_ext
2880 cat >>conftest.$ac_ext <<_ACEOF
2881 /* end confdefs.h. */
2883 # include <limits.h>
2885 # include <assert.h>
2889 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2890 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2892 grep -v '^ *+' conftest.er1 >conftest.err
2894 cat conftest.err >&5
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); } >/dev/null; then
2897 if test -s conftest.err; then
2898 ac_cpp_err=$ac_c_preproc_warn_flag
2899 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2906 if test -z "$ac_cpp_err"; then
2909 echo "$as_me: failed program was:" >&5
2910 sed 's/^/| /' conftest.$ac_ext >&5
2912 # Broken: fails on valid input.
2915 rm -f conftest.err conftest.$ac_ext
2917 # OK, works on sane cases. Now check whether non-existent headers
2918 # can be detected and how.
2919 cat >conftest.$ac_ext <<_ACEOF
2922 cat confdefs.h >>conftest.$ac_ext
2923 cat >>conftest.$ac_ext <<_ACEOF
2924 /* end confdefs.h. */
2925 #include <ac_nonexistent.h>
2927 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2928 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2930 grep -v '^ *+' conftest.er1 >conftest.err
2932 cat conftest.err >&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); } >/dev/null; then
2935 if test -s conftest.err; then
2936 ac_cpp_err=$ac_c_preproc_warn_flag
2937 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2944 if test -z "$ac_cpp_err"; then
2945 # Broken: success on invalid input.
2948 echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.$ac_ext >&5
2951 # Passes both tests.
2955 rm -f conftest.err conftest.$ac_ext
2958 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2959 rm -f conftest.err conftest.$ac_ext
2960 if $ac_preproc_ok; then
2963 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2964 See \`config.log' for more details." >&5
2965 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2966 See \`config.log' for more details." >&2;}
2967 { (exit 1); exit 1; }; }
2971 ac_cpp='$CPP $CPPFLAGS'
2972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2976 # Find a good install program. We prefer a C program (faster),
2977 # so one script is as good as another. But avoid the broken or
2978 # incompatible versions:
2979 # SysV /etc/install, /usr/sbin/install
2980 # SunOS /usr/etc/install
2981 # IRIX /sbin/install
2983 # AmigaOS /C/install, which installs bootblocks on floppy discs
2984 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2985 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2986 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2987 # OS/2's system install, which has a completely different semantic
2988 # ./install, which can be erroneously created by make from ./install.sh.
2989 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2990 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2991 if test -z "$INSTALL"; then
2992 if test "${ac_cv_path_install+set}" = set; then
2993 echo $ECHO_N "(cached) $ECHO_C" >&6
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999 test -z "$as_dir" && as_dir=.
3000 # Account for people who put trailing slashes in PATH elements.
3002 ./ | .// | /cC/* | \
3003 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3004 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3007 # OSF1 and SCO ODT 3.0 have their own names for install.
3008 # Don't use installbsd from OSF since it installs stuff as root
3010 for ac_prog in ginstall scoinst install; do
3011 for ac_exec_ext in '' $ac_executable_extensions; do
3012 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3013 if test $ac_prog = install &&
3014 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3015 # AIX install. It has an incompatible calling convention.
3017 elif test $ac_prog = install &&
3018 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3019 # program-specific install script used by HP pwplus--don't use.
3022 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3034 if test "${ac_cv_path_install+set}" = set; then
3035 INSTALL=$ac_cv_path_install
3037 # As a last resort, use the slow shell script. We don't cache a
3038 # path for INSTALL within a source directory, because that will
3039 # break other packages using the cache if that directory is
3040 # removed, or if the path is relative.
3041 INSTALL=$ac_install_sh
3044 echo "$as_me:$LINENO: result: $INSTALL" >&5
3045 echo "${ECHO_T}$INSTALL" >&6
3047 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3048 # It thinks the first close brace ends the variable substitution.
3049 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3051 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3053 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3055 for ac_prog in gawk mawk nawk awk
3057 # Extract the first word of "$ac_prog", so it can be a program name with args.
3058 set dummy $ac_prog; ac_word=$2
3059 echo "$as_me:$LINENO: checking for $ac_word" >&5
3060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3061 if test "${ac_cv_prog_AWK+set}" = set; then
3062 echo $ECHO_N "(cached) $ECHO_C" >&6
3064 if test -n "$AWK"; then
3065 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071 test -z "$as_dir" && as_dir=.
3072 for ac_exec_ext in '' $ac_executable_extensions; do
3073 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3074 ac_cv_prog_AWK="$ac_prog"
3075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3084 if test -n "$AWK"; then
3085 echo "$as_me:$LINENO: result: $AWK" >&5
3086 echo "${ECHO_T}$AWK" >&6
3088 echo "$as_me:$LINENO: result: no" >&5
3089 echo "${ECHO_T}no" >&6
3092 test -n "$AWK" && break
3097 ac_cpp='$CPP $CPPFLAGS'
3098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3103 if test -z "$orig_CXXFLAGS"; then
3105 if test x$GCC = xyes && test "x$GXX" = xyes; then
3112 if test x$GCC = xyes && test x$GXX = xyes; then
3114 echo "$as_me:$LINENO: checking for main in -lsupc++" >&5
3115 echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6
3116 if test "${ac_cv_lib_supcpp_main+set}" = set; then
3117 echo $ECHO_N "(cached) $ECHO_C" >&6
3119 ac_check_lib_save_LIBS=$LIBS
3120 LIBS="-lsupc++ $LIBS"
3121 cat >conftest.$ac_ext <<_ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h. */
3137 rm -f conftest.$ac_objext conftest$ac_exeext
3138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3139 (eval $ac_link) 2>conftest.er1
3141 grep -v '^ *+' conftest.er1 >conftest.err
3143 cat conftest.err >&5
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); } &&
3146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); }; } &&
3152 { ac_try='test -s conftest$ac_exeext'
3153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); }; }; then
3158 ac_cv_lib_supcpp_main=yes
3160 echo "$as_me: failed program was:" >&5
3161 sed 's/^/| /' conftest.$ac_ext >&5
3163 ac_cv_lib_supcpp_main=no
3165 rm -f conftest.err conftest.$ac_objext \
3166 conftest$ac_exeext conftest.$ac_ext
3167 LIBS=$ac_check_lib_save_LIBS
3169 echo "$as_me:$LINENO: result: $ac_cv_lib_supcpp_main" >&5
3170 echo "${ECHO_T}$ac_cv_lib_supcpp_main" >&6
3171 if test $ac_cv_lib_supcpp_main = yes; then
3174 LIBS="$LIBS -lsupc++"
3183 cat >>confdefs.h <<\_ACEOF
3184 #define _GNU_SOURCE 1
3191 cat >>confdefs.h <<\_ACEOF
3192 #define _XOPEN_SOURCE_EXTENDED 1
3196 cat >>confdefs.h <<\_ACEOF
3197 #define _XOPEN_SOURCE 2
3201 cat >>confdefs.h <<\_ACEOF
3202 #define __EXTENSIONS__ 1
3210 ac_cpp='$CXXCPP $CPPFLAGS'
3211 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3212 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3213 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3218 ac_cpp='$CXXCPP $CPPFLAGS'
3219 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3220 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3221 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3222 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3223 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3224 if test -z "$CXXCPP"; then
3225 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3226 echo $ECHO_N "(cached) $ECHO_C" >&6
3228 # Double quotes because CXXCPP needs to be expanded
3229 for CXXCPP in "$CXX -E" "/lib/cpp"
3232 for ac_cxx_preproc_warn_flag in '' yes
3234 # Use a header file that comes with gcc, so configuring glibc
3235 # with a fresh cross-compiler works.
3236 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3237 # <limits.h> exists even on freestanding compilers.
3238 # On the NeXT, cc -E runs the code through the compiler's parser,
3239 # not just through cpp. "Syntax error" is here to catch this case.
3240 cat >conftest.$ac_ext <<_ACEOF
3243 cat confdefs.h >>conftest.$ac_ext
3244 cat >>conftest.$ac_ext <<_ACEOF
3245 /* end confdefs.h. */
3247 # include <limits.h>
3249 # include <assert.h>
3253 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3254 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3256 grep -v '^ *+' conftest.er1 >conftest.err
3258 cat conftest.err >&5
3259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260 (exit $ac_status); } >/dev/null; then
3261 if test -s conftest.err; then
3262 ac_cpp_err=$ac_cxx_preproc_warn_flag
3263 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3270 if test -z "$ac_cpp_err"; then
3273 echo "$as_me: failed program was:" >&5
3274 sed 's/^/| /' conftest.$ac_ext >&5
3276 # Broken: fails on valid input.
3279 rm -f conftest.err conftest.$ac_ext
3281 # OK, works on sane cases. Now check whether non-existent headers
3282 # can be detected and how.
3283 cat >conftest.$ac_ext <<_ACEOF
3286 cat confdefs.h >>conftest.$ac_ext
3287 cat >>conftest.$ac_ext <<_ACEOF
3288 /* end confdefs.h. */
3289 #include <ac_nonexistent.h>
3291 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3292 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3294 grep -v '^ *+' conftest.er1 >conftest.err
3296 cat conftest.err >&5
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); } >/dev/null; then
3299 if test -s conftest.err; then
3300 ac_cpp_err=$ac_cxx_preproc_warn_flag
3301 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3308 if test -z "$ac_cpp_err"; then
3309 # Broken: success on invalid input.
3312 echo "$as_me: failed program was:" >&5
3313 sed 's/^/| /' conftest.$ac_ext >&5
3315 # Passes both tests.
3319 rm -f conftest.err conftest.$ac_ext
3322 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3323 rm -f conftest.err conftest.$ac_ext
3324 if $ac_preproc_ok; then
3329 ac_cv_prog_CXXCPP=$CXXCPP
3332 CXXCPP=$ac_cv_prog_CXXCPP
3334 ac_cv_prog_CXXCPP=$CXXCPP
3336 echo "$as_me:$LINENO: result: $CXXCPP" >&5
3337 echo "${ECHO_T}$CXXCPP" >&6
3339 for ac_cxx_preproc_warn_flag in '' yes
3341 # Use a header file that comes with gcc, so configuring glibc
3342 # with a fresh cross-compiler works.
3343 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3344 # <limits.h> exists even on freestanding compilers.
3345 # On the NeXT, cc -E runs the code through the compiler's parser,
3346 # not just through cpp. "Syntax error" is here to catch this case.
3347 cat >conftest.$ac_ext <<_ACEOF
3350 cat confdefs.h >>conftest.$ac_ext
3351 cat >>conftest.$ac_ext <<_ACEOF
3352 /* end confdefs.h. */
3354 # include <limits.h>
3356 # include <assert.h>
3360 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3361 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3363 grep -v '^ *+' conftest.er1 >conftest.err
3365 cat conftest.err >&5
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); } >/dev/null; then
3368 if test -s conftest.err; then
3369 ac_cpp_err=$ac_cxx_preproc_warn_flag
3370 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3377 if test -z "$ac_cpp_err"; then
3380 echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.$ac_ext >&5
3383 # Broken: fails on valid input.
3386 rm -f conftest.err conftest.$ac_ext
3388 # OK, works on sane cases. Now check whether non-existent headers
3389 # can be detected and how.
3390 cat >conftest.$ac_ext <<_ACEOF
3393 cat confdefs.h >>conftest.$ac_ext
3394 cat >>conftest.$ac_ext <<_ACEOF
3395 /* end confdefs.h. */
3396 #include <ac_nonexistent.h>
3398 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3399 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3401 grep -v '^ *+' conftest.er1 >conftest.err
3403 cat conftest.err >&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); } >/dev/null; then
3406 if test -s conftest.err; then
3407 ac_cpp_err=$ac_cxx_preproc_warn_flag
3408 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3415 if test -z "$ac_cpp_err"; then
3416 # Broken: success on invalid input.
3419 echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3422 # Passes both tests.
3426 rm -f conftest.err conftest.$ac_ext
3429 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3430 rm -f conftest.err conftest.$ac_ext
3431 if $ac_preproc_ok; then
3434 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3435 See \`config.log' for more details." >&5
3436 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3437 See \`config.log' for more details." >&2;}
3438 { (exit 1); exit 1; }; }
3442 ac_cpp='$CXXCPP $CPPFLAGS'
3443 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3444 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3445 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3448 echo "$as_me:$LINENO: checking for egrep" >&5
3449 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3450 if test "${ac_cv_prog_egrep+set}" = set; then
3451 echo $ECHO_N "(cached) $ECHO_C" >&6
3453 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3454 then ac_cv_prog_egrep='grep -E'
3455 else ac_cv_prog_egrep='egrep'
3458 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3459 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3460 EGREP=$ac_cv_prog_egrep
3464 echo "$as_me:$LINENO: checking for AIX" >&5
3465 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3466 cat >conftest.$ac_ext <<_ACEOF
3469 cat confdefs.h >>conftest.$ac_ext
3470 cat >>conftest.$ac_ext <<_ACEOF
3471 /* end confdefs.h. */
3477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3478 $EGREP "yes" >/dev/null 2>&1; then
3479 echo "$as_me:$LINENO: result: yes" >&5
3480 echo "${ECHO_T}yes" >&6
3481 cat >>confdefs.h <<\_ACEOF
3482 #define _ALL_SOURCE 1
3486 echo "$as_me:$LINENO: result: no" >&5
3487 echo "${ECHO_T}no" >&6
3492 echo "$as_me:$LINENO: checking for library containing strerror" >&5
3493 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
3494 if test "${ac_cv_search_strerror+set}" = set; then
3495 echo $ECHO_N "(cached) $ECHO_C" >&6
3497 ac_func_search_save_LIBS=$LIBS
3498 ac_cv_search_strerror=no
3499 cat >conftest.$ac_ext <<_ACEOF
3502 cat confdefs.h >>conftest.$ac_ext
3503 cat >>conftest.$ac_ext <<_ACEOF
3504 /* end confdefs.h. */
3506 /* Override any gcc2 internal prototype to avoid an error. */
3510 /* We use char because int might match the return type of a gcc2
3511 builtin and then its argument prototype would still apply. */
3521 rm -f conftest.$ac_objext conftest$ac_exeext
3522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3523 (eval $ac_link) 2>conftest.er1
3525 grep -v '^ *+' conftest.er1 >conftest.err
3527 cat conftest.err >&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); } &&
3530 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); }; } &&
3536 { ac_try='test -s conftest$ac_exeext'
3537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); }; }; then
3542 ac_cv_search_strerror="none required"
3544 echo "$as_me: failed program was:" >&5
3545 sed 's/^/| /' conftest.$ac_ext >&5
3548 rm -f conftest.err conftest.$ac_objext \
3549 conftest$ac_exeext conftest.$ac_ext
3550 if test "$ac_cv_search_strerror" = no; then
3551 for ac_lib in cposix; do
3552 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3553 cat >conftest.$ac_ext <<_ACEOF
3556 cat confdefs.h >>conftest.$ac_ext
3557 cat >>conftest.$ac_ext <<_ACEOF
3558 /* end confdefs.h. */
3560 /* Override any gcc2 internal prototype to avoid an error. */
3564 /* We use char because int might match the return type of a gcc2
3565 builtin and then its argument prototype would still apply. */
3575 rm -f conftest.$ac_objext conftest$ac_exeext
3576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3577 (eval $ac_link) 2>conftest.er1
3579 grep -v '^ *+' conftest.er1 >conftest.err
3581 cat conftest.err >&5
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); } &&
3584 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); }; } &&
3590 { ac_try='test -s conftest$ac_exeext'
3591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); }; }; then
3596 ac_cv_search_strerror="-l$ac_lib"
3599 echo "$as_me: failed program was:" >&5
3600 sed 's/^/| /' conftest.$ac_ext >&5
3603 rm -f conftest.err conftest.$ac_objext \
3604 conftest$ac_exeext conftest.$ac_ext
3607 LIBS=$ac_func_search_save_LIBS
3609 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3610 echo "${ECHO_T}$ac_cv_search_strerror" >&6
3611 if test "$ac_cv_search_strerror" != no; then
3612 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3617 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
3618 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
3619 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
3620 echo $ECHO_N "(cached) $ECHO_C" >&6
3622 ac_check_lib_save_LIBS=$LIBS
3624 cat >conftest.$ac_ext <<_ACEOF
3627 cat confdefs.h >>conftest.$ac_ext
3628 cat >>conftest.$ac_ext <<_ACEOF
3629 /* end confdefs.h. */
3631 /* Override any gcc2 internal prototype to avoid an error. */
3635 /* We use char because int might match the return type of a gcc2
3636 builtin and then its argument prototype would still apply. */
3646 rm -f conftest.$ac_objext conftest$ac_exeext
3647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3648 (eval $ac_link) 2>conftest.er1
3650 grep -v '^ *+' conftest.er1 >conftest.err
3652 cat conftest.err >&5
3653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654 (exit $ac_status); } &&
3655 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); }; } &&
3661 { ac_try='test -s conftest$ac_exeext'
3662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); }; }; then
3667 ac_cv_lib_xpg4_setlocale=yes
3669 echo "$as_me: failed program was:" >&5
3670 sed 's/^/| /' conftest.$ac_ext >&5
3672 ac_cv_lib_xpg4_setlocale=no
3674 rm -f conftest.err conftest.$ac_objext \
3675 conftest$ac_exeext conftest.$ac_ext
3676 LIBS=$ac_check_lib_save_LIBS
3678 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
3679 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
3680 if test $ac_cv_lib_xpg4_setlocale = yes; then
3685 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3686 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3687 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3688 echo $ECHO_N "(cached) $ECHO_C" >&6
3690 ac_check_lib_save_LIBS=$LIBS
3692 cat >conftest.$ac_ext <<_ACEOF
3695 cat confdefs.h >>conftest.$ac_ext
3696 cat >>conftest.$ac_ext <<_ACEOF
3697 /* end confdefs.h. */
3699 /* Override any gcc2 internal prototype to avoid an error. */
3703 /* We use char because int might match the return type of a gcc2
3704 builtin and then its argument prototype would still apply. */
3705 char gethostbyname ();
3714 rm -f conftest.$ac_objext conftest$ac_exeext
3715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3716 (eval $ac_link) 2>conftest.er1
3718 grep -v '^ *+' conftest.er1 >conftest.err
3720 cat conftest.err >&5
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); } &&
3723 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); }; } &&
3729 { ac_try='test -s conftest$ac_exeext'
3730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); }; }; then
3735 ac_cv_lib_nsl_gethostbyname=yes
3737 echo "$as_me: failed program was:" >&5
3738 sed 's/^/| /' conftest.$ac_ext >&5
3740 ac_cv_lib_nsl_gethostbyname=no
3742 rm -f conftest.err conftest.$ac_objext \
3743 conftest$ac_exeext conftest.$ac_ext
3744 LIBS=$ac_check_lib_save_LIBS
3746 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3747 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3748 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3752 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3753 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3754 if test "${ac_cv_lib_socket_socket+set}" = set; then
3755 echo $ECHO_N "(cached) $ECHO_C" >&6
3757 ac_check_lib_save_LIBS=$LIBS
3758 LIBS="-lsocket $LIBS"
3759 cat >conftest.$ac_ext <<_ACEOF
3762 cat confdefs.h >>conftest.$ac_ext
3763 cat >>conftest.$ac_ext <<_ACEOF
3764 /* end confdefs.h. */
3766 /* Override any gcc2 internal prototype to avoid an error. */
3770 /* We use char because int might match the return type of a gcc2
3771 builtin and then its argument prototype would still apply. */
3781 rm -f conftest.$ac_objext conftest$ac_exeext
3782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3783 (eval $ac_link) 2>conftest.er1
3785 grep -v '^ *+' conftest.er1 >conftest.err
3787 cat conftest.err >&5
3788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789 (exit $ac_status); } &&
3790 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); }; } &&
3796 { ac_try='test -s conftest$ac_exeext'
3797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); }; }; then
3802 ac_cv_lib_socket_socket=yes
3804 echo "$as_me: failed program was:" >&5
3805 sed 's/^/| /' conftest.$ac_ext >&5
3807 ac_cv_lib_socket_socket=no
3809 rm -f conftest.err conftest.$ac_objext \
3810 conftest$ac_exeext conftest.$ac_ext
3811 LIBS=$ac_check_lib_save_LIBS
3813 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3814 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3815 if test $ac_cv_lib_socket_socket = yes; then
3816 LIBS="$LIBS -lsocket"
3823 support_addstrings=no
3825 support_inheritpixmap=no
3828 support_keepscrolling=yes
3829 support_selectionscrolling=yes
3831 support_mousewheel=yes
3832 support_mouseslipwheel=yes
3836 support_text_blink=yes
3837 support_pointer_blank=yes
3838 support_scroll_rxvt=yes
3839 support_scroll_next=yes
3840 support_scroll_xterm=yes
3841 support_scroll_plain=yes
3846 support_combining=yes
3847 support_8bitctrls=no
3848 support_iso14755=yes
3853 if test "x$enable_shared" = xyes; then
3855 cat >>confdefs.h <<\_ACEOF
3863 # Check whether --enable-everything or --disable-everything was given.
3864 if test "${enable_everything+set}" = set; then
3865 enableval="$enable_everything"
3867 if test x$enableval = xno; then
3870 support_inheritpixmap=no
3873 support_keepscrolling=no
3874 support_selectionscrolling=no
3877 support_mousewheel=no
3878 support_mouseslipwheel=no
3879 support_text_blink=no
3880 support_pointer_blank=no
3881 support_scroll_rxvt=no
3882 support_scroll_next=no
3883 support_scroll_xterm=no
3884 support_scroll_plain=no
3891 support_combining=no
3892 support_8bitctrls=no
3897 if test x$enableval = xyes; then
3900 support_inheritpixmap=yes
3903 support_keepscrolling=yes
3904 support_selectionscrolling=yes
3907 support_mousewheel=yes
3908 support_mouseslipwheel=yes
3909 support_text_blink=yes
3910 support_pointer_blank=yes
3911 support_scroll_rxvt=yes
3912 support_scroll_next=yes
3913 support_scroll_xterm=yes
3914 support_scroll_plain=yes
3920 support_unicode3=yes
3921 support_combining=yes
3922 #support_8bitctrls=yes
3923 support_iso14755=yes
3930 # Check whether --enable-unicode3 or --disable-unicode3 was given.
3931 if test "${enable_unicode3+set}" = set; then
3932 enableval="$enable_unicode3"
3933 if test x$enableval = xyes -o x$enableval = xno; then
3934 support_unicode3=$enableval
3938 # Check whether --enable-combining or --disable-combining was given.
3939 if test "${enable_combining+set}" = set; then
3940 enableval="$enable_combining"
3941 if test x$enableval = xyes -o x$enableval = xno; then
3942 support_combining=$enableval
3946 # Check whether --enable-xft or --disable-xft was given.
3947 if test "${enable_xft+set}" = set; then
3948 enableval="$enable_xft"
3949 if test x$enableval = xyes -o x$enableval = xno; then
3950 support_xft=$enableval
3954 # Check whether --enable-font-styles or --disable-font-styles was given.
3955 if test "${enable_font_styles+set}" = set; then
3956 enableval="$enable_font_styles"
3957 if test x$enableval = xyes -o x$enableval = xno; then
3958 support_styles=$enableval
3962 # Check whether --enable-utmp or --disable-utmp was given.
3963 if test "${enable_utmp+set}" = set; then
3964 enableval="$enable_utmp"
3965 if test x$enableval = xyes -o x$enableval = xno; then
3966 support_utmp=$enableval
3970 # Check whether --enable-wtmp or --disable-wtmp was given.
3971 if test "${enable_wtmp+set}" = set; then
3972 enableval="$enable_wtmp"
3973 if test x$enableval = xyes -o x$enableval = xno; then
3974 support_wtmp=$enableval
3978 # Check whether --enable-lastlog or --disable-lastlog was given.
3979 if test "${enable_lastlog+set}" = set; then
3980 enableval="$enable_lastlog"
3981 if test x$enableval = xyes -o x$enableval = xno; then
3982 support_lastlog=$enableval
3986 # Check whether --enable-xpm-background or --disable-xpm-background was given.
3987 if test "${enable_xpm_background+set}" = set; then
3988 enableval="$enable_xpm_background"
3989 if test x$enableval = xyes -o x$enableval = xno; then
3990 support_xpm=$enableval
3994 # Check whether --enable-transparency or --disable-transparency was given.
3995 if test "${enable_transparency+set}" = set; then
3996 enableval="$enable_transparency"
3997 if test x$enableval = xyes -o x$enableval = xno; then
3998 support_inheritpixmap=$enableval
4002 # Check whether --enable-tinting or --disable-tinting was given.
4003 if test "${enable_tinting+set}" = set; then
4004 enableval="$enable_tinting"
4005 if test x$enableval = xyes -o x$enableval = xno; then
4006 support_tinting=$enableval
4010 # Check whether --enable-fading or --disable-fading was given.
4011 if test "${enable_fading+set}" = set; then
4012 enableval="$enable_fading"
4013 if test x$enableval = xyes -o x$enableval = xno; then
4014 support_fading=$enableval
4018 # Check whether --enable-menubar or --disable-menubar was given.
4019 if test "${enable_menubar+set}" = set; then
4020 enableval="$enable_menubar"
4021 if test x$enableval = xyes -o x$enableval = xno; then
4022 support_menubar=$enableval
4026 # Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given.
4027 if test "${enable_rxvt_scroll+set}" = set; then
4028 enableval="$enable_rxvt_scroll"
4029 if test x$enableval = xyes -o x$enableval = xno; then
4030 support_scroll_rxvt=$enableval
4034 # Check whether --enable-next-scroll or --disable-next-scroll was given.
4035 if test "${enable_next_scroll+set}" = set; then
4036 enableval="$enable_next_scroll"
4037 if test x$enableval = xyes -o x$enableval = xno; then
4038 support_scroll_next=$enableval
4042 # Check whether --enable-xterm-scroll or --disable-xterm-scroll was given.
4043 if test "${enable_xterm_scroll+set}" = set; then
4044 enableval="$enable_xterm_scroll"
4045 if test x$enableval = xyes -o x$enableval = xno; then
4046 support_scroll_xterm=$enableval
4050 # Check whether --enable-plain-scroll or --disable-plain-scroll was given.
4051 if test "${enable_plain_scroll+set}" = set; then
4052 enableval="$enable_plain_scroll"
4053 if test x$enableval = xyes -o x$enableval = xno; then
4054 support_scroll_plain=$enableval
4058 # Check whether --enable-half-shadow or --disable-half-shadow was given.
4059 if test "${enable_half_shadow+set}" = set; then
4060 enableval="$enable_half_shadow"
4061 if test x$enableval = xyes; then
4063 cat >>confdefs.h <<\_ACEOF
4064 #define HALFSHADOW 1
4071 # Check whether --with-codesets or --without-codesets was given.
4072 if test "${with_codesets+set}" = set; then
4073 withval="$with_codesets"
4077 # Check whether --enable-xim or --disable-xim was given.
4078 if test "${enable_xim+set}" = set; then
4079 enableval="$enable_xim"
4080 if test x$enableval = xyes -o x$enableval = xno; then
4081 support_xim=$enableval
4085 # Check whether --enable-ttygid or --disable-ttygid was given.
4086 if test "${enable_ttygid+set}" = set; then
4087 enableval="$enable_ttygid"
4088 if test x$enableval = xyes; then
4090 cat >>confdefs.h <<\_ACEOF
4091 #define TTY_GID_SUPPORT 1
4097 # Check whether --enable-backspace-key or --disable-backspace-key was given.
4098 if test "${enable_backspace_key+set}" = set; then
4099 enableval="$enable_backspace_key"
4100 if test x$enableval = xno; then
4102 cat >>confdefs.h <<\_ACEOF
4103 #define NO_BACKSPACE_KEY 1
4109 # Check whether --enable-delete-key or --disable-delete-key was given.
4110 if test "${enable_delete_key+set}" = set; then
4111 enableval="$enable_delete_key"
4112 if test x$enableval = xno; then
4114 cat >>confdefs.h <<\_ACEOF
4115 #define NO_DELETE_KEY 1
4121 # Check whether --enable-resources or --disable-resources was given.
4122 if test "${enable_resources+set}" = set; then
4123 enableval="$enable_resources"
4124 if test x$enableval = xno; then
4126 cat >>confdefs.h <<\_ACEOF
4127 #define NO_RESOURCES 1
4133 # Check whether --enable-xgetdefault or --disable-xgetdefault was given.
4134 if test "${enable_xgetdefault+set}" = set; then
4135 enableval="$enable_xgetdefault"
4136 if test x$enableval = xyes; then
4138 cat >>confdefs.h <<\_ACEOF
4139 #define USE_XGETDEFAULT 1
4145 # Check whether --enable-8bitctrls or --disable-8bitctrls was given.
4146 if test "${enable_8bitctrls+set}" = set; then
4147 enableval="$enable_8bitctrls"
4148 if test x$enableval = xyes -o x$enableval = xno; then
4149 support_8bitctrls=$enableval
4154 # Check whether --enable-fallback or --disable-fallback was given.
4155 if test "${enable_fallback+set}" = set; then
4156 enableval="$enable_fallback"
4158 test x$enableval = xyes && enableval=Rxvt
4159 test x$enableval = xno && enableval=
4160 RESFALLBACK="$enableval"
4164 if test x$RESFALLBACK != x; then
4166 cat >>confdefs.h <<_ACEOF
4167 #define RESFALLBACK "$RESFALLBACK"
4174 # Check whether --with-res-name or --without-res-name was given.
4175 if test "${with_res_name+set}" = set; then
4176 withval="$with_res_name"
4180 cat >>confdefs.h <<_ACEOF
4181 #define RESNAME "$RESNAME"
4187 # Check whether --with-res-class or --without-res-class was given.
4188 if test "${with_res_class+set}" = set; then
4189 withval="$with_res_class"
4193 cat >>confdefs.h <<_ACEOF
4194 #define RESCLASS "$RESCLASS"
4200 # Check whether --with-name or --without-name was given.
4201 if test "${with_name+set}" = set; then
4202 withval="$with_name"
4206 cat >>confdefs.h <<_ACEOF
4207 #define RXVTNAME "$RXVTNAME"
4211 RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
4214 # Check whether --enable-strings or --disable-strings was given.
4215 if test "${enable_strings+set}" = set; then
4216 enableval="$enable_strings"
4217 if test x$enableval = xyes -o x$enableval = xno; then
4218 support_addstrings=$enableval
4222 # Check whether --enable-swapscreen or --disable-swapscreen was given.
4223 if test "${enable_swapscreen+set}" = set; then
4224 enableval="$enable_swapscreen"
4225 if test x$enableval = xno; then
4227 cat >>confdefs.h <<\_ACEOF
4228 #define NO_SECONDARY_SCREEN 1
4234 # Check whether --enable-iso14755 or --disable-iso14755 was given.
4235 if test "${enable_iso14755+set}" = set; then
4236 enableval="$enable_iso14755"
4237 if test x$enableval = xyes -o x$enableval = xno; then
4238 support_iso14755=$enableval
4242 # Check whether --enable-frills or --disable-frills was given.
4243 if test "${enable_frills+set}" = set; then
4244 enableval="$enable_frills"
4245 if test x$enableval = xyes -o x$enableval = xno; then
4246 support_frills=$enableval
4250 # Check whether --enable-24bit or --disable-24bit was given.
4251 if test "${enable_24bit+set}" = set; then
4252 enableval="$enable_24bit"
4253 if test x$enableval = xyes -o x$enableval = xno; then
4254 support_24bit=$enableval
4258 # Check whether --enable-keepscrolling or --disable-keepscrolling was given.
4259 if test "${enable_keepscrolling+set}" = set; then
4260 enableval="$enable_keepscrolling"
4261 if test x$enableval = xyes -o x$enableval = xno; then
4262 support_keepscrolling=$enableval
4266 # Check whether --enable-selectionscrolling or --disable-selectionscrolling was given.
4267 if test "${enable_selectionscrolling+set}" = set; then
4268 enableval="$enable_selectionscrolling"
4269 if test x$enableval = xyes -o x$enableval = xno; then
4270 support_selectionscrolling=$enableval
4274 # Check whether --enable-mousewheel or --disable-mousewheel was given.
4275 if test "${enable_mousewheel+set}" = set; then
4276 enableval="$enable_mousewheel"
4277 if test x$enableval = xyes -o x$enableval = xno; then
4278 support_mousewheel=$enableval
4282 # Check whether --enable-slipwheeling or --disable-slipwheeling was given.
4283 if test "${enable_slipwheeling+set}" = set; then
4284 enableval="$enable_slipwheeling"
4285 if test x$enableval = xyes -o x$enableval = xno; then
4286 support_mouseslipwheel=$enableval
4290 # Check whether --enable-dmalloc or --disable-dmalloc was given.
4291 if test "${enable_dmalloc+set}" = set; then
4292 enableval="$enable_dmalloc"
4293 if test x$enableval = xyes; then
4295 DEBUG=-DDEBUG_MALLOC
4296 DLIB="-L/usr/local/lib -ldmalloc"
4297 DINCLUDE=-I/usr/local/include
4301 # Check whether --enable-dlmalloc or --disable-dlmalloc was given.
4302 if test "${enable_dlmalloc+set}" = set; then
4303 enableval="$enable_dlmalloc"
4304 if test x$enableval = xyes; then
4307 DLIB="-L/usr/local/lib -ldlmalloc"
4312 # Check whether --enable-smart-resize or --disable-smart-resize was given.
4313 if test "${enable_smart_resize+set}" = set; then
4314 enableval="$enable_smart_resize"
4315 if test x$enableval = xyes; then
4317 cat >>confdefs.h <<\_ACEOF
4318 #define SMART_RESIZE 1
4324 # Check whether --enable-text-blink or --disable-text-blink was given.
4325 if test "${enable_text_blink+set}" = set; then
4326 enableval="$enable_text_blink"
4327 if test x$enableval = xyes -o x$enableval = xno; then
4328 support_text_blink=$enableval
4332 # Check whether --enable-pointer-blank or --disable-pointer-blank was given.
4333 if test "${enable_pointer_blank+set}" = set; then
4334 enableval="$enable_pointer_blank"
4335 if test x$enableval = xyes -o x$enableval = xno; then
4336 support_pointer_blank=$enableval
4341 # Check whether --with-term or --without-term was given.
4342 if test "${with_term+set}" = set; then
4343 withval="$with_term"
4344 if test x$withval != x; then
4346 cat >>confdefs.h <<_ACEOF
4347 #define TERMENV "$withval"
4354 # Check whether --with-terminfo or --without-terminfo was given.
4355 if test "${with_terminfo+set}" = set; then
4356 withval="$with_terminfo"
4357 if test x$withval != x; then
4359 cat >>confdefs.h <<_ACEOF
4360 #define RXVT_TERMINFO "$withval"
4368 cat >>confdefs.h <<\_ACEOF
4369 #define PROTOTYPES 1
4373 # Extract the first word of "mv", so it can be a program name with args.
4374 set dummy mv; ac_word=$2
4375 echo "$as_me:$LINENO: checking for $ac_word" >&5
4376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4377 if test "${ac_cv_path_MV+set}" = set; then
4378 echo $ECHO_N "(cached) $ECHO_C" >&6
4382 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4389 test -z "$as_dir" && as_dir=.
4390 for ac_exec_ext in '' $ac_executable_extensions; do
4391 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4392 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4399 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4405 if test -n "$MV"; then
4406 echo "$as_me:$LINENO: result: $MV" >&5
4407 echo "${ECHO_T}$MV" >&6
4409 echo "$as_me:$LINENO: result: no" >&5
4410 echo "${ECHO_T}no" >&6
4413 # Extract the first word of "rm", so it can be a program name with args.
4414 set dummy rm; ac_word=$2
4415 echo "$as_me:$LINENO: checking for $ac_word" >&5
4416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4417 if test "${ac_cv_path_RM+set}" = set; then
4418 echo $ECHO_N "(cached) $ECHO_C" >&6
4422 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4429 test -z "$as_dir" && as_dir=.
4430 for ac_exec_ext in '' $ac_executable_extensions; do
4431 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4432 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4439 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4445 if test -n "$RM"; then
4446 echo "$as_me:$LINENO: result: $RM" >&5
4447 echo "${ECHO_T}$RM" >&6
4449 echo "$as_me:$LINENO: result: no" >&5
4450 echo "${ECHO_T}no" >&6
4453 # Extract the first word of "cp", so it can be a program name with args.
4454 set dummy cp; ac_word=$2
4455 echo "$as_me:$LINENO: checking for $ac_word" >&5
4456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4457 if test "${ac_cv_path_CP+set}" = set; then
4458 echo $ECHO_N "(cached) $ECHO_C" >&6
4462 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469 test -z "$as_dir" && as_dir=.
4470 for ac_exec_ext in '' $ac_executable_extensions; do
4471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4472 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4479 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4485 if test -n "$CP"; then
4486 echo "$as_me:$LINENO: result: $CP" >&5
4487 echo "${ECHO_T}$CP" >&6
4489 echo "$as_me:$LINENO: result: no" >&5
4490 echo "${ECHO_T}no" >&6
4493 # Extract the first word of "ln", so it can be a program name with args.
4494 set dummy ln; ac_word=$2
4495 echo "$as_me:$LINENO: checking for $ac_word" >&5
4496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4497 if test "${ac_cv_path_LN+set}" = set; then
4498 echo $ECHO_N "(cached) $ECHO_C" >&6
4502 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4509 test -z "$as_dir" && as_dir=.
4510 for ac_exec_ext in '' $ac_executable_extensions; do
4511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4512 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4519 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
4525 if test -n "$LN"; then
4526 echo "$as_me:$LINENO: result: $LN" >&5
4527 echo "${ECHO_T}$LN" >&6
4529 echo "$as_me:$LINENO: result: no" >&5
4530 echo "${ECHO_T}no" >&6
4533 # Extract the first word of "sed", so it can be a program name with args.
4534 set dummy sed; ac_word=$2
4535 echo "$as_me:$LINENO: checking for $ac_word" >&5
4536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4537 if test "${ac_cv_path_SED+set}" = set; then
4538 echo $ECHO_N "(cached) $ECHO_C" >&6
4542 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549 test -z "$as_dir" && as_dir=.
4550 for ac_exec_ext in '' $ac_executable_extensions; do
4551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4552 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4559 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4565 if test -n "$SED"; then
4566 echo "$as_me:$LINENO: result: $SED" >&5
4567 echo "${ECHO_T}$SED" >&6
4569 echo "$as_me:$LINENO: result: no" >&5
4570 echo "${ECHO_T}no" >&6
4573 # Extract the first word of "echo", so it can be a program name with args.
4574 set dummy echo; ac_word=$2
4575 echo "$as_me:$LINENO: checking for $ac_word" >&5
4576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4577 if test "${ac_cv_path_ECHO+set}" = set; then
4578 echo $ECHO_N "(cached) $ECHO_C" >&6
4582 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589 test -z "$as_dir" && as_dir=.
4590 for ac_exec_ext in '' $ac_executable_extensions; do
4591 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4592 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4599 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4603 ECHO=$ac_cv_path_ECHO
4605 if test -n "$ECHO"; then
4606 echo "$as_me:$LINENO: result: $ECHO" >&5
4607 echo "${ECHO_T}$ECHO" >&6
4609 echo "$as_me:$LINENO: result: no" >&5
4610 echo "${ECHO_T}no" >&6
4613 # Extract the first word of "cmp", so it can be a program name with args.
4614 set dummy cmp; ac_word=$2
4615 echo "$as_me:$LINENO: checking for $ac_word" >&5
4616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4617 if test "${ac_cv_path_CMP+set}" = set; then
4618 echo $ECHO_N "(cached) $ECHO_C" >&6
4622 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629 test -z "$as_dir" && as_dir=.
4630 for ac_exec_ext in '' $ac_executable_extensions; do
4631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4632 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4639 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4645 if test -n "$CMP"; then
4646 echo "$as_me:$LINENO: result: $CMP" >&5
4647 echo "${ECHO_T}$CMP" >&6
4649 echo "$as_me:$LINENO: result: no" >&5
4650 echo "${ECHO_T}no" >&6
4653 # Extract the first word of "tbl", so it can be a program name with args.
4654 set dummy tbl; ac_word=$2
4655 echo "$as_me:$LINENO: checking for $ac_word" >&5
4656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4657 if test "${ac_cv_path_TBL+set}" = set; then
4658 echo $ECHO_N "(cached) $ECHO_C" >&6
4662 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669 test -z "$as_dir" && as_dir=.
4670 for ac_exec_ext in '' $ac_executable_extensions; do
4671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4672 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4684 if test -n "$TBL"; then
4685 echo "$as_me:$LINENO: result: $TBL" >&5
4686 echo "${ECHO_T}$TBL" >&6
4688 echo "$as_me:$LINENO: result: no" >&5
4689 echo "${ECHO_T}no" >&6
4692 # Extract the first word of "tic", so it can be a program name with args.
4693 set dummy tic; ac_word=$2
4694 echo "$as_me:$LINENO: checking for $ac_word" >&5
4695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4696 if test "${ac_cv_path_TIC+set}" = set; then
4697 echo $ECHO_N "(cached) $ECHO_C" >&6
4701 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
4704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708 test -z "$as_dir" && as_dir=.
4709 for ac_exec_ext in '' $ac_executable_extensions; do
4710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4711 ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext"
4712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4723 if test -n "$TIC"; then
4724 echo "$as_me:$LINENO: result: $TIC" >&5
4725 echo "${ECHO_T}$TIC" >&6
4727 echo "$as_me:$LINENO: result: no" >&5
4728 echo "${ECHO_T}no" >&6
4735 if test "x$ac_path_x_has_been_run" != xyes; then
4736 echo "$as_me:$LINENO: checking for X" >&5
4737 echo $ECHO_N "checking for X... $ECHO_C" >&6
4739 ac_path_x_has_been_run=yes
4741 # Check whether --with-x or --without-x was given.
4742 if test "${with_x+set}" = set; then
4746 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4747 if test "x$with_x" = xno; then
4748 # The user explicitly disabled X.
4751 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4752 # Both variables are already set.
4755 if test "${ac_cv_have_x+set}" = set; then
4756 echo $ECHO_N "(cached) $ECHO_C" >&6
4758 # One or both of the vars are not set, and there is no cached value.
4759 ac_x_includes=no ac_x_libraries=no
4761 if mkdir conftest.dir; then
4763 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4764 cat >Imakefile <<'_ACEOF'
4766 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4768 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4769 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4770 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4771 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4772 for ac_extension in a so sl; do
4773 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4774 test -f $ac_im_libdir/libX11.$ac_extension; then
4775 ac_im_usrlibdir=$ac_im_libdir; break
4778 # Screen out bogus values from the imake configuration. They are
4779 # bogus both because they are the default anyway, and because
4780 # using them would break gcc on systems where it needs fixed includes.
4781 case $ac_im_incroot in
4783 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4785 case $ac_im_usrlibdir in
4787 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4794 # Standard set of common directories for X headers.
4795 # Check X11 before X11Rn because it is often a symlink to the current release.
4807 /usr/local/X11/include
4808 /usr/local/X11R6/include
4809 /usr/local/X11R5/include
4810 /usr/local/X11R4/include
4812 /usr/local/include/X11
4813 /usr/local/include/X11R6
4814 /usr/local/include/X11R5
4815 /usr/local/include/X11R4
4819 /usr/XFree86/include/X11
4823 /usr/unsupported/include
4825 /usr/local/x11r5/include
4826 /usr/lpp/Xamples/include
4828 /usr/openwin/include
4829 /usr/openwin/share/include'
4831 if test "$ac_x_includes" = no; then
4832 # Guess where to find include files, by looking for a specified header file.
4833 # First, try using that file with no special directory specified.
4834 cat >conftest.$ac_ext <<_ACEOF
4837 cat confdefs.h >>conftest.$ac_ext
4838 cat >>conftest.$ac_ext <<_ACEOF
4839 /* end confdefs.h. */
4840 #include <X11/Xlib.h>
4842 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4843 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4845 grep -v '^ *+' conftest.er1 >conftest.err
4847 cat conftest.err >&5
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); } >/dev/null; then
4850 if test -s conftest.err; then
4851 ac_cpp_err=$ac_cxx_preproc_warn_flag
4852 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4859 if test -z "$ac_cpp_err"; then
4860 # We can compile using X headers with no special include directory.
4863 echo "$as_me: failed program was:" >&5
4864 sed 's/^/| /' conftest.$ac_ext >&5
4866 for ac_dir in $ac_x_header_dirs; do
4867 if test -r "$ac_dir/X11/Xlib.h"; then
4868 ac_x_includes=$ac_dir
4873 rm -f conftest.err conftest.$ac_ext
4874 fi # $ac_x_includes = no
4876 if test "$ac_x_libraries" = no; then
4877 # Check for the libraries.
4878 # See if we find them without any special options.
4879 # Don't add to $LIBS permanently.
4882 cat >conftest.$ac_ext <<_ACEOF
4885 cat confdefs.h >>conftest.$ac_ext
4886 cat >>conftest.$ac_ext <<_ACEOF
4887 /* end confdefs.h. */
4888 #include <X11/Xlib.h>
4897 rm -f conftest.$ac_objext conftest$ac_exeext
4898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4899 (eval $ac_link) 2>conftest.er1
4901 grep -v '^ *+' conftest.er1 >conftest.err
4903 cat conftest.err >&5
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); } &&
4906 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); }; } &&
4912 { ac_try='test -s conftest$ac_exeext'
4913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); }; }; then
4919 # We can link X programs with no special library path.
4922 echo "$as_me: failed program was:" >&5
4923 sed 's/^/| /' conftest.$ac_ext >&5
4926 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4928 # Don't even attempt the hair of trying to link an X program!
4929 for ac_extension in a so sl; do
4930 if test -r $ac_dir/libX11.$ac_extension; then
4931 ac_x_libraries=$ac_dir
4937 rm -f conftest.err conftest.$ac_objext \
4938 conftest$ac_exeext conftest.$ac_ext
4939 fi # $ac_x_libraries = no
4941 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
4942 # Didn't find X anywhere. Cache the known absence of X.
4943 ac_cv_have_x="have_x=no"
4945 # Record where we found X for the cache.
4946 ac_cv_have_x="have_x=yes \
4947 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4952 eval "$ac_cv_have_x"
4955 if test "$have_x" != yes; then
4956 echo "$as_me:$LINENO: result: $have_x" >&5
4957 echo "${ECHO_T}$have_x" >&6
4960 # If each of the values was on the command line, it overrides each guess.
4961 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4962 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4963 # Update the cache value to reflect the command line values.
4964 ac_cv_have_x="have_x=yes \
4965 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4966 # It might be that x_includes is empty (headers are found in the
4967 # standard search path. Then output the corresponding message
4968 ac_out_x_includes=$x_includes
4969 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
4970 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
4971 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
4975 if test "$no_x" = yes; then
4976 # Not all programs may use this symbol, but it does not hurt to define it.
4978 cat >>confdefs.h <<\_ACEOF
4979 #define X_DISPLAY_MISSING 1
4982 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4984 if test -n "$x_includes"; then
4985 X_CFLAGS="$X_CFLAGS -I$x_includes"
4988 # It would also be nice to do this for all -L options, not just this one.
4989 if test -n "$x_libraries"; then
4990 X_LIBS="$X_LIBS -L$x_libraries"
4991 # For Solaris; some versions of Sun CC require a space after -R and
4992 # others require no space. Words are not sufficient . . . .
4993 case `(uname -sr) 2>/dev/null` in
4995 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4996 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
4997 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4998 cat >conftest.$ac_ext <<_ACEOF
5001 cat confdefs.h >>conftest.$ac_ext
5002 cat >>conftest.$ac_ext <<_ACEOF
5003 /* end confdefs.h. */
5013 rm -f conftest.$ac_objext conftest$ac_exeext
5014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5015 (eval $ac_link) 2>conftest.er1
5017 grep -v '^ *+' conftest.er1 >conftest.err
5019 cat conftest.err >&5
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); } &&
5022 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); }; } &&
5028 { ac_try='test -s conftest$ac_exeext'
5029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033 (exit $ac_status); }; }; then
5036 echo "$as_me: failed program was:" >&5
5037 sed 's/^/| /' conftest.$ac_ext >&5
5041 rm -f conftest.err conftest.$ac_objext \
5042 conftest$ac_exeext conftest.$ac_ext
5043 if test $ac_R_nospace = yes; then
5044 echo "$as_me:$LINENO: result: no" >&5
5045 echo "${ECHO_T}no" >&6
5046 X_LIBS="$X_LIBS -R$x_libraries"
5048 LIBS="$ac_xsave_LIBS -R $x_libraries"
5049 cat >conftest.$ac_ext <<_ACEOF
5052 cat confdefs.h >>conftest.$ac_ext
5053 cat >>conftest.$ac_ext <<_ACEOF
5054 /* end confdefs.h. */
5064 rm -f conftest.$ac_objext conftest$ac_exeext
5065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5066 (eval $ac_link) 2>conftest.er1
5068 grep -v '^ *+' conftest.er1 >conftest.err
5070 cat conftest.err >&5
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); } &&
5073 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); }; } &&
5079 { ac_try='test -s conftest$ac_exeext'
5080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); }; }; then
5087 echo "$as_me: failed program was:" >&5
5088 sed 's/^/| /' conftest.$ac_ext >&5
5092 rm -f conftest.err conftest.$ac_objext \
5093 conftest$ac_exeext conftest.$ac_ext
5094 if test $ac_R_space = yes; then
5095 echo "$as_me:$LINENO: result: yes" >&5
5096 echo "${ECHO_T}yes" >&6
5097 X_LIBS="$X_LIBS -R $x_libraries"
5099 echo "$as_me:$LINENO: result: neither works" >&5
5100 echo "${ECHO_T}neither works" >&6
5107 # Check for system-dependent libraries X programs must link with.
5108 # Do this before checking for the system-independent R6 libraries
5109 # (-lICE), since we may need -lsocket or whatever for X linking.
5111 if test "$ISC" = yes; then
5112 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5114 # Martyn Johnson says this is needed for Ultrix, if the X
5115 # libraries were built with DECnet support. And Karl Berry says
5116 # the Alpha needs dnet_stub (dnet does not exist).
5117 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5118 cat >conftest.$ac_ext <<_ACEOF
5121 cat confdefs.h >>conftest.$ac_ext
5122 cat >>conftest.$ac_ext <<_ACEOF
5123 /* end confdefs.h. */
5125 /* Override any gcc2 internal prototype to avoid an error. */
5129 /* We use char because int might match the return type of a gcc2
5130 builtin and then its argument prototype would still apply. */
5131 char XOpenDisplay ();
5140 rm -f conftest.$ac_objext conftest$ac_exeext
5141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5142 (eval $ac_link) 2>conftest.er1
5144 grep -v '^ *+' conftest.er1 >conftest.err
5146 cat conftest.err >&5
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); } &&
5149 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154 (exit $ac_status); }; } &&
5155 { ac_try='test -s conftest$ac_exeext'
5156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160 (exit $ac_status); }; }; then
5163 echo "$as_me: failed program was:" >&5
5164 sed 's/^/| /' conftest.$ac_ext >&5
5166 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5167 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5168 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5169 echo $ECHO_N "(cached) $ECHO_C" >&6
5171 ac_check_lib_save_LIBS=$LIBS
5173 cat >conftest.$ac_ext <<_ACEOF
5176 cat confdefs.h >>conftest.$ac_ext
5177 cat >>conftest.$ac_ext <<_ACEOF
5178 /* end confdefs.h. */
5180 /* Override any gcc2 internal prototype to avoid an error. */
5184 /* We use char because int might match the return type of a gcc2
5185 builtin and then its argument prototype would still apply. */
5195 rm -f conftest.$ac_objext conftest$ac_exeext
5196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5197 (eval $ac_link) 2>conftest.er1
5199 grep -v '^ *+' conftest.er1 >conftest.err
5201 cat conftest.err >&5
5202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203 (exit $ac_status); } &&
5204 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); }; } &&
5210 { ac_try='test -s conftest$ac_exeext'
5211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215 (exit $ac_status); }; }; then
5216 ac_cv_lib_dnet_dnet_ntoa=yes
5218 echo "$as_me: failed program was:" >&5
5219 sed 's/^/| /' conftest.$ac_ext >&5
5221 ac_cv_lib_dnet_dnet_ntoa=no
5223 rm -f conftest.err conftest.$ac_objext \
5224 conftest$ac_exeext conftest.$ac_ext
5225 LIBS=$ac_check_lib_save_LIBS
5227 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5228 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5229 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5230 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5233 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5234 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5235 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5236 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5237 echo $ECHO_N "(cached) $ECHO_C" >&6
5239 ac_check_lib_save_LIBS=$LIBS
5240 LIBS="-ldnet_stub $LIBS"
5241 cat >conftest.$ac_ext <<_ACEOF
5244 cat confdefs.h >>conftest.$ac_ext
5245 cat >>conftest.$ac_ext <<_ACEOF
5246 /* end confdefs.h. */
5248 /* Override any gcc2 internal prototype to avoid an error. */
5252 /* We use char because int might match the return type of a gcc2
5253 builtin and then its argument prototype would still apply. */
5263 rm -f conftest.$ac_objext conftest$ac_exeext
5264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5265 (eval $ac_link) 2>conftest.er1
5267 grep -v '^ *+' conftest.er1 >conftest.err
5269 cat conftest.err >&5
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); } &&
5272 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277 (exit $ac_status); }; } &&
5278 { ac_try='test -s conftest$ac_exeext'
5279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283 (exit $ac_status); }; }; then
5284 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5286 echo "$as_me: failed program was:" >&5
5287 sed 's/^/| /' conftest.$ac_ext >&5
5289 ac_cv_lib_dnet_stub_dnet_ntoa=no
5291 rm -f conftest.err conftest.$ac_objext \
5292 conftest$ac_exeext conftest.$ac_ext
5293 LIBS=$ac_check_lib_save_LIBS
5295 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5296 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5297 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5298 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5303 rm -f conftest.err conftest.$ac_objext \
5304 conftest$ac_exeext conftest.$ac_ext
5305 LIBS="$ac_xsave_LIBS"
5307 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5308 # to get the SysV transport functions.
5309 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5311 # The nsl library prevents programs from opening the X display
5312 # on Irix 5.2, according to T.E. Dickey.
5313 # The functions gethostbyname, getservbyname, and inet_addr are
5314 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5315 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5316 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5317 if test "${ac_cv_func_gethostbyname+set}" = set; then
5318 echo $ECHO_N "(cached) $ECHO_C" >&6
5320 cat >conftest.$ac_ext <<_ACEOF
5323 cat confdefs.h >>conftest.$ac_ext
5324 cat >>conftest.$ac_ext <<_ACEOF
5325 /* end confdefs.h. */
5326 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5327 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5328 #define gethostbyname innocuous_gethostbyname
5330 /* System header to define __stub macros and hopefully few prototypes,
5331 which can conflict with char gethostbyname (); below.
5332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5333 <limits.h> exists even on freestanding compilers. */
5336 # include <limits.h>
5338 # include <assert.h>
5341 #undef gethostbyname
5343 /* Override any gcc2 internal prototype to avoid an error. */
5348 /* We use char because int might match the return type of a gcc2
5349 builtin and then its argument prototype would still apply. */
5350 char gethostbyname ();
5351 /* The GNU C library defines this for functions which it implements
5352 to always fail with ENOSYS. Some functions are actually named
5353 something starting with __ and the normal name is an alias. */
5354 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5357 char (*f) () = gethostbyname;
5366 return f != gethostbyname;
5371 rm -f conftest.$ac_objext conftest$ac_exeext
5372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5373 (eval $ac_link) 2>conftest.er1
5375 grep -v '^ *+' conftest.er1 >conftest.err
5377 cat conftest.err >&5
5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); } &&
5380 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385 (exit $ac_status); }; } &&
5386 { ac_try='test -s conftest$ac_exeext'
5387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); }; }; then
5392 ac_cv_func_gethostbyname=yes
5394 echo "$as_me: failed program was:" >&5
5395 sed 's/^/| /' conftest.$ac_ext >&5
5397 ac_cv_func_gethostbyname=no
5399 rm -f conftest.err conftest.$ac_objext \
5400 conftest$ac_exeext conftest.$ac_ext
5402 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5403 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5405 if test $ac_cv_func_gethostbyname = no; then
5406 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5407 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5408 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5409 echo $ECHO_N "(cached) $ECHO_C" >&6
5411 ac_check_lib_save_LIBS=$LIBS
5413 cat >conftest.$ac_ext <<_ACEOF
5416 cat confdefs.h >>conftest.$ac_ext
5417 cat >>conftest.$ac_ext <<_ACEOF
5418 /* end confdefs.h. */
5420 /* Override any gcc2 internal prototype to avoid an error. */
5424 /* We use char because int might match the return type of a gcc2
5425 builtin and then its argument prototype would still apply. */
5426 char gethostbyname ();
5435 rm -f conftest.$ac_objext conftest$ac_exeext
5436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5437 (eval $ac_link) 2>conftest.er1
5439 grep -v '^ *+' conftest.er1 >conftest.err
5441 cat conftest.err >&5
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); } &&
5444 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); }; } &&
5450 { ac_try='test -s conftest$ac_exeext'
5451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); }; }; then
5456 ac_cv_lib_nsl_gethostbyname=yes
5458 echo "$as_me: failed program was:" >&5
5459 sed 's/^/| /' conftest.$ac_ext >&5
5461 ac_cv_lib_nsl_gethostbyname=no
5463 rm -f conftest.err conftest.$ac_objext \
5464 conftest$ac_exeext conftest.$ac_ext
5465 LIBS=$ac_check_lib_save_LIBS
5467 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5468 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5469 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5470 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5473 if test $ac_cv_lib_nsl_gethostbyname = no; then
5474 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5475 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5476 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5477 echo $ECHO_N "(cached) $ECHO_C" >&6
5479 ac_check_lib_save_LIBS=$LIBS
5481 cat >conftest.$ac_ext <<_ACEOF
5484 cat confdefs.h >>conftest.$ac_ext
5485 cat >>conftest.$ac_ext <<_ACEOF
5486 /* end confdefs.h. */
5488 /* Override any gcc2 internal prototype to avoid an error. */
5492 /* We use char because int might match the return type of a gcc2
5493 builtin and then its argument prototype would still apply. */
5494 char gethostbyname ();
5503 rm -f conftest.$ac_objext conftest$ac_exeext
5504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5505 (eval $ac_link) 2>conftest.er1
5507 grep -v '^ *+' conftest.er1 >conftest.err
5509 cat conftest.err >&5
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); } &&
5512 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); }; } &&
5518 { ac_try='test -s conftest$ac_exeext'
5519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); }; }; then
5524 ac_cv_lib_bsd_gethostbyname=yes
5526 echo "$as_me: failed program was:" >&5
5527 sed 's/^/| /' conftest.$ac_ext >&5
5529 ac_cv_lib_bsd_gethostbyname=no
5531 rm -f conftest.err conftest.$ac_objext \
5532 conftest$ac_exeext conftest.$ac_ext
5533 LIBS=$ac_check_lib_save_LIBS
5535 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5536 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
5537 if test $ac_cv_lib_bsd_gethostbyname = yes; then
5538 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5544 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5545 # socket/setsockopt and other routines are undefined under SCO ODT
5546 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5547 # on later versions), says Simon Leinen: it contains gethostby*
5548 # variants that don't use the name server (or something). -lsocket
5549 # must be given before -lnsl if both are needed. We assume that
5550 # if connect needs -lnsl, so does gethostbyname.
5551 echo "$as_me:$LINENO: checking for connect" >&5
5552 echo $ECHO_N "checking for connect... $ECHO_C" >&6
5553 if test "${ac_cv_func_connect+set}" = set; then
5554 echo $ECHO_N "(cached) $ECHO_C" >&6
5556 cat >conftest.$ac_ext <<_ACEOF
5559 cat confdefs.h >>conftest.$ac_ext
5560 cat >>conftest.$ac_ext <<_ACEOF
5561 /* end confdefs.h. */
5562 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
5563 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5564 #define connect innocuous_connect
5566 /* System header to define __stub macros and hopefully few prototypes,
5567 which can conflict with char connect (); below.
5568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5569 <limits.h> exists even on freestanding compilers. */
5572 # include <limits.h>
5574 # include <assert.h>
5579 /* Override any gcc2 internal prototype to avoid an error. */
5584 /* We use char because int might match the return type of a gcc2
5585 builtin and then its argument prototype would still apply. */
5587 /* The GNU C library defines this for functions which it implements
5588 to always fail with ENOSYS. Some functions are actually named
5589 something starting with __ and the normal name is an alias. */
5590 #if defined (__stub_connect) || defined (__stub___connect)
5593 char (*f) () = connect;
5602 return f != connect;
5607 rm -f conftest.$ac_objext conftest$ac_exeext
5608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5609 (eval $ac_link) 2>conftest.er1
5611 grep -v '^ *+' conftest.er1 >conftest.err
5613 cat conftest.err >&5
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); } &&
5616 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); }; } &&
5622 { ac_try='test -s conftest$ac_exeext'
5623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); }; }; then
5628 ac_cv_func_connect=yes
5630 echo "$as_me: failed program was:" >&5
5631 sed 's/^/| /' conftest.$ac_ext >&5
5633 ac_cv_func_connect=no
5635 rm -f conftest.err conftest.$ac_objext \
5636 conftest$ac_exeext conftest.$ac_ext
5638 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5639 echo "${ECHO_T}$ac_cv_func_connect" >&6
5641 if test $ac_cv_func_connect = no; then
5642 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5643 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5644 if test "${ac_cv_lib_socket_connect+set}" = set; then
5645 echo $ECHO_N "(cached) $ECHO_C" >&6
5647 ac_check_lib_save_LIBS=$LIBS
5648 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5649 cat >conftest.$ac_ext <<_ACEOF
5652 cat confdefs.h >>conftest.$ac_ext
5653 cat >>conftest.$ac_ext <<_ACEOF
5654 /* end confdefs.h. */
5656 /* Override any gcc2 internal prototype to avoid an error. */
5660 /* We use char because int might match the return type of a gcc2
5661 builtin and then its argument prototype would still apply. */
5671 rm -f conftest.$ac_objext conftest$ac_exeext
5672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5673 (eval $ac_link) 2>conftest.er1
5675 grep -v '^ *+' conftest.er1 >conftest.err
5677 cat conftest.err >&5
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); } &&
5680 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); }; } &&
5686 { ac_try='test -s conftest$ac_exeext'
5687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); }; }; then
5692 ac_cv_lib_socket_connect=yes
5694 echo "$as_me: failed program was:" >&5
5695 sed 's/^/| /' conftest.$ac_ext >&5
5697 ac_cv_lib_socket_connect=no
5699 rm -f conftest.err conftest.$ac_objext \
5700 conftest$ac_exeext conftest.$ac_ext
5701 LIBS=$ac_check_lib_save_LIBS
5703 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5704 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5705 if test $ac_cv_lib_socket_connect = yes; then
5706 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5711 # Guillermo Gomez says -lposix is necessary on A/UX.
5712 echo "$as_me:$LINENO: checking for remove" >&5
5713 echo $ECHO_N "checking for remove... $ECHO_C" >&6
5714 if test "${ac_cv_func_remove+set}" = set; then
5715 echo $ECHO_N "(cached) $ECHO_C" >&6
5717 cat >conftest.$ac_ext <<_ACEOF
5720 cat confdefs.h >>conftest.$ac_ext
5721 cat >>conftest.$ac_ext <<_ACEOF
5722 /* end confdefs.h. */
5723 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
5724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5725 #define remove innocuous_remove
5727 /* System header to define __stub macros and hopefully few prototypes,
5728 which can conflict with char remove (); below.
5729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5730 <limits.h> exists even on freestanding compilers. */
5733 # include <limits.h>
5735 # include <assert.h>
5740 /* Override any gcc2 internal prototype to avoid an error. */
5745 /* We use char because int might match the return type of a gcc2
5746 builtin and then its argument prototype would still apply. */
5748 /* The GNU C library defines this for functions which it implements
5749 to always fail with ENOSYS. Some functions are actually named
5750 something starting with __ and the normal name is an alias. */
5751 #if defined (__stub_remove) || defined (__stub___remove)
5754 char (*f) () = remove;
5768 rm -f conftest.$ac_objext conftest$ac_exeext
5769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5770 (eval $ac_link) 2>conftest.er1
5772 grep -v '^ *+' conftest.er1 >conftest.err
5774 cat conftest.err >&5
5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776 (exit $ac_status); } &&
5777 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); }; } &&
5783 { ac_try='test -s conftest$ac_exeext'
5784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); }; }; then
5789 ac_cv_func_remove=yes
5791 echo "$as_me: failed program was:" >&5
5792 sed 's/^/| /' conftest.$ac_ext >&5
5794 ac_cv_func_remove=no
5796 rm -f conftest.err conftest.$ac_objext \
5797 conftest$ac_exeext conftest.$ac_ext
5799 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5800 echo "${ECHO_T}$ac_cv_func_remove" >&6
5802 if test $ac_cv_func_remove = no; then
5803 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5804 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
5805 if test "${ac_cv_lib_posix_remove+set}" = set; then
5806 echo $ECHO_N "(cached) $ECHO_C" >&6
5808 ac_check_lib_save_LIBS=$LIBS
5809 LIBS="-lposix $LIBS"
5810 cat >conftest.$ac_ext <<_ACEOF
5813 cat confdefs.h >>conftest.$ac_ext
5814 cat >>conftest.$ac_ext <<_ACEOF
5815 /* end confdefs.h. */
5817 /* Override any gcc2 internal prototype to avoid an error. */
5821 /* We use char because int might match the return type of a gcc2
5822 builtin and then its argument prototype would still apply. */
5832 rm -f conftest.$ac_objext conftest$ac_exeext
5833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5834 (eval $ac_link) 2>conftest.er1
5836 grep -v '^ *+' conftest.er1 >conftest.err
5838 cat conftest.err >&5
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); } &&
5841 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }; } &&
5847 { ac_try='test -s conftest$ac_exeext'
5848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852 (exit $ac_status); }; }; then
5853 ac_cv_lib_posix_remove=yes
5855 echo "$as_me: failed program was:" >&5
5856 sed 's/^/| /' conftest.$ac_ext >&5
5858 ac_cv_lib_posix_remove=no
5860 rm -f conftest.err conftest.$ac_objext \
5861 conftest$ac_exeext conftest.$ac_ext
5862 LIBS=$ac_check_lib_save_LIBS
5864 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5865 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
5866 if test $ac_cv_lib_posix_remove = yes; then
5867 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5872 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5873 echo "$as_me:$LINENO: checking for shmat" >&5
5874 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
5875 if test "${ac_cv_func_shmat+set}" = set; then
5876 echo $ECHO_N "(cached) $ECHO_C" >&6
5878 cat >conftest.$ac_ext <<_ACEOF
5881 cat confdefs.h >>conftest.$ac_ext
5882 cat >>conftest.$ac_ext <<_ACEOF
5883 /* end confdefs.h. */
5884 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5886 #define shmat innocuous_shmat
5888 /* System header to define __stub macros and hopefully few prototypes,
5889 which can conflict with char shmat (); below.
5890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5891 <limits.h> exists even on freestanding compilers. */
5894 # include <limits.h>
5896 # include <assert.h>
5901 /* Override any gcc2 internal prototype to avoid an error. */
5906 /* We use char because int might match the return type of a gcc2
5907 builtin and then its argument prototype would still apply. */
5909 /* The GNU C library defines this for functions which it implements
5910 to always fail with ENOSYS. Some functions are actually named
5911 something starting with __ and the normal name is an alias. */
5912 #if defined (__stub_shmat) || defined (__stub___shmat)
5915 char (*f) () = shmat;
5929 rm -f conftest.$ac_objext conftest$ac_exeext
5930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5931 (eval $ac_link) 2>conftest.er1
5933 grep -v '^ *+' conftest.er1 >conftest.err
5935 cat conftest.err >&5
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); } &&
5938 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); }; } &&
5944 { ac_try='test -s conftest$ac_exeext'
5945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); }; }; then
5950 ac_cv_func_shmat=yes
5952 echo "$as_me: failed program was:" >&5
5953 sed 's/^/| /' conftest.$ac_ext >&5
5957 rm -f conftest.err conftest.$ac_objext \
5958 conftest$ac_exeext conftest.$ac_ext
5960 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5961 echo "${ECHO_T}$ac_cv_func_shmat" >&6
5963 if test $ac_cv_func_shmat = no; then
5964 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5965 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
5966 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5967 echo $ECHO_N "(cached) $ECHO_C" >&6
5969 ac_check_lib_save_LIBS=$LIBS
5971 cat >conftest.$ac_ext <<_ACEOF
5974 cat confdefs.h >>conftest.$ac_ext
5975 cat >>conftest.$ac_ext <<_ACEOF
5976 /* end confdefs.h. */
5978 /* Override any gcc2 internal prototype to avoid an error. */
5982 /* We use char because int might match the return type of a gcc2
5983 builtin and then its argument prototype would still apply. */
5993 rm -f conftest.$ac_objext conftest$ac_exeext
5994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5995 (eval $ac_link) 2>conftest.er1
5997 grep -v '^ *+' conftest.er1 >conftest.err
5999 cat conftest.err >&5
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); } &&
6002 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); }; } &&
6008 { ac_try='test -s conftest$ac_exeext'
6009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); }; }; then
6014 ac_cv_lib_ipc_shmat=yes
6016 echo "$as_me: failed program was:" >&5
6017 sed 's/^/| /' conftest.$ac_ext >&5
6019 ac_cv_lib_ipc_shmat=no
6021 rm -f conftest.err conftest.$ac_objext \
6022 conftest$ac_exeext conftest.$ac_ext
6023 LIBS=$ac_check_lib_save_LIBS
6025 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6026 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
6027 if test $ac_cv_lib_ipc_shmat = yes; then
6028 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6034 # Check for libraries that X11R6 Xt/Xaw programs need.
6035 ac_save_LDFLAGS=$LDFLAGS
6036 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6037 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6038 # check for ICE first), but we must link in the order -lSM -lICE or
6039 # we get undefined symbols. So assume we have SM if we have ICE.
6040 # These have to be linked with before -lX11, unlike the other
6041 # libraries we check for below, so use a different variable.
6042 # John Interrante, Karl Berry
6043 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6044 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6045 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6046 echo $ECHO_N "(cached) $ECHO_C" >&6
6048 ac_check_lib_save_LIBS=$LIBS
6049 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6050 cat >conftest.$ac_ext <<_ACEOF
6053 cat confdefs.h >>conftest.$ac_ext
6054 cat >>conftest.$ac_ext <<_ACEOF
6055 /* end confdefs.h. */
6057 /* Override any gcc2 internal prototype to avoid an error. */
6061 /* We use char because int might match the return type of a gcc2
6062 builtin and then its argument prototype would still apply. */
6063 char IceConnectionNumber ();
6067 IceConnectionNumber ();
6072 rm -f conftest.$ac_objext conftest$ac_exeext
6073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6074 (eval $ac_link) 2>conftest.er1
6076 grep -v '^ *+' conftest.er1 >conftest.err
6078 cat conftest.err >&5
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); } &&
6081 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); }; } &&
6087 { ac_try='test -s conftest$ac_exeext'
6088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); }; }; then
6093 ac_cv_lib_ICE_IceConnectionNumber=yes
6095 echo "$as_me: failed program was:" >&5
6096 sed 's/^/| /' conftest.$ac_ext >&5
6098 ac_cv_lib_ICE_IceConnectionNumber=no
6100 rm -f conftest.err conftest.$ac_objext \
6101 conftest$ac_exeext conftest.$ac_ext
6102 LIBS=$ac_check_lib_save_LIBS
6104 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6105 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6106 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6107 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6110 LDFLAGS=$ac_save_LDFLAGS
6116 if test x$support_xpm = xyes; then
6120 # Initialize some more variables set by options.
6121 # The variables have the same names as the options, with
6122 # dashes changed to underlines.
6124 # If we find XPM, set shell vars xpm_includes and xpm_libraries to the
6125 # paths, otherwise set no_xpm=yes.
6126 # Uses ac_ vars as temps to allow command line to override cache and checks.
6127 echo "$as_me:$LINENO: checking for libXpm" >&5
6128 echo $ECHO_N "checking for libXpm... $ECHO_C" >&6
6131 # Check whether --with-xpm_includes or --without-xpm_includes was given.
6132 if test "${with_xpm_includes+set}" = set; then
6133 withval="$with_xpm_includes"
6134 xpm_includes="$withval"
6139 # Check whether --with-xpm_library or --without-xpm_library was given.
6140 if test "${with_xpm_library+set}" = set; then
6141 withval="$with_xpm_library"
6142 xpm_libraries="$withval"
6147 # --without-xpm overrides everything else, but does not touch the cache.
6149 # Check whether --with-xpm or --without-xpm was given.
6150 if test "${with_xpm+set}" = set; then
6154 if test "$with_xpm" = no; then
6157 if test "${ac_cv_have_xpm+set}" = set; then
6158 echo $ECHO_N "(cached) $ECHO_C" >&6
6161 vt_xpm_include_X11=no
6162 if test -n "$xpm_includes"; then
6163 vt_xpm_includes=$xpm_includes
6167 if test -n "$xpm_libraries"; then
6168 vt_xpm_libraries=$xpm_libraries
6173 if test "$vt_xpm_includes" = NO; then
6174 # Guess where to find xpm.h
6176 ac_save_CPPFLAGS="$CPPFLAGS"
6177 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6179 # First, try using that file with no special directory specified.
6180 cat >conftest.$ac_ext <<_ACEOF
6183 cat confdefs.h >>conftest.$ac_ext
6184 cat >>conftest.$ac_ext <<_ACEOF
6185 /* end confdefs.h. */
6186 #include <X11/xpm.h>
6188 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6189 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6191 grep -v '^ *+' conftest.er1 >conftest.err
6193 cat conftest.err >&5
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); } >/dev/null; then
6196 if test -s conftest.err; then
6197 ac_cpp_err=$ac_cxx_preproc_warn_flag
6198 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6205 if test -z "$ac_cpp_err"; then
6206 # We can compile using X headers with no special include directory.
6208 vt_xpm_include_X11=yes
6210 echo "$as_me: failed program was:" >&5
6211 sed 's/^/| /' conftest.$ac_ext >&5
6213 CPPFLAGS="$ac_save_CPPFLAGS"
6214 # Look for the header file in a standard set of common directories.
6217 /usr/X11R6/include \
6218 /usr/X11R5/include \
6219 /usr/X11R4/include \
6222 /usr/include/X11R6 \
6223 /usr/include/X11R5 \
6224 /usr/include/X11R4 \
6226 /usr/local/X11/include \
6227 /usr/local/X11R6/include \
6228 /usr/local/X11R5/include \
6229 /usr/local/X11R4/include \
6231 /usr/local/include/X11 \
6232 /usr/local/include/X11R6 \
6233 /usr/local/include/X11R5 \
6234 /usr/local/include/X11R4 \
6238 /usr/XFree86/include/X11 \
6241 /usr/local/include \
6242 /usr/unsupported/include \
6243 /usr/athena/include \
6244 /usr/local/x11r5/include \
6245 /usr/lpp/Xamples/include \
6247 /usr/openwin/include \
6248 /usr/openwin/share/include \
6251 if test -r "$ac_dir/X11/xpm.h"; then
6252 vt_xpm_includes="$ac_dir"
6253 vt_xpm_include_X11=yes
6256 if test -r "$ac_dir/xpm.h"; then
6257 vt_xpm_includes=$ac_dir
6263 rm -f conftest.err conftest.$ac_ext
6266 if test "$vt_xpm_libraries" = NO; then
6267 # Check for the libraries.
6269 # See if we find them without any special options.
6270 # Don't add to $LIBS permanently.
6271 ac_save_LIBS="$LIBS"
6272 LIBS="$LIBS $X_LIBS -lXpm -lX11"
6273 cat >conftest.$ac_ext <<_ACEOF
6276 cat confdefs.h >>conftest.$ac_ext
6277 cat >>conftest.$ac_ext <<_ACEOF
6278 /* end confdefs.h. */
6283 XpmReadFileToPixmap()
6288 rm -f conftest.$ac_objext conftest$ac_exeext
6289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6290 (eval $ac_link) 2>conftest.er1
6292 grep -v '^ *+' conftest.er1 >conftest.err
6294 cat conftest.err >&5
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); } &&
6297 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); }; } &&
6303 { ac_try='test -s conftest$ac_exeext'
6304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); }; }; then
6309 LIBS="$ac_save_LIBS"
6310 # We can link libXpm with no special library path.
6313 echo "$as_me: failed program was:" >&5
6314 sed 's/^/| /' conftest.$ac_ext >&5
6316 LIBS="$ac_save_LIBS"
6317 # First see if replacing the include by lib works.
6319 `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \
6330 /usr/local/X11/lib \
6331 /usr/local/X11R6/lib \
6332 /usr/local/X11R5/lib \
6333 /usr/local/X11R4/lib \
6335 /usr/local/lib/X11 \
6336 /usr/local/lib/X11R6 \
6337 /usr/local/lib/X11R5 \
6338 /usr/local/lib/X11R4 \
6342 /usr/XFree86/lib/X11 \
6346 /usr/unsupported/lib \
6348 /usr/local/x11r5/lib \
6349 /usr/lpp/Xamples/lib \
6352 /usr/openwin/share/lib \
6355 for ac_extension in a so sl; do
6356 if test -r $ac_dir/libXpm.$ac_extension; then
6357 vt_xpm_libraries=$ac_dir
6363 rm -f conftest.err conftest.$ac_objext \
6364 conftest$ac_exeext conftest.$ac_ext
6368 if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then
6369 ac_cv_have_xpm="have_xpm=no"
6371 ac_cv_have_xpm="have_xpm=yes \
6372 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
6373 vt_xpm_include_X11=$vt_xpm_include_X11"
6376 eval "$ac_cv_have_xpm"
6379 if test "$have_xpm" != yes; then
6380 echo "$as_me:$LINENO: result: $have_xpm" >&5
6381 echo "${ECHO_T}$have_xpm" >&6
6384 if test "$xpm_includes" != NO; then
6385 if test "$xpm_includes" = "$vt_xpm_includes"; then
6386 if test -r "$xpm_includes/X11/xpm.h"; then
6387 vt_xpm_include_X11=yes
6390 vt_xpm_include_X11=no
6391 if test -z "$xpm_includes"; then
6392 cat >conftest.$ac_ext <<_ACEOF
6395 cat confdefs.h >>conftest.$ac_ext
6396 cat >>conftest.$ac_ext <<_ACEOF
6397 /* end confdefs.h. */
6398 #include <X11/xpm.h>
6400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6403 grep -v '^ *+' conftest.er1 >conftest.err
6405 cat conftest.err >&5
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); } >/dev/null; then
6408 if test -s conftest.err; then
6409 ac_cpp_err=$ac_cxx_preproc_warn_flag
6410 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6417 if test -z "$ac_cpp_err"; then
6418 vt_xpm_include_X11=yes
6420 echo "$as_me: failed program was:" >&5
6421 sed 's/^/| /' conftest.$ac_ext >&5
6425 rm -f conftest.err conftest.$ac_ext
6427 if test -r "$xpm_includes/X11/xpm.h"; then
6428 vt_xpm_include_X11=yes
6432 vt_xpm_includes=$xpm_includes
6434 if test "x$xpm_libraries" != xNO; then
6435 vt_xpm_libraries=$xpm_libraries
6437 # Update the cache value to reflect the command line values.
6438 ac_cv_have_xpm="have_xpm=yes \
6439 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
6440 vt_xpm_include_X11=$vt_xpm_include_X11"
6441 eval "$ac_cv_have_xpm"
6442 echo "$as_me:$LINENO: result: -I$vt_xpm_includes, -L$vt_xpm_libraries" >&5
6443 echo "${ECHO_T}-I$vt_xpm_includes, -L$vt_xpm_libraries" >&6
6444 if test -n "$vt_xpm_includes"; then
6445 XPM_CPPFLAGS="-DHAVE_LIBXPM"
6447 if test -n "$vt_xpm_includes"; then
6448 XPM_CFLAGS="-I$vt_xpm_includes"
6451 if test -n "$vt_xpm_libraries"; then
6452 XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS"
6454 if test "x$vt_xpm_include_X11" = xyes; then
6456 cat >>confdefs.h <<\_ACEOF
6457 #define XPM_INC_X11 1
6467 if test x$no_xpm = xyes; then
6468 support_xpm=needsmanualspecification
6472 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6473 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6474 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6475 echo $ECHO_N "(cached) $ECHO_C" >&6
6477 cat >conftest.$ac_ext <<_ACEOF
6480 cat confdefs.h >>conftest.$ac_ext
6481 cat >>conftest.$ac_ext <<_ACEOF
6482 /* end confdefs.h. */
6483 #include <sys/types.h>
6484 #include <sys/wait.h>
6486 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6489 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6497 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6502 rm -f conftest.$ac_objext
6503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6504 (eval $ac_compile) 2>conftest.er1
6506 grep -v '^ *+' conftest.er1 >conftest.err
6508 cat conftest.err >&5
6509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 (exit $ac_status); } &&
6511 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516 (exit $ac_status); }; } &&
6517 { ac_try='test -s conftest.$ac_objext'
6518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522 (exit $ac_status); }; }; then
6523 ac_cv_header_sys_wait_h=yes
6525 echo "$as_me: failed program was:" >&5
6526 sed 's/^/| /' conftest.$ac_ext >&5
6528 ac_cv_header_sys_wait_h=no
6530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6532 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6533 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6534 if test $ac_cv_header_sys_wait_h = yes; then
6536 cat >>confdefs.h <<\_ACEOF
6537 #define HAVE_SYS_WAIT_H 1
6542 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6543 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6544 if test "${ac_cv_header_stdc+set}" = set; then
6545 echo $ECHO_N "(cached) $ECHO_C" >&6
6547 cat >conftest.$ac_ext <<_ACEOF
6550 cat confdefs.h >>conftest.$ac_ext
6551 cat >>conftest.$ac_ext <<_ACEOF
6552 /* end confdefs.h. */
6566 rm -f conftest.$ac_objext
6567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6568 (eval $ac_compile) 2>conftest.er1
6570 grep -v '^ *+' conftest.er1 >conftest.err
6572 cat conftest.err >&5
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); } &&
6575 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); }; } &&
6581 { ac_try='test -s conftest.$ac_objext'
6582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); }; }; then
6587 ac_cv_header_stdc=yes
6589 echo "$as_me: failed program was:" >&5
6590 sed 's/^/| /' conftest.$ac_ext >&5
6592 ac_cv_header_stdc=no
6594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6596 if test $ac_cv_header_stdc = yes; then
6597 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6598 cat >conftest.$ac_ext <<_ACEOF
6601 cat confdefs.h >>conftest.$ac_ext
6602 cat >>conftest.$ac_ext <<_ACEOF
6603 /* end confdefs.h. */
6607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6608 $EGREP "memchr" >/dev/null 2>&1; then
6611 ac_cv_header_stdc=no
6617 if test $ac_cv_header_stdc = yes; then
6618 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6619 cat >conftest.$ac_ext <<_ACEOF
6622 cat confdefs.h >>conftest.$ac_ext
6623 cat >>conftest.$ac_ext <<_ACEOF
6624 /* end confdefs.h. */
6628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6629 $EGREP "free" >/dev/null 2>&1; then
6632 ac_cv_header_stdc=no
6638 if test $ac_cv_header_stdc = yes; then
6639 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6640 if test "$cross_compiling" = yes; then
6643 cat >conftest.$ac_ext <<_ACEOF
6646 cat confdefs.h >>conftest.$ac_ext
6647 cat >>conftest.$ac_ext <<_ACEOF
6648 /* end confdefs.h. */
6650 #if ((' ' & 0x0FF) == 0x020)
6651 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6652 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6654 # define ISLOWER(c) \
6655 (('a' <= (c) && (c) <= 'i') \
6656 || ('j' <= (c) && (c) <= 'r') \
6657 || ('s' <= (c) && (c) <= 'z'))
6658 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6661 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6666 for (i = 0; i < 256; i++)
6667 if (XOR (islower (i), ISLOWER (i))
6668 || toupper (i) != TOUPPER (i))
6673 rm -f conftest$ac_exeext
6674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6675 (eval $ac_link) 2>&5
6677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683 (exit $ac_status); }; }; then
6686 echo "$as_me: program exited with status $ac_status" >&5
6687 echo "$as_me: failed program was:" >&5
6688 sed 's/^/| /' conftest.$ac_ext >&5
6691 ac_cv_header_stdc=no
6693 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6697 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6698 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6699 if test $ac_cv_header_stdc = yes; then
6701 cat >>confdefs.h <<\_ACEOF
6702 #define STDC_HEADERS 1
6707 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6717 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6718 inttypes.h stdint.h unistd.h
6720 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6721 echo "$as_me:$LINENO: checking for $ac_header" >&5
6722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6724 echo $ECHO_N "(cached) $ECHO_C" >&6
6726 cat >conftest.$ac_ext <<_ACEOF
6729 cat confdefs.h >>conftest.$ac_ext
6730 cat >>conftest.$ac_ext <<_ACEOF
6731 /* end confdefs.h. */
6732 $ac_includes_default
6734 #include <$ac_header>
6736 rm -f conftest.$ac_objext
6737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6738 (eval $ac_compile) 2>conftest.er1
6740 grep -v '^ *+' conftest.er1 >conftest.err
6742 cat conftest.err >&5
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); } &&
6745 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); }; } &&
6751 { ac_try='test -s conftest.$ac_objext'
6752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756 (exit $ac_status); }; }; then
6757 eval "$as_ac_Header=yes"
6759 echo "$as_me: failed program was:" >&5
6760 sed 's/^/| /' conftest.$ac_ext >&5
6762 eval "$as_ac_Header=no"
6764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6767 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6768 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6769 cat >>confdefs.h <<_ACEOF
6770 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6829 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6830 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6831 echo "$as_me:$LINENO: checking for $ac_header" >&5
6832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6834 echo $ECHO_N "(cached) $ECHO_C" >&6
6836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6837 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6839 # Is the header compilable?
6840 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6841 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6842 cat >conftest.$ac_ext <<_ACEOF
6845 cat confdefs.h >>conftest.$ac_ext
6846 cat >>conftest.$ac_ext <<_ACEOF
6847 /* end confdefs.h. */
6848 $ac_includes_default
6849 #include <$ac_header>
6851 rm -f conftest.$ac_objext
6852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6853 (eval $ac_compile) 2>conftest.er1
6855 grep -v '^ *+' conftest.er1 >conftest.err
6857 cat conftest.err >&5
6858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859 (exit $ac_status); } &&
6860 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865 (exit $ac_status); }; } &&
6866 { ac_try='test -s conftest.$ac_objext'
6867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871 (exit $ac_status); }; }; then
6872 ac_header_compiler=yes
6874 echo "$as_me: failed program was:" >&5
6875 sed 's/^/| /' conftest.$ac_ext >&5
6877 ac_header_compiler=no
6879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6880 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6881 echo "${ECHO_T}$ac_header_compiler" >&6
6883 # Is the header present?
6884 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6885 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6886 cat >conftest.$ac_ext <<_ACEOF
6889 cat confdefs.h >>conftest.$ac_ext
6890 cat >>conftest.$ac_ext <<_ACEOF
6891 /* end confdefs.h. */
6892 #include <$ac_header>
6894 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6895 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6897 grep -v '^ *+' conftest.er1 >conftest.err
6899 cat conftest.err >&5
6900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901 (exit $ac_status); } >/dev/null; then
6902 if test -s conftest.err; then
6903 ac_cpp_err=$ac_cxx_preproc_warn_flag
6904 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6911 if test -z "$ac_cpp_err"; then
6912 ac_header_preproc=yes
6914 echo "$as_me: failed program was:" >&5
6915 sed 's/^/| /' conftest.$ac_ext >&5
6917 ac_header_preproc=no
6919 rm -f conftest.err conftest.$ac_ext
6920 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6921 echo "${ECHO_T}$ac_header_preproc" >&6
6923 # So? What about this header?
6924 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6926 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6927 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6929 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6930 ac_header_preproc=yes
6933 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6934 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6935 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6936 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6937 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6938 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6939 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6940 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6942 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6943 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6944 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6947 ## ------------------------------------------ ##
6948 ## Report this to the AC_PACKAGE_NAME lists. ##
6949 ## ------------------------------------------ ##
6952 sed "s/^/$as_me: WARNING: /" >&2
6955 echo "$as_me:$LINENO: checking for $ac_header" >&5
6956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6957 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6958 echo $ECHO_N "(cached) $ECHO_C" >&6
6960 eval "$as_ac_Header=\$ac_header_preproc"
6962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6963 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6966 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6967 cat >>confdefs.h <<_ACEOF
6968 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6976 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6977 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6978 if test "${ac_cv_header_time+set}" = set; then
6979 echo $ECHO_N "(cached) $ECHO_C" >&6
6981 cat >conftest.$ac_ext <<_ACEOF
6984 cat confdefs.h >>conftest.$ac_ext
6985 cat >>conftest.$ac_ext <<_ACEOF
6986 /* end confdefs.h. */
6987 #include <sys/types.h>
6988 #include <sys/time.h>
6994 if ((struct tm *) 0)
7000 rm -f conftest.$ac_objext
7001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7002 (eval $ac_compile) 2>conftest.er1
7004 grep -v '^ *+' conftest.er1 >conftest.err
7006 cat conftest.err >&5
7007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008 (exit $ac_status); } &&
7009 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014 (exit $ac_status); }; } &&
7015 { ac_try='test -s conftest.$ac_objext'
7016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020 (exit $ac_status); }; }; then
7021 ac_cv_header_time=yes
7023 echo "$as_me: failed program was:" >&5
7024 sed 's/^/| /' conftest.$ac_ext >&5
7026 ac_cv_header_time=no
7028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7030 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7031 echo "${ECHO_T}$ac_cv_header_time" >&6
7032 if test $ac_cv_header_time = yes; then
7034 cat >>confdefs.h <<\_ACEOF
7035 #define TIME_WITH_SYS_TIME 1
7041 echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5
7042 echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6
7043 if test "${rxvt_cv_header_sysioctl+set}" = set; then
7044 echo $ECHO_N "(cached) $ECHO_C" >&6
7046 cat >conftest.$ac_ext <<_ACEOF
7049 cat confdefs.h >>conftest.$ac_ext
7050 cat >>conftest.$ac_ext <<_ACEOF
7051 /* end confdefs.h. */
7053 #include <sys/ioctl.h>
7054 #ifdef HAVE_TERMIOS_H
7055 #include <termios.h>
7065 rm -f conftest.$ac_objext
7066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7067 (eval $ac_compile) 2>conftest.er1
7069 grep -v '^ *+' conftest.er1 >conftest.err
7071 cat conftest.err >&5
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); } &&
7074 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); }; } &&
7080 { ac_try='test -s conftest.$ac_objext'
7081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085 (exit $ac_status); }; }; then
7086 rxvt_cv_header_sysioctl=yes
7088 echo "$as_me: failed program was:" >&5
7089 sed 's/^/| /' conftest.$ac_ext >&5
7091 rxvt_cv_header_sysioctl=no
7093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7095 echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5
7096 echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6
7098 if test -n "$GCC"; then
7103 R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-rpath '$LDARG'\1/g'
7105 ac_save_CFLAGS=$CFLAGS
7107 CFLAGS="$CFLAGS $X_CFLAGS"
7108 LIBS=`echo "$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
7109 echo "$as_me:$LINENO: checking for -rpath dynamic library path recording" >&5
7110 echo $ECHO_N "checking for -rpath dynamic library path recording... $ECHO_C" >&6
7111 if test "${rxvt_cv_rpath+set}" = set; then
7112 echo $ECHO_N "(cached) $ECHO_C" >&6
7114 if test "$cross_compiling" = yes; then
7115 { echo "$as_me:$LINENO: WARNING: You may need to check the LIBS line" >&5
7116 echo "$as_me: WARNING: You may need to check the LIBS line" >&2;}
7118 cat >conftest.$ac_ext <<_ACEOF
7121 cat confdefs.h >>conftest.$ac_ext
7122 cat >>conftest.$ac_ext <<_ACEOF
7123 /* end confdefs.h. */
7128 (void) XOpenDisplay("foobar");
7131 rm -f conftest$ac_exeext
7132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7133 (eval $ac_link) 2>&5
7135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141 (exit $ac_status); }; }; then
7144 echo "$as_me: program exited with status $ac_status" >&5
7145 echo "$as_me: failed program was:" >&5
7146 sed 's/^/| /' conftest.$ac_ext >&5
7151 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7154 echo "$as_me:$LINENO: result: $rxvt_cv_rpath" >&5
7155 echo "${ECHO_T}$rxvt_cv_rpath" >&6
7156 if test x$rxvt_cv_rpath != xyes; then
7157 R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-R\1/g'
7158 LIBS=`echo "$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
7159 echo "$as_me:$LINENO: checking for -R dynamic library path recording" >&5
7160 echo $ECHO_N "checking for -R dynamic library path recording... $ECHO_C" >&6
7161 if test "${rxvt_cv_R+set}" = set; then
7162 echo $ECHO_N "(cached) $ECHO_C" >&6
7164 if test "$cross_compiling" = yes; then
7167 cat >conftest.$ac_ext <<_ACEOF
7170 cat confdefs.h >>conftest.$ac_ext
7171 cat >>conftest.$ac_ext <<_ACEOF
7172 /* end confdefs.h. */
7177 (void) XOpenDisplay("foobar");
7180 rm -f conftest$ac_exeext
7181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7182 (eval $ac_link) 2>&5
7184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190 (exit $ac_status); }; }; then
7193 echo "$as_me: program exited with status $ac_status" >&5
7194 echo "$as_me: failed program was:" >&5
7195 sed 's/^/| /' conftest.$ac_ext >&5
7200 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7203 echo "$as_me:$LINENO: result: $rxvt_cv_R" >&5
7204 echo "${ECHO_T}$rxvt_cv_R" >&6
7205 if test x$rxvt_cv_R != xyes; then
7206 LIBS="$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
7210 echo "$as_me:$LINENO: checking for XPointer" >&5
7211 echo $ECHO_N "checking for XPointer... $ECHO_C" >&6
7212 if test "${rxvt_cv_xpointer+set}" = set; then
7213 echo $ECHO_N "(cached) $ECHO_C" >&6
7215 cat >conftest.$ac_ext <<_ACEOF
7218 cat confdefs.h >>conftest.$ac_ext
7219 cat >>conftest.$ac_ext <<_ACEOF
7220 /* end confdefs.h. */
7221 #include <X11/Xlib.h>
7230 rm -f conftest.$ac_objext
7231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7232 (eval $ac_compile) 2>conftest.er1
7234 grep -v '^ *+' conftest.er1 >conftest.err
7236 cat conftest.err >&5
7237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7238 (exit $ac_status); } &&
7239 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244 (exit $ac_status); }; } &&
7245 { ac_try='test -s conftest.$ac_objext'
7246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250 (exit $ac_status); }; }; then
7251 rxvt_cv_xpointer=yes
7253 echo "$as_me: failed program was:" >&5
7254 sed 's/^/| /' conftest.$ac_ext >&5
7258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7260 echo "$as_me:$LINENO: result: $rxvt_cv_xpointer" >&5
7261 echo "${ECHO_T}$rxvt_cv_xpointer" >&6
7262 if test x$rxvt_cv_xpointer = xyes; then
7264 cat >>confdefs.h <<\_ACEOF
7265 #define HAVE_XPOINTER 1
7270 CFLAGS=$ac_save_CFLAGS
7273 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7274 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7275 if test "${ac_cv_c_const+set}" = set; then
7276 echo $ECHO_N "(cached) $ECHO_C" >&6
7278 cat >conftest.$ac_ext <<_ACEOF
7281 cat confdefs.h >>conftest.$ac_ext
7282 cat >>conftest.$ac_ext <<_ACEOF
7283 /* end confdefs.h. */
7288 /* FIXME: Include the comments suggested by Paul. */
7290 /* Ultrix mips cc rejects this. */
7291 typedef int charset[2];
7293 /* SunOS 4.1.1 cc rejects this. */
7294 char const *const *ccp;
7296 /* NEC SVR4.0.2 mips cc rejects this. */
7297 struct point {int x, y;};
7298 static struct point const zero = {0,0};
7299 /* AIX XL C 1.02.0.0 rejects this.
7300 It does not let you subtract one const X* pointer from another in
7301 an arm of an if-expression whose if-part is not a constant
7303 const char *g = "string";
7304 ccp = &g + (g ? g-g : 0);
7305 /* HPUX 7.0 cc rejects these. */
7308 ccp = (char const *const *) p;
7309 { /* SCO 3.2v4 cc rejects this. */
7311 char const *s = 0 ? (char *) 0 : (char const *) 0;
7315 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7317 const int *foo = &x[0];
7320 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7321 typedef const int *iptr;
7325 { /* AIX XL C 1.02.0.0 rejects this saying
7326 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7327 struct s { int j; const int *ap[3]; };
7328 struct s *b; b->j = 5;
7330 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7339 rm -f conftest.$ac_objext
7340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7341 (eval $ac_compile) 2>conftest.er1
7343 grep -v '^ *+' conftest.er1 >conftest.err
7345 cat conftest.err >&5
7346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347 (exit $ac_status); } &&
7348 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); }; } &&
7354 { ac_try='test -s conftest.$ac_objext'
7355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); }; }; then
7362 echo "$as_me: failed program was:" >&5
7363 sed 's/^/| /' conftest.$ac_ext >&5
7367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7369 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7370 echo "${ECHO_T}$ac_cv_c_const" >&6
7371 if test $ac_cv_c_const = no; then
7373 cat >>confdefs.h <<\_ACEOF
7379 echo "$as_me:$LINENO: checking for inline" >&5
7380 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7381 if test "${ac_cv_c_inline+set}" = set; then
7382 echo $ECHO_N "(cached) $ECHO_C" >&6
7385 for ac_kw in inline __inline__ __inline; do
7386 cat >conftest.$ac_ext <<_ACEOF
7389 cat confdefs.h >>conftest.$ac_ext
7390 cat >>conftest.$ac_ext <<_ACEOF
7391 /* end confdefs.h. */
7394 static $ac_kw foo_t static_foo () {return 0; }
7395 $ac_kw foo_t foo () {return 0; }
7399 rm -f conftest.$ac_objext
7400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7401 (eval $ac_compile) 2>conftest.er1
7403 grep -v '^ *+' conftest.er1 >conftest.err
7405 cat conftest.err >&5
7406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407 (exit $ac_status); } &&
7408 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); }; } &&
7414 { ac_try='test -s conftest.$ac_objext'
7415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); }; }; then
7420 ac_cv_c_inline=$ac_kw; break
7422 echo "$as_me: failed program was:" >&5
7423 sed 's/^/| /' conftest.$ac_ext >&5
7426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7430 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7431 echo "${ECHO_T}$ac_cv_c_inline" >&6
7434 case $ac_cv_c_inline in
7437 case $ac_cv_c_inline in
7439 *) ac_val=$ac_cv_c_inline;;
7441 cat >>confdefs.h <<_ACEOF
7443 #define inline $ac_val
7451 echo "$as_me:$LINENO: checking for mode_t" >&5
7452 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
7453 if test "${ac_cv_type_mode_t+set}" = set; then
7454 echo $ECHO_N "(cached) $ECHO_C" >&6
7456 cat >conftest.$ac_ext <<_ACEOF
7459 cat confdefs.h >>conftest.$ac_ext
7460 cat >>conftest.$ac_ext <<_ACEOF
7461 /* end confdefs.h. */
7462 $ac_includes_default
7468 if (sizeof (mode_t))
7474 rm -f conftest.$ac_objext
7475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7476 (eval $ac_compile) 2>conftest.er1
7478 grep -v '^ *+' conftest.er1 >conftest.err
7480 cat conftest.err >&5
7481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482 (exit $ac_status); } &&
7483 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488 (exit $ac_status); }; } &&
7489 { ac_try='test -s conftest.$ac_objext'
7490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7494 (exit $ac_status); }; }; then
7495 ac_cv_type_mode_t=yes
7497 echo "$as_me: failed program was:" >&5
7498 sed 's/^/| /' conftest.$ac_ext >&5
7500 ac_cv_type_mode_t=no
7502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7504 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
7505 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
7506 if test $ac_cv_type_mode_t = yes; then
7510 cat >>confdefs.h <<_ACEOF
7516 echo "$as_me:$LINENO: checking for pid_t" >&5
7517 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7518 if test "${ac_cv_type_pid_t+set}" = set; then
7519 echo $ECHO_N "(cached) $ECHO_C" >&6
7521 cat >conftest.$ac_ext <<_ACEOF
7524 cat confdefs.h >>conftest.$ac_ext
7525 cat >>conftest.$ac_ext <<_ACEOF
7526 /* end confdefs.h. */
7527 $ac_includes_default
7539 rm -f conftest.$ac_objext
7540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7541 (eval $ac_compile) 2>conftest.er1
7543 grep -v '^ *+' conftest.er1 >conftest.err
7545 cat conftest.err >&5
7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); } &&
7548 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553 (exit $ac_status); }; } &&
7554 { ac_try='test -s conftest.$ac_objext'
7555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559 (exit $ac_status); }; }; then
7560 ac_cv_type_pid_t=yes
7562 echo "$as_me: failed program was:" >&5
7563 sed 's/^/| /' conftest.$ac_ext >&5
7567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7569 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7570 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7571 if test $ac_cv_type_pid_t = yes; then
7575 cat >>confdefs.h <<_ACEOF
7581 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7582 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7583 if test "${ac_cv_type_uid_t+set}" = set; then
7584 echo $ECHO_N "(cached) $ECHO_C" >&6
7586 cat >conftest.$ac_ext <<_ACEOF
7589 cat confdefs.h >>conftest.$ac_ext
7590 cat >>conftest.$ac_ext <<_ACEOF
7591 /* end confdefs.h. */
7592 #include <sys/types.h>
7595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7596 $EGREP "uid_t" >/dev/null 2>&1; then
7597 ac_cv_type_uid_t=yes
7604 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7605 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7606 if test $ac_cv_type_uid_t = no; then
7608 cat >>confdefs.h <<\_ACEOF
7613 cat >>confdefs.h <<\_ACEOF
7620 echo "$as_me:$LINENO: checking for short" >&5
7621 echo $ECHO_N "checking for short... $ECHO_C" >&6
7622 if test "${ac_cv_type_short+set}" = set; then
7623 echo $ECHO_N "(cached) $ECHO_C" >&6
7625 cat >conftest.$ac_ext <<_ACEOF
7628 cat confdefs.h >>conftest.$ac_ext
7629 cat >>conftest.$ac_ext <<_ACEOF
7630 /* end confdefs.h. */
7631 $ac_includes_default
7643 rm -f conftest.$ac_objext
7644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7645 (eval $ac_compile) 2>conftest.er1
7647 grep -v '^ *+' conftest.er1 >conftest.err
7649 cat conftest.err >&5
7650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651 (exit $ac_status); } &&
7652 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657 (exit $ac_status); }; } &&
7658 { ac_try='test -s conftest.$ac_objext'
7659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663 (exit $ac_status); }; }; then
7664 ac_cv_type_short=yes
7666 echo "$as_me: failed program was:" >&5
7667 sed 's/^/| /' conftest.$ac_ext >&5
7671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7673 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7674 echo "${ECHO_T}$ac_cv_type_short" >&6
7676 echo "$as_me:$LINENO: checking size of short" >&5
7677 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7678 if test "${ac_cv_sizeof_short+set}" = set; then
7679 echo $ECHO_N "(cached) $ECHO_C" >&6
7681 if test "$ac_cv_type_short" = yes; then
7682 # The cast to unsigned long works around a bug in the HP C Compiler
7683 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7684 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7685 # This bug is HP SR number 8606223364.
7686 if test "$cross_compiling" = yes; then
7687 # Depending upon the size, compute the lo and hi bounds.
7688 cat >conftest.$ac_ext <<_ACEOF
7691 cat confdefs.h >>conftest.$ac_ext
7692 cat >>conftest.$ac_ext <<_ACEOF
7693 /* end confdefs.h. */
7694 $ac_includes_default
7698 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7705 rm -f conftest.$ac_objext
7706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7707 (eval $ac_compile) 2>conftest.er1
7709 grep -v '^ *+' conftest.er1 >conftest.err
7711 cat conftest.err >&5
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); } &&
7714 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); }; } &&
7720 { ac_try='test -s conftest.$ac_objext'
7721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); }; }; then
7728 cat >conftest.$ac_ext <<_ACEOF
7731 cat confdefs.h >>conftest.$ac_ext
7732 cat >>conftest.$ac_ext <<_ACEOF
7733 /* end confdefs.h. */
7734 $ac_includes_default
7738 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7745 rm -f conftest.$ac_objext
7746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7747 (eval $ac_compile) 2>conftest.er1
7749 grep -v '^ *+' conftest.er1 >conftest.err
7751 cat conftest.err >&5
7752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753 (exit $ac_status); } &&
7754 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759 (exit $ac_status); }; } &&
7760 { ac_try='test -s conftest.$ac_objext'
7761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765 (exit $ac_status); }; }; then
7766 ac_hi=$ac_mid; break
7768 echo "$as_me: failed program was:" >&5
7769 sed 's/^/| /' conftest.$ac_ext >&5
7771 ac_lo=`expr $ac_mid + 1`
7772 if test $ac_lo -le $ac_mid; then
7776 ac_mid=`expr 2 '*' $ac_mid + 1`
7778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7781 echo "$as_me: failed program was:" >&5
7782 sed 's/^/| /' conftest.$ac_ext >&5
7784 cat >conftest.$ac_ext <<_ACEOF
7787 cat confdefs.h >>conftest.$ac_ext
7788 cat >>conftest.$ac_ext <<_ACEOF
7789 /* end confdefs.h. */
7790 $ac_includes_default
7794 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7801 rm -f conftest.$ac_objext
7802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7803 (eval $ac_compile) 2>conftest.er1
7805 grep -v '^ *+' conftest.er1 >conftest.err
7807 cat conftest.err >&5
7808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7809 (exit $ac_status); } &&
7810 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7815 (exit $ac_status); }; } &&
7816 { ac_try='test -s conftest.$ac_objext'
7817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821 (exit $ac_status); }; }; then
7824 cat >conftest.$ac_ext <<_ACEOF
7827 cat confdefs.h >>conftest.$ac_ext
7828 cat >>conftest.$ac_ext <<_ACEOF
7829 /* end confdefs.h. */
7830 $ac_includes_default
7834 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7841 rm -f conftest.$ac_objext
7842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7843 (eval $ac_compile) 2>conftest.er1
7845 grep -v '^ *+' conftest.er1 >conftest.err
7847 cat conftest.err >&5
7848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849 (exit $ac_status); } &&
7850 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855 (exit $ac_status); }; } &&
7856 { ac_try='test -s conftest.$ac_objext'
7857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); }; }; then
7862 ac_lo=$ac_mid; break
7864 echo "$as_me: failed program was:" >&5
7865 sed 's/^/| /' conftest.$ac_ext >&5
7867 ac_hi=`expr '(' $ac_mid ')' - 1`
7868 if test $ac_mid -le $ac_hi; then
7872 ac_mid=`expr 2 '*' $ac_mid`
7874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7877 echo "$as_me: failed program was:" >&5
7878 sed 's/^/| /' conftest.$ac_ext >&5
7882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7885 # Binary search between lo and hi bounds.
7886 while test "x$ac_lo" != "x$ac_hi"; do
7887 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7888 cat >conftest.$ac_ext <<_ACEOF
7891 cat confdefs.h >>conftest.$ac_ext
7892 cat >>conftest.$ac_ext <<_ACEOF
7893 /* end confdefs.h. */
7894 $ac_includes_default
7898 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7905 rm -f conftest.$ac_objext
7906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7907 (eval $ac_compile) 2>conftest.er1
7909 grep -v '^ *+' conftest.er1 >conftest.err
7911 cat conftest.err >&5
7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913 (exit $ac_status); } &&
7914 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919 (exit $ac_status); }; } &&
7920 { ac_try='test -s conftest.$ac_objext'
7921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925 (exit $ac_status); }; }; then
7928 echo "$as_me: failed program was:" >&5
7929 sed 's/^/| /' conftest.$ac_ext >&5
7931 ac_lo=`expr '(' $ac_mid ')' + 1`
7933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7936 ?*) ac_cv_sizeof_short=$ac_lo;;
7937 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7938 See \`config.log' for more details." >&5
7939 echo "$as_me: error: cannot compute sizeof (short), 77
7940 See \`config.log' for more details." >&2;}
7941 { (exit 1); exit 1; }; } ;;
7944 if test "$cross_compiling" = yes; then
7945 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
7946 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
7947 { (exit 1); exit 1; }; }
7949 cat >conftest.$ac_ext <<_ACEOF
7952 cat confdefs.h >>conftest.$ac_ext
7953 cat >>conftest.$ac_ext <<_ACEOF
7954 /* end confdefs.h. */
7955 $ac_includes_default
7956 long longval () { return (long) (sizeof (short)); }
7957 unsigned long ulongval () { return (long) (sizeof (short)); }
7964 FILE *f = fopen ("conftest.val", "w");
7967 if (((long) (sizeof (short))) < 0)
7969 long i = longval ();
7970 if (i != ((long) (sizeof (short))))
7972 fprintf (f, "%ld\n", i);
7976 unsigned long i = ulongval ();
7977 if (i != ((long) (sizeof (short))))
7979 fprintf (f, "%lu\n", i);
7981 exit (ferror (f) || fclose (f) != 0);
7987 rm -f conftest$ac_exeext
7988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7989 (eval $ac_link) 2>&5
7991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997 (exit $ac_status); }; }; then
7998 ac_cv_sizeof_short=`cat conftest.val`
8000 echo "$as_me: program exited with status $ac_status" >&5
8001 echo "$as_me: failed program was:" >&5
8002 sed 's/^/| /' conftest.$ac_ext >&5
8005 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
8006 See \`config.log' for more details." >&5
8007 echo "$as_me: error: cannot compute sizeof (short), 77
8008 See \`config.log' for more details." >&2;}
8009 { (exit 1); exit 1; }; }
8011 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8016 ac_cv_sizeof_short=0
8019 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8020 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
8021 cat >>confdefs.h <<_ACEOF
8022 #define SIZEOF_SHORT $ac_cv_sizeof_short
8026 echo "$as_me:$LINENO: checking for int" >&5
8027 echo $ECHO_N "checking for int... $ECHO_C" >&6
8028 if test "${ac_cv_type_int+set}" = set; then
8029 echo $ECHO_N "(cached) $ECHO_C" >&6
8031 cat >conftest.$ac_ext <<_ACEOF
8034 cat confdefs.h >>conftest.$ac_ext
8035 cat >>conftest.$ac_ext <<_ACEOF
8036 /* end confdefs.h. */
8037 $ac_includes_default
8049 rm -f conftest.$ac_objext
8050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8051 (eval $ac_compile) 2>conftest.er1
8053 grep -v '^ *+' conftest.er1 >conftest.err
8055 cat conftest.err >&5
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); } &&
8058 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); }; } &&
8064 { ac_try='test -s conftest.$ac_objext'
8065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); }; }; then
8072 echo "$as_me: failed program was:" >&5
8073 sed 's/^/| /' conftest.$ac_ext >&5
8077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8079 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
8080 echo "${ECHO_T}$ac_cv_type_int" >&6
8082 echo "$as_me:$LINENO: checking size of int" >&5
8083 echo $ECHO_N "checking size of int... $ECHO_C" >&6
8084 if test "${ac_cv_sizeof_int+set}" = set; then
8085 echo $ECHO_N "(cached) $ECHO_C" >&6
8087 if test "$ac_cv_type_int" = yes; then
8088 # The cast to unsigned long works around a bug in the HP C Compiler
8089 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8090 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8091 # This bug is HP SR number 8606223364.
8092 if test "$cross_compiling" = yes; then
8093 # Depending upon the size, compute the lo and hi bounds.
8094 cat >conftest.$ac_ext <<_ACEOF
8097 cat confdefs.h >>conftest.$ac_ext
8098 cat >>conftest.$ac_ext <<_ACEOF
8099 /* end confdefs.h. */
8100 $ac_includes_default
8104 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
8111 rm -f conftest.$ac_objext
8112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8113 (eval $ac_compile) 2>conftest.er1
8115 grep -v '^ *+' conftest.er1 >conftest.err
8117 cat conftest.err >&5
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); } &&
8120 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125 (exit $ac_status); }; } &&
8126 { ac_try='test -s conftest.$ac_objext'
8127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 (exit $ac_status); }; }; then
8134 cat >conftest.$ac_ext <<_ACEOF
8137 cat confdefs.h >>conftest.$ac_ext
8138 cat >>conftest.$ac_ext <<_ACEOF
8139 /* end confdefs.h. */
8140 $ac_includes_default
8144 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
8151 rm -f conftest.$ac_objext
8152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8153 (eval $ac_compile) 2>conftest.er1
8155 grep -v '^ *+' conftest.er1 >conftest.err
8157 cat conftest.err >&5
8158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159 (exit $ac_status); } &&
8160 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); }; } &&
8166 { ac_try='test -s conftest.$ac_objext'
8167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); }; }; then
8172 ac_hi=$ac_mid; break
8174 echo "$as_me: failed program was:" >&5
8175 sed 's/^/| /' conftest.$ac_ext >&5
8177 ac_lo=`expr $ac_mid + 1`
8178 if test $ac_lo -le $ac_mid; then
8182 ac_mid=`expr 2 '*' $ac_mid + 1`
8184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8187 echo "$as_me: failed program was:" >&5
8188 sed 's/^/| /' conftest.$ac_ext >&5
8190 cat >conftest.$ac_ext <<_ACEOF
8193 cat confdefs.h >>conftest.$ac_ext
8194 cat >>conftest.$ac_ext <<_ACEOF
8195 /* end confdefs.h. */
8196 $ac_includes_default
8200 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
8207 rm -f conftest.$ac_objext
8208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8209 (eval $ac_compile) 2>conftest.er1
8211 grep -v '^ *+' conftest.er1 >conftest.err
8213 cat conftest.err >&5
8214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215 (exit $ac_status); } &&
8216 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221 (exit $ac_status); }; } &&
8222 { ac_try='test -s conftest.$ac_objext'
8223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); }; }; then
8230 cat >conftest.$ac_ext <<_ACEOF
8233 cat confdefs.h >>conftest.$ac_ext
8234 cat >>conftest.$ac_ext <<_ACEOF
8235 /* end confdefs.h. */
8236 $ac_includes_default
8240 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
8247 rm -f conftest.$ac_objext
8248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8249 (eval $ac_compile) 2>conftest.er1
8251 grep -v '^ *+' conftest.er1 >conftest.err
8253 cat conftest.err >&5
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); } &&
8256 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); }; } &&
8262 { ac_try='test -s conftest.$ac_objext'
8263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); }; }; then
8268 ac_lo=$ac_mid; break
8270 echo "$as_me: failed program was:" >&5
8271 sed 's/^/| /' conftest.$ac_ext >&5
8273 ac_hi=`expr '(' $ac_mid ')' - 1`
8274 if test $ac_mid -le $ac_hi; then
8278 ac_mid=`expr 2 '*' $ac_mid`
8280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8283 echo "$as_me: failed program was:" >&5
8284 sed 's/^/| /' conftest.$ac_ext >&5
8288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8291 # Binary search between lo and hi bounds.
8292 while test "x$ac_lo" != "x$ac_hi"; do
8293 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8294 cat >conftest.$ac_ext <<_ACEOF
8297 cat confdefs.h >>conftest.$ac_ext
8298 cat >>conftest.$ac_ext <<_ACEOF
8299 /* end confdefs.h. */
8300 $ac_includes_default
8304 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
8311 rm -f conftest.$ac_objext
8312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8313 (eval $ac_compile) 2>conftest.er1
8315 grep -v '^ *+' conftest.er1 >conftest.err
8317 cat conftest.err >&5
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); } &&
8320 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); }; } &&
8326 { ac_try='test -s conftest.$ac_objext'
8327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); }; }; then
8334 echo "$as_me: failed program was:" >&5
8335 sed 's/^/| /' conftest.$ac_ext >&5
8337 ac_lo=`expr '(' $ac_mid ')' + 1`
8339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8342 ?*) ac_cv_sizeof_int=$ac_lo;;
8343 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
8344 See \`config.log' for more details." >&5
8345 echo "$as_me: error: cannot compute sizeof (int), 77
8346 See \`config.log' for more details." >&2;}
8347 { (exit 1); exit 1; }; } ;;
8350 if test "$cross_compiling" = yes; then
8351 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
8352 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
8353 { (exit 1); exit 1; }; }
8355 cat >conftest.$ac_ext <<_ACEOF
8358 cat confdefs.h >>conftest.$ac_ext
8359 cat >>conftest.$ac_ext <<_ACEOF
8360 /* end confdefs.h. */
8361 $ac_includes_default
8362 long longval () { return (long) (sizeof (int)); }
8363 unsigned long ulongval () { return (long) (sizeof (int)); }
8370 FILE *f = fopen ("conftest.val", "w");
8373 if (((long) (sizeof (int))) < 0)
8375 long i = longval ();
8376 if (i != ((long) (sizeof (int))))
8378 fprintf (f, "%ld\n", i);
8382 unsigned long i = ulongval ();
8383 if (i != ((long) (sizeof (int))))
8385 fprintf (f, "%lu\n", i);
8387 exit (ferror (f) || fclose (f) != 0);
8393 rm -f conftest$ac_exeext
8394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8395 (eval $ac_link) 2>&5
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); }; }; then
8404 ac_cv_sizeof_int=`cat conftest.val`
8406 echo "$as_me: program exited with status $ac_status" >&5
8407 echo "$as_me: failed program was:" >&5
8408 sed 's/^/| /' conftest.$ac_ext >&5
8411 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
8412 See \`config.log' for more details." >&5
8413 echo "$as_me: error: cannot compute sizeof (int), 77
8414 See \`config.log' for more details." >&2;}
8415 { (exit 1); exit 1; }; }
8417 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8425 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
8426 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
8427 cat >>confdefs.h <<_ACEOF
8428 #define SIZEOF_INT $ac_cv_sizeof_int
8432 echo "$as_me:$LINENO: checking for long long" >&5
8433 echo $ECHO_N "checking for long long... $ECHO_C" >&6
8434 if test "${ac_cv_type_long_long+set}" = set; then
8435 echo $ECHO_N "(cached) $ECHO_C" >&6
8437 cat >conftest.$ac_ext <<_ACEOF
8440 cat confdefs.h >>conftest.$ac_ext
8441 cat >>conftest.$ac_ext <<_ACEOF
8442 /* end confdefs.h. */
8443 $ac_includes_default
8447 if ((long long *) 0)
8449 if (sizeof (long long))
8455 rm -f conftest.$ac_objext
8456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8457 (eval $ac_compile) 2>conftest.er1
8459 grep -v '^ *+' conftest.er1 >conftest.err
8461 cat conftest.err >&5
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 (exit $ac_status); } &&
8464 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); }; } &&
8470 { ac_try='test -s conftest.$ac_objext'
8471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); }; }; then
8476 ac_cv_type_long_long=yes
8478 echo "$as_me: failed program was:" >&5
8479 sed 's/^/| /' conftest.$ac_ext >&5
8481 ac_cv_type_long_long=no
8483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8485 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8486 echo "${ECHO_T}$ac_cv_type_long_long" >&6
8488 echo "$as_me:$LINENO: checking size of long long" >&5
8489 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
8490 if test "${ac_cv_sizeof_long_long+set}" = set; then
8491 echo $ECHO_N "(cached) $ECHO_C" >&6
8493 if test "$ac_cv_type_long_long" = yes; then
8494 # The cast to unsigned long works around a bug in the HP C Compiler
8495 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8496 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8497 # This bug is HP SR number 8606223364.
8498 if test "$cross_compiling" = yes; then
8499 # Depending upon the size, compute the lo and hi bounds.
8500 cat >conftest.$ac_ext <<_ACEOF
8503 cat confdefs.h >>conftest.$ac_ext
8504 cat >>conftest.$ac_ext <<_ACEOF
8505 /* end confdefs.h. */
8506 $ac_includes_default
8510 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
8517 rm -f conftest.$ac_objext
8518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8519 (eval $ac_compile) 2>conftest.er1
8521 grep -v '^ *+' conftest.er1 >conftest.err
8523 cat conftest.err >&5
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); } &&
8526 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); }; } &&
8532 { ac_try='test -s conftest.$ac_objext'
8533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); }; }; then
8540 cat >conftest.$ac_ext <<_ACEOF
8543 cat confdefs.h >>conftest.$ac_ext
8544 cat >>conftest.$ac_ext <<_ACEOF
8545 /* end confdefs.h. */
8546 $ac_includes_default
8550 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
8557 rm -f conftest.$ac_objext
8558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8559 (eval $ac_compile) 2>conftest.er1
8561 grep -v '^ *+' conftest.er1 >conftest.err
8563 cat conftest.err >&5
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); } &&
8566 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); }; } &&
8572 { ac_try='test -s conftest.$ac_objext'
8573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); }; }; then
8578 ac_hi=$ac_mid; break
8580 echo "$as_me: failed program was:" >&5
8581 sed 's/^/| /' conftest.$ac_ext >&5
8583 ac_lo=`expr $ac_mid + 1`
8584 if test $ac_lo -le $ac_mid; then
8588 ac_mid=`expr 2 '*' $ac_mid + 1`
8590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8593 echo "$as_me: failed program was:" >&5
8594 sed 's/^/| /' conftest.$ac_ext >&5
8596 cat >conftest.$ac_ext <<_ACEOF
8599 cat confdefs.h >>conftest.$ac_ext
8600 cat >>conftest.$ac_ext <<_ACEOF
8601 /* end confdefs.h. */
8602 $ac_includes_default
8606 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
8613 rm -f conftest.$ac_objext
8614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8615 (eval $ac_compile) 2>conftest.er1
8617 grep -v '^ *+' conftest.er1 >conftest.err
8619 cat conftest.err >&5
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); } &&
8622 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); }; } &&
8628 { ac_try='test -s conftest.$ac_objext'
8629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633 (exit $ac_status); }; }; then
8636 cat >conftest.$ac_ext <<_ACEOF
8639 cat confdefs.h >>conftest.$ac_ext
8640 cat >>conftest.$ac_ext <<_ACEOF
8641 /* end confdefs.h. */
8642 $ac_includes_default
8646 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
8653 rm -f conftest.$ac_objext
8654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8655 (eval $ac_compile) 2>conftest.er1
8657 grep -v '^ *+' conftest.er1 >conftest.err
8659 cat conftest.err >&5
8660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661 (exit $ac_status); } &&
8662 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 (exit $ac_status); }; } &&
8668 { ac_try='test -s conftest.$ac_objext'
8669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); }; }; then
8674 ac_lo=$ac_mid; break
8676 echo "$as_me: failed program was:" >&5
8677 sed 's/^/| /' conftest.$ac_ext >&5
8679 ac_hi=`expr '(' $ac_mid ')' - 1`
8680 if test $ac_mid -le $ac_hi; then
8684 ac_mid=`expr 2 '*' $ac_mid`
8686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8689 echo "$as_me: failed program was:" >&5
8690 sed 's/^/| /' conftest.$ac_ext >&5
8694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8697 # Binary search between lo and hi bounds.
8698 while test "x$ac_lo" != "x$ac_hi"; do
8699 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8700 cat >conftest.$ac_ext <<_ACEOF
8703 cat confdefs.h >>conftest.$ac_ext
8704 cat >>conftest.$ac_ext <<_ACEOF
8705 /* end confdefs.h. */
8706 $ac_includes_default
8710 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
8717 rm -f conftest.$ac_objext
8718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8719 (eval $ac_compile) 2>conftest.er1
8721 grep -v '^ *+' conftest.er1 >conftest.err
8723 cat conftest.err >&5
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); } &&
8726 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731 (exit $ac_status); }; } &&
8732 { ac_try='test -s conftest.$ac_objext'
8733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737 (exit $ac_status); }; }; then
8740 echo "$as_me: failed program was:" >&5
8741 sed 's/^/| /' conftest.$ac_ext >&5
8743 ac_lo=`expr '(' $ac_mid ')' + 1`
8745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8748 ?*) ac_cv_sizeof_long_long=$ac_lo;;
8749 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
8750 See \`config.log' for more details." >&5
8751 echo "$as_me: error: cannot compute sizeof (long long), 77
8752 See \`config.log' for more details." >&2;}
8753 { (exit 1); exit 1; }; } ;;
8756 if test "$cross_compiling" = yes; then
8757 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
8758 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
8759 { (exit 1); exit 1; }; }
8761 cat >conftest.$ac_ext <<_ACEOF
8764 cat confdefs.h >>conftest.$ac_ext
8765 cat >>conftest.$ac_ext <<_ACEOF
8766 /* end confdefs.h. */
8767 $ac_includes_default
8768 long longval () { return (long) (sizeof (long long)); }
8769 unsigned long ulongval () { return (long) (sizeof (long long)); }
8776 FILE *f = fopen ("conftest.val", "w");
8779 if (((long) (sizeof (long long))) < 0)
8781 long i = longval ();
8782 if (i != ((long) (sizeof (long long))))
8784 fprintf (f, "%ld\n", i);
8788 unsigned long i = ulongval ();
8789 if (i != ((long) (sizeof (long long))))
8791 fprintf (f, "%lu\n", i);
8793 exit (ferror (f) || fclose (f) != 0);
8799 rm -f conftest$ac_exeext
8800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8801 (eval $ac_link) 2>&5
8803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809 (exit $ac_status); }; }; then
8810 ac_cv_sizeof_long_long=`cat conftest.val`
8812 echo "$as_me: program exited with status $ac_status" >&5
8813 echo "$as_me: failed program was:" >&5
8814 sed 's/^/| /' conftest.$ac_ext >&5
8817 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
8818 See \`config.log' for more details." >&5
8819 echo "$as_me: error: cannot compute sizeof (long long), 77
8820 See \`config.log' for more details." >&2;}
8821 { (exit 1); exit 1; }; }
8823 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8828 ac_cv_sizeof_long_long=0
8831 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
8832 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
8833 cat >>confdefs.h <<_ACEOF
8834 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8838 echo "$as_me:$LINENO: checking for int *" >&5
8839 echo $ECHO_N "checking for int *... $ECHO_C" >&6
8840 if test "${ac_cv_type_int_p+set}" = set; then
8841 echo $ECHO_N "(cached) $ECHO_C" >&6
8843 cat >conftest.$ac_ext <<_ACEOF
8846 cat confdefs.h >>conftest.$ac_ext
8847 cat >>conftest.$ac_ext <<_ACEOF
8848 /* end confdefs.h. */
8849 $ac_includes_default
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" || test ! -s conftest.err'
8871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); }; } &&
8876 { ac_try='test -s conftest.$ac_objext'
8877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 (exit $ac_status); }; }; then
8882 ac_cv_type_int_p=yes
8884 echo "$as_me: failed program was:" >&5
8885 sed 's/^/| /' conftest.$ac_ext >&5
8889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8891 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
8892 echo "${ECHO_T}$ac_cv_type_int_p" >&6
8894 echo "$as_me:$LINENO: checking size of int *" >&5
8895 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
8896 if test "${ac_cv_sizeof_int_p+set}" = set; then
8897 echo $ECHO_N "(cached) $ECHO_C" >&6
8899 if test "$ac_cv_type_int_p" = yes; then
8900 # The cast to unsigned long works around a bug in the HP C Compiler
8901 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8902 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8903 # This bug is HP SR number 8606223364.
8904 if test "$cross_compiling" = yes; then
8905 # Depending upon the size, compute the lo and hi bounds.
8906 cat >conftest.$ac_ext <<_ACEOF
8909 cat confdefs.h >>conftest.$ac_ext
8910 cat >>conftest.$ac_ext <<_ACEOF
8911 /* end confdefs.h. */
8912 $ac_includes_default
8916 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
8923 rm -f conftest.$ac_objext
8924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8925 (eval $ac_compile) 2>conftest.er1
8927 grep -v '^ *+' conftest.er1 >conftest.err
8929 cat conftest.err >&5
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); } &&
8932 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937 (exit $ac_status); }; } &&
8938 { ac_try='test -s conftest.$ac_objext'
8939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 (exit $ac_status); }; }; then
8946 cat >conftest.$ac_ext <<_ACEOF
8949 cat confdefs.h >>conftest.$ac_ext
8950 cat >>conftest.$ac_ext <<_ACEOF
8951 /* end confdefs.h. */
8952 $ac_includes_default
8956 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
8963 rm -f conftest.$ac_objext
8964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8965 (eval $ac_compile) 2>conftest.er1
8967 grep -v '^ *+' conftest.er1 >conftest.err
8969 cat conftest.err >&5
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); } &&
8972 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977 (exit $ac_status); }; } &&
8978 { ac_try='test -s conftest.$ac_objext'
8979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 (exit $ac_status); }; }; then
8984 ac_hi=$ac_mid; break
8986 echo "$as_me: failed program was:" >&5
8987 sed 's/^/| /' conftest.$ac_ext >&5
8989 ac_lo=`expr $ac_mid + 1`
8990 if test $ac_lo -le $ac_mid; then
8994 ac_mid=`expr 2 '*' $ac_mid + 1`
8996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8999 echo "$as_me: failed program was:" >&5
9000 sed 's/^/| /' conftest.$ac_ext >&5
9002 cat >conftest.$ac_ext <<_ACEOF
9005 cat confdefs.h >>conftest.$ac_ext
9006 cat >>conftest.$ac_ext <<_ACEOF
9007 /* end confdefs.h. */
9008 $ac_includes_default
9012 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
9019 rm -f conftest.$ac_objext
9020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9021 (eval $ac_compile) 2>conftest.er1
9023 grep -v '^ *+' conftest.er1 >conftest.err
9025 cat conftest.err >&5
9026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027 (exit $ac_status); } &&
9028 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033 (exit $ac_status); }; } &&
9034 { ac_try='test -s conftest.$ac_objext'
9035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039 (exit $ac_status); }; }; then
9042 cat >conftest.$ac_ext <<_ACEOF
9045 cat confdefs.h >>conftest.$ac_ext
9046 cat >>conftest.$ac_ext <<_ACEOF
9047 /* end confdefs.h. */
9048 $ac_includes_default
9052 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
9059 rm -f conftest.$ac_objext
9060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9061 (eval $ac_compile) 2>conftest.er1
9063 grep -v '^ *+' conftest.er1 >conftest.err
9065 cat conftest.err >&5
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); } &&
9068 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073 (exit $ac_status); }; } &&
9074 { ac_try='test -s conftest.$ac_objext'
9075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079 (exit $ac_status); }; }; then
9080 ac_lo=$ac_mid; break
9082 echo "$as_me: failed program was:" >&5
9083 sed 's/^/| /' conftest.$ac_ext >&5
9085 ac_hi=`expr '(' $ac_mid ')' - 1`
9086 if test $ac_mid -le $ac_hi; then
9090 ac_mid=`expr 2 '*' $ac_mid`
9092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9095 echo "$as_me: failed program was:" >&5
9096 sed 's/^/| /' conftest.$ac_ext >&5
9100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9103 # Binary search between lo and hi bounds.
9104 while test "x$ac_lo" != "x$ac_hi"; do
9105 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9106 cat >conftest.$ac_ext <<_ACEOF
9109 cat confdefs.h >>conftest.$ac_ext
9110 cat >>conftest.$ac_ext <<_ACEOF
9111 /* end confdefs.h. */
9112 $ac_includes_default
9116 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
9123 rm -f conftest.$ac_objext
9124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9125 (eval $ac_compile) 2>conftest.er1
9127 grep -v '^ *+' conftest.er1 >conftest.err
9129 cat conftest.err >&5
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); } &&
9132 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 (exit $ac_status); }; } &&
9138 { ac_try='test -s conftest.$ac_objext'
9139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143 (exit $ac_status); }; }; then
9146 echo "$as_me: failed program was:" >&5
9147 sed 's/^/| /' conftest.$ac_ext >&5
9149 ac_lo=`expr '(' $ac_mid ')' + 1`
9151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9154 ?*) ac_cv_sizeof_int_p=$ac_lo;;
9155 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
9156 See \`config.log' for more details." >&5
9157 echo "$as_me: error: cannot compute sizeof (int *), 77
9158 See \`config.log' for more details." >&2;}
9159 { (exit 1); exit 1; }; } ;;
9162 if test "$cross_compiling" = yes; then
9163 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
9164 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
9165 { (exit 1); exit 1; }; }
9167 cat >conftest.$ac_ext <<_ACEOF
9170 cat confdefs.h >>conftest.$ac_ext
9171 cat >>conftest.$ac_ext <<_ACEOF
9172 /* end confdefs.h. */
9173 $ac_includes_default
9174 long longval () { return (long) (sizeof (int *)); }
9175 unsigned long ulongval () { return (long) (sizeof (int *)); }
9182 FILE *f = fopen ("conftest.val", "w");
9185 if (((long) (sizeof (int *))) < 0)
9187 long i = longval ();
9188 if (i != ((long) (sizeof (int *))))
9190 fprintf (f, "%ld\n", i);
9194 unsigned long i = ulongval ();
9195 if (i != ((long) (sizeof (int *))))
9197 fprintf (f, "%lu\n", i);
9199 exit (ferror (f) || fclose (f) != 0);
9205 rm -f conftest$ac_exeext
9206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9207 (eval $ac_link) 2>&5
9209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215 (exit $ac_status); }; }; then
9216 ac_cv_sizeof_int_p=`cat conftest.val`
9218 echo "$as_me: program exited with status $ac_status" >&5
9219 echo "$as_me: failed program was:" >&5
9220 sed 's/^/| /' conftest.$ac_ext >&5
9223 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
9224 See \`config.log' for more details." >&5
9225 echo "$as_me: error: cannot compute sizeof (int *), 77
9226 See \`config.log' for more details." >&2;}
9227 { (exit 1); exit 1; }; }
9229 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9234 ac_cv_sizeof_int_p=0
9237 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
9238 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
9239 cat >>confdefs.h <<_ACEOF
9240 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
9246 echo "$as_me:$LINENO: checking for int16_t" >&5
9247 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
9248 if test "${rxvt_cv_int16_t+set}" = set; then
9249 echo $ECHO_N "(cached) $ECHO_C" >&6
9251 cat >conftest.$ac_ext <<_ACEOF
9254 cat confdefs.h >>conftest.$ac_ext
9255 cat >>conftest.$ac_ext <<_ACEOF
9256 /* end confdefs.h. */
9266 rm -f conftest.$ac_objext
9267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9268 (eval $ac_compile) 2>conftest.er1
9270 grep -v '^ *+' conftest.er1 >conftest.err
9272 cat conftest.err >&5
9273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274 (exit $ac_status); } &&
9275 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280 (exit $ac_status); }; } &&
9281 { ac_try='test -s conftest.$ac_objext'
9282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9286 (exit $ac_status); }; }; then
9289 echo "$as_me: failed program was:" >&5
9290 sed 's/^/| /' conftest.$ac_ext >&5
9292 if test "$ac_cv_sizeof_char" -ge 2; then
9293 rxvt_cv_int16_t=" char"
9295 if test "$ac_cv_sizeof_short" -ge 2; then
9296 rxvt_cv_int16_t=" short"
9298 if test "$ac_cv_sizeof_int" -ge 2; then
9299 rxvt_cv_int16_t=" int"
9301 if test "$ac_cv_sizeof_long" -ge 2; then
9302 rxvt_cv_int16_t=" long"
9304 if test "$ac_cv_sizeof_long_long" -ge 2; then
9305 rxvt_cv_int16_t=" long long"
9307 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
9314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9316 echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5
9317 echo "${ECHO_T}$rxvt_cv_int16_t" >&6
9318 if test x"$rxvt_cv_int16_t" != xyes; then
9319 rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;"
9321 if test x"" = x; then
9322 rxvt_int16_typedef="/* typedef short int16_t; */"
9324 rxvt_int16_typedef="/* typedef short int16_t; */"
9328 echo "$as_me:$LINENO: checking for uint16_t" >&5
9329 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
9330 if test "${rxvt_cv_uint16_t+set}" = set; then
9331 echo $ECHO_N "(cached) $ECHO_C" >&6
9333 cat >conftest.$ac_ext <<_ACEOF
9336 cat confdefs.h >>conftest.$ac_ext
9337 cat >>conftest.$ac_ext <<_ACEOF
9338 /* end confdefs.h. */
9348 rm -f conftest.$ac_objext
9349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9350 (eval $ac_compile) 2>conftest.er1
9352 grep -v '^ *+' conftest.er1 >conftest.err
9354 cat conftest.err >&5
9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356 (exit $ac_status); } &&
9357 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); }; } &&
9363 { ac_try='test -s conftest.$ac_objext'
9364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368 (exit $ac_status); }; }; then
9369 rxvt_cv_uint16_t=yes
9371 echo "$as_me: failed program was:" >&5
9372 sed 's/^/| /' conftest.$ac_ext >&5
9374 if test "$ac_cv_sizeof_char" -ge 2; then
9375 rxvt_cv_uint16_t="unsigned char"
9377 if test "$ac_cv_sizeof_short" -ge 2; then
9378 rxvt_cv_uint16_t="unsigned short"
9380 if test "$ac_cv_sizeof_int" -ge 2; then
9381 rxvt_cv_uint16_t="unsigned int"
9383 if test "$ac_cv_sizeof_long" -ge 2; then
9384 rxvt_cv_uint16_t="unsigned long"
9386 if test "$ac_cv_sizeof_long_long" -ge 2; then
9387 rxvt_cv_uint16_t="unsigned long long"
9389 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default
9396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9398 echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5
9399 echo "${ECHO_T}$rxvt_cv_uint16_t" >&6
9400 if test x"$rxvt_cv_uint16_t" != xyes; then
9401 rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;"
9403 if test x"unsigned" = x; then
9404 rxvt_uint16_typedef="/* typedef short uint16_t; */"
9406 rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */"
9410 echo "$as_me:$LINENO: checking for int32_t" >&5
9411 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
9412 if test "${rxvt_cv_int32_t+set}" = set; then
9413 echo $ECHO_N "(cached) $ECHO_C" >&6
9415 cat >conftest.$ac_ext <<_ACEOF
9418 cat confdefs.h >>conftest.$ac_ext
9419 cat >>conftest.$ac_ext <<_ACEOF
9420 /* end confdefs.h. */
9430 rm -f conftest.$ac_objext
9431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9432 (eval $ac_compile) 2>conftest.er1
9434 grep -v '^ *+' conftest.er1 >conftest.err
9436 cat conftest.err >&5
9437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438 (exit $ac_status); } &&
9439 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444 (exit $ac_status); }; } &&
9445 { ac_try='test -s conftest.$ac_objext'
9446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450 (exit $ac_status); }; }; then
9453 echo "$as_me: failed program was:" >&5
9454 sed 's/^/| /' conftest.$ac_ext >&5
9456 if test "$ac_cv_sizeof_char" -ge 4; then
9457 rxvt_cv_int32_t=" char"
9459 if test "$ac_cv_sizeof_short" -ge 4; then
9460 rxvt_cv_int32_t=" short"
9462 if test "$ac_cv_sizeof_int" -ge 4; then
9463 rxvt_cv_int32_t=" int"
9465 if test "$ac_cv_sizeof_long" -ge 4; then
9466 rxvt_cv_int32_t=" long"
9468 if test "$ac_cv_sizeof_long_long" -ge 4; then
9469 rxvt_cv_int32_t=" long long"
9471 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
9478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9480 echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5
9481 echo "${ECHO_T}$rxvt_cv_int32_t" >&6
9482 if test x"$rxvt_cv_int32_t" != xyes; then
9483 rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;"
9485 if test x"" = x; then
9486 rxvt_int32_typedef="/* typedef int int32_t; */"
9488 rxvt_int32_typedef="/* typedef int int32_t; */"
9492 echo "$as_me:$LINENO: checking for uint32_t" >&5
9493 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
9494 if test "${rxvt_cv_uint32_t+set}" = set; then
9495 echo $ECHO_N "(cached) $ECHO_C" >&6
9497 cat >conftest.$ac_ext <<_ACEOF
9500 cat confdefs.h >>conftest.$ac_ext
9501 cat >>conftest.$ac_ext <<_ACEOF
9502 /* end confdefs.h. */
9512 rm -f conftest.$ac_objext
9513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9514 (eval $ac_compile) 2>conftest.er1
9516 grep -v '^ *+' conftest.er1 >conftest.err
9518 cat conftest.err >&5
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); } &&
9521 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526 (exit $ac_status); }; } &&
9527 { ac_try='test -s conftest.$ac_objext'
9528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532 (exit $ac_status); }; }; then
9533 rxvt_cv_uint32_t=yes
9535 echo "$as_me: failed program was:" >&5
9536 sed 's/^/| /' conftest.$ac_ext >&5
9538 if test "$ac_cv_sizeof_char" -ge 4; then
9539 rxvt_cv_uint32_t="unsigned char"
9541 if test "$ac_cv_sizeof_short" -ge 4; then
9542 rxvt_cv_uint32_t="unsigned short"
9544 if test "$ac_cv_sizeof_int" -ge 4; then
9545 rxvt_cv_uint32_t="unsigned int"
9547 if test "$ac_cv_sizeof_long" -ge 4; then
9548 rxvt_cv_uint32_t="unsigned long"
9550 if test "$ac_cv_sizeof_long_long" -ge 4; then
9551 rxvt_cv_uint32_t="unsigned long long"
9553 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default
9560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9562 echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5
9563 echo "${ECHO_T}$rxvt_cv_uint32_t" >&6
9564 if test x"$rxvt_cv_uint32_t" != xyes; then
9565 rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;"
9567 if test x"unsigned" = x; then
9568 rxvt_uint32_typedef="/* typedef int uint32_t; */"
9570 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
9574 if test "$ac_cv_sizeof_int_p" -eq 8; then
9575 rxvt_intp_define="#define intp_t int64_t"
9576 rxvt_u_intp_define="#define u_intp_t u_int64_t"
9578 if test "$ac_cv_sizeof_int_p" -eq 4; then
9579 rxvt_intp_define="#define intp_t int32_t"
9580 rxvt_u_intp_define="#define u_intp_t u_int32_t"
9582 if test "$ac_cv_sizeof_int_p" -eq 2; then
9583 rxvt_intp_define="#define intp_t int16_t"
9584 rxvt_u_intp_define="#define u_intp_t u_int16_t"
9586 rxvt_intp_define="#error set intp_t"
9587 rxvt_u_intp_define="#error set u_intp_t"
9594 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
9595 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
9596 if test "${ac_cv_type_signal+set}" = set; then
9597 echo $ECHO_N "(cached) $ECHO_C" >&6
9599 cat >conftest.$ac_ext <<_ACEOF
9602 cat confdefs.h >>conftest.$ac_ext
9603 cat >>conftest.$ac_ext <<_ACEOF
9604 /* end confdefs.h. */
9605 #include <sys/types.h>
9611 extern "C" void (*signal (int, void (*)(int)))(int);
9613 void (*signal ()) ();
9624 rm -f conftest.$ac_objext
9625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9626 (eval $ac_compile) 2>conftest.er1
9628 grep -v '^ *+' conftest.er1 >conftest.err
9630 cat conftest.err >&5
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); } &&
9633 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638 (exit $ac_status); }; } &&
9639 { ac_try='test -s conftest.$ac_objext'
9640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); }; }; then
9645 ac_cv_type_signal=void
9647 echo "$as_me: failed program was:" >&5
9648 sed 's/^/| /' conftest.$ac_ext >&5
9650 ac_cv_type_signal=int
9652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9654 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9655 echo "${ECHO_T}$ac_cv_type_signal" >&6
9657 cat >>confdefs.h <<_ACEOF
9658 #define RETSIGTYPE $ac_cv_type_signal
9663 case "$host_alias" in
9664 *ultrix) ac_cv_func_setsid='no' ;;
9709 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9710 echo "$as_me:$LINENO: checking for $ac_func" >&5
9711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9712 if eval "test \"\${$as_ac_var+set}\" = set"; then
9713 echo $ECHO_N "(cached) $ECHO_C" >&6
9715 cat >conftest.$ac_ext <<_ACEOF
9718 cat confdefs.h >>conftest.$ac_ext
9719 cat >>conftest.$ac_ext <<_ACEOF
9720 /* end confdefs.h. */
9721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9723 #define $ac_func innocuous_$ac_func
9725 /* System header to define __stub macros and hopefully few prototypes,
9726 which can conflict with char $ac_func (); below.
9727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9728 <limits.h> exists even on freestanding compilers. */
9731 # include <limits.h>
9733 # include <assert.h>
9738 /* Override any gcc2 internal prototype to avoid an error. */
9743 /* We use char because int might match the return type of a gcc2
9744 builtin and then its argument prototype would still apply. */
9746 /* The GNU C library defines this for functions which it implements
9747 to always fail with ENOSYS. Some functions are actually named
9748 something starting with __ and the normal name is an alias. */
9749 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9752 char (*f) () = $ac_func;
9761 return f != $ac_func;
9766 rm -f conftest.$ac_objext conftest$ac_exeext
9767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9768 (eval $ac_link) 2>conftest.er1
9770 grep -v '^ *+' conftest.er1 >conftest.err
9772 cat conftest.err >&5
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); } &&
9775 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 (exit $ac_status); }; } &&
9781 { ac_try='test -s conftest$ac_exeext'
9782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786 (exit $ac_status); }; }; then
9787 eval "$as_ac_var=yes"
9789 echo "$as_me: failed program was:" >&5
9790 sed 's/^/| /' conftest.$ac_ext >&5
9792 eval "$as_ac_var=no"
9794 rm -f conftest.err conftest.$ac_objext \
9795 conftest$ac_exeext conftest.$ac_ext
9797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9798 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9799 if test `eval echo '${'$as_ac_var'}'` = yes; then
9800 cat >>confdefs.h <<_ACEOF
9801 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9809 if test "${ac_cv_header_utmp_h+set}" = set; then
9810 echo "$as_me:$LINENO: checking for utmp.h" >&5
9811 echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
9812 if test "${ac_cv_header_utmp_h+set}" = set; then
9813 echo $ECHO_N "(cached) $ECHO_C" >&6
9815 echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
9816 echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
9818 # Is the header compilable?
9819 echo "$as_me:$LINENO: checking utmp.h usability" >&5
9820 echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6
9821 cat >conftest.$ac_ext <<_ACEOF
9824 cat confdefs.h >>conftest.$ac_ext
9825 cat >>conftest.$ac_ext <<_ACEOF
9826 /* end confdefs.h. */
9827 $ac_includes_default
9830 rm -f conftest.$ac_objext
9831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9832 (eval $ac_compile) 2>conftest.er1
9834 grep -v '^ *+' conftest.er1 >conftest.err
9836 cat conftest.err >&5
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); } &&
9839 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844 (exit $ac_status); }; } &&
9845 { ac_try='test -s conftest.$ac_objext'
9846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850 (exit $ac_status); }; }; then
9851 ac_header_compiler=yes
9853 echo "$as_me: failed program was:" >&5
9854 sed 's/^/| /' conftest.$ac_ext >&5
9856 ac_header_compiler=no
9858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9859 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9860 echo "${ECHO_T}$ac_header_compiler" >&6
9862 # Is the header present?
9863 echo "$as_me:$LINENO: checking utmp.h presence" >&5
9864 echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6
9865 cat >conftest.$ac_ext <<_ACEOF
9868 cat confdefs.h >>conftest.$ac_ext
9869 cat >>conftest.$ac_ext <<_ACEOF
9870 /* end confdefs.h. */
9873 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9874 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9876 grep -v '^ *+' conftest.er1 >conftest.err
9878 cat conftest.err >&5
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); } >/dev/null; then
9881 if test -s conftest.err; then
9882 ac_cpp_err=$ac_cxx_preproc_warn_flag
9883 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
9890 if test -z "$ac_cpp_err"; then
9891 ac_header_preproc=yes
9893 echo "$as_me: failed program was:" >&5
9894 sed 's/^/| /' conftest.$ac_ext >&5
9896 ac_header_preproc=no
9898 rm -f conftest.err conftest.$ac_ext
9899 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9900 echo "${ECHO_T}$ac_header_preproc" >&6
9902 # So? What about this header?
9903 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9905 { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
9906 echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9907 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5
9908 echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;}
9909 ac_header_preproc=yes
9912 { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5
9913 echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;}
9914 { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5
9915 echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;}
9916 { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5
9917 echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;}
9918 { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5
9919 echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
9920 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5
9921 echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;}
9922 { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5
9923 echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;}
9926 ## ------------------------------------------ ##
9927 ## Report this to the AC_PACKAGE_NAME lists. ##
9928 ## ------------------------------------------ ##
9931 sed "s/^/$as_me: WARNING: /" >&2
9934 echo "$as_me:$LINENO: checking for utmp.h" >&5
9935 echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
9936 if test "${ac_cv_header_utmp_h+set}" = set; then
9937 echo $ECHO_N "(cached) $ECHO_C" >&6
9939 ac_cv_header_utmp_h=$ac_header_preproc
9941 echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
9942 echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
9945 if test $ac_cv_header_utmp_h = yes; then
9946 echo "$as_me:$LINENO: checking for struct utmp" >&5
9947 echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6
9948 if test "${rxvt_cv_struct_utmp+set}" = set; then
9949 echo $ECHO_N "(cached) $ECHO_C" >&6
9951 cat >conftest.$ac_ext <<_ACEOF
9954 cat confdefs.h >>conftest.$ac_ext
9955 cat >>conftest.$ac_ext <<_ACEOF
9956 /* end confdefs.h. */
9957 #include <sys/types.h>
9968 rm -f conftest.$ac_objext
9969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9970 (eval $ac_compile) 2>conftest.er1
9972 grep -v '^ *+' conftest.er1 >conftest.err
9974 cat conftest.err >&5
9975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976 (exit $ac_status); } &&
9977 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); }; } &&
9983 { ac_try='test -s conftest.$ac_objext'
9984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); }; }; then
9989 rxvt_cv_struct_utmp=yes
9991 echo "$as_me: failed program was:" >&5
9992 sed 's/^/| /' conftest.$ac_ext >&5
9994 rxvt_cv_struct_utmp=no
9996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9998 echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp" >&5
9999 echo "${ECHO_T}$rxvt_cv_struct_utmp" >&6
10000 if test x$rxvt_cv_struct_utmp = xyes; then
10002 cat >>confdefs.h <<\_ACEOF
10003 #define HAVE_STRUCT_UTMP 1
10009 echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5
10010 echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6
10011 if test "${rxvt_cv_struct_utmp_host+set}" = set; then
10012 echo $ECHO_N "(cached) $ECHO_C" >&6
10014 cat >conftest.$ac_ext <<_ACEOF
10017 cat confdefs.h >>conftest.$ac_ext
10018 cat >>conftest.$ac_ext <<_ACEOF
10019 /* end confdefs.h. */
10020 #include <sys/types.h>
10025 struct utmp ut; ut.ut_host;
10030 rm -f conftest.$ac_objext
10031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10032 (eval $ac_compile) 2>conftest.er1
10034 grep -v '^ *+' conftest.er1 >conftest.err
10036 cat conftest.err >&5
10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); } &&
10039 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10041 (eval $ac_try) 2>&5
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); }; } &&
10045 { ac_try='test -s conftest.$ac_objext'
10046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10047 (eval $ac_try) 2>&5
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); }; }; then
10051 rxvt_cv_struct_utmp_host=yes
10053 echo "$as_me: failed program was:" >&5
10054 sed 's/^/| /' conftest.$ac_ext >&5
10056 rxvt_cv_struct_utmp_host=no
10058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10060 echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_host" >&5
10061 echo "${ECHO_T}$rxvt_cv_struct_utmp_host" >&6
10062 if test x$rxvt_cv_struct_utmp_host = xyes; then
10064 cat >>confdefs.h <<\_ACEOF
10065 #define HAVE_UTMP_HOST 1
10070 echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5
10071 echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6
10072 if test "${rxvt_cv_struct_utmp_pid+set}" = set; then
10073 echo $ECHO_N "(cached) $ECHO_C" >&6
10075 cat >conftest.$ac_ext <<_ACEOF
10078 cat confdefs.h >>conftest.$ac_ext
10079 cat >>conftest.$ac_ext <<_ACEOF
10080 /* end confdefs.h. */
10081 #include <sys/types.h>
10086 struct utmp ut; ut.ut_pid;
10091 rm -f conftest.$ac_objext
10092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10093 (eval $ac_compile) 2>conftest.er1
10095 grep -v '^ *+' conftest.er1 >conftest.err
10097 cat conftest.err >&5
10098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099 (exit $ac_status); } &&
10100 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10102 (eval $ac_try) 2>&5
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 (exit $ac_status); }; } &&
10106 { ac_try='test -s conftest.$ac_objext'
10107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10108 (eval $ac_try) 2>&5
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); }; }; then
10112 rxvt_cv_struct_utmp_pid=yes
10114 echo "$as_me: failed program was:" >&5
10115 sed 's/^/| /' conftest.$ac_ext >&5
10117 rxvt_cv_struct_utmp_pid=no
10119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10121 echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_pid" >&5
10122 echo "${ECHO_T}$rxvt_cv_struct_utmp_pid" >&6
10123 if test x$rxvt_cv_struct_utmp_pid = xyes; then
10125 cat >>confdefs.h <<\_ACEOF
10126 #define HAVE_UTMP_PID 1
10135 if test "${ac_cv_header_utmpx_h+set}" = set; then
10136 echo "$as_me:$LINENO: checking for utmpx.h" >&5
10137 echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
10138 if test "${ac_cv_header_utmpx_h+set}" = set; then
10139 echo $ECHO_N "(cached) $ECHO_C" >&6
10141 echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
10142 echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
10144 # Is the header compilable?
10145 echo "$as_me:$LINENO: checking utmpx.h usability" >&5
10146 echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6
10147 cat >conftest.$ac_ext <<_ACEOF
10150 cat confdefs.h >>conftest.$ac_ext
10151 cat >>conftest.$ac_ext <<_ACEOF
10152 /* end confdefs.h. */
10153 $ac_includes_default
10156 rm -f conftest.$ac_objext
10157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10158 (eval $ac_compile) 2>conftest.er1
10160 grep -v '^ *+' conftest.er1 >conftest.err
10162 cat conftest.err >&5
10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164 (exit $ac_status); } &&
10165 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10167 (eval $ac_try) 2>&5
10169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170 (exit $ac_status); }; } &&
10171 { ac_try='test -s conftest.$ac_objext'
10172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10173 (eval $ac_try) 2>&5
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); }; }; then
10177 ac_header_compiler=yes
10179 echo "$as_me: failed program was:" >&5
10180 sed 's/^/| /' conftest.$ac_ext >&5
10182 ac_header_compiler=no
10184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10185 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10186 echo "${ECHO_T}$ac_header_compiler" >&6
10188 # Is the header present?
10189 echo "$as_me:$LINENO: checking utmpx.h presence" >&5
10190 echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6
10191 cat >conftest.$ac_ext <<_ACEOF
10194 cat confdefs.h >>conftest.$ac_ext
10195 cat >>conftest.$ac_ext <<_ACEOF
10196 /* end confdefs.h. */
10199 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10200 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10202 grep -v '^ *+' conftest.er1 >conftest.err
10204 cat conftest.err >&5
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); } >/dev/null; then
10207 if test -s conftest.err; then
10208 ac_cpp_err=$ac_cxx_preproc_warn_flag
10209 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10216 if test -z "$ac_cpp_err"; then
10217 ac_header_preproc=yes
10219 echo "$as_me: failed program was:" >&5
10220 sed 's/^/| /' conftest.$ac_ext >&5
10222 ac_header_preproc=no
10224 rm -f conftest.err conftest.$ac_ext
10225 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10226 echo "${ECHO_T}$ac_header_preproc" >&6
10228 # So? What about this header?
10229 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10231 { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5
10232 echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10233 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5
10234 echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;}
10235 ac_header_preproc=yes
10238 { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5
10239 echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;}
10240 { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5
10241 echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;}
10242 { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5
10243 echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;}
10244 { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5
10245 echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;}
10246 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5
10247 echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;}
10248 { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5
10249 echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;}
10252 ## ------------------------------------------ ##
10253 ## Report this to the AC_PACKAGE_NAME lists. ##
10254 ## ------------------------------------------ ##
10257 sed "s/^/$as_me: WARNING: /" >&2
10260 echo "$as_me:$LINENO: checking for utmpx.h" >&5
10261 echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
10262 if test "${ac_cv_header_utmpx_h+set}" = set; then
10263 echo $ECHO_N "(cached) $ECHO_C" >&6
10265 ac_cv_header_utmpx_h=$ac_header_preproc
10267 echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
10268 echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
10271 if test $ac_cv_header_utmpx_h = yes; then
10272 echo "$as_me:$LINENO: checking for struct utmpx" >&5
10273 echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6
10274 if test "${rxvt_cv_struct_utmpx+set}" = set; then
10275 echo $ECHO_N "(cached) $ECHO_C" >&6
10277 cat >conftest.$ac_ext <<_ACEOF
10280 cat confdefs.h >>conftest.$ac_ext
10281 cat >>conftest.$ac_ext <<_ACEOF
10282 /* end confdefs.h. */
10283 #include <sys/types.h>
10293 rm -f conftest.$ac_objext
10294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10295 (eval $ac_compile) 2>conftest.er1
10297 grep -v '^ *+' conftest.er1 >conftest.err
10299 cat conftest.err >&5
10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 (exit $ac_status); } &&
10302 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10304 (eval $ac_try) 2>&5
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); }; } &&
10308 { ac_try='test -s conftest.$ac_objext'
10309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10310 (eval $ac_try) 2>&5
10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); }; }; then
10314 rxvt_cv_struct_utmpx=yes
10316 echo "$as_me: failed program was:" >&5
10317 sed 's/^/| /' conftest.$ac_ext >&5
10319 rxvt_cv_struct_utmpx=no
10321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10323 echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx" >&5
10324 echo "${ECHO_T}$rxvt_cv_struct_utmpx" >&6
10325 if test x$rxvt_cv_struct_utmpx = xyes; then
10327 cat >>confdefs.h <<\_ACEOF
10328 #define HAVE_STRUCT_UTMPX 1
10334 echo "$as_me:$LINENO: checking for host in utmpx struct" >&5
10335 echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6
10336 if test "${rxvt_cv_struct_utmpx_host+set}" = set; then
10337 echo $ECHO_N "(cached) $ECHO_C" >&6
10339 cat >conftest.$ac_ext <<_ACEOF
10342 cat confdefs.h >>conftest.$ac_ext
10343 cat >>conftest.$ac_ext <<_ACEOF
10344 /* end confdefs.h. */
10345 #include <sys/types.h>
10350 struct utmpx utx; utx.ut_host;
10355 rm -f conftest.$ac_objext
10356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10357 (eval $ac_compile) 2>conftest.er1
10359 grep -v '^ *+' conftest.er1 >conftest.err
10361 cat conftest.err >&5
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); } &&
10364 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10366 (eval $ac_try) 2>&5
10368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369 (exit $ac_status); }; } &&
10370 { ac_try='test -s conftest.$ac_objext'
10371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10372 (eval $ac_try) 2>&5
10374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375 (exit $ac_status); }; }; then
10376 rxvt_cv_struct_utmpx_host=yes
10378 echo "$as_me: failed program was:" >&5
10379 sed 's/^/| /' conftest.$ac_ext >&5
10381 rxvt_cv_struct_utmpx_host=no
10383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10385 echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_host" >&5
10386 echo "${ECHO_T}$rxvt_cv_struct_utmpx_host" >&6
10387 if test x$rxvt_cv_struct_utmpx_host = xyes; then
10389 cat >>confdefs.h <<\_ACEOF
10390 #define HAVE_UTMPX_HOST 1
10395 echo "$as_me:$LINENO: checking for session in utmpx struct" >&5
10396 echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6
10397 if test "${rxvt_cv_struct_utmpx_session+set}" = set; then
10398 echo $ECHO_N "(cached) $ECHO_C" >&6
10400 cat >conftest.$ac_ext <<_ACEOF
10403 cat confdefs.h >>conftest.$ac_ext
10404 cat >>conftest.$ac_ext <<_ACEOF
10405 /* end confdefs.h. */
10406 #include <sys/types.h>
10411 struct utmpx utx; utx.ut_session;
10416 rm -f conftest.$ac_objext
10417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10418 (eval $ac_compile) 2>conftest.er1
10420 grep -v '^ *+' conftest.er1 >conftest.err
10422 cat conftest.err >&5
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); } &&
10425 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10427 (eval $ac_try) 2>&5
10429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430 (exit $ac_status); }; } &&
10431 { ac_try='test -s conftest.$ac_objext'
10432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10433 (eval $ac_try) 2>&5
10435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436 (exit $ac_status); }; }; then
10437 rxvt_cv_struct_utmpx_session=yes
10439 echo "$as_me: failed program was:" >&5
10440 sed 's/^/| /' conftest.$ac_ext >&5
10442 rxvt_cv_struct_utmpx_session=no
10444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10446 echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_session" >&5
10447 echo "${ECHO_T}$rxvt_cv_struct_utmpx_session" >&6
10448 if test x$rxvt_cv_struct_utmpx_session = xyes; then
10450 cat >>confdefs.h <<\_ACEOF
10451 #define HAVE_UTMPX_SESSION 1
10459 echo "$as_me:$LINENO: checking for struct lastlog" >&5
10460 echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6
10461 if test "${rxvt_cv_struct_lastlog+set}" = set; then
10462 echo $ECHO_N "(cached) $ECHO_C" >&6
10464 cat >conftest.$ac_ext <<_ACEOF
10467 cat confdefs.h >>conftest.$ac_ext
10468 cat >>conftest.$ac_ext <<_ACEOF
10469 /* end confdefs.h. */
10470 #include <sys/types.h>
10472 #ifdef HAVE_LASTLOG_H
10473 #include <lastlog.h>
10484 rm -f conftest.$ac_objext
10485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10486 (eval $ac_compile) 2>conftest.er1
10488 grep -v '^ *+' conftest.er1 >conftest.err
10490 cat conftest.err >&5
10491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); } &&
10493 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10495 (eval $ac_try) 2>&5
10497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); }; } &&
10499 { ac_try='test -s conftest.$ac_objext'
10500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10501 (eval $ac_try) 2>&5
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); }; }; then
10505 rxvt_cv_struct_lastlog=yes
10507 echo "$as_me: failed program was:" >&5
10508 sed 's/^/| /' conftest.$ac_ext >&5
10510 rxvt_cv_struct_lastlog=no
10512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10514 echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlog" >&5
10515 echo "${ECHO_T}$rxvt_cv_struct_lastlog" >&6
10516 if test x$rxvt_cv_struct_lastlog = xyes; then
10518 cat >>confdefs.h <<\_ACEOF
10519 #define HAVE_STRUCT_LASTLOG 1
10524 echo "$as_me:$LINENO: checking for struct lastlogx" >&5
10525 echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6
10526 if test "${rxvt_cv_struct_lastlogx+set}" = set; then
10527 echo $ECHO_N "(cached) $ECHO_C" >&6
10529 cat >conftest.$ac_ext <<_ACEOF
10532 cat confdefs.h >>conftest.$ac_ext
10533 cat >>conftest.$ac_ext <<_ACEOF
10534 /* end confdefs.h. */
10535 #include <sys/types.h>
10537 #ifdef HAVE_LASTLOG_H
10538 #include <lastlog.h>
10544 struct lastlogx ll;
10549 rm -f conftest.$ac_objext
10550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10551 (eval $ac_compile) 2>conftest.er1
10553 grep -v '^ *+' conftest.er1 >conftest.err
10555 cat conftest.err >&5
10556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557 (exit $ac_status); } &&
10558 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10560 (eval $ac_try) 2>&5
10562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563 (exit $ac_status); }; } &&
10564 { ac_try='test -s conftest.$ac_objext'
10565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10566 (eval $ac_try) 2>&5
10568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569 (exit $ac_status); }; }; then
10570 rxvt_cv_struct_lastlogx=yes
10572 echo "$as_me: failed program was:" >&5
10573 sed 's/^/| /' conftest.$ac_ext >&5
10575 rxvt_cv_struct_lastlogx=no
10577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10579 echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlogx" >&5
10580 echo "${ECHO_T}$rxvt_cv_struct_lastlogx" >&6
10581 if test x$rxvt_cv_struct_lastlogx = xyes; then
10583 cat >>confdefs.h <<\_ACEOF
10584 #define HAVE_STRUCT_LASTLOGX 1
10590 echo "$as_me:$LINENO: checking where utmp is located" >&5
10591 echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6
10592 if test "${rxvt_cv_path_utmp+set}" = set; then
10593 echo $ECHO_N "(cached) $ECHO_C" >&6
10595 if test "$cross_compiling" = yes; then
10596 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&5
10597 echo "$as_me: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&2;}
10599 cat >conftest.$ac_ext <<_ACEOF
10602 cat confdefs.h >>conftest.$ac_ext
10603 cat >>conftest.$ac_ext <<_ACEOF
10604 /* end confdefs.h. */
10606 #include <sys/types.h>
10611 char **u, *utmplist[] = {
10612 "/var/run/utmp", "/var/adm/utmp", "/etc/utmp", "/usr/etc/utmp", "/usr/adm/utmp", NULL };
10613 FILE *a, *f=fopen("conftestval", "w");
10616 fprintf(f, "%s\n", UTMP_FILE);
10620 fprintf(f, "%s\n", _PATH_UTMP);
10623 for (u = utmplist; *u; u++) {
10624 if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
10625 fprintf(f, "%s\n", *u);
10632 rm -f conftest$ac_exeext
10633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10634 (eval $ac_link) 2>&5
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10639 (eval $ac_try) 2>&5
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); }; }; then
10643 rxvt_cv_path_utmp=`cat conftestval`
10645 echo "$as_me: program exited with status $ac_status" >&5
10646 echo "$as_me: failed program was:" >&5
10647 sed 's/^/| /' conftest.$ac_ext >&5
10649 ( exit $ac_status )
10652 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10655 echo "$as_me:$LINENO: result: $rxvt_cv_path_utmp" >&5
10656 echo "${ECHO_T}$rxvt_cv_path_utmp" >&6
10657 if test x$rxvt_cv_path_utmp != x; then
10659 cat >>confdefs.h <<_ACEOF
10660 #define RXVT_UTMP_FILE "$rxvt_cv_path_utmp"
10666 echo "$as_me:$LINENO: checking where utmpx is located" >&5
10667 echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6
10668 if test "${rxvt_cv_path_utmpx+set}" = set; then
10669 echo $ECHO_N "(cached) $ECHO_C" >&6
10671 if test "$cross_compiling" = yes; then
10672 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&5
10673 echo "$as_me: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&2;}
10675 cat >conftest.$ac_ext <<_ACEOF
10678 cat confdefs.h >>conftest.$ac_ext
10679 cat >>conftest.$ac_ext <<_ACEOF
10680 /* end confdefs.h. */
10682 #include <sys/types.h>
10685 #include <sys/stat.h>
10686 #ifdef HAVE_STRING_H
10687 #include <string.h>
10691 char **u, *p, *utmplist[] = {
10698 "/var/adm/utmpx", "/etc/utmpx", NULL };
10699 FILE *a, *f=fopen("conftestval", "w");
10700 struct stat statu, statux;
10702 for (u = utmplist; *u; u++) {
10703 if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
10704 if (stat(*u, &statux) < 0)
10707 p[strlen(p) - 1] = '\0';
10708 if (stat(p, &statu) >= 0
10709 && (statu.st_mtime - statux.st_mtime > 86400))
10711 fprintf(f, "%s\n", *u);
10718 rm -f conftest$ac_exeext
10719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10720 (eval $ac_link) 2>&5
10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10725 (eval $ac_try) 2>&5
10727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728 (exit $ac_status); }; }; then
10729 rxvt_cv_path_utmpx=`cat conftestval`
10731 echo "$as_me: program exited with status $ac_status" >&5
10732 echo "$as_me: failed program was:" >&5
10733 sed 's/^/| /' conftest.$ac_ext >&5
10735 ( exit $ac_status )
10736 rxvt_cv_path_utmpx=
10738 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10741 echo "$as_me:$LINENO: result: $rxvt_cv_path_utmpx" >&5
10742 echo "${ECHO_T}$rxvt_cv_path_utmpx" >&6
10743 if test x$rxvt_cv_path_utmpx != x; then
10745 cat >>confdefs.h <<_ACEOF
10746 #define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx"
10752 echo "$as_me:$LINENO: checking where wtmp is located" >&5
10753 echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6
10754 if test "${rxvt_cv_path_wtmp+set}" = set; then
10755 echo $ECHO_N "(cached) $ECHO_C" >&6
10757 if test "$cross_compiling" = yes; then
10758 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&5
10759 echo "$as_me: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&2;}
10761 cat >conftest.$ac_ext <<_ACEOF
10764 cat confdefs.h >>conftest.$ac_ext
10765 cat >>conftest.$ac_ext <<_ACEOF
10766 /* end confdefs.h. */
10768 #include <sys/types.h>
10775 char **w, *wtmplist[] = {
10776 "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL };
10777 FILE *a, *f=fopen("conftestval", "w");
10780 fprintf(f, "%s\n", WTMP_FILE);
10784 fprintf(f, "%s\n", _PATH_WTMP);
10787 for (w = wtmplist; *w; w++) {
10788 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
10789 fprintf(f, "%s\n", *w);
10796 rm -f conftest$ac_exeext
10797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10798 (eval $ac_link) 2>&5
10800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10803 (eval $ac_try) 2>&5
10805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806 (exit $ac_status); }; }; then
10807 rxvt_cv_path_wtmp=`cat conftestval`
10809 echo "$as_me: program exited with status $ac_status" >&5
10810 echo "$as_me: failed program was:" >&5
10811 sed 's/^/| /' conftest.$ac_ext >&5
10813 ( exit $ac_status )
10816 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10819 echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmp" >&5
10820 echo "${ECHO_T}$rxvt_cv_path_wtmp" >&6
10821 if test x$rxvt_cv_path_wtmp != x; then
10823 cat >>confdefs.h <<_ACEOF
10824 #define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp"
10829 echo "$as_me:$LINENO: checking where wtmpx is located" >&5
10830 echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6
10831 if test "${rxvt_cv_path_wtmpx+set}" = set; then
10832 echo $ECHO_N "(cached) $ECHO_C" >&6
10834 if test "$cross_compiling" = yes; then
10835 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&5
10836 echo "$as_me: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&2;}
10838 cat >conftest.$ac_ext <<_ACEOF
10841 cat confdefs.h >>conftest.$ac_ext
10842 cat >>conftest.$ac_ext <<_ACEOF
10843 /* end confdefs.h. */
10845 #ifdef HAVE_UTMPX_H
10851 char **w, *wtmplist[] = {
10852 "/var/log/wtmpx", "/var/adm/wtmpx", NULL };
10853 FILE *a, *f=fopen("conftestval", "w");
10856 fprintf(f, "%s\n", WTMPX_FILE);
10860 fprintf(f, "%s\n", _PATH_WTMPX);
10863 for (w = wtmplist; *w; w++) {
10864 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
10865 fprintf(f, "%s\n", *w);
10872 rm -f conftest$ac_exeext
10873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10874 (eval $ac_link) 2>&5
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10879 (eval $ac_try) 2>&5
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); }; }; then
10883 rxvt_cv_path_wtmpx=`cat conftestval`
10885 echo "$as_me: program exited with status $ac_status" >&5
10886 echo "$as_me: failed program was:" >&5
10887 sed 's/^/| /' conftest.$ac_ext >&5
10889 ( exit $ac_status )
10890 rxvt_cv_path_wtmpx=
10892 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10895 echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmpx" >&5
10896 echo "${ECHO_T}$rxvt_cv_path_wtmpx" >&6
10897 if test x$rxvt_cv_path_wtmpx != x; then
10899 cat >>confdefs.h <<_ACEOF
10900 #define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx"
10905 echo "$as_me:$LINENO: checking where lastlog is located" >&5
10906 echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6
10907 if test "${rxvt_cv_path_lastlog+set}" = set; then
10908 echo $ECHO_N "(cached) $ECHO_C" >&6
10910 if test "$cross_compiling" = yes; then
10911 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&5
10912 echo "$as_me: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&2;}
10914 cat >conftest.$ac_ext <<_ACEOF
10917 cat confdefs.h >>conftest.$ac_ext
10918 cat >>conftest.$ac_ext <<_ACEOF
10919 /* end confdefs.h. */
10921 #include <sys/types.h>
10922 #ifdef HAVE_UTMPX_H
10924 #elif defined(HAVE_UTMP_H)
10927 #ifdef HAVE_LASTLOG_H
10928 #include <lastlog.h>
10933 char **w, *lastloglist[] = { "/var/log/lastlog", NULL };
10934 FILE *a, *f=fopen("conftestval", "w");
10936 #ifdef LASTLOG_FILE
10937 fprintf(f, "%s\n", LASTLOG_FILE);
10940 #ifdef _PATH_LASTLOG
10941 fprintf(f, "%s\n", _PATH_LASTLOG);
10944 for (w = lastloglist; *w; w++) {
10945 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
10946 fprintf(f, "%s\n", *w);
10953 rm -f conftest$ac_exeext
10954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10955 (eval $ac_link) 2>&5
10957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10960 (eval $ac_try) 2>&5
10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963 (exit $ac_status); }; }; then
10964 rxvt_cv_path_lastlog=`cat conftestval`
10966 echo "$as_me: program exited with status $ac_status" >&5
10967 echo "$as_me: failed program was:" >&5
10968 sed 's/^/| /' conftest.$ac_ext >&5
10970 ( exit $ac_status )
10971 rxvt_cv_path_lastlog=
10973 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10976 echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlog" >&5
10977 echo "${ECHO_T}$rxvt_cv_path_lastlog" >&6
10978 if test x$rxvt_cv_path_lastlog != x; then
10980 cat >>confdefs.h <<_ACEOF
10981 #define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog"
10984 if test -d "$rxvt_cv_path_lastlog"; then
10986 cat >>confdefs.h <<\_ACEOF
10987 #define LASTLOG_IS_DIR 1
10993 echo "$as_me:$LINENO: checking where lastlogx is located" >&5
10994 echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6
10995 if test "${rxvt_cv_path_lastlogx+set}" = set; then
10996 echo $ECHO_N "(cached) $ECHO_C" >&6
10998 if test "$cross_compiling" = yes; then
10999 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&5
11000 echo "$as_me: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&2;}
11002 cat >conftest.$ac_ext <<_ACEOF
11005 cat confdefs.h >>conftest.$ac_ext
11006 cat >>conftest.$ac_ext <<_ACEOF
11007 /* end confdefs.h. */
11009 #ifdef HAVE_UTMPX_H
11015 char **w, *wtmplist[] = { "/var/log/lastlogx", "/var/adm/lastlogx", NULL };
11016 FILE *a, *f=fopen("conftestval", "w");
11018 #ifdef LASTLOGX_FILE
11019 fprintf(f, "%s\n", LASTLOGX_FILE);
11022 #ifdef _PATH_LASTLOGX
11023 fprintf(f, "%s\n", _PATH_LASTLOGX);
11026 for (w = wtmplist; *w; w++) {
11027 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11028 fprintf(f, "%s\n", *w);
11035 rm -f conftest$ac_exeext
11036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11037 (eval $ac_link) 2>&5
11039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11042 (eval $ac_try) 2>&5
11044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045 (exit $ac_status); }; }; then
11046 rxvt_cv_path_lastlogx=`cat conftestval`
11048 echo "$as_me: program exited with status $ac_status" >&5
11049 echo "$as_me: failed program was:" >&5
11050 sed 's/^/| /' conftest.$ac_ext >&5
11052 ( exit $ac_status )
11053 rxvt_cv_path_lastlogx=
11055 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11058 echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlogx" >&5
11059 echo "${ECHO_T}$rxvt_cv_path_lastlogx" >&6
11060 if test x$rxvt_cv_path_lastlogx != x; then
11062 cat >>confdefs.h <<_ACEOF
11063 #define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx"
11069 echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
11070 echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6
11071 if test "${rxvt_cv_path_ttytab+set}" = set; then
11072 echo $ECHO_N "(cached) $ECHO_C" >&6
11074 for ttys_file in /etc/ttys /etc/ttytab;
11076 if test -f "$ttys_file" ; then
11077 rxvt_cv_path_ttytab=$ttys_file
11083 echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5
11084 echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6
11085 if test x$rxvt_cv_path_ttytab != x; then
11087 cat >>confdefs.h <<_ACEOF
11088 #define TTYTAB_FILENAME "$rxvt_cv_path_ttytab"
11095 ac_save_CFLAGS=$CFLAGS
11096 CFLAGS="$CFLAGS $X_CFLAGS"
11097 LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
11098 if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
11099 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
11101 echo "$as_me:$LINENO: checking for working Xlocale" >&5
11102 echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6
11103 if test "${rxvt_cv_func_xlocale+set}" = set; then
11104 echo $ECHO_N "(cached) $ECHO_C" >&6
11106 if test "$cross_compiling" = yes; then
11107 { echo "$as_me:$LINENO: WARNING: Define NO_XLOCALE in config.h manually" >&5
11108 echo "$as_me: WARNING: Define NO_XLOCALE in config.h manually" >&2;}
11110 cat >conftest.$ac_ext <<_ACEOF
11113 cat confdefs.h >>conftest.$ac_ext
11114 cat >>conftest.$ac_ext <<_ACEOF
11115 /* end confdefs.h. */
11116 #include <X11/Xlib.h>
11119 if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
11120 exit (XSupportsLocale() ? 0 : 1);
11124 rm -f conftest$ac_exeext
11125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11126 (eval $ac_link) 2>&5
11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11131 (eval $ac_try) 2>&5
11133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134 (exit $ac_status); }; }; then
11135 rxvt_cv_func_xlocale=yes
11137 echo "$as_me: program exited with status $ac_status" >&5
11138 echo "$as_me: failed program was:" >&5
11139 sed 's/^/| /' conftest.$ac_ext >&5
11141 ( exit $ac_status )
11142 rxvt_cv_func_xlocale=no
11144 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11147 echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5
11148 echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6
11149 if test x$rxvt_cv_func_xlocale = xyes; then
11151 cat >>confdefs.h <<\_ACEOF
11152 #define HAVE_XLOCALE 1
11157 echo "$as_me:$LINENO: checking for working X setlocale" >&5
11158 echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6
11159 if test "${rxvt_cv_func_xsetlocale+set}" = set; then
11160 echo $ECHO_N "(cached) $ECHO_C" >&6
11162 cat >conftest.$ac_ext <<_ACEOF
11165 cat confdefs.h >>conftest.$ac_ext
11166 cat >>conftest.$ac_ext <<_ACEOF
11167 /* end confdefs.h. */
11169 #include <X11/Xlocale.h>
11173 setlocale(LC_CTYPE, "");
11178 rm -f conftest.$ac_objext conftest$ac_exeext
11179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11180 (eval $ac_link) 2>conftest.er1
11182 grep -v '^ *+' conftest.er1 >conftest.err
11184 cat conftest.err >&5
11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); } &&
11187 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11189 (eval $ac_try) 2>&5
11191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192 (exit $ac_status); }; } &&
11193 { ac_try='test -s conftest$ac_exeext'
11194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11195 (eval $ac_try) 2>&5
11197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11198 (exit $ac_status); }; }; then
11199 rxvt_cv_func_xsetlocale=yes
11201 echo "$as_me: failed program was:" >&5
11202 sed 's/^/| /' conftest.$ac_ext >&5
11204 rxvt_cv_func_xsetlocale=no
11206 rm -f conftest.err conftest.$ac_objext \
11207 conftest$ac_exeext conftest.$ac_ext
11209 echo "$as_me:$LINENO: result: $rxvt_cv_func_xsetlocale" >&5
11210 echo "${ECHO_T}$rxvt_cv_func_xsetlocale" >&6
11211 if test x$rxvt_cv_func_xsetlocale = xyes; then
11213 cat >>confdefs.h <<\_ACEOF
11214 #define HAVE_XSETLOCALE 1
11219 CFLAGS=$ac_save_CFLAGS
11221 echo "$as_me:$LINENO: checking for working plain setlocale" >&5
11222 echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6
11223 if test "${rxvt_cv_func_setlocale+set}" = set; then
11224 echo $ECHO_N "(cached) $ECHO_C" >&6
11226 cat >conftest.$ac_ext <<_ACEOF
11229 cat confdefs.h >>conftest.$ac_ext
11230 cat >>conftest.$ac_ext <<_ACEOF
11231 /* end confdefs.h. */
11236 setlocale(LC_CTYPE, "");
11241 rm -f conftest.$ac_objext conftest$ac_exeext
11242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11243 (eval $ac_link) 2>conftest.er1
11245 grep -v '^ *+' conftest.er1 >conftest.err
11247 cat conftest.err >&5
11248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249 (exit $ac_status); } &&
11250 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11252 (eval $ac_try) 2>&5
11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); }; } &&
11256 { ac_try='test -s conftest$ac_exeext'
11257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11258 (eval $ac_try) 2>&5
11260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261 (exit $ac_status); }; }; then
11262 rxvt_cv_func_setlocale=yes
11264 echo "$as_me: failed program was:" >&5
11265 sed 's/^/| /' conftest.$ac_ext >&5
11267 rxvt_cv_func_setlocale=no
11269 rm -f conftest.err conftest.$ac_objext \
11270 conftest$ac_exeext conftest.$ac_ext
11272 echo "$as_me:$LINENO: result: $rxvt_cv_func_setlocale" >&5
11273 echo "${ECHO_T}$rxvt_cv_func_setlocale" >&6
11274 if test x$rxvt_cv_func_setlocale = xyes; then
11276 cat >>confdefs.h <<\_ACEOF
11277 #define HAVE_SETLOCALE 1
11282 echo "$as_me:$LINENO: checking for working nl_langinfo" >&5
11283 echo $ECHO_N "checking for working nl_langinfo... $ECHO_C" >&6
11284 if test "${rxvt_cv_func_nl_langinfo+set}" = set; then
11285 echo $ECHO_N "(cached) $ECHO_C" >&6
11287 cat >conftest.$ac_ext <<_ACEOF
11290 cat confdefs.h >>conftest.$ac_ext
11291 cat >>conftest.$ac_ext <<_ACEOF
11292 /* end confdefs.h. */
11293 #include <langinfo.h>
11297 nl_langinfo(CODESET);
11302 rm -f conftest.$ac_objext conftest$ac_exeext
11303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11304 (eval $ac_link) 2>conftest.er1
11306 grep -v '^ *+' conftest.er1 >conftest.err
11308 cat conftest.err >&5
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); } &&
11311 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11313 (eval $ac_try) 2>&5
11315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316 (exit $ac_status); }; } &&
11317 { ac_try='test -s conftest$ac_exeext'
11318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11319 (eval $ac_try) 2>&5
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); }; }; then
11323 rxvt_cv_func_nl_langinfo=yes
11325 echo "$as_me: failed program was:" >&5
11326 sed 's/^/| /' conftest.$ac_ext >&5
11328 rxvt_cv_func_nl_langinfo=no
11330 rm -f conftest.err conftest.$ac_objext \
11331 conftest$ac_exeext conftest.$ac_ext
11333 echo "$as_me:$LINENO: result: $rxvt_cv_func_nl_langinfo" >&5
11334 echo "${ECHO_T}$rxvt_cv_func_nl_langinfo" >&6
11335 if test x$rxvt_cv_func_nl_langinfo = xyes; then
11337 cat >>confdefs.h <<\_ACEOF
11338 #define HAVE_NL_LANGINFO 1
11343 echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5
11344 echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6
11345 if test "${rxvt_can_pass_fds+set}" = set; then
11346 echo $ECHO_N "(cached) $ECHO_C" >&6
11348 cat >conftest.$ac_ext <<_ACEOF
11351 cat confdefs.h >>conftest.$ac_ext
11352 cat >>conftest.$ac_ext <<_ACEOF
11353 /* end confdefs.h. */
11355 #include <sys/types.h>
11356 #include <sys/socket.h>
11368 iov.iov_base = &data;
11371 msg.msg_iov = &iov;
11372 msg.msg_iovlen = 1;
11373 msg.msg_control = buf;
11374 msg.msg_controllen = sizeof buf;
11376 cmsghdr *cmsg = CMSG_FIRSTHDR (&msg);
11377 cmsg->cmsg_level = SOL_SOCKET;
11378 cmsg->cmsg_type = SCM_RIGHTS;
11379 cmsg->cmsg_len = 100;
11381 *(int *)CMSG_DATA (cmsg) = 5;
11383 return sendmsg (3, &msg, 0);
11390 rm -f conftest.$ac_objext conftest$ac_exeext
11391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11392 (eval $ac_link) 2>conftest.er1
11394 grep -v '^ *+' conftest.er1 >conftest.err
11396 cat conftest.err >&5
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); } &&
11399 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11401 (eval $ac_try) 2>&5
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); }; } &&
11405 { ac_try='test -s conftest$ac_exeext'
11406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11407 (eval $ac_try) 2>&5
11409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410 (exit $ac_status); }; }; then
11411 rxvt_can_pass_fds=yes
11413 echo "$as_me: failed program was:" >&5
11414 sed 's/^/| /' conftest.$ac_ext >&5
11416 rxvt_can_pass_fds=no
11418 rm -f conftest.err conftest.$ac_objext \
11419 conftest$ac_exeext conftest.$ac_ext
11421 echo "$as_me:$LINENO: result: $rxvt_can_pass_fds" >&5
11422 echo "${ECHO_T}$rxvt_can_pass_fds" >&6
11423 if test x$rxvt_can_pass_fds = xyes; then
11425 cat >>confdefs.h <<\_ACEOF
11426 #define HAVE_UNIX_FDPASS 1
11431 echo "$as_me:$LINENO: checking for broken XIM callback" >&5
11432 echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6
11433 if test "${rxvt_broken_ximcb+set}" = set; then
11434 echo $ECHO_N "(cached) $ECHO_C" >&6
11436 cat >conftest.$ac_ext <<_ACEOF
11438 #include <X11/Xlib.h>
11440 void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
11444 cb.callback = im_destroy_cb;
11448 rm -f conftest.$ac_objext
11449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11450 (eval $ac_compile) 2>conftest.er1
11452 grep -v '^ *+' conftest.er1 >conftest.err
11454 cat conftest.err >&5
11455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); } &&
11457 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11459 (eval $ac_try) 2>&5
11461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462 (exit $ac_status); }; } &&
11463 { ac_try='test -s conftest.$ac_objext'
11464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11465 (eval $ac_try) 2>&5
11467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468 (exit $ac_status); }; }; then
11469 rxvt_broken_ximcb=yes
11471 echo "$as_me: failed program was:" >&5
11472 sed 's/^/| /' conftest.$ac_ext >&5
11474 rxvt_broken_ximcb=no
11476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11478 echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
11479 echo "${ECHO_T}$rxvt_broken_ximcb" >&6
11481 if test x$rxvt_broken_ximcb = xyes; then
11483 cat >>confdefs.h <<\_ACEOF
11484 #define XIMCB_PROTO_BROKEN 1
11489 echo "$as_me:$LINENO: checking for getpt" >&5
11490 echo $ECHO_N "checking for getpt... $ECHO_C" >&6
11491 if test "${rxvt_cv_func_getpt+set}" = set; then
11492 echo $ECHO_N "(cached) $ECHO_C" >&6
11494 cat >conftest.$ac_ext <<_ACEOF
11497 cat confdefs.h >>conftest.$ac_ext
11498 cat >>conftest.$ac_ext <<_ACEOF
11499 /* end confdefs.h. */
11500 #define _GNU_SOURCE
11501 #ifdef HAVE_STDLIB_H
11502 # include <cstdlib>
11512 rm -f conftest.$ac_objext conftest$ac_exeext
11513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11514 (eval $ac_link) 2>conftest.er1
11516 grep -v '^ *+' conftest.er1 >conftest.err
11518 cat conftest.err >&5
11519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520 (exit $ac_status); } &&
11521 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11523 (eval $ac_try) 2>&5
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); }; } &&
11527 { ac_try='test -s conftest$ac_exeext'
11528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11529 (eval $ac_try) 2>&5
11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); }; }; then
11533 rxvt_cv_func_getpt=yes
11535 echo "$as_me: failed program was:" >&5
11536 sed 's/^/| /' conftest.$ac_ext >&5
11538 rxvt_cv_func_getpt=no
11540 rm -f conftest.err conftest.$ac_objext \
11541 conftest$ac_exeext conftest.$ac_ext
11543 echo "$as_me:$LINENO: result: $rxvt_cv_func_getpt" >&5
11544 echo "${ECHO_T}$rxvt_cv_func_getpt" >&6
11545 if test x$rxvt_cv_func_getpt = xyes; then
11547 cat >>confdefs.h <<\_ACEOF
11548 #define HAVE_GETPT 1
11553 echo "$as_me:$LINENO: checking for pty/tty type" >&5
11554 echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6
11555 if test "${rxvt_cv_ptys+set}" = set; then
11556 echo $ECHO_N "(cached) $ECHO_C" >&6
11558 if test x$ac_cv_func_openpty = xyes; then
11559 rxvt_cv_ptys=OPENPTY
11560 else if test x$ac_cv_func__getpty = xyes; then
11562 else if test -c /dev/ttyp20; then
11564 else if test -c /dev/ptym/clone; then
11566 else if test x$rxvt_cv_func_getpt = xyes; then
11568 else if test -c /dev/ptc -a -c /dev/pts; then
11570 else if test -c /dev/ptc -a -d /dev/pts; then
11572 else if test -c /dev/ptmx -a -c /dev/pts/0; then
11573 rxvt_cv_ptys=STREAMS
11574 else if test x$ac_cv_func_grantpt = xyes && test x$ac_cv_func_unlockpt = xyes; then
11575 rxvt_cv_ptys=STREAMS
11589 echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5
11590 echo "${ECHO_T}$rxvt_cv_ptys" >&6
11592 if test x$rxvt_cv_ptys = xOPENPTY; then
11594 cat >>confdefs.h <<\_ACEOF
11595 #define PTYS_ARE_OPENPTY 1
11599 if test x$rxvt_cv_ptys = xSCO; then
11601 cat >>confdefs.h <<\_ACEOF
11602 #define PTYS_ARE_NUMERIC 1
11606 if test x$rxvt_cv_ptys = xSTREAMS; then
11608 cat >>confdefs.h <<\_ACEOF
11609 #define PTYS_ARE_PTMX 1
11613 if test x$rxvt_cv_ptys = xPTC; then
11615 cat >>confdefs.h <<\_ACEOF
11616 #define PTYS_ARE_PTC 1
11620 if test x$rxvt_cv_ptys = xSGI4; then
11622 cat >>confdefs.h <<\_ACEOF
11623 #define PTYS_ARE__GETPTY 1
11627 if test x$rxvt_cv_ptys = xCONVEX; then
11629 cat >>confdefs.h <<\_ACEOF
11630 #define PTYS_ARE_GETPTY 1
11634 if test x$rxvt_cv_ptys = xGLIBC; then
11636 cat >>confdefs.h <<\_ACEOF
11637 #define PTYS_ARE_GETPT 1
11641 if test x$rxvt_cv_ptys = xHPUX; then
11643 cat >>confdefs.h <<\_ACEOF
11644 #define PTYS_ARE_CLONE 1
11648 if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xGLIBC; then
11650 cat >>confdefs.h <<\_ACEOF
11651 #define PTYS_ARE_SEARCHED 1
11657 { echo "$as_me:$LINENO: checking for pty ranges..." >&5
11658 echo "$as_me: checking for pty ranges..." >&6;}
11659 ptys=`echo /dev/pty??`
11660 pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
11661 pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
11662 if test x$pch1 != x; then
11664 cat >>confdefs.h <<_ACEOF
11665 #define PTYCHAR1 "$pch1"
11669 if test x$pch2 != x; then
11671 cat >>confdefs.h <<_ACEOF
11672 #define PTYCHAR2 "$pch2"
11677 if test x$support_xft = xyes; then
11678 LIBS="$LIBS `pkg-config xft --libs`"
11679 CFLAGS="$CFLAGS `pkg-config xft --cflags`"
11680 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`"
11683 for ac_header in X11/Xft/Xft.h
11685 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11686 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11687 echo "$as_me:$LINENO: checking for $ac_header" >&5
11688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11690 echo $ECHO_N "(cached) $ECHO_C" >&6
11692 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11693 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11695 # Is the header compilable?
11696 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11697 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11698 cat >conftest.$ac_ext <<_ACEOF
11701 cat confdefs.h >>conftest.$ac_ext
11702 cat >>conftest.$ac_ext <<_ACEOF
11703 /* end confdefs.h. */
11704 $ac_includes_default
11705 #include <$ac_header>
11707 rm -f conftest.$ac_objext
11708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11709 (eval $ac_compile) 2>conftest.er1
11711 grep -v '^ *+' conftest.er1 >conftest.err
11713 cat conftest.err >&5
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); } &&
11716 { ac_try='test -z "$ac_cxx_werror_flag" || 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 ac_header_compiler=yes
11730 echo "$as_me: failed program was:" >&5
11731 sed 's/^/| /' conftest.$ac_ext >&5
11733 ac_header_compiler=no
11735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11736 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11737 echo "${ECHO_T}$ac_header_compiler" >&6
11739 # Is the header present?
11740 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11741 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11742 cat >conftest.$ac_ext <<_ACEOF
11745 cat confdefs.h >>conftest.$ac_ext
11746 cat >>conftest.$ac_ext <<_ACEOF
11747 /* end confdefs.h. */
11748 #include <$ac_header>
11750 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11751 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11753 grep -v '^ *+' conftest.er1 >conftest.err
11755 cat conftest.err >&5
11756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); } >/dev/null; then
11758 if test -s conftest.err; then
11759 ac_cpp_err=$ac_cxx_preproc_warn_flag
11760 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11767 if test -z "$ac_cpp_err"; then
11768 ac_header_preproc=yes
11770 echo "$as_me: failed program was:" >&5
11771 sed 's/^/| /' conftest.$ac_ext >&5
11773 ac_header_preproc=no
11775 rm -f conftest.err conftest.$ac_ext
11776 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11777 echo "${ECHO_T}$ac_header_preproc" >&6
11779 # So? What about this header?
11780 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11782 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11783 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11785 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11786 ac_header_preproc=yes
11789 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11790 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11791 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11792 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11793 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11794 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11795 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11796 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11798 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11799 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11800 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11803 ## ------------------------------------------ ##
11804 ## Report this to the AC_PACKAGE_NAME lists. ##
11805 ## ------------------------------------------ ##
11808 sed "s/^/$as_me: WARNING: /" >&2
11811 echo "$as_me:$LINENO: checking for $ac_header" >&5
11812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11814 echo $ECHO_N "(cached) $ECHO_C" >&6
11816 eval "$as_ac_Header=\$ac_header_preproc"
11818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11819 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11822 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11823 cat >>confdefs.h <<_ACEOF
11824 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11834 echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5
11835 echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6
11836 if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then
11837 echo $ECHO_N "(cached) $ECHO_C" >&6
11839 ac_check_lib_save_LIBS=$LIBS
11841 cat >conftest.$ac_ext <<_ACEOF
11844 cat confdefs.h >>conftest.$ac_ext
11845 cat >>conftest.$ac_ext <<_ACEOF
11846 /* end confdefs.h. */
11848 /* Override any gcc2 internal prototype to avoid an error. */
11852 /* We use char because int might match the return type of a gcc2
11853 builtin and then its argument prototype would still apply. */
11854 char XftDrawString32 ();
11858 XftDrawString32 ();
11863 rm -f conftest.$ac_objext conftest$ac_exeext
11864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11865 (eval $ac_link) 2>conftest.er1
11867 grep -v '^ *+' conftest.er1 >conftest.err
11869 cat conftest.err >&5
11870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871 (exit $ac_status); } &&
11872 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11874 (eval $ac_try) 2>&5
11876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877 (exit $ac_status); }; } &&
11878 { ac_try='test -s conftest$ac_exeext'
11879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11880 (eval $ac_try) 2>&5
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); }; }; then
11884 ac_cv_lib_Xft_XftDrawString32=yes
11886 echo "$as_me: failed program was:" >&5
11887 sed 's/^/| /' conftest.$ac_ext >&5
11889 ac_cv_lib_Xft_XftDrawString32=no
11891 rm -f conftest.err conftest.$ac_objext \
11892 conftest$ac_exeext conftest.$ac_ext
11893 LIBS=$ac_check_lib_save_LIBS
11895 echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5
11896 echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6
11897 if test $ac_cv_lib_Xft_XftDrawString32 = yes; then
11898 cat >>confdefs.h <<_ACEOF
11899 #define HAVE_LIBXFT 1
11909 if test x$support_xft = xyes; then
11911 cat >>confdefs.h <<\_ACEOF
11917 if test x$support_styles = xyes; then
11919 cat >>confdefs.h <<\_ACEOF
11920 #define ENABLE_STYLES 1
11924 if test x$support_iso14755 = xyes; then
11926 cat >>confdefs.h <<\_ACEOF
11927 #define ISO_14755 1
11931 if test x$support_8bitctrls = xyes; then
11933 cat >>confdefs.h <<\_ACEOF
11934 #define EIGHT_BIT_CONTROLS 1
11938 if test x$support_fading = xyes; then
11940 cat >>confdefs.h <<\_ACEOF
11941 #define OFF_FOCUS_FADING 1
11945 if test x$support_tinting = xyes; then
11947 cat >>confdefs.h <<\_ACEOF
11952 if test x$support_inheritpixmap = xyes; then
11954 cat >>confdefs.h <<\_ACEOF
11955 #define TRANSPARENT 1
11959 if test x$support_keepscrolling = xno; then
11961 cat >>confdefs.h <<\_ACEOF
11962 #define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
11966 if test x$support_selectionscrolling = xyes; then
11968 cat >>confdefs.h <<\_ACEOF
11969 #define SELECTION_SCROLLING 1
11973 if test x$support_menubar = xyes; then
11975 cat >>confdefs.h <<\_ACEOF
11980 if test x$support_frills = xyes; then
11982 cat >>confdefs.h <<\_ACEOF
11983 #define ENABLE_FRILLS 1
11987 if test x$support_24bit = xyes; then
11989 cat >>confdefs.h <<\_ACEOF
11990 #define PREFER_24BIT 1
11994 if test x$support_mousewheel = xyes; then
11996 cat >>confdefs.h <<\_ACEOF
11997 #define MOUSE_WHEEL 1
12001 if test x$support_mouseslipwheel = xyes; then
12003 cat >>confdefs.h <<\_ACEOF
12004 #define MOUSE_SLIP_WHEELING 1
12008 if test x$support_utmp = xyes; then
12010 cat >>confdefs.h <<\_ACEOF
12011 #define UTMP_SUPPORT 1
12015 if test x$support_wtmp = xyes; then
12017 cat >>confdefs.h <<\_ACEOF
12018 #define WTMP_SUPPORT 1
12022 if test x$support_lastlog = xyes; then
12024 cat >>confdefs.h <<\_ACEOF
12025 #define LASTLOG_SUPPORT 1
12029 if test x$support_xim = xyes -o x$multichar_set = xyes; then
12030 if test x$rxvt_cv_func_xlocale = xyes; then
12032 cat >>confdefs.h <<\_ACEOF
12038 if test x$support_xpm = xyes; then
12040 cat >>confdefs.h <<\_ACEOF
12041 #define XPM_BACKGROUND 1
12045 if test x$support_scroll_rxvt = xyes; then
12047 cat >>confdefs.h <<\_ACEOF
12048 #define RXVT_SCROLLBAR 1
12053 if test x$support_scroll_next = xyes; then
12055 cat >>confdefs.h <<\_ACEOF
12056 #define NEXT_SCROLLBAR 1
12059 scrolltypes="$scrolltypes next"
12061 if test x$support_scroll_xterm = xyes; then
12063 cat >>confdefs.h <<\_ACEOF
12064 #define XTERM_SCROLLBAR 1
12067 scrolltypes="$scrolltypes xterm"
12069 if test x$support_scroll_plain = xyes; then
12071 cat >>confdefs.h <<\_ACEOF
12072 #define PLAIN_SCROLLBAR 1
12075 scrolltypes="$scrolltypes plain"
12077 if test x$support_pointer_blank = xyes; then
12079 cat >>confdefs.h <<\_ACEOF
12080 #define POINTER_BLANK 1
12084 if test x$support_text_blink = xyes; then
12086 cat >>confdefs.h <<\_ACEOF
12087 #define TEXT_BLINK 1
12091 if test x$support_unicode3 = xyes; then
12093 cat >>confdefs.h <<\_ACEOF
12094 #define UNICODE_3 1
12098 if test x$support_combining = xyes; then
12100 cat >>confdefs.h <<\_ACEOF
12101 #define ENABLE_COMBINING 1
12105 if test x$codesets = xall; then
12106 codesets=jp,jp-ext,kr,zh,zh-ext
12109 cat >>confdefs.h <<\_ACEOF
12110 #define ENCODING_EU 1
12114 cat >>confdefs.h <<\_ACEOF
12115 #define ENCODING_VN 1
12118 for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
12121 cat >>confdefs.h <<\_ACEOF
12122 #define ENCODING_JP 1
12126 cat >>confdefs.h <<\_ACEOF
12127 #define ENCODING_JP_EXT 1
12131 cat >>confdefs.h <<\_ACEOF
12132 #define ENCODING_KR 1
12136 cat >>confdefs.h <<\_ACEOF
12137 #define ENCODING_ZH 1
12141 cat >>confdefs.h <<\_ACEOF
12142 #define ENCODING_ZH_EXT 1
12149 CFLAGS=${CFLAGS--O}
12150 LDFLAGS=${LDFLAGS--O}
12152 CPPFLAGS="$CPPFLAGS"
12160 if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
12161 DLIB=`echo $DLIB | sed "$R_TRANSLATE"`
12162 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
12163 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
12164 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
12165 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
12172 if test x$support_addstrings = xno; then
12174 cat >>confdefs.h <<\_ACEOF
12175 #define NO_STRINGS 1
12180 MCOMMON=./autoconf/Make.common
12183 test "$program_prefix" != NONE &&
12184 program_transform_name="s,^,$program_prefix,;$program_transform_name"
12185 # Use a double $ so make ignores it.
12186 test "$program_suffix" != NONE &&
12187 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
12188 # Double any \ or $. echo might interpret backslashes.
12189 # By default was `s,x,x', remove it if useless.
12190 cat <<\_ACEOF >conftest.sed
12191 s/[\\$]/&&/g;s/;s,x,x,$//
12193 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
12200 if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
12201 include_stdint_h="#include <stdint.h>"
12203 include_stdint_h="/* #include <stdint.h> */"
12205 if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
12206 include_stdarg_h="#include <cstdarg>"
12208 include_stdarg_h="/* #include <cstdarg> */"
12210 if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
12211 include_stdlib_h="#include <cstdlib>"
12213 include_stdlib_h="/* #include <cstdlib> */"
12215 if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
12216 include_unistd_h="#include <unistd.h>"
12218 include_unistd_h="/* #include <unistd.h> */"
12220 if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
12221 include_string_h="#include <cstring>"
12223 include_string_h="/* #include <cstring> */"
12225 if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
12226 include_fcntl_h="#include <fcntl.h>"
12228 include_fcntl_h="/* #include <fcntl.h> */"
12230 if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
12231 include_util_h="#include <util.h>"
12233 include_util_h="/* #include <util.h> */"
12235 if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
12236 include_assert_h="#include <assert.h>"
12238 include_assert_h="/* #include <assert.h> */"
12240 if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
12241 include_sys_ioctl_h="#include <sys/ioctl.h>"
12243 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
12245 if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
12246 include_sys_select_h="#include <sys/select.h>"
12248 include_sys_select_h="/* #include <sys/select.h> */"
12250 if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
12251 include_sys_strredir_h="#include <sys/strredir.h>"
12253 include_sys_strredir_h="/* #include <sys/strredir.h> */"
12255 if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
12256 include_sys_time_h="#include <sys/time.h>"
12258 include_sys_time_h="/* #include <sys/time.h> */"
12260 if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
12261 include_time_h="#include <time.h>"
12263 include_time_h="/* #include <time.h> */"
12266 ac_config_files="$ac_config_files autoconf/Make.common Makefile doc/Makefile src/Makefile src/rxvtlib.h"
12268 cat >confcache <<\_ACEOF
12269 # This file is a shell script that caches the results of configure
12270 # tests run on this system so they can be shared between configure
12271 # scripts and configure runs, see configure's option --config-cache.
12272 # It is not useful on other systems. If it contains results you don't
12273 # want to keep, you may remove or edit it.
12275 # config.status only pays attention to the cache file if you give it
12276 # the --recheck option to rerun configure.
12278 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12279 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12280 # following values.
12284 # The following way of writing the cache mishandles newlines in values,
12285 # but we know of no workaround that is simple, portable, and efficient.
12286 # So, don't put newlines in cache variables' values.
12287 # Ultrix sh set writes to stderr and can't be redirected directly,
12288 # and sets the high bit in the cache file unless we assign to the vars.
12291 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12293 # `set' does not quote correctly, so add quotes (double-quote
12294 # substitution turns \\\\ into \\, and sed turns \\ into \).
12297 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12300 # `set' quotes correctly as required by POSIX, so do not add quotes.
12302 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12309 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12311 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12313 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12314 if test -w $cache_file; then
12315 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12316 cat confcache >$cache_file
12318 echo "not updating unwritable cache $cache_file"
12323 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12324 # Let make expand exec_prefix.
12325 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12327 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12328 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12329 # trailing colons and then remove the whole line if VPATH becomes empty
12330 # (actually we leave an empty line to preserve line numbers).
12331 if test "x$srcdir" = x.; then
12332 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12333 s/:*\$(srcdir):*/:/;
12334 s/:*\${srcdir}:*/:/;
12336 s/^\([^=]*=[ ]*\):*/\1/;
12342 DEFS=-DHAVE_CONFIG_H
12346 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12347 # 1. Remove the extension, and $U if already installed.
12348 ac_i=`echo "$ac_i" |
12349 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12351 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12352 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12354 LIBOBJS=$ac_libobjs
12356 LTLIBOBJS=$ac_ltlibobjs
12360 : ${CONFIG_STATUS=./config.status}
12361 ac_clean_files_save=$ac_clean_files
12362 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12363 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12364 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12365 cat >$CONFIG_STATUS <<_ACEOF
12367 # Generated by $as_me.
12368 # Run this file to recreate the current configuration.
12369 # Compiler output produced by configure, useful for debugging
12370 # configure, is in config.log if it exists.
12373 ac_cs_recheck=false
12375 SHELL=\${CONFIG_SHELL-$SHELL}
12378 cat >>$CONFIG_STATUS <<\_ACEOF
12379 ## --------------------- ##
12380 ## M4sh Initialization. ##
12381 ## --------------------- ##
12383 # Be Bourne compatible
12384 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12387 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12388 # is contrary to our usage. Disable this feature.
12389 alias -g '${1+"$@"}'='"$@"'
12390 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12393 DUALCASE=1; export DUALCASE # for MKS sh
12395 # Support unset when possible.
12396 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12403 # Work around bugs in pre-3.0 UWIN ksh.
12404 $as_unset ENV MAIL MAILPATH
12411 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12412 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12413 LC_TELEPHONE LC_TIME
12415 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12416 eval $as_var=C; export $as_var
12422 # Required to use basename.
12423 if expr a : '\(a\)' >/dev/null 2>&1; then
12429 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12430 as_basename=basename
12436 # Name of the executable.
12437 as_me=`$as_basename "$0" ||
12438 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12439 X"$0" : 'X\(//\)$' \| \
12440 X"$0" : 'X\(/\)$' \| \
12441 . : '\(.\)' 2>/dev/null ||
12443 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12444 /^X\/\(\/\/\)$/{ s//\1/; q; }
12445 /^X\/\(\/\).*/{ s//\1/; q; }
12449 # PATH needs CR, and LINENO needs CR and PATH.
12450 # Avoid depending upon Character Ranges.
12451 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12452 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12453 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12454 as_cr_digits='0123456789'
12455 as_cr_alnum=$as_cr_Letters$as_cr_digits
12457 # The user is always right.
12458 if test "${PATH_SEPARATOR+set}" != set; then
12459 echo "#! /bin/sh" >conf$$.sh
12460 echo "exit 0" >>conf$$.sh
12462 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12471 as_lineno_1=$LINENO
12472 as_lineno_2=$LINENO
12473 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12474 test "x$as_lineno_1" != "x$as_lineno_2" &&
12475 test "x$as_lineno_3" = "x$as_lineno_2" || {
12476 # Find who we are. Look in the path if we contain no path at all
12479 *[\\/]* ) as_myself=$0 ;;
12480 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12481 for as_dir in $PATH
12484 test -z "$as_dir" && as_dir=.
12485 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12490 # We did not find ourselves, most probably we were run as `sh COMMAND'
12491 # in which case we are not to be found in the path.
12492 if test "x$as_myself" = x; then
12495 if test ! -f "$as_myself"; then
12496 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12497 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12498 { (exit 1); exit 1; }; }
12500 case $CONFIG_SHELL in
12502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12503 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12506 test -z "$as_dir" && as_dir=.
12507 for as_base in sh bash ksh sh5; do
12510 if ("$as_dir/$as_base" -c '
12511 as_lineno_1=$LINENO
12512 as_lineno_2=$LINENO
12513 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12514 test "x$as_lineno_1" != "x$as_lineno_2" &&
12515 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12516 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12517 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12518 CONFIG_SHELL=$as_dir/$as_base
12519 export CONFIG_SHELL
12520 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12528 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12529 # uniformly replaced by the line number. The first 'sed' inserts a
12530 # line-number line before each line; the second 'sed' does the real
12531 # work. The second script uses 'N' to pair each line-number line
12532 # with the numbered line, and appends trailing '-' during
12533 # substitution so that $LINENO is not a special case at line end.
12534 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12535 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12536 sed '=' <$as_myself |
12541 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12544 s,^['$as_cr_digits']*\n,,
12545 ' >$as_me.lineno &&
12546 chmod +x $as_me.lineno ||
12547 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12548 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12549 { (exit 1); exit 1; }; }
12551 # Don't try to exec as it changes $[0], causing all sort of problems
12552 # (the dirname of $[0] is not the place where we might find the
12553 # original and so on. Autoconf is especially sensible to this).
12555 # Exit status is that of the last command.
12560 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12561 *c*,-n*) ECHO_N= ECHO_C='
12563 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12564 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12567 if expr a : '\(a\)' >/dev/null 2>&1; then
12573 rm -f conf$$ conf$$.exe conf$$.file
12575 if ln -s conf$$.file conf$$ 2>/dev/null; then
12576 # We could just check for DJGPP; but this test a) works b) is more generic
12577 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12578 if test -f conf$$.exe; then
12579 # Don't use ln at all; we don't have any links
12584 elif ln conf$$.file conf$$ 2>/dev/null; then
12589 rm -f conf$$ conf$$.exe conf$$.file
12591 if mkdir -p . 2>/dev/null; then
12594 test -d ./-p && rmdir ./-p
12598 as_executable_p="test -f"
12600 # Sed expression to map a string onto a valid CPP name.
12601 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12603 # Sed expression to map a string onto a valid variable name.
12604 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12608 # We need space, tab and new line, in precisely that order.
12618 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12619 # report actual input values of CONFIG_FILES etc. instead of their
12620 # values after options handling. Logging --version etc. is OK.
12624 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12625 ## Running $as_me. ##
12630 This file was extended by $as_me, which was
12631 generated by GNU Autoconf 2.59. Invocation command line was
12633 CONFIG_FILES = $CONFIG_FILES
12634 CONFIG_HEADERS = $CONFIG_HEADERS
12635 CONFIG_LINKS = $CONFIG_LINKS
12636 CONFIG_COMMANDS = $CONFIG_COMMANDS
12640 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12644 # Files that config.status was made for.
12645 if test -n "$ac_config_files"; then
12646 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12649 if test -n "$ac_config_headers"; then
12650 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12653 if test -n "$ac_config_links"; then
12654 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12657 if test -n "$ac_config_commands"; then
12658 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12661 cat >>$CONFIG_STATUS <<\_ACEOF
12664 \`$as_me' instantiates files from templates according to the
12665 current configuration.
12667 Usage: $0 [OPTIONS] [FILE]...
12669 -h, --help print this help, then exit
12670 -V, --version print version number, then exit
12671 -q, --quiet do not print progress messages
12672 -d, --debug don't remove temporary files
12673 --recheck update $as_me by reconfiguring in the same conditions
12674 --file=FILE[:TEMPLATE]
12675 instantiate the configuration file FILE
12676 --header=FILE[:TEMPLATE]
12677 instantiate the configuration header FILE
12679 Configuration files:
12682 Configuration headers:
12685 Report bugs to <bug-autoconf@gnu.org>."
12688 cat >>$CONFIG_STATUS <<_ACEOF
12691 configured by $0, generated by GNU Autoconf 2.59,
12692 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12694 Copyright (C) 2003 Free Software Foundation, Inc.
12695 This config.status script is free software; the Free Software Foundation
12696 gives unlimited permission to copy, distribute and modify it."
12701 cat >>$CONFIG_STATUS <<\_ACEOF
12702 # If no file are specified by the user, then we need to provide default
12703 # value. By we need to know if files were specified by the user.
12709 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12710 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12718 *) # This is not an option, so the user has probably given explicit
12721 ac_need_defaults=false;;
12725 # Handling of the options.
12727 cat >>$CONFIG_STATUS <<\_ACEOF
12728 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12730 --version | --vers* | -V )
12731 echo "$ac_cs_version"; exit 0 ;;
12733 # Conflict between --help and --header
12734 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12735 Try \`$0 --help' for more information." >&5
12736 echo "$as_me: error: ambiguous option: $1
12737 Try \`$0 --help' for more information." >&2;}
12738 { (exit 1); exit 1; }; };;
12739 --help | --hel | -h )
12740 echo "$ac_cs_usage"; exit 0 ;;
12741 --debug | --d* | -d )
12743 --file | --fil | --fi | --f )
12745 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12746 ac_need_defaults=false;;
12747 --header | --heade | --head | --hea )
12749 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12750 ac_need_defaults=false;;
12751 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12752 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12755 # This is an error.
12756 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12757 Try \`$0 --help' for more information." >&5
12758 echo "$as_me: error: unrecognized option: $1
12759 Try \`$0 --help' for more information." >&2;}
12760 { (exit 1); exit 1; }; } ;;
12762 *) ac_config_targets="$ac_config_targets $1" ;;
12768 ac_configure_extra_args=
12770 if $ac_cs_silent; then
12772 ac_configure_extra_args="$ac_configure_extra_args --silent"
12776 cat >>$CONFIG_STATUS <<_ACEOF
12777 if \$ac_cs_recheck; then
12778 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12779 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12788 cat >>$CONFIG_STATUS <<\_ACEOF
12789 for ac_config_target in $ac_config_targets
12791 case "$ac_config_target" in
12792 # Handling of arguments.
12793 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
12794 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12795 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12796 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12797 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
12798 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:autoconf/config.h.in" ;;
12799 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12800 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12801 { (exit 1); exit 1; }; };;
12805 # If the user did not use the arguments to specify the items to instantiate,
12806 # then the envvar interface is used. Set only those that are not.
12807 # We use the long form for the default assignment because of an extremely
12808 # bizarre bug on SunOS 4.1.3.
12809 if $ac_need_defaults; then
12810 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12811 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12814 # Have a temporary directory for convenience. Make it in the build tree
12815 # simply because there is no reason to put it here, and in addition,
12816 # creating and moving files from /tmp can sometimes cause problems.
12817 # Create a temporary directory, and hook for its removal unless debugging.
12820 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12821 trap '{ (exit 1); exit 1; }' 1 2 13 15
12824 # Create a (secure) tmp directory for tmp files.
12827 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12828 test -n "$tmp" && test -d "$tmp"
12831 tmp=./confstat$$-$RANDOM
12832 (umask 077 && mkdir $tmp)
12835 echo "$me: cannot create a temporary directory in ." >&2
12836 { (exit 1); exit 1; }
12841 cat >>$CONFIG_STATUS <<_ACEOF
12844 # CONFIG_FILES section.
12847 # No need to generate the scripts if there are no CONFIG_FILES.
12848 # This happens for instance when ./config.status config.h
12849 if test -n "\$CONFIG_FILES"; then
12850 # Protect against being on the right side of a sed subst in config.status.
12851 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12852 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12853 s,@SHELL@,$SHELL,;t t
12854 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12855 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12856 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12857 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12858 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12859 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12860 s,@exec_prefix@,$exec_prefix,;t t
12861 s,@prefix@,$prefix,;t t
12862 s,@program_transform_name@,$program_transform_name,;t t
12863 s,@bindir@,$bindir,;t t
12864 s,@sbindir@,$sbindir,;t t
12865 s,@libexecdir@,$libexecdir,;t t
12866 s,@datadir@,$datadir,;t t
12867 s,@sysconfdir@,$sysconfdir,;t t
12868 s,@sharedstatedir@,$sharedstatedir,;t t
12869 s,@localstatedir@,$localstatedir,;t t
12870 s,@libdir@,$libdir,;t t
12871 s,@includedir@,$includedir,;t t
12872 s,@oldincludedir@,$oldincludedir,;t t
12873 s,@infodir@,$infodir,;t t
12874 s,@mandir@,$mandir,;t t
12875 s,@build_alias@,$build_alias,;t t
12876 s,@host_alias@,$host_alias,;t t
12877 s,@target_alias@,$target_alias,;t t
12878 s,@DEFS@,$DEFS,;t t
12879 s,@ECHO_C@,$ECHO_C,;t t
12880 s,@ECHO_N@,$ECHO_N,;t t
12881 s,@ECHO_T@,$ECHO_T,;t t
12882 s,@LIBS@,$LIBS,;t t
12883 s,@build@,$build,;t t
12884 s,@build_cpu@,$build_cpu,;t t
12885 s,@build_vendor@,$build_vendor,;t t
12886 s,@build_os@,$build_os,;t t
12887 s,@host@,$host,;t t
12888 s,@host_cpu@,$host_cpu,;t t
12889 s,@host_vendor@,$host_vendor,;t t
12890 s,@host_os@,$host_os,;t t
12891 s,@VERSION@,$VERSION,;t t
12892 s,@DATE@,$DATE,;t t
12893 s,@LSMDATE@,$LSMDATE,;t t
12894 s,@LIBVERSION@,$LIBVERSION,;t t
12896 s,@CFLAGS@,$CFLAGS,;t t
12897 s,@LDFLAGS@,$LDFLAGS,;t t
12898 s,@CPPFLAGS@,$CPPFLAGS,;t t
12899 s,@ac_ct_CC@,$ac_ct_CC,;t t
12900 s,@EXEEXT@,$EXEEXT,;t t
12901 s,@OBJEXT@,$OBJEXT,;t t
12903 s,@CXXFLAGS@,$CXXFLAGS,;t t
12904 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
12906 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12907 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12908 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12910 s,@LINKER@,$LINKER,;t t
12911 s,@CXXCPP@,$CXXCPP,;t t
12912 s,@EGREP@,$EGREP,;t t
12913 s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t
12914 s,@RXVTNAME@,$RXVTNAME,;t t
12920 s,@ECHO@,$ECHO,;t t
12924 s,@X_CFLAGS@,$X_CFLAGS,;t t
12925 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
12926 s,@X_LIBS@,$X_LIBS,;t t
12927 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
12928 s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t
12929 s,@XPM_CFLAGS@,$XPM_CFLAGS,;t t
12930 s,@XPM_LIBS@,$XPM_LIBS,;t t
12931 s,@rxvt_int16_typedef@,$rxvt_int16_typedef,;t t
12932 s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t
12933 s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t
12934 s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t
12935 s,@rxvt_intp_define@,$rxvt_intp_define,;t t
12936 s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t
12937 s,@DEBUG@,$DEBUG,;t t
12938 s,@DINCLUDE@,$DINCLUDE,;t t
12939 s,@DLIB@,$DLIB,;t t
12940 s,@include_stdint_h@,$include_stdint_h,;t t
12941 s,@include_stdarg_h@,$include_stdarg_h,;t t
12942 s,@include_stdlib_h@,$include_stdlib_h,;t t
12943 s,@include_unistd_h@,$include_unistd_h,;t t
12944 s,@include_string_h@,$include_string_h,;t t
12945 s,@include_fcntl_h@,$include_fcntl_h,;t t
12946 s,@include_util_h@,$include_util_h,;t t
12947 s,@include_assert_h@,$include_assert_h,;t t
12948 s,@include_sys_ioctl_h@,$include_sys_ioctl_h,;t t
12949 s,@include_sys_select_h@,$include_sys_select_h,;t t
12950 s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t
12951 s,@include_sys_time_h@,$include_sys_time_h,;t t
12952 s,@include_time_h@,$include_time_h,;t t
12953 s,@LIBOBJS@,$LIBOBJS,;t t
12954 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12955 /@MCOMMON@/r $MCOMMON
12961 cat >>$CONFIG_STATUS <<\_ACEOF
12962 # Split the substitutions into bite-sized pieces for seds with
12963 # small command number limits, like on Digital OSF/1 and HP-UX.
12964 ac_max_sed_lines=48
12965 ac_sed_frag=1 # Number of current file.
12966 ac_beg=1 # First line for current file.
12967 ac_end=$ac_max_sed_lines # Line after last line for current file.
12970 while $ac_more_lines; do
12971 if test $ac_beg -gt 1; then
12972 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12974 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12976 if test ! -s $tmp/subs.frag; then
12977 ac_more_lines=false
12979 # The purpose of the label and of the branching condition is to
12980 # speed up the sed processing (if there are no `@' at all, there
12981 # is no need to browse any of the substitutions).
12982 # These are the two extra sed commands mentioned above.
12984 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12985 if test -z "$ac_sed_cmds"; then
12986 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12988 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12990 ac_sed_frag=`expr $ac_sed_frag + 1`
12992 ac_end=`expr $ac_end + $ac_max_sed_lines`
12995 if test -z "$ac_sed_cmds"; then
12998 fi # test -n "$CONFIG_FILES"
13001 cat >>$CONFIG_STATUS <<\_ACEOF
13002 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13003 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13005 - | *:- | *:-:* ) # input from stdin
13007 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13008 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13009 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13010 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13011 * ) ac_file_in=$ac_file.in ;;
13014 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13015 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13016 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13017 X"$ac_file" : 'X\(//\)[^/]' \| \
13018 X"$ac_file" : 'X\(//\)$' \| \
13019 X"$ac_file" : 'X\(/\)' \| \
13020 . : '\(.\)' 2>/dev/null ||
13022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13023 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13024 /^X\(\/\/\)$/{ s//\1/; q; }
13025 /^X\(\/\).*/{ s//\1/; q; }
13027 { if $as_mkdir_p; then
13032 while test ! -d "$as_dir"; do
13033 as_dirs="$as_dir $as_dirs"
13034 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13035 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13036 X"$as_dir" : 'X\(//\)[^/]' \| \
13037 X"$as_dir" : 'X\(//\)$' \| \
13038 X"$as_dir" : 'X\(/\)' \| \
13039 . : '\(.\)' 2>/dev/null ||
13041 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13042 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13043 /^X\(\/\/\)$/{ s//\1/; q; }
13044 /^X\(\/\).*/{ s//\1/; q; }
13047 test ! -n "$as_dirs" || mkdir $as_dirs
13048 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13049 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13050 { (exit 1); exit 1; }; }; }
13054 if test "$ac_dir" != .; then
13055 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13056 # A "../" for each directory in $ac_dir_suffix.
13057 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13059 ac_dir_suffix= ac_top_builddir=
13063 .) # No --srcdir option. We are building in place.
13065 if test -z "$ac_top_builddir"; then
13068 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13070 [\\/]* | ?:[\\/]* ) # Absolute path.
13071 ac_srcdir=$srcdir$ac_dir_suffix;
13072 ac_top_srcdir=$srcdir ;;
13073 *) # Relative path.
13074 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13075 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13078 # Do not use `cd foo && pwd` to compute absolute paths, because
13079 # the directories may not exist.
13081 .) ac_abs_builddir="$ac_dir";;
13084 .) ac_abs_builddir=`pwd`;;
13085 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13086 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13089 case $ac_abs_builddir in
13090 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13092 case ${ac_top_builddir}. in
13093 .) ac_abs_top_builddir=$ac_abs_builddir;;
13094 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13095 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13098 case $ac_abs_builddir in
13099 .) ac_abs_srcdir=$ac_srcdir;;
13102 .) ac_abs_srcdir=$ac_abs_builddir;;
13103 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13104 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13107 case $ac_abs_builddir in
13108 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13110 case $ac_top_srcdir in
13111 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13112 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13113 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13119 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13120 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13123 # Let's still pretend it is `configure' which instantiates (i.e., don't
13124 # use $as_me), people would be surprised to read:
13125 # /* config.h. Generated by config.status. */
13126 if test x"$ac_file" = x-; then
13129 configure_input="$ac_file. "
13131 configure_input=$configure_input"Generated from `echo $ac_file_in |
13132 sed 's,.*/,,'` by configure."
13134 # First look for the input files in the build tree, otherwise in the
13136 ac_file_inputs=`IFS=:
13137 for f in $ac_file_in; do
13139 -) echo $tmp/stdin ;;
13141 # Absolute (can't be DOS-style, as IFS=:)
13142 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13143 echo "$as_me: error: cannot find input file: $f" >&2;}
13144 { (exit 1); exit 1; }; }
13147 if test -f "$f"; then
13150 elif test -f "$srcdir/$f"; then
13155 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13156 echo "$as_me: error: cannot find input file: $f" >&2;}
13157 { (exit 1); exit 1; }; }
13160 done` || { (exit 1); exit 1; }
13162 if test x"$ac_file" != x-; then
13163 { echo "$as_me:$LINENO: creating $ac_file" >&5
13164 echo "$as_me: creating $ac_file" >&6;}
13168 cat >>$CONFIG_STATUS <<_ACEOF
13172 cat >>$CONFIG_STATUS <<\_ACEOF
13174 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13175 s,@configure_input@,$configure_input,;t t
13176 s,@srcdir@,$ac_srcdir,;t t
13177 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13178 s,@top_srcdir@,$ac_top_srcdir,;t t
13179 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13180 s,@builddir@,$ac_builddir,;t t
13181 s,@abs_builddir@,$ac_abs_builddir,;t t
13182 s,@top_builddir@,$ac_top_builddir,;t t
13183 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13184 s,@INSTALL@,$ac_INSTALL,;t t
13185 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13187 if test x"$ac_file" != x-; then
13188 mv $tmp/out $ac_file
13196 cat >>$CONFIG_STATUS <<\_ACEOF
13199 # CONFIG_HEADER section.
13202 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13203 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13205 # ac_d sets the value in "#define NAME VALUE" lines.
13206 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13207 ac_dB='[ ].*$,\1#\2'
13210 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13211 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13212 ac_uB='$,\1#\2define\3'
13216 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13217 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13219 - | *:- | *:-:* ) # input from stdin
13221 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13222 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13223 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13224 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13225 * ) ac_file_in=$ac_file.in ;;
13228 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13229 echo "$as_me: creating $ac_file" >&6;}
13231 # First look for the input files in the build tree, otherwise in the
13233 ac_file_inputs=`IFS=:
13234 for f in $ac_file_in; do
13236 -) echo $tmp/stdin ;;
13238 # Absolute (can't be DOS-style, as IFS=:)
13239 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13240 echo "$as_me: error: cannot find input file: $f" >&2;}
13241 { (exit 1); exit 1; }; }
13242 # Do quote $f, to prevent DOS paths from being IFS'd.
13245 if test -f "$f"; then
13248 elif test -f "$srcdir/$f"; then
13253 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13254 echo "$as_me: error: cannot find input file: $f" >&2;}
13255 { (exit 1); exit 1; }; }
13258 done` || { (exit 1); exit 1; }
13259 # Remove the trailing spaces.
13260 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13264 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13265 # `conftest.undefs', that substitutes the proper values into
13266 # config.h.in to produce config.h. The first handles `#define'
13267 # templates, and the second `#undef' templates.
13268 # And first: Protect against being on the right side of a sed subst in
13269 # config.status. Protect against being in an unquoted here document
13270 # in config.status.
13271 rm -f conftest.defines conftest.undefs
13272 # Using a here document instead of a string reduces the quoting nightmare.
13273 # Putting comments in sed scripts is not portable.
13275 # `end' is used to avoid that the second main sed command (meant for
13276 # 0-ary CPP macros) applies to n-ary macro definitions.
13277 # See the Autoconf documentation for `clear'.
13278 cat >confdef2sed.sed <<\_ACEOF
13283 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13285 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13288 # If some macros were called several times there might be several times
13289 # the same #defines, which is useless. Nevertheless, we may not want to
13290 # sort them, since we want the *last* AC-DEFINE to be honored.
13291 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13292 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13293 rm -f confdef2sed.sed
13295 # This sed command replaces #undef with comments. This is necessary, for
13296 # example, in the case of _POSIX_SOURCE, which is predefined and required
13297 # on some systems where configure will not decide to define it.
13298 cat >>conftest.undefs <<\_ACEOF
13299 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13302 # Break up conftest.defines because some shells have a limit on the size
13303 # of here documents, and old seds have small limits too (100 cmds).
13304 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13305 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13306 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13307 echo ' :' >>$CONFIG_STATUS
13308 rm -f conftest.tail
13309 while grep . conftest.defines >/dev/null
13311 # Write a limited-size here document to $tmp/defines.sed.
13312 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13313 # Speed up: don't consider the non `#define' lines.
13314 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13315 # Work around the forget-to-reset-the-flag bug.
13316 echo 't clr' >>$CONFIG_STATUS
13317 echo ': clr' >>$CONFIG_STATUS
13318 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13320 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13322 mv $tmp/out $tmp/in
13324 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13325 rm -f conftest.defines
13326 mv conftest.tail conftest.defines
13328 rm -f conftest.defines
13329 echo ' fi # grep' >>$CONFIG_STATUS
13330 echo >>$CONFIG_STATUS
13332 # Break up conftest.undefs because some shells have a limit on the size
13333 # of here documents, and old seds have small limits too (100 cmds).
13334 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13335 rm -f conftest.tail
13336 while grep . conftest.undefs >/dev/null
13338 # Write a limited-size here document to $tmp/undefs.sed.
13339 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13340 # Speed up: don't consider the non `#undef'
13341 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13342 # Work around the forget-to-reset-the-flag bug.
13343 echo 't clr' >>$CONFIG_STATUS
13344 echo ': clr' >>$CONFIG_STATUS
13345 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13347 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13349 mv $tmp/out $tmp/in
13351 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13352 rm -f conftest.undefs
13353 mv conftest.tail conftest.undefs
13355 rm -f conftest.undefs
13357 cat >>$CONFIG_STATUS <<\_ACEOF
13358 # Let's still pretend it is `configure' which instantiates (i.e., don't
13359 # use $as_me), people would be surprised to read:
13360 # /* config.h. Generated by config.status. */
13361 if test x"$ac_file" = x-; then
13362 echo "/* Generated by configure. */" >$tmp/config.h
13364 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13366 cat $tmp/in >>$tmp/config.h
13368 if test x"$ac_file" != x-; then
13369 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13370 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13371 echo "$as_me: $ac_file is unchanged" >&6;}
13373 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13374 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13375 X"$ac_file" : 'X\(//\)[^/]' \| \
13376 X"$ac_file" : 'X\(//\)$' \| \
13377 X"$ac_file" : 'X\(/\)' \| \
13378 . : '\(.\)' 2>/dev/null ||
13380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13381 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13382 /^X\(\/\/\)$/{ s//\1/; q; }
13383 /^X\(\/\).*/{ s//\1/; q; }
13385 { if $as_mkdir_p; then
13390 while test ! -d "$as_dir"; do
13391 as_dirs="$as_dir $as_dirs"
13392 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13393 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13394 X"$as_dir" : 'X\(//\)[^/]' \| \
13395 X"$as_dir" : 'X\(//\)$' \| \
13396 X"$as_dir" : 'X\(/\)' \| \
13397 . : '\(.\)' 2>/dev/null ||
13399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13400 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13401 /^X\(\/\/\)$/{ s//\1/; q; }
13402 /^X\(\/\).*/{ s//\1/; q; }
13405 test ! -n "$as_dirs" || mkdir $as_dirs
13406 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13407 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13408 { (exit 1); exit 1; }; }; }
13411 mv $tmp/config.h $ac_file
13415 rm -f $tmp/config.h
13420 cat >>$CONFIG_STATUS <<\_ACEOF
13422 { (exit 0); exit 0; }
13424 chmod +x $CONFIG_STATUS
13425 ac_clean_files=$ac_clean_files_save
13428 # configure is writing to config.log, and then calls config.status.
13429 # config.status does its own redirection, appending to config.log.
13430 # Unfortunately, on DOS this fails, as config.log is still kept open
13431 # by configure, so config.status won't be able to write to it; its
13432 # output is simply discarded. So we exec the FD to /dev/null,
13433 # effectively closing config.log, so it can be properly (re)opened and
13434 # appended to by config.status. When coming back to configure, we
13435 # need to make the FD available again.
13436 if test "$no_create" != yes; then
13438 ac_config_status_args=
13439 test "$silent" = yes &&
13440 ac_config_status_args="$ac_config_status_args --quiet"
13442 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13444 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13445 # would make configure fail if this is the last instruction.
13446 $ac_cs_success || { (exit 1); exit 1; }
13450 echo "Configuration:
13452 Rxvt version: $VERSION : $DATE
13453 Source code location: $srcdir
13454 Install path: ${prefix}/bin
13456 Compiler flags: $CFLAGS
13459 if test "$MALLOC_TYPE" = S; then
13460 echo " malloc support: system default"
13462 if test "$MALLOC_TYPE" = G; then
13463 echo " malloc support: Gray Watson's dmalloc"
13465 if test "$MALLOC_TYPE" = D; then
13466 echo " malloc support: Doug Lea's malloc"
13469 if test x$support_xpm = xyes; then
13470 echo " Xpm library: $XPM_LIBS"
13474 The following are set in config.h
13476 echo " pty/tty type: "$rxvt_cv_ptys
13477 if test x$support_utmp != xyes; then
13478 echo " utmp support: disabled"
13481 echo " utmp support: enabled
13482 utmp file: $rxvt_cv_path_utmp
13483 utmpx file: $rxvt_cv_path_utmpx
13484 wtmp file: $rxvt_cv_path_wtmp
13485 wtmpx file: $rxvt_cv_path_wtmpx
13486 lastlog file: $rxvt_cv_path_lastlog
13487 ttys/ttytab file: $rxvt_cv_path_ttytab"
13490 if test x$term != x; then
13491 echo " set TERM to: $term"
13493 if test x$terminfo != x; then
13494 echo " set TERMINFO to: $terminfo"
13496 echo " default resource name: $RESNAME"
13497 echo " resource class: $RESCLASS"
13498 if test x$RESFALLBACK != x; then
13499 echo " resource class fallback: $RESFALLBACK"
13502 if test x$rxvt_cv_ptys = xUNKNOWN; then
13503 echo ".----------------------------------------------------------------."
13504 echo ". WARNING: could not determine pty/tty type. Do not build until ."
13505 echo ". the appropriate PTYS_ARE_* is defined in config.h ."
13506 echo ".----------------------------------------------------------------."
13508 if test x$support_xpm = xneedsmanualspecification; then
13509 echo ".----------------------------------------------------------------."
13510 echo ". WARNING: --enable-xpm-background was specified however the ."
13511 echo ". XPM includes files and libraries could not be found. ."
13512 echo ". XPM backgrounds are now being DISABLED! If you want ."
13513 echo ". to use them you should rerun configure with the ."
13514 echo ". appropriate --with-xpm-includes=/path/to/xpm/includes ."
13515 echo ". and --with-xpm-library=/path/to/xpm/library lines. ."
13516 echo ".----------------------------------------------------------------."
13518 if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then
13519 echo ".----------------------------------------------------------------."
13520 echo ". WARNING: --enable-xim was specified however the locale support ."
13521 echo ". functions could not be found. ."
13522 echo ". XIM is now being DISABLED! ."
13523 echo ".----------------------------------------------------------------."
13526 echo " *** Optionally check src/feature.h for further options ***"
13529 echo ".----------------------------------------------------------------."
13530 echo ". NOTE: some features are disabled by default, try ."
13531 echo ". configure --help to get an idea of the optional features, ."
13532 echo ". or read ./README.configure ."
13534 echo ". The script ./reconf gives a reasonable baseline, try it if ."
13535 echo ". you do not want to read documentation and still want some ."
13536 echo ". useful features. ."
13537 echo ".----------------------------------------------------------------."