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 PERL PERLLIB PERLFLAGS PERLPRIVLIBEXP IF_PERL PERL_O 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-rxvt-scroll enable rxvt style scrollbar
883 --enable-next-scroll enable NeXT style scrollbar
884 --enable-xterm-scroll enable Xterm style scrollbar
885 --enable-perl enable embedded perl interpreter
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-8bitctrls enable 8 bit control sequences (not recommended)
894 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
895 --disable-swapscreen disable swap screen support
896 --enable-iso14755 enable support for extended ISO 14755 modes
897 --enable-frills enable support for rarely used features
898 --enable-24bit enable support for using 24bit visuals if available
899 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
900 --enable-selectionscrolling enable scrolling during selections
901 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
902 --enable-slipwheeling enable slip wheel scrolling (requires previous)
903 --enable-dmalloc enable Gray Watson's malloc - for debugging use
904 --enable-dlmalloc enable Doug Lea's malloc - for production use
905 NOTE: enable only one malloc package
906 --enable-smart-resize enable smart growth/shrink behaviour
907 --enable-text-blink enable blinking text
908 --enable-pointer-blank enable pointer blank when typing or inactive pointer
911 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
912 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
913 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)
914 --with-res-name=NAME use this as default resource name (default: urxvt)
915 --with-res-class=CLASS use this as the resource class (default: URxvt)
916 --with-name=NAME set the basename for the installed binaries (default: urxvt)
917 --with-term=NAME set the terminal to NAME (default: rxvt)
918 --with-terminfo=PATH set the path to the terminfo tree to PATH
919 --with-x use the X Window System
920 --with-xpm-includes=DIR use XPM includes in DIR
921 --with-xpm-library=DIR use XPM library in DIR
924 Some influential environment variables:
925 CC C compiler command
926 CFLAGS C compiler flags
927 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
928 nonstandard directory <lib dir>
929 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
930 headers in a nonstandard directory <include dir>
931 CXX C++ compiler command
932 CXXFLAGS C++ compiler flags
934 CXXCPP C++ preprocessor
936 Use these variables to override the choices made by `configure' or to help
937 it to find libraries and programs with nonstandard names/locations.
942 if test "$ac_init_help" = "recursive"; then
943 # If there are subdirs, report their specific --help.
945 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
946 test -d $ac_dir || continue
949 if test "$ac_dir" != .; then
950 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
951 # A "../" for each directory in $ac_dir_suffix.
952 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
954 ac_dir_suffix= ac_top_builddir=
958 .) # No --srcdir option. We are building in place.
960 if test -z "$ac_top_builddir"; then
963 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
965 [\\/]* | ?:[\\/]* ) # Absolute path.
966 ac_srcdir=$srcdir$ac_dir_suffix;
967 ac_top_srcdir=$srcdir ;;
969 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
970 ac_top_srcdir=$ac_top_builddir$srcdir ;;
973 # Do not use `cd foo && pwd` to compute absolute paths, because
974 # the directories may not exist.
976 .) ac_abs_builddir="$ac_dir";;
979 .) ac_abs_builddir=`pwd`;;
980 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
981 *) ac_abs_builddir=`pwd`/"$ac_dir";;
984 case $ac_abs_builddir in
985 .) ac_abs_top_builddir=${ac_top_builddir}.;;
987 case ${ac_top_builddir}. in
988 .) ac_abs_top_builddir=$ac_abs_builddir;;
989 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
990 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
993 case $ac_abs_builddir in
994 .) ac_abs_srcdir=$ac_srcdir;;
997 .) ac_abs_srcdir=$ac_abs_builddir;;
998 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
999 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1002 case $ac_abs_builddir in
1003 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1005 case $ac_top_srcdir in
1006 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1007 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1008 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1013 # Check for guested configure; otherwise get Cygnus style configure.
1014 if test -f $ac_srcdir/configure.gnu; then
1016 $SHELL $ac_srcdir/configure.gnu --help=recursive
1017 elif test -f $ac_srcdir/configure; then
1019 $SHELL $ac_srcdir/configure --help=recursive
1020 elif test -f $ac_srcdir/configure.ac ||
1021 test -f $ac_srcdir/configure.in; then
1023 $ac_configure --help
1025 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1031 test -n "$ac_init_help" && exit 0
1032 if $ac_init_version; then
1035 Copyright (C) 2003 Free Software Foundation, Inc.
1036 This configure script is free software; the Free Software Foundation
1037 gives unlimited permission to copy, distribute and modify it.
1043 This file contains any messages produced by compilers while
1044 running configure, to aid debugging if configure makes a mistake.
1046 It was created by $as_me, which was
1047 generated by GNU Autoconf 2.59. Invocation command line was
1058 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1059 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1060 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1061 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1062 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1064 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1065 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1067 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1068 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1069 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1070 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1071 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1072 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1073 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1081 test -z "$as_dir" && as_dir=.
1082 echo "PATH: $as_dir"
1097 # Keep a trace of the command line.
1098 # Strip out --no-create and --no-recursion so they do not pile up.
1099 # Strip out --silent because we don't want to record it for future runs.
1100 # Also quote any args containing shell meta-characters.
1101 # Make two passes to allow for proper duplicate-argument suppression.
1106 ac_must_keep_next=false
1112 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1113 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1114 | -silent | --silent | --silen | --sile | --sil)
1116 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1117 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1120 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1122 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1123 if test $ac_must_keep_next = true; then
1124 ac_must_keep_next=false # Got value, back to normal.
1127 *=* | --config-cache | -C | -disable-* | --disable-* \
1128 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1129 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1130 | -with-* | --with-* | -without-* | --without-* | --x)
1131 case "$ac_configure_args0 " in
1132 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1135 -* ) ac_must_keep_next=true ;;
1138 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1139 # Get rid of the leading space.
1145 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1146 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1148 # When interrupted or exit'd, cleanup temporary files, and complete
1149 # config.log. We remove comments because anyway the quotes in there
1150 # would cause problems or look ugly.
1151 # WARNING: Be sure not to use single quotes in there, as some shells,
1152 # such as our DU 5.0 friend, will then `close' the trap.
1153 trap 'exit_status=$?
1154 # Save into config.log some information that might help in debugging.
1159 ## ---------------- ##
1160 ## Cache variables. ##
1161 ## ---------------- ##
1164 # The following way of writing the cache mishandles newlines in values,
1167 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1170 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1171 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1175 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1182 ## ----------------- ##
1183 ## Output variables. ##
1184 ## ----------------- ##
1187 for ac_var in $ac_subst_vars
1189 eval ac_val=$`echo $ac_var`
1190 echo "$ac_var='"'"'$ac_val'"'"'"
1194 if test -n "$ac_subst_files"; then
1201 for ac_var in $ac_subst_files
1203 eval ac_val=$`echo $ac_var`
1204 echo "$ac_var='"'"'$ac_val'"'"'"
1209 if test -s confdefs.h; then
1216 sed "/^$/d" confdefs.h | sort
1219 test "$ac_signal" != 0 &&
1220 echo "$as_me: caught signal $ac_signal"
1221 echo "$as_me: exit $exit_status"
1223 rm -f core *.core &&
1224 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1227 for ac_signal in 1 2 13 15; do
1228 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1232 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1233 rm -rf conftest* confdefs.h
1234 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1237 # Predefined preprocessor variables.
1239 cat >>confdefs.h <<_ACEOF
1240 #define PACKAGE_NAME "$PACKAGE_NAME"
1244 cat >>confdefs.h <<_ACEOF
1245 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1249 cat >>confdefs.h <<_ACEOF
1250 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1254 cat >>confdefs.h <<_ACEOF
1255 #define PACKAGE_STRING "$PACKAGE_STRING"
1259 cat >>confdefs.h <<_ACEOF
1260 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1264 # Let the site file select an alternate cache file if it wants to.
1265 # Prefer explicitly selected file to automatically selected ones.
1266 if test -z "$CONFIG_SITE"; then
1267 if test "x$prefix" != xNONE; then
1268 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1270 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1273 for ac_site_file in $CONFIG_SITE; do
1274 if test -r "$ac_site_file"; then
1275 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1276 echo "$as_me: loading site script $ac_site_file" >&6;}
1277 sed 's/^/| /' "$ac_site_file" >&5
1282 if test -r "$cache_file"; then
1283 # Some versions of bash will fail to source /dev/null (special
1284 # files actually), so we avoid doing that.
1285 if test -f "$cache_file"; then
1286 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1287 echo "$as_me: loading cache $cache_file" >&6;}
1289 [\\/]* | ?:[\\/]* ) . $cache_file;;
1290 *) . ./$cache_file;;
1294 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1295 echo "$as_me: creating cache $cache_file" >&6;}
1299 # Check that the precious variables saved in the cache have kept the same
1301 ac_cache_corrupted=false
1302 for ac_var in `(set) 2>&1 |
1303 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1304 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1305 eval ac_new_set=\$ac_env_${ac_var}_set
1306 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1307 eval ac_new_val="\$ac_env_${ac_var}_value"
1308 case $ac_old_set,$ac_new_set in
1310 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1311 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1312 ac_cache_corrupted=: ;;
1314 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1315 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1316 ac_cache_corrupted=: ;;
1319 if test "x$ac_old_val" != "x$ac_new_val"; then
1320 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1321 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1322 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1323 echo "$as_me: former value: $ac_old_val" >&2;}
1324 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1325 echo "$as_me: current value: $ac_new_val" >&2;}
1326 ac_cache_corrupted=:
1329 # Pass precious variables to config.status.
1330 if test "$ac_new_set" = set; then
1332 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1333 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1334 *) ac_arg=$ac_var=$ac_new_val ;;
1336 case " $ac_configure_args " in
1337 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1338 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1342 if $ac_cache_corrupted; then
1343 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1344 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1345 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1346 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1347 { (exit 1); exit 1; }; }
1351 ac_cpp='$CPP $CPPFLAGS'
1352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1376 for ac_dir in autoconf $srcdir/autoconf; do
1377 if test -f $ac_dir/install-sh; then
1379 ac_install_sh="$ac_aux_dir/install-sh -c"
1381 elif test -f $ac_dir/install.sh; then
1383 ac_install_sh="$ac_aux_dir/install.sh -c"
1385 elif test -f $ac_dir/shtool; then
1387 ac_install_sh="$ac_aux_dir/shtool install -c"
1391 if test -z "$ac_aux_dir"; then
1392 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1393 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1394 { (exit 1); exit 1; }; }
1396 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1397 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1398 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1400 ac_config_headers="$ac_config_headers config.h:autoconf/config.h.in"
1403 # Make sure we can run config.sub.
1404 $ac_config_sub sun4 >/dev/null 2>&1 ||
1405 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1406 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1407 { (exit 1); exit 1; }; }
1409 echo "$as_me:$LINENO: checking build system type" >&5
1410 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1411 if test "${ac_cv_build+set}" = set; then
1412 echo $ECHO_N "(cached) $ECHO_C" >&6
1414 ac_cv_build_alias=$build_alias
1415 test -z "$ac_cv_build_alias" &&
1416 ac_cv_build_alias=`$ac_config_guess`
1417 test -z "$ac_cv_build_alias" &&
1418 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1419 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1420 { (exit 1); exit 1; }; }
1421 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1422 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1423 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1424 { (exit 1); exit 1; }; }
1427 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1428 echo "${ECHO_T}$ac_cv_build" >&6
1430 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1431 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1432 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1435 echo "$as_me:$LINENO: checking host system type" >&5
1436 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1437 if test "${ac_cv_host+set}" = set; then
1438 echo $ECHO_N "(cached) $ECHO_C" >&6
1440 ac_cv_host_alias=$host_alias
1441 test -z "$ac_cv_host_alias" &&
1442 ac_cv_host_alias=$ac_cv_build_alias
1443 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1444 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1445 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1446 { (exit 1); exit 1; }; }
1449 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1450 echo "${ECHO_T}$ac_cv_host" >&6
1452 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1453 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1454 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1458 VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1459 DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1461 echo "configuring for rxvt $VERSION"
1466 ac_cpp='$CPP $CPPFLAGS'
1467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1470 if test -n "$ac_tool_prefix"; then
1471 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1472 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1473 echo "$as_me:$LINENO: checking for $ac_word" >&5
1474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1475 if test "${ac_cv_prog_CC+set}" = set; then
1476 echo $ECHO_N "(cached) $ECHO_C" >&6
1478 if test -n "$CC"; then
1479 ac_cv_prog_CC="$CC" # Let the user override the test.
1481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1485 test -z "$as_dir" && as_dir=.
1486 for ac_exec_ext in '' $ac_executable_extensions; do
1487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1488 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1498 if test -n "$CC"; then
1499 echo "$as_me:$LINENO: result: $CC" >&5
1500 echo "${ECHO_T}$CC" >&6
1502 echo "$as_me:$LINENO: result: no" >&5
1503 echo "${ECHO_T}no" >&6
1507 if test -z "$ac_cv_prog_CC"; then
1509 # Extract the first word of "gcc", so it can be a program name with args.
1510 set dummy gcc; ac_word=$2
1511 echo "$as_me:$LINENO: checking for $ac_word" >&5
1512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1513 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1514 echo $ECHO_N "(cached) $ECHO_C" >&6
1516 if test -n "$ac_ct_CC"; then
1517 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1523 test -z "$as_dir" && as_dir=.
1524 for ac_exec_ext in '' $ac_executable_extensions; do
1525 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1526 ac_cv_prog_ac_ct_CC="gcc"
1527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1535 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1536 if test -n "$ac_ct_CC"; then
1537 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1538 echo "${ECHO_T}$ac_ct_CC" >&6
1540 echo "$as_me:$LINENO: result: no" >&5
1541 echo "${ECHO_T}no" >&6
1549 if test -z "$CC"; then
1550 if test -n "$ac_tool_prefix"; then
1551 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1552 set dummy ${ac_tool_prefix}cc; ac_word=$2
1553 echo "$as_me:$LINENO: checking for $ac_word" >&5
1554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1555 if test "${ac_cv_prog_CC+set}" = set; then
1556 echo $ECHO_N "(cached) $ECHO_C" >&6
1558 if test -n "$CC"; then
1559 ac_cv_prog_CC="$CC" # Let the user override the test.
1561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1565 test -z "$as_dir" && as_dir=.
1566 for ac_exec_ext in '' $ac_executable_extensions; do
1567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1568 ac_cv_prog_CC="${ac_tool_prefix}cc"
1569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1578 if test -n "$CC"; then
1579 echo "$as_me:$LINENO: result: $CC" >&5
1580 echo "${ECHO_T}$CC" >&6
1582 echo "$as_me:$LINENO: result: no" >&5
1583 echo "${ECHO_T}no" >&6
1587 if test -z "$ac_cv_prog_CC"; then
1589 # Extract the first word of "cc", so it can be a program name with args.
1590 set dummy cc; ac_word=$2
1591 echo "$as_me:$LINENO: checking for $ac_word" >&5
1592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1593 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1594 echo $ECHO_N "(cached) $ECHO_C" >&6
1596 if test -n "$ac_ct_CC"; then
1597 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1603 test -z "$as_dir" && as_dir=.
1604 for ac_exec_ext in '' $ac_executable_extensions; do
1605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1606 ac_cv_prog_ac_ct_CC="cc"
1607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1615 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1616 if test -n "$ac_ct_CC"; then
1617 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1618 echo "${ECHO_T}$ac_ct_CC" >&6
1620 echo "$as_me:$LINENO: result: no" >&5
1621 echo "${ECHO_T}no" >&6
1630 if test -z "$CC"; then
1631 # Extract the first word of "cc", so it can be a program name with args.
1632 set dummy cc; ac_word=$2
1633 echo "$as_me:$LINENO: checking for $ac_word" >&5
1634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1635 if test "${ac_cv_prog_CC+set}" = set; then
1636 echo $ECHO_N "(cached) $ECHO_C" >&6
1638 if test -n "$CC"; then
1639 ac_cv_prog_CC="$CC" # Let the user override the test.
1642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646 test -z "$as_dir" && as_dir=.
1647 for ac_exec_ext in '' $ac_executable_extensions; do
1648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1649 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1650 ac_prog_rejected=yes
1654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1660 if test $ac_prog_rejected = yes; then
1661 # We found a bogon in the path, so make sure we never use it.
1662 set dummy $ac_cv_prog_CC
1664 if test $# != 0; then
1665 # We chose a different compiler from the bogus one.
1666 # However, it has the same basename, so the bogon will be chosen
1667 # first if we set CC to just the basename; use the full file name.
1669 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1675 if test -n "$CC"; then
1676 echo "$as_me:$LINENO: result: $CC" >&5
1677 echo "${ECHO_T}$CC" >&6
1679 echo "$as_me:$LINENO: result: no" >&5
1680 echo "${ECHO_T}no" >&6
1684 if test -z "$CC"; then
1685 if test -n "$ac_tool_prefix"; then
1688 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1689 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1690 echo "$as_me:$LINENO: checking for $ac_word" >&5
1691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1692 if test "${ac_cv_prog_CC+set}" = set; then
1693 echo $ECHO_N "(cached) $ECHO_C" >&6
1695 if test -n "$CC"; then
1696 ac_cv_prog_CC="$CC" # Let the user override the test.
1698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702 test -z "$as_dir" && as_dir=.
1703 for ac_exec_ext in '' $ac_executable_extensions; do
1704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1705 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1715 if test -n "$CC"; then
1716 echo "$as_me:$LINENO: result: $CC" >&5
1717 echo "${ECHO_T}$CC" >&6
1719 echo "$as_me:$LINENO: result: no" >&5
1720 echo "${ECHO_T}no" >&6
1723 test -n "$CC" && break
1726 if test -z "$CC"; then
1730 # Extract the first word of "$ac_prog", so it can be a program name with args.
1731 set dummy $ac_prog; ac_word=$2
1732 echo "$as_me:$LINENO: checking for $ac_word" >&5
1733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1734 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1735 echo $ECHO_N "(cached) $ECHO_C" >&6
1737 if test -n "$ac_ct_CC"; then
1738 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744 test -z "$as_dir" && as_dir=.
1745 for ac_exec_ext in '' $ac_executable_extensions; do
1746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1747 ac_cv_prog_ac_ct_CC="$ac_prog"
1748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1756 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1757 if test -n "$ac_ct_CC"; then
1758 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1759 echo "${ECHO_T}$ac_ct_CC" >&6
1761 echo "$as_me:$LINENO: result: no" >&5
1762 echo "${ECHO_T}no" >&6
1765 test -n "$ac_ct_CC" && break
1774 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1775 See \`config.log' for more details." >&5
1776 echo "$as_me: error: no acceptable C compiler found in \$PATH
1777 See \`config.log' for more details." >&2;}
1778 { (exit 1); exit 1; }; }
1780 # Provide some information about the compiler.
1781 echo "$as_me:$LINENO:" \
1782 "checking for C compiler version" >&5
1783 ac_compiler=`set X $ac_compile; echo $2`
1784 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1785 (eval $ac_compiler --version </dev/null >&5) 2>&5
1787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1788 (exit $ac_status); }
1789 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1790 (eval $ac_compiler -v </dev/null >&5) 2>&5
1792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1793 (exit $ac_status); }
1794 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1795 (eval $ac_compiler -V </dev/null >&5) 2>&5
1797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1798 (exit $ac_status); }
1800 cat >conftest.$ac_ext <<_ACEOF
1803 cat confdefs.h >>conftest.$ac_ext
1804 cat >>conftest.$ac_ext <<_ACEOF
1805 /* end confdefs.h. */
1815 ac_clean_files_save=$ac_clean_files
1816 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1817 # Try to create an executable without -o first, disregard a.out.
1818 # It will help us diagnose broken compilers, and finding out an intuition
1820 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1821 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1822 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1823 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1824 (eval $ac_link_default) 2>&5
1826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1827 (exit $ac_status); }; then
1828 # Find the output, starting from the most likely. This scheme is
1829 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1832 # Be careful to initialize this variable, since it used to be cached.
1833 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1835 # b.out is created by i960 compilers.
1836 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1838 test -f "$ac_file" || continue
1840 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1843 # This is the source file.
1846 # We found the default executable, but exeext='' is most
1850 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1851 # FIXME: I believe we export ac_cv_exeext for Libtool,
1852 # but it would be cool to find out if it's true. Does anybody
1853 # maintain Libtool? --akim.
1861 echo "$as_me: failed program was:" >&5
1862 sed 's/^/| /' conftest.$ac_ext >&5
1864 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1865 See \`config.log' for more details." >&5
1866 echo "$as_me: error: C compiler cannot create executables
1867 See \`config.log' for more details." >&2;}
1868 { (exit 77); exit 77; }; }
1871 ac_exeext=$ac_cv_exeext
1872 echo "$as_me:$LINENO: result: $ac_file" >&5
1873 echo "${ECHO_T}$ac_file" >&6
1875 # Check the compiler produces executables we can run. If not, either
1876 # the compiler is broken, or we cross compile.
1877 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1878 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1879 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1880 # If not cross compiling, check that we can run a simple program.
1881 if test "$cross_compiling" != yes; then
1882 if { ac_try='./$ac_file'
1883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1887 (exit $ac_status); }; }; then
1890 if test "$cross_compiling" = maybe; then
1893 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1894 If you meant to cross compile, use \`--host'.
1895 See \`config.log' for more details." >&5
1896 echo "$as_me: error: cannot run C compiled programs.
1897 If you meant to cross compile, use \`--host'.
1898 See \`config.log' for more details." >&2;}
1899 { (exit 1); exit 1; }; }
1903 echo "$as_me:$LINENO: result: yes" >&5
1904 echo "${ECHO_T}yes" >&6
1906 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1907 ac_clean_files=$ac_clean_files_save
1908 # Check the compiler produces executables we can run. If not, either
1909 # the compiler is broken, or we cross compile.
1910 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1911 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1912 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1913 echo "${ECHO_T}$cross_compiling" >&6
1915 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1916 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1918 (eval $ac_link) 2>&5
1920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1921 (exit $ac_status); }; then
1922 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1923 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1924 # work properly (i.e., refer to `conftest.exe'), while it won't with
1926 for ac_file in conftest.exe conftest conftest.*; do
1927 test -f "$ac_file" || continue
1929 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1930 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1937 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1938 See \`config.log' for more details." >&5
1939 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1940 See \`config.log' for more details." >&2;}
1941 { (exit 1); exit 1; }; }
1944 rm -f conftest$ac_cv_exeext
1945 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1946 echo "${ECHO_T}$ac_cv_exeext" >&6
1948 rm -f conftest.$ac_ext
1949 EXEEXT=$ac_cv_exeext
1951 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1952 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1953 if test "${ac_cv_objext+set}" = set; then
1954 echo $ECHO_N "(cached) $ECHO_C" >&6
1956 cat >conftest.$ac_ext <<_ACEOF
1959 cat confdefs.h >>conftest.$ac_ext
1960 cat >>conftest.$ac_ext <<_ACEOF
1961 /* end confdefs.h. */
1971 rm -f conftest.o conftest.obj
1972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1973 (eval $ac_compile) 2>&5
1975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1976 (exit $ac_status); }; then
1977 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1979 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1980 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1985 echo "$as_me: failed program was:" >&5
1986 sed 's/^/| /' conftest.$ac_ext >&5
1988 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1989 See \`config.log' for more details." >&5
1990 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1991 See \`config.log' for more details." >&2;}
1992 { (exit 1); exit 1; }; }
1995 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1997 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1998 echo "${ECHO_T}$ac_cv_objext" >&6
1999 OBJEXT=$ac_cv_objext
2001 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2002 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2003 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2004 echo $ECHO_N "(cached) $ECHO_C" >&6
2006 cat >conftest.$ac_ext <<_ACEOF
2009 cat confdefs.h >>conftest.$ac_ext
2010 cat >>conftest.$ac_ext <<_ACEOF
2011 /* end confdefs.h. */
2024 rm -f conftest.$ac_objext
2025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2026 (eval $ac_compile) 2>conftest.er1
2028 grep -v '^ *+' conftest.er1 >conftest.err
2030 cat conftest.err >&5
2031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032 (exit $ac_status); } &&
2033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038 (exit $ac_status); }; } &&
2039 { ac_try='test -s conftest.$ac_objext'
2040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2044 (exit $ac_status); }; }; then
2047 echo "$as_me: failed program was:" >&5
2048 sed 's/^/| /' conftest.$ac_ext >&5
2052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2053 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2056 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2057 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2058 GCC=`test $ac_compiler_gnu = yes && echo yes`
2059 ac_test_CFLAGS=${CFLAGS+set}
2060 ac_save_CFLAGS=$CFLAGS
2062 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2063 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2064 if test "${ac_cv_prog_cc_g+set}" = set; then
2065 echo $ECHO_N "(cached) $ECHO_C" >&6
2067 cat >conftest.$ac_ext <<_ACEOF
2070 cat confdefs.h >>conftest.$ac_ext
2071 cat >>conftest.$ac_ext <<_ACEOF
2072 /* end confdefs.h. */
2082 rm -f conftest.$ac_objext
2083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2084 (eval $ac_compile) 2>conftest.er1
2086 grep -v '^ *+' conftest.er1 >conftest.err
2088 cat conftest.err >&5
2089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090 (exit $ac_status); } &&
2091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096 (exit $ac_status); }; } &&
2097 { ac_try='test -s conftest.$ac_objext'
2098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102 (exit $ac_status); }; }; then
2105 echo "$as_me: failed program was:" >&5
2106 sed 's/^/| /' conftest.$ac_ext >&5
2110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2112 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2113 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2114 if test "$ac_test_CFLAGS" = set; then
2115 CFLAGS=$ac_save_CFLAGS
2116 elif test $ac_cv_prog_cc_g = yes; then
2117 if test "$GCC" = yes; then
2123 if test "$GCC" = yes; then
2129 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2130 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2131 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2132 echo $ECHO_N "(cached) $ECHO_C" >&6
2134 ac_cv_prog_cc_stdc=no
2136 cat >conftest.$ac_ext <<_ACEOF
2139 cat confdefs.h >>conftest.$ac_ext
2140 cat >>conftest.$ac_ext <<_ACEOF
2141 /* end confdefs.h. */
2144 #include <sys/types.h>
2145 #include <sys/stat.h>
2146 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2147 struct buf { int x; };
2148 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2149 static char *e (p, i)
2155 static char *f (char * (*g) (char **, int), char **p, ...)
2160 s = g (p, va_arg (v,int));
2165 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2166 function prototypes and stuff, but not '\xHH' hex character constants.
2167 These don't provoke an error unfortunately, instead are silently treated
2168 as 'x'. The following induces an error, until -std1 is added to get
2169 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2170 array size at least. It's necessary to write '\x00'==0 to get something
2171 that's true only with -std1. */
2172 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2174 int test (int i, double x);
2175 struct s1 {int (*f) (int a);};
2176 struct s2 {int (*f) (double a);};
2177 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2183 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2188 # Don't try gcc -ansi; that turns off useful extensions and
2189 # breaks some systems' header files.
2190 # AIX -qlanglvl=ansi
2191 # Ultrix and OSF/1 -std1
2192 # HP-UX 10.20 and later -Ae
2193 # HP-UX older versions -Aa -D_HPUX_SOURCE
2194 # SVR4 -Xc -D__EXTENSIONS__
2195 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2197 CC="$ac_save_CC $ac_arg"
2198 rm -f conftest.$ac_objext
2199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2200 (eval $ac_compile) 2>conftest.er1
2202 grep -v '^ *+' conftest.er1 >conftest.err
2204 cat conftest.err >&5
2205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206 (exit $ac_status); } &&
2207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212 (exit $ac_status); }; } &&
2213 { ac_try='test -s conftest.$ac_objext'
2214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218 (exit $ac_status); }; }; then
2219 ac_cv_prog_cc_stdc=$ac_arg
2222 echo "$as_me: failed program was:" >&5
2223 sed 's/^/| /' conftest.$ac_ext >&5
2226 rm -f conftest.err conftest.$ac_objext
2228 rm -f conftest.$ac_ext conftest.$ac_objext
2233 case "x$ac_cv_prog_cc_stdc" in
2235 echo "$as_me:$LINENO: result: none needed" >&5
2236 echo "${ECHO_T}none needed" >&6 ;;
2238 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2239 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2240 CC="$CC $ac_cv_prog_cc_stdc" ;;
2243 # Some people use a C++ compiler to compile C. Since we use `exit',
2244 # in C++ we need to declare it. In case someone uses the same compiler
2245 # for both compiling C and C++ we need to have the C++ compiler decide
2246 # the declaration of exit, since it's the most demanding environment.
2247 cat >conftest.$ac_ext <<_ACEOF
2252 rm -f conftest.$ac_objext
2253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2254 (eval $ac_compile) 2>conftest.er1
2256 grep -v '^ *+' conftest.er1 >conftest.err
2258 cat conftest.err >&5
2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260 (exit $ac_status); } &&
2261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); }; } &&
2267 { ac_try='test -s conftest.$ac_objext'
2268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); }; }; then
2273 for ac_declaration in \
2275 'extern "C" void std::exit (int) throw (); using std::exit;' \
2276 'extern "C" void std::exit (int); using std::exit;' \
2277 'extern "C" void exit (int) throw ();' \
2278 'extern "C" void exit (int);' \
2281 cat >conftest.$ac_ext <<_ACEOF
2284 cat confdefs.h >>conftest.$ac_ext
2285 cat >>conftest.$ac_ext <<_ACEOF
2286 /* end confdefs.h. */
2297 rm -f conftest.$ac_objext
2298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2299 (eval $ac_compile) 2>conftest.er1
2301 grep -v '^ *+' conftest.er1 >conftest.err
2303 cat conftest.err >&5
2304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305 (exit $ac_status); } &&
2306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311 (exit $ac_status); }; } &&
2312 { ac_try='test -s conftest.$ac_objext'
2313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); }; }; then
2320 echo "$as_me: failed program was:" >&5
2321 sed 's/^/| /' conftest.$ac_ext >&5
2325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2326 cat >conftest.$ac_ext <<_ACEOF
2329 cat confdefs.h >>conftest.$ac_ext
2330 cat >>conftest.$ac_ext <<_ACEOF
2331 /* end confdefs.h. */
2341 rm -f conftest.$ac_objext
2342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2343 (eval $ac_compile) 2>conftest.er1
2345 grep -v '^ *+' conftest.er1 >conftest.err
2347 cat conftest.err >&5
2348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349 (exit $ac_status); } &&
2350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355 (exit $ac_status); }; } &&
2356 { ac_try='test -s conftest.$ac_objext'
2357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 (exit $ac_status); }; }; then
2364 echo "$as_me: failed program was:" >&5
2365 sed 's/^/| /' conftest.$ac_ext >&5
2368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2371 if test -n "$ac_declaration"; then
2372 echo '#ifdef __cplusplus' >>confdefs.h
2373 echo $ac_declaration >>confdefs.h
2374 echo '#endif' >>confdefs.h
2378 echo "$as_me: failed program was:" >&5
2379 sed 's/^/| /' conftest.$ac_ext >&5
2382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2384 ac_cpp='$CPP $CPPFLAGS'
2385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2390 ac_cpp='$CXXCPP $CPPFLAGS'
2391 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2392 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2393 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2394 if test -n "$ac_tool_prefix"; then
2395 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2397 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2398 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2399 echo "$as_me:$LINENO: checking for $ac_word" >&5
2400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2401 if test "${ac_cv_prog_CXX+set}" = set; then
2402 echo $ECHO_N "(cached) $ECHO_C" >&6
2404 if test -n "$CXX"; then
2405 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2411 test -z "$as_dir" && as_dir=.
2412 for ac_exec_ext in '' $ac_executable_extensions; do
2413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2414 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2424 if test -n "$CXX"; then
2425 echo "$as_me:$LINENO: result: $CXX" >&5
2426 echo "${ECHO_T}$CXX" >&6
2428 echo "$as_me:$LINENO: result: no" >&5
2429 echo "${ECHO_T}no" >&6
2432 test -n "$CXX" && break
2435 if test -z "$CXX"; then
2437 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2439 # Extract the first word of "$ac_prog", so it can be a program name with args.
2440 set dummy $ac_prog; ac_word=$2
2441 echo "$as_me:$LINENO: checking for $ac_word" >&5
2442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2443 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2444 echo $ECHO_N "(cached) $ECHO_C" >&6
2446 if test -n "$ac_ct_CXX"; then
2447 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453 test -z "$as_dir" && as_dir=.
2454 for ac_exec_ext in '' $ac_executable_extensions; do
2455 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2456 ac_cv_prog_ac_ct_CXX="$ac_prog"
2457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2465 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2466 if test -n "$ac_ct_CXX"; then
2467 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2468 echo "${ECHO_T}$ac_ct_CXX" >&6
2470 echo "$as_me:$LINENO: result: no" >&5
2471 echo "${ECHO_T}no" >&6
2474 test -n "$ac_ct_CXX" && break
2476 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2482 # Provide some information about the compiler.
2483 echo "$as_me:$LINENO:" \
2484 "checking for C++ compiler version" >&5
2485 ac_compiler=`set X $ac_compile; echo $2`
2486 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2487 (eval $ac_compiler --version </dev/null >&5) 2>&5
2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); }
2491 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2492 (eval $ac_compiler -v </dev/null >&5) 2>&5
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); }
2496 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2497 (eval $ac_compiler -V </dev/null >&5) 2>&5
2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500 (exit $ac_status); }
2502 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2503 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2504 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2505 echo $ECHO_N "(cached) $ECHO_C" >&6
2507 cat >conftest.$ac_ext <<_ACEOF
2510 cat confdefs.h >>conftest.$ac_ext
2511 cat >>conftest.$ac_ext <<_ACEOF
2512 /* end confdefs.h. */
2525 rm -f conftest.$ac_objext
2526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2527 (eval $ac_compile) 2>conftest.er1
2529 grep -v '^ *+' conftest.er1 >conftest.err
2531 cat conftest.err >&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); } &&
2534 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); }; } &&
2540 { ac_try='test -s conftest.$ac_objext'
2541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545 (exit $ac_status); }; }; then
2548 echo "$as_me: failed program was:" >&5
2549 sed 's/^/| /' conftest.$ac_ext >&5
2553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2554 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2557 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2558 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2559 GXX=`test $ac_compiler_gnu = yes && echo yes`
2560 ac_test_CXXFLAGS=${CXXFLAGS+set}
2561 ac_save_CXXFLAGS=$CXXFLAGS
2563 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2564 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2565 if test "${ac_cv_prog_cxx_g+set}" = set; then
2566 echo $ECHO_N "(cached) $ECHO_C" >&6
2568 cat >conftest.$ac_ext <<_ACEOF
2571 cat confdefs.h >>conftest.$ac_ext
2572 cat >>conftest.$ac_ext <<_ACEOF
2573 /* end confdefs.h. */
2583 rm -f conftest.$ac_objext
2584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2585 (eval $ac_compile) 2>conftest.er1
2587 grep -v '^ *+' conftest.er1 >conftest.err
2589 cat conftest.err >&5
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); } &&
2592 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); }; } &&
2598 { ac_try='test -s conftest.$ac_objext'
2599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603 (exit $ac_status); }; }; then
2604 ac_cv_prog_cxx_g=yes
2606 echo "$as_me: failed program was:" >&5
2607 sed 's/^/| /' conftest.$ac_ext >&5
2611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2613 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2614 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2615 if test "$ac_test_CXXFLAGS" = set; then
2616 CXXFLAGS=$ac_save_CXXFLAGS
2617 elif test $ac_cv_prog_cxx_g = yes; then
2618 if test "$GXX" = yes; then
2624 if test "$GXX" = yes; then
2630 for ac_declaration in \
2632 'extern "C" void std::exit (int) throw (); using std::exit;' \
2633 'extern "C" void std::exit (int); using std::exit;' \
2634 'extern "C" void exit (int) throw ();' \
2635 'extern "C" void exit (int);' \
2638 cat >conftest.$ac_ext <<_ACEOF
2641 cat confdefs.h >>conftest.$ac_ext
2642 cat >>conftest.$ac_ext <<_ACEOF
2643 /* end confdefs.h. */
2654 rm -f conftest.$ac_objext
2655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2656 (eval $ac_compile) 2>conftest.er1
2658 grep -v '^ *+' conftest.er1 >conftest.err
2660 cat conftest.err >&5
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); } &&
2663 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); }; } &&
2669 { ac_try='test -s conftest.$ac_objext'
2670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); }; }; then
2677 echo "$as_me: failed program was:" >&5
2678 sed 's/^/| /' conftest.$ac_ext >&5
2682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2683 cat >conftest.$ac_ext <<_ACEOF
2686 cat confdefs.h >>conftest.$ac_ext
2687 cat >>conftest.$ac_ext <<_ACEOF
2688 /* end confdefs.h. */
2698 rm -f conftest.$ac_objext
2699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2700 (eval $ac_compile) 2>conftest.er1
2702 grep -v '^ *+' conftest.er1 >conftest.err
2704 cat conftest.err >&5
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); } &&
2707 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); }; } &&
2713 { ac_try='test -s conftest.$ac_objext'
2714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); }; }; then
2721 echo "$as_me: failed program was:" >&5
2722 sed 's/^/| /' conftest.$ac_ext >&5
2725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2728 if test -n "$ac_declaration"; then
2729 echo '#ifdef __cplusplus' >>confdefs.h
2730 echo $ac_declaration >>confdefs.h
2731 echo '#endif' >>confdefs.h
2735 ac_cpp='$CPP $CPPFLAGS'
2736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2741 ac_cpp='$CPP $CPPFLAGS'
2742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2745 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2746 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2747 # On Suns, sometimes $CPP names a directory.
2748 if test -n "$CPP" && test -d "$CPP"; then
2751 if test -z "$CPP"; then
2752 if test "${ac_cv_prog_CPP+set}" = set; then
2753 echo $ECHO_N "(cached) $ECHO_C" >&6
2755 # Double quotes because CPP needs to be expanded
2756 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2759 for ac_c_preproc_warn_flag in '' yes
2761 # Use a header file that comes with gcc, so configuring glibc
2762 # with a fresh cross-compiler works.
2763 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2764 # <limits.h> exists even on freestanding compilers.
2765 # On the NeXT, cc -E runs the code through the compiler's parser,
2766 # not just through cpp. "Syntax error" is here to catch this case.
2767 cat >conftest.$ac_ext <<_ACEOF
2770 cat confdefs.h >>conftest.$ac_ext
2771 cat >>conftest.$ac_ext <<_ACEOF
2772 /* end confdefs.h. */
2774 # include <limits.h>
2776 # include <assert.h>
2780 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2781 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2783 grep -v '^ *+' conftest.er1 >conftest.err
2785 cat conftest.err >&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); } >/dev/null; then
2788 if test -s conftest.err; then
2789 ac_cpp_err=$ac_c_preproc_warn_flag
2790 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2797 if test -z "$ac_cpp_err"; then
2800 echo "$as_me: failed program was:" >&5
2801 sed 's/^/| /' conftest.$ac_ext >&5
2803 # Broken: fails on valid input.
2806 rm -f conftest.err conftest.$ac_ext
2808 # OK, works on sane cases. Now check whether non-existent headers
2809 # can be detected and how.
2810 cat >conftest.$ac_ext <<_ACEOF
2813 cat confdefs.h >>conftest.$ac_ext
2814 cat >>conftest.$ac_ext <<_ACEOF
2815 /* end confdefs.h. */
2816 #include <ac_nonexistent.h>
2818 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2819 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2821 grep -v '^ *+' conftest.er1 >conftest.err
2823 cat conftest.err >&5
2824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825 (exit $ac_status); } >/dev/null; then
2826 if test -s conftest.err; then
2827 ac_cpp_err=$ac_c_preproc_warn_flag
2828 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2835 if test -z "$ac_cpp_err"; then
2836 # Broken: success on invalid input.
2839 echo "$as_me: failed program was:" >&5
2840 sed 's/^/| /' conftest.$ac_ext >&5
2842 # Passes both tests.
2846 rm -f conftest.err conftest.$ac_ext
2849 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2850 rm -f conftest.err conftest.$ac_ext
2851 if $ac_preproc_ok; then
2863 echo "$as_me:$LINENO: result: $CPP" >&5
2864 echo "${ECHO_T}$CPP" >&6
2866 for ac_c_preproc_warn_flag in '' yes
2868 # Use a header file that comes with gcc, so configuring glibc
2869 # with a fresh cross-compiler works.
2870 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2871 # <limits.h> exists even on freestanding compilers.
2872 # On the NeXT, cc -E runs the code through the compiler's parser,
2873 # not just through cpp. "Syntax error" is here to catch this case.
2874 cat >conftest.$ac_ext <<_ACEOF
2877 cat confdefs.h >>conftest.$ac_ext
2878 cat >>conftest.$ac_ext <<_ACEOF
2879 /* end confdefs.h. */
2881 # include <limits.h>
2883 # include <assert.h>
2887 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2888 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2890 grep -v '^ *+' conftest.er1 >conftest.err
2892 cat conftest.err >&5
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); } >/dev/null; then
2895 if test -s conftest.err; then
2896 ac_cpp_err=$ac_c_preproc_warn_flag
2897 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2904 if test -z "$ac_cpp_err"; then
2907 echo "$as_me: failed program was:" >&5
2908 sed 's/^/| /' conftest.$ac_ext >&5
2910 # Broken: fails on valid input.
2913 rm -f conftest.err conftest.$ac_ext
2915 # OK, works on sane cases. Now check whether non-existent headers
2916 # can be detected and how.
2917 cat >conftest.$ac_ext <<_ACEOF
2920 cat confdefs.h >>conftest.$ac_ext
2921 cat >>conftest.$ac_ext <<_ACEOF
2922 /* end confdefs.h. */
2923 #include <ac_nonexistent.h>
2925 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2926 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2928 grep -v '^ *+' conftest.er1 >conftest.err
2930 cat conftest.err >&5
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); } >/dev/null; then
2933 if test -s conftest.err; then
2934 ac_cpp_err=$ac_c_preproc_warn_flag
2935 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2942 if test -z "$ac_cpp_err"; then
2943 # Broken: success on invalid input.
2946 echo "$as_me: failed program was:" >&5
2947 sed 's/^/| /' conftest.$ac_ext >&5
2949 # Passes both tests.
2953 rm -f conftest.err conftest.$ac_ext
2956 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2957 rm -f conftest.err conftest.$ac_ext
2958 if $ac_preproc_ok; then
2961 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2962 See \`config.log' for more details." >&5
2963 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2964 See \`config.log' for more details." >&2;}
2965 { (exit 1); exit 1; }; }
2969 ac_cpp='$CPP $CPPFLAGS'
2970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2974 # Find a good install program. We prefer a C program (faster),
2975 # so one script is as good as another. But avoid the broken or
2976 # incompatible versions:
2977 # SysV /etc/install, /usr/sbin/install
2978 # SunOS /usr/etc/install
2979 # IRIX /sbin/install
2981 # AmigaOS /C/install, which installs bootblocks on floppy discs
2982 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2983 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2984 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2985 # OS/2's system install, which has a completely different semantic
2986 # ./install, which can be erroneously created by make from ./install.sh.
2987 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2988 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2989 if test -z "$INSTALL"; then
2990 if test "${ac_cv_path_install+set}" = set; then
2991 echo $ECHO_N "(cached) $ECHO_C" >&6
2993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997 test -z "$as_dir" && as_dir=.
2998 # Account for people who put trailing slashes in PATH elements.
3000 ./ | .// | /cC/* | \
3001 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3002 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3005 # OSF1 and SCO ODT 3.0 have their own names for install.
3006 # Don't use installbsd from OSF since it installs stuff as root
3008 for ac_prog in ginstall scoinst install; do
3009 for ac_exec_ext in '' $ac_executable_extensions; do
3010 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3011 if test $ac_prog = install &&
3012 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3013 # AIX install. It has an incompatible calling convention.
3015 elif test $ac_prog = install &&
3016 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3017 # program-specific install script used by HP pwplus--don't use.
3020 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3032 if test "${ac_cv_path_install+set}" = set; then
3033 INSTALL=$ac_cv_path_install
3035 # As a last resort, use the slow shell script. We don't cache a
3036 # path for INSTALL within a source directory, because that will
3037 # break other packages using the cache if that directory is
3038 # removed, or if the path is relative.
3039 INSTALL=$ac_install_sh
3042 echo "$as_me:$LINENO: result: $INSTALL" >&5
3043 echo "${ECHO_T}$INSTALL" >&6
3045 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3046 # It thinks the first close brace ends the variable substitution.
3047 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3049 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3051 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3053 for ac_prog in gawk mawk nawk awk
3055 # Extract the first word of "$ac_prog", so it can be a program name with args.
3056 set dummy $ac_prog; ac_word=$2
3057 echo "$as_me:$LINENO: checking for $ac_word" >&5
3058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3059 if test "${ac_cv_prog_AWK+set}" = set; then
3060 echo $ECHO_N "(cached) $ECHO_C" >&6
3062 if test -n "$AWK"; then
3063 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3069 test -z "$as_dir" && as_dir=.
3070 for ac_exec_ext in '' $ac_executable_extensions; do
3071 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3072 ac_cv_prog_AWK="$ac_prog"
3073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3082 if test -n "$AWK"; then
3083 echo "$as_me:$LINENO: result: $AWK" >&5
3084 echo "${ECHO_T}$AWK" >&6
3086 echo "$as_me:$LINENO: result: no" >&5
3087 echo "${ECHO_T}no" >&6
3090 test -n "$AWK" && break
3095 ac_cpp='$CPP $CPPFLAGS'
3096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3101 if test -z "$orig_CXXFLAGS"; then
3103 if test x$GCC = xyes && test "x$GXX" = xyes; then
3110 if test x$GCC = xyes && test x$GXX = xyes; then
3112 echo "$as_me:$LINENO: checking for main in -lsupc++" >&5
3113 echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6
3114 if test "${ac_cv_lib_supcpp_main+set}" = set; then
3115 echo $ECHO_N "(cached) $ECHO_C" >&6
3117 ac_check_lib_save_LIBS=$LIBS
3118 LIBS="-lsupc++ $LIBS"
3119 cat >conftest.$ac_ext <<_ACEOF
3122 cat confdefs.h >>conftest.$ac_ext
3123 cat >>conftest.$ac_ext <<_ACEOF
3124 /* end confdefs.h. */
3135 rm -f conftest.$ac_objext conftest$ac_exeext
3136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3137 (eval $ac_link) 2>conftest.er1
3139 grep -v '^ *+' conftest.er1 >conftest.err
3141 cat conftest.err >&5
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); } &&
3144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); }; } &&
3150 { ac_try='test -s conftest$ac_exeext'
3151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); }; }; then
3156 ac_cv_lib_supcpp_main=yes
3158 echo "$as_me: failed program was:" >&5
3159 sed 's/^/| /' conftest.$ac_ext >&5
3161 ac_cv_lib_supcpp_main=no
3163 rm -f conftest.err conftest.$ac_objext \
3164 conftest$ac_exeext conftest.$ac_ext
3165 LIBS=$ac_check_lib_save_LIBS
3167 echo "$as_me:$LINENO: result: $ac_cv_lib_supcpp_main" >&5
3168 echo "${ECHO_T}$ac_cv_lib_supcpp_main" >&6
3169 if test $ac_cv_lib_supcpp_main = yes; then
3172 LIBS="$LIBS -lsupc++"
3181 cat >>confdefs.h <<\_ACEOF
3182 #define _GNU_SOURCE 1
3189 cat >>confdefs.h <<\_ACEOF
3190 #define _XOPEN_SOURCE_EXTENDED 1
3194 cat >>confdefs.h <<\_ACEOF
3195 #define _XOPEN_SOURCE 2
3199 cat >>confdefs.h <<\_ACEOF
3200 #define __EXTENSIONS__ 1
3208 ac_cpp='$CXXCPP $CPPFLAGS'
3209 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3210 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3211 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3216 ac_cpp='$CXXCPP $CPPFLAGS'
3217 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3218 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3219 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3220 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3221 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3222 if test -z "$CXXCPP"; then
3223 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3224 echo $ECHO_N "(cached) $ECHO_C" >&6
3226 # Double quotes because CXXCPP needs to be expanded
3227 for CXXCPP in "$CXX -E" "/lib/cpp"
3230 for ac_cxx_preproc_warn_flag in '' yes
3232 # Use a header file that comes with gcc, so configuring glibc
3233 # with a fresh cross-compiler works.
3234 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3235 # <limits.h> exists even on freestanding compilers.
3236 # On the NeXT, cc -E runs the code through the compiler's parser,
3237 # not just through cpp. "Syntax error" is here to catch this case.
3238 cat >conftest.$ac_ext <<_ACEOF
3241 cat confdefs.h >>conftest.$ac_ext
3242 cat >>conftest.$ac_ext <<_ACEOF
3243 /* end confdefs.h. */
3245 # include <limits.h>
3247 # include <assert.h>
3251 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3252 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3254 grep -v '^ *+' conftest.er1 >conftest.err
3256 cat conftest.err >&5
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); } >/dev/null; then
3259 if test -s conftest.err; then
3260 ac_cpp_err=$ac_cxx_preproc_warn_flag
3261 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3268 if test -z "$ac_cpp_err"; then
3271 echo "$as_me: failed program was:" >&5
3272 sed 's/^/| /' conftest.$ac_ext >&5
3274 # Broken: fails on valid input.
3277 rm -f conftest.err conftest.$ac_ext
3279 # OK, works on sane cases. Now check whether non-existent headers
3280 # can be detected and how.
3281 cat >conftest.$ac_ext <<_ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h. */
3287 #include <ac_nonexistent.h>
3289 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3290 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3292 grep -v '^ *+' conftest.er1 >conftest.err
3294 cat conftest.err >&5
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); } >/dev/null; then
3297 if test -s conftest.err; then
3298 ac_cpp_err=$ac_cxx_preproc_warn_flag
3299 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3306 if test -z "$ac_cpp_err"; then
3307 # Broken: success on invalid input.
3310 echo "$as_me: failed program was:" >&5
3311 sed 's/^/| /' conftest.$ac_ext >&5
3313 # Passes both tests.
3317 rm -f conftest.err conftest.$ac_ext
3320 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3321 rm -f conftest.err conftest.$ac_ext
3322 if $ac_preproc_ok; then
3327 ac_cv_prog_CXXCPP=$CXXCPP
3330 CXXCPP=$ac_cv_prog_CXXCPP
3332 ac_cv_prog_CXXCPP=$CXXCPP
3334 echo "$as_me:$LINENO: result: $CXXCPP" >&5
3335 echo "${ECHO_T}$CXXCPP" >&6
3337 for ac_cxx_preproc_warn_flag in '' yes
3339 # Use a header file that comes with gcc, so configuring glibc
3340 # with a fresh cross-compiler works.
3341 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3342 # <limits.h> exists even on freestanding compilers.
3343 # On the NeXT, cc -E runs the code through the compiler's parser,
3344 # not just through cpp. "Syntax error" is here to catch this case.
3345 cat >conftest.$ac_ext <<_ACEOF
3348 cat confdefs.h >>conftest.$ac_ext
3349 cat >>conftest.$ac_ext <<_ACEOF
3350 /* end confdefs.h. */
3352 # include <limits.h>
3354 # include <assert.h>
3358 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3361 grep -v '^ *+' conftest.er1 >conftest.err
3363 cat conftest.err >&5
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); } >/dev/null; then
3366 if test -s conftest.err; then
3367 ac_cpp_err=$ac_cxx_preproc_warn_flag
3368 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3375 if test -z "$ac_cpp_err"; then
3378 echo "$as_me: failed program was:" >&5
3379 sed 's/^/| /' conftest.$ac_ext >&5
3381 # Broken: fails on valid input.
3384 rm -f conftest.err conftest.$ac_ext
3386 # OK, works on sane cases. Now check whether non-existent headers
3387 # can be detected and how.
3388 cat >conftest.$ac_ext <<_ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h. */
3394 #include <ac_nonexistent.h>
3396 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3397 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3399 grep -v '^ *+' conftest.er1 >conftest.err
3401 cat conftest.err >&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); } >/dev/null; then
3404 if test -s conftest.err; then
3405 ac_cpp_err=$ac_cxx_preproc_warn_flag
3406 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3413 if test -z "$ac_cpp_err"; then
3414 # Broken: success on invalid input.
3417 echo "$as_me: failed program was:" >&5
3418 sed 's/^/| /' conftest.$ac_ext >&5
3420 # Passes both tests.
3424 rm -f conftest.err conftest.$ac_ext
3427 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3428 rm -f conftest.err conftest.$ac_ext
3429 if $ac_preproc_ok; then
3432 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3433 See \`config.log' for more details." >&5
3434 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3435 See \`config.log' for more details." >&2;}
3436 { (exit 1); exit 1; }; }
3440 ac_cpp='$CXXCPP $CPPFLAGS'
3441 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3442 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3443 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3446 echo "$as_me:$LINENO: checking for egrep" >&5
3447 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3448 if test "${ac_cv_prog_egrep+set}" = set; then
3449 echo $ECHO_N "(cached) $ECHO_C" >&6
3451 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3452 then ac_cv_prog_egrep='grep -E'
3453 else ac_cv_prog_egrep='egrep'
3456 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3457 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3458 EGREP=$ac_cv_prog_egrep
3462 echo "$as_me:$LINENO: checking for AIX" >&5
3463 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3464 cat >conftest.$ac_ext <<_ACEOF
3467 cat confdefs.h >>conftest.$ac_ext
3468 cat >>conftest.$ac_ext <<_ACEOF
3469 /* end confdefs.h. */
3475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3476 $EGREP "yes" >/dev/null 2>&1; then
3477 echo "$as_me:$LINENO: result: yes" >&5
3478 echo "${ECHO_T}yes" >&6
3479 cat >>confdefs.h <<\_ACEOF
3480 #define _ALL_SOURCE 1
3484 echo "$as_me:$LINENO: result: no" >&5
3485 echo "${ECHO_T}no" >&6
3490 echo "$as_me:$LINENO: checking for library containing strerror" >&5
3491 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
3492 if test "${ac_cv_search_strerror+set}" = set; then
3493 echo $ECHO_N "(cached) $ECHO_C" >&6
3495 ac_func_search_save_LIBS=$LIBS
3496 ac_cv_search_strerror=no
3497 cat >conftest.$ac_ext <<_ACEOF
3500 cat confdefs.h >>conftest.$ac_ext
3501 cat >>conftest.$ac_ext <<_ACEOF
3502 /* end confdefs.h. */
3504 /* Override any gcc2 internal prototype to avoid an error. */
3508 /* We use char because int might match the return type of a gcc2
3509 builtin and then its argument prototype would still apply. */
3519 rm -f conftest.$ac_objext conftest$ac_exeext
3520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3521 (eval $ac_link) 2>conftest.er1
3523 grep -v '^ *+' conftest.er1 >conftest.err
3525 cat conftest.err >&5
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); } &&
3528 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); }; } &&
3534 { ac_try='test -s conftest$ac_exeext'
3535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539 (exit $ac_status); }; }; then
3540 ac_cv_search_strerror="none required"
3542 echo "$as_me: failed program was:" >&5
3543 sed 's/^/| /' conftest.$ac_ext >&5
3546 rm -f conftest.err conftest.$ac_objext \
3547 conftest$ac_exeext conftest.$ac_ext
3548 if test "$ac_cv_search_strerror" = no; then
3549 for ac_lib in cposix; do
3550 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3551 cat >conftest.$ac_ext <<_ACEOF
3554 cat confdefs.h >>conftest.$ac_ext
3555 cat >>conftest.$ac_ext <<_ACEOF
3556 /* end confdefs.h. */
3558 /* Override any gcc2 internal prototype to avoid an error. */
3562 /* We use char because int might match the return type of a gcc2
3563 builtin and then its argument prototype would still apply. */
3573 rm -f conftest.$ac_objext conftest$ac_exeext
3574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3575 (eval $ac_link) 2>conftest.er1
3577 grep -v '^ *+' conftest.er1 >conftest.err
3579 cat conftest.err >&5
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); } &&
3582 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); }; } &&
3588 { ac_try='test -s conftest$ac_exeext'
3589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593 (exit $ac_status); }; }; then
3594 ac_cv_search_strerror="-l$ac_lib"
3597 echo "$as_me: failed program was:" >&5
3598 sed 's/^/| /' conftest.$ac_ext >&5
3601 rm -f conftest.err conftest.$ac_objext \
3602 conftest$ac_exeext conftest.$ac_ext
3605 LIBS=$ac_func_search_save_LIBS
3607 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3608 echo "${ECHO_T}$ac_cv_search_strerror" >&6
3609 if test "$ac_cv_search_strerror" != no; then
3610 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3615 echo "$as_me:$LINENO: checking for setlocale" >&5
3616 echo $ECHO_N "checking for setlocale... $ECHO_C" >&6
3617 if test "${ac_cv_func_setlocale+set}" = set; then
3618 echo $ECHO_N "(cached) $ECHO_C" >&6
3620 cat >conftest.$ac_ext <<_ACEOF
3623 cat confdefs.h >>conftest.$ac_ext
3624 cat >>conftest.$ac_ext <<_ACEOF
3625 /* end confdefs.h. */
3626 /* Define setlocale to an innocuous variant, in case <limits.h> declares setlocale.
3627 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3628 #define setlocale innocuous_setlocale
3630 /* System header to define __stub macros and hopefully few prototypes,
3631 which can conflict with char setlocale (); below.
3632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3633 <limits.h> exists even on freestanding compilers. */
3636 # include <limits.h>
3638 # include <assert.h>
3643 /* Override any gcc2 internal prototype to avoid an error. */
3648 /* We use char because int might match the return type of a gcc2
3649 builtin and then its argument prototype would still apply. */
3651 /* The GNU C library defines this for functions which it implements
3652 to always fail with ENOSYS. Some functions are actually named
3653 something starting with __ and the normal name is an alias. */
3654 #if defined (__stub_setlocale) || defined (__stub___setlocale)
3657 char (*f) () = setlocale;
3666 return f != setlocale;
3671 rm -f conftest.$ac_objext conftest$ac_exeext
3672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3673 (eval $ac_link) 2>conftest.er1
3675 grep -v '^ *+' conftest.er1 >conftest.err
3677 cat conftest.err >&5
3678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679 (exit $ac_status); } &&
3680 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685 (exit $ac_status); }; } &&
3686 { ac_try='test -s conftest$ac_exeext'
3687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691 (exit $ac_status); }; }; then
3692 ac_cv_func_setlocale=yes
3694 echo "$as_me: failed program was:" >&5
3695 sed 's/^/| /' conftest.$ac_ext >&5
3697 ac_cv_func_setlocale=no
3699 rm -f conftest.err conftest.$ac_objext \
3700 conftest$ac_exeext conftest.$ac_ext
3702 echo "$as_me:$LINENO: result: $ac_cv_func_setlocale" >&5
3703 echo "${ECHO_T}$ac_cv_func_setlocale" >&6
3704 if test $ac_cv_func_setlocale = yes; then
3707 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
3708 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
3709 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
3710 echo $ECHO_N "(cached) $ECHO_C" >&6
3712 ac_check_lib_save_LIBS=$LIBS
3714 cat >conftest.$ac_ext <<_ACEOF
3717 cat confdefs.h >>conftest.$ac_ext
3718 cat >>conftest.$ac_ext <<_ACEOF
3719 /* end confdefs.h. */
3721 /* Override any gcc2 internal prototype to avoid an error. */
3725 /* We use char because int might match the return type of a gcc2
3726 builtin and then its argument prototype would still apply. */
3736 rm -f conftest.$ac_objext conftest$ac_exeext
3737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3738 (eval $ac_link) 2>conftest.er1
3740 grep -v '^ *+' conftest.er1 >conftest.err
3742 cat conftest.err >&5
3743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744 (exit $ac_status); } &&
3745 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); }; } &&
3751 { ac_try='test -s conftest$ac_exeext'
3752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756 (exit $ac_status); }; }; then
3757 ac_cv_lib_xpg4_setlocale=yes
3759 echo "$as_me: failed program was:" >&5
3760 sed 's/^/| /' conftest.$ac_ext >&5
3762 ac_cv_lib_xpg4_setlocale=no
3764 rm -f conftest.err conftest.$ac_objext \
3765 conftest$ac_exeext conftest.$ac_ext
3766 LIBS=$ac_check_lib_save_LIBS
3768 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
3769 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
3770 if test $ac_cv_lib_xpg4_setlocale = yes; then
3777 echo "$as_me:$LINENO: checking for gethostbyname" >&5
3778 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3779 if test "${ac_cv_func_gethostbyname+set}" = set; then
3780 echo $ECHO_N "(cached) $ECHO_C" >&6
3782 cat >conftest.$ac_ext <<_ACEOF
3785 cat confdefs.h >>conftest.$ac_ext
3786 cat >>conftest.$ac_ext <<_ACEOF
3787 /* end confdefs.h. */
3788 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3789 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3790 #define gethostbyname innocuous_gethostbyname
3792 /* System header to define __stub macros and hopefully few prototypes,
3793 which can conflict with char gethostbyname (); below.
3794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3795 <limits.h> exists even on freestanding compilers. */
3798 # include <limits.h>
3800 # include <assert.h>
3803 #undef gethostbyname
3805 /* Override any gcc2 internal prototype to avoid an error. */
3810 /* We use char because int might match the return type of a gcc2
3811 builtin and then its argument prototype would still apply. */
3812 char gethostbyname ();
3813 /* The GNU C library defines this for functions which it implements
3814 to always fail with ENOSYS. Some functions are actually named
3815 something starting with __ and the normal name is an alias. */
3816 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3819 char (*f) () = gethostbyname;
3828 return f != gethostbyname;
3833 rm -f conftest.$ac_objext conftest$ac_exeext
3834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3835 (eval $ac_link) 2>conftest.er1
3837 grep -v '^ *+' conftest.er1 >conftest.err
3839 cat conftest.err >&5
3840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841 (exit $ac_status); } &&
3842 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847 (exit $ac_status); }; } &&
3848 { ac_try='test -s conftest$ac_exeext'
3849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); }; }; then
3854 ac_cv_func_gethostbyname=yes
3856 echo "$as_me: failed program was:" >&5
3857 sed 's/^/| /' conftest.$ac_ext >&5
3859 ac_cv_func_gethostbyname=no
3861 rm -f conftest.err conftest.$ac_objext \
3862 conftest$ac_exeext conftest.$ac_ext
3864 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3865 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3866 if test $ac_cv_func_gethostbyname = yes; then
3869 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3870 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3871 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3872 echo $ECHO_N "(cached) $ECHO_C" >&6
3874 ac_check_lib_save_LIBS=$LIBS
3876 cat >conftest.$ac_ext <<_ACEOF
3879 cat confdefs.h >>conftest.$ac_ext
3880 cat >>conftest.$ac_ext <<_ACEOF
3881 /* end confdefs.h. */
3883 /* Override any gcc2 internal prototype to avoid an error. */
3887 /* We use char because int might match the return type of a gcc2
3888 builtin and then its argument prototype would still apply. */
3889 char gethostbyname ();
3898 rm -f conftest.$ac_objext conftest$ac_exeext
3899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3900 (eval $ac_link) 2>conftest.er1
3902 grep -v '^ *+' conftest.er1 >conftest.err
3904 cat conftest.err >&5
3905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906 (exit $ac_status); } &&
3907 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); }; } &&
3913 { ac_try='test -s conftest$ac_exeext'
3914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918 (exit $ac_status); }; }; then
3919 ac_cv_lib_nsl_gethostbyname=yes
3921 echo "$as_me: failed program was:" >&5
3922 sed 's/^/| /' conftest.$ac_ext >&5
3924 ac_cv_lib_nsl_gethostbyname=no
3926 rm -f conftest.err conftest.$ac_objext \
3927 conftest$ac_exeext conftest.$ac_ext
3928 LIBS=$ac_check_lib_save_LIBS
3930 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3931 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3932 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3938 echo "$as_me:$LINENO: checking for socket" >&5
3939 echo $ECHO_N "checking for socket... $ECHO_C" >&6
3940 if test "${ac_cv_func_socket+set}" = set; then
3941 echo $ECHO_N "(cached) $ECHO_C" >&6
3943 cat >conftest.$ac_ext <<_ACEOF
3946 cat confdefs.h >>conftest.$ac_ext
3947 cat >>conftest.$ac_ext <<_ACEOF
3948 /* end confdefs.h. */
3949 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
3950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3951 #define socket innocuous_socket
3953 /* System header to define __stub macros and hopefully few prototypes,
3954 which can conflict with char socket (); below.
3955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3956 <limits.h> exists even on freestanding compilers. */
3959 # include <limits.h>
3961 # include <assert.h>
3966 /* Override any gcc2 internal prototype to avoid an error. */
3971 /* We use char because int might match the return type of a gcc2
3972 builtin and then its argument prototype would still apply. */
3974 /* The GNU C library defines this for functions which it implements
3975 to always fail with ENOSYS. Some functions are actually named
3976 something starting with __ and the normal name is an alias. */
3977 #if defined (__stub_socket) || defined (__stub___socket)
3980 char (*f) () = socket;
3994 rm -f conftest.$ac_objext conftest$ac_exeext
3995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3996 (eval $ac_link) 2>conftest.er1
3998 grep -v '^ *+' conftest.er1 >conftest.err
4000 cat conftest.err >&5
4001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002 (exit $ac_status); } &&
4003 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); }; } &&
4009 { ac_try='test -s conftest$ac_exeext'
4010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); }; }; then
4015 ac_cv_func_socket=yes
4017 echo "$as_me: failed program was:" >&5
4018 sed 's/^/| /' conftest.$ac_ext >&5
4020 ac_cv_func_socket=no
4022 rm -f conftest.err conftest.$ac_objext \
4023 conftest$ac_exeext conftest.$ac_ext
4025 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
4026 echo "${ECHO_T}$ac_cv_func_socket" >&6
4027 if test $ac_cv_func_socket = yes; then
4030 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4031 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4032 if test "${ac_cv_lib_socket_socket+set}" = set; then
4033 echo $ECHO_N "(cached) $ECHO_C" >&6
4035 ac_check_lib_save_LIBS=$LIBS
4036 LIBS="-lsocket $LIBS"
4037 cat >conftest.$ac_ext <<_ACEOF
4040 cat confdefs.h >>conftest.$ac_ext
4041 cat >>conftest.$ac_ext <<_ACEOF
4042 /* end confdefs.h. */
4044 /* Override any gcc2 internal prototype to avoid an error. */
4048 /* We use char because int might match the return type of a gcc2
4049 builtin and then its argument prototype would still apply. */
4059 rm -f conftest.$ac_objext conftest$ac_exeext
4060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4061 (eval $ac_link) 2>conftest.er1
4063 grep -v '^ *+' conftest.er1 >conftest.err
4065 cat conftest.err >&5
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); } &&
4068 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); }; } &&
4074 { ac_try='test -s conftest$ac_exeext'
4075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); }; }; then
4080 ac_cv_lib_socket_socket=yes
4082 echo "$as_me: failed program was:" >&5
4083 sed 's/^/| /' conftest.$ac_ext >&5
4085 ac_cv_lib_socket_socket=no
4087 rm -f conftest.err conftest.$ac_objext \
4088 conftest$ac_exeext conftest.$ac_ext
4089 LIBS=$ac_check_lib_save_LIBS
4091 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4092 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4093 if test $ac_cv_lib_socket_socket = yes; then
4094 LIBS="$LIBS -lsocket"
4100 echo "$as_me:$LINENO: checking for sched_yield" >&5
4101 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
4102 if test "${ac_cv_func_sched_yield+set}" = set; then
4103 echo $ECHO_N "(cached) $ECHO_C" >&6
4105 cat >conftest.$ac_ext <<_ACEOF
4108 cat confdefs.h >>conftest.$ac_ext
4109 cat >>conftest.$ac_ext <<_ACEOF
4110 /* end confdefs.h. */
4111 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
4112 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4113 #define sched_yield innocuous_sched_yield
4115 /* System header to define __stub macros and hopefully few prototypes,
4116 which can conflict with char sched_yield (); below.
4117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4118 <limits.h> exists even on freestanding compilers. */
4121 # include <limits.h>
4123 # include <assert.h>
4128 /* Override any gcc2 internal prototype to avoid an error. */
4133 /* We use char because int might match the return type of a gcc2
4134 builtin and then its argument prototype would still apply. */
4135 char sched_yield ();
4136 /* The GNU C library defines this for functions which it implements
4137 to always fail with ENOSYS. Some functions are actually named
4138 something starting with __ and the normal name is an alias. */
4139 #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
4142 char (*f) () = sched_yield;
4151 return f != sched_yield;
4156 rm -f conftest.$ac_objext conftest$ac_exeext
4157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4158 (eval $ac_link) 2>conftest.er1
4160 grep -v '^ *+' conftest.er1 >conftest.err
4162 cat conftest.err >&5
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); } &&
4165 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); }; } &&
4171 { ac_try='test -s conftest$ac_exeext'
4172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); }; }; then
4177 ac_cv_func_sched_yield=yes
4179 echo "$as_me: failed program was:" >&5
4180 sed 's/^/| /' conftest.$ac_ext >&5
4182 ac_cv_func_sched_yield=no
4184 rm -f conftest.err conftest.$ac_objext \
4185 conftest$ac_exeext conftest.$ac_ext
4187 echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
4188 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
4189 if test $ac_cv_func_sched_yield = yes; then
4192 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
4193 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
4194 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
4195 echo $ECHO_N "(cached) $ECHO_C" >&6
4197 ac_check_lib_save_LIBS=$LIBS
4199 cat >conftest.$ac_ext <<_ACEOF
4202 cat confdefs.h >>conftest.$ac_ext
4203 cat >>conftest.$ac_ext <<_ACEOF
4204 /* end confdefs.h. */
4206 /* Override any gcc2 internal prototype to avoid an error. */
4210 /* We use char because int might match the return type of a gcc2
4211 builtin and then its argument prototype would still apply. */
4212 char sched_yield ();
4221 rm -f conftest.$ac_objext conftest$ac_exeext
4222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4223 (eval $ac_link) 2>conftest.er1
4225 grep -v '^ *+' conftest.er1 >conftest.err
4227 cat conftest.err >&5
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); } &&
4230 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); }; } &&
4236 { ac_try='test -s conftest$ac_exeext'
4237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); }; }; then
4242 ac_cv_lib_rt_sched_yield=yes
4244 echo "$as_me: failed program was:" >&5
4245 sed 's/^/| /' conftest.$ac_ext >&5
4247 ac_cv_lib_rt_sched_yield=no
4249 rm -f conftest.err conftest.$ac_objext \
4250 conftest$ac_exeext conftest.$ac_ext
4251 LIBS=$ac_check_lib_save_LIBS
4253 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
4254 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
4255 if test $ac_cv_lib_rt_sched_yield = yes; then
4262 echo "$as_me:$LINENO: checking for sched_yield support" >&5
4263 echo $ECHO_N "checking for sched_yield support... $ECHO_C" >&6
4264 cat >conftest.$ac_ext <<_ACEOF
4267 cat confdefs.h >>conftest.$ac_ext
4268 cat >>conftest.$ac_ext <<_ACEOF
4269 /* end confdefs.h. */
4279 rm -f conftest.$ac_objext conftest$ac_exeext
4280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4281 (eval $ac_link) 2>conftest.er1
4283 grep -v '^ *+' conftest.er1 >conftest.err
4285 cat conftest.err >&5
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); } &&
4288 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); }; } &&
4294 { ac_try='test -s conftest$ac_exeext'
4295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); }; }; then
4300 echo "$as_me:$LINENO: result: yes" >&5
4301 echo "${ECHO_T}yes" >&6
4303 cat >>confdefs.h <<\_ACEOF
4304 #define HAVE_SCHED_YIELD 1
4308 echo "$as_me: failed program was:" >&5
4309 sed 's/^/| /' conftest.$ac_ext >&5
4311 echo "$as_me:$LINENO: result: no" >&5
4312 echo "${ECHO_T}no" >&6
4314 rm -f conftest.err conftest.$ac_objext \
4315 conftest$ac_exeext conftest.$ac_ext
4321 support_inheritpixmap=yes
4324 support_keepscrolling=yes
4325 support_selectionscrolling=yes
4326 support_mousewheel=yes
4327 support_mouseslipwheel=yes
4331 support_text_blink=yes
4332 support_pointer_blank=yes
4333 support_scroll_rxvt=yes
4334 support_scroll_next=yes
4335 support_scroll_xterm=yes
4336 support_scroll_plain=yes
4341 support_combining=yes
4342 support_8bitctrls=no
4343 support_iso14755=yes
4349 if test "x$enable_shared" = xyes; then
4351 cat >>confdefs.h <<\_ACEOF
4359 # Check whether --enable-everything or --disable-everything was given.
4360 if test "${enable_everything+set}" = set; then
4361 enableval="$enable_everything"
4363 if test x$enableval = xno; then
4366 support_inheritpixmap=no
4369 support_keepscrolling=no
4370 support_selectionscrolling=no
4372 support_mousewheel=no
4373 support_mouseslipwheel=no
4374 support_text_blink=no
4375 support_pointer_blank=no
4376 support_scroll_rxvt=no
4377 support_scroll_next=no
4378 support_scroll_xterm=no
4379 support_scroll_plain=no
4386 support_combining=no
4387 support_8bitctrls=no
4393 if test x$enableval = xyes; then
4396 support_inheritpixmap=yes
4399 support_keepscrolling=yes
4400 support_selectionscrolling=yes
4402 support_mousewheel=yes
4403 support_mouseslipwheel=yes
4404 support_text_blink=yes
4405 support_pointer_blank=yes
4406 support_scroll_rxvt=yes
4407 support_scroll_next=yes
4408 support_scroll_xterm=yes
4409 support_scroll_plain=yes
4415 support_unicode3=yes
4416 support_combining=yes
4417 #support_8bitctrls=yes
4418 support_iso14755=yes
4426 # Check whether --enable-unicode3 or --disable-unicode3 was given.
4427 if test "${enable_unicode3+set}" = set; then
4428 enableval="$enable_unicode3"
4429 if test x$enableval = xyes -o x$enableval = xno; then
4430 support_unicode3=$enableval
4434 # Check whether --enable-combining or --disable-combining was given.
4435 if test "${enable_combining+set}" = set; then
4436 enableval="$enable_combining"
4437 if test x$enableval = xyes -o x$enableval = xno; then
4438 support_combining=$enableval
4442 # Check whether --enable-xft or --disable-xft was given.
4443 if test "${enable_xft+set}" = set; then
4444 enableval="$enable_xft"
4445 if test x$enableval = xyes -o x$enableval = xno; then
4446 support_xft=$enableval
4450 # Check whether --enable-font-styles or --disable-font-styles was given.
4451 if test "${enable_font_styles+set}" = set; then
4452 enableval="$enable_font_styles"
4453 if test x$enableval = xyes -o x$enableval = xno; then
4454 support_styles=$enableval
4458 # Check whether --enable-utmp or --disable-utmp was given.
4459 if test "${enable_utmp+set}" = set; then
4460 enableval="$enable_utmp"
4461 if test x$enableval = xyes -o x$enableval = xno; then
4462 support_utmp=$enableval
4466 # Check whether --enable-wtmp or --disable-wtmp was given.
4467 if test "${enable_wtmp+set}" = set; then
4468 enableval="$enable_wtmp"
4469 if test x$enableval = xyes -o x$enableval = xno; then
4470 support_wtmp=$enableval
4474 # Check whether --enable-lastlog or --disable-lastlog was given.
4475 if test "${enable_lastlog+set}" = set; then
4476 enableval="$enable_lastlog"
4477 if test x$enableval = xyes -o x$enableval = xno; then
4478 support_lastlog=$enableval
4482 # Check whether --enable-xpm-background or --disable-xpm-background was given.
4483 if test "${enable_xpm_background+set}" = set; then
4484 enableval="$enable_xpm_background"
4485 if test x$enableval = xyes -o x$enableval = xno; then
4486 support_xpm=$enableval
4490 # Check whether --enable-transparency or --disable-transparency was given.
4491 if test "${enable_transparency+set}" = set; then
4492 enableval="$enable_transparency"
4493 if test x$enableval = xyes -o x$enableval = xno; then
4494 support_inheritpixmap=$enableval
4498 # Check whether --enable-tinting or --disable-tinting was given.
4499 if test "${enable_tinting+set}" = set; then
4500 enableval="$enable_tinting"
4501 if test x$enableval = xyes -o x$enableval = xno; then
4502 support_tinting=$enableval
4506 # Check whether --enable-fading or --disable-fading was given.
4507 if test "${enable_fading+set}" = set; then
4508 enableval="$enable_fading"
4509 if test x$enableval = xyes -o x$enableval = xno; then
4510 support_fading=$enableval
4514 # Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given.
4515 if test "${enable_rxvt_scroll+set}" = set; then
4516 enableval="$enable_rxvt_scroll"
4517 if test x$enableval = xyes -o x$enableval = xno; then
4518 support_scroll_rxvt=$enableval
4522 # Check whether --enable-next-scroll or --disable-next-scroll was given.
4523 if test "${enable_next_scroll+set}" = set; then
4524 enableval="$enable_next_scroll"
4525 if test x$enableval = xyes -o x$enableval = xno; then
4526 support_scroll_next=$enableval
4530 # Check whether --enable-xterm-scroll or --disable-xterm-scroll was given.
4531 if test "${enable_xterm_scroll+set}" = set; then
4532 enableval="$enable_xterm_scroll"
4533 if test x$enableval = xyes -o x$enableval = xno; then
4534 support_scroll_xterm=$enableval
4538 # Check whether --enable-perl or --disable-perl was given.
4539 if test "${enable_perl+set}" = set; then
4540 enableval="$enable_perl"
4541 if test x$enableval = xyes -o x$enableval = xno; then
4542 support_perl=$enableval
4546 # Check whether --enable-plain-scroll or --disable-plain-scroll was given.
4547 if test "${enable_plain_scroll+set}" = set; then
4548 enableval="$enable_plain_scroll"
4549 if test x$enableval = xyes -o x$enableval = xno; then
4550 support_scroll_plain=$enableval
4554 # Check whether --enable-half-shadow or --disable-half-shadow was given.
4555 if test "${enable_half_shadow+set}" = set; then
4556 enableval="$enable_half_shadow"
4557 if test x$enableval = xyes; then
4559 cat >>confdefs.h <<\_ACEOF
4560 #define HALFSHADOW 1
4567 # Check whether --with-codesets or --without-codesets was given.
4568 if test "${with_codesets+set}" = set; then
4569 withval="$with_codesets"
4573 # Check whether --enable-xim or --disable-xim was given.
4574 if test "${enable_xim+set}" = set; then
4575 enableval="$enable_xim"
4576 if test x$enableval = xyes -o x$enableval = xno; then
4577 support_xim=$enableval
4581 # Check whether --enable-ttygid or --disable-ttygid was given.
4582 if test "${enable_ttygid+set}" = set; then
4583 enableval="$enable_ttygid"
4584 if test x$enableval = xyes; then
4586 cat >>confdefs.h <<\_ACEOF
4587 #define TTY_GID_SUPPORT 1
4593 # Check whether --enable-backspace-key or --disable-backspace-key was given.
4594 if test "${enable_backspace_key+set}" = set; then
4595 enableval="$enable_backspace_key"
4596 if test x$enableval = xno; then
4598 cat >>confdefs.h <<\_ACEOF
4599 #define NO_BACKSPACE_KEY 1
4605 # Check whether --enable-delete-key or --disable-delete-key was given.
4606 if test "${enable_delete_key+set}" = set; then
4607 enableval="$enable_delete_key"
4608 if test x$enableval = xno; then
4610 cat >>confdefs.h <<\_ACEOF
4611 #define NO_DELETE_KEY 1
4617 # Check whether --enable-resources or --disable-resources was given.
4618 if test "${enable_resources+set}" = set; then
4619 enableval="$enable_resources"
4620 if test x$enableval = xno; then
4622 cat >>confdefs.h <<\_ACEOF
4623 #define NO_RESOURCES 1
4629 # Check whether --enable-8bitctrls or --disable-8bitctrls was given.
4630 if test "${enable_8bitctrls+set}" = set; then
4631 enableval="$enable_8bitctrls"
4632 if test x$enableval = xyes -o x$enableval = xno; then
4633 support_8bitctrls=$enableval
4638 # Check whether --enable-fallback or --disable-fallback was given.
4639 if test "${enable_fallback+set}" = set; then
4640 enableval="$enable_fallback"
4642 test x$enableval = xyes && enableval=Rxvt
4643 test x$enableval = xno && enableval=
4644 RESFALLBACK="$enableval"
4648 if test x$RESFALLBACK != x; then
4650 cat >>confdefs.h <<_ACEOF
4651 #define RESFALLBACK "$RESFALLBACK"
4658 # Check whether --with-res-name or --without-res-name was given.
4659 if test "${with_res_name+set}" = set; then
4660 withval="$with_res_name"
4664 cat >>confdefs.h <<_ACEOF
4665 #define RESNAME "$RESNAME"
4671 # Check whether --with-res-class or --without-res-class was given.
4672 if test "${with_res_class+set}" = set; then
4673 withval="$with_res_class"
4677 cat >>confdefs.h <<_ACEOF
4678 #define RESCLASS "$RESCLASS"
4684 # Check whether --with-name or --without-name was given.
4685 if test "${with_name+set}" = set; then
4686 withval="$with_name"
4690 cat >>confdefs.h <<_ACEOF
4691 #define RXVTNAME "$RXVTNAME"
4695 RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
4698 # Check whether --enable-swapscreen or --disable-swapscreen was given.
4699 if test "${enable_swapscreen+set}" = set; then
4700 enableval="$enable_swapscreen"
4701 if test x$enableval = xno; then
4703 cat >>confdefs.h <<\_ACEOF
4704 #define NO_SECONDARY_SCREEN 1
4710 # Check whether --enable-iso14755 or --disable-iso14755 was given.
4711 if test "${enable_iso14755+set}" = set; then
4712 enableval="$enable_iso14755"
4713 if test x$enableval = xyes -o x$enableval = xno; then
4714 support_iso14755=$enableval
4718 # Check whether --enable-frills or --disable-frills was given.
4719 if test "${enable_frills+set}" = set; then
4720 enableval="$enable_frills"
4721 if test x$enableval = xyes -o x$enableval = xno; then
4722 support_frills=$enableval
4726 # Check whether --enable-24bit or --disable-24bit was given.
4727 if test "${enable_24bit+set}" = set; then
4728 enableval="$enable_24bit"
4729 if test x$enableval = xyes -o x$enableval = xno; then
4730 support_24bit=$enableval
4734 # Check whether --enable-keepscrolling or --disable-keepscrolling was given.
4735 if test "${enable_keepscrolling+set}" = set; then
4736 enableval="$enable_keepscrolling"
4737 if test x$enableval = xyes -o x$enableval = xno; then
4738 support_keepscrolling=$enableval
4742 # Check whether --enable-selectionscrolling or --disable-selectionscrolling was given.
4743 if test "${enable_selectionscrolling+set}" = set; then
4744 enableval="$enable_selectionscrolling"
4745 if test x$enableval = xyes -o x$enableval = xno; then
4746 support_selectionscrolling=$enableval
4750 # Check whether --enable-mousewheel or --disable-mousewheel was given.
4751 if test "${enable_mousewheel+set}" = set; then
4752 enableval="$enable_mousewheel"
4753 if test x$enableval = xyes -o x$enableval = xno; then
4754 support_mousewheel=$enableval
4758 # Check whether --enable-slipwheeling or --disable-slipwheeling was given.
4759 if test "${enable_slipwheeling+set}" = set; then
4760 enableval="$enable_slipwheeling"
4761 if test x$enableval = xyes -o x$enableval = xno; then
4762 support_mouseslipwheel=$enableval
4766 # Check whether --enable-dmalloc or --disable-dmalloc was given.
4767 if test "${enable_dmalloc+set}" = set; then
4768 enableval="$enable_dmalloc"
4769 if test x$enableval = xyes; then
4771 DEBUG=-DDEBUG_MALLOC
4772 DLIB="-L/usr/local/lib -ldmalloc"
4773 DINCLUDE=-I/usr/local/include
4777 # Check whether --enable-dlmalloc or --disable-dlmalloc was given.
4778 if test "${enable_dlmalloc+set}" = set; then
4779 enableval="$enable_dlmalloc"
4780 if test x$enableval = xyes; then
4783 DLIB="-L/usr/local/lib -ldlmalloc"
4788 # Check whether --enable-smart-resize or --disable-smart-resize was given.
4789 if test "${enable_smart_resize+set}" = set; then
4790 enableval="$enable_smart_resize"
4791 if test x$enableval = xyes; then
4793 cat >>confdefs.h <<\_ACEOF
4794 #define SMART_RESIZE 1
4800 # Check whether --enable-text-blink or --disable-text-blink was given.
4801 if test "${enable_text_blink+set}" = set; then
4802 enableval="$enable_text_blink"
4803 if test x$enableval = xyes -o x$enableval = xno; then
4804 support_text_blink=$enableval
4808 # Check whether --enable-pointer-blank or --disable-pointer-blank was given.
4809 if test "${enable_pointer_blank+set}" = set; then
4810 enableval="$enable_pointer_blank"
4811 if test x$enableval = xyes -o x$enableval = xno; then
4812 support_pointer_blank=$enableval
4817 # Check whether --with-term or --without-term was given.
4818 if test "${with_term+set}" = set; then
4819 withval="$with_term"
4820 if test x$withval != x; then
4822 cat >>confdefs.h <<_ACEOF
4823 #define TERMENV "$withval"
4830 # Check whether --with-terminfo or --without-terminfo was given.
4831 if test "${with_terminfo+set}" = set; then
4832 withval="$with_terminfo"
4833 if test x$withval != x; then
4835 cat >>confdefs.h <<_ACEOF
4836 #define RXVT_TERMINFO "$withval"
4844 cat >>confdefs.h <<\_ACEOF
4845 #define PROTOTYPES 1
4849 # Extract the first word of "mv", so it can be a program name with args.
4850 set dummy mv; ac_word=$2
4851 echo "$as_me:$LINENO: checking for $ac_word" >&5
4852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4853 if test "${ac_cv_path_MV+set}" = set; then
4854 echo $ECHO_N "(cached) $ECHO_C" >&6
4858 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865 test -z "$as_dir" && as_dir=.
4866 for ac_exec_ext in '' $ac_executable_extensions; do
4867 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4868 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4875 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4881 if test -n "$MV"; then
4882 echo "$as_me:$LINENO: result: $MV" >&5
4883 echo "${ECHO_T}$MV" >&6
4885 echo "$as_me:$LINENO: result: no" >&5
4886 echo "${ECHO_T}no" >&6
4889 # Extract the first word of "rm", so it can be a program name with args.
4890 set dummy rm; ac_word=$2
4891 echo "$as_me:$LINENO: checking for $ac_word" >&5
4892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4893 if test "${ac_cv_path_RM+set}" = set; then
4894 echo $ECHO_N "(cached) $ECHO_C" >&6
4898 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905 test -z "$as_dir" && as_dir=.
4906 for ac_exec_ext in '' $ac_executable_extensions; do
4907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4908 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4915 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4921 if test -n "$RM"; then
4922 echo "$as_me:$LINENO: result: $RM" >&5
4923 echo "${ECHO_T}$RM" >&6
4925 echo "$as_me:$LINENO: result: no" >&5
4926 echo "${ECHO_T}no" >&6
4929 # Extract the first word of "cp", so it can be a program name with args.
4930 set dummy cp; ac_word=$2
4931 echo "$as_me:$LINENO: checking for $ac_word" >&5
4932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4933 if test "${ac_cv_path_CP+set}" = set; then
4934 echo $ECHO_N "(cached) $ECHO_C" >&6
4938 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4945 test -z "$as_dir" && as_dir=.
4946 for ac_exec_ext in '' $ac_executable_extensions; do
4947 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4948 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4955 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4961 if test -n "$CP"; then
4962 echo "$as_me:$LINENO: result: $CP" >&5
4963 echo "${ECHO_T}$CP" >&6
4965 echo "$as_me:$LINENO: result: no" >&5
4966 echo "${ECHO_T}no" >&6
4969 # Extract the first word of "ln", so it can be a program name with args.
4970 set dummy ln; ac_word=$2
4971 echo "$as_me:$LINENO: checking for $ac_word" >&5
4972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4973 if test "${ac_cv_path_LN+set}" = set; then
4974 echo $ECHO_N "(cached) $ECHO_C" >&6
4978 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4985 test -z "$as_dir" && as_dir=.
4986 for ac_exec_ext in '' $ac_executable_extensions; do
4987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4988 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4995 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
5001 if test -n "$LN"; then
5002 echo "$as_me:$LINENO: result: $LN" >&5
5003 echo "${ECHO_T}$LN" >&6
5005 echo "$as_me:$LINENO: result: no" >&5
5006 echo "${ECHO_T}no" >&6
5009 # Extract the first word of "sed", so it can be a program name with args.
5010 set dummy sed; ac_word=$2
5011 echo "$as_me:$LINENO: checking for $ac_word" >&5
5012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5013 if test "${ac_cv_path_SED+set}" = set; then
5014 echo $ECHO_N "(cached) $ECHO_C" >&6
5018 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5025 test -z "$as_dir" && as_dir=.
5026 for ac_exec_ext in '' $ac_executable_extensions; do
5027 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5028 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5035 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5041 if test -n "$SED"; then
5042 echo "$as_me:$LINENO: result: $SED" >&5
5043 echo "${ECHO_T}$SED" >&6
5045 echo "$as_me:$LINENO: result: no" >&5
5046 echo "${ECHO_T}no" >&6
5049 # Extract the first word of "echo", so it can be a program name with args.
5050 set dummy echo; ac_word=$2
5051 echo "$as_me:$LINENO: checking for $ac_word" >&5
5052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5053 if test "${ac_cv_path_ECHO+set}" = set; then
5054 echo $ECHO_N "(cached) $ECHO_C" >&6
5058 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065 test -z "$as_dir" && as_dir=.
5066 for ac_exec_ext in '' $ac_executable_extensions; do
5067 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5068 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5075 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5079 ECHO=$ac_cv_path_ECHO
5081 if test -n "$ECHO"; then
5082 echo "$as_me:$LINENO: result: $ECHO" >&5
5083 echo "${ECHO_T}$ECHO" >&6
5085 echo "$as_me:$LINENO: result: no" >&5
5086 echo "${ECHO_T}no" >&6
5089 # Extract the first word of "cmp", so it can be a program name with args.
5090 set dummy cmp; ac_word=$2
5091 echo "$as_me:$LINENO: checking for $ac_word" >&5
5092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5093 if test "${ac_cv_path_CMP+set}" = set; then
5094 echo $ECHO_N "(cached) $ECHO_C" >&6
5098 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105 test -z "$as_dir" && as_dir=.
5106 for ac_exec_ext in '' $ac_executable_extensions; do
5107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5108 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5115 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5121 if test -n "$CMP"; then
5122 echo "$as_me:$LINENO: result: $CMP" >&5
5123 echo "${ECHO_T}$CMP" >&6
5125 echo "$as_me:$LINENO: result: no" >&5
5126 echo "${ECHO_T}no" >&6
5129 # Extract the first word of "tbl", so it can be a program name with args.
5130 set dummy tbl; ac_word=$2
5131 echo "$as_me:$LINENO: checking for $ac_word" >&5
5132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5133 if test "${ac_cv_path_TBL+set}" = set; then
5134 echo $ECHO_N "(cached) $ECHO_C" >&6
5138 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5145 test -z "$as_dir" && as_dir=.
5146 for ac_exec_ext in '' $ac_executable_extensions; do
5147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5148 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5160 if test -n "$TBL"; then
5161 echo "$as_me:$LINENO: result: $TBL" >&5
5162 echo "${ECHO_T}$TBL" >&6
5164 echo "$as_me:$LINENO: result: no" >&5
5165 echo "${ECHO_T}no" >&6
5168 # Extract the first word of "tic", so it can be a program name with args.
5169 set dummy tic; ac_word=$2
5170 echo "$as_me:$LINENO: checking for $ac_word" >&5
5171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5172 if test "${ac_cv_path_TIC+set}" = set; then
5173 echo $ECHO_N "(cached) $ECHO_C" >&6
5177 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
5180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5184 test -z "$as_dir" && as_dir=.
5185 for ac_exec_ext in '' $ac_executable_extensions; do
5186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5187 ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext"
5188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5199 if test -n "$TIC"; then
5200 echo "$as_me:$LINENO: result: $TIC" >&5
5201 echo "${ECHO_T}$TIC" >&6
5203 echo "$as_me:$LINENO: result: no" >&5
5204 echo "${ECHO_T}no" >&6
5211 if test "x$ac_path_x_has_been_run" != xyes; then
5212 echo "$as_me:$LINENO: checking for X" >&5
5213 echo $ECHO_N "checking for X... $ECHO_C" >&6
5215 ac_path_x_has_been_run=yes
5217 # Check whether --with-x or --without-x was given.
5218 if test "${with_x+set}" = set; then
5222 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5223 if test "x$with_x" = xno; then
5224 # The user explicitly disabled X.
5227 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5228 # Both variables are already set.
5231 if test "${ac_cv_have_x+set}" = set; then
5232 echo $ECHO_N "(cached) $ECHO_C" >&6
5234 # One or both of the vars are not set, and there is no cached value.
5235 ac_x_includes=no ac_x_libraries=no
5237 if mkdir conftest.dir; then
5239 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5240 cat >Imakefile <<'_ACEOF'
5242 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5244 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5245 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5246 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5247 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5248 for ac_extension in a so sl; do
5249 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5250 test -f $ac_im_libdir/libX11.$ac_extension; then
5251 ac_im_usrlibdir=$ac_im_libdir; break
5254 # Screen out bogus values from the imake configuration. They are
5255 # bogus both because they are the default anyway, and because
5256 # using them would break gcc on systems where it needs fixed includes.
5257 case $ac_im_incroot in
5259 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5261 case $ac_im_usrlibdir in
5263 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5270 # Standard set of common directories for X headers.
5271 # Check X11 before X11Rn because it is often a symlink to the current release.
5283 /usr/local/X11/include
5284 /usr/local/X11R6/include
5285 /usr/local/X11R5/include
5286 /usr/local/X11R4/include
5288 /usr/local/include/X11
5289 /usr/local/include/X11R6
5290 /usr/local/include/X11R5
5291 /usr/local/include/X11R4
5295 /usr/XFree86/include/X11
5299 /usr/unsupported/include
5301 /usr/local/x11r5/include
5302 /usr/lpp/Xamples/include
5304 /usr/openwin/include
5305 /usr/openwin/share/include'
5307 if test "$ac_x_includes" = no; then
5308 # Guess where to find include files, by looking for a specified header file.
5309 # First, try using that file with no special directory specified.
5310 cat >conftest.$ac_ext <<_ACEOF
5313 cat confdefs.h >>conftest.$ac_ext
5314 cat >>conftest.$ac_ext <<_ACEOF
5315 /* end confdefs.h. */
5316 #include <X11/Xlib.h>
5318 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5319 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5321 grep -v '^ *+' conftest.er1 >conftest.err
5323 cat conftest.err >&5
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); } >/dev/null; then
5326 if test -s conftest.err; then
5327 ac_cpp_err=$ac_cxx_preproc_warn_flag
5328 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5335 if test -z "$ac_cpp_err"; then
5336 # We can compile using X headers with no special include directory.
5339 echo "$as_me: failed program was:" >&5
5340 sed 's/^/| /' conftest.$ac_ext >&5
5342 for ac_dir in $ac_x_header_dirs; do
5343 if test -r "$ac_dir/X11/Xlib.h"; then
5344 ac_x_includes=$ac_dir
5349 rm -f conftest.err conftest.$ac_ext
5350 fi # $ac_x_includes = no
5352 if test "$ac_x_libraries" = no; then
5353 # Check for the libraries.
5354 # See if we find them without any special options.
5355 # Don't add to $LIBS permanently.
5358 cat >conftest.$ac_ext <<_ACEOF
5361 cat confdefs.h >>conftest.$ac_ext
5362 cat >>conftest.$ac_ext <<_ACEOF
5363 /* end confdefs.h. */
5364 #include <X11/Xlib.h>
5373 rm -f conftest.$ac_objext conftest$ac_exeext
5374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5375 (eval $ac_link) 2>conftest.er1
5377 grep -v '^ *+' conftest.er1 >conftest.err
5379 cat conftest.err >&5
5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381 (exit $ac_status); } &&
5382 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); }; } &&
5388 { ac_try='test -s conftest$ac_exeext'
5389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393 (exit $ac_status); }; }; then
5395 # We can link X programs with no special library path.
5398 echo "$as_me: failed program was:" >&5
5399 sed 's/^/| /' conftest.$ac_ext >&5
5402 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5404 # Don't even attempt the hair of trying to link an X program!
5405 for ac_extension in a so sl; do
5406 if test -r $ac_dir/libX11.$ac_extension; then
5407 ac_x_libraries=$ac_dir
5413 rm -f conftest.err conftest.$ac_objext \
5414 conftest$ac_exeext conftest.$ac_ext
5415 fi # $ac_x_libraries = no
5417 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
5418 # Didn't find X anywhere. Cache the known absence of X.
5419 ac_cv_have_x="have_x=no"
5421 # Record where we found X for the cache.
5422 ac_cv_have_x="have_x=yes \
5423 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5428 eval "$ac_cv_have_x"
5431 if test "$have_x" != yes; then
5432 echo "$as_me:$LINENO: result: $have_x" >&5
5433 echo "${ECHO_T}$have_x" >&6
5436 # If each of the values was on the command line, it overrides each guess.
5437 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5438 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5439 # Update the cache value to reflect the command line values.
5440 ac_cv_have_x="have_x=yes \
5441 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5442 # It might be that x_includes is empty (headers are found in the
5443 # standard search path. Then output the corresponding message
5444 ac_out_x_includes=$x_includes
5445 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
5446 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
5447 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
5451 if test "$no_x" = yes; then
5452 # Not all programs may use this symbol, but it does not hurt to define it.
5454 cat >>confdefs.h <<\_ACEOF
5455 #define X_DISPLAY_MISSING 1
5458 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5460 if test -n "$x_includes"; then
5461 X_CFLAGS="$X_CFLAGS -I$x_includes"
5464 # It would also be nice to do this for all -L options, not just this one.
5465 if test -n "$x_libraries"; then
5466 X_LIBS="$X_LIBS -L$x_libraries"
5467 # For Solaris; some versions of Sun CC require a space after -R and
5468 # others require no space. Words are not sufficient . . . .
5469 case `(uname -sr) 2>/dev/null` in
5471 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5472 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
5473 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5474 cat >conftest.$ac_ext <<_ACEOF
5477 cat confdefs.h >>conftest.$ac_ext
5478 cat >>conftest.$ac_ext <<_ACEOF
5479 /* end confdefs.h. */
5489 rm -f conftest.$ac_objext conftest$ac_exeext
5490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5491 (eval $ac_link) 2>conftest.er1
5493 grep -v '^ *+' conftest.er1 >conftest.err
5495 cat conftest.err >&5
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); } &&
5498 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503 (exit $ac_status); }; } &&
5504 { ac_try='test -s conftest$ac_exeext'
5505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); }; }; then
5512 echo "$as_me: failed program was:" >&5
5513 sed 's/^/| /' conftest.$ac_ext >&5
5517 rm -f conftest.err conftest.$ac_objext \
5518 conftest$ac_exeext conftest.$ac_ext
5519 if test $ac_R_nospace = yes; then
5520 echo "$as_me:$LINENO: result: no" >&5
5521 echo "${ECHO_T}no" >&6
5522 X_LIBS="$X_LIBS -R$x_libraries"
5524 LIBS="$ac_xsave_LIBS -R $x_libraries"
5525 cat >conftest.$ac_ext <<_ACEOF
5528 cat confdefs.h >>conftest.$ac_ext
5529 cat >>conftest.$ac_ext <<_ACEOF
5530 /* end confdefs.h. */
5540 rm -f conftest.$ac_objext conftest$ac_exeext
5541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5542 (eval $ac_link) 2>conftest.er1
5544 grep -v '^ *+' conftest.er1 >conftest.err
5546 cat conftest.err >&5
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); } &&
5549 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); }; } &&
5555 { ac_try='test -s conftest$ac_exeext'
5556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); }; }; then
5563 echo "$as_me: failed program was:" >&5
5564 sed 's/^/| /' conftest.$ac_ext >&5
5568 rm -f conftest.err conftest.$ac_objext \
5569 conftest$ac_exeext conftest.$ac_ext
5570 if test $ac_R_space = yes; then
5571 echo "$as_me:$LINENO: result: yes" >&5
5572 echo "${ECHO_T}yes" >&6
5573 X_LIBS="$X_LIBS -R $x_libraries"
5575 echo "$as_me:$LINENO: result: neither works" >&5
5576 echo "${ECHO_T}neither works" >&6
5583 # Check for system-dependent libraries X programs must link with.
5584 # Do this before checking for the system-independent R6 libraries
5585 # (-lICE), since we may need -lsocket or whatever for X linking.
5587 if test "$ISC" = yes; then
5588 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5590 # Martyn Johnson says this is needed for Ultrix, if the X
5591 # libraries were built with DECnet support. And Karl Berry says
5592 # the Alpha needs dnet_stub (dnet does not exist).
5593 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5594 cat >conftest.$ac_ext <<_ACEOF
5597 cat confdefs.h >>conftest.$ac_ext
5598 cat >>conftest.$ac_ext <<_ACEOF
5599 /* end confdefs.h. */
5601 /* Override any gcc2 internal prototype to avoid an error. */
5605 /* We use char because int might match the return type of a gcc2
5606 builtin and then its argument prototype would still apply. */
5607 char XOpenDisplay ();
5616 rm -f conftest.$ac_objext conftest$ac_exeext
5617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5618 (eval $ac_link) 2>conftest.er1
5620 grep -v '^ *+' conftest.er1 >conftest.err
5622 cat conftest.err >&5
5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); } &&
5625 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); }; } &&
5631 { ac_try='test -s conftest$ac_exeext'
5632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 (exit $ac_status); }; }; then
5639 echo "$as_me: failed program was:" >&5
5640 sed 's/^/| /' conftest.$ac_ext >&5
5642 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5643 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5644 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5645 echo $ECHO_N "(cached) $ECHO_C" >&6
5647 ac_check_lib_save_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_dnet_dnet_ntoa=yes
5694 echo "$as_me: failed program was:" >&5
5695 sed 's/^/| /' conftest.$ac_ext >&5
5697 ac_cv_lib_dnet_dnet_ntoa=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_dnet_dnet_ntoa" >&5
5704 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5705 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5706 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5709 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5710 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5711 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5712 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5713 echo $ECHO_N "(cached) $ECHO_C" >&6
5715 ac_check_lib_save_LIBS=$LIBS
5716 LIBS="-ldnet_stub $LIBS"
5717 cat >conftest.$ac_ext <<_ACEOF
5720 cat confdefs.h >>conftest.$ac_ext
5721 cat >>conftest.$ac_ext <<_ACEOF
5722 /* end confdefs.h. */
5724 /* Override any gcc2 internal prototype to avoid an error. */
5728 /* We use char because int might match the return type of a gcc2
5729 builtin and then its argument prototype would still apply. */
5739 rm -f conftest.$ac_objext conftest$ac_exeext
5740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5741 (eval $ac_link) 2>conftest.er1
5743 grep -v '^ *+' conftest.er1 >conftest.err
5745 cat conftest.err >&5
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); } &&
5748 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753 (exit $ac_status); }; } &&
5754 { ac_try='test -s conftest$ac_exeext'
5755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); }; }; then
5760 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5762 echo "$as_me: failed program was:" >&5
5763 sed 's/^/| /' conftest.$ac_ext >&5
5765 ac_cv_lib_dnet_stub_dnet_ntoa=no
5767 rm -f conftest.err conftest.$ac_objext \
5768 conftest$ac_exeext conftest.$ac_ext
5769 LIBS=$ac_check_lib_save_LIBS
5771 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5772 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5773 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5774 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5779 rm -f conftest.err conftest.$ac_objext \
5780 conftest$ac_exeext conftest.$ac_ext
5781 LIBS="$ac_xsave_LIBS"
5783 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5784 # to get the SysV transport functions.
5785 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5787 # The nsl library prevents programs from opening the X display
5788 # on Irix 5.2, according to T.E. Dickey.
5789 # The functions gethostbyname, getservbyname, and inet_addr are
5790 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5791 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5792 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5793 if test "${ac_cv_func_gethostbyname+set}" = set; then
5794 echo $ECHO_N "(cached) $ECHO_C" >&6
5796 cat >conftest.$ac_ext <<_ACEOF
5799 cat confdefs.h >>conftest.$ac_ext
5800 cat >>conftest.$ac_ext <<_ACEOF
5801 /* end confdefs.h. */
5802 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5803 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5804 #define gethostbyname innocuous_gethostbyname
5806 /* System header to define __stub macros and hopefully few prototypes,
5807 which can conflict with char gethostbyname (); below.
5808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5809 <limits.h> exists even on freestanding compilers. */
5812 # include <limits.h>
5814 # include <assert.h>
5817 #undef gethostbyname
5819 /* Override any gcc2 internal prototype to avoid an error. */
5824 /* We use char because int might match the return type of a gcc2
5825 builtin and then its argument prototype would still apply. */
5826 char gethostbyname ();
5827 /* The GNU C library defines this for functions which it implements
5828 to always fail with ENOSYS. Some functions are actually named
5829 something starting with __ and the normal name is an alias. */
5830 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5833 char (*f) () = gethostbyname;
5842 return f != gethostbyname;
5847 rm -f conftest.$ac_objext conftest$ac_exeext
5848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5849 (eval $ac_link) 2>conftest.er1
5851 grep -v '^ *+' conftest.er1 >conftest.err
5853 cat conftest.err >&5
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); } &&
5856 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); }; } &&
5862 { ac_try='test -s conftest$ac_exeext'
5863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); }; }; then
5868 ac_cv_func_gethostbyname=yes
5870 echo "$as_me: failed program was:" >&5
5871 sed 's/^/| /' conftest.$ac_ext >&5
5873 ac_cv_func_gethostbyname=no
5875 rm -f conftest.err conftest.$ac_objext \
5876 conftest$ac_exeext conftest.$ac_ext
5878 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5879 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5881 if test $ac_cv_func_gethostbyname = no; then
5882 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5883 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5884 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5885 echo $ECHO_N "(cached) $ECHO_C" >&6
5887 ac_check_lib_save_LIBS=$LIBS
5889 cat >conftest.$ac_ext <<_ACEOF
5892 cat confdefs.h >>conftest.$ac_ext
5893 cat >>conftest.$ac_ext <<_ACEOF
5894 /* end confdefs.h. */
5896 /* Override any gcc2 internal prototype to avoid an error. */
5900 /* We use char because int might match the return type of a gcc2
5901 builtin and then its argument prototype would still apply. */
5902 char gethostbyname ();
5911 rm -f conftest.$ac_objext conftest$ac_exeext
5912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5913 (eval $ac_link) 2>conftest.er1
5915 grep -v '^ *+' conftest.er1 >conftest.err
5917 cat conftest.err >&5
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); } &&
5920 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925 (exit $ac_status); }; } &&
5926 { ac_try='test -s conftest$ac_exeext'
5927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); }; }; then
5932 ac_cv_lib_nsl_gethostbyname=yes
5934 echo "$as_me: failed program was:" >&5
5935 sed 's/^/| /' conftest.$ac_ext >&5
5937 ac_cv_lib_nsl_gethostbyname=no
5939 rm -f conftest.err conftest.$ac_objext \
5940 conftest$ac_exeext conftest.$ac_ext
5941 LIBS=$ac_check_lib_save_LIBS
5943 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5944 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5945 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5946 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5949 if test $ac_cv_lib_nsl_gethostbyname = no; then
5950 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5951 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5952 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5953 echo $ECHO_N "(cached) $ECHO_C" >&6
5955 ac_check_lib_save_LIBS=$LIBS
5957 cat >conftest.$ac_ext <<_ACEOF
5960 cat confdefs.h >>conftest.$ac_ext
5961 cat >>conftest.$ac_ext <<_ACEOF
5962 /* end confdefs.h. */
5964 /* Override any gcc2 internal prototype to avoid an error. */
5968 /* We use char because int might match the return type of a gcc2
5969 builtin and then its argument prototype would still apply. */
5970 char gethostbyname ();
5979 rm -f conftest.$ac_objext conftest$ac_exeext
5980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5981 (eval $ac_link) 2>conftest.er1
5983 grep -v '^ *+' conftest.er1 >conftest.err
5985 cat conftest.err >&5
5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); } &&
5988 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); }; } &&
5994 { ac_try='test -s conftest$ac_exeext'
5995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); }; }; then
6000 ac_cv_lib_bsd_gethostbyname=yes
6002 echo "$as_me: failed program was:" >&5
6003 sed 's/^/| /' conftest.$ac_ext >&5
6005 ac_cv_lib_bsd_gethostbyname=no
6007 rm -f conftest.err conftest.$ac_objext \
6008 conftest$ac_exeext conftest.$ac_ext
6009 LIBS=$ac_check_lib_save_LIBS
6011 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6012 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
6013 if test $ac_cv_lib_bsd_gethostbyname = yes; then
6014 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6020 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6021 # socket/setsockopt and other routines are undefined under SCO ODT
6022 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6023 # on later versions), says Simon Leinen: it contains gethostby*
6024 # variants that don't use the name server (or something). -lsocket
6025 # must be given before -lnsl if both are needed. We assume that
6026 # if connect needs -lnsl, so does gethostbyname.
6027 echo "$as_me:$LINENO: checking for connect" >&5
6028 echo $ECHO_N "checking for connect... $ECHO_C" >&6
6029 if test "${ac_cv_func_connect+set}" = set; then
6030 echo $ECHO_N "(cached) $ECHO_C" >&6
6032 cat >conftest.$ac_ext <<_ACEOF
6035 cat confdefs.h >>conftest.$ac_ext
6036 cat >>conftest.$ac_ext <<_ACEOF
6037 /* end confdefs.h. */
6038 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
6039 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6040 #define connect innocuous_connect
6042 /* System header to define __stub macros and hopefully few prototypes,
6043 which can conflict with char connect (); below.
6044 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6045 <limits.h> exists even on freestanding compilers. */
6048 # include <limits.h>
6050 # include <assert.h>
6055 /* Override any gcc2 internal prototype to avoid an error. */
6060 /* We use char because int might match the return type of a gcc2
6061 builtin and then its argument prototype would still apply. */
6063 /* The GNU C library defines this for functions which it implements
6064 to always fail with ENOSYS. Some functions are actually named
6065 something starting with __ and the normal name is an alias. */
6066 #if defined (__stub_connect) || defined (__stub___connect)
6069 char (*f) () = connect;
6078 return f != connect;
6083 rm -f conftest.$ac_objext conftest$ac_exeext
6084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6085 (eval $ac_link) 2>conftest.er1
6087 grep -v '^ *+' conftest.er1 >conftest.err
6089 cat conftest.err >&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); } &&
6092 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); }; } &&
6098 { ac_try='test -s conftest$ac_exeext'
6099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103 (exit $ac_status); }; }; then
6104 ac_cv_func_connect=yes
6106 echo "$as_me: failed program was:" >&5
6107 sed 's/^/| /' conftest.$ac_ext >&5
6109 ac_cv_func_connect=no
6111 rm -f conftest.err conftest.$ac_objext \
6112 conftest$ac_exeext conftest.$ac_ext
6114 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6115 echo "${ECHO_T}$ac_cv_func_connect" >&6
6117 if test $ac_cv_func_connect = no; then
6118 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6119 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6120 if test "${ac_cv_lib_socket_connect+set}" = set; then
6121 echo $ECHO_N "(cached) $ECHO_C" >&6
6123 ac_check_lib_save_LIBS=$LIBS
6124 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6125 cat >conftest.$ac_ext <<_ACEOF
6128 cat confdefs.h >>conftest.$ac_ext
6129 cat >>conftest.$ac_ext <<_ACEOF
6130 /* end confdefs.h. */
6132 /* Override any gcc2 internal prototype to avoid an error. */
6136 /* We use char because int might match the return type of a gcc2
6137 builtin and then its argument prototype would still apply. */
6147 rm -f conftest.$ac_objext conftest$ac_exeext
6148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6149 (eval $ac_link) 2>conftest.er1
6151 grep -v '^ *+' conftest.er1 >conftest.err
6153 cat conftest.err >&5
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); } &&
6156 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); }; } &&
6162 { ac_try='test -s conftest$ac_exeext'
6163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 (exit $ac_status); }; }; then
6168 ac_cv_lib_socket_connect=yes
6170 echo "$as_me: failed program was:" >&5
6171 sed 's/^/| /' conftest.$ac_ext >&5
6173 ac_cv_lib_socket_connect=no
6175 rm -f conftest.err conftest.$ac_objext \
6176 conftest$ac_exeext conftest.$ac_ext
6177 LIBS=$ac_check_lib_save_LIBS
6179 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6180 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6181 if test $ac_cv_lib_socket_connect = yes; then
6182 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6187 # Guillermo Gomez says -lposix is necessary on A/UX.
6188 echo "$as_me:$LINENO: checking for remove" >&5
6189 echo $ECHO_N "checking for remove... $ECHO_C" >&6
6190 if test "${ac_cv_func_remove+set}" = set; then
6191 echo $ECHO_N "(cached) $ECHO_C" >&6
6193 cat >conftest.$ac_ext <<_ACEOF
6196 cat confdefs.h >>conftest.$ac_ext
6197 cat >>conftest.$ac_ext <<_ACEOF
6198 /* end confdefs.h. */
6199 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
6200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6201 #define remove innocuous_remove
6203 /* System header to define __stub macros and hopefully few prototypes,
6204 which can conflict with char remove (); below.
6205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6206 <limits.h> exists even on freestanding compilers. */
6209 # include <limits.h>
6211 # include <assert.h>
6216 /* Override any gcc2 internal prototype to avoid an error. */
6221 /* We use char because int might match the return type of a gcc2
6222 builtin and then its argument prototype would still apply. */
6224 /* The GNU C library defines this for functions which it implements
6225 to always fail with ENOSYS. Some functions are actually named
6226 something starting with __ and the normal name is an alias. */
6227 #if defined (__stub_remove) || defined (__stub___remove)
6230 char (*f) () = remove;
6244 rm -f conftest.$ac_objext conftest$ac_exeext
6245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6246 (eval $ac_link) 2>conftest.er1
6248 grep -v '^ *+' conftest.er1 >conftest.err
6250 cat conftest.err >&5
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); } &&
6253 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258 (exit $ac_status); }; } &&
6259 { ac_try='test -s conftest$ac_exeext'
6260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); }; }; then
6265 ac_cv_func_remove=yes
6267 echo "$as_me: failed program was:" >&5
6268 sed 's/^/| /' conftest.$ac_ext >&5
6270 ac_cv_func_remove=no
6272 rm -f conftest.err conftest.$ac_objext \
6273 conftest$ac_exeext conftest.$ac_ext
6275 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6276 echo "${ECHO_T}$ac_cv_func_remove" >&6
6278 if test $ac_cv_func_remove = no; then
6279 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6280 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
6281 if test "${ac_cv_lib_posix_remove+set}" = set; then
6282 echo $ECHO_N "(cached) $ECHO_C" >&6
6284 ac_check_lib_save_LIBS=$LIBS
6285 LIBS="-lposix $LIBS"
6286 cat >conftest.$ac_ext <<_ACEOF
6289 cat confdefs.h >>conftest.$ac_ext
6290 cat >>conftest.$ac_ext <<_ACEOF
6291 /* end confdefs.h. */
6293 /* Override any gcc2 internal prototype to avoid an error. */
6297 /* We use char because int might match the return type of a gcc2
6298 builtin and then its argument prototype would still apply. */
6308 rm -f conftest.$ac_objext conftest$ac_exeext
6309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6310 (eval $ac_link) 2>conftest.er1
6312 grep -v '^ *+' conftest.er1 >conftest.err
6314 cat conftest.err >&5
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); } &&
6317 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); }; } &&
6323 { ac_try='test -s conftest$ac_exeext'
6324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); }; }; then
6329 ac_cv_lib_posix_remove=yes
6331 echo "$as_me: failed program was:" >&5
6332 sed 's/^/| /' conftest.$ac_ext >&5
6334 ac_cv_lib_posix_remove=no
6336 rm -f conftest.err conftest.$ac_objext \
6337 conftest$ac_exeext conftest.$ac_ext
6338 LIBS=$ac_check_lib_save_LIBS
6340 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6341 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
6342 if test $ac_cv_lib_posix_remove = yes; then
6343 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6348 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6349 echo "$as_me:$LINENO: checking for shmat" >&5
6350 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
6351 if test "${ac_cv_func_shmat+set}" = set; then
6352 echo $ECHO_N "(cached) $ECHO_C" >&6
6354 cat >conftest.$ac_ext <<_ACEOF
6357 cat confdefs.h >>conftest.$ac_ext
6358 cat >>conftest.$ac_ext <<_ACEOF
6359 /* end confdefs.h. */
6360 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6361 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6362 #define shmat innocuous_shmat
6364 /* System header to define __stub macros and hopefully few prototypes,
6365 which can conflict with char shmat (); below.
6366 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6367 <limits.h> exists even on freestanding compilers. */
6370 # include <limits.h>
6372 # include <assert.h>
6377 /* Override any gcc2 internal prototype to avoid an error. */
6382 /* We use char because int might match the return type of a gcc2
6383 builtin and then its argument prototype would still apply. */
6385 /* The GNU C library defines this for functions which it implements
6386 to always fail with ENOSYS. Some functions are actually named
6387 something starting with __ and the normal name is an alias. */
6388 #if defined (__stub_shmat) || defined (__stub___shmat)
6391 char (*f) () = shmat;
6405 rm -f conftest.$ac_objext conftest$ac_exeext
6406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6407 (eval $ac_link) 2>conftest.er1
6409 grep -v '^ *+' conftest.er1 >conftest.err
6411 cat conftest.err >&5
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); } &&
6414 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); }; } &&
6420 { ac_try='test -s conftest$ac_exeext'
6421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); }; }; then
6426 ac_cv_func_shmat=yes
6428 echo "$as_me: failed program was:" >&5
6429 sed 's/^/| /' conftest.$ac_ext >&5
6433 rm -f conftest.err conftest.$ac_objext \
6434 conftest$ac_exeext conftest.$ac_ext
6436 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6437 echo "${ECHO_T}$ac_cv_func_shmat" >&6
6439 if test $ac_cv_func_shmat = no; then
6440 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6441 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
6442 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6443 echo $ECHO_N "(cached) $ECHO_C" >&6
6445 ac_check_lib_save_LIBS=$LIBS
6447 cat >conftest.$ac_ext <<_ACEOF
6450 cat confdefs.h >>conftest.$ac_ext
6451 cat >>conftest.$ac_ext <<_ACEOF
6452 /* end confdefs.h. */
6454 /* Override any gcc2 internal prototype to avoid an error. */
6458 /* We use char because int might match the return type of a gcc2
6459 builtin and then its argument prototype would still apply. */
6469 rm -f conftest.$ac_objext conftest$ac_exeext
6470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6471 (eval $ac_link) 2>conftest.er1
6473 grep -v '^ *+' conftest.er1 >conftest.err
6475 cat conftest.err >&5
6476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477 (exit $ac_status); } &&
6478 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483 (exit $ac_status); }; } &&
6484 { ac_try='test -s conftest$ac_exeext'
6485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); }; }; then
6490 ac_cv_lib_ipc_shmat=yes
6492 echo "$as_me: failed program was:" >&5
6493 sed 's/^/| /' conftest.$ac_ext >&5
6495 ac_cv_lib_ipc_shmat=no
6497 rm -f conftest.err conftest.$ac_objext \
6498 conftest$ac_exeext conftest.$ac_ext
6499 LIBS=$ac_check_lib_save_LIBS
6501 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6502 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
6503 if test $ac_cv_lib_ipc_shmat = yes; then
6504 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6510 # Check for libraries that X11R6 Xt/Xaw programs need.
6511 ac_save_LDFLAGS=$LDFLAGS
6512 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6513 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6514 # check for ICE first), but we must link in the order -lSM -lICE or
6515 # we get undefined symbols. So assume we have SM if we have ICE.
6516 # These have to be linked with before -lX11, unlike the other
6517 # libraries we check for below, so use a different variable.
6518 # John Interrante, Karl Berry
6519 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6520 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6521 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6522 echo $ECHO_N "(cached) $ECHO_C" >&6
6524 ac_check_lib_save_LIBS=$LIBS
6525 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6526 cat >conftest.$ac_ext <<_ACEOF
6529 cat confdefs.h >>conftest.$ac_ext
6530 cat >>conftest.$ac_ext <<_ACEOF
6531 /* end confdefs.h. */
6533 /* Override any gcc2 internal prototype to avoid an error. */
6537 /* We use char because int might match the return type of a gcc2
6538 builtin and then its argument prototype would still apply. */
6539 char IceConnectionNumber ();
6543 IceConnectionNumber ();
6548 rm -f conftest.$ac_objext conftest$ac_exeext
6549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6550 (eval $ac_link) 2>conftest.er1
6552 grep -v '^ *+' conftest.er1 >conftest.err
6554 cat conftest.err >&5
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); } &&
6557 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); }; } &&
6563 { ac_try='test -s conftest$ac_exeext'
6564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); }; }; then
6569 ac_cv_lib_ICE_IceConnectionNumber=yes
6571 echo "$as_me: failed program was:" >&5
6572 sed 's/^/| /' conftest.$ac_ext >&5
6574 ac_cv_lib_ICE_IceConnectionNumber=no
6576 rm -f conftest.err conftest.$ac_objext \
6577 conftest$ac_exeext conftest.$ac_ext
6578 LIBS=$ac_check_lib_save_LIBS
6580 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6581 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6582 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6583 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6586 LDFLAGS=$ac_save_LDFLAGS
6592 if test x$support_xpm = xyes; then
6596 # Initialize some more variables set by options.
6597 # The variables have the same names as the options, with
6598 # dashes changed to underlines.
6600 # If we find XPM, set shell vars xpm_includes and xpm_libraries to the
6601 # paths, otherwise set no_xpm=yes.
6602 # Uses ac_ vars as temps to allow command line to override cache and checks.
6603 echo "$as_me:$LINENO: checking for libXpm" >&5
6604 echo $ECHO_N "checking for libXpm... $ECHO_C" >&6
6607 # Check whether --with-xpm_includes or --without-xpm_includes was given.
6608 if test "${with_xpm_includes+set}" = set; then
6609 withval="$with_xpm_includes"
6610 xpm_includes="$withval"
6615 # Check whether --with-xpm_library or --without-xpm_library was given.
6616 if test "${with_xpm_library+set}" = set; then
6617 withval="$with_xpm_library"
6618 xpm_libraries="$withval"
6623 # --without-xpm overrides everything else, but does not touch the cache.
6625 # Check whether --with-xpm or --without-xpm was given.
6626 if test "${with_xpm+set}" = set; then
6630 if test "$with_xpm" = no; then
6633 if test "${ac_cv_have_xpm+set}" = set; then
6634 echo $ECHO_N "(cached) $ECHO_C" >&6
6637 vt_xpm_include_X11=no
6638 if test -n "$xpm_includes"; then
6639 vt_xpm_includes=$xpm_includes
6643 if test -n "$xpm_libraries"; then
6644 vt_xpm_libraries=$xpm_libraries
6649 if test "$vt_xpm_includes" = NO; then
6650 # Guess where to find xpm.h
6652 ac_save_CPPFLAGS="$CPPFLAGS"
6653 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6655 # First, try using that file with no special directory specified.
6656 cat >conftest.$ac_ext <<_ACEOF
6659 cat confdefs.h >>conftest.$ac_ext
6660 cat >>conftest.$ac_ext <<_ACEOF
6661 /* end confdefs.h. */
6662 #include <X11/xpm.h>
6664 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6665 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6667 grep -v '^ *+' conftest.er1 >conftest.err
6669 cat conftest.err >&5
6670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671 (exit $ac_status); } >/dev/null; then
6672 if test -s conftest.err; then
6673 ac_cpp_err=$ac_cxx_preproc_warn_flag
6674 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6681 if test -z "$ac_cpp_err"; then
6682 # We can compile using X headers with no special include directory.
6684 vt_xpm_include_X11=yes
6686 echo "$as_me: failed program was:" >&5
6687 sed 's/^/| /' conftest.$ac_ext >&5
6689 CPPFLAGS="$ac_save_CPPFLAGS"
6690 # Look for the header file in a standard set of common directories.
6693 /usr/X11R6/include \
6694 /usr/X11R5/include \
6695 /usr/X11R4/include \
6698 /usr/include/X11R6 \
6699 /usr/include/X11R5 \
6700 /usr/include/X11R4 \
6702 /usr/local/X11/include \
6703 /usr/local/X11R6/include \
6704 /usr/local/X11R5/include \
6705 /usr/local/X11R4/include \
6707 /usr/local/include/X11 \
6708 /usr/local/include/X11R6 \
6709 /usr/local/include/X11R5 \
6710 /usr/local/include/X11R4 \
6714 /usr/XFree86/include/X11 \
6717 /usr/local/include \
6718 /usr/unsupported/include \
6719 /usr/athena/include \
6720 /usr/local/x11r5/include \
6721 /usr/lpp/Xamples/include \
6723 /usr/openwin/include \
6724 /usr/openwin/share/include \
6727 if test -r "$ac_dir/X11/xpm.h"; then
6728 vt_xpm_includes="$ac_dir"
6729 vt_xpm_include_X11=yes
6732 if test -r "$ac_dir/xpm.h"; then
6733 vt_xpm_includes=$ac_dir
6739 rm -f conftest.err conftest.$ac_ext
6742 if test "$vt_xpm_libraries" = NO; then
6743 # Check for the libraries.
6745 # See if we find them without any special options.
6746 # Don't add to $LIBS permanently.
6747 ac_save_LIBS="$LIBS"
6748 LIBS="$LIBS $X_LIBS -lXpm -lX11"
6749 cat >conftest.$ac_ext <<_ACEOF
6752 cat confdefs.h >>conftest.$ac_ext
6753 cat >>conftest.$ac_ext <<_ACEOF
6754 /* end confdefs.h. */
6759 XpmReadFileToPixmap()
6764 rm -f conftest.$ac_objext conftest$ac_exeext
6765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6766 (eval $ac_link) 2>conftest.er1
6768 grep -v '^ *+' conftest.er1 >conftest.err
6770 cat conftest.err >&5
6771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772 (exit $ac_status); } &&
6773 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778 (exit $ac_status); }; } &&
6779 { ac_try='test -s conftest$ac_exeext'
6780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784 (exit $ac_status); }; }; then
6785 LIBS="$ac_save_LIBS"
6786 # We can link libXpm with no special library path.
6789 echo "$as_me: failed program was:" >&5
6790 sed 's/^/| /' conftest.$ac_ext >&5
6792 LIBS="$ac_save_LIBS"
6793 # First see if replacing the include by lib works.
6795 `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \
6806 /usr/local/X11/lib \
6807 /usr/local/X11R6/lib \
6808 /usr/local/X11R5/lib \
6809 /usr/local/X11R4/lib \
6811 /usr/local/lib/X11 \
6812 /usr/local/lib/X11R6 \
6813 /usr/local/lib/X11R5 \
6814 /usr/local/lib/X11R4 \
6818 /usr/XFree86/lib/X11 \
6822 /usr/unsupported/lib \
6824 /usr/local/x11r5/lib \
6825 /usr/lpp/Xamples/lib \
6828 /usr/openwin/share/lib \
6831 for ac_extension in a so sl; do
6832 if test -r $ac_dir/libXpm.$ac_extension; then
6833 vt_xpm_libraries=$ac_dir
6839 rm -f conftest.err conftest.$ac_objext \
6840 conftest$ac_exeext conftest.$ac_ext
6844 if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then
6845 ac_cv_have_xpm="have_xpm=no"
6847 ac_cv_have_xpm="have_xpm=yes \
6848 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
6849 vt_xpm_include_X11=$vt_xpm_include_X11"
6852 eval "$ac_cv_have_xpm"
6855 if test "$have_xpm" != yes; then
6856 echo "$as_me:$LINENO: result: $have_xpm" >&5
6857 echo "${ECHO_T}$have_xpm" >&6
6860 if test "$xpm_includes" != NO; then
6861 if test "$xpm_includes" = "$vt_xpm_includes"; then
6862 if test -r "$xpm_includes/X11/xpm.h"; then
6863 vt_xpm_include_X11=yes
6866 vt_xpm_include_X11=no
6867 if test -z "$xpm_includes"; then
6868 cat >conftest.$ac_ext <<_ACEOF
6871 cat confdefs.h >>conftest.$ac_ext
6872 cat >>conftest.$ac_ext <<_ACEOF
6873 /* end confdefs.h. */
6874 #include <X11/xpm.h>
6876 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6877 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6879 grep -v '^ *+' conftest.er1 >conftest.err
6881 cat conftest.err >&5
6882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883 (exit $ac_status); } >/dev/null; then
6884 if test -s conftest.err; then
6885 ac_cpp_err=$ac_cxx_preproc_warn_flag
6886 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6893 if test -z "$ac_cpp_err"; then
6894 vt_xpm_include_X11=yes
6896 echo "$as_me: failed program was:" >&5
6897 sed 's/^/| /' conftest.$ac_ext >&5
6901 rm -f conftest.err conftest.$ac_ext
6903 if test -r "$xpm_includes/X11/xpm.h"; then
6904 vt_xpm_include_X11=yes
6908 vt_xpm_includes=$xpm_includes
6910 if test "x$xpm_libraries" != xNO; then
6911 vt_xpm_libraries=$xpm_libraries
6913 # Update the cache value to reflect the command line values.
6914 ac_cv_have_xpm="have_xpm=yes \
6915 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
6916 vt_xpm_include_X11=$vt_xpm_include_X11"
6917 eval "$ac_cv_have_xpm"
6918 echo "$as_me:$LINENO: result: -I$vt_xpm_includes, -L$vt_xpm_libraries" >&5
6919 echo "${ECHO_T}-I$vt_xpm_includes, -L$vt_xpm_libraries" >&6
6920 if test -n "$vt_xpm_includes"; then
6921 XPM_CPPFLAGS="-DHAVE_LIBXPM"
6923 if test -n "$vt_xpm_includes"; then
6924 XPM_CFLAGS="-I$vt_xpm_includes"
6927 if test -n "$vt_xpm_libraries"; then
6928 XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS"
6930 if test "x$vt_xpm_include_X11" = xyes; then
6932 cat >>confdefs.h <<\_ACEOF
6933 #define XPM_INC_X11 1
6943 if test x$no_xpm = xyes; then
6944 support_xpm=needsmanualspecification
6948 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6949 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6950 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6951 echo $ECHO_N "(cached) $ECHO_C" >&6
6953 cat >conftest.$ac_ext <<_ACEOF
6956 cat confdefs.h >>conftest.$ac_ext
6957 cat >>conftest.$ac_ext <<_ACEOF
6958 /* end confdefs.h. */
6959 #include <sys/types.h>
6960 #include <sys/wait.h>
6962 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6965 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6973 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6978 rm -f conftest.$ac_objext
6979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6980 (eval $ac_compile) 2>conftest.er1
6982 grep -v '^ *+' conftest.er1 >conftest.err
6984 cat conftest.err >&5
6985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986 (exit $ac_status); } &&
6987 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); }; } &&
6993 { ac_try='test -s conftest.$ac_objext'
6994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998 (exit $ac_status); }; }; then
6999 ac_cv_header_sys_wait_h=yes
7001 echo "$as_me: failed program was:" >&5
7002 sed 's/^/| /' conftest.$ac_ext >&5
7004 ac_cv_header_sys_wait_h=no
7006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7008 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7009 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
7010 if test $ac_cv_header_sys_wait_h = yes; then
7012 cat >>confdefs.h <<\_ACEOF
7013 #define HAVE_SYS_WAIT_H 1
7018 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7019 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7020 if test "${ac_cv_header_stdc+set}" = set; then
7021 echo $ECHO_N "(cached) $ECHO_C" >&6
7023 cat >conftest.$ac_ext <<_ACEOF
7026 cat confdefs.h >>conftest.$ac_ext
7027 cat >>conftest.$ac_ext <<_ACEOF
7028 /* end confdefs.h. */
7042 rm -f conftest.$ac_objext
7043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7044 (eval $ac_compile) 2>conftest.er1
7046 grep -v '^ *+' conftest.er1 >conftest.err
7048 cat conftest.err >&5
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); } &&
7051 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); }; } &&
7057 { ac_try='test -s conftest.$ac_objext'
7058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); }; }; then
7063 ac_cv_header_stdc=yes
7065 echo "$as_me: failed program was:" >&5
7066 sed 's/^/| /' conftest.$ac_ext >&5
7068 ac_cv_header_stdc=no
7070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7072 if test $ac_cv_header_stdc = yes; then
7073 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7074 cat >conftest.$ac_ext <<_ACEOF
7077 cat confdefs.h >>conftest.$ac_ext
7078 cat >>conftest.$ac_ext <<_ACEOF
7079 /* end confdefs.h. */
7083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7084 $EGREP "memchr" >/dev/null 2>&1; then
7087 ac_cv_header_stdc=no
7093 if test $ac_cv_header_stdc = yes; then
7094 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7095 cat >conftest.$ac_ext <<_ACEOF
7098 cat confdefs.h >>conftest.$ac_ext
7099 cat >>conftest.$ac_ext <<_ACEOF
7100 /* end confdefs.h. */
7104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7105 $EGREP "free" >/dev/null 2>&1; then
7108 ac_cv_header_stdc=no
7114 if test $ac_cv_header_stdc = yes; then
7115 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7116 if test "$cross_compiling" = yes; then
7119 cat >conftest.$ac_ext <<_ACEOF
7122 cat confdefs.h >>conftest.$ac_ext
7123 cat >>conftest.$ac_ext <<_ACEOF
7124 /* end confdefs.h. */
7126 #if ((' ' & 0x0FF) == 0x020)
7127 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7128 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7130 # define ISLOWER(c) \
7131 (('a' <= (c) && (c) <= 'i') \
7132 || ('j' <= (c) && (c) <= 'r') \
7133 || ('s' <= (c) && (c) <= 'z'))
7134 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7137 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7142 for (i = 0; i < 256; i++)
7143 if (XOR (islower (i), ISLOWER (i))
7144 || toupper (i) != TOUPPER (i))
7149 rm -f conftest$ac_exeext
7150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7151 (eval $ac_link) 2>&5
7153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159 (exit $ac_status); }; }; then
7162 echo "$as_me: program exited with status $ac_status" >&5
7163 echo "$as_me: failed program was:" >&5
7164 sed 's/^/| /' conftest.$ac_ext >&5
7167 ac_cv_header_stdc=no
7169 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7173 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7174 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7175 if test $ac_cv_header_stdc = yes; then
7177 cat >>confdefs.h <<\_ACEOF
7178 #define STDC_HEADERS 1
7183 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7193 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7194 inttypes.h stdint.h unistd.h
7196 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7197 echo "$as_me:$LINENO: checking for $ac_header" >&5
7198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7200 echo $ECHO_N "(cached) $ECHO_C" >&6
7202 cat >conftest.$ac_ext <<_ACEOF
7205 cat confdefs.h >>conftest.$ac_ext
7206 cat >>conftest.$ac_ext <<_ACEOF
7207 /* end confdefs.h. */
7208 $ac_includes_default
7210 #include <$ac_header>
7212 rm -f conftest.$ac_objext
7213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7214 (eval $ac_compile) 2>conftest.er1
7216 grep -v '^ *+' conftest.er1 >conftest.err
7218 cat conftest.err >&5
7219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220 (exit $ac_status); } &&
7221 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226 (exit $ac_status); }; } &&
7227 { ac_try='test -s conftest.$ac_objext'
7228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232 (exit $ac_status); }; }; then
7233 eval "$as_ac_Header=yes"
7235 echo "$as_me: failed program was:" >&5
7236 sed 's/^/| /' conftest.$ac_ext >&5
7238 eval "$as_ac_Header=no"
7240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7243 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7245 cat >>confdefs.h <<_ACEOF
7246 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7309 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7311 echo "$as_me:$LINENO: checking for $ac_header" >&5
7312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7314 echo $ECHO_N "(cached) $ECHO_C" >&6
7316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7319 # Is the header compilable?
7320 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7321 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7322 cat >conftest.$ac_ext <<_ACEOF
7325 cat confdefs.h >>conftest.$ac_ext
7326 cat >>conftest.$ac_ext <<_ACEOF
7327 /* end confdefs.h. */
7328 $ac_includes_default
7329 #include <$ac_header>
7331 rm -f conftest.$ac_objext
7332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7333 (eval $ac_compile) 2>conftest.er1
7335 grep -v '^ *+' conftest.er1 >conftest.err
7337 cat conftest.err >&5
7338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339 (exit $ac_status); } &&
7340 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7345 (exit $ac_status); }; } &&
7346 { ac_try='test -s conftest.$ac_objext'
7347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351 (exit $ac_status); }; }; then
7352 ac_header_compiler=yes
7354 echo "$as_me: failed program was:" >&5
7355 sed 's/^/| /' conftest.$ac_ext >&5
7357 ac_header_compiler=no
7359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7360 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7361 echo "${ECHO_T}$ac_header_compiler" >&6
7363 # Is the header present?
7364 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7365 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7366 cat >conftest.$ac_ext <<_ACEOF
7369 cat confdefs.h >>conftest.$ac_ext
7370 cat >>conftest.$ac_ext <<_ACEOF
7371 /* end confdefs.h. */
7372 #include <$ac_header>
7374 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7375 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7377 grep -v '^ *+' conftest.er1 >conftest.err
7379 cat conftest.err >&5
7380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381 (exit $ac_status); } >/dev/null; then
7382 if test -s conftest.err; then
7383 ac_cpp_err=$ac_cxx_preproc_warn_flag
7384 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7391 if test -z "$ac_cpp_err"; then
7392 ac_header_preproc=yes
7394 echo "$as_me: failed program was:" >&5
7395 sed 's/^/| /' conftest.$ac_ext >&5
7397 ac_header_preproc=no
7399 rm -f conftest.err conftest.$ac_ext
7400 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7401 echo "${ECHO_T}$ac_header_preproc" >&6
7403 # So? What about this header?
7404 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7406 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7407 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7409 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7410 ac_header_preproc=yes
7413 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7414 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7415 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7416 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7417 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7418 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7419 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7420 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7422 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7423 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7424 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7427 ## ------------------------------------------ ##
7428 ## Report this to the AC_PACKAGE_NAME lists. ##
7429 ## ------------------------------------------ ##
7432 sed "s/^/$as_me: WARNING: /" >&2
7435 echo "$as_me:$LINENO: checking for $ac_header" >&5
7436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7438 echo $ECHO_N "(cached) $ECHO_C" >&6
7440 eval "$as_ac_Header=\$ac_header_preproc"
7442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7443 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7446 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7447 cat >>confdefs.h <<_ACEOF
7448 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7456 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7457 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7458 if test "${ac_cv_header_time+set}" = set; then
7459 echo $ECHO_N "(cached) $ECHO_C" >&6
7461 cat >conftest.$ac_ext <<_ACEOF
7464 cat confdefs.h >>conftest.$ac_ext
7465 cat >>conftest.$ac_ext <<_ACEOF
7466 /* end confdefs.h. */
7467 #include <sys/types.h>
7468 #include <sys/time.h>
7474 if ((struct tm *) 0)
7480 rm -f conftest.$ac_objext
7481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7482 (eval $ac_compile) 2>conftest.er1
7484 grep -v '^ *+' conftest.er1 >conftest.err
7486 cat conftest.err >&5
7487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488 (exit $ac_status); } &&
7489 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7494 (exit $ac_status); }; } &&
7495 { ac_try='test -s conftest.$ac_objext'
7496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500 (exit $ac_status); }; }; then
7501 ac_cv_header_time=yes
7503 echo "$as_me: failed program was:" >&5
7504 sed 's/^/| /' conftest.$ac_ext >&5
7506 ac_cv_header_time=no
7508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7510 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7511 echo "${ECHO_T}$ac_cv_header_time" >&6
7512 if test $ac_cv_header_time = yes; then
7514 cat >>confdefs.h <<\_ACEOF
7515 #define TIME_WITH_SYS_TIME 1
7521 echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5
7522 echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6
7523 if test "${rxvt_cv_header_sysioctl+set}" = set; then
7524 echo $ECHO_N "(cached) $ECHO_C" >&6
7526 cat >conftest.$ac_ext <<_ACEOF
7529 cat confdefs.h >>conftest.$ac_ext
7530 cat >>conftest.$ac_ext <<_ACEOF
7531 /* end confdefs.h. */
7533 #include <sys/ioctl.h>
7534 #ifdef HAVE_TERMIOS_H
7535 #include <termios.h>
7545 rm -f conftest.$ac_objext
7546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7547 (eval $ac_compile) 2>conftest.er1
7549 grep -v '^ *+' conftest.er1 >conftest.err
7551 cat conftest.err >&5
7552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553 (exit $ac_status); } &&
7554 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559 (exit $ac_status); }; } &&
7560 { ac_try='test -s conftest.$ac_objext'
7561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565 (exit $ac_status); }; }; then
7566 rxvt_cv_header_sysioctl=yes
7568 echo "$as_me: failed program was:" >&5
7569 sed 's/^/| /' conftest.$ac_ext >&5
7571 rxvt_cv_header_sysioctl=no
7573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7575 echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5
7576 echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6
7578 if test -n "$GCC"; then
7583 R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-rpath '$LDARG'\1/g'
7585 ac_save_CFLAGS=$CFLAGS
7587 CFLAGS="$CFLAGS $X_CFLAGS"
7588 LIBS=`echo "$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
7589 echo "$as_me:$LINENO: checking for -rpath dynamic library path recording" >&5
7590 echo $ECHO_N "checking for -rpath dynamic library path recording... $ECHO_C" >&6
7591 if test "${rxvt_cv_rpath+set}" = set; then
7592 echo $ECHO_N "(cached) $ECHO_C" >&6
7594 if test "$cross_compiling" = yes; then
7595 { echo "$as_me:$LINENO: WARNING: You may need to check the LIBS line" >&5
7596 echo "$as_me: WARNING: You may need to check the LIBS line" >&2;}
7598 cat >conftest.$ac_ext <<_ACEOF
7601 cat confdefs.h >>conftest.$ac_ext
7602 cat >>conftest.$ac_ext <<_ACEOF
7603 /* end confdefs.h. */
7608 (void) XOpenDisplay("foobar");
7611 rm -f conftest$ac_exeext
7612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7613 (eval $ac_link) 2>&5
7615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); }; }; then
7624 echo "$as_me: program exited with status $ac_status" >&5
7625 echo "$as_me: failed program was:" >&5
7626 sed 's/^/| /' conftest.$ac_ext >&5
7631 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7634 echo "$as_me:$LINENO: result: $rxvt_cv_rpath" >&5
7635 echo "${ECHO_T}$rxvt_cv_rpath" >&6
7636 if test x$rxvt_cv_rpath != xyes; then
7637 R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-R\1/g'
7638 LIBS=`echo "$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
7639 echo "$as_me:$LINENO: checking for -R dynamic library path recording" >&5
7640 echo $ECHO_N "checking for -R dynamic library path recording... $ECHO_C" >&6
7641 if test "${rxvt_cv_R+set}" = set; then
7642 echo $ECHO_N "(cached) $ECHO_C" >&6
7644 if test "$cross_compiling" = yes; then
7647 cat >conftest.$ac_ext <<_ACEOF
7650 cat confdefs.h >>conftest.$ac_ext
7651 cat >>conftest.$ac_ext <<_ACEOF
7652 /* end confdefs.h. */
7657 (void) XOpenDisplay("foobar");
7660 rm -f conftest$ac_exeext
7661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7662 (eval $ac_link) 2>&5
7664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); }; }; then
7673 echo "$as_me: program exited with status $ac_status" >&5
7674 echo "$as_me: failed program was:" >&5
7675 sed 's/^/| /' conftest.$ac_ext >&5
7680 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7683 echo "$as_me:$LINENO: result: $rxvt_cv_R" >&5
7684 echo "${ECHO_T}$rxvt_cv_R" >&6
7685 if test x$rxvt_cv_R != xyes; then
7686 LIBS="$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
7690 echo "$as_me:$LINENO: checking for XPointer" >&5
7691 echo $ECHO_N "checking for XPointer... $ECHO_C" >&6
7692 if test "${rxvt_cv_xpointer+set}" = set; then
7693 echo $ECHO_N "(cached) $ECHO_C" >&6
7695 cat >conftest.$ac_ext <<_ACEOF
7698 cat confdefs.h >>conftest.$ac_ext
7699 cat >>conftest.$ac_ext <<_ACEOF
7700 /* end confdefs.h. */
7701 #include <X11/Xlib.h>
7710 rm -f conftest.$ac_objext
7711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7712 (eval $ac_compile) 2>conftest.er1
7714 grep -v '^ *+' conftest.er1 >conftest.err
7716 cat conftest.err >&5
7717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718 (exit $ac_status); } &&
7719 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724 (exit $ac_status); }; } &&
7725 { ac_try='test -s conftest.$ac_objext'
7726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730 (exit $ac_status); }; }; then
7731 rxvt_cv_xpointer=yes
7733 echo "$as_me: failed program was:" >&5
7734 sed 's/^/| /' conftest.$ac_ext >&5
7738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7740 echo "$as_me:$LINENO: result: $rxvt_cv_xpointer" >&5
7741 echo "${ECHO_T}$rxvt_cv_xpointer" >&6
7742 if test x$rxvt_cv_xpointer = xyes; then
7744 cat >>confdefs.h <<\_ACEOF
7745 #define HAVE_XPOINTER 1
7750 CFLAGS=$ac_save_CFLAGS
7753 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7754 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7755 if test "${ac_cv_c_const+set}" = set; then
7756 echo $ECHO_N "(cached) $ECHO_C" >&6
7758 cat >conftest.$ac_ext <<_ACEOF
7761 cat confdefs.h >>conftest.$ac_ext
7762 cat >>conftest.$ac_ext <<_ACEOF
7763 /* end confdefs.h. */
7768 /* FIXME: Include the comments suggested by Paul. */
7770 /* Ultrix mips cc rejects this. */
7771 typedef int charset[2];
7773 /* SunOS 4.1.1 cc rejects this. */
7774 char const *const *ccp;
7776 /* NEC SVR4.0.2 mips cc rejects this. */
7777 struct point {int x, y;};
7778 static struct point const zero = {0,0};
7779 /* AIX XL C 1.02.0.0 rejects this.
7780 It does not let you subtract one const X* pointer from another in
7781 an arm of an if-expression whose if-part is not a constant
7783 const char *g = "string";
7784 ccp = &g + (g ? g-g : 0);
7785 /* HPUX 7.0 cc rejects these. */
7788 ccp = (char const *const *) p;
7789 { /* SCO 3.2v4 cc rejects this. */
7791 char const *s = 0 ? (char *) 0 : (char const *) 0;
7795 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7797 const int *foo = &x[0];
7800 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7801 typedef const int *iptr;
7805 { /* AIX XL C 1.02.0.0 rejects this saying
7806 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7807 struct s { int j; const int *ap[3]; };
7808 struct s *b; b->j = 5;
7810 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7819 rm -f conftest.$ac_objext
7820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7821 (eval $ac_compile) 2>conftest.er1
7823 grep -v '^ *+' conftest.er1 >conftest.err
7825 cat conftest.err >&5
7826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827 (exit $ac_status); } &&
7828 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); }; } &&
7834 { ac_try='test -s conftest.$ac_objext'
7835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); }; }; then
7842 echo "$as_me: failed program was:" >&5
7843 sed 's/^/| /' conftest.$ac_ext >&5
7847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7849 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7850 echo "${ECHO_T}$ac_cv_c_const" >&6
7851 if test $ac_cv_c_const = no; then
7853 cat >>confdefs.h <<\_ACEOF
7859 echo "$as_me:$LINENO: checking for inline" >&5
7860 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7861 if test "${ac_cv_c_inline+set}" = set; then
7862 echo $ECHO_N "(cached) $ECHO_C" >&6
7865 for ac_kw in inline __inline__ __inline; do
7866 cat >conftest.$ac_ext <<_ACEOF
7869 cat confdefs.h >>conftest.$ac_ext
7870 cat >>conftest.$ac_ext <<_ACEOF
7871 /* end confdefs.h. */
7874 static $ac_kw foo_t static_foo () {return 0; }
7875 $ac_kw foo_t foo () {return 0; }
7879 rm -f conftest.$ac_objext
7880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7881 (eval $ac_compile) 2>conftest.er1
7883 grep -v '^ *+' conftest.er1 >conftest.err
7885 cat conftest.err >&5
7886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887 (exit $ac_status); } &&
7888 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 (exit $ac_status); }; } &&
7894 { ac_try='test -s conftest.$ac_objext'
7895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7899 (exit $ac_status); }; }; then
7900 ac_cv_c_inline=$ac_kw; break
7902 echo "$as_me: failed program was:" >&5
7903 sed 's/^/| /' conftest.$ac_ext >&5
7906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7910 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7911 echo "${ECHO_T}$ac_cv_c_inline" >&6
7914 case $ac_cv_c_inline in
7917 case $ac_cv_c_inline in
7919 *) ac_val=$ac_cv_c_inline;;
7921 cat >>confdefs.h <<_ACEOF
7923 #define inline $ac_val
7931 echo "$as_me:$LINENO: checking for mode_t" >&5
7932 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
7933 if test "${ac_cv_type_mode_t+set}" = set; then
7934 echo $ECHO_N "(cached) $ECHO_C" >&6
7936 cat >conftest.$ac_ext <<_ACEOF
7939 cat confdefs.h >>conftest.$ac_ext
7940 cat >>conftest.$ac_ext <<_ACEOF
7941 /* end confdefs.h. */
7942 $ac_includes_default
7948 if (sizeof (mode_t))
7954 rm -f conftest.$ac_objext
7955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7956 (eval $ac_compile) 2>conftest.er1
7958 grep -v '^ *+' conftest.er1 >conftest.err
7960 cat conftest.err >&5
7961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962 (exit $ac_status); } &&
7963 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); }; } &&
7969 { ac_try='test -s conftest.$ac_objext'
7970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); }; }; then
7975 ac_cv_type_mode_t=yes
7977 echo "$as_me: failed program was:" >&5
7978 sed 's/^/| /' conftest.$ac_ext >&5
7980 ac_cv_type_mode_t=no
7982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7984 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
7985 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
7986 if test $ac_cv_type_mode_t = yes; then
7990 cat >>confdefs.h <<_ACEOF
7996 echo "$as_me:$LINENO: checking for pid_t" >&5
7997 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7998 if test "${ac_cv_type_pid_t+set}" = set; then
7999 echo $ECHO_N "(cached) $ECHO_C" >&6
8001 cat >conftest.$ac_ext <<_ACEOF
8004 cat confdefs.h >>conftest.$ac_ext
8005 cat >>conftest.$ac_ext <<_ACEOF
8006 /* end confdefs.h. */
8007 $ac_includes_default
8019 rm -f conftest.$ac_objext
8020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8021 (eval $ac_compile) 2>conftest.er1
8023 grep -v '^ *+' conftest.er1 >conftest.err
8025 cat conftest.err >&5
8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); } &&
8028 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); }; } &&
8034 { ac_try='test -s conftest.$ac_objext'
8035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); }; }; then
8040 ac_cv_type_pid_t=yes
8042 echo "$as_me: failed program was:" >&5
8043 sed 's/^/| /' conftest.$ac_ext >&5
8047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8049 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8050 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8051 if test $ac_cv_type_pid_t = yes; then
8055 cat >>confdefs.h <<_ACEOF
8061 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
8062 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
8063 if test "${ac_cv_type_uid_t+set}" = set; then
8064 echo $ECHO_N "(cached) $ECHO_C" >&6
8066 cat >conftest.$ac_ext <<_ACEOF
8069 cat confdefs.h >>conftest.$ac_ext
8070 cat >>conftest.$ac_ext <<_ACEOF
8071 /* end confdefs.h. */
8072 #include <sys/types.h>
8075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8076 $EGREP "uid_t" >/dev/null 2>&1; then
8077 ac_cv_type_uid_t=yes
8084 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
8085 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
8086 if test $ac_cv_type_uid_t = no; then
8088 cat >>confdefs.h <<\_ACEOF
8093 cat >>confdefs.h <<\_ACEOF
8100 echo "$as_me:$LINENO: checking for short" >&5
8101 echo $ECHO_N "checking for short... $ECHO_C" >&6
8102 if test "${ac_cv_type_short+set}" = set; then
8103 echo $ECHO_N "(cached) $ECHO_C" >&6
8105 cat >conftest.$ac_ext <<_ACEOF
8108 cat confdefs.h >>conftest.$ac_ext
8109 cat >>conftest.$ac_ext <<_ACEOF
8110 /* end confdefs.h. */
8111 $ac_includes_default
8123 rm -f conftest.$ac_objext
8124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8125 (eval $ac_compile) 2>conftest.er1
8127 grep -v '^ *+' conftest.er1 >conftest.err
8129 cat conftest.err >&5
8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 (exit $ac_status); } &&
8132 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 (exit $ac_status); }; } &&
8138 { ac_try='test -s conftest.$ac_objext'
8139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); }; }; then
8144 ac_cv_type_short=yes
8146 echo "$as_me: failed program was:" >&5
8147 sed 's/^/| /' conftest.$ac_ext >&5
8151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8153 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8154 echo "${ECHO_T}$ac_cv_type_short" >&6
8156 echo "$as_me:$LINENO: checking size of short" >&5
8157 echo $ECHO_N "checking size of short... $ECHO_C" >&6
8158 if test "${ac_cv_sizeof_short+set}" = set; then
8159 echo $ECHO_N "(cached) $ECHO_C" >&6
8161 if test "$ac_cv_type_short" = yes; then
8162 # The cast to unsigned long works around a bug in the HP C Compiler
8163 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8164 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8165 # This bug is HP SR number 8606223364.
8166 if test "$cross_compiling" = yes; then
8167 # Depending upon the size, compute the lo and hi bounds.
8168 cat >conftest.$ac_ext <<_ACEOF
8171 cat confdefs.h >>conftest.$ac_ext
8172 cat >>conftest.$ac_ext <<_ACEOF
8173 /* end confdefs.h. */
8174 $ac_includes_default
8178 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
8185 rm -f conftest.$ac_objext
8186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8187 (eval $ac_compile) 2>conftest.er1
8189 grep -v '^ *+' conftest.er1 >conftest.err
8191 cat conftest.err >&5
8192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); } &&
8194 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199 (exit $ac_status); }; } &&
8200 { ac_try='test -s conftest.$ac_objext'
8201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205 (exit $ac_status); }; }; then
8208 cat >conftest.$ac_ext <<_ACEOF
8211 cat confdefs.h >>conftest.$ac_ext
8212 cat >>conftest.$ac_ext <<_ACEOF
8213 /* end confdefs.h. */
8214 $ac_includes_default
8218 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
8225 rm -f conftest.$ac_objext
8226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8227 (eval $ac_compile) 2>conftest.er1
8229 grep -v '^ *+' conftest.er1 >conftest.err
8231 cat conftest.err >&5
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); } &&
8234 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); }; } &&
8240 { ac_try='test -s conftest.$ac_objext'
8241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245 (exit $ac_status); }; }; then
8246 ac_hi=$ac_mid; break
8248 echo "$as_me: failed program was:" >&5
8249 sed 's/^/| /' conftest.$ac_ext >&5
8251 ac_lo=`expr $ac_mid + 1`
8252 if test $ac_lo -le $ac_mid; then
8256 ac_mid=`expr 2 '*' $ac_mid + 1`
8258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8261 echo "$as_me: failed program was:" >&5
8262 sed 's/^/| /' conftest.$ac_ext >&5
8264 cat >conftest.$ac_ext <<_ACEOF
8267 cat confdefs.h >>conftest.$ac_ext
8268 cat >>conftest.$ac_ext <<_ACEOF
8269 /* end confdefs.h. */
8270 $ac_includes_default
8274 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
8281 rm -f conftest.$ac_objext
8282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8283 (eval $ac_compile) 2>conftest.er1
8285 grep -v '^ *+' conftest.er1 >conftest.err
8287 cat conftest.err >&5
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); } &&
8290 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); }; } &&
8296 { ac_try='test -s conftest.$ac_objext'
8297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); }; }; then
8304 cat >conftest.$ac_ext <<_ACEOF
8307 cat confdefs.h >>conftest.$ac_ext
8308 cat >>conftest.$ac_ext <<_ACEOF
8309 /* end confdefs.h. */
8310 $ac_includes_default
8314 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
8321 rm -f conftest.$ac_objext
8322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8323 (eval $ac_compile) 2>conftest.er1
8325 grep -v '^ *+' conftest.er1 >conftest.err
8327 cat conftest.err >&5
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); } &&
8330 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335 (exit $ac_status); }; } &&
8336 { ac_try='test -s conftest.$ac_objext'
8337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341 (exit $ac_status); }; }; then
8342 ac_lo=$ac_mid; break
8344 echo "$as_me: failed program was:" >&5
8345 sed 's/^/| /' conftest.$ac_ext >&5
8347 ac_hi=`expr '(' $ac_mid ')' - 1`
8348 if test $ac_mid -le $ac_hi; then
8352 ac_mid=`expr 2 '*' $ac_mid`
8354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8357 echo "$as_me: failed program was:" >&5
8358 sed 's/^/| /' conftest.$ac_ext >&5
8362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8365 # Binary search between lo and hi bounds.
8366 while test "x$ac_lo" != "x$ac_hi"; do
8367 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8368 cat >conftest.$ac_ext <<_ACEOF
8371 cat confdefs.h >>conftest.$ac_ext
8372 cat >>conftest.$ac_ext <<_ACEOF
8373 /* end confdefs.h. */
8374 $ac_includes_default
8378 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
8385 rm -f conftest.$ac_objext
8386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8387 (eval $ac_compile) 2>conftest.er1
8389 grep -v '^ *+' conftest.er1 >conftest.err
8391 cat conftest.err >&5
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 (exit $ac_status); } &&
8394 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399 (exit $ac_status); }; } &&
8400 { ac_try='test -s conftest.$ac_objext'
8401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405 (exit $ac_status); }; }; then
8408 echo "$as_me: failed program was:" >&5
8409 sed 's/^/| /' conftest.$ac_ext >&5
8411 ac_lo=`expr '(' $ac_mid ')' + 1`
8413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8416 ?*) ac_cv_sizeof_short=$ac_lo;;
8417 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
8418 See \`config.log' for more details." >&5
8419 echo "$as_me: error: cannot compute sizeof (short), 77
8420 See \`config.log' for more details." >&2;}
8421 { (exit 1); exit 1; }; } ;;
8424 if test "$cross_compiling" = yes; then
8425 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
8426 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
8427 { (exit 1); exit 1; }; }
8429 cat >conftest.$ac_ext <<_ACEOF
8432 cat confdefs.h >>conftest.$ac_ext
8433 cat >>conftest.$ac_ext <<_ACEOF
8434 /* end confdefs.h. */
8435 $ac_includes_default
8436 long longval () { return (long) (sizeof (short)); }
8437 unsigned long ulongval () { return (long) (sizeof (short)); }
8444 FILE *f = fopen ("conftest.val", "w");
8447 if (((long) (sizeof (short))) < 0)
8449 long i = longval ();
8450 if (i != ((long) (sizeof (short))))
8452 fprintf (f, "%ld\n", i);
8456 unsigned long i = ulongval ();
8457 if (i != ((long) (sizeof (short))))
8459 fprintf (f, "%lu\n", i);
8461 exit (ferror (f) || fclose (f) != 0);
8467 rm -f conftest$ac_exeext
8468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8469 (eval $ac_link) 2>&5
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477 (exit $ac_status); }; }; then
8478 ac_cv_sizeof_short=`cat conftest.val`
8480 echo "$as_me: program exited with status $ac_status" >&5
8481 echo "$as_me: failed program was:" >&5
8482 sed 's/^/| /' conftest.$ac_ext >&5
8485 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
8486 See \`config.log' for more details." >&5
8487 echo "$as_me: error: cannot compute sizeof (short), 77
8488 See \`config.log' for more details." >&2;}
8489 { (exit 1); exit 1; }; }
8491 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8496 ac_cv_sizeof_short=0
8499 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8500 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
8501 cat >>confdefs.h <<_ACEOF
8502 #define SIZEOF_SHORT $ac_cv_sizeof_short
8506 echo "$as_me:$LINENO: checking for int" >&5
8507 echo $ECHO_N "checking for int... $ECHO_C" >&6
8508 if test "${ac_cv_type_int+set}" = set; then
8509 echo $ECHO_N "(cached) $ECHO_C" >&6
8511 cat >conftest.$ac_ext <<_ACEOF
8514 cat confdefs.h >>conftest.$ac_ext
8515 cat >>conftest.$ac_ext <<_ACEOF
8516 /* end confdefs.h. */
8517 $ac_includes_default
8529 rm -f conftest.$ac_objext
8530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8531 (eval $ac_compile) 2>conftest.er1
8533 grep -v '^ *+' conftest.er1 >conftest.err
8535 cat conftest.err >&5
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); } &&
8538 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543 (exit $ac_status); }; } &&
8544 { ac_try='test -s conftest.$ac_objext'
8545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549 (exit $ac_status); }; }; then
8552 echo "$as_me: failed program was:" >&5
8553 sed 's/^/| /' conftest.$ac_ext >&5
8557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8559 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
8560 echo "${ECHO_T}$ac_cv_type_int" >&6
8562 echo "$as_me:$LINENO: checking size of int" >&5
8563 echo $ECHO_N "checking size of int... $ECHO_C" >&6
8564 if test "${ac_cv_sizeof_int+set}" = set; then
8565 echo $ECHO_N "(cached) $ECHO_C" >&6
8567 if test "$ac_cv_type_int" = yes; then
8568 # The cast to unsigned long works around a bug in the HP C Compiler
8569 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8570 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8571 # This bug is HP SR number 8606223364.
8572 if test "$cross_compiling" = yes; then
8573 # Depending upon the size, compute the lo and hi bounds.
8574 cat >conftest.$ac_ext <<_ACEOF
8577 cat confdefs.h >>conftest.$ac_ext
8578 cat >>conftest.$ac_ext <<_ACEOF
8579 /* end confdefs.h. */
8580 $ac_includes_default
8584 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
8591 rm -f conftest.$ac_objext
8592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8593 (eval $ac_compile) 2>conftest.er1
8595 grep -v '^ *+' conftest.er1 >conftest.err
8597 cat conftest.err >&5
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); } &&
8600 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); }; } &&
8606 { ac_try='test -s conftest.$ac_objext'
8607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); }; }; then
8614 cat >conftest.$ac_ext <<_ACEOF
8617 cat confdefs.h >>conftest.$ac_ext
8618 cat >>conftest.$ac_ext <<_ACEOF
8619 /* end confdefs.h. */
8620 $ac_includes_default
8624 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
8631 rm -f conftest.$ac_objext
8632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8633 (eval $ac_compile) 2>conftest.er1
8635 grep -v '^ *+' conftest.er1 >conftest.err
8637 cat conftest.err >&5
8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639 (exit $ac_status); } &&
8640 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 (exit $ac_status); }; } &&
8646 { ac_try='test -s conftest.$ac_objext'
8647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651 (exit $ac_status); }; }; then
8652 ac_hi=$ac_mid; break
8654 echo "$as_me: failed program was:" >&5
8655 sed 's/^/| /' conftest.$ac_ext >&5
8657 ac_lo=`expr $ac_mid + 1`
8658 if test $ac_lo -le $ac_mid; then
8662 ac_mid=`expr 2 '*' $ac_mid + 1`
8664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8667 echo "$as_me: failed program was:" >&5
8668 sed 's/^/| /' conftest.$ac_ext >&5
8670 cat >conftest.$ac_ext <<_ACEOF
8673 cat confdefs.h >>conftest.$ac_ext
8674 cat >>conftest.$ac_ext <<_ACEOF
8675 /* end confdefs.h. */
8676 $ac_includes_default
8680 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
8687 rm -f conftest.$ac_objext
8688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8689 (eval $ac_compile) 2>conftest.er1
8691 grep -v '^ *+' conftest.er1 >conftest.err
8693 cat conftest.err >&5
8694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695 (exit $ac_status); } &&
8696 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701 (exit $ac_status); }; } &&
8702 { ac_try='test -s conftest.$ac_objext'
8703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707 (exit $ac_status); }; }; then
8710 cat >conftest.$ac_ext <<_ACEOF
8713 cat confdefs.h >>conftest.$ac_ext
8714 cat >>conftest.$ac_ext <<_ACEOF
8715 /* end confdefs.h. */
8716 $ac_includes_default
8720 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
8727 rm -f conftest.$ac_objext
8728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8729 (eval $ac_compile) 2>conftest.er1
8731 grep -v '^ *+' conftest.er1 >conftest.err
8733 cat conftest.err >&5
8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); } &&
8736 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741 (exit $ac_status); }; } &&
8742 { ac_try='test -s conftest.$ac_objext'
8743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747 (exit $ac_status); }; }; then
8748 ac_lo=$ac_mid; break
8750 echo "$as_me: failed program was:" >&5
8751 sed 's/^/| /' conftest.$ac_ext >&5
8753 ac_hi=`expr '(' $ac_mid ')' - 1`
8754 if test $ac_mid -le $ac_hi; then
8758 ac_mid=`expr 2 '*' $ac_mid`
8760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8763 echo "$as_me: failed program was:" >&5
8764 sed 's/^/| /' conftest.$ac_ext >&5
8768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8771 # Binary search between lo and hi bounds.
8772 while test "x$ac_lo" != "x$ac_hi"; do
8773 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8774 cat >conftest.$ac_ext <<_ACEOF
8777 cat confdefs.h >>conftest.$ac_ext
8778 cat >>conftest.$ac_ext <<_ACEOF
8779 /* end confdefs.h. */
8780 $ac_includes_default
8784 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
8791 rm -f conftest.$ac_objext
8792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8793 (eval $ac_compile) 2>conftest.er1
8795 grep -v '^ *+' conftest.er1 >conftest.err
8797 cat conftest.err >&5
8798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799 (exit $ac_status); } &&
8800 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805 (exit $ac_status); }; } &&
8806 { ac_try='test -s conftest.$ac_objext'
8807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); }; }; then
8814 echo "$as_me: failed program was:" >&5
8815 sed 's/^/| /' conftest.$ac_ext >&5
8817 ac_lo=`expr '(' $ac_mid ')' + 1`
8819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8822 ?*) ac_cv_sizeof_int=$ac_lo;;
8823 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
8824 See \`config.log' for more details." >&5
8825 echo "$as_me: error: cannot compute sizeof (int), 77
8826 See \`config.log' for more details." >&2;}
8827 { (exit 1); exit 1; }; } ;;
8830 if test "$cross_compiling" = yes; then
8831 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
8832 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
8833 { (exit 1); exit 1; }; }
8835 cat >conftest.$ac_ext <<_ACEOF
8838 cat confdefs.h >>conftest.$ac_ext
8839 cat >>conftest.$ac_ext <<_ACEOF
8840 /* end confdefs.h. */
8841 $ac_includes_default
8842 long longval () { return (long) (sizeof (int)); }
8843 unsigned long ulongval () { return (long) (sizeof (int)); }
8850 FILE *f = fopen ("conftest.val", "w");
8853 if (((long) (sizeof (int))) < 0)
8855 long i = longval ();
8856 if (i != ((long) (sizeof (int))))
8858 fprintf (f, "%ld\n", i);
8862 unsigned long i = ulongval ();
8863 if (i != ((long) (sizeof (int))))
8865 fprintf (f, "%lu\n", i);
8867 exit (ferror (f) || fclose (f) != 0);
8873 rm -f conftest$ac_exeext
8874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8875 (eval $ac_link) 2>&5
8877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883 (exit $ac_status); }; }; then
8884 ac_cv_sizeof_int=`cat conftest.val`
8886 echo "$as_me: program exited with status $ac_status" >&5
8887 echo "$as_me: failed program was:" >&5
8888 sed 's/^/| /' conftest.$ac_ext >&5
8891 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
8892 See \`config.log' for more details." >&5
8893 echo "$as_me: error: cannot compute sizeof (int), 77
8894 See \`config.log' for more details." >&2;}
8895 { (exit 1); exit 1; }; }
8897 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8905 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
8906 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
8907 cat >>confdefs.h <<_ACEOF
8908 #define SIZEOF_INT $ac_cv_sizeof_int
8912 echo "$as_me:$LINENO: checking for long long" >&5
8913 echo $ECHO_N "checking for long long... $ECHO_C" >&6
8914 if test "${ac_cv_type_long_long+set}" = set; then
8915 echo $ECHO_N "(cached) $ECHO_C" >&6
8917 cat >conftest.$ac_ext <<_ACEOF
8920 cat confdefs.h >>conftest.$ac_ext
8921 cat >>conftest.$ac_ext <<_ACEOF
8922 /* end confdefs.h. */
8923 $ac_includes_default
8927 if ((long long *) 0)
8929 if (sizeof (long long))
8935 rm -f conftest.$ac_objext
8936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8937 (eval $ac_compile) 2>conftest.er1
8939 grep -v '^ *+' conftest.er1 >conftest.err
8941 cat conftest.err >&5
8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 (exit $ac_status); } &&
8944 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); }; } &&
8950 { ac_try='test -s conftest.$ac_objext'
8951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955 (exit $ac_status); }; }; then
8956 ac_cv_type_long_long=yes
8958 echo "$as_me: failed program was:" >&5
8959 sed 's/^/| /' conftest.$ac_ext >&5
8961 ac_cv_type_long_long=no
8963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8965 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8966 echo "${ECHO_T}$ac_cv_type_long_long" >&6
8968 echo "$as_me:$LINENO: checking size of long long" >&5
8969 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
8970 if test "${ac_cv_sizeof_long_long+set}" = set; then
8971 echo $ECHO_N "(cached) $ECHO_C" >&6
8973 if test "$ac_cv_type_long_long" = yes; then
8974 # The cast to unsigned long works around a bug in the HP C Compiler
8975 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8976 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8977 # This bug is HP SR number 8606223364.
8978 if test "$cross_compiling" = yes; then
8979 # Depending upon the size, compute the lo and hi bounds.
8980 cat >conftest.$ac_ext <<_ACEOF
8983 cat confdefs.h >>conftest.$ac_ext
8984 cat >>conftest.$ac_ext <<_ACEOF
8985 /* end confdefs.h. */
8986 $ac_includes_default
8990 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
8997 rm -f conftest.$ac_objext
8998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8999 (eval $ac_compile) 2>conftest.er1
9001 grep -v '^ *+' conftest.er1 >conftest.err
9003 cat conftest.err >&5
9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 (exit $ac_status); } &&
9006 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011 (exit $ac_status); }; } &&
9012 { ac_try='test -s conftest.$ac_objext'
9013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017 (exit $ac_status); }; }; then
9020 cat >conftest.$ac_ext <<_ACEOF
9023 cat confdefs.h >>conftest.$ac_ext
9024 cat >>conftest.$ac_ext <<_ACEOF
9025 /* end confdefs.h. */
9026 $ac_includes_default
9030 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9037 rm -f conftest.$ac_objext
9038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9039 (eval $ac_compile) 2>conftest.er1
9041 grep -v '^ *+' conftest.er1 >conftest.err
9043 cat conftest.err >&5
9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045 (exit $ac_status); } &&
9046 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); }; } &&
9052 { ac_try='test -s conftest.$ac_objext'
9053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); }; }; then
9058 ac_hi=$ac_mid; break
9060 echo "$as_me: failed program was:" >&5
9061 sed 's/^/| /' conftest.$ac_ext >&5
9063 ac_lo=`expr $ac_mid + 1`
9064 if test $ac_lo -le $ac_mid; then
9068 ac_mid=`expr 2 '*' $ac_mid + 1`
9070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9073 echo "$as_me: failed program was:" >&5
9074 sed 's/^/| /' conftest.$ac_ext >&5
9076 cat >conftest.$ac_ext <<_ACEOF
9079 cat confdefs.h >>conftest.$ac_ext
9080 cat >>conftest.$ac_ext <<_ACEOF
9081 /* end confdefs.h. */
9082 $ac_includes_default
9086 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
9093 rm -f conftest.$ac_objext
9094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9095 (eval $ac_compile) 2>conftest.er1
9097 grep -v '^ *+' conftest.er1 >conftest.err
9099 cat conftest.err >&5
9100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101 (exit $ac_status); } &&
9102 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107 (exit $ac_status); }; } &&
9108 { ac_try='test -s conftest.$ac_objext'
9109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113 (exit $ac_status); }; }; then
9116 cat >conftest.$ac_ext <<_ACEOF
9119 cat confdefs.h >>conftest.$ac_ext
9120 cat >>conftest.$ac_ext <<_ACEOF
9121 /* end confdefs.h. */
9122 $ac_includes_default
9126 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
9133 rm -f conftest.$ac_objext
9134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9135 (eval $ac_compile) 2>conftest.er1
9137 grep -v '^ *+' conftest.er1 >conftest.err
9139 cat conftest.err >&5
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); } &&
9142 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147 (exit $ac_status); }; } &&
9148 { ac_try='test -s conftest.$ac_objext'
9149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153 (exit $ac_status); }; }; then
9154 ac_lo=$ac_mid; break
9156 echo "$as_me: failed program was:" >&5
9157 sed 's/^/| /' conftest.$ac_ext >&5
9159 ac_hi=`expr '(' $ac_mid ')' - 1`
9160 if test $ac_mid -le $ac_hi; then
9164 ac_mid=`expr 2 '*' $ac_mid`
9166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9169 echo "$as_me: failed program was:" >&5
9170 sed 's/^/| /' conftest.$ac_ext >&5
9174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9177 # Binary search between lo and hi bounds.
9178 while test "x$ac_lo" != "x$ac_hi"; do
9179 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9180 cat >conftest.$ac_ext <<_ACEOF
9183 cat confdefs.h >>conftest.$ac_ext
9184 cat >>conftest.$ac_ext <<_ACEOF
9185 /* end confdefs.h. */
9186 $ac_includes_default
9190 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9197 rm -f conftest.$ac_objext
9198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9199 (eval $ac_compile) 2>conftest.er1
9201 grep -v '^ *+' conftest.er1 >conftest.err
9203 cat conftest.err >&5
9204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205 (exit $ac_status); } &&
9206 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211 (exit $ac_status); }; } &&
9212 { ac_try='test -s conftest.$ac_objext'
9213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217 (exit $ac_status); }; }; then
9220 echo "$as_me: failed program was:" >&5
9221 sed 's/^/| /' conftest.$ac_ext >&5
9223 ac_lo=`expr '(' $ac_mid ')' + 1`
9225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9228 ?*) ac_cv_sizeof_long_long=$ac_lo;;
9229 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
9230 See \`config.log' for more details." >&5
9231 echo "$as_me: error: cannot compute sizeof (long long), 77
9232 See \`config.log' for more details." >&2;}
9233 { (exit 1); exit 1; }; } ;;
9236 if test "$cross_compiling" = yes; then
9237 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
9238 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
9239 { (exit 1); exit 1; }; }
9241 cat >conftest.$ac_ext <<_ACEOF
9244 cat confdefs.h >>conftest.$ac_ext
9245 cat >>conftest.$ac_ext <<_ACEOF
9246 /* end confdefs.h. */
9247 $ac_includes_default
9248 long longval () { return (long) (sizeof (long long)); }
9249 unsigned long ulongval () { return (long) (sizeof (long long)); }
9256 FILE *f = fopen ("conftest.val", "w");
9259 if (((long) (sizeof (long long))) < 0)
9261 long i = longval ();
9262 if (i != ((long) (sizeof (long long))))
9264 fprintf (f, "%ld\n", i);
9268 unsigned long i = ulongval ();
9269 if (i != ((long) (sizeof (long long))))
9271 fprintf (f, "%lu\n", i);
9273 exit (ferror (f) || fclose (f) != 0);
9279 rm -f conftest$ac_exeext
9280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9281 (eval $ac_link) 2>&5
9283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289 (exit $ac_status); }; }; then
9290 ac_cv_sizeof_long_long=`cat conftest.val`
9292 echo "$as_me: program exited with status $ac_status" >&5
9293 echo "$as_me: failed program was:" >&5
9294 sed 's/^/| /' conftest.$ac_ext >&5
9297 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
9298 See \`config.log' for more details." >&5
9299 echo "$as_me: error: cannot compute sizeof (long long), 77
9300 See \`config.log' for more details." >&2;}
9301 { (exit 1); exit 1; }; }
9303 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9308 ac_cv_sizeof_long_long=0
9311 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
9312 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
9313 cat >>confdefs.h <<_ACEOF
9314 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9318 echo "$as_me:$LINENO: checking for int *" >&5
9319 echo $ECHO_N "checking for int *... $ECHO_C" >&6
9320 if test "${ac_cv_type_int_p+set}" = set; then
9321 echo $ECHO_N "(cached) $ECHO_C" >&6
9323 cat >conftest.$ac_ext <<_ACEOF
9326 cat confdefs.h >>conftest.$ac_ext
9327 cat >>conftest.$ac_ext <<_ACEOF
9328 /* end confdefs.h. */
9329 $ac_includes_default
9341 rm -f conftest.$ac_objext
9342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9343 (eval $ac_compile) 2>conftest.er1
9345 grep -v '^ *+' conftest.er1 >conftest.err
9347 cat conftest.err >&5
9348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349 (exit $ac_status); } &&
9350 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355 (exit $ac_status); }; } &&
9356 { ac_try='test -s conftest.$ac_objext'
9357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361 (exit $ac_status); }; }; then
9362 ac_cv_type_int_p=yes
9364 echo "$as_me: failed program was:" >&5
9365 sed 's/^/| /' conftest.$ac_ext >&5
9369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9371 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
9372 echo "${ECHO_T}$ac_cv_type_int_p" >&6
9374 echo "$as_me:$LINENO: checking size of int *" >&5
9375 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
9376 if test "${ac_cv_sizeof_int_p+set}" = set; then
9377 echo $ECHO_N "(cached) $ECHO_C" >&6
9379 if test "$ac_cv_type_int_p" = yes; then
9380 # The cast to unsigned long works around a bug in the HP C Compiler
9381 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9382 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9383 # This bug is HP SR number 8606223364.
9384 if test "$cross_compiling" = yes; then
9385 # Depending upon the size, compute the lo and hi bounds.
9386 cat >conftest.$ac_ext <<_ACEOF
9389 cat confdefs.h >>conftest.$ac_ext
9390 cat >>conftest.$ac_ext <<_ACEOF
9391 /* end confdefs.h. */
9392 $ac_includes_default
9396 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
9403 rm -f conftest.$ac_objext
9404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9405 (eval $ac_compile) 2>conftest.er1
9407 grep -v '^ *+' conftest.er1 >conftest.err
9409 cat conftest.err >&5
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); } &&
9412 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 (exit $ac_status); }; } &&
9418 { ac_try='test -s conftest.$ac_objext'
9419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423 (exit $ac_status); }; }; then
9426 cat >conftest.$ac_ext <<_ACEOF
9429 cat confdefs.h >>conftest.$ac_ext
9430 cat >>conftest.$ac_ext <<_ACEOF
9431 /* end confdefs.h. */
9432 $ac_includes_default
9436 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
9443 rm -f conftest.$ac_objext
9444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9445 (eval $ac_compile) 2>conftest.er1
9447 grep -v '^ *+' conftest.er1 >conftest.err
9449 cat conftest.err >&5
9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 (exit $ac_status); } &&
9452 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 (exit $ac_status); }; } &&
9458 { ac_try='test -s conftest.$ac_objext'
9459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463 (exit $ac_status); }; }; then
9464 ac_hi=$ac_mid; break
9466 echo "$as_me: failed program was:" >&5
9467 sed 's/^/| /' conftest.$ac_ext >&5
9469 ac_lo=`expr $ac_mid + 1`
9470 if test $ac_lo -le $ac_mid; then
9474 ac_mid=`expr 2 '*' $ac_mid + 1`
9476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9479 echo "$as_me: failed program was:" >&5
9480 sed 's/^/| /' conftest.$ac_ext >&5
9482 cat >conftest.$ac_ext <<_ACEOF
9485 cat confdefs.h >>conftest.$ac_ext
9486 cat >>conftest.$ac_ext <<_ACEOF
9487 /* end confdefs.h. */
9488 $ac_includes_default
9492 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
9499 rm -f conftest.$ac_objext
9500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9501 (eval $ac_compile) 2>conftest.er1
9503 grep -v '^ *+' conftest.er1 >conftest.err
9505 cat conftest.err >&5
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); } &&
9508 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513 (exit $ac_status); }; } &&
9514 { ac_try='test -s conftest.$ac_objext'
9515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519 (exit $ac_status); }; }; then
9522 cat >conftest.$ac_ext <<_ACEOF
9525 cat confdefs.h >>conftest.$ac_ext
9526 cat >>conftest.$ac_ext <<_ACEOF
9527 /* end confdefs.h. */
9528 $ac_includes_default
9532 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
9539 rm -f conftest.$ac_objext
9540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9541 (eval $ac_compile) 2>conftest.er1
9543 grep -v '^ *+' conftest.er1 >conftest.err
9545 cat conftest.err >&5
9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 (exit $ac_status); } &&
9548 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553 (exit $ac_status); }; } &&
9554 { ac_try='test -s conftest.$ac_objext'
9555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559 (exit $ac_status); }; }; then
9560 ac_lo=$ac_mid; break
9562 echo "$as_me: failed program was:" >&5
9563 sed 's/^/| /' conftest.$ac_ext >&5
9565 ac_hi=`expr '(' $ac_mid ')' - 1`
9566 if test $ac_mid -le $ac_hi; then
9570 ac_mid=`expr 2 '*' $ac_mid`
9572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9575 echo "$as_me: failed program was:" >&5
9576 sed 's/^/| /' conftest.$ac_ext >&5
9580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9583 # Binary search between lo and hi bounds.
9584 while test "x$ac_lo" != "x$ac_hi"; do
9585 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9586 cat >conftest.$ac_ext <<_ACEOF
9589 cat confdefs.h >>conftest.$ac_ext
9590 cat >>conftest.$ac_ext <<_ACEOF
9591 /* end confdefs.h. */
9592 $ac_includes_default
9596 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
9603 rm -f conftest.$ac_objext
9604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9605 (eval $ac_compile) 2>conftest.er1
9607 grep -v '^ *+' conftest.er1 >conftest.err
9609 cat conftest.err >&5
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); } &&
9612 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617 (exit $ac_status); }; } &&
9618 { ac_try='test -s conftest.$ac_objext'
9619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623 (exit $ac_status); }; }; then
9626 echo "$as_me: failed program was:" >&5
9627 sed 's/^/| /' conftest.$ac_ext >&5
9629 ac_lo=`expr '(' $ac_mid ')' + 1`
9631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9634 ?*) ac_cv_sizeof_int_p=$ac_lo;;
9635 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
9636 See \`config.log' for more details." >&5
9637 echo "$as_me: error: cannot compute sizeof (int *), 77
9638 See \`config.log' for more details." >&2;}
9639 { (exit 1); exit 1; }; } ;;
9642 if test "$cross_compiling" = yes; then
9643 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
9644 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
9645 { (exit 1); exit 1; }; }
9647 cat >conftest.$ac_ext <<_ACEOF
9650 cat confdefs.h >>conftest.$ac_ext
9651 cat >>conftest.$ac_ext <<_ACEOF
9652 /* end confdefs.h. */
9653 $ac_includes_default
9654 long longval () { return (long) (sizeof (int *)); }
9655 unsigned long ulongval () { return (long) (sizeof (int *)); }
9662 FILE *f = fopen ("conftest.val", "w");
9665 if (((long) (sizeof (int *))) < 0)
9667 long i = longval ();
9668 if (i != ((long) (sizeof (int *))))
9670 fprintf (f, "%ld\n", i);
9674 unsigned long i = ulongval ();
9675 if (i != ((long) (sizeof (int *))))
9677 fprintf (f, "%lu\n", i);
9679 exit (ferror (f) || fclose (f) != 0);
9685 rm -f conftest$ac_exeext
9686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9687 (eval $ac_link) 2>&5
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695 (exit $ac_status); }; }; then
9696 ac_cv_sizeof_int_p=`cat conftest.val`
9698 echo "$as_me: program exited with status $ac_status" >&5
9699 echo "$as_me: failed program was:" >&5
9700 sed 's/^/| /' conftest.$ac_ext >&5
9703 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
9704 See \`config.log' for more details." >&5
9705 echo "$as_me: error: cannot compute sizeof (int *), 77
9706 See \`config.log' for more details." >&2;}
9707 { (exit 1); exit 1; }; }
9709 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9714 ac_cv_sizeof_int_p=0
9717 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
9718 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
9719 cat >>confdefs.h <<_ACEOF
9720 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
9726 echo "$as_me:$LINENO: checking for int16_t" >&5
9727 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
9728 if test "${rxvt_cv_int16_t+set}" = set; then
9729 echo $ECHO_N "(cached) $ECHO_C" >&6
9731 cat >conftest.$ac_ext <<_ACEOF
9734 cat confdefs.h >>conftest.$ac_ext
9735 cat >>conftest.$ac_ext <<_ACEOF
9736 /* end confdefs.h. */
9746 rm -f conftest.$ac_objext
9747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9748 (eval $ac_compile) 2>conftest.er1
9750 grep -v '^ *+' conftest.er1 >conftest.err
9752 cat conftest.err >&5
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); } &&
9755 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); }; } &&
9761 { ac_try='test -s conftest.$ac_objext'
9762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); }; }; then
9769 echo "$as_me: failed program was:" >&5
9770 sed 's/^/| /' conftest.$ac_ext >&5
9772 if test "$ac_cv_sizeof_char" -ge 2; then
9773 rxvt_cv_int16_t=" char"
9775 if test "$ac_cv_sizeof_short" -ge 2; then
9776 rxvt_cv_int16_t=" short"
9778 if test "$ac_cv_sizeof_int" -ge 2; then
9779 rxvt_cv_int16_t=" int"
9781 if test "$ac_cv_sizeof_long" -ge 2; then
9782 rxvt_cv_int16_t=" long"
9784 if test "$ac_cv_sizeof_long_long" -ge 2; then
9785 rxvt_cv_int16_t=" long long"
9787 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
9794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9796 echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5
9797 echo "${ECHO_T}$rxvt_cv_int16_t" >&6
9798 if test x"$rxvt_cv_int16_t" != xyes; then
9799 rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;"
9801 if test x"" = x; then
9802 rxvt_int16_typedef="/* typedef short int16_t; */"
9804 rxvt_int16_typedef="/* typedef short int16_t; */"
9808 echo "$as_me:$LINENO: checking for uint16_t" >&5
9809 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
9810 if test "${rxvt_cv_uint16_t+set}" = set; then
9811 echo $ECHO_N "(cached) $ECHO_C" >&6
9813 cat >conftest.$ac_ext <<_ACEOF
9816 cat confdefs.h >>conftest.$ac_ext
9817 cat >>conftest.$ac_ext <<_ACEOF
9818 /* end confdefs.h. */
9828 rm -f conftest.$ac_objext
9829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9830 (eval $ac_compile) 2>conftest.er1
9832 grep -v '^ *+' conftest.er1 >conftest.err
9834 cat conftest.err >&5
9835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836 (exit $ac_status); } &&
9837 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842 (exit $ac_status); }; } &&
9843 { ac_try='test -s conftest.$ac_objext'
9844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848 (exit $ac_status); }; }; then
9849 rxvt_cv_uint16_t=yes
9851 echo "$as_me: failed program was:" >&5
9852 sed 's/^/| /' conftest.$ac_ext >&5
9854 if test "$ac_cv_sizeof_char" -ge 2; then
9855 rxvt_cv_uint16_t="unsigned char"
9857 if test "$ac_cv_sizeof_short" -ge 2; then
9858 rxvt_cv_uint16_t="unsigned short"
9860 if test "$ac_cv_sizeof_int" -ge 2; then
9861 rxvt_cv_uint16_t="unsigned int"
9863 if test "$ac_cv_sizeof_long" -ge 2; then
9864 rxvt_cv_uint16_t="unsigned long"
9866 if test "$ac_cv_sizeof_long_long" -ge 2; then
9867 rxvt_cv_uint16_t="unsigned long long"
9869 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default
9876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9878 echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5
9879 echo "${ECHO_T}$rxvt_cv_uint16_t" >&6
9880 if test x"$rxvt_cv_uint16_t" != xyes; then
9881 rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;"
9883 if test x"unsigned" = x; then
9884 rxvt_uint16_typedef="/* typedef short uint16_t; */"
9886 rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */"
9890 echo "$as_me:$LINENO: checking for int32_t" >&5
9891 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
9892 if test "${rxvt_cv_int32_t+set}" = set; then
9893 echo $ECHO_N "(cached) $ECHO_C" >&6
9895 cat >conftest.$ac_ext <<_ACEOF
9898 cat confdefs.h >>conftest.$ac_ext
9899 cat >>conftest.$ac_ext <<_ACEOF
9900 /* end confdefs.h. */
9910 rm -f conftest.$ac_objext
9911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9912 (eval $ac_compile) 2>conftest.er1
9914 grep -v '^ *+' conftest.er1 >conftest.err
9916 cat conftest.err >&5
9917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918 (exit $ac_status); } &&
9919 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924 (exit $ac_status); }; } &&
9925 { ac_try='test -s conftest.$ac_objext'
9926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930 (exit $ac_status); }; }; then
9933 echo "$as_me: failed program was:" >&5
9934 sed 's/^/| /' conftest.$ac_ext >&5
9936 if test "$ac_cv_sizeof_char" -ge 4; then
9937 rxvt_cv_int32_t=" char"
9939 if test "$ac_cv_sizeof_short" -ge 4; then
9940 rxvt_cv_int32_t=" short"
9942 if test "$ac_cv_sizeof_int" -ge 4; then
9943 rxvt_cv_int32_t=" int"
9945 if test "$ac_cv_sizeof_long" -ge 4; then
9946 rxvt_cv_int32_t=" long"
9948 if test "$ac_cv_sizeof_long_long" -ge 4; then
9949 rxvt_cv_int32_t=" long long"
9951 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
9958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9960 echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5
9961 echo "${ECHO_T}$rxvt_cv_int32_t" >&6
9962 if test x"$rxvt_cv_int32_t" != xyes; then
9963 rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;"
9965 if test x"" = x; then
9966 rxvt_int32_typedef="/* typedef int int32_t; */"
9968 rxvt_int32_typedef="/* typedef int int32_t; */"
9972 echo "$as_me:$LINENO: checking for uint32_t" >&5
9973 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
9974 if test "${rxvt_cv_uint32_t+set}" = set; then
9975 echo $ECHO_N "(cached) $ECHO_C" >&6
9977 cat >conftest.$ac_ext <<_ACEOF
9980 cat confdefs.h >>conftest.$ac_ext
9981 cat >>conftest.$ac_ext <<_ACEOF
9982 /* end confdefs.h. */
9992 rm -f conftest.$ac_objext
9993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9994 (eval $ac_compile) 2>conftest.er1
9996 grep -v '^ *+' conftest.er1 >conftest.err
9998 cat conftest.err >&5
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); } &&
10001 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10003 (eval $ac_try) 2>&5
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); }; } &&
10007 { ac_try='test -s conftest.$ac_objext'
10008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10009 (eval $ac_try) 2>&5
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 (exit $ac_status); }; }; then
10013 rxvt_cv_uint32_t=yes
10015 echo "$as_me: failed program was:" >&5
10016 sed 's/^/| /' conftest.$ac_ext >&5
10018 if test "$ac_cv_sizeof_char" -ge 4; then
10019 rxvt_cv_uint32_t="unsigned char"
10021 if test "$ac_cv_sizeof_short" -ge 4; then
10022 rxvt_cv_uint32_t="unsigned short"
10024 if test "$ac_cv_sizeof_int" -ge 4; then
10025 rxvt_cv_uint32_t="unsigned int"
10027 if test "$ac_cv_sizeof_long" -ge 4; then
10028 rxvt_cv_uint32_t="unsigned long"
10030 if test "$ac_cv_sizeof_long_long" -ge 4; then
10031 rxvt_cv_uint32_t="unsigned long long"
10033 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default
10040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10042 echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5
10043 echo "${ECHO_T}$rxvt_cv_uint32_t" >&6
10044 if test x"$rxvt_cv_uint32_t" != xyes; then
10045 rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;"
10047 if test x"unsigned" = x; then
10048 rxvt_uint32_typedef="/* typedef int uint32_t; */"
10050 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
10054 if test "$ac_cv_sizeof_int_p" -eq 8; then
10055 rxvt_intp_define="#define intp_t int64_t"
10056 rxvt_u_intp_define="#define u_intp_t u_int64_t"
10058 if test "$ac_cv_sizeof_int_p" -eq 4; then
10059 rxvt_intp_define="#define intp_t int32_t"
10060 rxvt_u_intp_define="#define u_intp_t u_int32_t"
10062 if test "$ac_cv_sizeof_int_p" -eq 2; then
10063 rxvt_intp_define="#define intp_t int16_t"
10064 rxvt_u_intp_define="#define u_intp_t u_int16_t"
10066 rxvt_intp_define="#error set intp_t"
10067 rxvt_u_intp_define="#error set u_intp_t"
10074 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10075 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10076 if test "${ac_cv_type_signal+set}" = set; then
10077 echo $ECHO_N "(cached) $ECHO_C" >&6
10079 cat >conftest.$ac_ext <<_ACEOF
10082 cat confdefs.h >>conftest.$ac_ext
10083 cat >>conftest.$ac_ext <<_ACEOF
10084 /* end confdefs.h. */
10085 #include <sys/types.h>
10086 #include <signal.h>
10091 extern "C" void (*signal (int, void (*)(int)))(int);
10093 void (*signal ()) ();
10104 rm -f conftest.$ac_objext
10105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10106 (eval $ac_compile) 2>conftest.er1
10108 grep -v '^ *+' conftest.er1 >conftest.err
10110 cat conftest.err >&5
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); } &&
10113 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10115 (eval $ac_try) 2>&5
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 (exit $ac_status); }; } &&
10119 { ac_try='test -s conftest.$ac_objext'
10120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10121 (eval $ac_try) 2>&5
10123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124 (exit $ac_status); }; }; then
10125 ac_cv_type_signal=void
10127 echo "$as_me: failed program was:" >&5
10128 sed 's/^/| /' conftest.$ac_ext >&5
10130 ac_cv_type_signal=int
10132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10134 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10135 echo "${ECHO_T}$ac_cv_type_signal" >&6
10137 cat >>confdefs.h <<_ACEOF
10138 #define RETSIGTYPE $ac_cv_type_signal
10143 case "$host_alias" in
10144 *ultrix) ac_cv_func_setsid='no' ;;
10189 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10190 echo "$as_me:$LINENO: checking for $ac_func" >&5
10191 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10192 if eval "test \"\${$as_ac_var+set}\" = set"; then
10193 echo $ECHO_N "(cached) $ECHO_C" >&6
10195 cat >conftest.$ac_ext <<_ACEOF
10198 cat confdefs.h >>conftest.$ac_ext
10199 cat >>conftest.$ac_ext <<_ACEOF
10200 /* end confdefs.h. */
10201 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10202 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10203 #define $ac_func innocuous_$ac_func
10205 /* System header to define __stub macros and hopefully few prototypes,
10206 which can conflict with char $ac_func (); below.
10207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10208 <limits.h> exists even on freestanding compilers. */
10211 # include <limits.h>
10213 # include <assert.h>
10218 /* Override any gcc2 internal prototype to avoid an error. */
10223 /* We use char because int might match the return type of a gcc2
10224 builtin and then its argument prototype would still apply. */
10226 /* The GNU C library defines this for functions which it implements
10227 to always fail with ENOSYS. Some functions are actually named
10228 something starting with __ and the normal name is an alias. */
10229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10232 char (*f) () = $ac_func;
10241 return f != $ac_func;
10246 rm -f conftest.$ac_objext conftest$ac_exeext
10247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10248 (eval $ac_link) 2>conftest.er1
10250 grep -v '^ *+' conftest.er1 >conftest.err
10252 cat conftest.err >&5
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); } &&
10255 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10257 (eval $ac_try) 2>&5
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); }; } &&
10261 { ac_try='test -s conftest$ac_exeext'
10262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10263 (eval $ac_try) 2>&5
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); }; }; then
10267 eval "$as_ac_var=yes"
10269 echo "$as_me: failed program was:" >&5
10270 sed 's/^/| /' conftest.$ac_ext >&5
10272 eval "$as_ac_var=no"
10274 rm -f conftest.err conftest.$ac_objext \
10275 conftest$ac_exeext conftest.$ac_ext
10277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10278 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10279 if test `eval echo '${'$as_ac_var'}'` = yes; then
10280 cat >>confdefs.h <<_ACEOF
10281 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10289 if test "${ac_cv_header_utmp_h+set}" = set; then
10290 echo "$as_me:$LINENO: checking for utmp.h" >&5
10291 echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
10292 if test "${ac_cv_header_utmp_h+set}" = set; then
10293 echo $ECHO_N "(cached) $ECHO_C" >&6
10295 echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
10296 echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
10298 # Is the header compilable?
10299 echo "$as_me:$LINENO: checking utmp.h usability" >&5
10300 echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6
10301 cat >conftest.$ac_ext <<_ACEOF
10304 cat confdefs.h >>conftest.$ac_ext
10305 cat >>conftest.$ac_ext <<_ACEOF
10306 /* end confdefs.h. */
10307 $ac_includes_default
10310 rm -f conftest.$ac_objext
10311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10312 (eval $ac_compile) 2>conftest.er1
10314 grep -v '^ *+' conftest.er1 >conftest.err
10316 cat conftest.err >&5
10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318 (exit $ac_status); } &&
10319 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10321 (eval $ac_try) 2>&5
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); }; } &&
10325 { ac_try='test -s conftest.$ac_objext'
10326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10327 (eval $ac_try) 2>&5
10329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330 (exit $ac_status); }; }; then
10331 ac_header_compiler=yes
10333 echo "$as_me: failed program was:" >&5
10334 sed 's/^/| /' conftest.$ac_ext >&5
10336 ac_header_compiler=no
10338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10339 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10340 echo "${ECHO_T}$ac_header_compiler" >&6
10342 # Is the header present?
10343 echo "$as_me:$LINENO: checking utmp.h presence" >&5
10344 echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6
10345 cat >conftest.$ac_ext <<_ACEOF
10348 cat confdefs.h >>conftest.$ac_ext
10349 cat >>conftest.$ac_ext <<_ACEOF
10350 /* end confdefs.h. */
10353 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10354 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10356 grep -v '^ *+' conftest.er1 >conftest.err
10358 cat conftest.err >&5
10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); } >/dev/null; then
10361 if test -s conftest.err; then
10362 ac_cpp_err=$ac_cxx_preproc_warn_flag
10363 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10370 if test -z "$ac_cpp_err"; then
10371 ac_header_preproc=yes
10373 echo "$as_me: failed program was:" >&5
10374 sed 's/^/| /' conftest.$ac_ext >&5
10376 ac_header_preproc=no
10378 rm -f conftest.err conftest.$ac_ext
10379 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10380 echo "${ECHO_T}$ac_header_preproc" >&6
10382 # So? What about this header?
10383 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10385 { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
10386 echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10387 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5
10388 echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;}
10389 ac_header_preproc=yes
10392 { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5
10393 echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;}
10394 { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5
10395 echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;}
10396 { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5
10397 echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;}
10398 { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5
10399 echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
10400 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5
10401 echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;}
10402 { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5
10403 echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;}
10406 ## ------------------------------------------ ##
10407 ## Report this to the AC_PACKAGE_NAME lists. ##
10408 ## ------------------------------------------ ##
10411 sed "s/^/$as_me: WARNING: /" >&2
10414 echo "$as_me:$LINENO: checking for utmp.h" >&5
10415 echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
10416 if test "${ac_cv_header_utmp_h+set}" = set; then
10417 echo $ECHO_N "(cached) $ECHO_C" >&6
10419 ac_cv_header_utmp_h=$ac_header_preproc
10421 echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
10422 echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
10425 if test $ac_cv_header_utmp_h = yes; then
10426 echo "$as_me:$LINENO: checking for struct utmp" >&5
10427 echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6
10428 if test "${rxvt_cv_struct_utmp+set}" = set; then
10429 echo $ECHO_N "(cached) $ECHO_C" >&6
10431 cat >conftest.$ac_ext <<_ACEOF
10434 cat confdefs.h >>conftest.$ac_ext
10435 cat >>conftest.$ac_ext <<_ACEOF
10436 /* end confdefs.h. */
10437 #include <sys/types.h>
10438 #include <stdint.h>
10448 rm -f conftest.$ac_objext
10449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10450 (eval $ac_compile) 2>conftest.er1
10452 grep -v '^ *+' conftest.er1 >conftest.err
10454 cat conftest.err >&5
10455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456 (exit $ac_status); } &&
10457 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10459 (eval $ac_try) 2>&5
10461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462 (exit $ac_status); }; } &&
10463 { ac_try='test -s conftest.$ac_objext'
10464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10465 (eval $ac_try) 2>&5
10467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468 (exit $ac_status); }; }; then
10469 rxvt_cv_struct_utmp=yes
10471 echo "$as_me: failed program was:" >&5
10472 sed 's/^/| /' conftest.$ac_ext >&5
10474 rxvt_cv_struct_utmp=no
10476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10478 echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp" >&5
10479 echo "${ECHO_T}$rxvt_cv_struct_utmp" >&6
10480 if test x$rxvt_cv_struct_utmp = xyes; then
10482 cat >>confdefs.h <<\_ACEOF
10483 #define HAVE_STRUCT_UTMP 1
10489 echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5
10490 echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6
10491 if test "${rxvt_cv_struct_utmp_host+set}" = set; then
10492 echo $ECHO_N "(cached) $ECHO_C" >&6
10494 cat >conftest.$ac_ext <<_ACEOF
10497 cat confdefs.h >>conftest.$ac_ext
10498 cat >>conftest.$ac_ext <<_ACEOF
10499 /* end confdefs.h. */
10500 #include <sys/types.h>
10505 struct utmp ut; ut.ut_host;
10510 rm -f conftest.$ac_objext
10511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10512 (eval $ac_compile) 2>conftest.er1
10514 grep -v '^ *+' conftest.er1 >conftest.err
10516 cat conftest.err >&5
10517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518 (exit $ac_status); } &&
10519 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10521 (eval $ac_try) 2>&5
10523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); }; } &&
10525 { ac_try='test -s conftest.$ac_objext'
10526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10527 (eval $ac_try) 2>&5
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); }; }; then
10531 rxvt_cv_struct_utmp_host=yes
10533 echo "$as_me: failed program was:" >&5
10534 sed 's/^/| /' conftest.$ac_ext >&5
10536 rxvt_cv_struct_utmp_host=no
10538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10540 echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_host" >&5
10541 echo "${ECHO_T}$rxvt_cv_struct_utmp_host" >&6
10542 if test x$rxvt_cv_struct_utmp_host = xyes; then
10544 cat >>confdefs.h <<\_ACEOF
10545 #define HAVE_UTMP_HOST 1
10550 echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5
10551 echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6
10552 if test "${rxvt_cv_struct_utmp_pid+set}" = set; then
10553 echo $ECHO_N "(cached) $ECHO_C" >&6
10555 cat >conftest.$ac_ext <<_ACEOF
10558 cat confdefs.h >>conftest.$ac_ext
10559 cat >>conftest.$ac_ext <<_ACEOF
10560 /* end confdefs.h. */
10561 #include <sys/types.h>
10566 struct utmp ut; ut.ut_pid;
10571 rm -f conftest.$ac_objext
10572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10573 (eval $ac_compile) 2>conftest.er1
10575 grep -v '^ *+' conftest.er1 >conftest.err
10577 cat conftest.err >&5
10578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); } &&
10580 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10582 (eval $ac_try) 2>&5
10584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585 (exit $ac_status); }; } &&
10586 { ac_try='test -s conftest.$ac_objext'
10587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10588 (eval $ac_try) 2>&5
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); }; }; then
10592 rxvt_cv_struct_utmp_pid=yes
10594 echo "$as_me: failed program was:" >&5
10595 sed 's/^/| /' conftest.$ac_ext >&5
10597 rxvt_cv_struct_utmp_pid=no
10599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10601 echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_pid" >&5
10602 echo "${ECHO_T}$rxvt_cv_struct_utmp_pid" >&6
10603 if test x$rxvt_cv_struct_utmp_pid = xyes; then
10605 cat >>confdefs.h <<\_ACEOF
10606 #define HAVE_UTMP_PID 1
10615 if test "${ac_cv_header_utmpx_h+set}" = set; then
10616 echo "$as_me:$LINENO: checking for utmpx.h" >&5
10617 echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
10618 if test "${ac_cv_header_utmpx_h+set}" = set; then
10619 echo $ECHO_N "(cached) $ECHO_C" >&6
10621 echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
10622 echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
10624 # Is the header compilable?
10625 echo "$as_me:$LINENO: checking utmpx.h usability" >&5
10626 echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6
10627 cat >conftest.$ac_ext <<_ACEOF
10630 cat confdefs.h >>conftest.$ac_ext
10631 cat >>conftest.$ac_ext <<_ACEOF
10632 /* end confdefs.h. */
10633 $ac_includes_default
10636 rm -f conftest.$ac_objext
10637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10638 (eval $ac_compile) 2>conftest.er1
10640 grep -v '^ *+' conftest.er1 >conftest.err
10642 cat conftest.err >&5
10643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644 (exit $ac_status); } &&
10645 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10647 (eval $ac_try) 2>&5
10649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650 (exit $ac_status); }; } &&
10651 { ac_try='test -s conftest.$ac_objext'
10652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10653 (eval $ac_try) 2>&5
10655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656 (exit $ac_status); }; }; then
10657 ac_header_compiler=yes
10659 echo "$as_me: failed program was:" >&5
10660 sed 's/^/| /' conftest.$ac_ext >&5
10662 ac_header_compiler=no
10664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10665 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10666 echo "${ECHO_T}$ac_header_compiler" >&6
10668 # Is the header present?
10669 echo "$as_me:$LINENO: checking utmpx.h presence" >&5
10670 echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6
10671 cat >conftest.$ac_ext <<_ACEOF
10674 cat confdefs.h >>conftest.$ac_ext
10675 cat >>conftest.$ac_ext <<_ACEOF
10676 /* end confdefs.h. */
10679 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10680 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10682 grep -v '^ *+' conftest.er1 >conftest.err
10684 cat conftest.err >&5
10685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686 (exit $ac_status); } >/dev/null; then
10687 if test -s conftest.err; then
10688 ac_cpp_err=$ac_cxx_preproc_warn_flag
10689 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10696 if test -z "$ac_cpp_err"; then
10697 ac_header_preproc=yes
10699 echo "$as_me: failed program was:" >&5
10700 sed 's/^/| /' conftest.$ac_ext >&5
10702 ac_header_preproc=no
10704 rm -f conftest.err conftest.$ac_ext
10705 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10706 echo "${ECHO_T}$ac_header_preproc" >&6
10708 # So? What about this header?
10709 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10711 { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5
10712 echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10713 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5
10714 echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;}
10715 ac_header_preproc=yes
10718 { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5
10719 echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;}
10720 { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5
10721 echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;}
10722 { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5
10723 echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;}
10724 { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5
10725 echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;}
10726 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5
10727 echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;}
10728 { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5
10729 echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;}
10732 ## ------------------------------------------ ##
10733 ## Report this to the AC_PACKAGE_NAME lists. ##
10734 ## ------------------------------------------ ##
10737 sed "s/^/$as_me: WARNING: /" >&2
10740 echo "$as_me:$LINENO: checking for utmpx.h" >&5
10741 echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
10742 if test "${ac_cv_header_utmpx_h+set}" = set; then
10743 echo $ECHO_N "(cached) $ECHO_C" >&6
10745 ac_cv_header_utmpx_h=$ac_header_preproc
10747 echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
10748 echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
10751 if test $ac_cv_header_utmpx_h = yes; then
10752 echo "$as_me:$LINENO: checking for struct utmpx" >&5
10753 echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6
10754 if test "${rxvt_cv_struct_utmpx+set}" = set; then
10755 echo $ECHO_N "(cached) $ECHO_C" >&6
10757 cat >conftest.$ac_ext <<_ACEOF
10760 cat confdefs.h >>conftest.$ac_ext
10761 cat >>conftest.$ac_ext <<_ACEOF
10762 /* end confdefs.h. */
10763 #include <sys/types.h>
10773 rm -f conftest.$ac_objext
10774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10775 (eval $ac_compile) 2>conftest.er1
10777 grep -v '^ *+' conftest.er1 >conftest.err
10779 cat conftest.err >&5
10780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781 (exit $ac_status); } &&
10782 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10784 (eval $ac_try) 2>&5
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); }; } &&
10788 { ac_try='test -s conftest.$ac_objext'
10789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10790 (eval $ac_try) 2>&5
10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); }; }; then
10794 rxvt_cv_struct_utmpx=yes
10796 echo "$as_me: failed program was:" >&5
10797 sed 's/^/| /' conftest.$ac_ext >&5
10799 rxvt_cv_struct_utmpx=no
10801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10803 echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx" >&5
10804 echo "${ECHO_T}$rxvt_cv_struct_utmpx" >&6
10805 if test x$rxvt_cv_struct_utmpx = xyes; then
10807 cat >>confdefs.h <<\_ACEOF
10808 #define HAVE_STRUCT_UTMPX 1
10814 echo "$as_me:$LINENO: checking for host in utmpx struct" >&5
10815 echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6
10816 if test "${rxvt_cv_struct_utmpx_host+set}" = set; then
10817 echo $ECHO_N "(cached) $ECHO_C" >&6
10819 cat >conftest.$ac_ext <<_ACEOF
10822 cat confdefs.h >>conftest.$ac_ext
10823 cat >>conftest.$ac_ext <<_ACEOF
10824 /* end confdefs.h. */
10825 #include <sys/types.h>
10830 struct utmpx utx; utx.ut_host;
10835 rm -f conftest.$ac_objext
10836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10837 (eval $ac_compile) 2>conftest.er1
10839 grep -v '^ *+' conftest.er1 >conftest.err
10841 cat conftest.err >&5
10842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843 (exit $ac_status); } &&
10844 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10846 (eval $ac_try) 2>&5
10848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849 (exit $ac_status); }; } &&
10850 { ac_try='test -s conftest.$ac_objext'
10851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10852 (eval $ac_try) 2>&5
10854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855 (exit $ac_status); }; }; then
10856 rxvt_cv_struct_utmpx_host=yes
10858 echo "$as_me: failed program was:" >&5
10859 sed 's/^/| /' conftest.$ac_ext >&5
10861 rxvt_cv_struct_utmpx_host=no
10863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10865 echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_host" >&5
10866 echo "${ECHO_T}$rxvt_cv_struct_utmpx_host" >&6
10867 if test x$rxvt_cv_struct_utmpx_host = xyes; then
10869 cat >>confdefs.h <<\_ACEOF
10870 #define HAVE_UTMPX_HOST 1
10875 echo "$as_me:$LINENO: checking for session in utmpx struct" >&5
10876 echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6
10877 if test "${rxvt_cv_struct_utmpx_session+set}" = set; then
10878 echo $ECHO_N "(cached) $ECHO_C" >&6
10880 cat >conftest.$ac_ext <<_ACEOF
10883 cat confdefs.h >>conftest.$ac_ext
10884 cat >>conftest.$ac_ext <<_ACEOF
10885 /* end confdefs.h. */
10886 #include <sys/types.h>
10891 struct utmpx utx; utx.ut_session;
10896 rm -f conftest.$ac_objext
10897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10898 (eval $ac_compile) 2>conftest.er1
10900 grep -v '^ *+' conftest.er1 >conftest.err
10902 cat conftest.err >&5
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); } &&
10905 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10907 (eval $ac_try) 2>&5
10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); }; } &&
10911 { ac_try='test -s conftest.$ac_objext'
10912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10913 (eval $ac_try) 2>&5
10915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916 (exit $ac_status); }; }; then
10917 rxvt_cv_struct_utmpx_session=yes
10919 echo "$as_me: failed program was:" >&5
10920 sed 's/^/| /' conftest.$ac_ext >&5
10922 rxvt_cv_struct_utmpx_session=no
10924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10926 echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_session" >&5
10927 echo "${ECHO_T}$rxvt_cv_struct_utmpx_session" >&6
10928 if test x$rxvt_cv_struct_utmpx_session = xyes; then
10930 cat >>confdefs.h <<\_ACEOF
10931 #define HAVE_UTMPX_SESSION 1
10939 echo "$as_me:$LINENO: checking for struct lastlog" >&5
10940 echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6
10941 if test "${rxvt_cv_struct_lastlog+set}" = set; then
10942 echo $ECHO_N "(cached) $ECHO_C" >&6
10944 cat >conftest.$ac_ext <<_ACEOF
10947 cat confdefs.h >>conftest.$ac_ext
10948 cat >>conftest.$ac_ext <<_ACEOF
10949 /* end confdefs.h. */
10950 #include <sys/types.h>
10952 #ifdef HAVE_LASTLOG_H
10953 #include <lastlog.h>
10964 rm -f conftest.$ac_objext
10965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10966 (eval $ac_compile) 2>conftest.er1
10968 grep -v '^ *+' conftest.er1 >conftest.err
10970 cat conftest.err >&5
10971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972 (exit $ac_status); } &&
10973 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10975 (eval $ac_try) 2>&5
10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978 (exit $ac_status); }; } &&
10979 { ac_try='test -s conftest.$ac_objext'
10980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10981 (eval $ac_try) 2>&5
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984 (exit $ac_status); }; }; then
10985 rxvt_cv_struct_lastlog=yes
10987 echo "$as_me: failed program was:" >&5
10988 sed 's/^/| /' conftest.$ac_ext >&5
10990 rxvt_cv_struct_lastlog=no
10992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10994 echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlog" >&5
10995 echo "${ECHO_T}$rxvt_cv_struct_lastlog" >&6
10996 if test x$rxvt_cv_struct_lastlog = xyes; then
10998 cat >>confdefs.h <<\_ACEOF
10999 #define HAVE_STRUCT_LASTLOG 1
11004 echo "$as_me:$LINENO: checking for struct lastlogx" >&5
11005 echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6
11006 if test "${rxvt_cv_struct_lastlogx+set}" = set; then
11007 echo $ECHO_N "(cached) $ECHO_C" >&6
11009 cat >conftest.$ac_ext <<_ACEOF
11012 cat confdefs.h >>conftest.$ac_ext
11013 cat >>conftest.$ac_ext <<_ACEOF
11014 /* end confdefs.h. */
11015 #include <sys/types.h>
11017 #ifdef HAVE_LASTLOG_H
11018 #include <lastlog.h>
11024 struct lastlogx ll;
11029 rm -f conftest.$ac_objext
11030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11031 (eval $ac_compile) 2>conftest.er1
11033 grep -v '^ *+' conftest.er1 >conftest.err
11035 cat conftest.err >&5
11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); } &&
11038 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11040 (eval $ac_try) 2>&5
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); }; } &&
11044 { ac_try='test -s conftest.$ac_objext'
11045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11046 (eval $ac_try) 2>&5
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); }; }; then
11050 rxvt_cv_struct_lastlogx=yes
11052 echo "$as_me: failed program was:" >&5
11053 sed 's/^/| /' conftest.$ac_ext >&5
11055 rxvt_cv_struct_lastlogx=no
11057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11059 echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlogx" >&5
11060 echo "${ECHO_T}$rxvt_cv_struct_lastlogx" >&6
11061 if test x$rxvt_cv_struct_lastlogx = xyes; then
11063 cat >>confdefs.h <<\_ACEOF
11064 #define HAVE_STRUCT_LASTLOGX 1
11070 echo "$as_me:$LINENO: checking where utmp is located" >&5
11071 echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6
11072 if test "${rxvt_cv_path_utmp+set}" = set; then
11073 echo $ECHO_N "(cached) $ECHO_C" >&6
11075 if test "$cross_compiling" = yes; then
11076 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&5
11077 echo "$as_me: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&2;}
11079 cat >conftest.$ac_ext <<_ACEOF
11082 cat confdefs.h >>conftest.$ac_ext
11083 cat >>conftest.$ac_ext <<_ACEOF
11084 /* end confdefs.h. */
11086 #include <sys/types.h>
11091 char **u, *utmplist[] = {
11092 "/var/run/utmp", "/var/adm/utmp", "/etc/utmp", "/usr/etc/utmp", "/usr/adm/utmp", NULL };
11093 FILE *a, *f=fopen("conftestval", "w");
11096 fprintf(f, "%s\n", UTMP_FILE);
11100 fprintf(f, "%s\n", _PATH_UTMP);
11103 for (u = utmplist; *u; u++) {
11104 if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
11105 fprintf(f, "%s\n", *u);
11112 rm -f conftest$ac_exeext
11113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11114 (eval $ac_link) 2>&5
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11119 (eval $ac_try) 2>&5
11121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122 (exit $ac_status); }; }; then
11123 rxvt_cv_path_utmp=`cat conftestval`
11125 echo "$as_me: program exited with status $ac_status" >&5
11126 echo "$as_me: failed program was:" >&5
11127 sed 's/^/| /' conftest.$ac_ext >&5
11129 ( exit $ac_status )
11132 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11135 echo "$as_me:$LINENO: result: $rxvt_cv_path_utmp" >&5
11136 echo "${ECHO_T}$rxvt_cv_path_utmp" >&6
11137 if test x$rxvt_cv_path_utmp != x; then
11139 cat >>confdefs.h <<_ACEOF
11140 #define RXVT_UTMP_FILE "$rxvt_cv_path_utmp"
11146 echo "$as_me:$LINENO: checking where utmpx is located" >&5
11147 echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6
11148 if test "${rxvt_cv_path_utmpx+set}" = set; then
11149 echo $ECHO_N "(cached) $ECHO_C" >&6
11151 if test "$cross_compiling" = yes; then
11152 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&5
11153 echo "$as_me: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&2;}
11155 cat >conftest.$ac_ext <<_ACEOF
11158 cat confdefs.h >>conftest.$ac_ext
11159 cat >>conftest.$ac_ext <<_ACEOF
11160 /* end confdefs.h. */
11162 #include <sys/types.h>
11165 #include <sys/stat.h>
11166 #ifdef HAVE_STRING_H
11167 #include <string.h>
11171 char **u, *p, *utmplist[] = {
11178 "/var/adm/utmpx", "/etc/utmpx", NULL };
11179 FILE *a, *f=fopen("conftestval", "w");
11180 struct stat statu, statux;
11182 for (u = utmplist; *u; u++) {
11183 if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
11184 if (stat(*u, &statux) < 0)
11187 p[strlen(p) - 1] = '\0';
11188 if (stat(p, &statu) >= 0
11189 && (statu.st_mtime - statux.st_mtime > 86400))
11191 fprintf(f, "%s\n", *u);
11198 rm -f conftest$ac_exeext
11199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11200 (eval $ac_link) 2>&5
11202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11205 (eval $ac_try) 2>&5
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); }; }; then
11209 rxvt_cv_path_utmpx=`cat conftestval`
11211 echo "$as_me: program exited with status $ac_status" >&5
11212 echo "$as_me: failed program was:" >&5
11213 sed 's/^/| /' conftest.$ac_ext >&5
11215 ( exit $ac_status )
11216 rxvt_cv_path_utmpx=
11218 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11221 echo "$as_me:$LINENO: result: $rxvt_cv_path_utmpx" >&5
11222 echo "${ECHO_T}$rxvt_cv_path_utmpx" >&6
11223 if test x$rxvt_cv_path_utmpx != x; then
11225 cat >>confdefs.h <<_ACEOF
11226 #define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx"
11232 echo "$as_me:$LINENO: checking where wtmp is located" >&5
11233 echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6
11234 if test "${rxvt_cv_path_wtmp+set}" = set; then
11235 echo $ECHO_N "(cached) $ECHO_C" >&6
11237 if test "$cross_compiling" = yes; then
11238 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&5
11239 echo "$as_me: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&2;}
11241 cat >conftest.$ac_ext <<_ACEOF
11244 cat confdefs.h >>conftest.$ac_ext
11245 cat >>conftest.$ac_ext <<_ACEOF
11246 /* end confdefs.h. */
11248 #include <sys/types.h>
11255 char **w, *wtmplist[] = {
11256 "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL };
11257 FILE *a, *f=fopen("conftestval", "w");
11260 fprintf(f, "%s\n", WTMP_FILE);
11264 fprintf(f, "%s\n", _PATH_WTMP);
11267 for (w = wtmplist; *w; w++) {
11268 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11269 fprintf(f, "%s\n", *w);
11276 rm -f conftest$ac_exeext
11277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11278 (eval $ac_link) 2>&5
11280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11283 (eval $ac_try) 2>&5
11285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286 (exit $ac_status); }; }; then
11287 rxvt_cv_path_wtmp=`cat conftestval`
11289 echo "$as_me: program exited with status $ac_status" >&5
11290 echo "$as_me: failed program was:" >&5
11291 sed 's/^/| /' conftest.$ac_ext >&5
11293 ( exit $ac_status )
11296 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11299 echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmp" >&5
11300 echo "${ECHO_T}$rxvt_cv_path_wtmp" >&6
11301 if test x$rxvt_cv_path_wtmp != x; then
11303 cat >>confdefs.h <<_ACEOF
11304 #define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp"
11309 echo "$as_me:$LINENO: checking where wtmpx is located" >&5
11310 echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6
11311 if test "${rxvt_cv_path_wtmpx+set}" = set; then
11312 echo $ECHO_N "(cached) $ECHO_C" >&6
11314 if test "$cross_compiling" = yes; then
11315 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&5
11316 echo "$as_me: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&2;}
11318 cat >conftest.$ac_ext <<_ACEOF
11321 cat confdefs.h >>conftest.$ac_ext
11322 cat >>conftest.$ac_ext <<_ACEOF
11323 /* end confdefs.h. */
11325 #ifdef HAVE_UTMPX_H
11331 char **w, *wtmplist[] = {
11332 "/var/log/wtmpx", "/var/adm/wtmpx", NULL };
11333 FILE *a, *f=fopen("conftestval", "w");
11336 fprintf(f, "%s\n", WTMPX_FILE);
11340 fprintf(f, "%s\n", _PATH_WTMPX);
11343 for (w = wtmplist; *w; w++) {
11344 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11345 fprintf(f, "%s\n", *w);
11352 rm -f conftest$ac_exeext
11353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11354 (eval $ac_link) 2>&5
11356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11359 (eval $ac_try) 2>&5
11361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362 (exit $ac_status); }; }; then
11363 rxvt_cv_path_wtmpx=`cat conftestval`
11365 echo "$as_me: program exited with status $ac_status" >&5
11366 echo "$as_me: failed program was:" >&5
11367 sed 's/^/| /' conftest.$ac_ext >&5
11369 ( exit $ac_status )
11370 rxvt_cv_path_wtmpx=
11372 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11375 echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmpx" >&5
11376 echo "${ECHO_T}$rxvt_cv_path_wtmpx" >&6
11377 if test x$rxvt_cv_path_wtmpx != x; then
11379 cat >>confdefs.h <<_ACEOF
11380 #define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx"
11385 echo "$as_me:$LINENO: checking where lastlog is located" >&5
11386 echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6
11387 if test "${rxvt_cv_path_lastlog+set}" = set; then
11388 echo $ECHO_N "(cached) $ECHO_C" >&6
11390 if test "$cross_compiling" = yes; then
11391 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&5
11392 echo "$as_me: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&2;}
11394 cat >conftest.$ac_ext <<_ACEOF
11397 cat confdefs.h >>conftest.$ac_ext
11398 cat >>conftest.$ac_ext <<_ACEOF
11399 /* end confdefs.h. */
11401 #include <sys/types.h>
11402 #ifdef HAVE_UTMPX_H
11404 #elif defined(HAVE_UTMP_H)
11407 #ifdef HAVE_LASTLOG_H
11408 #include <lastlog.h>
11413 char **w, *lastloglist[] = { "/var/log/lastlog", NULL };
11414 FILE *a, *f=fopen("conftestval", "w");
11416 #ifdef LASTLOG_FILE
11417 fprintf(f, "%s\n", LASTLOG_FILE);
11420 #ifdef _PATH_LASTLOG
11421 fprintf(f, "%s\n", _PATH_LASTLOG);
11424 for (w = lastloglist; *w; w++) {
11425 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11426 fprintf(f, "%s\n", *w);
11433 rm -f conftest$ac_exeext
11434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11435 (eval $ac_link) 2>&5
11437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11440 (eval $ac_try) 2>&5
11442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443 (exit $ac_status); }; }; then
11444 rxvt_cv_path_lastlog=`cat conftestval`
11446 echo "$as_me: program exited with status $ac_status" >&5
11447 echo "$as_me: failed program was:" >&5
11448 sed 's/^/| /' conftest.$ac_ext >&5
11450 ( exit $ac_status )
11451 rxvt_cv_path_lastlog=
11453 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11456 echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlog" >&5
11457 echo "${ECHO_T}$rxvt_cv_path_lastlog" >&6
11458 if test x$rxvt_cv_path_lastlog != x; then
11460 cat >>confdefs.h <<_ACEOF
11461 #define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog"
11464 if test -d "$rxvt_cv_path_lastlog"; then
11466 cat >>confdefs.h <<\_ACEOF
11467 #define LASTLOG_IS_DIR 1
11473 echo "$as_me:$LINENO: checking where lastlogx is located" >&5
11474 echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6
11475 if test "${rxvt_cv_path_lastlogx+set}" = set; then
11476 echo $ECHO_N "(cached) $ECHO_C" >&6
11478 if test "$cross_compiling" = yes; then
11479 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&5
11480 echo "$as_me: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&2;}
11482 cat >conftest.$ac_ext <<_ACEOF
11485 cat confdefs.h >>conftest.$ac_ext
11486 cat >>conftest.$ac_ext <<_ACEOF
11487 /* end confdefs.h. */
11489 #ifdef HAVE_UTMPX_H
11495 char **w, *wtmplist[] = { "/var/log/lastlogx", "/var/adm/lastlogx", NULL };
11496 FILE *a, *f=fopen("conftestval", "w");
11498 #ifdef LASTLOGX_FILE
11499 fprintf(f, "%s\n", LASTLOGX_FILE);
11502 #ifdef _PATH_LASTLOGX
11503 fprintf(f, "%s\n", _PATH_LASTLOGX);
11506 for (w = wtmplist; *w; w++) {
11507 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11508 fprintf(f, "%s\n", *w);
11515 rm -f conftest$ac_exeext
11516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11517 (eval $ac_link) 2>&5
11519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11522 (eval $ac_try) 2>&5
11524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525 (exit $ac_status); }; }; then
11526 rxvt_cv_path_lastlogx=`cat conftestval`
11528 echo "$as_me: program exited with status $ac_status" >&5
11529 echo "$as_me: failed program was:" >&5
11530 sed 's/^/| /' conftest.$ac_ext >&5
11532 ( exit $ac_status )
11533 rxvt_cv_path_lastlogx=
11535 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11538 echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlogx" >&5
11539 echo "${ECHO_T}$rxvt_cv_path_lastlogx" >&6
11540 if test x$rxvt_cv_path_lastlogx != x; then
11542 cat >>confdefs.h <<_ACEOF
11543 #define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx"
11549 echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
11550 echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6
11551 if test "${rxvt_cv_path_ttytab+set}" = set; then
11552 echo $ECHO_N "(cached) $ECHO_C" >&6
11554 for ttys_file in /etc/ttys /etc/ttytab;
11556 if test -f "$ttys_file" ; then
11557 rxvt_cv_path_ttytab=$ttys_file
11563 echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5
11564 echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6
11565 if test x$rxvt_cv_path_ttytab != x; then
11567 cat >>confdefs.h <<_ACEOF
11568 #define TTYTAB_FILENAME "$rxvt_cv_path_ttytab"
11575 ac_save_CFLAGS=$CFLAGS
11576 CFLAGS="$CFLAGS $X_CFLAGS"
11577 LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
11578 if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
11579 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
11581 echo "$as_me:$LINENO: checking for working Xlocale" >&5
11582 echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6
11583 if test "${rxvt_cv_func_xlocale+set}" = set; then
11584 echo $ECHO_N "(cached) $ECHO_C" >&6
11586 if test "$cross_compiling" = yes; then
11587 { echo "$as_me:$LINENO: WARNING: Define NO_XLOCALE in config.h manually" >&5
11588 echo "$as_me: WARNING: Define NO_XLOCALE in config.h manually" >&2;}
11590 cat >conftest.$ac_ext <<_ACEOF
11593 cat confdefs.h >>conftest.$ac_ext
11594 cat >>conftest.$ac_ext <<_ACEOF
11595 /* end confdefs.h. */
11596 #include <X11/Xlib.h>
11599 if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
11600 exit (XSupportsLocale() ? 0 : 1);
11604 rm -f conftest$ac_exeext
11605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11606 (eval $ac_link) 2>&5
11608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11611 (eval $ac_try) 2>&5
11613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614 (exit $ac_status); }; }; then
11615 rxvt_cv_func_xlocale=yes
11617 echo "$as_me: program exited with status $ac_status" >&5
11618 echo "$as_me: failed program was:" >&5
11619 sed 's/^/| /' conftest.$ac_ext >&5
11621 ( exit $ac_status )
11622 rxvt_cv_func_xlocale=no
11624 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11627 echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5
11628 echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6
11629 if test x$rxvt_cv_func_xlocale = xyes; then
11631 cat >>confdefs.h <<\_ACEOF
11632 #define HAVE_XLOCALE 1
11637 echo "$as_me:$LINENO: checking for working X setlocale" >&5
11638 echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6
11639 if test "${rxvt_cv_func_xsetlocale+set}" = set; then
11640 echo $ECHO_N "(cached) $ECHO_C" >&6
11642 cat >conftest.$ac_ext <<_ACEOF
11645 cat confdefs.h >>conftest.$ac_ext
11646 cat >>conftest.$ac_ext <<_ACEOF
11647 /* end confdefs.h. */
11649 #include <X11/Xlocale.h>
11653 setlocale(LC_CTYPE, "");
11658 rm -f conftest.$ac_objext conftest$ac_exeext
11659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11660 (eval $ac_link) 2>conftest.er1
11662 grep -v '^ *+' conftest.er1 >conftest.err
11664 cat conftest.err >&5
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); } &&
11667 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11669 (eval $ac_try) 2>&5
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); }; } &&
11673 { ac_try='test -s conftest$ac_exeext'
11674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11675 (eval $ac_try) 2>&5
11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678 (exit $ac_status); }; }; then
11679 rxvt_cv_func_xsetlocale=yes
11681 echo "$as_me: failed program was:" >&5
11682 sed 's/^/| /' conftest.$ac_ext >&5
11684 rxvt_cv_func_xsetlocale=no
11686 rm -f conftest.err conftest.$ac_objext \
11687 conftest$ac_exeext conftest.$ac_ext
11689 echo "$as_me:$LINENO: result: $rxvt_cv_func_xsetlocale" >&5
11690 echo "${ECHO_T}$rxvt_cv_func_xsetlocale" >&6
11691 if test x$rxvt_cv_func_xsetlocale = xyes; then
11693 cat >>confdefs.h <<\_ACEOF
11694 #define HAVE_XSETLOCALE 1
11699 CFLAGS=$ac_save_CFLAGS
11701 echo "$as_me:$LINENO: checking for working plain setlocale" >&5
11702 echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6
11703 if test "${rxvt_cv_func_setlocale+set}" = set; then
11704 echo $ECHO_N "(cached) $ECHO_C" >&6
11706 cat >conftest.$ac_ext <<_ACEOF
11709 cat confdefs.h >>conftest.$ac_ext
11710 cat >>conftest.$ac_ext <<_ACEOF
11711 /* end confdefs.h. */
11716 setlocale(LC_CTYPE, "");
11721 rm -f conftest.$ac_objext conftest$ac_exeext
11722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11723 (eval $ac_link) 2>conftest.er1
11725 grep -v '^ *+' conftest.er1 >conftest.err
11727 cat conftest.err >&5
11728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 (exit $ac_status); } &&
11730 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11732 (eval $ac_try) 2>&5
11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); }; } &&
11736 { ac_try='test -s conftest$ac_exeext'
11737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11738 (eval $ac_try) 2>&5
11740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741 (exit $ac_status); }; }; then
11742 rxvt_cv_func_setlocale=yes
11744 echo "$as_me: failed program was:" >&5
11745 sed 's/^/| /' conftest.$ac_ext >&5
11747 rxvt_cv_func_setlocale=no
11749 rm -f conftest.err conftest.$ac_objext \
11750 conftest$ac_exeext conftest.$ac_ext
11752 echo "$as_me:$LINENO: result: $rxvt_cv_func_setlocale" >&5
11753 echo "${ECHO_T}$rxvt_cv_func_setlocale" >&6
11754 if test x$rxvt_cv_func_setlocale = xyes; then
11756 cat >>confdefs.h <<\_ACEOF
11757 #define HAVE_SETLOCALE 1
11762 echo "$as_me:$LINENO: checking for working nl_langinfo" >&5
11763 echo $ECHO_N "checking for working nl_langinfo... $ECHO_C" >&6
11764 if test "${rxvt_cv_func_nl_langinfo+set}" = set; then
11765 echo $ECHO_N "(cached) $ECHO_C" >&6
11767 cat >conftest.$ac_ext <<_ACEOF
11770 cat confdefs.h >>conftest.$ac_ext
11771 cat >>conftest.$ac_ext <<_ACEOF
11772 /* end confdefs.h. */
11773 #include <langinfo.h>
11777 nl_langinfo(CODESET);
11782 rm -f conftest.$ac_objext conftest$ac_exeext
11783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11784 (eval $ac_link) 2>conftest.er1
11786 grep -v '^ *+' conftest.er1 >conftest.err
11788 cat conftest.err >&5
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); } &&
11791 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11793 (eval $ac_try) 2>&5
11795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796 (exit $ac_status); }; } &&
11797 { ac_try='test -s conftest$ac_exeext'
11798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11799 (eval $ac_try) 2>&5
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); }; }; then
11803 rxvt_cv_func_nl_langinfo=yes
11805 echo "$as_me: failed program was:" >&5
11806 sed 's/^/| /' conftest.$ac_ext >&5
11808 rxvt_cv_func_nl_langinfo=no
11810 rm -f conftest.err conftest.$ac_objext \
11811 conftest$ac_exeext conftest.$ac_ext
11813 echo "$as_me:$LINENO: result: $rxvt_cv_func_nl_langinfo" >&5
11814 echo "${ECHO_T}$rxvt_cv_func_nl_langinfo" >&6
11815 if test x$rxvt_cv_func_nl_langinfo = xyes; then
11817 cat >>confdefs.h <<\_ACEOF
11818 #define HAVE_NL_LANGINFO 1
11823 echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5
11824 echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6
11825 if test "${rxvt_can_pass_fds+set}" = set; then
11826 echo $ECHO_N "(cached) $ECHO_C" >&6
11828 cat >conftest.$ac_ext <<_ACEOF
11831 cat confdefs.h >>conftest.$ac_ext
11832 cat >>conftest.$ac_ext <<_ACEOF
11833 /* end confdefs.h. */
11835 #include <sys/types.h>
11836 #include <sys/socket.h>
11848 iov.iov_base = &data;
11851 msg.msg_iov = &iov;
11852 msg.msg_iovlen = 1;
11853 msg.msg_control = buf;
11854 msg.msg_controllen = sizeof buf;
11856 cmsghdr *cmsg = CMSG_FIRSTHDR (&msg);
11857 cmsg->cmsg_level = SOL_SOCKET;
11858 cmsg->cmsg_type = SCM_RIGHTS;
11859 cmsg->cmsg_len = 100;
11861 *(int *)CMSG_DATA (cmsg) = 5;
11863 return sendmsg (3, &msg, 0);
11870 rm -f conftest.$ac_objext conftest$ac_exeext
11871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11872 (eval $ac_link) 2>conftest.er1
11874 grep -v '^ *+' conftest.er1 >conftest.err
11876 cat conftest.err >&5
11877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878 (exit $ac_status); } &&
11879 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11881 (eval $ac_try) 2>&5
11883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884 (exit $ac_status); }; } &&
11885 { ac_try='test -s conftest$ac_exeext'
11886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11887 (eval $ac_try) 2>&5
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); }; }; then
11891 rxvt_can_pass_fds=yes
11893 echo "$as_me: failed program was:" >&5
11894 sed 's/^/| /' conftest.$ac_ext >&5
11896 rxvt_can_pass_fds=no
11898 rm -f conftest.err conftest.$ac_objext \
11899 conftest$ac_exeext conftest.$ac_ext
11901 echo "$as_me:$LINENO: result: $rxvt_can_pass_fds" >&5
11902 echo "${ECHO_T}$rxvt_can_pass_fds" >&6
11903 if test x$rxvt_can_pass_fds = xyes; then
11905 cat >>confdefs.h <<\_ACEOF
11906 #define HAVE_UNIX_FDPASS 1
11911 echo "$as_me:$LINENO: checking for broken XIM callback" >&5
11912 echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6
11913 if test "${rxvt_broken_ximcb+set}" = set; then
11914 echo $ECHO_N "(cached) $ECHO_C" >&6
11916 cat >conftest.$ac_ext <<_ACEOF
11918 #include <X11/Xlib.h>
11920 void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
11924 cb.callback = im_destroy_cb;
11928 rm -f conftest.$ac_objext
11929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11930 (eval $ac_compile) 2>conftest.er1
11932 grep -v '^ *+' conftest.er1 >conftest.err
11934 cat conftest.err >&5
11935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936 (exit $ac_status); } &&
11937 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11939 (eval $ac_try) 2>&5
11941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942 (exit $ac_status); }; } &&
11943 { ac_try='test -s conftest.$ac_objext'
11944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11945 (eval $ac_try) 2>&5
11947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948 (exit $ac_status); }; }; then
11949 rxvt_broken_ximcb=yes
11951 echo "$as_me: failed program was:" >&5
11952 sed 's/^/| /' conftest.$ac_ext >&5
11954 rxvt_broken_ximcb=no
11956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11958 echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
11959 echo "${ECHO_T}$rxvt_broken_ximcb" >&6
11961 if test x$rxvt_broken_ximcb = xyes; then
11963 cat >>confdefs.h <<\_ACEOF
11964 #define XIMCB_PROTO_BROKEN 1
11969 if test x$ac_cv_func_posix_openpt = xno; then
11970 echo "$as_me:$LINENO: checking for openpty" >&5
11971 echo $ECHO_N "checking for openpty... $ECHO_C" >&6
11972 if test "${ac_cv_func_openpty+set}" = set; then
11973 echo $ECHO_N "(cached) $ECHO_C" >&6
11975 cat >conftest.$ac_ext <<_ACEOF
11978 cat confdefs.h >>conftest.$ac_ext
11979 cat >>conftest.$ac_ext <<_ACEOF
11980 /* end confdefs.h. */
11981 /* Define openpty to an innocuous variant, in case <limits.h> declares openpty.
11982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11983 #define openpty innocuous_openpty
11985 /* System header to define __stub macros and hopefully few prototypes,
11986 which can conflict with char openpty (); below.
11987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11988 <limits.h> exists even on freestanding compilers. */
11991 # include <limits.h>
11993 # include <assert.h>
11998 /* Override any gcc2 internal prototype to avoid an error. */
12003 /* We use char because int might match the return type of a gcc2
12004 builtin and then its argument prototype would still apply. */
12006 /* The GNU C library defines this for functions which it implements
12007 to always fail with ENOSYS. Some functions are actually named
12008 something starting with __ and the normal name is an alias. */
12009 #if defined (__stub_openpty) || defined (__stub___openpty)
12012 char (*f) () = openpty;
12021 return f != openpty;
12026 rm -f conftest.$ac_objext conftest$ac_exeext
12027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12028 (eval $ac_link) 2>conftest.er1
12030 grep -v '^ *+' conftest.er1 >conftest.err
12032 cat conftest.err >&5
12033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034 (exit $ac_status); } &&
12035 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12037 (eval $ac_try) 2>&5
12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); }; } &&
12041 { ac_try='test -s conftest$ac_exeext'
12042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12043 (eval $ac_try) 2>&5
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); }; }; then
12047 ac_cv_func_openpty=yes
12049 echo "$as_me: failed program was:" >&5
12050 sed 's/^/| /' conftest.$ac_ext >&5
12052 ac_cv_func_openpty=no
12054 rm -f conftest.err conftest.$ac_objext \
12055 conftest$ac_exeext conftest.$ac_ext
12057 echo "$as_me:$LINENO: result: $ac_cv_func_openpty" >&5
12058 echo "${ECHO_T}$ac_cv_func_openpty" >&6
12059 if test $ac_cv_func_openpty = yes; then
12062 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
12063 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
12064 if test "${ac_cv_lib_util_openpty+set}" = set; then
12065 echo $ECHO_N "(cached) $ECHO_C" >&6
12067 ac_check_lib_save_LIBS=$LIBS
12068 LIBS="-lutil $LIBS"
12069 cat >conftest.$ac_ext <<_ACEOF
12072 cat confdefs.h >>conftest.$ac_ext
12073 cat >>conftest.$ac_ext <<_ACEOF
12074 /* end confdefs.h. */
12076 /* Override any gcc2 internal prototype to avoid an error. */
12080 /* We use char because int might match the return type of a gcc2
12081 builtin and then its argument prototype would still apply. */
12091 rm -f conftest.$ac_objext conftest$ac_exeext
12092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12093 (eval $ac_link) 2>conftest.er1
12095 grep -v '^ *+' conftest.er1 >conftest.err
12097 cat conftest.err >&5
12098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099 (exit $ac_status); } &&
12100 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12102 (eval $ac_try) 2>&5
12104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12105 (exit $ac_status); }; } &&
12106 { ac_try='test -s conftest$ac_exeext'
12107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12108 (eval $ac_try) 2>&5
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); }; }; then
12112 ac_cv_lib_util_openpty=yes
12114 echo "$as_me: failed program was:" >&5
12115 sed 's/^/| /' conftest.$ac_ext >&5
12117 ac_cv_lib_util_openpty=no
12119 rm -f conftest.err conftest.$ac_objext \
12120 conftest$ac_exeext conftest.$ac_ext
12121 LIBS=$ac_check_lib_save_LIBS
12123 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
12124 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
12125 if test $ac_cv_lib_util_openpty = yes; then
12126 LIBS="$LIBS -lutil"
12133 echo "$as_me:$LINENO: checking for pty/tty type" >&5
12134 echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6
12135 if test "${rxvt_cv_ptys+set}" = set; then
12136 echo $ECHO_N "(cached) $ECHO_C" >&6
12138 if test x$ac_cv_func_openpty = xyes -o x$ac_cv_lib_util_openpty = xyes; then
12139 rxvt_cv_ptys=OPENPTY
12140 else if test x$ac_cv_func_posix_openpt = xyes; then
12142 else if test x$ac_cv_func__getpty = xyes; then
12144 else if test -c /dev/ttyp20; then
12146 else if test -c /dev/ptym/clone; then
12148 else if test -c /dev/ptc -a -c /dev/pts; then
12150 else if test -c /dev/ptc -a -d /dev/pts; then
12152 else if test -c /dev/ptmx -a -c /dev/pts/0; then
12153 rxvt_cv_ptys=STREAMS
12154 else if test x$ac_cv_func_grantpt = xyes && test x$ac_cv_func_unlockpt = xyes; then
12155 rxvt_cv_ptys=STREAMS
12169 echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5
12170 echo "${ECHO_T}$rxvt_cv_ptys" >&6
12172 if test x$rxvt_cv_ptys = xPOSIX; then
12174 cat >>confdefs.h <<\_ACEOF
12175 #define PTYS_ARE_POSIX 1
12179 if test x$rxvt_cv_ptys = xOPENPTY; then
12181 cat >>confdefs.h <<\_ACEOF
12182 #define PTYS_ARE_OPENPTY 1
12186 if test x$rxvt_cv_ptys = xSCO; then
12188 cat >>confdefs.h <<\_ACEOF
12189 #define PTYS_ARE_NUMERIC 1
12193 if test x$rxvt_cv_ptys = xSTREAMS; then
12195 cat >>confdefs.h <<\_ACEOF
12196 #define PTYS_ARE_PTMX 1
12200 if test x$rxvt_cv_ptys = xPTC; then
12202 cat >>confdefs.h <<\_ACEOF
12203 #define PTYS_ARE_PTC 1
12207 if test x$rxvt_cv_ptys = xSGI4; then
12209 cat >>confdefs.h <<\_ACEOF
12210 #define PTYS_ARE__GETPTY 1
12214 if test x$rxvt_cv_ptys = xHPUX; then
12216 cat >>confdefs.h <<\_ACEOF
12217 #define PTYS_ARE_CLONE 1
12221 if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xPOSIX; then
12223 cat >>confdefs.h <<\_ACEOF
12224 #define PTYS_ARE_SEARCHED 1
12230 { echo "$as_me:$LINENO: checking for pty ranges..." >&5
12231 echo "$as_me: checking for pty ranges..." >&6;}
12232 ptys=`echo /dev/pty??`
12233 pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
12234 pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
12235 if test x$pch1 != x; then
12237 cat >>confdefs.h <<_ACEOF
12238 #define PTYCHAR1 "$pch1"
12242 if test x$pch2 != x; then
12244 cat >>confdefs.h <<_ACEOF
12245 #define PTYCHAR2 "$pch2"
12250 if test x$support_xft = xyes; then
12251 LIBS="$LIBS `pkg-config xft --libs`"
12252 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`"
12255 for ac_header in X11/Xft/Xft.h
12257 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12259 echo "$as_me:$LINENO: checking for $ac_header" >&5
12260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12262 echo $ECHO_N "(cached) $ECHO_C" >&6
12264 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12265 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12267 # Is the header compilable?
12268 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12269 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12270 cat >conftest.$ac_ext <<_ACEOF
12273 cat confdefs.h >>conftest.$ac_ext
12274 cat >>conftest.$ac_ext <<_ACEOF
12275 /* end confdefs.h. */
12276 $ac_includes_default
12277 #include <$ac_header>
12279 rm -f conftest.$ac_objext
12280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12281 (eval $ac_compile) 2>conftest.er1
12283 grep -v '^ *+' conftest.er1 >conftest.err
12285 cat conftest.err >&5
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); } &&
12288 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12290 (eval $ac_try) 2>&5
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); }; } &&
12294 { ac_try='test -s conftest.$ac_objext'
12295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12296 (eval $ac_try) 2>&5
12298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); }; }; then
12300 ac_header_compiler=yes
12302 echo "$as_me: failed program was:" >&5
12303 sed 's/^/| /' conftest.$ac_ext >&5
12305 ac_header_compiler=no
12307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12308 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12309 echo "${ECHO_T}$ac_header_compiler" >&6
12311 # Is the header present?
12312 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12313 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12314 cat >conftest.$ac_ext <<_ACEOF
12317 cat confdefs.h >>conftest.$ac_ext
12318 cat >>conftest.$ac_ext <<_ACEOF
12319 /* end confdefs.h. */
12320 #include <$ac_header>
12322 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12323 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12325 grep -v '^ *+' conftest.er1 >conftest.err
12327 cat conftest.err >&5
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); } >/dev/null; then
12330 if test -s conftest.err; then
12331 ac_cpp_err=$ac_cxx_preproc_warn_flag
12332 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12339 if test -z "$ac_cpp_err"; then
12340 ac_header_preproc=yes
12342 echo "$as_me: failed program was:" >&5
12343 sed 's/^/| /' conftest.$ac_ext >&5
12345 ac_header_preproc=no
12347 rm -f conftest.err conftest.$ac_ext
12348 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12349 echo "${ECHO_T}$ac_header_preproc" >&6
12351 # So? What about this header?
12352 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
12354 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12355 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12357 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12358 ac_header_preproc=yes
12361 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12362 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12363 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12364 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12365 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12366 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12367 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12368 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12370 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12371 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12372 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12375 ## ------------------------------------------ ##
12376 ## Report this to the AC_PACKAGE_NAME lists. ##
12377 ## ------------------------------------------ ##
12380 sed "s/^/$as_me: WARNING: /" >&2
12383 echo "$as_me:$LINENO: checking for $ac_header" >&5
12384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12386 echo $ECHO_N "(cached) $ECHO_C" >&6
12388 eval "$as_ac_Header=\$ac_header_preproc"
12390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12391 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12394 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12395 cat >>confdefs.h <<_ACEOF
12396 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12406 echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5
12407 echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6
12408 if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then
12409 echo $ECHO_N "(cached) $ECHO_C" >&6
12411 ac_check_lib_save_LIBS=$LIBS
12413 cat >conftest.$ac_ext <<_ACEOF
12416 cat confdefs.h >>conftest.$ac_ext
12417 cat >>conftest.$ac_ext <<_ACEOF
12418 /* end confdefs.h. */
12420 /* Override any gcc2 internal prototype to avoid an error. */
12424 /* We use char because int might match the return type of a gcc2
12425 builtin and then its argument prototype would still apply. */
12426 char XftDrawString32 ();
12430 XftDrawString32 ();
12435 rm -f conftest.$ac_objext conftest$ac_exeext
12436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12437 (eval $ac_link) 2>conftest.er1
12439 grep -v '^ *+' conftest.er1 >conftest.err
12441 cat conftest.err >&5
12442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443 (exit $ac_status); } &&
12444 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12446 (eval $ac_try) 2>&5
12448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449 (exit $ac_status); }; } &&
12450 { ac_try='test -s conftest$ac_exeext'
12451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12452 (eval $ac_try) 2>&5
12454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455 (exit $ac_status); }; }; then
12456 ac_cv_lib_Xft_XftDrawString32=yes
12458 echo "$as_me: failed program was:" >&5
12459 sed 's/^/| /' conftest.$ac_ext >&5
12461 ac_cv_lib_Xft_XftDrawString32=no
12463 rm -f conftest.err conftest.$ac_objext \
12464 conftest$ac_exeext conftest.$ac_ext
12465 LIBS=$ac_check_lib_save_LIBS
12467 echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5
12468 echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6
12469 if test $ac_cv_lib_Xft_XftDrawString32 = yes; then
12470 cat >>confdefs.h <<_ACEOF
12471 #define HAVE_LIBXFT 1
12481 if test x$support_xft = xyes; then
12483 cat >>confdefs.h <<\_ACEOF
12489 if test x$support_styles = xyes; then
12491 cat >>confdefs.h <<\_ACEOF
12492 #define ENABLE_STYLES 1
12496 if test x$support_iso14755 = xyes; then
12498 cat >>confdefs.h <<\_ACEOF
12499 #define ISO_14755 1
12503 if test x$support_8bitctrls = xyes; then
12505 cat >>confdefs.h <<\_ACEOF
12506 #define EIGHT_BIT_CONTROLS 1
12510 if test x$support_fading = xyes; then
12512 cat >>confdefs.h <<\_ACEOF
12513 #define OFF_FOCUS_FADING 1
12517 if test x$support_tinting = xyes; then
12519 cat >>confdefs.h <<\_ACEOF
12524 if test x$support_inheritpixmap = xyes; then
12526 cat >>confdefs.h <<\_ACEOF
12527 #define TRANSPARENT 1
12531 if test x$support_keepscrolling = xno; then
12533 cat >>confdefs.h <<\_ACEOF
12534 #define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
12538 if test x$support_selectionscrolling = xyes; then
12540 cat >>confdefs.h <<\_ACEOF
12541 #define SELECTION_SCROLLING 1
12545 if test x$support_frills = xyes; then
12547 cat >>confdefs.h <<\_ACEOF
12548 #define ENABLE_FRILLS 1
12552 if test x$support_24bit = xyes; then
12554 cat >>confdefs.h <<\_ACEOF
12555 #define PREFER_24BIT 1
12559 if test x$support_mousewheel = xyes; then
12561 cat >>confdefs.h <<\_ACEOF
12562 #define MOUSE_WHEEL 1
12566 if test x$support_mouseslipwheel = xyes; then
12568 cat >>confdefs.h <<\_ACEOF
12569 #define MOUSE_SLIP_WHEELING 1
12573 if test x$support_utmp = xyes; then
12575 cat >>confdefs.h <<\_ACEOF
12576 #define UTMP_SUPPORT 1
12580 if test x$support_wtmp = xyes; then
12582 cat >>confdefs.h <<\_ACEOF
12583 #define WTMP_SUPPORT 1
12587 if test x$support_lastlog = xyes; then
12589 cat >>confdefs.h <<\_ACEOF
12590 #define LASTLOG_SUPPORT 1
12594 if test x$support_xim = xyes -o x$multichar_set = xyes; then
12595 if test x$rxvt_cv_func_xlocale = xyes; then
12597 cat >>confdefs.h <<\_ACEOF
12603 if test x$support_xpm = xyes; then
12605 cat >>confdefs.h <<\_ACEOF
12606 #define XPM_BACKGROUND 1
12610 if test x$support_scroll_rxvt = xyes; then
12612 cat >>confdefs.h <<\_ACEOF
12613 #define RXVT_SCROLLBAR 1
12618 if test x$support_scroll_next = xyes; then
12620 cat >>confdefs.h <<\_ACEOF
12621 #define NEXT_SCROLLBAR 1
12624 scrolltypes="$scrolltypes next"
12626 if test x$support_scroll_xterm = xyes; then
12628 cat >>confdefs.h <<\_ACEOF
12629 #define XTERM_SCROLLBAR 1
12632 scrolltypes="$scrolltypes xterm"
12634 if test x$support_scroll_plain = xyes; then
12636 cat >>confdefs.h <<\_ACEOF
12637 #define PLAIN_SCROLLBAR 1
12640 scrolltypes="$scrolltypes plain"
12642 if test x$support_pointer_blank = xyes; then
12644 cat >>confdefs.h <<\_ACEOF
12645 #define POINTER_BLANK 1
12649 if test x$support_text_blink = xyes; then
12651 cat >>confdefs.h <<\_ACEOF
12652 #define TEXT_BLINK 1
12656 if test x$support_unicode3 = xyes; then
12658 cat >>confdefs.h <<\_ACEOF
12659 #define UNICODE_3 1
12663 if test x$support_combining = xyes; then
12665 cat >>confdefs.h <<\_ACEOF
12666 #define ENABLE_COMBINING 1
12670 if test x$codesets = xall; then
12671 codesets=jp,jp-ext,kr,zh,zh-ext
12674 cat >>confdefs.h <<\_ACEOF
12675 #define ENCODING_EU 1
12679 cat >>confdefs.h <<\_ACEOF
12680 #define ENCODING_VN 1
12683 for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
12686 cat >>confdefs.h <<\_ACEOF
12687 #define ENCODING_JP 1
12691 cat >>confdefs.h <<\_ACEOF
12692 #define ENCODING_JP_EXT 1
12696 cat >>confdefs.h <<\_ACEOF
12697 #define ENCODING_KR 1
12701 cat >>confdefs.h <<\_ACEOF
12702 #define ENCODING_ZH 1
12706 cat >>confdefs.h <<\_ACEOF
12707 #define ENCODING_ZH_EXT 1
12714 if test x$support_perl = xyes; then
12715 # Extract the first word of "perl5", so it can be a program name with args.
12716 set dummy perl5; ac_word=$2
12717 echo "$as_me:$LINENO: checking for $ac_word" >&5
12718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12719 if test "${ac_cv_path_PERL+set}" = set; then
12720 echo $ECHO_N "(cached) $ECHO_C" >&6
12724 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12728 for as_dir in $PATH
12731 test -z "$as_dir" && as_dir=.
12732 for ac_exec_ext in '' $ac_executable_extensions; do
12733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12734 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12744 PERL=$ac_cv_path_PERL
12746 if test -n "$PERL"; then
12747 echo "$as_me:$LINENO: result: $PERL" >&5
12748 echo "${ECHO_T}$PERL" >&6
12750 echo "$as_me:$LINENO: result: no" >&5
12751 echo "${ECHO_T}no" >&6
12754 # Extract the first word of "perl", so it can be a program name with args.
12755 set dummy perl; ac_word=$2
12756 echo "$as_me:$LINENO: checking for $ac_word" >&5
12757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12758 if test "${ac_cv_path_PERL+set}" = set; then
12759 echo $ECHO_N "(cached) $ECHO_C" >&6
12763 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12767 for as_dir in $PATH
12770 test -z "$as_dir" && as_dir=.
12771 for ac_exec_ext in '' $ac_executable_extensions; do
12772 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12773 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12783 PERL=$ac_cv_path_PERL
12785 if test -n "$PERL"; then
12786 echo "$as_me:$LINENO: result: $PERL" >&5
12787 echo "${ECHO_T}$PERL" >&6
12789 echo "$as_me:$LINENO: result: no" >&5
12790 echo "${ECHO_T}no" >&6
12794 echo "$as_me:$LINENO: checking for $PERL suitability" >&5
12795 echo $ECHO_N "checking for $PERL suitability... $ECHO_C" >&6
12796 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then
12798 save_CXXFLAGS="$CXXFLAGS"
12800 CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`"
12801 LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`"
12802 cat >conftest.$ac_ext <<_ACEOF
12805 cat confdefs.h >>conftest.$ac_ext
12806 cat >>conftest.$ac_ext <<_ACEOF
12807 /* end confdefs.h. */
12809 #include <EXTERN.h>
12817 PerlInterpreter *perl = perl_alloc ();
12823 rm -f conftest.$ac_objext conftest$ac_exeext
12824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12825 (eval $ac_link) 2>conftest.er1
12827 grep -v '^ *+' conftest.er1 >conftest.err
12829 cat conftest.err >&5
12830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831 (exit $ac_status); } &&
12832 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12834 (eval $ac_try) 2>&5
12836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837 (exit $ac_status); }; } &&
12838 { ac_try='test -s conftest$ac_exeext'
12839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12840 (eval $ac_try) 2>&5
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); }; }; then
12846 echo "$as_me: failed program was:" >&5
12847 sed 's/^/| /' conftest.$ac_ext >&5
12851 rm -f conftest.err conftest.$ac_objext \
12852 conftest$ac_exeext conftest.$ac_ext
12853 CXXFLAGS="$save_CXXFLAGS"
12856 if test x$rxvt_perl_link = xyes; then
12857 echo "$as_me:$LINENO: result: ok" >&5
12858 echo "${ECHO_T}ok" >&6
12860 cat >>confdefs.h <<\_ACEOF
12861 #define ENABLE_PERL 1
12866 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
12867 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
12868 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`"
12871 echo "$as_me:$LINENO: result: no, unable to link" >&5
12872 echo "${ECHO_T}no, unable to link" >&6
12875 { { echo "$as_me:$LINENO: error: no working perl found" >&5
12876 echo "$as_me: error: no working perl found" >&2;}
12877 { (exit or perl not version >= 5.8); exit or perl not version >= 5.8; }; }
12888 if test x$support_perl = xyes; then
12893 CFLAGS=${CFLAGS--O}
12894 LDFLAGS=${LDFLAGS--O}
12896 CPPFLAGS="$CPPFLAGS"
12904 if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
12905 DLIB=`echo $DLIB | sed "$R_TRANSLATE"`
12906 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
12907 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
12908 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
12909 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
12916 MCOMMON=./autoconf/Make.common
12919 test "$program_prefix" != NONE &&
12920 program_transform_name="s,^,$program_prefix,;$program_transform_name"
12921 # Use a double $ so make ignores it.
12922 test "$program_suffix" != NONE &&
12923 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
12924 # Double any \ or $. echo might interpret backslashes.
12925 # By default was `s,x,x', remove it if useless.
12926 cat <<\_ACEOF >conftest.sed
12927 s/[\\$]/&&/g;s/;s,x,x,$//
12929 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
12936 if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
12937 include_stdint_h="#include <stdint.h>"
12939 include_stdint_h="/* #include <stdint.h> */"
12941 if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
12942 include_stdarg_h="#include <cstdarg>"
12944 include_stdarg_h="/* #include <cstdarg> */"
12946 if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
12947 include_stdlib_h="#include <cstdlib>"
12949 include_stdlib_h="/* #include <cstdlib> */"
12951 if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
12952 include_unistd_h="#include <unistd.h>"
12954 include_unistd_h="/* #include <unistd.h> */"
12956 if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
12957 include_string_h="#include <cstring>"
12959 include_string_h="/* #include <cstring> */"
12961 if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
12962 include_fcntl_h="#include <fcntl.h>"
12964 include_fcntl_h="/* #include <fcntl.h> */"
12966 if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
12967 include_util_h="#include <util.h>"
12969 include_util_h="/* #include <util.h> */"
12971 if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
12972 include_assert_h="#include <assert.h>"
12974 include_assert_h="/* #include <assert.h> */"
12976 if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
12977 include_sys_ioctl_h="#include <sys/ioctl.h>"
12979 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
12981 if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
12982 include_sys_select_h="#include <sys/select.h>"
12984 include_sys_select_h="/* #include <sys/select.h> */"
12986 if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
12987 include_sys_strredir_h="#include <sys/strredir.h>"
12989 include_sys_strredir_h="/* #include <sys/strredir.h> */"
12991 if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
12992 include_sys_time_h="#include <sys/time.h>"
12994 include_sys_time_h="/* #include <sys/time.h> */"
12996 if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
12997 include_time_h="#include <time.h>"
12999 include_time_h="/* #include <time.h> */"
13002 ac_config_files="$ac_config_files autoconf/Make.common Makefile doc/Makefile src/Makefile src/rxvtlib.h"
13004 cat >confcache <<\_ACEOF
13005 # This file is a shell script that caches the results of configure
13006 # tests run on this system so they can be shared between configure
13007 # scripts and configure runs, see configure's option --config-cache.
13008 # It is not useful on other systems. If it contains results you don't
13009 # want to keep, you may remove or edit it.
13011 # config.status only pays attention to the cache file if you give it
13012 # the --recheck option to rerun configure.
13014 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13015 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13016 # following values.
13020 # The following way of writing the cache mishandles newlines in values,
13021 # but we know of no workaround that is simple, portable, and efficient.
13022 # So, don't put newlines in cache variables' values.
13023 # Ultrix sh set writes to stderr and can't be redirected directly,
13024 # and sets the high bit in the cache file unless we assign to the vars.
13027 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13029 # `set' does not quote correctly, so add quotes (double-quote
13030 # substitution turns \\\\ into \\, and sed turns \\ into \).
13033 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13036 # `set' quotes correctly as required by POSIX, so do not add quotes.
13038 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13045 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13047 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13049 if diff $cache_file confcache >/dev/null 2>&1; then :; else
13050 if test -w $cache_file; then
13051 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13052 cat confcache >$cache_file
13054 echo "not updating unwritable cache $cache_file"
13059 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13060 # Let make expand exec_prefix.
13061 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13063 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13064 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13065 # trailing colons and then remove the whole line if VPATH becomes empty
13066 # (actually we leave an empty line to preserve line numbers).
13067 if test "x$srcdir" = x.; then
13068 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13069 s/:*\$(srcdir):*/:/;
13070 s/:*\${srcdir}:*/:/;
13072 s/^\([^=]*=[ ]*\):*/\1/;
13078 DEFS=-DHAVE_CONFIG_H
13082 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13083 # 1. Remove the extension, and $U if already installed.
13084 ac_i=`echo "$ac_i" |
13085 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13087 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13088 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13090 LIBOBJS=$ac_libobjs
13092 LTLIBOBJS=$ac_ltlibobjs
13096 : ${CONFIG_STATUS=./config.status}
13097 ac_clean_files_save=$ac_clean_files
13098 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13099 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13100 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13101 cat >$CONFIG_STATUS <<_ACEOF
13103 # Generated by $as_me.
13104 # Run this file to recreate the current configuration.
13105 # Compiler output produced by configure, useful for debugging
13106 # configure, is in config.log if it exists.
13109 ac_cs_recheck=false
13111 SHELL=\${CONFIG_SHELL-$SHELL}
13114 cat >>$CONFIG_STATUS <<\_ACEOF
13115 ## --------------------- ##
13116 ## M4sh Initialization. ##
13117 ## --------------------- ##
13119 # Be Bourne compatible
13120 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13123 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13124 # is contrary to our usage. Disable this feature.
13125 alias -g '${1+"$@"}'='"$@"'
13126 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13129 DUALCASE=1; export DUALCASE # for MKS sh
13131 # Support unset when possible.
13132 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13139 # Work around bugs in pre-3.0 UWIN ksh.
13140 $as_unset ENV MAIL MAILPATH
13147 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13148 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13149 LC_TELEPHONE LC_TIME
13151 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13152 eval $as_var=C; export $as_var
13158 # Required to use basename.
13159 if expr a : '\(a\)' >/dev/null 2>&1; then
13165 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13166 as_basename=basename
13172 # Name of the executable.
13173 as_me=`$as_basename "$0" ||
13174 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13175 X"$0" : 'X\(//\)$' \| \
13176 X"$0" : 'X\(/\)$' \| \
13177 . : '\(.\)' 2>/dev/null ||
13179 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13180 /^X\/\(\/\/\)$/{ s//\1/; q; }
13181 /^X\/\(\/\).*/{ s//\1/; q; }
13185 # PATH needs CR, and LINENO needs CR and PATH.
13186 # Avoid depending upon Character Ranges.
13187 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13188 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13189 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13190 as_cr_digits='0123456789'
13191 as_cr_alnum=$as_cr_Letters$as_cr_digits
13193 # The user is always right.
13194 if test "${PATH_SEPARATOR+set}" != set; then
13195 echo "#! /bin/sh" >conf$$.sh
13196 echo "exit 0" >>conf$$.sh
13198 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13207 as_lineno_1=$LINENO
13208 as_lineno_2=$LINENO
13209 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13210 test "x$as_lineno_1" != "x$as_lineno_2" &&
13211 test "x$as_lineno_3" = "x$as_lineno_2" || {
13212 # Find who we are. Look in the path if we contain no path at all
13215 *[\\/]* ) as_myself=$0 ;;
13216 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13217 for as_dir in $PATH
13220 test -z "$as_dir" && as_dir=.
13221 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13226 # We did not find ourselves, most probably we were run as `sh COMMAND'
13227 # in which case we are not to be found in the path.
13228 if test "x$as_myself" = x; then
13231 if test ! -f "$as_myself"; then
13232 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13233 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13234 { (exit 1); exit 1; }; }
13236 case $CONFIG_SHELL in
13238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13239 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13242 test -z "$as_dir" && as_dir=.
13243 for as_base in sh bash ksh sh5; do
13246 if ("$as_dir/$as_base" -c '
13247 as_lineno_1=$LINENO
13248 as_lineno_2=$LINENO
13249 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13250 test "x$as_lineno_1" != "x$as_lineno_2" &&
13251 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13252 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13253 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13254 CONFIG_SHELL=$as_dir/$as_base
13255 export CONFIG_SHELL
13256 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13264 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13265 # uniformly replaced by the line number. The first 'sed' inserts a
13266 # line-number line before each line; the second 'sed' does the real
13267 # work. The second script uses 'N' to pair each line-number line
13268 # with the numbered line, and appends trailing '-' during
13269 # substitution so that $LINENO is not a special case at line end.
13270 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13271 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13272 sed '=' <$as_myself |
13277 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13280 s,^['$as_cr_digits']*\n,,
13281 ' >$as_me.lineno &&
13282 chmod +x $as_me.lineno ||
13283 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13284 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13285 { (exit 1); exit 1; }; }
13287 # Don't try to exec as it changes $[0], causing all sort of problems
13288 # (the dirname of $[0] is not the place where we might find the
13289 # original and so on. Autoconf is especially sensible to this).
13291 # Exit status is that of the last command.
13296 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13297 *c*,-n*) ECHO_N= ECHO_C='
13299 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13300 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13303 if expr a : '\(a\)' >/dev/null 2>&1; then
13309 rm -f conf$$ conf$$.exe conf$$.file
13311 if ln -s conf$$.file conf$$ 2>/dev/null; then
13312 # We could just check for DJGPP; but this test a) works b) is more generic
13313 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13314 if test -f conf$$.exe; then
13315 # Don't use ln at all; we don't have any links
13320 elif ln conf$$.file conf$$ 2>/dev/null; then
13325 rm -f conf$$ conf$$.exe conf$$.file
13327 if mkdir -p . 2>/dev/null; then
13330 test -d ./-p && rmdir ./-p
13334 as_executable_p="test -f"
13336 # Sed expression to map a string onto a valid CPP name.
13337 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13339 # Sed expression to map a string onto a valid variable name.
13340 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13344 # We need space, tab and new line, in precisely that order.
13354 # Open the log real soon, to keep \$[0] and so on meaningful, and to
13355 # report actual input values of CONFIG_FILES etc. instead of their
13356 # values after options handling. Logging --version etc. is OK.
13360 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13361 ## Running $as_me. ##
13366 This file was extended by $as_me, which was
13367 generated by GNU Autoconf 2.59. Invocation command line was
13369 CONFIG_FILES = $CONFIG_FILES
13370 CONFIG_HEADERS = $CONFIG_HEADERS
13371 CONFIG_LINKS = $CONFIG_LINKS
13372 CONFIG_COMMANDS = $CONFIG_COMMANDS
13376 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13380 # Files that config.status was made for.
13381 if test -n "$ac_config_files"; then
13382 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13385 if test -n "$ac_config_headers"; then
13386 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13389 if test -n "$ac_config_links"; then
13390 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13393 if test -n "$ac_config_commands"; then
13394 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13397 cat >>$CONFIG_STATUS <<\_ACEOF
13400 \`$as_me' instantiates files from templates according to the
13401 current configuration.
13403 Usage: $0 [OPTIONS] [FILE]...
13405 -h, --help print this help, then exit
13406 -V, --version print version number, then exit
13407 -q, --quiet do not print progress messages
13408 -d, --debug don't remove temporary files
13409 --recheck update $as_me by reconfiguring in the same conditions
13410 --file=FILE[:TEMPLATE]
13411 instantiate the configuration file FILE
13412 --header=FILE[:TEMPLATE]
13413 instantiate the configuration header FILE
13415 Configuration files:
13418 Configuration headers:
13421 Report bugs to <bug-autoconf@gnu.org>."
13424 cat >>$CONFIG_STATUS <<_ACEOF
13427 configured by $0, generated by GNU Autoconf 2.59,
13428 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13430 Copyright (C) 2003 Free Software Foundation, Inc.
13431 This config.status script is free software; the Free Software Foundation
13432 gives unlimited permission to copy, distribute and modify it."
13437 cat >>$CONFIG_STATUS <<\_ACEOF
13438 # If no file are specified by the user, then we need to provide default
13439 # value. By we need to know if files were specified by the user.
13445 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13446 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13454 *) # This is not an option, so the user has probably given explicit
13457 ac_need_defaults=false;;
13461 # Handling of the options.
13463 cat >>$CONFIG_STATUS <<\_ACEOF
13464 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13466 --version | --vers* | -V )
13467 echo "$ac_cs_version"; exit 0 ;;
13469 # Conflict between --help and --header
13470 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13471 Try \`$0 --help' for more information." >&5
13472 echo "$as_me: error: ambiguous option: $1
13473 Try \`$0 --help' for more information." >&2;}
13474 { (exit 1); exit 1; }; };;
13475 --help | --hel | -h )
13476 echo "$ac_cs_usage"; exit 0 ;;
13477 --debug | --d* | -d )
13479 --file | --fil | --fi | --f )
13481 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13482 ac_need_defaults=false;;
13483 --header | --heade | --head | --hea )
13485 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13486 ac_need_defaults=false;;
13487 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13488 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13491 # This is an error.
13492 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13493 Try \`$0 --help' for more information." >&5
13494 echo "$as_me: error: unrecognized option: $1
13495 Try \`$0 --help' for more information." >&2;}
13496 { (exit 1); exit 1; }; } ;;
13498 *) ac_config_targets="$ac_config_targets $1" ;;
13504 ac_configure_extra_args=
13506 if $ac_cs_silent; then
13508 ac_configure_extra_args="$ac_configure_extra_args --silent"
13512 cat >>$CONFIG_STATUS <<_ACEOF
13513 if \$ac_cs_recheck; then
13514 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13515 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13524 cat >>$CONFIG_STATUS <<\_ACEOF
13525 for ac_config_target in $ac_config_targets
13527 case "$ac_config_target" in
13528 # Handling of arguments.
13529 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
13530 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13531 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13532 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13533 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
13534 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:autoconf/config.h.in" ;;
13535 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13536 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13537 { (exit 1); exit 1; }; };;
13541 # If the user did not use the arguments to specify the items to instantiate,
13542 # then the envvar interface is used. Set only those that are not.
13543 # We use the long form for the default assignment because of an extremely
13544 # bizarre bug on SunOS 4.1.3.
13545 if $ac_need_defaults; then
13546 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13547 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13550 # Have a temporary directory for convenience. Make it in the build tree
13551 # simply because there is no reason to put it here, and in addition,
13552 # creating and moving files from /tmp can sometimes cause problems.
13553 # Create a temporary directory, and hook for its removal unless debugging.
13556 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13557 trap '{ (exit 1); exit 1; }' 1 2 13 15
13560 # Create a (secure) tmp directory for tmp files.
13563 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13564 test -n "$tmp" && test -d "$tmp"
13567 tmp=./confstat$$-$RANDOM
13568 (umask 077 && mkdir $tmp)
13571 echo "$me: cannot create a temporary directory in ." >&2
13572 { (exit 1); exit 1; }
13577 cat >>$CONFIG_STATUS <<_ACEOF
13580 # CONFIG_FILES section.
13583 # No need to generate the scripts if there are no CONFIG_FILES.
13584 # This happens for instance when ./config.status config.h
13585 if test -n "\$CONFIG_FILES"; then
13586 # Protect against being on the right side of a sed subst in config.status.
13587 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13588 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13589 s,@SHELL@,$SHELL,;t t
13590 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13591 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13592 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13593 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13594 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13595 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13596 s,@exec_prefix@,$exec_prefix,;t t
13597 s,@prefix@,$prefix,;t t
13598 s,@program_transform_name@,$program_transform_name,;t t
13599 s,@bindir@,$bindir,;t t
13600 s,@sbindir@,$sbindir,;t t
13601 s,@libexecdir@,$libexecdir,;t t
13602 s,@datadir@,$datadir,;t t
13603 s,@sysconfdir@,$sysconfdir,;t t
13604 s,@sharedstatedir@,$sharedstatedir,;t t
13605 s,@localstatedir@,$localstatedir,;t t
13606 s,@libdir@,$libdir,;t t
13607 s,@includedir@,$includedir,;t t
13608 s,@oldincludedir@,$oldincludedir,;t t
13609 s,@infodir@,$infodir,;t t
13610 s,@mandir@,$mandir,;t t
13611 s,@build_alias@,$build_alias,;t t
13612 s,@host_alias@,$host_alias,;t t
13613 s,@target_alias@,$target_alias,;t t
13614 s,@DEFS@,$DEFS,;t t
13615 s,@ECHO_C@,$ECHO_C,;t t
13616 s,@ECHO_N@,$ECHO_N,;t t
13617 s,@ECHO_T@,$ECHO_T,;t t
13618 s,@LIBS@,$LIBS,;t t
13619 s,@build@,$build,;t t
13620 s,@build_cpu@,$build_cpu,;t t
13621 s,@build_vendor@,$build_vendor,;t t
13622 s,@build_os@,$build_os,;t t
13623 s,@host@,$host,;t t
13624 s,@host_cpu@,$host_cpu,;t t
13625 s,@host_vendor@,$host_vendor,;t t
13626 s,@host_os@,$host_os,;t t
13627 s,@VERSION@,$VERSION,;t t
13628 s,@DATE@,$DATE,;t t
13629 s,@LSMDATE@,$LSMDATE,;t t
13630 s,@LIBVERSION@,$LIBVERSION,;t t
13632 s,@CFLAGS@,$CFLAGS,;t t
13633 s,@LDFLAGS@,$LDFLAGS,;t t
13634 s,@CPPFLAGS@,$CPPFLAGS,;t t
13635 s,@ac_ct_CC@,$ac_ct_CC,;t t
13636 s,@EXEEXT@,$EXEEXT,;t t
13637 s,@OBJEXT@,$OBJEXT,;t t
13639 s,@CXXFLAGS@,$CXXFLAGS,;t t
13640 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
13642 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13643 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13644 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13646 s,@LINKER@,$LINKER,;t t
13647 s,@CXXCPP@,$CXXCPP,;t t
13648 s,@EGREP@,$EGREP,;t t
13649 s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t
13650 s,@RXVTNAME@,$RXVTNAME,;t t
13656 s,@ECHO@,$ECHO,;t t
13660 s,@X_CFLAGS@,$X_CFLAGS,;t t
13661 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
13662 s,@X_LIBS@,$X_LIBS,;t t
13663 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
13664 s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t
13665 s,@XPM_CFLAGS@,$XPM_CFLAGS,;t t
13666 s,@XPM_LIBS@,$XPM_LIBS,;t t
13667 s,@rxvt_int16_typedef@,$rxvt_int16_typedef,;t t
13668 s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t
13669 s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t
13670 s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t
13671 s,@rxvt_intp_define@,$rxvt_intp_define,;t t
13672 s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t
13673 s,@PERL@,$PERL,;t t
13674 s,@PERLLIB@,$PERLLIB,;t t
13675 s,@PERLFLAGS@,$PERLFLAGS,;t t
13676 s,@PERLPRIVLIBEXP@,$PERLPRIVLIBEXP,;t t
13677 s,@IF_PERL@,$IF_PERL,;t t
13678 s,@PERL_O@,$PERL_O,;t t
13679 s,@DEBUG@,$DEBUG,;t t
13680 s,@DINCLUDE@,$DINCLUDE,;t t
13681 s,@DLIB@,$DLIB,;t t
13682 s,@include_stdint_h@,$include_stdint_h,;t t
13683 s,@include_stdarg_h@,$include_stdarg_h,;t t
13684 s,@include_stdlib_h@,$include_stdlib_h,;t t
13685 s,@include_unistd_h@,$include_unistd_h,;t t
13686 s,@include_string_h@,$include_string_h,;t t
13687 s,@include_fcntl_h@,$include_fcntl_h,;t t
13688 s,@include_util_h@,$include_util_h,;t t
13689 s,@include_assert_h@,$include_assert_h,;t t
13690 s,@include_sys_ioctl_h@,$include_sys_ioctl_h,;t t
13691 s,@include_sys_select_h@,$include_sys_select_h,;t t
13692 s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t
13693 s,@include_sys_time_h@,$include_sys_time_h,;t t
13694 s,@include_time_h@,$include_time_h,;t t
13695 s,@LIBOBJS@,$LIBOBJS,;t t
13696 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13697 /@MCOMMON@/r $MCOMMON
13703 cat >>$CONFIG_STATUS <<\_ACEOF
13704 # Split the substitutions into bite-sized pieces for seds with
13705 # small command number limits, like on Digital OSF/1 and HP-UX.
13706 ac_max_sed_lines=48
13707 ac_sed_frag=1 # Number of current file.
13708 ac_beg=1 # First line for current file.
13709 ac_end=$ac_max_sed_lines # Line after last line for current file.
13712 while $ac_more_lines; do
13713 if test $ac_beg -gt 1; then
13714 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13716 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13718 if test ! -s $tmp/subs.frag; then
13719 ac_more_lines=false
13721 # The purpose of the label and of the branching condition is to
13722 # speed up the sed processing (if there are no `@' at all, there
13723 # is no need to browse any of the substitutions).
13724 # These are the two extra sed commands mentioned above.
13726 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13727 if test -z "$ac_sed_cmds"; then
13728 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13730 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13732 ac_sed_frag=`expr $ac_sed_frag + 1`
13734 ac_end=`expr $ac_end + $ac_max_sed_lines`
13737 if test -z "$ac_sed_cmds"; then
13740 fi # test -n "$CONFIG_FILES"
13743 cat >>$CONFIG_STATUS <<\_ACEOF
13744 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13745 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13747 - | *:- | *:-:* ) # input from stdin
13749 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13750 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13751 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13752 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13753 * ) ac_file_in=$ac_file.in ;;
13756 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13757 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13758 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13759 X"$ac_file" : 'X\(//\)[^/]' \| \
13760 X"$ac_file" : 'X\(//\)$' \| \
13761 X"$ac_file" : 'X\(/\)' \| \
13762 . : '\(.\)' 2>/dev/null ||
13764 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13765 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13766 /^X\(\/\/\)$/{ s//\1/; q; }
13767 /^X\(\/\).*/{ s//\1/; q; }
13769 { if $as_mkdir_p; then
13774 while test ! -d "$as_dir"; do
13775 as_dirs="$as_dir $as_dirs"
13776 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13777 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13778 X"$as_dir" : 'X\(//\)[^/]' \| \
13779 X"$as_dir" : 'X\(//\)$' \| \
13780 X"$as_dir" : 'X\(/\)' \| \
13781 . : '\(.\)' 2>/dev/null ||
13783 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13784 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13785 /^X\(\/\/\)$/{ s//\1/; q; }
13786 /^X\(\/\).*/{ s//\1/; q; }
13789 test ! -n "$as_dirs" || mkdir $as_dirs
13790 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13791 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13792 { (exit 1); exit 1; }; }; }
13796 if test "$ac_dir" != .; then
13797 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13798 # A "../" for each directory in $ac_dir_suffix.
13799 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13801 ac_dir_suffix= ac_top_builddir=
13805 .) # No --srcdir option. We are building in place.
13807 if test -z "$ac_top_builddir"; then
13810 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13812 [\\/]* | ?:[\\/]* ) # Absolute path.
13813 ac_srcdir=$srcdir$ac_dir_suffix;
13814 ac_top_srcdir=$srcdir ;;
13815 *) # Relative path.
13816 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13817 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13820 # Do not use `cd foo && pwd` to compute absolute paths, because
13821 # the directories may not exist.
13823 .) ac_abs_builddir="$ac_dir";;
13826 .) ac_abs_builddir=`pwd`;;
13827 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13828 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13831 case $ac_abs_builddir in
13832 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13834 case ${ac_top_builddir}. in
13835 .) ac_abs_top_builddir=$ac_abs_builddir;;
13836 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13837 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13840 case $ac_abs_builddir in
13841 .) ac_abs_srcdir=$ac_srcdir;;
13844 .) ac_abs_srcdir=$ac_abs_builddir;;
13845 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13846 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13849 case $ac_abs_builddir in
13850 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13852 case $ac_top_srcdir in
13853 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13854 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13855 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13861 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13862 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13865 # Let's still pretend it is `configure' which instantiates (i.e., don't
13866 # use $as_me), people would be surprised to read:
13867 # /* config.h. Generated by config.status. */
13868 if test x"$ac_file" = x-; then
13871 configure_input="$ac_file. "
13873 configure_input=$configure_input"Generated from `echo $ac_file_in |
13874 sed 's,.*/,,'` by configure."
13876 # First look for the input files in the build tree, otherwise in the
13878 ac_file_inputs=`IFS=:
13879 for f in $ac_file_in; do
13881 -) echo $tmp/stdin ;;
13883 # Absolute (can't be DOS-style, as IFS=:)
13884 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13885 echo "$as_me: error: cannot find input file: $f" >&2;}
13886 { (exit 1); exit 1; }; }
13889 if test -f "$f"; then
13892 elif test -f "$srcdir/$f"; then
13897 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13898 echo "$as_me: error: cannot find input file: $f" >&2;}
13899 { (exit 1); exit 1; }; }
13902 done` || { (exit 1); exit 1; }
13904 if test x"$ac_file" != x-; then
13905 { echo "$as_me:$LINENO: creating $ac_file" >&5
13906 echo "$as_me: creating $ac_file" >&6;}
13910 cat >>$CONFIG_STATUS <<_ACEOF
13914 cat >>$CONFIG_STATUS <<\_ACEOF
13916 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13917 s,@configure_input@,$configure_input,;t t
13918 s,@srcdir@,$ac_srcdir,;t t
13919 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13920 s,@top_srcdir@,$ac_top_srcdir,;t t
13921 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13922 s,@builddir@,$ac_builddir,;t t
13923 s,@abs_builddir@,$ac_abs_builddir,;t t
13924 s,@top_builddir@,$ac_top_builddir,;t t
13925 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13926 s,@INSTALL@,$ac_INSTALL,;t t
13927 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13929 if test x"$ac_file" != x-; then
13930 mv $tmp/out $ac_file
13938 cat >>$CONFIG_STATUS <<\_ACEOF
13941 # CONFIG_HEADER section.
13944 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13945 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13947 # ac_d sets the value in "#define NAME VALUE" lines.
13948 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13949 ac_dB='[ ].*$,\1#\2'
13952 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13953 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13954 ac_uB='$,\1#\2define\3'
13958 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13959 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13961 - | *:- | *:-:* ) # input from stdin
13963 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13964 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13965 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13966 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13967 * ) ac_file_in=$ac_file.in ;;
13970 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13971 echo "$as_me: creating $ac_file" >&6;}
13973 # First look for the input files in the build tree, otherwise in the
13975 ac_file_inputs=`IFS=:
13976 for f in $ac_file_in; do
13978 -) echo $tmp/stdin ;;
13980 # Absolute (can't be DOS-style, as IFS=:)
13981 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13982 echo "$as_me: error: cannot find input file: $f" >&2;}
13983 { (exit 1); exit 1; }; }
13984 # Do quote $f, to prevent DOS paths from being IFS'd.
13987 if test -f "$f"; then
13990 elif test -f "$srcdir/$f"; then
13995 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13996 echo "$as_me: error: cannot find input file: $f" >&2;}
13997 { (exit 1); exit 1; }; }
14000 done` || { (exit 1); exit 1; }
14001 # Remove the trailing spaces.
14002 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14006 # Transform confdefs.h into two sed scripts, `conftest.defines' and
14007 # `conftest.undefs', that substitutes the proper values into
14008 # config.h.in to produce config.h. The first handles `#define'
14009 # templates, and the second `#undef' templates.
14010 # And first: Protect against being on the right side of a sed subst in
14011 # config.status. Protect against being in an unquoted here document
14012 # in config.status.
14013 rm -f conftest.defines conftest.undefs
14014 # Using a here document instead of a string reduces the quoting nightmare.
14015 # Putting comments in sed scripts is not portable.
14017 # `end' is used to avoid that the second main sed command (meant for
14018 # 0-ary CPP macros) applies to n-ary macro definitions.
14019 # See the Autoconf documentation for `clear'.
14020 cat >confdef2sed.sed <<\_ACEOF
14025 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14027 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14030 # If some macros were called several times there might be several times
14031 # the same #defines, which is useless. Nevertheless, we may not want to
14032 # sort them, since we want the *last* AC-DEFINE to be honored.
14033 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14034 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14035 rm -f confdef2sed.sed
14037 # This sed command replaces #undef with comments. This is necessary, for
14038 # example, in the case of _POSIX_SOURCE, which is predefined and required
14039 # on some systems where configure will not decide to define it.
14040 cat >>conftest.undefs <<\_ACEOF
14041 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14044 # Break up conftest.defines because some shells have a limit on the size
14045 # of here documents, and old seds have small limits too (100 cmds).
14046 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14047 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14048 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14049 echo ' :' >>$CONFIG_STATUS
14050 rm -f conftest.tail
14051 while grep . conftest.defines >/dev/null
14053 # Write a limited-size here document to $tmp/defines.sed.
14054 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14055 # Speed up: don't consider the non `#define' lines.
14056 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14057 # Work around the forget-to-reset-the-flag bug.
14058 echo 't clr' >>$CONFIG_STATUS
14059 echo ': clr' >>$CONFIG_STATUS
14060 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14062 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14064 mv $tmp/out $tmp/in
14066 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14067 rm -f conftest.defines
14068 mv conftest.tail conftest.defines
14070 rm -f conftest.defines
14071 echo ' fi # grep' >>$CONFIG_STATUS
14072 echo >>$CONFIG_STATUS
14074 # Break up conftest.undefs because some shells have a limit on the size
14075 # of here documents, and old seds have small limits too (100 cmds).
14076 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
14077 rm -f conftest.tail
14078 while grep . conftest.undefs >/dev/null
14080 # Write a limited-size here document to $tmp/undefs.sed.
14081 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14082 # Speed up: don't consider the non `#undef'
14083 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14084 # Work around the forget-to-reset-the-flag bug.
14085 echo 't clr' >>$CONFIG_STATUS
14086 echo ': clr' >>$CONFIG_STATUS
14087 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14089 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14091 mv $tmp/out $tmp/in
14093 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14094 rm -f conftest.undefs
14095 mv conftest.tail conftest.undefs
14097 rm -f conftest.undefs
14099 cat >>$CONFIG_STATUS <<\_ACEOF
14100 # Let's still pretend it is `configure' which instantiates (i.e., don't
14101 # use $as_me), people would be surprised to read:
14102 # /* config.h. Generated by config.status. */
14103 if test x"$ac_file" = x-; then
14104 echo "/* Generated by configure. */" >$tmp/config.h
14106 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
14108 cat $tmp/in >>$tmp/config.h
14110 if test x"$ac_file" != x-; then
14111 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
14112 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14113 echo "$as_me: $ac_file is unchanged" >&6;}
14115 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14116 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14117 X"$ac_file" : 'X\(//\)[^/]' \| \
14118 X"$ac_file" : 'X\(//\)$' \| \
14119 X"$ac_file" : 'X\(/\)' \| \
14120 . : '\(.\)' 2>/dev/null ||
14122 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14123 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14124 /^X\(\/\/\)$/{ s//\1/; q; }
14125 /^X\(\/\).*/{ s//\1/; q; }
14127 { if $as_mkdir_p; then
14132 while test ! -d "$as_dir"; do
14133 as_dirs="$as_dir $as_dirs"
14134 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14135 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14136 X"$as_dir" : 'X\(//\)[^/]' \| \
14137 X"$as_dir" : 'X\(//\)$' \| \
14138 X"$as_dir" : 'X\(/\)' \| \
14139 . : '\(.\)' 2>/dev/null ||
14141 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14142 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14143 /^X\(\/\/\)$/{ s//\1/; q; }
14144 /^X\(\/\).*/{ s//\1/; q; }
14147 test ! -n "$as_dirs" || mkdir $as_dirs
14148 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14149 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14150 { (exit 1); exit 1; }; }; }
14153 mv $tmp/config.h $ac_file
14157 rm -f $tmp/config.h
14162 cat >>$CONFIG_STATUS <<\_ACEOF
14164 { (exit 0); exit 0; }
14166 chmod +x $CONFIG_STATUS
14167 ac_clean_files=$ac_clean_files_save
14170 # configure is writing to config.log, and then calls config.status.
14171 # config.status does its own redirection, appending to config.log.
14172 # Unfortunately, on DOS this fails, as config.log is still kept open
14173 # by configure, so config.status won't be able to write to it; its
14174 # output is simply discarded. So we exec the FD to /dev/null,
14175 # effectively closing config.log, so it can be properly (re)opened and
14176 # appended to by config.status. When coming back to configure, we
14177 # need to make the FD available again.
14178 if test "$no_create" != yes; then
14180 ac_config_status_args=
14181 test "$silent" = yes &&
14182 ac_config_status_args="$ac_config_status_args --quiet"
14184 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14186 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14187 # would make configure fail if this is the last instruction.
14188 $ac_cs_success || { (exit 1); exit 1; }
14192 echo "Configuration:
14194 Rxvt version: $VERSION : $DATE
14195 Source code location: $srcdir
14196 Install path: ${prefix}/bin
14198 Compiler flags: $CFLAGS
14201 if test "$MALLOC_TYPE" = S; then
14202 echo " malloc support: system default"
14204 if test "$MALLOC_TYPE" = G; then
14205 echo " malloc support: Gray Watson's dmalloc"
14207 if test "$MALLOC_TYPE" = D; then
14208 echo " malloc support: Doug Lea's malloc"
14211 if test x$support_xpm = xyes; then
14212 echo " Xpm library: $XPM_LIBS"
14216 The following are set in config.h
14218 echo " pty/tty type: "$rxvt_cv_ptys
14219 if test x$support_utmp != xyes; then
14220 echo " utmp support: disabled"
14223 echo " utmp support: enabled
14224 utmp file: $rxvt_cv_path_utmp
14225 utmpx file: $rxvt_cv_path_utmpx
14226 wtmp file: $rxvt_cv_path_wtmp
14227 wtmpx file: $rxvt_cv_path_wtmpx
14228 lastlog file: $rxvt_cv_path_lastlog
14229 ttys/ttytab file: $rxvt_cv_path_ttytab
14230 embedded perl: $support_perl"
14233 if test x$term != x; then
14234 echo " set TERM to: $term"
14236 if test x$terminfo != x; then
14237 echo " set TERMINFO to: $terminfo"
14239 echo " default resource name: $RESNAME"
14240 echo " resource class: $RESCLASS"
14241 if test x$RESFALLBACK != x; then
14242 echo " resource class fallback: $RESFALLBACK"
14245 if test x$rxvt_cv_ptys = xUNKNOWN; then
14246 echo ".----------------------------------------------------------------."
14247 echo ". WARNING: could not determine pty/tty type. Do not build until ."
14248 echo ". the appropriate PTYS_ARE_* is defined in config.h ."
14249 echo ".----------------------------------------------------------------."
14251 if test x$support_xpm = xneedsmanualspecification; then
14252 echo ".----------------------------------------------------------------."
14253 echo ". WARNING: --enable-xpm-background was specified however the ."
14254 echo ". XPM includes files and libraries could not be found. ."
14255 echo ". XPM backgrounds are now being DISABLED! If you want ."
14256 echo ". to use them you should rerun configure with the ."
14257 echo ". appropriate --with-xpm-includes=/path/to/xpm/includes ."
14258 echo ". and --with-xpm-library=/path/to/xpm/library lines. ."
14259 echo ".----------------------------------------------------------------."
14261 if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then
14262 echo ".----------------------------------------------------------------."
14263 echo ". WARNING: --enable-xim was specified however the locale support ."
14264 echo ". functions could not be found. ."
14265 echo ". XIM is now being DISABLED! ."
14266 echo ".----------------------------------------------------------------."
14269 echo " *** Optionally check src/feature.h for further options ***"
14272 echo ".----------------------------------------------------------------."
14273 echo ". NOTE: some features are disabled by default, try ."
14274 echo ". configure --help to get an idea of the optional features, ."
14275 echo ". or read ./README.configure ."
14277 echo ". The script ./reconf gives a reasonable baseline, try it if ."
14278 echo ". you do not want to read documentation and still want some ."
14279 echo ". useful features. ."
14280 echo ".----------------------------------------------------------------."