ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/configure
Revision: 1.71
Committed: Mon Jan 16 14:48:39 2006 UTC (18 years, 4 months ago) by root
Branch: MAIN
Changes since 1.70: +0 -19 lines
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 pcg 1.1 #! /bin/sh
2     # Guess values for system-dependent variables and create Makefiles.
3 pcg 1.11 # Generated by GNU Autoconf 2.59.
4 pcg 1.1 #
5 pcg 1.11 # Copyright (C) 2003 Free Software Foundation, Inc.
6 pcg 1.1 # This configure script is free software; the Free Software Foundation
7     # gives unlimited permission to copy, distribute and modify it.
8 pcg 1.11 ## --------------------- ##
9     ## M4sh Initialization. ##
10     ## --------------------- ##
11    
12     # Be Bourne compatible
13     if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14     emulate sh
15     NULLCMD=:
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
20     set -o posix
21     fi
22     DUALCASE=1; export DUALCASE # for MKS sh
23    
24     # Support unset when possible.
25     if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26     as_unset=unset
27     else
28     as_unset=false
29     fi
30    
31    
32     # Work around bugs in pre-3.0 UWIN ksh.
33     $as_unset ENV MAIL MAILPATH
34     PS1='$ '
35     PS2='> '
36     PS4='+ '
37    
38     # NLS nuisances.
39     for as_var in \
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 \
42     LC_TELEPHONE LC_TIME
43     do
44     if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46     else
47     $as_unset $as_var
48     fi
49     done
50    
51     # Required to use basename.
52     if expr a : '\(a\)' >/dev/null 2>&1; then
53     as_expr=expr
54     else
55     as_expr=false
56     fi
57    
58     if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59     as_basename=basename
60     else
61     as_basename=false
62     fi
63    
64    
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 ||
71     echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73     /^X\/\(\/\/\)$/{ s//\1/; q; }
74     /^X\/\(\/\).*/{ s//\1/; q; }
75     s/.*/./; q'`
76    
77    
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
85    
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
90     chmod +x conf$$.sh
91     if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93     else
94     PATH_SEPARATOR=:
95     fi
96     rm -f conf$$.sh
97     fi
98    
99    
100     as_lineno_1=$LINENO
101     as_lineno_2=$LINENO
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
106     # relative or not.
107     case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110     for as_dir in $PATH
111     do
112     IFS=$as_save_IFS
113     test -z "$as_dir" && as_dir=.
114     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115     done
116    
117     ;;
118     esac
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
122     as_myself=$0
123     fi
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; }; }
127     fi
128     case $CONFIG_SHELL in
129     '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131     for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132     do
133     IFS=$as_save_IFS
134     test -z "$as_dir" && as_dir=.
135     for as_base in sh bash ksh sh5; do
136     case $as_dir in
137     /*)
138     if ("$as_dir/$as_base" -c '
139     as_lineno_1=$LINENO
140     as_lineno_2=$LINENO
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
147     export CONFIG_SHELL
148     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149     fi;;
150     esac
151     done
152     done
153     ;;
154     esac
155    
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 |
165     sed '
166     N
167     s,$,-,
168     : loop
169     s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170     t loop
171     s,-$,,
172     s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
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; }; }
177    
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).
181     . ./$as_me.lineno
182     # Exit status is that of the last command.
183     exit
184     }
185    
186    
187     case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188     *c*,-n*) ECHO_N= ECHO_C='
189     ' ECHO_T=' ' ;;
190     *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191     *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192     esac
193    
194     if expr a : '\(a\)' >/dev/null 2>&1; then
195     as_expr=expr
196     else
197     as_expr=false
198     fi
199    
200     rm -f conf$$ conf$$.exe conf$$.file
201     echo >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
207     as_ln_s='cp -p'
208     else
209     as_ln_s='ln -s'
210     fi
211     elif ln conf$$.file conf$$ 2>/dev/null; then
212     as_ln_s=ln
213     else
214     as_ln_s='cp -p'
215     fi
216     rm -f conf$$ conf$$.exe conf$$.file
217    
218     if mkdir -p . 2>/dev/null; then
219     as_mkdir_p=:
220     else
221     test -d ./-p && rmdir ./-p
222     as_mkdir_p=false
223     fi
224    
225     as_executable_p="test -f"
226    
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'"
229    
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'"
232    
233    
234     # IFS
235     # We need space, tab and new line, in precisely that order.
236     as_nl='
237     '
238     IFS=" $as_nl"
239    
240     # CDPATH.
241     $as_unset CDPATH
242 pcg 1.1
243    
244 pcg 1.11 # Name of the host.
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`
248    
249     exec 6>&1
250    
251     #
252     # Initializations.
253     #
254     ac_default_prefix=/usr/local
255     ac_config_libobj_dir=.
256     cross_compiling=no
257     subdirs=
258     MFLAGS=
259     MAKEFLAGS=
260     SHELL=${CONFIG_SHELL-/bin/sh}
261    
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}
266    
267     # Identity of this package.
268     PACKAGE_NAME=
269     PACKAGE_TARNAME=
270     PACKAGE_VERSION=
271     PACKAGE_STRING=
272     PACKAGE_BUGREPORT=
273    
274     ac_unique_file="src/feature.h"
275     # Factoring default headers for most tests.
276     ac_includes_default="\
277     #include <stdio.h>
278     #if HAVE_SYS_TYPES_H
279     # include <sys/types.h>
280     #endif
281     #if HAVE_SYS_STAT_H
282     # include <sys/stat.h>
283     #endif
284     #if STDC_HEADERS
285     # include <stdlib.h>
286     # include <stddef.h>
287     #else
288     # if HAVE_STDLIB_H
289     # include <stdlib.h>
290     # endif
291     #endif
292     #if HAVE_STRING_H
293     # if !STDC_HEADERS && HAVE_MEMORY_H
294     # include <memory.h>
295     # endif
296     # include <string.h>
297     #endif
298     #if HAVE_STRINGS_H
299     # include <strings.h>
300     #endif
301     #if HAVE_INTTYPES_H
302     # include <inttypes.h>
303     #else
304     # if HAVE_STDINT_H
305     # include <stdint.h>
306     # endif
307     #endif
308     #if HAVE_UNISTD_H
309     # include <unistd.h>
310     #endif"
311    
312 root 1.61 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 pcg 1.11 ac_subst_files='MCOMMON'
314 pcg 1.1
315     # Initialize some variables set by options.
316 pcg 1.11 ac_init_help=
317     ac_init_version=false
318 pcg 1.1 # The variables have the same names as the options, with
319     # dashes changed to underlines.
320 pcg 1.11 cache_file=/dev/null
321 pcg 1.1 exec_prefix=NONE
322     no_create=
323     no_recursion=
324     prefix=NONE
325     program_prefix=NONE
326     program_suffix=NONE
327     program_transform_name=s,x,x,
328     silent=
329     site=
330     srcdir=
331     verbose=
332     x_includes=NONE
333     x_libraries=NONE
334 pcg 1.11
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 pcg 1.1 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'
352    
353     ac_prev=
354     for ac_option
355     do
356     # If the previous option needs an argument, assign it.
357     if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361     fi
362    
363 pcg 1.11 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 pcg 1.1
365     # Accept the important Cygnus configure options, so we can diagnose typos.
366    
367 pcg 1.11 case $ac_option in
368 pcg 1.1
369     -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371     -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 pcg 1.11 bindir=$ac_optarg ;;
373 pcg 1.1
374     -build | --build | --buil | --bui | --bu)
375 pcg 1.11 ac_prev=build_alias ;;
376 pcg 1.1 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 pcg 1.11 build_alias=$ac_optarg ;;
378 pcg 1.1
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 pcg 1.11 cache_file=$ac_optarg ;;
385    
386     --config-cache | -C)
387     cache_file=config.cache ;;
388 pcg 1.1
389     -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391     -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392     | --da=*)
393 pcg 1.11 datadir=$ac_optarg ;;
394 pcg 1.1
395     -disable-* | --disable-*)
396 pcg 1.11 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 pcg 1.1 # Reject names that are not valid shell variable names.
398 pcg 1.11 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" ;;
403 pcg 1.1
404     -enable-* | --enable-*)
405 pcg 1.11 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 pcg 1.1 # Reject names that are not valid shell variable names.
407 pcg 1.11 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'`
411     case $ac_option in
412     *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 pcg 1.1 *) ac_optarg=yes ;;
414     esac
415 pcg 1.11 eval "enable_$ac_feature='$ac_optarg'" ;;
416 pcg 1.1
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 pcg 1.11 exec_prefix=$ac_optarg ;;
425 pcg 1.1
426     -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429    
430 pcg 1.11 -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
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 ;;
436 pcg 1.1
437     -host | --host | --hos | --ho)
438 pcg 1.11 ac_prev=host_alias ;;
439 pcg 1.1 -host=* | --host=* | --hos=* | --ho=*)
440 pcg 1.11 host_alias=$ac_optarg ;;
441 pcg 1.1
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 pcg 1.11 includedir=$ac_optarg ;;
448 pcg 1.1
449     -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451     -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 pcg 1.11 infodir=$ac_optarg ;;
453 pcg 1.1
454     -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456     -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 pcg 1.11 libdir=$ac_optarg ;;
458 pcg 1.1
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 pcg 1.11 libexecdir=$ac_optarg ;;
465 pcg 1.1
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 pcg 1.11 localstatedir=$ac_optarg ;;
474 pcg 1.1
475     -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477     -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 pcg 1.11 mandir=$ac_optarg ;;
479 pcg 1.1
480     -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483    
484     -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 pcg 1.11 | --no-cr | --no-c | -n)
486 pcg 1.1 no_create=yes ;;
487    
488     -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489     | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491    
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 pcg 1.11 oldincludedir=$ac_optarg ;;
500 pcg 1.1
501     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 pcg 1.11 prefix=$ac_optarg ;;
505 pcg 1.1
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 pcg 1.11 program_prefix=$ac_optarg ;;
512 pcg 1.1
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 pcg 1.11 program_suffix=$ac_optarg ;;
519 pcg 1.1
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 pcg 1.11 program_transform_name=$ac_optarg ;;
536 pcg 1.1
537     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538     | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540    
541     -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543     -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544     | --sbi=* | --sb=*)
545 pcg 1.11 sbindir=$ac_optarg ;;
546 pcg 1.1
547     -sharedstatedir | --sharedstatedir | --sharedstatedi \
548     | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549     | --sharedst | --shareds | --shared | --share | --shar \
550     | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552     -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553     | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554     | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555     | --sha=* | --sh=*)
556 pcg 1.11 sharedstatedir=$ac_optarg ;;
557 pcg 1.1
558     -site | --site | --sit)
559     ac_prev=site ;;
560     -site=* | --site=* | --sit=*)
561 pcg 1.11 site=$ac_optarg ;;
562 pcg 1.1
563     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 pcg 1.11 srcdir=$ac_optarg ;;
567 pcg 1.1
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 pcg 1.11 sysconfdir=$ac_optarg ;;
574 pcg 1.1
575     -target | --target | --targe | --targ | --tar | --ta | --t)
576 pcg 1.11 ac_prev=target_alias ;;
577 pcg 1.1 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 pcg 1.11 target_alias=$ac_optarg ;;
579 pcg 1.1
580     -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582    
583 pcg 1.11 -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585 pcg 1.1
586     -with-* | --with-*)
587 pcg 1.11 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 pcg 1.1 # Reject names that are not valid shell variable names.
589 pcg 1.11 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 pcg 1.1 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 pcg 1.11 case $ac_option in
594     *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 pcg 1.1 *) ac_optarg=yes ;;
596     esac
597 pcg 1.11 eval "with_$ac_package='$ac_optarg'" ;;
598 pcg 1.1
599     -without-* | --without-*)
600 pcg 1.11 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 pcg 1.1 # Reject names that are not valid shell variable names.
602 pcg 1.11 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" ;;
607 pcg 1.1
608     --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611    
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 pcg 1.11 x_includes=$ac_optarg ;;
618 pcg 1.1
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 pcg 1.11 x_libraries=$ac_optarg ;;
625 pcg 1.1
626 pcg 1.11 -*) { echo "$as_me: error: unrecognized option: $ac_option
627     Try \`$0 --help' for more information." >&2
628     { (exit 1); exit 1; }; }
629 pcg 1.1 ;;
630    
631 pcg 1.11 *=*)
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'"
639     export $ac_envvar ;;
640    
641 pcg 1.1 *)
642 pcg 1.11 # 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}
647 pcg 1.1 ;;
648    
649     esac
650     done
651    
652     if test -n "$ac_prev"; then
653 pcg 1.11 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654     { echo "$as_me: error: missing argument to $ac_option" >&2
655     { (exit 1); exit 1; }; }
656 pcg 1.1 fi
657    
658 pcg 1.11 # Be sure to have absolute paths.
659     for ac_var in exec_prefix prefix
660     do
661     eval ac_val=$`echo $ac_var`
662     case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665     { (exit 1); exit 1; }; };;
666     esac
667     done
668 pcg 1.1
669 pcg 1.11 # Be sure to have absolute paths.
670     for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671     localstatedir libdir includedir oldincludedir infodir mandir
672 pcg 1.1 do
673 pcg 1.11 eval ac_val=$`echo $ac_var`
674     case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677     { (exit 1); exit 1; }; };;
678 pcg 1.1 esac
679     done
680    
681 pcg 1.11 # 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.
684     build=$build_alias
685     host=$host_alias
686     target=$target_alias
687    
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
695     cross_compiling=yes
696     fi
697     fi
698    
699     ac_tool_prefix=
700     test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 pcg 1.1
702 pcg 1.11 test "$silent" = yes && exec 6>/dev/null
703 pcg 1.1
704    
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 pcg 1.11 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 ||
715     echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718     /^X\(\/\/\)$/{ s//\1/; q; }
719     /^X\(\/\).*/{ s//\1/; q; }
720     s/.*/./; q'`
721 pcg 1.1 srcdir=$ac_confdir
722     if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724     fi
725     else
726     ac_srcdir_defaulted=no
727     fi
728     if test ! -r $srcdir/$ac_unique_file; then
729     if test "$ac_srcdir_defaulted" = yes; then
730 pcg 1.11 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731     { (exit 1); exit 1; }; }
732 pcg 1.1 else
733 pcg 1.11 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734     { (exit 1); exit 1; }; }
735 pcg 1.1 fi
736     fi
737 pcg 1.11 (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}
754     ac_env_CC_value=$CC
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 pcg 1.13 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
785 pcg 1.11
786     #
787     # Report the --help message.
788     #
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.
792     cat <<_ACEOF
793     \`configure' configures this package to adapt to many kinds of systems.
794    
795     Usage: $0 [OPTION]... [VAR=VALUE]...
796    
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.
799    
800     Defaults for the options are specified in brackets.
801    
802     Configuration:
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 \`..']
812    
813     _ACEOF
814    
815     cat <<_ACEOF
816     Installation directories:
817     --prefix=PREFIX install architecture-independent files in PREFIX
818     [$ac_default_prefix]
819     --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
820     [PREFIX]
821    
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'.
826    
827     For better control, use the options below.
828    
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]
842     _ACEOF
843    
844     cat <<\_ACEOF
845    
846     X features:
847     --x-includes=DIR X include files are in DIR
848     --x-libraries=DIR X library files are in DIR
849    
850     Program names:
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
854    
855     System types:
856     --build=BUILD configure for building on BUILD [guessed]
857     --host=HOST cross-compile to build programs to run on HOST [BUILD]
858     _ACEOF
859     fi
860    
861     if test -n "$ac_init_help"; then
862    
863     cat <<\_ACEOF
864    
865     Optional Features:
866     --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
867     --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
868 pcg 1.13 --enable-everything enable standard non-multichoice features
869 pcg 1.11 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 pcg 1.18 --enable-combining enable composition of base and combining characters
873 pcg 1.15 --enable-xft enable xft support on systems that have it
874 root 1.39 --enable-font-styles enable bold and italic support
875 pcg 1.11 --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 pcg 1.24 --enable-tinting enable tinting of transparent bg
881 root 1.31 --enable-fading enable colors fading when off focus
882 pcg 1.11 --enable-rxvt-scroll enable rxvt style scrollbar
883     --enable-next-scroll enable NeXT style scrollbar
884     --enable-xterm-scroll enable Xterm style scrollbar
885 root 1.60 --enable-perl enable embedded perl interpreter
886 pcg 1.11 --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 root 1.26 --enable-8bitctrls enable 8 bit control sequences (not recommended)
894 pcg 1.15 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
895 pcg 1.11 --disable-swapscreen disable swap screen support
896 root 1.34 --enable-iso14755 enable support for extended ISO 14755 modes
897 pcg 1.11 --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
909    
910     Optional Packages:
911     --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
912     --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
913 root 1.41 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)
914 pcg 1.15 --with-res-name=NAME use this as default resource name (default: urxvt)
915 pcg 1.18 --with-res-class=CLASS use this as the resource class (default: URxvt)
916 pcg 1.15 --with-name=NAME set the basename for the installed binaries (default: urxvt)
917     --with-term=NAME set the terminal to NAME (default: rxvt)
918 pcg 1.11 --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
922     --with-xpm use XPM
923    
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
933     CPP C preprocessor
934 pcg 1.13 CXXCPP C++ preprocessor
935 pcg 1.11
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.
938    
939     _ACEOF
940     fi
941    
942     if test "$ac_init_help" = "recursive"; then
943     # If there are subdirs, report their specific --help.
944     ac_popdir=`pwd`
945     for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
946     test -d $ac_dir || continue
947     ac_builddir=.
948    
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'`
953     else
954     ac_dir_suffix= ac_top_builddir=
955     fi
956    
957     case $srcdir in
958     .) # No --srcdir option. We are building in place.
959     ac_srcdir=.
960     if test -z "$ac_top_builddir"; then
961     ac_top_srcdir=.
962     else
963     ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
964     fi ;;
965     [\\/]* | ?:[\\/]* ) # Absolute path.
966     ac_srcdir=$srcdir$ac_dir_suffix;
967     ac_top_srcdir=$srcdir ;;
968     *) # Relative path.
969     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
970     ac_top_srcdir=$ac_top_builddir$srcdir ;;
971     esac
972    
973     # Do not use `cd foo && pwd` to compute absolute paths, because
974     # the directories may not exist.
975     case `pwd` in
976     .) ac_abs_builddir="$ac_dir";;
977     *)
978     case "$ac_dir" in
979     .) ac_abs_builddir=`pwd`;;
980     [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
981     *) ac_abs_builddir=`pwd`/"$ac_dir";;
982     esac;;
983     esac
984     case $ac_abs_builddir in
985     .) ac_abs_top_builddir=${ac_top_builddir}.;;
986     *)
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}.;;
991     esac;;
992     esac
993     case $ac_abs_builddir in
994     .) ac_abs_srcdir=$ac_srcdir;;
995     *)
996     case $ac_srcdir in
997     .) ac_abs_srcdir=$ac_abs_builddir;;
998     [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
999     *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1000     esac;;
1001     esac
1002     case $ac_abs_builddir in
1003     .) ac_abs_top_srcdir=$ac_top_srcdir;;
1004     *)
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;;
1009     esac;;
1010     esac
1011    
1012     cd $ac_dir
1013     # Check for guested configure; otherwise get Cygnus style configure.
1014     if test -f $ac_srcdir/configure.gnu; then
1015     echo
1016     $SHELL $ac_srcdir/configure.gnu --help=recursive
1017     elif test -f $ac_srcdir/configure; then
1018     echo
1019     $SHELL $ac_srcdir/configure --help=recursive
1020     elif test -f $ac_srcdir/configure.ac ||
1021     test -f $ac_srcdir/configure.in; then
1022     echo
1023     $ac_configure --help
1024     else
1025     echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1026     fi
1027     cd "$ac_popdir"
1028     done
1029     fi
1030    
1031     test -n "$ac_init_help" && exit 0
1032     if $ac_init_version; then
1033     cat <<\_ACEOF
1034    
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.
1038     _ACEOF
1039     exit 0
1040     fi
1041     exec 5>config.log
1042     cat >&5 <<_ACEOF
1043     This file contains any messages produced by compilers while
1044     running configure, to aid debugging if configure makes a mistake.
1045    
1046     It was created by $as_me, which was
1047     generated by GNU Autoconf 2.59. Invocation command line was
1048    
1049     $ $0 $@
1050    
1051     _ACEOF
1052     {
1053     cat <<_ASUNAME
1054     ## --------- ##
1055     ## Platform. ##
1056     ## --------- ##
1057    
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`
1063    
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`
1066    
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`
1074    
1075     _ASUNAME
1076    
1077     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1078     for as_dir in $PATH
1079     do
1080     IFS=$as_save_IFS
1081     test -z "$as_dir" && as_dir=.
1082     echo "PATH: $as_dir"
1083     done
1084    
1085     } >&5
1086    
1087     cat >&5 <<_ACEOF
1088    
1089    
1090     ## ----------- ##
1091     ## Core tests. ##
1092     ## ----------- ##
1093    
1094     _ACEOF
1095    
1096    
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.
1102     ac_configure_args=
1103     ac_configure_args0=
1104     ac_configure_args1=
1105     ac_sep=
1106     ac_must_keep_next=false
1107     for ac_pass in 1 2
1108     do
1109     for ac_arg
1110     do
1111     case $ac_arg in
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)
1115     continue ;;
1116     *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1117     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1118     esac
1119     case $ac_pass in
1120     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1121     2)
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.
1125     else
1126     case $ac_arg in
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 ;;
1133     esac
1134     ;;
1135     -* ) ac_must_keep_next=true ;;
1136     esac
1137     fi
1138     ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1139     # Get rid of the leading space.
1140     ac_sep=" "
1141     ;;
1142     esac
1143     done
1144     done
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; }
1147    
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.
1155     {
1156     echo
1157    
1158     cat <<\_ASBOX
1159     ## ---------------- ##
1160     ## Cache variables. ##
1161     ## ---------------- ##
1162     _ASBOX
1163     echo
1164     # The following way of writing the cache mishandles newlines in values,
1165     {
1166     (set) 2>&1 |
1167     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1168     *ac_space=\ *)
1169     sed -n \
1170     "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1171     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1172     ;;
1173     *)
1174     sed -n \
1175     "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1176     ;;
1177     esac;
1178     }
1179     echo
1180    
1181     cat <<\_ASBOX
1182     ## ----------------- ##
1183     ## Output variables. ##
1184     ## ----------------- ##
1185     _ASBOX
1186     echo
1187     for ac_var in $ac_subst_vars
1188     do
1189     eval ac_val=$`echo $ac_var`
1190     echo "$ac_var='"'"'$ac_val'"'"'"
1191     done | sort
1192     echo
1193    
1194     if test -n "$ac_subst_files"; then
1195     cat <<\_ASBOX
1196     ## ------------- ##
1197     ## Output files. ##
1198     ## ------------- ##
1199     _ASBOX
1200     echo
1201     for ac_var in $ac_subst_files
1202     do
1203     eval ac_val=$`echo $ac_var`
1204     echo "$ac_var='"'"'$ac_val'"'"'"
1205     done | sort
1206     echo
1207     fi
1208    
1209     if test -s confdefs.h; then
1210     cat <<\_ASBOX
1211     ## ----------- ##
1212     ## confdefs.h. ##
1213     ## ----------- ##
1214     _ASBOX
1215     echo
1216     sed "/^$/d" confdefs.h | sort
1217     echo
1218     fi
1219     test "$ac_signal" != 0 &&
1220     echo "$as_me: caught signal $ac_signal"
1221     echo "$as_me: exit $exit_status"
1222     } >&5
1223     rm -f core *.core &&
1224     rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1225     exit $exit_status
1226     ' 0
1227     for ac_signal in 1 2 13 15; do
1228     trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1229     done
1230     ac_signal=0
1231    
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.
1235     echo >confdefs.h
1236    
1237     # Predefined preprocessor variables.
1238    
1239     cat >>confdefs.h <<_ACEOF
1240     #define PACKAGE_NAME "$PACKAGE_NAME"
1241     _ACEOF
1242    
1243    
1244     cat >>confdefs.h <<_ACEOF
1245     #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1246     _ACEOF
1247    
1248    
1249     cat >>confdefs.h <<_ACEOF
1250     #define PACKAGE_VERSION "$PACKAGE_VERSION"
1251     _ACEOF
1252    
1253    
1254     cat >>confdefs.h <<_ACEOF
1255     #define PACKAGE_STRING "$PACKAGE_STRING"
1256     _ACEOF
1257    
1258    
1259     cat >>confdefs.h <<_ACEOF
1260     #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1261     _ACEOF
1262 pcg 1.1
1263 pcg 1.11
1264     # Let the site file select an alternate cache file if it wants to.
1265 pcg 1.1 # 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"
1269     else
1270     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1271     fi
1272     fi
1273     for ac_site_file in $CONFIG_SITE; do
1274     if test -r "$ac_site_file"; then
1275 pcg 1.11 { 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
1278 pcg 1.1 . "$ac_site_file"
1279     fi
1280     done
1281    
1282     if test -r "$cache_file"; then
1283 pcg 1.11 # 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;}
1288     case $cache_file in
1289     [\\/]* | ?:[\\/]* ) . $cache_file;;
1290     *) . ./$cache_file;;
1291     esac
1292     fi
1293 pcg 1.1 else
1294 pcg 1.11 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1295     echo "$as_me: creating cache $cache_file" >&6;}
1296     >$cache_file
1297     fi
1298    
1299     # Check that the precious variables saved in the cache have kept the same
1300     # value.
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
1309     set,)
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=: ;;
1313     ,set)
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=: ;;
1317     ,);;
1318     *)
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=:
1327     fi;;
1328     esac
1329     # Pass precious variables to config.status.
1330     if test "$ac_new_set" = set; then
1331     case $ac_new_val in
1332     *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1333     ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1334     *) ac_arg=$ac_var=$ac_new_val ;;
1335     esac
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'" ;;
1339     esac
1340     fi
1341     done
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; }; }
1348 pcg 1.1 fi
1349    
1350     ac_ext=c
1351     ac_cpp='$CPP $CPPFLAGS'
1352 pcg 1.11 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
1355    
1356    
1357    
1358    
1359    
1360    
1361    
1362    
1363    
1364    
1365    
1366    
1367    
1368    
1369    
1370    
1371    
1372 pcg 1.1
1373    
1374 root 1.32
1375 pcg 1.1 ac_aux_dir=
1376     for ac_dir in autoconf $srcdir/autoconf; do
1377     if test -f $ac_dir/install-sh; then
1378     ac_aux_dir=$ac_dir
1379     ac_install_sh="$ac_aux_dir/install-sh -c"
1380     break
1381     elif test -f $ac_dir/install.sh; then
1382     ac_aux_dir=$ac_dir
1383     ac_install_sh="$ac_aux_dir/install.sh -c"
1384     break
1385 pcg 1.11 elif test -f $ac_dir/shtool; then
1386     ac_aux_dir=$ac_dir
1387     ac_install_sh="$ac_aux_dir/shtool install -c"
1388     break
1389 pcg 1.1 fi
1390     done
1391     if test -z "$ac_aux_dir"; then
1392 pcg 1.11 { { 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; }; }
1395     fi
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.
1399 pcg 1.1
1400 pcg 1.11 ac_config_headers="$ac_config_headers config.h:autoconf/config.h.in"
1401 pcg 1.1
1402    
1403 root 1.48 # 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; }; }
1408    
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
1413     else
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; }; }
1425    
1426     fi
1427     echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1428     echo "${ECHO_T}$ac_cv_build" >&6
1429     build=$ac_cv_build
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/'`
1433    
1434    
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
1439     else
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; }; }
1447    
1448     fi
1449     echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1450     echo "${ECHO_T}$ac_cv_host" >&6
1451     host=$ac_cv_host
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/'`
1455    
1456    
1457    
1458 pcg 1.1 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`
1460     echo ""
1461     echo "configuring for rxvt $VERSION"
1462     echo ""
1463    
1464    
1465 pcg 1.11 ac_ext=c
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
1477     else
1478     if test -n "$CC"; then
1479     ac_cv_prog_CC="$CC" # Let the user override the test.
1480     else
1481     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1482     for as_dir in $PATH
1483     do
1484     IFS=$as_save_IFS
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
1490     break 2
1491     fi
1492     done
1493     done
1494    
1495     fi
1496     fi
1497     CC=$ac_cv_prog_CC
1498     if test -n "$CC"; then
1499     echo "$as_me:$LINENO: result: $CC" >&5
1500     echo "${ECHO_T}$CC" >&6
1501     else
1502     echo "$as_me:$LINENO: result: no" >&5
1503     echo "${ECHO_T}no" >&6
1504     fi
1505    
1506     fi
1507     if test -z "$ac_cv_prog_CC"; then
1508     ac_ct_CC=$CC
1509     # Extract the first word of "gcc", so it can be a program name with args.
1510 pcg 1.1 set dummy gcc; ac_word=$2
1511 pcg 1.11 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
1515     else
1516     if test -n "$ac_ct_CC"; then
1517     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1518     else
1519     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1520     for as_dir in $PATH
1521     do
1522     IFS=$as_save_IFS
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
1528     break 2
1529     fi
1530     done
1531     done
1532    
1533     fi
1534     fi
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
1539     else
1540     echo "$as_me:$LINENO: result: no" >&5
1541     echo "${ECHO_T}no" >&6
1542     fi
1543    
1544     CC=$ac_ct_CC
1545     else
1546     CC="$ac_cv_prog_CC"
1547     fi
1548    
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
1557 pcg 1.1 else
1558     if test -n "$CC"; then
1559     ac_cv_prog_CC="$CC" # Let the user override the test.
1560     else
1561 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1562     for as_dir in $PATH
1563     do
1564     IFS=$as_save_IFS
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
1570     break 2
1571     fi
1572     done
1573     done
1574    
1575 pcg 1.1 fi
1576     fi
1577 pcg 1.11 CC=$ac_cv_prog_CC
1578 pcg 1.1 if test -n "$CC"; then
1579 pcg 1.11 echo "$as_me:$LINENO: result: $CC" >&5
1580     echo "${ECHO_T}$CC" >&6
1581     else
1582     echo "$as_me:$LINENO: result: no" >&5
1583     echo "${ECHO_T}no" >&6
1584     fi
1585    
1586     fi
1587     if test -z "$ac_cv_prog_CC"; then
1588     ac_ct_CC=$CC
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
1595     else
1596     if test -n "$ac_ct_CC"; then
1597     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1598     else
1599     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1600     for as_dir in $PATH
1601     do
1602     IFS=$as_save_IFS
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
1608     break 2
1609     fi
1610     done
1611     done
1612    
1613     fi
1614     fi
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
1619     else
1620     echo "$as_me:$LINENO: result: no" >&5
1621     echo "${ECHO_T}no" >&6
1622     fi
1623    
1624     CC=$ac_ct_CC
1625 pcg 1.1 else
1626 pcg 1.11 CC="$ac_cv_prog_CC"
1627 pcg 1.1 fi
1628    
1629 pcg 1.11 fi
1630 pcg 1.1 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 pcg 1.11 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
1637 pcg 1.1 else
1638     if test -n "$CC"; then
1639     ac_cv_prog_CC="$CC" # Let the user override the test.
1640     else
1641     ac_prog_rejected=no
1642 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1643     for as_dir in $PATH
1644     do
1645     IFS=$as_save_IFS
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
1651     continue
1652     fi
1653     ac_cv_prog_CC="cc"
1654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1655     break 2
1656     fi
1657     done
1658     done
1659    
1660 pcg 1.1 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
1663     shift
1664 pcg 1.11 if test $# != 0; then
1665 pcg 1.1 # 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.
1668     shift
1669 pcg 1.11 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1670 pcg 1.1 fi
1671     fi
1672     fi
1673     fi
1674 pcg 1.11 CC=$ac_cv_prog_CC
1675 pcg 1.1 if test -n "$CC"; then
1676 pcg 1.11 echo "$as_me:$LINENO: result: $CC" >&5
1677     echo "${ECHO_T}$CC" >&6
1678 pcg 1.1 else
1679 pcg 1.11 echo "$as_me:$LINENO: result: no" >&5
1680     echo "${ECHO_T}no" >&6
1681 pcg 1.1 fi
1682    
1683 pcg 1.11 fi
1684     if test -z "$CC"; then
1685     if test -n "$ac_tool_prefix"; then
1686     for ac_prog in cl
1687     do
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
1694 pcg 1.1 else
1695     if test -n "$CC"; then
1696     ac_cv_prog_CC="$CC" # Let the user override the test.
1697     else
1698 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699     for as_dir in $PATH
1700     do
1701     IFS=$as_save_IFS
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
1707     break 2
1708     fi
1709     done
1710     done
1711    
1712 pcg 1.1 fi
1713     fi
1714 pcg 1.11 CC=$ac_cv_prog_CC
1715 pcg 1.1 if test -n "$CC"; then
1716 pcg 1.11 echo "$as_me:$LINENO: result: $CC" >&5
1717     echo "${ECHO_T}$CC" >&6
1718 pcg 1.1 else
1719 pcg 1.11 echo "$as_me:$LINENO: result: no" >&5
1720     echo "${ECHO_T}no" >&6
1721     fi
1722    
1723     test -n "$CC" && break
1724     done
1725 pcg 1.1 fi
1726 pcg 1.11 if test -z "$CC"; then
1727     ac_ct_CC=$CC
1728     for ac_prog in cl
1729     do
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
1736     else
1737     if test -n "$ac_ct_CC"; then
1738     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1739     else
1740     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1741     for as_dir in $PATH
1742     do
1743     IFS=$as_save_IFS
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
1749     break 2
1750 pcg 1.1 fi
1751 pcg 1.11 done
1752     done
1753    
1754     fi
1755     fi
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
1760     else
1761     echo "$as_me:$LINENO: result: no" >&5
1762     echo "${ECHO_T}no" >&6
1763     fi
1764    
1765     test -n "$ac_ct_CC" && break
1766     done
1767    
1768     CC=$ac_ct_CC
1769     fi
1770    
1771 pcg 1.1 fi
1772    
1773    
1774 pcg 1.11 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; }; }
1779    
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
1786     ac_status=$?
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
1791     ac_status=$?
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
1796     ac_status=$?
1797     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1798     (exit $ac_status); }
1799    
1800     cat >conftest.$ac_ext <<_ACEOF
1801     /* confdefs.h. */
1802     _ACEOF
1803     cat confdefs.h >>conftest.$ac_ext
1804     cat >>conftest.$ac_ext <<_ACEOF
1805     /* end confdefs.h. */
1806 pcg 1.1
1807 pcg 1.11 int
1808     main ()
1809     {
1810 pcg 1.1
1811 pcg 1.11 ;
1812     return 0;
1813     }
1814     _ACEOF
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
1819     # of exeext.
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
1825     ac_status=$?
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
1830     # resort.
1831    
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.
1834     ac_cv_exeext=
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
1837     do
1838     test -f "$ac_file" || continue
1839     case $ac_file in
1840     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1841     ;;
1842     conftest.$ac_ext )
1843     # This is the source file.
1844     ;;
1845     [ab].out )
1846     # We found the default executable, but exeext='' is most
1847     # certainly right.
1848     break;;
1849     *.* )
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.
1854     export ac_cv_exeext
1855     break;;
1856     * )
1857     break;;
1858     esac
1859     done
1860     else
1861     echo "$as_me: failed program was:" >&5
1862     sed 's/^/| /' conftest.$ac_ext >&5
1863 pcg 1.1
1864 pcg 1.11 { { 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; }; }
1869     fi
1870    
1871     ac_exeext=$ac_cv_exeext
1872     echo "$as_me:$LINENO: result: $ac_file" >&5
1873     echo "${ECHO_T}$ac_file" >&6
1874    
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
1884     (eval $ac_try) 2>&5
1885     ac_status=$?
1886     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1887     (exit $ac_status); }; }; then
1888     cross_compiling=no
1889     else
1890     if test "$cross_compiling" = maybe; then
1891     cross_compiling=yes
1892     else
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; }; }
1900     fi
1901 pcg 1.1 fi
1902 pcg 1.11 fi
1903     echo "$as_me:$LINENO: result: yes" >&5
1904     echo "${ECHO_T}yes" >&6
1905    
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
1914    
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
1919     ac_status=$?
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
1925     # `rm'.
1926     for ac_file in conftest.exe conftest conftest.*; do
1927     test -f "$ac_file" || continue
1928     case $ac_file in
1929     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1930     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1931     export ac_cv_exeext
1932     break;;
1933     * ) break;;
1934     esac
1935     done
1936 pcg 1.1 else
1937 pcg 1.11 { { 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; }; }
1942 pcg 1.1 fi
1943 pcg 1.11
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
1947    
1948     rm -f conftest.$ac_ext
1949     EXEEXT=$ac_cv_exeext
1950     ac_exeext=$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
1955     else
1956     cat >conftest.$ac_ext <<_ACEOF
1957     /* confdefs.h. */
1958     _ACEOF
1959     cat confdefs.h >>conftest.$ac_ext
1960     cat >>conftest.$ac_ext <<_ACEOF
1961     /* end confdefs.h. */
1962    
1963     int
1964     main ()
1965     {
1966    
1967     ;
1968     return 0;
1969     }
1970     _ACEOF
1971     rm -f conftest.o conftest.obj
1972     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1973     (eval $ac_compile) 2>&5
1974     ac_status=$?
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
1978     case $ac_file in
1979     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1980     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1981     break;;
1982     esac
1983     done
1984 pcg 1.1 else
1985 pcg 1.11 echo "$as_me: failed program was:" >&5
1986     sed 's/^/| /' conftest.$ac_ext >&5
1987    
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; }; }
1993 pcg 1.1 fi
1994 pcg 1.11
1995     rm -f conftest.$ac_cv_objext conftest.$ac_ext
1996 pcg 1.1 fi
1997 pcg 1.11 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1998     echo "${ECHO_T}$ac_cv_objext" >&6
1999     OBJEXT=$ac_cv_objext
2000     ac_objext=$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
2005     else
2006     cat >conftest.$ac_ext <<_ACEOF
2007     /* confdefs.h. */
2008     _ACEOF
2009     cat confdefs.h >>conftest.$ac_ext
2010     cat >>conftest.$ac_ext <<_ACEOF
2011     /* end confdefs.h. */
2012    
2013     int
2014     main ()
2015     {
2016     #ifndef __GNUC__
2017     choke me
2018     #endif
2019 pcg 1.1
2020 pcg 1.11 ;
2021     return 0;
2022     }
2023     _ACEOF
2024     rm -f conftest.$ac_objext
2025     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2026     (eval $ac_compile) 2>conftest.er1
2027     ac_status=$?
2028     grep -v '^ *+' conftest.er1 >conftest.err
2029     rm -f conftest.er1
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
2035     (eval $ac_try) 2>&5
2036     ac_status=$?
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
2041     (eval $ac_try) 2>&5
2042     ac_status=$?
2043     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2044     (exit $ac_status); }; }; then
2045     ac_compiler_gnu=yes
2046     else
2047     echo "$as_me: failed program was:" >&5
2048     sed 's/^/| /' conftest.$ac_ext >&5
2049    
2050     ac_compiler_gnu=no
2051     fi
2052     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2053     ac_cv_c_compiler_gnu=$ac_compiler_gnu
2054    
2055     fi
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
2061     CFLAGS="-g"
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
2066     else
2067     cat >conftest.$ac_ext <<_ACEOF
2068     /* confdefs.h. */
2069     _ACEOF
2070     cat confdefs.h >>conftest.$ac_ext
2071     cat >>conftest.$ac_ext <<_ACEOF
2072     /* end confdefs.h. */
2073 pcg 1.1
2074 pcg 1.11 int
2075     main ()
2076     {
2077 pcg 1.1
2078 pcg 1.11 ;
2079     return 0;
2080     }
2081     _ACEOF
2082     rm -f conftest.$ac_objext
2083     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2084     (eval $ac_compile) 2>conftest.er1
2085     ac_status=$?
2086     grep -v '^ *+' conftest.er1 >conftest.err
2087     rm -f conftest.er1
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
2093     (eval $ac_try) 2>&5
2094     ac_status=$?
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
2099     (eval $ac_try) 2>&5
2100     ac_status=$?
2101     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102     (exit $ac_status); }; }; then
2103 pcg 1.1 ac_cv_prog_cc_g=yes
2104     else
2105 pcg 1.11 echo "$as_me: failed program was:" >&5
2106     sed 's/^/| /' conftest.$ac_ext >&5
2107    
2108     ac_cv_prog_cc_g=no
2109 pcg 1.1 fi
2110 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2111 pcg 1.1 fi
2112 pcg 1.11 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2113     echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2114 pcg 1.1 if test "$ac_test_CFLAGS" = set; then
2115 pcg 1.11 CFLAGS=$ac_save_CFLAGS
2116 pcg 1.1 elif test $ac_cv_prog_cc_g = yes; then
2117     if test "$GCC" = yes; then
2118     CFLAGS="-g -O2"
2119     else
2120     CFLAGS="-g"
2121     fi
2122     else
2123     if test "$GCC" = yes; then
2124     CFLAGS="-O2"
2125     else
2126     CFLAGS=
2127     fi
2128     fi
2129 pcg 1.11 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
2133     else
2134     ac_cv_prog_cc_stdc=no
2135     ac_save_CC=$CC
2136     cat >conftest.$ac_ext <<_ACEOF
2137     /* confdefs.h. */
2138     _ACEOF
2139     cat confdefs.h >>conftest.$ac_ext
2140     cat >>conftest.$ac_ext <<_ACEOF
2141     /* end confdefs.h. */
2142     #include <stdarg.h>
2143     #include <stdio.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)
2150     char **p;
2151     int i;
2152     {
2153     return p[i];
2154     }
2155     static char *f (char * (*g) (char **, int), char **p, ...)
2156     {
2157     char *s;
2158     va_list v;
2159     va_start (v,p);
2160     s = g (p, va_arg (v,int));
2161     va_end (v);
2162     return s;
2163     }
2164 pcg 1.1
2165 pcg 1.11 /* 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];
2173    
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);
2178     int argc;
2179     char **argv;
2180     int
2181     main ()
2182     {
2183     return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2184     ;
2185     return 0;
2186     }
2187     _ACEOF
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__"
2196 pcg 1.1 do
2197 pcg 1.11 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
2201     ac_status=$?
2202     grep -v '^ *+' conftest.er1 >conftest.err
2203     rm -f conftest.er1
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
2209     (eval $ac_try) 2>&5
2210     ac_status=$?
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
2215     (eval $ac_try) 2>&5
2216     ac_status=$?
2217     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218     (exit $ac_status); }; }; then
2219     ac_cv_prog_cc_stdc=$ac_arg
2220     break
2221 pcg 1.1 else
2222 pcg 1.11 echo "$as_me: failed program was:" >&5
2223     sed 's/^/| /' conftest.$ac_ext >&5
2224    
2225 pcg 1.1 fi
2226 pcg 1.11 rm -f conftest.err conftest.$ac_objext
2227 pcg 1.1 done
2228 pcg 1.11 rm -f conftest.$ac_ext conftest.$ac_objext
2229     CC=$ac_save_CC
2230 pcg 1.1
2231 pcg 1.11 fi
2232 pcg 1.1
2233 pcg 1.11 case "x$ac_cv_prog_cc_stdc" in
2234     x|xno)
2235     echo "$as_me:$LINENO: result: none needed" >&5
2236     echo "${ECHO_T}none needed" >&6 ;;
2237     *)
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" ;;
2241     esac
2242 pcg 1.1
2243 pcg 1.11 # 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
2248     #ifndef __cplusplus
2249     choke me
2250     #endif
2251     _ACEOF
2252     rm -f conftest.$ac_objext
2253     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2254     (eval $ac_compile) 2>conftest.er1
2255     ac_status=$?
2256     grep -v '^ *+' conftest.er1 >conftest.err
2257     rm -f conftest.er1
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
2263     (eval $ac_try) 2>&5
2264     ac_status=$?
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
2269     (eval $ac_try) 2>&5
2270     ac_status=$?
2271     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272     (exit $ac_status); }; }; then
2273     for ac_declaration in \
2274     '' \
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);' \
2279     'void exit (int);'
2280     do
2281     cat >conftest.$ac_ext <<_ACEOF
2282     /* confdefs.h. */
2283     _ACEOF
2284     cat confdefs.h >>conftest.$ac_ext
2285     cat >>conftest.$ac_ext <<_ACEOF
2286     /* end confdefs.h. */
2287     $ac_declaration
2288     #include <stdlib.h>
2289     int
2290     main ()
2291     {
2292     exit (42);
2293     ;
2294     return 0;
2295     }
2296     _ACEOF
2297     rm -f conftest.$ac_objext
2298     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2299     (eval $ac_compile) 2>conftest.er1
2300     ac_status=$?
2301     grep -v '^ *+' conftest.er1 >conftest.err
2302     rm -f conftest.er1
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
2308     (eval $ac_try) 2>&5
2309     ac_status=$?
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
2314     (eval $ac_try) 2>&5
2315     ac_status=$?
2316     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317     (exit $ac_status); }; }; then
2318     :
2319     else
2320     echo "$as_me: failed program was:" >&5
2321     sed 's/^/| /' conftest.$ac_ext >&5
2322 pcg 1.1
2323 pcg 1.11 continue
2324     fi
2325     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2326     cat >conftest.$ac_ext <<_ACEOF
2327     /* confdefs.h. */
2328     _ACEOF
2329     cat confdefs.h >>conftest.$ac_ext
2330     cat >>conftest.$ac_ext <<_ACEOF
2331     /* end confdefs.h. */
2332     $ac_declaration
2333     int
2334     main ()
2335     {
2336     exit (42);
2337     ;
2338     return 0;
2339     }
2340     _ACEOF
2341     rm -f conftest.$ac_objext
2342     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2343     (eval $ac_compile) 2>conftest.er1
2344     ac_status=$?
2345     grep -v '^ *+' conftest.er1 >conftest.err
2346     rm -f conftest.er1
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
2352     (eval $ac_try) 2>&5
2353     ac_status=$?
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
2358     (eval $ac_try) 2>&5
2359     ac_status=$?
2360     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361     (exit $ac_status); }; }; then
2362     break
2363     else
2364     echo "$as_me: failed program was:" >&5
2365     sed 's/^/| /' conftest.$ac_ext >&5
2366 pcg 1.1
2367 pcg 1.11 fi
2368     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2369     done
2370     rm -f conftest*
2371     if test -n "$ac_declaration"; then
2372     echo '#ifdef __cplusplus' >>confdefs.h
2373     echo $ac_declaration >>confdefs.h
2374     echo '#endif' >>confdefs.h
2375     fi
2376 pcg 1.1
2377     else
2378 pcg 1.11 echo "$as_me: failed program was:" >&5
2379     sed 's/^/| /' conftest.$ac_ext >&5
2380    
2381 pcg 1.1 fi
2382 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2383 pcg 1.1 ac_ext=c
2384     ac_cpp='$CPP $CPPFLAGS'
2385 pcg 1.11 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
2388    
2389     ac_ext=cc
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
2396     do
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
2403     else
2404     if test -n "$CXX"; then
2405     ac_cv_prog_CXX="$CXX" # Let the user override the test.
2406 pcg 1.1 else
2407 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408     for as_dir in $PATH
2409     do
2410     IFS=$as_save_IFS
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
2416     break 2
2417     fi
2418     done
2419     done
2420    
2421 pcg 1.1 fi
2422     fi
2423 pcg 1.11 CXX=$ac_cv_prog_CXX
2424     if test -n "$CXX"; then
2425     echo "$as_me:$LINENO: result: $CXX" >&5
2426     echo "${ECHO_T}$CXX" >&6
2427 pcg 1.1 else
2428 pcg 1.11 echo "$as_me:$LINENO: result: no" >&5
2429     echo "${ECHO_T}no" >&6
2430 pcg 1.1 fi
2431    
2432 pcg 1.11 test -n "$CXX" && break
2433     done
2434     fi
2435     if test -z "$CXX"; then
2436     ac_ct_CXX=$CXX
2437     for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2438     do
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
2445 pcg 1.1 else
2446 pcg 1.11 if test -n "$ac_ct_CXX"; then
2447     ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2448 pcg 1.1 else
2449 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450     for as_dir in $PATH
2451     do
2452     IFS=$as_save_IFS
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
2458     break 2
2459     fi
2460     done
2461     done
2462    
2463 pcg 1.1 fi
2464 pcg 1.11 fi
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
2469     else
2470     echo "$as_me:$LINENO: result: no" >&5
2471     echo "${ECHO_T}no" >&6
2472 pcg 1.1 fi
2473    
2474 pcg 1.11 test -n "$ac_ct_CXX" && break
2475     done
2476     test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2477    
2478     CXX=$ac_ct_CXX
2479     fi
2480    
2481    
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
2488     ac_status=$?
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
2493     ac_status=$?
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
2498     ac_status=$?
2499     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500     (exit $ac_status); }
2501    
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
2506     else
2507     cat >conftest.$ac_ext <<_ACEOF
2508     /* confdefs.h. */
2509     _ACEOF
2510     cat confdefs.h >>conftest.$ac_ext
2511     cat >>conftest.$ac_ext <<_ACEOF
2512     /* end confdefs.h. */
2513    
2514     int
2515     main ()
2516     {
2517     #ifndef __GNUC__
2518     choke me
2519     #endif
2520    
2521     ;
2522     return 0;
2523     }
2524     _ACEOF
2525     rm -f conftest.$ac_objext
2526     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2527     (eval $ac_compile) 2>conftest.er1
2528     ac_status=$?
2529     grep -v '^ *+' conftest.er1 >conftest.err
2530     rm -f conftest.er1
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
2536     (eval $ac_try) 2>&5
2537     ac_status=$?
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
2542     (eval $ac_try) 2>&5
2543     ac_status=$?
2544     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545     (exit $ac_status); }; }; then
2546     ac_compiler_gnu=yes
2547     else
2548     echo "$as_me: failed program was:" >&5
2549     sed 's/^/| /' conftest.$ac_ext >&5
2550    
2551     ac_compiler_gnu=no
2552     fi
2553     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2554     ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2555    
2556     fi
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
2562     CXXFLAGS="-g"
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
2567     else
2568     cat >conftest.$ac_ext <<_ACEOF
2569     /* confdefs.h. */
2570     _ACEOF
2571     cat confdefs.h >>conftest.$ac_ext
2572     cat >>conftest.$ac_ext <<_ACEOF
2573     /* end confdefs.h. */
2574    
2575     int
2576     main ()
2577     {
2578    
2579     ;
2580     return 0;
2581     }
2582     _ACEOF
2583     rm -f conftest.$ac_objext
2584     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2585     (eval $ac_compile) 2>conftest.er1
2586     ac_status=$?
2587     grep -v '^ *+' conftest.er1 >conftest.err
2588     rm -f conftest.er1
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
2594     (eval $ac_try) 2>&5
2595     ac_status=$?
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
2600     (eval $ac_try) 2>&5
2601     ac_status=$?
2602     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603     (exit $ac_status); }; }; then
2604     ac_cv_prog_cxx_g=yes
2605     else
2606     echo "$as_me: failed program was:" >&5
2607     sed 's/^/| /' conftest.$ac_ext >&5
2608    
2609     ac_cv_prog_cxx_g=no
2610     fi
2611     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2612     fi
2613     echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2614     echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2615 pcg 1.1 if test "$ac_test_CXXFLAGS" = set; then
2616 pcg 1.11 CXXFLAGS=$ac_save_CXXFLAGS
2617 pcg 1.1 elif test $ac_cv_prog_cxx_g = yes; then
2618     if test "$GXX" = yes; then
2619     CXXFLAGS="-g -O2"
2620     else
2621     CXXFLAGS="-g"
2622     fi
2623     else
2624     if test "$GXX" = yes; then
2625     CXXFLAGS="-O2"
2626     else
2627     CXXFLAGS=
2628     fi
2629     fi
2630 pcg 1.11 for ac_declaration in \
2631     '' \
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);' \
2636     'void exit (int);'
2637     do
2638     cat >conftest.$ac_ext <<_ACEOF
2639     /* confdefs.h. */
2640     _ACEOF
2641     cat confdefs.h >>conftest.$ac_ext
2642     cat >>conftest.$ac_ext <<_ACEOF
2643     /* end confdefs.h. */
2644     $ac_declaration
2645     #include <stdlib.h>
2646     int
2647     main ()
2648     {
2649     exit (42);
2650     ;
2651     return 0;
2652     }
2653     _ACEOF
2654     rm -f conftest.$ac_objext
2655     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2656     (eval $ac_compile) 2>conftest.er1
2657     ac_status=$?
2658     grep -v '^ *+' conftest.er1 >conftest.err
2659     rm -f conftest.er1
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
2665     (eval $ac_try) 2>&5
2666     ac_status=$?
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
2671     (eval $ac_try) 2>&5
2672     ac_status=$?
2673     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674     (exit $ac_status); }; }; then
2675     :
2676     else
2677     echo "$as_me: failed program was:" >&5
2678     sed 's/^/| /' conftest.$ac_ext >&5
2679    
2680     continue
2681     fi
2682     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2683     cat >conftest.$ac_ext <<_ACEOF
2684     /* confdefs.h. */
2685     _ACEOF
2686     cat confdefs.h >>conftest.$ac_ext
2687     cat >>conftest.$ac_ext <<_ACEOF
2688     /* end confdefs.h. */
2689     $ac_declaration
2690     int
2691     main ()
2692     {
2693     exit (42);
2694     ;
2695     return 0;
2696     }
2697     _ACEOF
2698     rm -f conftest.$ac_objext
2699     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2700     (eval $ac_compile) 2>conftest.er1
2701     ac_status=$?
2702     grep -v '^ *+' conftest.er1 >conftest.err
2703     rm -f conftest.er1
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
2709     (eval $ac_try) 2>&5
2710     ac_status=$?
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
2715     (eval $ac_try) 2>&5
2716     ac_status=$?
2717     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718     (exit $ac_status); }; }; then
2719     break
2720     else
2721     echo "$as_me: failed program was:" >&5
2722     sed 's/^/| /' conftest.$ac_ext >&5
2723    
2724     fi
2725     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2726     done
2727     rm -f conftest*
2728     if test -n "$ac_declaration"; then
2729     echo '#ifdef __cplusplus' >>confdefs.h
2730     echo $ac_declaration >>confdefs.h
2731     echo '#endif' >>confdefs.h
2732     fi
2733    
2734     ac_ext=c
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
2739 pcg 1.1
2740 pcg 1.11 ac_ext=c
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 pcg 1.1 # On Suns, sometimes $CPP names a directory.
2748     if test -n "$CPP" && test -d "$CPP"; then
2749     CPP=
2750     fi
2751     if test -z "$CPP"; then
2752 pcg 1.11 if test "${ac_cv_prog_CPP+set}" = set; then
2753     echo $ECHO_N "(cached) $ECHO_C" >&6
2754 pcg 1.1 else
2755 pcg 1.11 # Double quotes because CPP needs to be expanded
2756     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2757     do
2758     ac_preproc_ok=false
2759     for ac_c_preproc_warn_flag in '' yes
2760     do
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 pcg 1.1 # On the NeXT, cc -E runs the code through the compiler's parser,
2766 pcg 1.11 # not just through cpp. "Syntax error" is here to catch this case.
2767     cat >conftest.$ac_ext <<_ACEOF
2768     /* confdefs.h. */
2769     _ACEOF
2770     cat confdefs.h >>conftest.$ac_ext
2771     cat >>conftest.$ac_ext <<_ACEOF
2772     /* end confdefs.h. */
2773     #ifdef __STDC__
2774     # include <limits.h>
2775     #else
2776     # include <assert.h>
2777     #endif
2778     Syntax error
2779     _ACEOF
2780     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2781     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2782     ac_status=$?
2783     grep -v '^ *+' conftest.er1 >conftest.err
2784     rm -f conftest.er1
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
2791     else
2792     ac_cpp_err=
2793     fi
2794     else
2795     ac_cpp_err=yes
2796     fi
2797     if test -z "$ac_cpp_err"; then
2798 pcg 1.1 :
2799     else
2800 pcg 1.11 echo "$as_me: failed program was:" >&5
2801     sed 's/^/| /' conftest.$ac_ext >&5
2802    
2803     # Broken: fails on valid input.
2804     continue
2805     fi
2806     rm -f conftest.err conftest.$ac_ext
2807    
2808     # OK, works on sane cases. Now check whether non-existent headers
2809     # can be detected and how.
2810     cat >conftest.$ac_ext <<_ACEOF
2811     /* confdefs.h. */
2812     _ACEOF
2813     cat confdefs.h >>conftest.$ac_ext
2814     cat >>conftest.$ac_ext <<_ACEOF
2815     /* end confdefs.h. */
2816     #include <ac_nonexistent.h>
2817     _ACEOF
2818     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2819     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2820     ac_status=$?
2821     grep -v '^ *+' conftest.er1 >conftest.err
2822     rm -f conftest.er1
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
2829     else
2830     ac_cpp_err=
2831     fi
2832     else
2833     ac_cpp_err=yes
2834     fi
2835     if test -z "$ac_cpp_err"; then
2836     # Broken: success on invalid input.
2837     continue
2838     else
2839     echo "$as_me: failed program was:" >&5
2840     sed 's/^/| /' conftest.$ac_ext >&5
2841    
2842     # Passes both tests.
2843     ac_preproc_ok=:
2844     break
2845     fi
2846     rm -f conftest.err conftest.$ac_ext
2847    
2848     done
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
2852     break
2853     fi
2854    
2855     done
2856     ac_cv_prog_CPP=$CPP
2857    
2858     fi
2859     CPP=$ac_cv_prog_CPP
2860     else
2861     ac_cv_prog_CPP=$CPP
2862     fi
2863     echo "$as_me:$LINENO: result: $CPP" >&5
2864     echo "${ECHO_T}$CPP" >&6
2865     ac_preproc_ok=false
2866     for ac_c_preproc_warn_flag in '' yes
2867     do
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
2875     /* confdefs.h. */
2876     _ACEOF
2877     cat confdefs.h >>conftest.$ac_ext
2878     cat >>conftest.$ac_ext <<_ACEOF
2879     /* end confdefs.h. */
2880     #ifdef __STDC__
2881     # include <limits.h>
2882     #else
2883     # include <assert.h>
2884     #endif
2885     Syntax error
2886     _ACEOF
2887     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2888     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2889     ac_status=$?
2890     grep -v '^ *+' conftest.er1 >conftest.err
2891     rm -f conftest.er1
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
2898     else
2899     ac_cpp_err=
2900     fi
2901 pcg 1.1 else
2902 pcg 1.11 ac_cpp_err=yes
2903     fi
2904     if test -z "$ac_cpp_err"; then
2905 pcg 1.1 :
2906     else
2907 pcg 1.11 echo "$as_me: failed program was:" >&5
2908     sed 's/^/| /' conftest.$ac_ext >&5
2909    
2910     # Broken: fails on valid input.
2911     continue
2912 pcg 1.1 fi
2913 pcg 1.11 rm -f conftest.err conftest.$ac_ext
2914    
2915     # OK, works on sane cases. Now check whether non-existent headers
2916     # can be detected and how.
2917     cat >conftest.$ac_ext <<_ACEOF
2918     /* confdefs.h. */
2919     _ACEOF
2920     cat confdefs.h >>conftest.$ac_ext
2921     cat >>conftest.$ac_ext <<_ACEOF
2922     /* end confdefs.h. */
2923     #include <ac_nonexistent.h>
2924     _ACEOF
2925     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2926     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2927     ac_status=$?
2928     grep -v '^ *+' conftest.er1 >conftest.err
2929     rm -f conftest.er1
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
2936     else
2937     ac_cpp_err=
2938     fi
2939     else
2940     ac_cpp_err=yes
2941 pcg 1.1 fi
2942 pcg 1.11 if test -z "$ac_cpp_err"; then
2943     # Broken: success on invalid input.
2944     continue
2945     else
2946     echo "$as_me: failed program was:" >&5
2947     sed 's/^/| /' conftest.$ac_ext >&5
2948    
2949     # Passes both tests.
2950     ac_preproc_ok=:
2951     break
2952 pcg 1.1 fi
2953 pcg 1.11 rm -f conftest.err conftest.$ac_ext
2954    
2955     done
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
2959     :
2960 pcg 1.1 else
2961 pcg 1.11 { { 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; }; }
2966 pcg 1.1 fi
2967 pcg 1.11
2968     ac_ext=c
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
2973 pcg 1.1
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
2980     # AIX /bin/install
2981 pcg 1.11 # AmigaOS /C/install, which installs bootblocks on floppy discs
2982 pcg 1.1 # 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 pcg 1.11 # OS/2's system install, which has a completely different semantic
2986 pcg 1.1 # ./install, which can be erroneously created by make from ./install.sh.
2987 pcg 1.11 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 pcg 1.1 if test -z "$INSTALL"; then
2990 pcg 1.11 if test "${ac_cv_path_install+set}" = set; then
2991     echo $ECHO_N "(cached) $ECHO_C" >&6
2992 pcg 1.1 else
2993 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994     for as_dir in $PATH
2995     do
2996     IFS=$as_save_IFS
2997     test -z "$as_dir" && as_dir=.
2998     # Account for people who put trailing slashes in PATH elements.
2999     case $as_dir/ in
3000     ./ | .// | /cC/* | \
3001     /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3002     ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3003     /usr/ucb/* ) ;;
3004     *)
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
3007     # by default.
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 pcg 1.1 if test $ac_prog = install &&
3012 pcg 1.11 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3013 pcg 1.1 # AIX install. It has an incompatible calling convention.
3014     :
3015 pcg 1.11 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.
3018     :
3019 pcg 1.1 else
3020 pcg 1.11 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3021     break 3
3022 pcg 1.1 fi
3023     fi
3024     done
3025 pcg 1.11 done
3026     ;;
3027     esac
3028     done
3029    
3030 pcg 1.1
3031     fi
3032     if test "${ac_cv_path_install+set}" = set; then
3033 pcg 1.11 INSTALL=$ac_cv_path_install
3034 pcg 1.1 else
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 pcg 1.11 INSTALL=$ac_install_sh
3040 pcg 1.1 fi
3041     fi
3042 pcg 1.11 echo "$as_me:$LINENO: result: $INSTALL" >&5
3043     echo "${ECHO_T}$INSTALL" >&6
3044 pcg 1.1
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}'
3048    
3049 pcg 1.11 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3050 pcg 1.1
3051     test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3052    
3053 pcg 1.11 for ac_prog in gawk mawk nawk awk
3054 pcg 1.1 do
3055 pcg 1.11 # Extract the first word of "$ac_prog", so it can be a program name with args.
3056 pcg 1.1 set dummy $ac_prog; ac_word=$2
3057 pcg 1.11 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
3061 pcg 1.1 else
3062     if test -n "$AWK"; then
3063     ac_cv_prog_AWK="$AWK" # Let the user override the test.
3064     else
3065 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3066     for as_dir in $PATH
3067     do
3068     IFS=$as_save_IFS
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
3074     break 2
3075     fi
3076     done
3077     done
3078    
3079 pcg 1.1 fi
3080     fi
3081 pcg 1.11 AWK=$ac_cv_prog_AWK
3082 pcg 1.1 if test -n "$AWK"; then
3083 pcg 1.11 echo "$as_me:$LINENO: result: $AWK" >&5
3084     echo "${ECHO_T}$AWK" >&6
3085 pcg 1.1 else
3086 pcg 1.11 echo "$as_me:$LINENO: result: no" >&5
3087     echo "${ECHO_T}no" >&6
3088 pcg 1.1 fi
3089    
3090 pcg 1.11 test -n "$AWK" && break
3091 pcg 1.1 done
3092    
3093    
3094 pcg 1.13 ac_ext=c
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
3099    
3100    
3101 root 1.48 if test -z "$orig_CXXFLAGS"; then
3102     CXXFLAGS='-O'
3103     if test x$GCC = xyes && test "x$GXX" = xyes; then
3104     CXXFLAGS="-g -O3"
3105     fi
3106     CFLAGS="$CXXFLAGS"
3107     fi
3108    
3109 pcg 1.13 LINKER="$CXX"
3110     if test x$GCC = xyes && test x$GXX = xyes; then
3111    
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
3116     else
3117     ac_check_lib_save_LIBS=$LIBS
3118     LIBS="-lsupc++ $LIBS"
3119     cat >conftest.$ac_ext <<_ACEOF
3120     /* confdefs.h. */
3121     _ACEOF
3122     cat confdefs.h >>conftest.$ac_ext
3123     cat >>conftest.$ac_ext <<_ACEOF
3124     /* end confdefs.h. */
3125    
3126    
3127     int
3128     main ()
3129     {
3130     main ();
3131     ;
3132     return 0;
3133     }
3134     _ACEOF
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
3138     ac_status=$?
3139     grep -v '^ *+' conftest.er1 >conftest.err
3140     rm -f conftest.er1
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
3146     (eval $ac_try) 2>&5
3147     ac_status=$?
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
3152     (eval $ac_try) 2>&5
3153     ac_status=$?
3154     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155     (exit $ac_status); }; }; then
3156     ac_cv_lib_supcpp_main=yes
3157     else
3158     echo "$as_me: failed program was:" >&5
3159     sed 's/^/| /' conftest.$ac_ext >&5
3160    
3161     ac_cv_lib_supcpp_main=no
3162     fi
3163     rm -f conftest.err conftest.$ac_objext \
3164     conftest$ac_exeext conftest.$ac_ext
3165     LIBS=$ac_check_lib_save_LIBS
3166     fi
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
3170    
3171     LINKER="$CC"
3172     LIBS="$LIBS -lsupc++"
3173    
3174     fi
3175    
3176     fi
3177     LINKER=$LINKER
3178    
3179    
3180 root 1.48
3181     cat >>confdefs.h <<\_ACEOF
3182     #define _GNU_SOURCE 1
3183     _ACEOF
3184    
3185    
3186     case $host in
3187     *-*-solaris* )
3188    
3189     cat >>confdefs.h <<\_ACEOF
3190     #define _XOPEN_SOURCE_EXTENDED 1
3191     _ACEOF
3192    
3193    
3194     cat >>confdefs.h <<\_ACEOF
3195     #define _XOPEN_SOURCE 2
3196     _ACEOF
3197    
3198    
3199     cat >>confdefs.h <<\_ACEOF
3200     #define __EXTENSIONS__ 1
3201     _ACEOF
3202    
3203     ;;
3204     esac
3205 pcg 1.13
3206    
3207     ac_ext=cc
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
3212    
3213    
3214    
3215     ac_ext=cc
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
3225     else
3226     # Double quotes because CXXCPP needs to be expanded
3227     for CXXCPP in "$CXX -E" "/lib/cpp"
3228     do
3229     ac_preproc_ok=false
3230     for ac_cxx_preproc_warn_flag in '' yes
3231     do
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
3239     /* confdefs.h. */
3240     _ACEOF
3241     cat confdefs.h >>conftest.$ac_ext
3242     cat >>conftest.$ac_ext <<_ACEOF
3243     /* end confdefs.h. */
3244     #ifdef __STDC__
3245     # include <limits.h>
3246     #else
3247     # include <assert.h>
3248     #endif
3249     Syntax error
3250     _ACEOF
3251     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3252     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3253     ac_status=$?
3254     grep -v '^ *+' conftest.er1 >conftest.err
3255     rm -f conftest.er1
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
3262     else
3263     ac_cpp_err=
3264     fi
3265     else
3266     ac_cpp_err=yes
3267     fi
3268     if test -z "$ac_cpp_err"; then
3269     :
3270     else
3271     echo "$as_me: failed program was:" >&5
3272     sed 's/^/| /' conftest.$ac_ext >&5
3273    
3274     # Broken: fails on valid input.
3275     continue
3276     fi
3277     rm -f conftest.err conftest.$ac_ext
3278    
3279     # OK, works on sane cases. Now check whether non-existent headers
3280     # can be detected and how.
3281     cat >conftest.$ac_ext <<_ACEOF
3282     /* confdefs.h. */
3283     _ACEOF
3284     cat confdefs.h >>conftest.$ac_ext
3285     cat >>conftest.$ac_ext <<_ACEOF
3286     /* end confdefs.h. */
3287     #include <ac_nonexistent.h>
3288     _ACEOF
3289     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3290     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3291     ac_status=$?
3292     grep -v '^ *+' conftest.er1 >conftest.err
3293     rm -f conftest.er1
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
3300     else
3301     ac_cpp_err=
3302     fi
3303     else
3304     ac_cpp_err=yes
3305     fi
3306     if test -z "$ac_cpp_err"; then
3307     # Broken: success on invalid input.
3308     continue
3309     else
3310     echo "$as_me: failed program was:" >&5
3311     sed 's/^/| /' conftest.$ac_ext >&5
3312    
3313     # Passes both tests.
3314     ac_preproc_ok=:
3315     break
3316     fi
3317     rm -f conftest.err conftest.$ac_ext
3318    
3319     done
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
3323     break
3324     fi
3325    
3326     done
3327     ac_cv_prog_CXXCPP=$CXXCPP
3328    
3329     fi
3330     CXXCPP=$ac_cv_prog_CXXCPP
3331     else
3332     ac_cv_prog_CXXCPP=$CXXCPP
3333     fi
3334     echo "$as_me:$LINENO: result: $CXXCPP" >&5
3335     echo "${ECHO_T}$CXXCPP" >&6
3336     ac_preproc_ok=false
3337     for ac_cxx_preproc_warn_flag in '' yes
3338     do
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
3346     /* confdefs.h. */
3347     _ACEOF
3348     cat confdefs.h >>conftest.$ac_ext
3349     cat >>conftest.$ac_ext <<_ACEOF
3350     /* end confdefs.h. */
3351     #ifdef __STDC__
3352     # include <limits.h>
3353     #else
3354     # include <assert.h>
3355     #endif
3356     Syntax error
3357     _ACEOF
3358     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3359     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3360     ac_status=$?
3361     grep -v '^ *+' conftest.er1 >conftest.err
3362     rm -f conftest.er1
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
3369     else
3370     ac_cpp_err=
3371     fi
3372     else
3373     ac_cpp_err=yes
3374     fi
3375     if test -z "$ac_cpp_err"; then
3376     :
3377     else
3378     echo "$as_me: failed program was:" >&5
3379     sed 's/^/| /' conftest.$ac_ext >&5
3380    
3381     # Broken: fails on valid input.
3382     continue
3383     fi
3384     rm -f conftest.err conftest.$ac_ext
3385    
3386     # OK, works on sane cases. Now check whether non-existent headers
3387     # can be detected and how.
3388     cat >conftest.$ac_ext <<_ACEOF
3389     /* confdefs.h. */
3390     _ACEOF
3391     cat confdefs.h >>conftest.$ac_ext
3392     cat >>conftest.$ac_ext <<_ACEOF
3393     /* end confdefs.h. */
3394     #include <ac_nonexistent.h>
3395     _ACEOF
3396     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3397     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3398     ac_status=$?
3399     grep -v '^ *+' conftest.er1 >conftest.err
3400     rm -f conftest.er1
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
3407     else
3408     ac_cpp_err=
3409     fi
3410     else
3411     ac_cpp_err=yes
3412     fi
3413     if test -z "$ac_cpp_err"; then
3414     # Broken: success on invalid input.
3415     continue
3416     else
3417     echo "$as_me: failed program was:" >&5
3418     sed 's/^/| /' conftest.$ac_ext >&5
3419    
3420     # Passes both tests.
3421     ac_preproc_ok=:
3422     break
3423     fi
3424     rm -f conftest.err conftest.$ac_ext
3425    
3426     done
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
3430     :
3431     else
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; }; }
3437     fi
3438    
3439     ac_ext=cc
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
3444 pcg 1.11
3445    
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
3450     else
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'
3454     fi
3455     fi
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
3459    
3460    
3461    
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
3465     /* confdefs.h. */
3466     _ACEOF
3467     cat confdefs.h >>conftest.$ac_ext
3468     cat >>conftest.$ac_ext <<_ACEOF
3469     /* end confdefs.h. */
3470 pcg 1.1 #ifdef _AIX
3471     yes
3472     #endif
3473    
3474 pcg 1.11 _ACEOF
3475 pcg 1.1 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3476 pcg 1.11 $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 pcg 1.1 #define _ALL_SOURCE 1
3481 pcg 1.11 _ACEOF
3482 pcg 1.1
3483     else
3484 pcg 1.11 echo "$as_me:$LINENO: result: no" >&5
3485     echo "${ECHO_T}no" >&6
3486 pcg 1.1 fi
3487     rm -f conftest*
3488    
3489    
3490 pcg 1.11 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
3494     else
3495     ac_func_search_save_LIBS=$LIBS
3496     ac_cv_search_strerror=no
3497     cat >conftest.$ac_ext <<_ACEOF
3498     /* confdefs.h. */
3499     _ACEOF
3500     cat confdefs.h >>conftest.$ac_ext
3501     cat >>conftest.$ac_ext <<_ACEOF
3502     /* end confdefs.h. */
3503    
3504     /* Override any gcc2 internal prototype to avoid an error. */
3505     #ifdef __cplusplus
3506     extern "C"
3507     #endif
3508     /* We use char because int might match the return type of a gcc2
3509     builtin and then its argument prototype would still apply. */
3510     char strerror ();
3511     int
3512     main ()
3513     {
3514     strerror ();
3515     ;
3516     return 0;
3517     }
3518     _ACEOF
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
3522     ac_status=$?
3523     grep -v '^ *+' conftest.er1 >conftest.err
3524     rm -f conftest.er1
3525     cat conftest.err >&5
3526     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527     (exit $ac_status); } &&
3528 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3529 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3530     (eval $ac_try) 2>&5
3531     ac_status=$?
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
3536     (eval $ac_try) 2>&5
3537     ac_status=$?
3538     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539     (exit $ac_status); }; }; then
3540     ac_cv_search_strerror="none required"
3541     else
3542     echo "$as_me: failed program was:" >&5
3543     sed 's/^/| /' conftest.$ac_ext >&5
3544    
3545     fi
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
3552     /* confdefs.h. */
3553     _ACEOF
3554     cat confdefs.h >>conftest.$ac_ext
3555     cat >>conftest.$ac_ext <<_ACEOF
3556     /* end confdefs.h. */
3557 pcg 1.1
3558 pcg 1.11 /* Override any gcc2 internal prototype to avoid an error. */
3559     #ifdef __cplusplus
3560     extern "C"
3561     #endif
3562     /* We use char because int might match the return type of a gcc2
3563     builtin and then its argument prototype would still apply. */
3564     char strerror ();
3565     int
3566     main ()
3567     {
3568     strerror ();
3569     ;
3570     return 0;
3571     }
3572     _ACEOF
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
3576     ac_status=$?
3577     grep -v '^ *+' conftest.er1 >conftest.err
3578     rm -f conftest.er1
3579     cat conftest.err >&5
3580     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581     (exit $ac_status); } &&
3582 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3583 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3584     (eval $ac_try) 2>&5
3585     ac_status=$?
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
3590     (eval $ac_try) 2>&5
3591     ac_status=$?
3592     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593     (exit $ac_status); }; }; then
3594     ac_cv_search_strerror="-l$ac_lib"
3595     break
3596 pcg 1.1 else
3597 pcg 1.11 echo "$as_me: failed program was:" >&5
3598     sed 's/^/| /' conftest.$ac_ext >&5
3599    
3600     fi
3601     rm -f conftest.err conftest.$ac_objext \
3602     conftest$ac_exeext conftest.$ac_ext
3603     done
3604     fi
3605     LIBS=$ac_func_search_save_LIBS
3606     fi
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"
3611    
3612 pcg 1.1 fi
3613    
3614    
3615 root 1.57 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
3619     else
3620     cat >conftest.$ac_ext <<_ACEOF
3621     /* confdefs.h. */
3622     _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
3629    
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. */
3634    
3635     #ifdef __STDC__
3636     # include <limits.h>
3637     #else
3638     # include <assert.h>
3639     #endif
3640    
3641     #undef setlocale
3642    
3643     /* Override any gcc2 internal prototype to avoid an error. */
3644     #ifdef __cplusplus
3645     extern "C"
3646     {
3647     #endif
3648     /* We use char because int might match the return type of a gcc2
3649     builtin and then its argument prototype would still apply. */
3650     char setlocale ();
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)
3655     choke me
3656     #else
3657     char (*f) () = setlocale;
3658     #endif
3659     #ifdef __cplusplus
3660     }
3661     #endif
3662    
3663     int
3664     main ()
3665     {
3666     return f != setlocale;
3667     ;
3668     return 0;
3669     }
3670     _ACEOF
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
3674     ac_status=$?
3675     grep -v '^ *+' conftest.er1 >conftest.err
3676     rm -f conftest.er1
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
3682     (eval $ac_try) 2>&5
3683     ac_status=$?
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
3688     (eval $ac_try) 2>&5
3689     ac_status=$?
3690     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691     (exit $ac_status); }; }; then
3692     ac_cv_func_setlocale=yes
3693     else
3694     echo "$as_me: failed program was:" >&5
3695     sed 's/^/| /' conftest.$ac_ext >&5
3696    
3697     ac_cv_func_setlocale=no
3698     fi
3699     rm -f conftest.err conftest.$ac_objext \
3700     conftest$ac_exeext conftest.$ac_ext
3701     fi
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
3705     :
3706     else
3707     echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
3708 pcg 1.25 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
3711     else
3712     ac_check_lib_save_LIBS=$LIBS
3713     LIBS="-lxpg4 $LIBS"
3714     cat >conftest.$ac_ext <<_ACEOF
3715     /* confdefs.h. */
3716     _ACEOF
3717     cat confdefs.h >>conftest.$ac_ext
3718     cat >>conftest.$ac_ext <<_ACEOF
3719     /* end confdefs.h. */
3720    
3721     /* Override any gcc2 internal prototype to avoid an error. */
3722     #ifdef __cplusplus
3723     extern "C"
3724     #endif
3725     /* We use char because int might match the return type of a gcc2
3726     builtin and then its argument prototype would still apply. */
3727     char setlocale ();
3728     int
3729     main ()
3730     {
3731     setlocale ();
3732     ;
3733     return 0;
3734     }
3735     _ACEOF
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
3739     ac_status=$?
3740     grep -v '^ *+' conftest.er1 >conftest.err
3741     rm -f conftest.er1
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
3747     (eval $ac_try) 2>&5
3748     ac_status=$?
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
3753     (eval $ac_try) 2>&5
3754     ac_status=$?
3755     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756     (exit $ac_status); }; }; then
3757     ac_cv_lib_xpg4_setlocale=yes
3758     else
3759     echo "$as_me: failed program was:" >&5
3760     sed 's/^/| /' conftest.$ac_ext >&5
3761    
3762     ac_cv_lib_xpg4_setlocale=no
3763     fi
3764     rm -f conftest.err conftest.$ac_objext \
3765     conftest$ac_exeext conftest.$ac_ext
3766     LIBS=$ac_check_lib_save_LIBS
3767     fi
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
3771     LIBS="$LIBS -lxpg4"
3772     fi
3773    
3774 root 1.57 fi
3775    
3776    
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
3781     else
3782     cat >conftest.$ac_ext <<_ACEOF
3783     /* confdefs.h. */
3784     _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
3791    
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. */
3796    
3797     #ifdef __STDC__
3798     # include <limits.h>
3799     #else
3800     # include <assert.h>
3801     #endif
3802    
3803     #undef gethostbyname
3804    
3805     /* Override any gcc2 internal prototype to avoid an error. */
3806     #ifdef __cplusplus
3807     extern "C"
3808     {
3809     #endif
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)
3817     choke me
3818     #else
3819     char (*f) () = gethostbyname;
3820     #endif
3821     #ifdef __cplusplus
3822     }
3823     #endif
3824    
3825     int
3826     main ()
3827     {
3828     return f != gethostbyname;
3829     ;
3830     return 0;
3831     }
3832     _ACEOF
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
3836     ac_status=$?
3837     grep -v '^ *+' conftest.er1 >conftest.err
3838     rm -f conftest.er1
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
3844     (eval $ac_try) 2>&5
3845     ac_status=$?
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
3850     (eval $ac_try) 2>&5
3851     ac_status=$?
3852     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853     (exit $ac_status); }; }; then
3854     ac_cv_func_gethostbyname=yes
3855     else
3856     echo "$as_me: failed program was:" >&5
3857     sed 's/^/| /' conftest.$ac_ext >&5
3858 pcg 1.25
3859 root 1.57 ac_cv_func_gethostbyname=no
3860     fi
3861     rm -f conftest.err conftest.$ac_objext \
3862     conftest$ac_exeext conftest.$ac_ext
3863     fi
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
3867     :
3868     else
3869     echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3870 pcg 1.25 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
3873     else
3874     ac_check_lib_save_LIBS=$LIBS
3875     LIBS="-lnsl $LIBS"
3876     cat >conftest.$ac_ext <<_ACEOF
3877     /* confdefs.h. */
3878     _ACEOF
3879     cat confdefs.h >>conftest.$ac_ext
3880     cat >>conftest.$ac_ext <<_ACEOF
3881     /* end confdefs.h. */
3882    
3883     /* Override any gcc2 internal prototype to avoid an error. */
3884     #ifdef __cplusplus
3885     extern "C"
3886     #endif
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 ();
3890     int
3891     main ()
3892     {
3893     gethostbyname ();
3894     ;
3895     return 0;
3896     }
3897     _ACEOF
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
3901     ac_status=$?
3902     grep -v '^ *+' conftest.er1 >conftest.err
3903     rm -f conftest.er1
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
3909     (eval $ac_try) 2>&5
3910     ac_status=$?
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
3915     (eval $ac_try) 2>&5
3916     ac_status=$?
3917     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918     (exit $ac_status); }; }; then
3919     ac_cv_lib_nsl_gethostbyname=yes
3920     else
3921     echo "$as_me: failed program was:" >&5
3922     sed 's/^/| /' conftest.$ac_ext >&5
3923    
3924     ac_cv_lib_nsl_gethostbyname=no
3925     fi
3926     rm -f conftest.err conftest.$ac_objext \
3927     conftest$ac_exeext conftest.$ac_ext
3928     LIBS=$ac_check_lib_save_LIBS
3929     fi
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
3933     LIBS="$LIBS -lnsl"
3934     fi
3935    
3936 root 1.57 fi
3937    
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
3942     else
3943     cat >conftest.$ac_ext <<_ACEOF
3944     /* confdefs.h. */
3945     _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
3952    
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. */
3957    
3958     #ifdef __STDC__
3959     # include <limits.h>
3960     #else
3961     # include <assert.h>
3962     #endif
3963    
3964     #undef socket
3965    
3966     /* Override any gcc2 internal prototype to avoid an error. */
3967     #ifdef __cplusplus
3968     extern "C"
3969     {
3970     #endif
3971     /* We use char because int might match the return type of a gcc2
3972     builtin and then its argument prototype would still apply. */
3973     char socket ();
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)
3978     choke me
3979     #else
3980     char (*f) () = socket;
3981     #endif
3982     #ifdef __cplusplus
3983     }
3984     #endif
3985    
3986     int
3987     main ()
3988     {
3989     return f != socket;
3990     ;
3991     return 0;
3992     }
3993     _ACEOF
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
3997     ac_status=$?
3998     grep -v '^ *+' conftest.er1 >conftest.err
3999     rm -f conftest.er1
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
4005     (eval $ac_try) 2>&5
4006     ac_status=$?
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
4011     (eval $ac_try) 2>&5
4012     ac_status=$?
4013     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014     (exit $ac_status); }; }; then
4015     ac_cv_func_socket=yes
4016     else
4017     echo "$as_me: failed program was:" >&5
4018     sed 's/^/| /' conftest.$ac_ext >&5
4019    
4020     ac_cv_func_socket=no
4021     fi
4022     rm -f conftest.err conftest.$ac_objext \
4023     conftest$ac_exeext conftest.$ac_ext
4024     fi
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
4028     :
4029     else
4030     echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4031 pcg 1.25 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
4034     else
4035     ac_check_lib_save_LIBS=$LIBS
4036     LIBS="-lsocket $LIBS"
4037     cat >conftest.$ac_ext <<_ACEOF
4038     /* confdefs.h. */
4039     _ACEOF
4040     cat confdefs.h >>conftest.$ac_ext
4041     cat >>conftest.$ac_ext <<_ACEOF
4042     /* end confdefs.h. */
4043    
4044     /* Override any gcc2 internal prototype to avoid an error. */
4045     #ifdef __cplusplus
4046     extern "C"
4047     #endif
4048     /* We use char because int might match the return type of a gcc2
4049     builtin and then its argument prototype would still apply. */
4050     char socket ();
4051     int
4052     main ()
4053     {
4054     socket ();
4055     ;
4056     return 0;
4057     }
4058     _ACEOF
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
4062     ac_status=$?
4063     grep -v '^ *+' conftest.er1 >conftest.err
4064     rm -f conftest.er1
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
4070     (eval $ac_try) 2>&5
4071     ac_status=$?
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
4076     (eval $ac_try) 2>&5
4077     ac_status=$?
4078     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079     (exit $ac_status); }; }; then
4080     ac_cv_lib_socket_socket=yes
4081     else
4082     echo "$as_me: failed program was:" >&5
4083     sed 's/^/| /' conftest.$ac_ext >&5
4084    
4085 root 1.51 ac_cv_lib_socket_socket=no
4086     fi
4087     rm -f conftest.err conftest.$ac_objext \
4088     conftest$ac_exeext conftest.$ac_ext
4089     LIBS=$ac_check_lib_save_LIBS
4090     fi
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"
4095 pcg 1.1 fi
4096    
4097 root 1.57 fi
4098    
4099 pcg 1.1
4100 root 1.59 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
4104     else
4105     cat >conftest.$ac_ext <<_ACEOF
4106     /* confdefs.h. */
4107     _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
4114    
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. */
4119    
4120     #ifdef __STDC__
4121     # include <limits.h>
4122     #else
4123     # include <assert.h>
4124     #endif
4125    
4126     #undef sched_yield
4127    
4128     /* Override any gcc2 internal prototype to avoid an error. */
4129     #ifdef __cplusplus
4130     extern "C"
4131     {
4132     #endif
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)
4140     choke me
4141     #else
4142     char (*f) () = sched_yield;
4143     #endif
4144     #ifdef __cplusplus
4145     }
4146     #endif
4147    
4148     int
4149     main ()
4150     {
4151     return f != sched_yield;
4152     ;
4153     return 0;
4154     }
4155     _ACEOF
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
4159     ac_status=$?
4160     grep -v '^ *+' conftest.er1 >conftest.err
4161     rm -f conftest.er1
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
4167     (eval $ac_try) 2>&5
4168     ac_status=$?
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
4173     (eval $ac_try) 2>&5
4174     ac_status=$?
4175     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176     (exit $ac_status); }; }; then
4177     ac_cv_func_sched_yield=yes
4178     else
4179     echo "$as_me: failed program was:" >&5
4180     sed 's/^/| /' conftest.$ac_ext >&5
4181    
4182     ac_cv_func_sched_yield=no
4183     fi
4184     rm -f conftest.err conftest.$ac_objext \
4185     conftest$ac_exeext conftest.$ac_ext
4186     fi
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
4190     :
4191     else
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
4196     else
4197     ac_check_lib_save_LIBS=$LIBS
4198     LIBS="-lrt $LIBS"
4199     cat >conftest.$ac_ext <<_ACEOF
4200     /* confdefs.h. */
4201     _ACEOF
4202     cat confdefs.h >>conftest.$ac_ext
4203     cat >>conftest.$ac_ext <<_ACEOF
4204     /* end confdefs.h. */
4205    
4206     /* Override any gcc2 internal prototype to avoid an error. */
4207     #ifdef __cplusplus
4208     extern "C"
4209     #endif
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 ();
4213     int
4214     main ()
4215     {
4216     sched_yield ();
4217     ;
4218     return 0;
4219     }
4220     _ACEOF
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
4224     ac_status=$?
4225     grep -v '^ *+' conftest.er1 >conftest.err
4226     rm -f conftest.er1
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
4232     (eval $ac_try) 2>&5
4233     ac_status=$?
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
4238     (eval $ac_try) 2>&5
4239     ac_status=$?
4240     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241     (exit $ac_status); }; }; then
4242     ac_cv_lib_rt_sched_yield=yes
4243     else
4244     echo "$as_me: failed program was:" >&5
4245     sed 's/^/| /' conftest.$ac_ext >&5
4246    
4247     ac_cv_lib_rt_sched_yield=no
4248     fi
4249     rm -f conftest.err conftest.$ac_objext \
4250     conftest$ac_exeext conftest.$ac_ext
4251     LIBS=$ac_check_lib_save_LIBS
4252     fi
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
4256     LIBS="$LIBS -lrt"
4257     fi
4258    
4259     fi
4260    
4261    
4262 root 1.58 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
4265     /* confdefs.h. */
4266     _ACEOF
4267     cat confdefs.h >>conftest.$ac_ext
4268     cat >>conftest.$ac_ext <<_ACEOF
4269     /* end confdefs.h. */
4270     #include <sched.h>
4271     int
4272     main ()
4273     {
4274     sched_yield ()
4275     ;
4276     return 0;
4277     }
4278     _ACEOF
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
4282     ac_status=$?
4283     grep -v '^ *+' conftest.er1 >conftest.err
4284     rm -f conftest.er1
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
4290     (eval $ac_try) 2>&5
4291     ac_status=$?
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
4296     (eval $ac_try) 2>&5
4297     ac_status=$?
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
4302    
4303     cat >>confdefs.h <<\_ACEOF
4304     #define HAVE_SCHED_YIELD 1
4305     _ACEOF
4306    
4307     else
4308     echo "$as_me: failed program was:" >&5
4309     sed 's/^/| /' conftest.$ac_ext >&5
4310    
4311     echo "$as_me:$LINENO: result: no" >&5
4312     echo "${ECHO_T}no" >&6
4313     fi
4314     rm -f conftest.err conftest.$ac_objext \
4315     conftest$ac_exeext conftest.$ac_ext
4316    
4317 pcg 1.1
4318     MALLOC_TYPE=S
4319 root 1.54
4320     support_frills=yes
4321 root 1.62 support_inheritpixmap=yes
4322 root 1.54 support_tinting=yes
4323     support_fading=yes
4324     support_keepscrolling=yes
4325     support_selectionscrolling=yes
4326     support_mousewheel=yes
4327     support_mouseslipwheel=yes
4328     support_utmp=yes
4329     support_wtmp=yes
4330     support_lastlog=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
4337     support_xim=yes
4338 root 1.62 support_xpm=yes
4339 root 1.54 support_xft=yes
4340 pcg 1.1 support_unicode3=no
4341 root 1.54 support_combining=yes
4342 root 1.26 support_8bitctrls=no
4343 root 1.54 support_iso14755=yes
4344     support_styles=yes
4345 root 1.62 support_perl=yes
4346 root 1.54 codesets=all
4347 pcg 1.1
4348    
4349     if test "x$enable_shared" = xyes; then
4350 pcg 1.11
4351     cat >>confdefs.h <<\_ACEOF
4352 pcg 1.1 #define LIBRXVT 1
4353 pcg 1.11 _ACEOF
4354 pcg 1.1
4355     INSTALL_LIBRXVT=yes
4356     fi
4357    
4358    
4359     # Check whether --enable-everything or --disable-everything was given.
4360     if test "${enable_everything+set}" = set; then
4361     enableval="$enable_everything"
4362 root 1.54
4363     if test x$enableval = xno; then
4364     support_24bit=no
4365     support_frills=no
4366     support_inheritpixmap=no
4367     support_tinting=no
4368     support_fading=no
4369     support_keepscrolling=no
4370     support_selectionscrolling=no
4371     support_lastlog=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
4380     support_utmp=no
4381     support_wtmp=no
4382     support_xim=no
4383     support_xpm=no
4384     support_xft=no
4385     support_unicode3=no
4386     support_combining=no
4387     support_8bitctrls=no
4388     support_iso14755=no
4389     support_styles=no
4390 root 1.60 support_perl=no
4391 root 1.54 codesets=
4392     fi
4393     if test x$enableval = xyes; then
4394     support_24bit=yes
4395     support_frills=yes
4396     support_inheritpixmap=yes
4397     support_tinting=yes
4398     support_fading=yes
4399     support_keepscrolling=yes
4400     support_selectionscrolling=yes
4401     support_lastlog=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
4410     support_utmp=yes
4411     support_wtmp=yes
4412     support_xim=yes
4413     support_xpm=yes
4414     support_xft=yes
4415     support_unicode3=yes
4416     support_combining=yes
4417     #support_8bitctrls=yes
4418     support_iso14755=yes
4419     support_styles=yes
4420 root 1.60 support_perl=yes
4421 root 1.54 codesets=all
4422     fi
4423    
4424 pcg 1.11 fi;
4425 pcg 1.4
4426 pcg 1.1 # Check whether --enable-unicode3 or --disable-unicode3 was given.
4427     if test "${enable_unicode3+set}" = set; then
4428     enableval="$enable_unicode3"
4429 pcg 1.13 if test x$enableval = xyes -o x$enableval = xno; then
4430 root 1.39 support_unicode3=$enableval
4431 pcg 1.1 fi
4432 pcg 1.11 fi;
4433 pcg 1.1
4434 pcg 1.18 # 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 root 1.39 support_combining=$enableval
4439 pcg 1.18 fi
4440     fi;
4441    
4442 pcg 1.1 # Check whether --enable-xft or --disable-xft was given.
4443     if test "${enable_xft+set}" = set; then
4444     enableval="$enable_xft"
4445 pcg 1.13 if test x$enableval = xyes -o x$enableval = xno; then
4446 root 1.39 support_xft=$enableval
4447     fi
4448     fi;
4449    
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
4455 pcg 1.1 fi
4456 pcg 1.11 fi;
4457 pcg 1.1
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
4463     fi
4464 pcg 1.11 fi;
4465 pcg 1.1
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
4471     fi
4472 pcg 1.11 fi;
4473 pcg 1.1
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
4479     fi
4480 pcg 1.11 fi;
4481 pcg 1.1
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
4487     fi
4488 pcg 1.11 fi;
4489 pcg 1.1
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
4495     fi
4496 pcg 1.11 fi;
4497 pcg 1.1
4498 pcg 1.24 # 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
4503     fi
4504     fi;
4505    
4506 root 1.31 # 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
4511     fi
4512     fi;
4513    
4514 pcg 1.1 # 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
4519     fi
4520 pcg 1.11 fi;
4521 pcg 1.1
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
4527     fi
4528 pcg 1.11 fi;
4529 pcg 1.1
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
4535     fi
4536 pcg 1.11 fi;
4537 pcg 1.1
4538 root 1.60 # 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
4543     fi
4544     fi;
4545    
4546 pcg 1.11 # 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
4551     fi
4552     fi;
4553 pcg 1.1
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
4558 pcg 1.11
4559     cat >>confdefs.h <<\_ACEOF
4560 pcg 1.1 #define HALFSHADOW 1
4561 pcg 1.11 _ACEOF
4562 pcg 1.1
4563     fi
4564 pcg 1.11 fi;
4565 pcg 1.1
4566 pcg 1.15
4567     # Check whether --with-codesets or --without-codesets was given.
4568     if test "${with_codesets+set}" = set; then
4569     withval="$with_codesets"
4570     codesets="$withval"
4571     fi;
4572    
4573 pcg 1.1 # 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
4578     fi
4579 pcg 1.11 fi;
4580 pcg 1.1
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
4585 pcg 1.11
4586     cat >>confdefs.h <<\_ACEOF
4587 pcg 1.1 #define TTY_GID_SUPPORT 1
4588 pcg 1.11 _ACEOF
4589 pcg 1.1
4590     fi
4591 pcg 1.11 fi;
4592 pcg 1.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
4597 pcg 1.11
4598     cat >>confdefs.h <<\_ACEOF
4599 pcg 1.1 #define NO_BACKSPACE_KEY 1
4600 pcg 1.11 _ACEOF
4601 pcg 1.1
4602     fi
4603 pcg 1.11 fi;
4604 pcg 1.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
4609 pcg 1.11
4610     cat >>confdefs.h <<\_ACEOF
4611 pcg 1.1 #define NO_DELETE_KEY 1
4612 pcg 1.11 _ACEOF
4613 pcg 1.1
4614     fi
4615 pcg 1.11 fi;
4616 pcg 1.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
4621 pcg 1.11
4622     cat >>confdefs.h <<\_ACEOF
4623 pcg 1.1 #define NO_RESOURCES 1
4624 pcg 1.11 _ACEOF
4625 pcg 1.1
4626     fi
4627 pcg 1.11 fi;
4628 pcg 1.1
4629 root 1.26 # 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 root 1.39 support_8bitctrls=$enableval
4634 root 1.26 fi
4635     fi;
4636    
4637 pcg 1.15 RESFALLBACK=Rxvt
4638     # Check whether --enable-fallback or --disable-fallback was given.
4639     if test "${enable_fallback+set}" = set; then
4640     enableval="$enable_fallback"
4641    
4642     test x$enableval = xyes && enableval=Rxvt
4643     test x$enableval = xno && enableval=
4644     RESFALLBACK="$enableval"
4645    
4646     fi;
4647    
4648     if test x$RESFALLBACK != x; then
4649    
4650     cat >>confdefs.h <<_ACEOF
4651     #define RESFALLBACK "$RESFALLBACK"
4652     _ACEOF
4653    
4654     fi
4655    
4656     RESNAME=urxvt
4657    
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"
4661     RESNAME="$withval"
4662     fi;
4663    
4664     cat >>confdefs.h <<_ACEOF
4665     #define RESNAME "$RESNAME"
4666     _ACEOF
4667    
4668    
4669     RESCLASS=URxvt
4670    
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"
4674     RESCLASS="$withval"
4675     fi;
4676    
4677     cat >>confdefs.h <<_ACEOF
4678     #define RESCLASS "$RESCLASS"
4679     _ACEOF
4680    
4681    
4682     RXVTNAME=urxvt
4683    
4684     # Check whether --with-name or --without-name was given.
4685     if test "${with_name+set}" = set; then
4686     withval="$with_name"
4687     RXVTNAME="$withval"
4688     fi;
4689    
4690 root 1.39 cat >>confdefs.h <<_ACEOF
4691     #define RXVTNAME "$RXVTNAME"
4692     _ACEOF
4693    
4694    
4695 pcg 1.15 RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
4696    
4697    
4698 pcg 1.1 # 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
4702 pcg 1.11
4703     cat >>confdefs.h <<\_ACEOF
4704 pcg 1.1 #define NO_SECONDARY_SCREEN 1
4705 pcg 1.11 _ACEOF
4706 pcg 1.1
4707     fi
4708 pcg 1.11 fi;
4709 pcg 1.1
4710 root 1.34 # 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
4715     fi
4716     fi;
4717    
4718 pcg 1.1 # 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
4723     fi
4724 pcg 1.11 fi;
4725 pcg 1.1
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
4731     fi
4732 pcg 1.11 fi;
4733 pcg 1.1
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
4739     fi
4740 pcg 1.11 fi;
4741 pcg 1.1
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
4747     fi
4748 pcg 1.11 fi;
4749 pcg 1.1
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
4755     fi
4756 pcg 1.11 fi;
4757 pcg 1.1
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
4763     fi
4764 pcg 1.11 fi;
4765 pcg 1.1
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
4770     MALLOC_TYPE=G
4771     DEBUG=-DDEBUG_MALLOC
4772     DLIB="-L/usr/local/lib -ldmalloc"
4773     DINCLUDE=-I/usr/local/include
4774     fi
4775 pcg 1.11 fi;
4776 pcg 1.1
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
4781     MALLOC_TYPE=D
4782     DEBUG=
4783     DLIB="-L/usr/local/lib -ldlmalloc"
4784     DINCLUDE=
4785     fi
4786 pcg 1.11 fi;
4787 pcg 1.1
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
4792 pcg 1.11
4793     cat >>confdefs.h <<\_ACEOF
4794 pcg 1.1 #define SMART_RESIZE 1
4795 pcg 1.11 _ACEOF
4796 pcg 1.1
4797     fi
4798 pcg 1.11 fi;
4799 pcg 1.1
4800 pcg 1.11 # 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
4805     fi
4806     fi;
4807 pcg 1.1
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
4813     fi
4814 pcg 1.11 fi;
4815 pcg 1.1
4816    
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
4821 pcg 1.11
4822     cat >>confdefs.h <<_ACEOF
4823 pcg 1.1 #define TERMENV "$withval"
4824 pcg 1.11 _ACEOF
4825 pcg 1.1 term="$withval"
4826     fi
4827 pcg 1.11 fi;
4828 pcg 1.1
4829    
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
4834 pcg 1.11
4835     cat >>confdefs.h <<_ACEOF
4836 pcg 1.1 #define RXVT_TERMINFO "$withval"
4837 pcg 1.11 _ACEOF
4838 pcg 1.1 terminfo="$withval"
4839     fi
4840 pcg 1.11 fi;
4841 pcg 1.1
4842    
4843    
4844 pcg 1.11 cat >>confdefs.h <<\_ACEOF
4845 pcg 1.1 #define PROTOTYPES 1
4846 pcg 1.11 _ACEOF
4847 pcg 1.1
4848    
4849     # Extract the first word of "mv", so it can be a program name with args.
4850     set dummy mv; ac_word=$2
4851 pcg 1.11 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
4855 pcg 1.1 else
4856 pcg 1.11 case $MV in
4857     [\\/]* | ?:[\\/]*)
4858 pcg 1.1 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4859     ;;
4860     *)
4861 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862     for as_dir in $PATH
4863     do
4864     IFS=$as_save_IFS
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
4870     break 2
4871     fi
4872     done
4873     done
4874    
4875 pcg 1.1 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4876     ;;
4877     esac
4878     fi
4879 pcg 1.11 MV=$ac_cv_path_MV
4880    
4881 pcg 1.1 if test -n "$MV"; then
4882 pcg 1.11 echo "$as_me:$LINENO: result: $MV" >&5
4883     echo "${ECHO_T}$MV" >&6
4884 pcg 1.1 else
4885 pcg 1.11 echo "$as_me:$LINENO: result: no" >&5
4886     echo "${ECHO_T}no" >&6
4887 pcg 1.1 fi
4888    
4889     # Extract the first word of "rm", so it can be a program name with args.
4890     set dummy rm; ac_word=$2
4891 pcg 1.11 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
4895 pcg 1.1 else
4896 pcg 1.11 case $RM in
4897     [\\/]* | ?:[\\/]*)
4898 pcg 1.1 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4899     ;;
4900     *)
4901 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902     for as_dir in $PATH
4903     do
4904     IFS=$as_save_IFS
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
4910     break 2
4911     fi
4912     done
4913     done
4914    
4915 pcg 1.1 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4916     ;;
4917     esac
4918     fi
4919 pcg 1.11 RM=$ac_cv_path_RM
4920    
4921 pcg 1.1 if test -n "$RM"; then
4922 pcg 1.11 echo "$as_me:$LINENO: result: $RM" >&5
4923     echo "${ECHO_T}$RM" >&6
4924 pcg 1.1 else
4925 pcg 1.11 echo "$as_me:$LINENO: result: no" >&5
4926     echo "${ECHO_T}no" >&6
4927 pcg 1.1 fi
4928    
4929     # Extract the first word of "cp", so it can be a program name with args.
4930     set dummy cp; ac_word=$2
4931 pcg 1.11 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
4935 pcg 1.1 else
4936 pcg 1.11 case $CP in
4937     [\\/]* | ?:[\\/]*)
4938 pcg 1.1 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4939     ;;
4940     *)
4941 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4942     for as_dir in $PATH
4943     do
4944     IFS=$as_save_IFS
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
4950     break 2
4951     fi
4952     done
4953     done
4954    
4955 pcg 1.1 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4956     ;;
4957     esac
4958     fi
4959 pcg 1.11 CP=$ac_cv_path_CP
4960    
4961 pcg 1.1 if test -n "$CP"; then
4962 pcg 1.11 echo "$as_me:$LINENO: result: $CP" >&5
4963     echo "${ECHO_T}$CP" >&6
4964 pcg 1.1 else
4965 pcg 1.11 echo "$as_me:$LINENO: result: no" >&5
4966     echo "${ECHO_T}no" >&6
4967 pcg 1.1 fi
4968    
4969     # Extract the first word of "ln", so it can be a program name with args.
4970     set dummy ln; ac_word=$2
4971 pcg 1.11 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
4975 pcg 1.1 else
4976 pcg 1.11 case $LN in
4977     [\\/]* | ?:[\\/]*)
4978 pcg 1.1 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4979     ;;
4980     *)
4981 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4982     for as_dir in $PATH
4983     do
4984     IFS=$as_save_IFS
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
4990     break 2
4991     fi
4992     done
4993     done
4994    
4995 pcg 1.1 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
4996     ;;
4997     esac
4998     fi
4999 pcg 1.11 LN=$ac_cv_path_LN
5000    
5001 pcg 1.1 if test -n "$LN"; then
5002 pcg 1.11 echo "$as_me:$LINENO: result: $LN" >&5
5003     echo "${ECHO_T}$LN" >&6
5004 pcg 1.1 else
5005 pcg 1.11 echo "$as_me:$LINENO: result: no" >&5
5006     echo "${ECHO_T}no" >&6
5007 pcg 1.1 fi
5008    
5009     # Extract the first word of "sed", so it can be a program name with args.
5010     set dummy sed; ac_word=$2
5011 pcg 1.11 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
5015 pcg 1.1 else
5016 pcg 1.11 case $SED in
5017     [\\/]* | ?:[\\/]*)
5018 pcg 1.1 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5019     ;;
5020     *)
5021 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5022     for as_dir in $PATH
5023     do
5024     IFS=$as_save_IFS
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
5030     break 2
5031     fi
5032     done
5033     done
5034    
5035 pcg 1.1 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5036     ;;
5037     esac
5038     fi
5039 pcg 1.11 SED=$ac_cv_path_SED
5040    
5041 pcg 1.1 if test -n "$SED"; then
5042 pcg 1.11 echo "$as_me:$LINENO: result: $SED" >&5
5043     echo "${ECHO_T}$SED" >&6
5044 pcg 1.1 else
5045 pcg 1.11 echo "$as_me:$LINENO: result: no" >&5
5046     echo "${ECHO_T}no" >&6
5047 pcg 1.1 fi
5048    
5049     # Extract the first word of "echo", so it can be a program name with args.
5050     set dummy echo; ac_word=$2
5051 pcg 1.11 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
5055 pcg 1.1 else
5056 pcg 1.11 case $ECHO in
5057     [\\/]* | ?:[\\/]*)
5058 pcg 1.1 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5059     ;;
5060     *)
5061 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5062     for as_dir in $PATH
5063     do
5064     IFS=$as_save_IFS
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
5070     break 2
5071     fi
5072     done
5073     done
5074    
5075 pcg 1.1 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5076     ;;
5077     esac
5078     fi
5079 pcg 1.11 ECHO=$ac_cv_path_ECHO
5080    
5081 pcg 1.1 if test -n "$ECHO"; then
5082 pcg 1.11 echo "$as_me:$LINENO: result: $ECHO" >&5
5083     echo "${ECHO_T}$ECHO" >&6
5084 pcg 1.1 else
5085 pcg 1.11 echo "$as_me:$LINENO: result: no" >&5
5086     echo "${ECHO_T}no" >&6
5087 pcg 1.1 fi
5088    
5089     # Extract the first word of "cmp", so it can be a program name with args.
5090     set dummy cmp; ac_word=$2
5091 pcg 1.11 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
5095 pcg 1.1 else
5096 pcg 1.11 case $CMP in
5097     [\\/]* | ?:[\\/]*)
5098 pcg 1.1 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5099     ;;
5100     *)
5101 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102     for as_dir in $PATH
5103     do
5104     IFS=$as_save_IFS
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
5110     break 2
5111     fi
5112     done
5113     done
5114    
5115 pcg 1.1 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5116     ;;
5117     esac
5118     fi
5119 pcg 1.11 CMP=$ac_cv_path_CMP
5120    
5121 pcg 1.1 if test -n "$CMP"; then
5122 pcg 1.11 echo "$as_me:$LINENO: result: $CMP" >&5
5123     echo "${ECHO_T}$CMP" >&6
5124 pcg 1.1 else
5125 pcg 1.11 echo "$as_me:$LINENO: result: no" >&5
5126     echo "${ECHO_T}no" >&6
5127 pcg 1.1 fi
5128    
5129     # Extract the first word of "tbl", so it can be a program name with args.
5130     set dummy tbl; ac_word=$2
5131 pcg 1.11 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
5135 pcg 1.1 else
5136 pcg 1.11 case $TBL in
5137     [\\/]* | ?:[\\/]*)
5138 pcg 1.1 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5139     ;;
5140     *)
5141 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142     for as_dir in $PATH
5143     do
5144     IFS=$as_save_IFS
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
5150     break 2
5151     fi
5152     done
5153     done
5154    
5155 pcg 1.1 ;;
5156     esac
5157     fi
5158 pcg 1.11 TBL=$ac_cv_path_TBL
5159    
5160 pcg 1.1 if test -n "$TBL"; then
5161 pcg 1.11 echo "$as_me:$LINENO: result: $TBL" >&5
5162     echo "${ECHO_T}$TBL" >&6
5163 pcg 1.1 else
5164 pcg 1.11 echo "$as_me:$LINENO: result: no" >&5
5165     echo "${ECHO_T}no" >&6
5166 pcg 1.1 fi
5167    
5168 root 1.39 # 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
5174     else
5175     case $TIC in
5176     [\\/]* | ?:[\\/]*)
5177     ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
5178     ;;
5179     *)
5180     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181     for as_dir in $PATH
5182     do
5183     IFS=$as_save_IFS
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
5189     break 2
5190     fi
5191     done
5192     done
5193    
5194     ;;
5195     esac
5196     fi
5197     TIC=$ac_cv_path_TIC
5198    
5199     if test -n "$TIC"; then
5200     echo "$as_me:$LINENO: result: $TIC" >&5
5201     echo "${ECHO_T}$TIC" >&6
5202     else
5203     echo "$as_me:$LINENO: result: no" >&5
5204     echo "${ECHO_T}no" >&6
5205     fi
5206    
5207 pcg 1.1
5208    
5209    
5210 pcg 1.24
5211     if test "x$ac_path_x_has_been_run" != xyes; then
5212     echo "$as_me:$LINENO: checking for X" >&5
5213 pcg 1.11 echo $ECHO_N "checking for X... $ECHO_C" >&6
5214    
5215 pcg 1.24 ac_path_x_has_been_run=yes
5216 pcg 1.1
5217     # Check whether --with-x or --without-x was given.
5218     if test "${with_x+set}" = set; then
5219     withval="$with_x"
5220    
5221 pcg 1.11 fi;
5222 pcg 1.1 # $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.
5225     have_x=disabled
5226     else
5227     if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5228     # Both variables are already set.
5229     have_x=yes
5230     else
5231 pcg 1.11 if test "${ac_cv_have_x+set}" = set; then
5232     echo $ECHO_N "(cached) $ECHO_C" >&6
5233 pcg 1.1 else
5234     # One or both of the vars are not set, and there is no cached value.
5235 pcg 1.11 ac_x_includes=no ac_x_libraries=no
5236     rm -fr conftest.dir
5237     if mkdir conftest.dir; then
5238     cd conftest.dir
5239 pcg 1.1 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5240 pcg 1.11 cat >Imakefile <<'_ACEOF'
5241 pcg 1.1 acfindx:
5242     @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5243 pcg 1.11 _ACEOF
5244 pcg 1.1 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 pcg 1.11 test -f $ac_im_libdir/libX11.$ac_extension; then
5251     ac_im_usrlibdir=$ac_im_libdir; break
5252 pcg 1.1 fi
5253     done
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 pcg 1.11 case $ac_im_incroot in
5258 pcg 1.1 /usr/include) ;;
5259 pcg 1.11 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5260 pcg 1.1 esac
5261 pcg 1.11 case $ac_im_usrlibdir in
5262 pcg 1.1 /usr/lib | /lib) ;;
5263 pcg 1.11 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5264 pcg 1.1 esac
5265     fi
5266     cd ..
5267 pcg 1.11 rm -fr conftest.dir
5268 pcg 1.1 fi
5269    
5270 pcg 1.11 # Standard set of common directories for X headers.
5271     # Check X11 before X11Rn because it is often a symlink to the current release.
5272     ac_x_header_dirs='
5273     /usr/X11/include
5274     /usr/X11R6/include
5275     /usr/X11R5/include
5276     /usr/X11R4/include
5277    
5278     /usr/include/X11
5279     /usr/include/X11R6
5280     /usr/include/X11R5
5281     /usr/include/X11R4
5282    
5283     /usr/local/X11/include
5284     /usr/local/X11R6/include
5285     /usr/local/X11R5/include
5286     /usr/local/X11R4/include
5287    
5288     /usr/local/include/X11
5289     /usr/local/include/X11R6
5290     /usr/local/include/X11R5
5291     /usr/local/include/X11R4
5292    
5293     /usr/X386/include
5294     /usr/x386/include
5295     /usr/XFree86/include/X11
5296    
5297     /usr/include
5298     /usr/local/include
5299     /usr/unsupported/include
5300     /usr/athena/include
5301     /usr/local/x11r5/include
5302     /usr/lpp/Xamples/include
5303    
5304     /usr/openwin/include
5305     /usr/openwin/share/include'
5306 pcg 1.1
5307 pcg 1.11 if test "$ac_x_includes" = no; then
5308 pcg 1.24 # Guess where to find include files, by looking for a specified header file.
5309 pcg 1.1 # First, try using that file with no special directory specified.
5310 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
5311     /* confdefs.h. */
5312     _ACEOF
5313     cat confdefs.h >>conftest.$ac_ext
5314     cat >>conftest.$ac_ext <<_ACEOF
5315     /* end confdefs.h. */
5316 root 1.54 #include <X11/Xlib.h>
5317 pcg 1.11 _ACEOF
5318     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5319     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5320     ac_status=$?
5321     grep -v '^ *+' conftest.er1 >conftest.err
5322     rm -f conftest.er1
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 pcg 1.13 ac_cpp_err=$ac_cxx_preproc_warn_flag
5328     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5329 pcg 1.11 else
5330     ac_cpp_err=
5331     fi
5332     else
5333     ac_cpp_err=yes
5334     fi
5335     if test -z "$ac_cpp_err"; then
5336 pcg 1.1 # We can compile using X headers with no special include directory.
5337     ac_x_includes=
5338     else
5339 pcg 1.11 echo "$as_me: failed program was:" >&5
5340     sed 's/^/| /' conftest.$ac_ext >&5
5341    
5342     for ac_dir in $ac_x_header_dirs; do
5343 root 1.54 if test -r "$ac_dir/X11/Xlib.h"; then
5344 pcg 1.11 ac_x_includes=$ac_dir
5345     break
5346     fi
5347     done
5348 pcg 1.1 fi
5349 pcg 1.11 rm -f conftest.err conftest.$ac_ext
5350     fi # $ac_x_includes = no
5351 pcg 1.1
5352 pcg 1.11 if test "$ac_x_libraries" = no; then
5353 pcg 1.1 # Check for the libraries.
5354     # See if we find them without any special options.
5355     # Don't add to $LIBS permanently.
5356 pcg 1.11 ac_save_LIBS=$LIBS
5357 root 1.54 LIBS="-lX11 $LIBS"
5358 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
5359     /* confdefs.h. */
5360     _ACEOF
5361     cat confdefs.h >>conftest.$ac_ext
5362     cat >>conftest.$ac_ext <<_ACEOF
5363     /* end confdefs.h. */
5364 root 1.54 #include <X11/Xlib.h>
5365 pcg 1.11 int
5366     main ()
5367     {
5368 root 1.54 XrmInitialize ()
5369 pcg 1.11 ;
5370     return 0;
5371     }
5372     _ACEOF
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
5376     ac_status=$?
5377     grep -v '^ *+' conftest.er1 >conftest.err
5378     rm -f conftest.er1
5379     cat conftest.err >&5
5380     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381     (exit $ac_status); } &&
5382 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5383 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5384     (eval $ac_try) 2>&5
5385     ac_status=$?
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
5390     (eval $ac_try) 2>&5
5391     ac_status=$?
5392     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393     (exit $ac_status); }; }; then
5394     LIBS=$ac_save_LIBS
5395 pcg 1.1 # We can link X programs with no special library path.
5396     ac_x_libraries=
5397     else
5398 pcg 1.11 echo "$as_me: failed program was:" >&5
5399     sed 's/^/| /' conftest.$ac_ext >&5
5400    
5401     LIBS=$ac_save_LIBS
5402     for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5403 pcg 1.1 do
5404 pcg 1.11 # Don't even attempt the hair of trying to link an X program!
5405 pcg 1.1 for ac_extension in a so sl; do
5406 root 1.54 if test -r $ac_dir/libX11.$ac_extension; then
5407 pcg 1.1 ac_x_libraries=$ac_dir
5408     break 2
5409     fi
5410     done
5411     done
5412     fi
5413 pcg 1.11 rm -f conftest.err conftest.$ac_objext \
5414     conftest$ac_exeext conftest.$ac_ext
5415     fi # $ac_x_libraries = no
5416 pcg 1.1
5417 pcg 1.11 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
5418 pcg 1.1 # Didn't find X anywhere. Cache the known absence of X.
5419     ac_cv_have_x="have_x=no"
5420     else
5421     # Record where we found X for the cache.
5422     ac_cv_have_x="have_x=yes \
5423 pcg 1.11 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5424 pcg 1.1 fi
5425     fi
5426 pcg 1.11
5427 pcg 1.1 fi
5428     eval "$ac_cv_have_x"
5429     fi # $with_x != no
5430    
5431     if test "$have_x" != yes; then
5432 pcg 1.11 echo "$as_me:$LINENO: result: $have_x" >&5
5433     echo "${ECHO_T}$have_x" >&6
5434 pcg 1.1 no_x=yes
5435     else
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 pcg 1.24 # 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
5448 pcg 1.1 fi
5449    
5450 pcg 1.24 fi
5451 pcg 1.1 if test "$no_x" = yes; then
5452     # Not all programs may use this symbol, but it does not hurt to define it.
5453 pcg 1.11
5454     cat >>confdefs.h <<\_ACEOF
5455 pcg 1.1 #define X_DISPLAY_MISSING 1
5456 pcg 1.11 _ACEOF
5457 pcg 1.1
5458     X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5459     else
5460     if test -n "$x_includes"; then
5461     X_CFLAGS="$X_CFLAGS -I$x_includes"
5462     fi
5463    
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 pcg 1.11 case `(uname -sr) 2>/dev/null` in
5470 pcg 1.1 "SunOS 5"*)
5471 pcg 1.11 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
5475     /* confdefs.h. */
5476     _ACEOF
5477     cat confdefs.h >>conftest.$ac_ext
5478     cat >>conftest.$ac_ext <<_ACEOF
5479     /* end confdefs.h. */
5480 pcg 1.1
5481 pcg 1.11 int
5482     main ()
5483     {
5484 pcg 1.1
5485 pcg 1.11 ;
5486     return 0;
5487     }
5488     _ACEOF
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
5492     ac_status=$?
5493     grep -v '^ *+' conftest.er1 >conftest.err
5494     rm -f conftest.er1
5495     cat conftest.err >&5
5496     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497     (exit $ac_status); } &&
5498 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5499 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5500     (eval $ac_try) 2>&5
5501     ac_status=$?
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
5506     (eval $ac_try) 2>&5
5507     ac_status=$?
5508     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509     (exit $ac_status); }; }; then
5510 pcg 1.1 ac_R_nospace=yes
5511     else
5512 pcg 1.11 echo "$as_me: failed program was:" >&5
5513     sed 's/^/| /' conftest.$ac_ext >&5
5514    
5515     ac_R_nospace=no
5516 pcg 1.1 fi
5517 pcg 1.11 rm -f conftest.err conftest.$ac_objext \
5518     conftest$ac_exeext conftest.$ac_ext
5519 pcg 1.1 if test $ac_R_nospace = yes; then
5520 pcg 1.11 echo "$as_me:$LINENO: result: no" >&5
5521     echo "${ECHO_T}no" >&6
5522 pcg 1.1 X_LIBS="$X_LIBS -R$x_libraries"
5523     else
5524     LIBS="$ac_xsave_LIBS -R $x_libraries"
5525 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
5526     /* confdefs.h. */
5527     _ACEOF
5528     cat confdefs.h >>conftest.$ac_ext
5529     cat >>conftest.$ac_ext <<_ACEOF
5530     /* end confdefs.h. */
5531 pcg 1.1
5532 pcg 1.11 int
5533     main ()
5534     {
5535 pcg 1.1
5536 pcg 1.11 ;
5537     return 0;
5538     }
5539     _ACEOF
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
5543     ac_status=$?
5544     grep -v '^ *+' conftest.er1 >conftest.err
5545     rm -f conftest.er1
5546     cat conftest.err >&5
5547     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548     (exit $ac_status); } &&
5549 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5550 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5551     (eval $ac_try) 2>&5
5552     ac_status=$?
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
5557     (eval $ac_try) 2>&5
5558     ac_status=$?
5559     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560     (exit $ac_status); }; }; then
5561 pcg 1.1 ac_R_space=yes
5562     else
5563 pcg 1.11 echo "$as_me: failed program was:" >&5
5564     sed 's/^/| /' conftest.$ac_ext >&5
5565    
5566     ac_R_space=no
5567 pcg 1.1 fi
5568 pcg 1.11 rm -f conftest.err conftest.$ac_objext \
5569     conftest$ac_exeext conftest.$ac_ext
5570 pcg 1.1 if test $ac_R_space = yes; then
5571 pcg 1.11 echo "$as_me:$LINENO: result: yes" >&5
5572     echo "${ECHO_T}yes" >&6
5573 pcg 1.1 X_LIBS="$X_LIBS -R $x_libraries"
5574     else
5575 pcg 1.11 echo "$as_me:$LINENO: result: neither works" >&5
5576     echo "${ECHO_T}neither works" >&6
5577 pcg 1.1 fi
5578     fi
5579 pcg 1.11 LIBS=$ac_xsave_LIBS
5580 pcg 1.1 esac
5581     fi
5582    
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.
5586    
5587     if test "$ISC" = yes; then
5588     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5589     else
5590 pcg 1.11 # Martyn Johnson says this is needed for Ultrix, if the X
5591     # libraries were built with DECnet support. And Karl Berry says
5592 pcg 1.1 # the Alpha needs dnet_stub (dnet does not exist).
5593 pcg 1.11 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5594     cat >conftest.$ac_ext <<_ACEOF
5595     /* confdefs.h. */
5596     _ACEOF
5597     cat confdefs.h >>conftest.$ac_ext
5598     cat >>conftest.$ac_ext <<_ACEOF
5599     /* end confdefs.h. */
5600    
5601 pcg 1.1 /* Override any gcc2 internal prototype to avoid an error. */
5602 pcg 1.11 #ifdef __cplusplus
5603     extern "C"
5604     #endif
5605 pcg 1.1 /* We use char because int might match the return type of a gcc2
5606 pcg 1.11 builtin and then its argument prototype would still apply. */
5607     char XOpenDisplay ();
5608     int
5609     main ()
5610     {
5611     XOpenDisplay ();
5612     ;
5613     return 0;
5614     }
5615     _ACEOF
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
5619     ac_status=$?
5620     grep -v '^ *+' conftest.er1 >conftest.err
5621     rm -f conftest.er1
5622     cat conftest.err >&5
5623     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624     (exit $ac_status); } &&
5625 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5626 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5627     (eval $ac_try) 2>&5
5628     ac_status=$?
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
5633     (eval $ac_try) 2>&5
5634     ac_status=$?
5635     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636     (exit $ac_status); }; }; then
5637     :
5638     else
5639     echo "$as_me: failed program was:" >&5
5640     sed 's/^/| /' conftest.$ac_ext >&5
5641 pcg 1.1
5642 pcg 1.11 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
5646 pcg 1.1 else
5647 pcg 1.11 ac_check_lib_save_LIBS=$LIBS
5648     LIBS="-ldnet $LIBS"
5649     cat >conftest.$ac_ext <<_ACEOF
5650     /* confdefs.h. */
5651     _ACEOF
5652     cat confdefs.h >>conftest.$ac_ext
5653     cat >>conftest.$ac_ext <<_ACEOF
5654     /* end confdefs.h. */
5655 pcg 1.1
5656 pcg 1.11 /* Override any gcc2 internal prototype to avoid an error. */
5657     #ifdef __cplusplus
5658     extern "C"
5659     #endif
5660     /* We use char because int might match the return type of a gcc2
5661     builtin and then its argument prototype would still apply. */
5662     char dnet_ntoa ();
5663     int
5664     main ()
5665     {
5666     dnet_ntoa ();
5667     ;
5668     return 0;
5669     }
5670     _ACEOF
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
5674     ac_status=$?
5675     grep -v '^ *+' conftest.er1 >conftest.err
5676     rm -f conftest.er1
5677     cat conftest.err >&5
5678     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679     (exit $ac_status); } &&
5680 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5681 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5682     (eval $ac_try) 2>&5
5683     ac_status=$?
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
5688     (eval $ac_try) 2>&5
5689     ac_status=$?
5690     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691     (exit $ac_status); }; }; then
5692     ac_cv_lib_dnet_dnet_ntoa=yes
5693     else
5694     echo "$as_me: failed program was:" >&5
5695     sed 's/^/| /' conftest.$ac_ext >&5
5696    
5697     ac_cv_lib_dnet_dnet_ntoa=no
5698     fi
5699     rm -f conftest.err conftest.$ac_objext \
5700     conftest$ac_exeext conftest.$ac_ext
5701     LIBS=$ac_check_lib_save_LIBS
5702     fi
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 pcg 1.1 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5707     fi
5708    
5709     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5710 pcg 1.11 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
5714 pcg 1.1 else
5715 pcg 1.11 ac_check_lib_save_LIBS=$LIBS
5716 pcg 1.1 LIBS="-ldnet_stub $LIBS"
5717 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
5718     /* confdefs.h. */
5719     _ACEOF
5720     cat confdefs.h >>conftest.$ac_ext
5721     cat >>conftest.$ac_ext <<_ACEOF
5722     /* end confdefs.h. */
5723    
5724 pcg 1.1 /* Override any gcc2 internal prototype to avoid an error. */
5725 pcg 1.11 #ifdef __cplusplus
5726     extern "C"
5727     #endif
5728 pcg 1.1 /* We use char because int might match the return type of a gcc2
5729 pcg 1.11 builtin and then its argument prototype would still apply. */
5730     char dnet_ntoa ();
5731     int
5732     main ()
5733     {
5734     dnet_ntoa ();
5735     ;
5736     return 0;
5737     }
5738     _ACEOF
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
5742     ac_status=$?
5743     grep -v '^ *+' conftest.er1 >conftest.err
5744     rm -f conftest.er1
5745     cat conftest.err >&5
5746     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747     (exit $ac_status); } &&
5748 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5749 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5750     (eval $ac_try) 2>&5
5751     ac_status=$?
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
5756     (eval $ac_try) 2>&5
5757     ac_status=$?
5758     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759     (exit $ac_status); }; }; then
5760     ac_cv_lib_dnet_stub_dnet_ntoa=yes
5761     else
5762     echo "$as_me: failed program was:" >&5
5763     sed 's/^/| /' conftest.$ac_ext >&5
5764    
5765     ac_cv_lib_dnet_stub_dnet_ntoa=no
5766     fi
5767     rm -f conftest.err conftest.$ac_objext \
5768     conftest$ac_exeext conftest.$ac_ext
5769     LIBS=$ac_check_lib_save_LIBS
5770     fi
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 pcg 1.1 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5775     fi
5776    
5777     fi
5778 pcg 1.11 fi
5779     rm -f conftest.err conftest.$ac_objext \
5780     conftest$ac_exeext conftest.$ac_ext
5781     LIBS="$ac_xsave_LIBS"
5782 pcg 1.1
5783     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5784     # to get the SysV transport functions.
5785 pcg 1.11 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5786 pcg 1.1 # needs -lnsl.
5787     # The nsl library prevents programs from opening the X display
5788 pcg 1.11 # 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
5795     else
5796     cat >conftest.$ac_ext <<_ACEOF
5797     /* confdefs.h. */
5798     _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
5805    
5806 pcg 1.1 /* System header to define __stub macros and hopefully few prototypes,
5807 pcg 1.11 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. */
5810    
5811     #ifdef __STDC__
5812     # include <limits.h>
5813     #else
5814     # include <assert.h>
5815     #endif
5816    
5817     #undef gethostbyname
5818    
5819 pcg 1.1 /* Override any gcc2 internal prototype to avoid an error. */
5820 pcg 1.11 #ifdef __cplusplus
5821     extern "C"
5822     {
5823     #endif
5824 pcg 1.1 /* We use char because int might match the return type of a gcc2
5825 pcg 1.11 builtin and then its argument prototype would still apply. */
5826     char gethostbyname ();
5827 pcg 1.1 /* 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)
5831     choke me
5832     #else
5833 pcg 1.11 char (*f) () = gethostbyname;
5834     #endif
5835     #ifdef __cplusplus
5836     }
5837 pcg 1.1 #endif
5838    
5839 pcg 1.11 int
5840     main ()
5841     {
5842     return f != gethostbyname;
5843     ;
5844     return 0;
5845     }
5846     _ACEOF
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
5850     ac_status=$?
5851     grep -v '^ *+' conftest.er1 >conftest.err
5852     rm -f conftest.er1
5853     cat conftest.err >&5
5854     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855     (exit $ac_status); } &&
5856 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5857 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5858     (eval $ac_try) 2>&5
5859     ac_status=$?
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
5864     (eval $ac_try) 2>&5
5865     ac_status=$?
5866     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867     (exit $ac_status); }; }; then
5868     ac_cv_func_gethostbyname=yes
5869     else
5870     echo "$as_me: failed program was:" >&5
5871     sed 's/^/| /' conftest.$ac_ext >&5
5872    
5873     ac_cv_func_gethostbyname=no
5874     fi
5875     rm -f conftest.err conftest.$ac_objext \
5876     conftest$ac_exeext conftest.$ac_ext
5877     fi
5878     echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5879     echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5880    
5881 pcg 1.1 if test $ac_cv_func_gethostbyname = no; then
5882 pcg 1.11 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
5886 pcg 1.1 else
5887 pcg 1.11 ac_check_lib_save_LIBS=$LIBS
5888 pcg 1.1 LIBS="-lnsl $LIBS"
5889 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
5890     /* confdefs.h. */
5891     _ACEOF
5892     cat confdefs.h >>conftest.$ac_ext
5893     cat >>conftest.$ac_ext <<_ACEOF
5894     /* end confdefs.h. */
5895    
5896 pcg 1.1 /* Override any gcc2 internal prototype to avoid an error. */
5897 pcg 1.11 #ifdef __cplusplus
5898     extern "C"
5899     #endif
5900 pcg 1.1 /* We use char because int might match the return type of a gcc2
5901 pcg 1.11 builtin and then its argument prototype would still apply. */
5902     char gethostbyname ();
5903     int
5904     main ()
5905     {
5906     gethostbyname ();
5907     ;
5908     return 0;
5909     }
5910     _ACEOF
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
5914     ac_status=$?
5915     grep -v '^ *+' conftest.er1 >conftest.err
5916     rm -f conftest.er1
5917     cat conftest.err >&5
5918     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919     (exit $ac_status); } &&
5920 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5921 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5922     (eval $ac_try) 2>&5
5923     ac_status=$?
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
5928     (eval $ac_try) 2>&5
5929     ac_status=$?
5930     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931     (exit $ac_status); }; }; then
5932     ac_cv_lib_nsl_gethostbyname=yes
5933     else
5934     echo "$as_me: failed program was:" >&5
5935     sed 's/^/| /' conftest.$ac_ext >&5
5936    
5937     ac_cv_lib_nsl_gethostbyname=no
5938     fi
5939     rm -f conftest.err conftest.$ac_objext \
5940     conftest$ac_exeext conftest.$ac_ext
5941     LIBS=$ac_check_lib_save_LIBS
5942     fi
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"
5947     fi
5948 pcg 1.1
5949 pcg 1.11 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
5954     else
5955     ac_check_lib_save_LIBS=$LIBS
5956     LIBS="-lbsd $LIBS"
5957     cat >conftest.$ac_ext <<_ACEOF
5958     /* confdefs.h. */
5959     _ACEOF
5960     cat confdefs.h >>conftest.$ac_ext
5961     cat >>conftest.$ac_ext <<_ACEOF
5962     /* end confdefs.h. */
5963 pcg 1.1
5964 pcg 1.11 /* Override any gcc2 internal prototype to avoid an error. */
5965     #ifdef __cplusplus
5966     extern "C"
5967     #endif
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 ();
5971     int
5972     main ()
5973     {
5974     gethostbyname ();
5975     ;
5976     return 0;
5977     }
5978     _ACEOF
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
5982     ac_status=$?
5983     grep -v '^ *+' conftest.er1 >conftest.err
5984     rm -f conftest.er1
5985     cat conftest.err >&5
5986     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987     (exit $ac_status); } &&
5988 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5989 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5990     (eval $ac_try) 2>&5
5991     ac_status=$?
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
5996     (eval $ac_try) 2>&5
5997     ac_status=$?
5998     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999     (exit $ac_status); }; }; then
6000     ac_cv_lib_bsd_gethostbyname=yes
6001     else
6002     echo "$as_me: failed program was:" >&5
6003     sed 's/^/| /' conftest.$ac_ext >&5
6004    
6005     ac_cv_lib_bsd_gethostbyname=no
6006     fi
6007     rm -f conftest.err conftest.$ac_objext \
6008     conftest$ac_exeext conftest.$ac_ext
6009     LIBS=$ac_check_lib_save_LIBS
6010     fi
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"
6015 pcg 1.1 fi
6016    
6017 pcg 1.11 fi
6018 pcg 1.1 fi
6019    
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 pcg 1.11 # 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
6031     else
6032     cat >conftest.$ac_ext <<_ACEOF
6033     /* confdefs.h. */
6034     _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
6041    
6042 pcg 1.1 /* System header to define __stub macros and hopefully few prototypes,
6043 pcg 1.11 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. */
6046    
6047     #ifdef __STDC__
6048     # include <limits.h>
6049     #else
6050     # include <assert.h>
6051     #endif
6052    
6053     #undef connect
6054    
6055 pcg 1.1 /* Override any gcc2 internal prototype to avoid an error. */
6056 pcg 1.11 #ifdef __cplusplus
6057     extern "C"
6058     {
6059     #endif
6060 pcg 1.1 /* We use char because int might match the return type of a gcc2
6061 pcg 1.11 builtin and then its argument prototype would still apply. */
6062     char connect ();
6063 pcg 1.1 /* 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)
6067     choke me
6068     #else
6069 pcg 1.11 char (*f) () = connect;
6070     #endif
6071     #ifdef __cplusplus
6072     }
6073 pcg 1.1 #endif
6074    
6075 pcg 1.11 int
6076     main ()
6077     {
6078     return f != connect;
6079     ;
6080     return 0;
6081     }
6082     _ACEOF
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
6086     ac_status=$?
6087     grep -v '^ *+' conftest.er1 >conftest.err
6088     rm -f conftest.er1
6089     cat conftest.err >&5
6090     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091     (exit $ac_status); } &&
6092 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6093 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094     (eval $ac_try) 2>&5
6095     ac_status=$?
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
6100     (eval $ac_try) 2>&5
6101     ac_status=$?
6102     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103     (exit $ac_status); }; }; then
6104     ac_cv_func_connect=yes
6105     else
6106     echo "$as_me: failed program was:" >&5
6107     sed 's/^/| /' conftest.$ac_ext >&5
6108    
6109     ac_cv_func_connect=no
6110 pcg 1.1 fi
6111 pcg 1.11 rm -f conftest.err conftest.$ac_objext \
6112     conftest$ac_exeext conftest.$ac_ext
6113 pcg 1.1 fi
6114 pcg 1.11 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6115     echo "${ECHO_T}$ac_cv_func_connect" >&6
6116 pcg 1.1
6117     if test $ac_cv_func_connect = no; then
6118 pcg 1.11 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
6122 pcg 1.1 else
6123 pcg 1.11 ac_check_lib_save_LIBS=$LIBS
6124 pcg 1.1 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6125 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
6126     /* confdefs.h. */
6127     _ACEOF
6128     cat confdefs.h >>conftest.$ac_ext
6129     cat >>conftest.$ac_ext <<_ACEOF
6130     /* end confdefs.h. */
6131    
6132 pcg 1.1 /* Override any gcc2 internal prototype to avoid an error. */
6133 pcg 1.11 #ifdef __cplusplus
6134     extern "C"
6135     #endif
6136 pcg 1.1 /* We use char because int might match the return type of a gcc2
6137 pcg 1.11 builtin and then its argument prototype would still apply. */
6138     char connect ();
6139     int
6140     main ()
6141     {
6142     connect ();
6143     ;
6144     return 0;
6145     }
6146     _ACEOF
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
6150     ac_status=$?
6151     grep -v '^ *+' conftest.er1 >conftest.err
6152     rm -f conftest.er1
6153     cat conftest.err >&5
6154     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155     (exit $ac_status); } &&
6156 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6157 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6158     (eval $ac_try) 2>&5
6159     ac_status=$?
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
6164     (eval $ac_try) 2>&5
6165     ac_status=$?
6166     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167     (exit $ac_status); }; }; then
6168     ac_cv_lib_socket_connect=yes
6169     else
6170     echo "$as_me: failed program was:" >&5
6171     sed 's/^/| /' conftest.$ac_ext >&5
6172    
6173     ac_cv_lib_socket_connect=no
6174     fi
6175     rm -f conftest.err conftest.$ac_objext \
6176     conftest$ac_exeext conftest.$ac_ext
6177     LIBS=$ac_check_lib_save_LIBS
6178     fi
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 pcg 1.1 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6183     fi
6184    
6185     fi
6186    
6187 pcg 1.11 # 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
6192     else
6193     cat >conftest.$ac_ext <<_ACEOF
6194     /* confdefs.h. */
6195     _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
6202    
6203 pcg 1.1 /* System header to define __stub macros and hopefully few prototypes,
6204 pcg 1.11 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. */
6207    
6208     #ifdef __STDC__
6209     # include <limits.h>
6210     #else
6211     # include <assert.h>
6212     #endif
6213    
6214     #undef remove
6215    
6216 pcg 1.1 /* Override any gcc2 internal prototype to avoid an error. */
6217 pcg 1.11 #ifdef __cplusplus
6218     extern "C"
6219     {
6220     #endif
6221 pcg 1.1 /* We use char because int might match the return type of a gcc2
6222 pcg 1.11 builtin and then its argument prototype would still apply. */
6223     char remove ();
6224 pcg 1.1 /* 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)
6228     choke me
6229     #else
6230 pcg 1.11 char (*f) () = remove;
6231     #endif
6232     #ifdef __cplusplus
6233     }
6234 pcg 1.1 #endif
6235    
6236 pcg 1.11 int
6237     main ()
6238     {
6239     return f != remove;
6240     ;
6241     return 0;
6242     }
6243     _ACEOF
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
6247     ac_status=$?
6248     grep -v '^ *+' conftest.er1 >conftest.err
6249     rm -f conftest.er1
6250     cat conftest.err >&5
6251     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252     (exit $ac_status); } &&
6253 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6254 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6255     (eval $ac_try) 2>&5
6256     ac_status=$?
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
6261     (eval $ac_try) 2>&5
6262     ac_status=$?
6263     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264     (exit $ac_status); }; }; then
6265     ac_cv_func_remove=yes
6266     else
6267     echo "$as_me: failed program was:" >&5
6268     sed 's/^/| /' conftest.$ac_ext >&5
6269    
6270     ac_cv_func_remove=no
6271 pcg 1.1 fi
6272 pcg 1.11 rm -f conftest.err conftest.$ac_objext \
6273     conftest$ac_exeext conftest.$ac_ext
6274 pcg 1.1 fi
6275 pcg 1.11 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6276     echo "${ECHO_T}$ac_cv_func_remove" >&6
6277 pcg 1.1
6278     if test $ac_cv_func_remove = no; then
6279 pcg 1.11 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
6283 pcg 1.1 else
6284 pcg 1.11 ac_check_lib_save_LIBS=$LIBS
6285 pcg 1.1 LIBS="-lposix $LIBS"
6286 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
6287     /* confdefs.h. */
6288     _ACEOF
6289     cat confdefs.h >>conftest.$ac_ext
6290     cat >>conftest.$ac_ext <<_ACEOF
6291     /* end confdefs.h. */
6292    
6293 pcg 1.1 /* Override any gcc2 internal prototype to avoid an error. */
6294 pcg 1.11 #ifdef __cplusplus
6295     extern "C"
6296     #endif
6297 pcg 1.1 /* We use char because int might match the return type of a gcc2
6298 pcg 1.11 builtin and then its argument prototype would still apply. */
6299     char remove ();
6300     int
6301     main ()
6302     {
6303     remove ();
6304     ;
6305     return 0;
6306     }
6307     _ACEOF
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
6311     ac_status=$?
6312     grep -v '^ *+' conftest.er1 >conftest.err
6313     rm -f conftest.er1
6314     cat conftest.err >&5
6315     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316     (exit $ac_status); } &&
6317 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6318 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6319     (eval $ac_try) 2>&5
6320     ac_status=$?
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
6325     (eval $ac_try) 2>&5
6326     ac_status=$?
6327     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328     (exit $ac_status); }; }; then
6329     ac_cv_lib_posix_remove=yes
6330     else
6331     echo "$as_me: failed program was:" >&5
6332     sed 's/^/| /' conftest.$ac_ext >&5
6333    
6334     ac_cv_lib_posix_remove=no
6335     fi
6336     rm -f conftest.err conftest.$ac_objext \
6337     conftest$ac_exeext conftest.$ac_ext
6338     LIBS=$ac_check_lib_save_LIBS
6339     fi
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 pcg 1.1 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6344     fi
6345    
6346     fi
6347    
6348     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6349 pcg 1.11 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
6353     else
6354     cat >conftest.$ac_ext <<_ACEOF
6355     /* confdefs.h. */
6356     _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
6363    
6364 pcg 1.1 /* System header to define __stub macros and hopefully few prototypes,
6365 pcg 1.11 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. */
6368    
6369     #ifdef __STDC__
6370     # include <limits.h>
6371     #else
6372     # include <assert.h>
6373     #endif
6374    
6375     #undef shmat
6376    
6377 pcg 1.1 /* Override any gcc2 internal prototype to avoid an error. */
6378 pcg 1.11 #ifdef __cplusplus
6379     extern "C"
6380     {
6381     #endif
6382 pcg 1.1 /* We use char because int might match the return type of a gcc2
6383 pcg 1.11 builtin and then its argument prototype would still apply. */
6384     char shmat ();
6385 pcg 1.1 /* 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)
6389     choke me
6390     #else
6391 pcg 1.11 char (*f) () = shmat;
6392 pcg 1.1 #endif
6393 pcg 1.11 #ifdef __cplusplus
6394     }
6395     #endif
6396    
6397     int
6398     main ()
6399     {
6400     return f != shmat;
6401     ;
6402     return 0;
6403     }
6404     _ACEOF
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
6408     ac_status=$?
6409     grep -v '^ *+' conftest.er1 >conftest.err
6410     rm -f conftest.er1
6411     cat conftest.err >&5
6412     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413     (exit $ac_status); } &&
6414 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6415 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6416     (eval $ac_try) 2>&5
6417     ac_status=$?
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
6422     (eval $ac_try) 2>&5
6423     ac_status=$?
6424     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425     (exit $ac_status); }; }; then
6426     ac_cv_func_shmat=yes
6427     else
6428     echo "$as_me: failed program was:" >&5
6429     sed 's/^/| /' conftest.$ac_ext >&5
6430 pcg 1.1
6431 pcg 1.11 ac_cv_func_shmat=no
6432 pcg 1.1 fi
6433 pcg 1.11 rm -f conftest.err conftest.$ac_objext \
6434     conftest$ac_exeext conftest.$ac_ext
6435 pcg 1.1 fi
6436 pcg 1.11 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6437     echo "${ECHO_T}$ac_cv_func_shmat" >&6
6438 pcg 1.1
6439     if test $ac_cv_func_shmat = no; then
6440 pcg 1.11 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
6444 pcg 1.1 else
6445 pcg 1.11 ac_check_lib_save_LIBS=$LIBS
6446 pcg 1.1 LIBS="-lipc $LIBS"
6447 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
6448     /* confdefs.h. */
6449     _ACEOF
6450     cat confdefs.h >>conftest.$ac_ext
6451     cat >>conftest.$ac_ext <<_ACEOF
6452     /* end confdefs.h. */
6453    
6454 pcg 1.1 /* Override any gcc2 internal prototype to avoid an error. */
6455 pcg 1.11 #ifdef __cplusplus
6456     extern "C"
6457     #endif
6458 pcg 1.1 /* We use char because int might match the return type of a gcc2
6459 pcg 1.11 builtin and then its argument prototype would still apply. */
6460     char shmat ();
6461     int
6462     main ()
6463     {
6464     shmat ();
6465     ;
6466     return 0;
6467     }
6468     _ACEOF
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
6472     ac_status=$?
6473     grep -v '^ *+' conftest.er1 >conftest.err
6474     rm -f conftest.er1
6475     cat conftest.err >&5
6476     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477     (exit $ac_status); } &&
6478 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6479 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6480     (eval $ac_try) 2>&5
6481     ac_status=$?
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
6486     (eval $ac_try) 2>&5
6487     ac_status=$?
6488     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489     (exit $ac_status); }; }; then
6490     ac_cv_lib_ipc_shmat=yes
6491     else
6492     echo "$as_me: failed program was:" >&5
6493     sed 's/^/| /' conftest.$ac_ext >&5
6494    
6495     ac_cv_lib_ipc_shmat=no
6496     fi
6497     rm -f conftest.err conftest.$ac_objext \
6498     conftest$ac_exeext conftest.$ac_ext
6499     LIBS=$ac_check_lib_save_LIBS
6500     fi
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 pcg 1.1 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6505     fi
6506    
6507     fi
6508     fi
6509    
6510     # Check for libraries that X11R6 Xt/Xaw programs need.
6511 pcg 1.11 ac_save_LDFLAGS=$LDFLAGS
6512 pcg 1.1 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 pcg 1.11 # 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
6523 pcg 1.1 else
6524 pcg 1.11 ac_check_lib_save_LIBS=$LIBS
6525 pcg 1.1 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6526 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
6527     /* confdefs.h. */
6528     _ACEOF
6529     cat confdefs.h >>conftest.$ac_ext
6530     cat >>conftest.$ac_ext <<_ACEOF
6531     /* end confdefs.h. */
6532    
6533 pcg 1.1 /* Override any gcc2 internal prototype to avoid an error. */
6534 pcg 1.11 #ifdef __cplusplus
6535     extern "C"
6536     #endif
6537 pcg 1.1 /* We use char because int might match the return type of a gcc2
6538 pcg 1.11 builtin and then its argument prototype would still apply. */
6539     char IceConnectionNumber ();
6540     int
6541     main ()
6542     {
6543     IceConnectionNumber ();
6544     ;
6545     return 0;
6546     }
6547     _ACEOF
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
6551     ac_status=$?
6552     grep -v '^ *+' conftest.er1 >conftest.err
6553     rm -f conftest.er1
6554     cat conftest.err >&5
6555     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556     (exit $ac_status); } &&
6557 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6558 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6559     (eval $ac_try) 2>&5
6560     ac_status=$?
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
6565     (eval $ac_try) 2>&5
6566     ac_status=$?
6567     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568     (exit $ac_status); }; }; then
6569     ac_cv_lib_ICE_IceConnectionNumber=yes
6570     else
6571     echo "$as_me: failed program was:" >&5
6572     sed 's/^/| /' conftest.$ac_ext >&5
6573    
6574     ac_cv_lib_ICE_IceConnectionNumber=no
6575     fi
6576     rm -f conftest.err conftest.$ac_objext \
6577     conftest$ac_exeext conftest.$ac_ext
6578     LIBS=$ac_check_lib_save_LIBS
6579     fi
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 pcg 1.1 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6584     fi
6585    
6586 pcg 1.11 LDFLAGS=$ac_save_LDFLAGS
6587 pcg 1.1
6588     fi
6589    
6590    
6591    
6592     if test x$support_xpm = xyes; then
6593 pcg 1.11
6594 pcg 1.1
6595    
6596     # Initialize some more variables set by options.
6597     # The variables have the same names as the options, with
6598     # dashes changed to underlines.
6599    
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 pcg 1.11 echo "$as_me:$LINENO: checking for libXpm" >&5
6604     echo $ECHO_N "checking for libXpm... $ECHO_C" >&6
6605    
6606 pcg 1.1
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"
6611     else
6612     xpm_includes=NO
6613 pcg 1.11 fi;
6614 pcg 1.1
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"
6619     else
6620     xpm_libraries=NO
6621 pcg 1.11 fi;
6622 pcg 1.1
6623 pcg 1.11 # --without-xpm overrides everything else, but does not touch the cache.
6624 pcg 1.1
6625     # Check whether --with-xpm or --without-xpm was given.
6626     if test "${with_xpm+set}" = set; then
6627     withval="$with_xpm"
6628    
6629 pcg 1.11 fi;
6630 pcg 1.1 if test "$with_xpm" = no; then
6631     have_xpm=disabled
6632     else
6633 pcg 1.11 if test "${ac_cv_have_xpm+set}" = set; then
6634     echo $ECHO_N "(cached) $ECHO_C" >&6
6635 pcg 1.1 else
6636 pcg 1.11
6637 pcg 1.1 vt_xpm_include_X11=no
6638     if test -n "$xpm_includes"; then
6639     vt_xpm_includes=$xpm_includes
6640     else
6641     vt_xpm_includes=NO
6642     fi
6643     if test -n "$xpm_libraries"; then
6644     vt_xpm_libraries=$xpm_libraries
6645     else
6646     vt_xpm_libraries=NO
6647     fi
6648    
6649     if test "$vt_xpm_includes" = NO; then
6650     # Guess where to find xpm.h
6651    
6652     ac_save_CPPFLAGS="$CPPFLAGS"
6653     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6654    
6655     # First, try using that file with no special directory specified.
6656 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
6657     /* confdefs.h. */
6658     _ACEOF
6659     cat confdefs.h >>conftest.$ac_ext
6660     cat >>conftest.$ac_ext <<_ACEOF
6661     /* end confdefs.h. */
6662 pcg 1.1 #include <X11/xpm.h>
6663 pcg 1.11 _ACEOF
6664     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6665     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6666     ac_status=$?
6667     grep -v '^ *+' conftest.er1 >conftest.err
6668     rm -f conftest.er1
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 pcg 1.13 ac_cpp_err=$ac_cxx_preproc_warn_flag
6674     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6675 pcg 1.11 else
6676     ac_cpp_err=
6677     fi
6678     else
6679     ac_cpp_err=yes
6680     fi
6681     if test -z "$ac_cpp_err"; then
6682 pcg 1.1 # We can compile using X headers with no special include directory.
6683     vt_xpm_includes=
6684     vt_xpm_include_X11=yes
6685     else
6686 pcg 1.11 echo "$as_me: failed program was:" >&5
6687     sed 's/^/| /' conftest.$ac_ext >&5
6688    
6689 pcg 1.1 CPPFLAGS="$ac_save_CPPFLAGS"
6690     # Look for the header file in a standard set of common directories.
6691     for ac_dir in \
6692     /usr/X11/include \
6693     /usr/X11R6/include \
6694     /usr/X11R5/include \
6695     /usr/X11R4/include \
6696     \
6697     /usr/include/X11 \
6698     /usr/include/X11R6 \
6699     /usr/include/X11R5 \
6700     /usr/include/X11R4 \
6701     \
6702     /usr/local/X11/include \
6703     /usr/local/X11R6/include \
6704     /usr/local/X11R5/include \
6705     /usr/local/X11R4/include \
6706     \
6707     /usr/local/include/X11 \
6708     /usr/local/include/X11R6 \
6709     /usr/local/include/X11R5 \
6710     /usr/local/include/X11R4 \
6711     \
6712     /usr/X386/include \
6713     /usr/x386/include \
6714     /usr/XFree86/include/X11 \
6715     \
6716     /usr/include \
6717     /usr/local/include \
6718     /usr/unsupported/include \
6719     /usr/athena/include \
6720     /usr/local/x11r5/include \
6721     /usr/lpp/Xamples/include \
6722     \
6723     /usr/openwin/include \
6724     /usr/openwin/share/include \
6725     ; \
6726     do
6727     if test -r "$ac_dir/X11/xpm.h"; then
6728     vt_xpm_includes="$ac_dir"
6729     vt_xpm_include_X11=yes
6730     break
6731     else
6732     if test -r "$ac_dir/xpm.h"; then
6733     vt_xpm_includes=$ac_dir
6734     break
6735     fi
6736     fi
6737     done
6738     fi
6739 pcg 1.11 rm -f conftest.err conftest.$ac_ext
6740 pcg 1.1 fi
6741    
6742     if test "$vt_xpm_libraries" = NO; then
6743     # Check for the libraries.
6744    
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 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
6750     /* confdefs.h. */
6751     _ACEOF
6752     cat confdefs.h >>conftest.$ac_ext
6753     cat >>conftest.$ac_ext <<_ACEOF
6754     /* end confdefs.h. */
6755 pcg 1.1
6756 pcg 1.11 int
6757     main ()
6758     {
6759 pcg 1.1 XpmReadFileToPixmap()
6760 pcg 1.11 ;
6761     return 0;
6762     }
6763     _ACEOF
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
6767     ac_status=$?
6768     grep -v '^ *+' conftest.er1 >conftest.err
6769     rm -f conftest.er1
6770     cat conftest.err >&5
6771     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772     (exit $ac_status); } &&
6773 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6774 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6775     (eval $ac_try) 2>&5
6776     ac_status=$?
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
6781     (eval $ac_try) 2>&5
6782     ac_status=$?
6783     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784     (exit $ac_status); }; }; then
6785 pcg 1.1 LIBS="$ac_save_LIBS"
6786     # We can link libXpm with no special library path.
6787     vt_xpm_libraries=
6788     else
6789 pcg 1.11 echo "$as_me: failed program was:" >&5
6790     sed 's/^/| /' conftest.$ac_ext >&5
6791    
6792     LIBS="$ac_save_LIBS"
6793 pcg 1.1 # First see if replacing the include by lib works.
6794     for ac_dir in \
6795     `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \
6796     /usr/X11/lib \
6797     /usr/X11R6/lib \
6798     /usr/X11R5/lib \
6799     /usr/X11R4/lib \
6800     \
6801     /usr/lib/X11 \
6802     /usr/lib/X11R6 \
6803     /usr/lib/X11R5 \
6804     /usr/lib/X11R4 \
6805     \
6806     /usr/local/X11/lib \
6807     /usr/local/X11R6/lib \
6808     /usr/local/X11R5/lib \
6809     /usr/local/X11R4/lib \
6810     \
6811     /usr/local/lib/X11 \
6812     /usr/local/lib/X11R6 \
6813     /usr/local/lib/X11R5 \
6814     /usr/local/lib/X11R4 \
6815     \
6816     /usr/X386/lib \
6817     /usr/x386/lib \
6818     /usr/XFree86/lib/X11 \
6819     \
6820     /usr/lib \
6821     /usr/local/lib \
6822     /usr/unsupported/lib \
6823     /usr/athena/lib \
6824     /usr/local/x11r5/lib \
6825     /usr/lpp/Xamples/lib \
6826     \
6827     /usr/openwin/lib \
6828     /usr/openwin/share/lib \
6829     ; \
6830     do
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
6834     break 2
6835     fi
6836     done
6837     done
6838     fi
6839 pcg 1.11 rm -f conftest.err conftest.$ac_objext \
6840     conftest$ac_exeext conftest.$ac_ext
6841 pcg 1.1 fi
6842    
6843    
6844     if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then
6845     ac_cv_have_xpm="have_xpm=no"
6846     else
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"
6850     fi
6851     fi
6852     eval "$ac_cv_have_xpm"
6853     fi
6854    
6855     if test "$have_xpm" != yes; then
6856 pcg 1.11 echo "$as_me:$LINENO: result: $have_xpm" >&5
6857     echo "${ECHO_T}$have_xpm" >&6
6858 pcg 1.1 no_xpm=yes
6859     else
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
6864     fi
6865     else
6866     vt_xpm_include_X11=no
6867     if test -z "$xpm_includes"; then
6868 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
6869     /* confdefs.h. */
6870     _ACEOF
6871     cat confdefs.h >>conftest.$ac_ext
6872     cat >>conftest.$ac_ext <<_ACEOF
6873     /* end confdefs.h. */
6874 pcg 1.1 #include <X11/xpm.h>
6875 pcg 1.11 _ACEOF
6876     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6877     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6878     ac_status=$?
6879     grep -v '^ *+' conftest.er1 >conftest.err
6880     rm -f conftest.er1
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 pcg 1.13 ac_cpp_err=$ac_cxx_preproc_warn_flag
6886     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6887 pcg 1.11 else
6888     ac_cpp_err=
6889     fi
6890     else
6891     ac_cpp_err=yes
6892     fi
6893     if test -z "$ac_cpp_err"; then
6894 pcg 1.1 vt_xpm_include_X11=yes
6895     else
6896 pcg 1.11 echo "$as_me: failed program was:" >&5
6897     sed 's/^/| /' conftest.$ac_ext >&5
6898    
6899    
6900 pcg 1.1 fi
6901 pcg 1.11 rm -f conftest.err conftest.$ac_ext
6902 pcg 1.1 else
6903     if test -r "$xpm_includes/X11/xpm.h"; then
6904     vt_xpm_include_X11=yes
6905     fi
6906     fi
6907     fi
6908     vt_xpm_includes=$xpm_includes
6909     fi
6910     if test "x$xpm_libraries" != xNO; then
6911     vt_xpm_libraries=$xpm_libraries
6912     fi
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 pcg 1.11 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 pcg 1.1 if test -n "$vt_xpm_includes"; then
6921     XPM_CPPFLAGS="-DHAVE_LIBXPM"
6922     fi
6923     if test -n "$vt_xpm_includes"; then
6924     XPM_CFLAGS="-I$vt_xpm_includes"
6925     fi
6926     XPM_LIBS="-lXpm"
6927     if test -n "$vt_xpm_libraries"; then
6928     XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS"
6929     fi
6930     if test "x$vt_xpm_include_X11" = xyes; then
6931 pcg 1.11
6932     cat >>confdefs.h <<\_ACEOF
6933 pcg 1.1 #define XPM_INC_X11 1
6934 pcg 1.11 _ACEOF
6935 pcg 1.1
6936     fi
6937     fi
6938    
6939    
6940    
6941    
6942    
6943     if test x$no_xpm = xyes; then
6944     support_xpm=needsmanualspecification
6945     fi
6946     fi
6947    
6948 pcg 1.11 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
6952     else
6953     cat >conftest.$ac_ext <<_ACEOF
6954     /* confdefs.h. */
6955     _ACEOF
6956     cat confdefs.h >>conftest.$ac_ext
6957     cat >>conftest.$ac_ext <<_ACEOF
6958     /* end confdefs.h. */
6959 pcg 1.1 #include <sys/types.h>
6960     #include <sys/wait.h>
6961     #ifndef WEXITSTATUS
6962 pcg 1.11 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6963 pcg 1.1 #endif
6964     #ifndef WIFEXITED
6965 pcg 1.11 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6966 pcg 1.1 #endif
6967 pcg 1.11
6968     int
6969     main ()
6970     {
6971     int s;
6972     wait (&s);
6973     s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6974     ;
6975     return 0;
6976     }
6977     _ACEOF
6978     rm -f conftest.$ac_objext
6979     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6980     (eval $ac_compile) 2>conftest.er1
6981     ac_status=$?
6982     grep -v '^ *+' conftest.er1 >conftest.err
6983     rm -f conftest.er1
6984     cat conftest.err >&5
6985     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986     (exit $ac_status); } &&
6987 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6988 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6989     (eval $ac_try) 2>&5
6990     ac_status=$?
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
6995     (eval $ac_try) 2>&5
6996     ac_status=$?
6997     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998     (exit $ac_status); }; }; then
6999     ac_cv_header_sys_wait_h=yes
7000 pcg 1.1 else
7001 pcg 1.11 echo "$as_me: failed program was:" >&5
7002     sed 's/^/| /' conftest.$ac_ext >&5
7003    
7004     ac_cv_header_sys_wait_h=no
7005 pcg 1.1 fi
7006 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7007 pcg 1.1 fi
7008 pcg 1.11 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
7011 pcg 1.1
7012 pcg 1.11 cat >>confdefs.h <<\_ACEOF
7013 pcg 1.1 #define HAVE_SYS_WAIT_H 1
7014 pcg 1.11 _ACEOF
7015 pcg 1.1
7016     fi
7017    
7018 root 1.51 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
7022     else
7023     cat >conftest.$ac_ext <<_ACEOF
7024     /* confdefs.h. */
7025     _ACEOF
7026     cat confdefs.h >>conftest.$ac_ext
7027     cat >>conftest.$ac_ext <<_ACEOF
7028     /* end confdefs.h. */
7029     #include <stdlib.h>
7030     #include <stdarg.h>
7031     #include <string.h>
7032     #include <float.h>
7033    
7034     int
7035     main ()
7036     {
7037    
7038     ;
7039     return 0;
7040     }
7041     _ACEOF
7042     rm -f conftest.$ac_objext
7043     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7044     (eval $ac_compile) 2>conftest.er1
7045     ac_status=$?
7046     grep -v '^ *+' conftest.er1 >conftest.err
7047     rm -f conftest.er1
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
7053     (eval $ac_try) 2>&5
7054     ac_status=$?
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
7059     (eval $ac_try) 2>&5
7060     ac_status=$?
7061     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062     (exit $ac_status); }; }; then
7063     ac_cv_header_stdc=yes
7064     else
7065     echo "$as_me: failed program was:" >&5
7066     sed 's/^/| /' conftest.$ac_ext >&5
7067    
7068     ac_cv_header_stdc=no
7069     fi
7070     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7071    
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
7075     /* confdefs.h. */
7076     _ACEOF
7077     cat confdefs.h >>conftest.$ac_ext
7078     cat >>conftest.$ac_ext <<_ACEOF
7079     /* end confdefs.h. */
7080     #include <string.h>
7081    
7082     _ACEOF
7083     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7084     $EGREP "memchr" >/dev/null 2>&1; then
7085     :
7086     else
7087     ac_cv_header_stdc=no
7088     fi
7089     rm -f conftest*
7090    
7091     fi
7092    
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
7096     /* confdefs.h. */
7097     _ACEOF
7098     cat confdefs.h >>conftest.$ac_ext
7099     cat >>conftest.$ac_ext <<_ACEOF
7100     /* end confdefs.h. */
7101     #include <stdlib.h>
7102    
7103     _ACEOF
7104     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7105     $EGREP "free" >/dev/null 2>&1; then
7106     :
7107     else
7108     ac_cv_header_stdc=no
7109     fi
7110     rm -f conftest*
7111    
7112     fi
7113    
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
7117     :
7118     else
7119     cat >conftest.$ac_ext <<_ACEOF
7120     /* confdefs.h. */
7121     _ACEOF
7122     cat confdefs.h >>conftest.$ac_ext
7123     cat >>conftest.$ac_ext <<_ACEOF
7124     /* end confdefs.h. */
7125     #include <ctype.h>
7126     #if ((' ' & 0x0FF) == 0x020)
7127     # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7128     # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7129     #else
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))
7135     #endif
7136    
7137     #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7138     int
7139     main ()
7140     {
7141     int i;
7142     for (i = 0; i < 256; i++)
7143     if (XOR (islower (i), ISLOWER (i))
7144     || toupper (i) != TOUPPER (i))
7145     exit(2);
7146     exit (0);
7147     }
7148     _ACEOF
7149     rm -f conftest$ac_exeext
7150     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7151     (eval $ac_link) 2>&5
7152     ac_status=$?
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
7156     (eval $ac_try) 2>&5
7157     ac_status=$?
7158     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159     (exit $ac_status); }; }; then
7160     :
7161     else
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
7165    
7166     ( exit $ac_status )
7167     ac_cv_header_stdc=no
7168     fi
7169     rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7170     fi
7171     fi
7172     fi
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
7176    
7177     cat >>confdefs.h <<\_ACEOF
7178     #define STDC_HEADERS 1
7179     _ACEOF
7180    
7181     fi
7182    
7183     # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7184    
7185    
7186    
7187    
7188    
7189    
7190    
7191    
7192    
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
7195     do
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
7201     else
7202     cat >conftest.$ac_ext <<_ACEOF
7203     /* confdefs.h. */
7204     _ACEOF
7205     cat confdefs.h >>conftest.$ac_ext
7206     cat >>conftest.$ac_ext <<_ACEOF
7207     /* end confdefs.h. */
7208     $ac_includes_default
7209    
7210     #include <$ac_header>
7211     _ACEOF
7212     rm -f conftest.$ac_objext
7213     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7214     (eval $ac_compile) 2>conftest.er1
7215     ac_status=$?
7216     grep -v '^ *+' conftest.er1 >conftest.err
7217     rm -f conftest.er1
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
7223     (eval $ac_try) 2>&5
7224     ac_status=$?
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
7229     (eval $ac_try) 2>&5
7230     ac_status=$?
7231     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232     (exit $ac_status); }; }; then
7233     eval "$as_ac_Header=yes"
7234     else
7235     echo "$as_me: failed program was:" >&5
7236     sed 's/^/| /' conftest.$ac_ext >&5
7237    
7238     eval "$as_ac_Header=no"
7239     fi
7240     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7241     fi
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
7247     _ACEOF
7248    
7249     fi
7250    
7251     done
7252    
7253    
7254 pcg 1.11
7255    
7256    
7257    
7258    
7259    
7260    
7261    
7262    
7263    
7264    
7265    
7266    
7267    
7268    
7269    
7270    
7271    
7272    
7273 root 1.33
7274 root 1.48
7275 root 1.50
7276    
7277    
7278 root 1.64
7279    
7280 pcg 1.11 for ac_header in \
7281 pcg 1.1 assert.h \
7282     fcntl.h \
7283     grp.h \
7284     libc.h \
7285     lastlog.h \
7286     stdarg.h \
7287     stdlib.h \
7288     string.h \
7289     termios.h \
7290     unistd.h \
7291     sys/byteorder.h \
7292     sys/ioctl.h \
7293     sys/select.h \
7294     sys/sockio.h \
7295     sys/strredir.h \
7296 root 1.33 sys/stropts.h \
7297 pcg 1.1 sys/time.h \
7298     utmp.h \
7299     utmpx.h \
7300     stdint.h \
7301 root 1.48 pty.h \
7302 root 1.64 util.h \
7303     libutil.h \
7304 root 1.50 wchar.h \
7305     cwchar \
7306     clocale \
7307 pcg 1.1
7308     do
7309 pcg 1.11 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
7315     fi
7316     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7317     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7318     else
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
7323     /* confdefs.h. */
7324     _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>
7330     _ACEOF
7331     rm -f conftest.$ac_objext
7332     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7333     (eval $ac_compile) 2>conftest.er1
7334     ac_status=$?
7335     grep -v '^ *+' conftest.er1 >conftest.err
7336     rm -f conftest.er1
7337     cat conftest.err >&5
7338     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339     (exit $ac_status); } &&
7340 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7341 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7342     (eval $ac_try) 2>&5
7343     ac_status=$?
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
7348     (eval $ac_try) 2>&5
7349     ac_status=$?
7350     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351     (exit $ac_status); }; }; then
7352     ac_header_compiler=yes
7353     else
7354     echo "$as_me: failed program was:" >&5
7355     sed 's/^/| /' conftest.$ac_ext >&5
7356    
7357     ac_header_compiler=no
7358     fi
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
7362    
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
7367     /* confdefs.h. */
7368     _ACEOF
7369     cat confdefs.h >>conftest.$ac_ext
7370     cat >>conftest.$ac_ext <<_ACEOF
7371     /* end confdefs.h. */
7372     #include <$ac_header>
7373     _ACEOF
7374     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7375     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7376     ac_status=$?
7377     grep -v '^ *+' conftest.er1 >conftest.err
7378     rm -f conftest.er1
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 pcg 1.13 ac_cpp_err=$ac_cxx_preproc_warn_flag
7384     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7385 pcg 1.11 else
7386     ac_cpp_err=
7387     fi
7388     else
7389     ac_cpp_err=yes
7390     fi
7391     if test -z "$ac_cpp_err"; then
7392     ac_header_preproc=yes
7393 pcg 1.1 else
7394 pcg 1.11 echo "$as_me: failed program was:" >&5
7395     sed 's/^/| /' conftest.$ac_ext >&5
7396    
7397     ac_header_preproc=no
7398     fi
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
7402    
7403     # So? What about this header?
7404 pcg 1.13 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7405 pcg 1.11 yes:no: )
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
7411     ;;
7412     no: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;}
7425     (
7426     cat <<\_ASBOX
7427     ## ------------------------------------------ ##
7428     ## Report this to the AC_PACKAGE_NAME lists. ##
7429     ## ------------------------------------------ ##
7430     _ASBOX
7431     ) |
7432     sed "s/^/$as_me: WARNING: /" >&2
7433     ;;
7434     esac
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
7439 pcg 1.1 else
7440 pcg 1.11 eval "$as_ac_Header=\$ac_header_preproc"
7441 pcg 1.1 fi
7442 pcg 1.11 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7443     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7444    
7445 pcg 1.1 fi
7446 pcg 1.11 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7447     cat >>confdefs.h <<_ACEOF
7448     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7449     _ACEOF
7450    
7451 pcg 1.1 fi
7452 pcg 1.11
7453 pcg 1.1 done
7454    
7455    
7456 pcg 1.11 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
7460     else
7461     cat >conftest.$ac_ext <<_ACEOF
7462     /* confdefs.h. */
7463     _ACEOF
7464     cat confdefs.h >>conftest.$ac_ext
7465     cat >>conftest.$ac_ext <<_ACEOF
7466     /* end confdefs.h. */
7467 pcg 1.1 #include <sys/types.h>
7468     #include <sys/time.h>
7469     #include <time.h>
7470 pcg 1.11
7471     int
7472     main ()
7473     {
7474     if ((struct tm *) 0)
7475     return 0;
7476     ;
7477     return 0;
7478     }
7479     _ACEOF
7480     rm -f conftest.$ac_objext
7481     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7482     (eval $ac_compile) 2>conftest.er1
7483     ac_status=$?
7484     grep -v '^ *+' conftest.er1 >conftest.err
7485     rm -f conftest.er1
7486     cat conftest.err >&5
7487     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488     (exit $ac_status); } &&
7489 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7490 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7491     (eval $ac_try) 2>&5
7492     ac_status=$?
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
7497     (eval $ac_try) 2>&5
7498     ac_status=$?
7499     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500     (exit $ac_status); }; }; then
7501 pcg 1.1 ac_cv_header_time=yes
7502     else
7503 pcg 1.11 echo "$as_me: failed program was:" >&5
7504     sed 's/^/| /' conftest.$ac_ext >&5
7505    
7506     ac_cv_header_time=no
7507 pcg 1.1 fi
7508 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7509 pcg 1.1 fi
7510 pcg 1.11 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
7513 pcg 1.1
7514 pcg 1.11 cat >>confdefs.h <<\_ACEOF
7515 pcg 1.1 #define TIME_WITH_SYS_TIME 1
7516 pcg 1.11 _ACEOF
7517 pcg 1.1
7518     fi
7519    
7520    
7521 pcg 1.11 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
7525 pcg 1.1 else
7526 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
7527     /* confdefs.h. */
7528     _ACEOF
7529     cat confdefs.h >>conftest.$ac_ext
7530     cat >>conftest.$ac_ext <<_ACEOF
7531     /* end confdefs.h. */
7532 pcg 1.1 #include <stdio.h>
7533     #include <sys/ioctl.h>
7534     #ifdef HAVE_TERMIOS_H
7535     #include <termios.h>
7536     #endif
7537 pcg 1.11 int
7538     main ()
7539     {
7540 pcg 1.1 int a = ECHO;
7541 pcg 1.11 ;
7542     return 0;
7543     }
7544     _ACEOF
7545     rm -f conftest.$ac_objext
7546     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7547     (eval $ac_compile) 2>conftest.er1
7548     ac_status=$?
7549     grep -v '^ *+' conftest.er1 >conftest.err
7550     rm -f conftest.er1
7551     cat conftest.err >&5
7552     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553     (exit $ac_status); } &&
7554 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7555 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7556     (eval $ac_try) 2>&5
7557     ac_status=$?
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
7562     (eval $ac_try) 2>&5
7563     ac_status=$?
7564     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565     (exit $ac_status); }; }; then
7566 pcg 1.1 rxvt_cv_header_sysioctl=yes
7567     else
7568 pcg 1.11 echo "$as_me: failed program was:" >&5
7569     sed 's/^/| /' conftest.$ac_ext >&5
7570    
7571     rxvt_cv_header_sysioctl=no
7572 pcg 1.1 fi
7573 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7574 pcg 1.1 fi
7575 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5
7576     echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6
7577 pcg 1.1
7578     if test -n "$GCC"; then
7579     LDARG="-Wl,"
7580     else
7581     LDARG=""
7582     fi
7583     R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-rpath '$LDARG'\1/g'
7584    
7585     ac_save_CFLAGS=$CFLAGS
7586     ac_save_LIBS=$LIBS
7587     CFLAGS="$CFLAGS $X_CFLAGS"
7588     LIBS=`echo "$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
7589 pcg 1.11 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
7593 pcg 1.1 else
7594     if test "$cross_compiling" = yes; then
7595 pcg 1.11 { 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;}
7597 pcg 1.1 else
7598 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
7599     /* confdefs.h. */
7600     _ACEOF
7601     cat confdefs.h >>conftest.$ac_ext
7602     cat >>conftest.$ac_ext <<_ACEOF
7603     /* end confdefs.h. */
7604 pcg 1.1
7605     main()
7606     {
7607     exit(0);
7608     (void) XOpenDisplay("foobar");
7609     }
7610 pcg 1.11 _ACEOF
7611     rm -f conftest$ac_exeext
7612     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7613     (eval $ac_link) 2>&5
7614     ac_status=$?
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
7618     (eval $ac_try) 2>&5
7619     ac_status=$?
7620     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621     (exit $ac_status); }; }; then
7622 pcg 1.1 rxvt_cv_rpath=yes
7623     else
7624 pcg 1.11 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
7627    
7628     ( exit $ac_status )
7629     rxvt_cv_rpath=no
7630 pcg 1.1 fi
7631 pcg 1.11 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7632 pcg 1.1 fi
7633     fi
7634 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_rpath" >&5
7635     echo "${ECHO_T}$rxvt_cv_rpath" >&6
7636 pcg 1.1 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 pcg 1.11 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
7643 pcg 1.1 else
7644     if test "$cross_compiling" = yes; then
7645     rxvt_cv_R=no
7646     else
7647 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
7648     /* confdefs.h. */
7649     _ACEOF
7650     cat confdefs.h >>conftest.$ac_ext
7651     cat >>conftest.$ac_ext <<_ACEOF
7652     /* end confdefs.h. */
7653 pcg 1.1
7654     main()
7655     {
7656     exit(0);
7657     (void) XOpenDisplay("foobar");
7658     }
7659 pcg 1.11 _ACEOF
7660     rm -f conftest$ac_exeext
7661     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7662     (eval $ac_link) 2>&5
7663     ac_status=$?
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
7667     (eval $ac_try) 2>&5
7668     ac_status=$?
7669     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670     (exit $ac_status); }; }; then
7671 pcg 1.1 rxvt_cv_R=yes
7672     else
7673 pcg 1.11 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
7676    
7677     ( exit $ac_status )
7678     rxvt_cv_R=no
7679 pcg 1.1 fi
7680 pcg 1.11 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7681 pcg 1.1 fi
7682     fi
7683 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_R" >&5
7684     echo "${ECHO_T}$rxvt_cv_R" >&6
7685 pcg 1.1 if test x$rxvt_cv_R != xyes; then
7686     LIBS="$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
7687     fi
7688     fi
7689    
7690 pcg 1.11 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
7694     else
7695     cat >conftest.$ac_ext <<_ACEOF
7696     /* confdefs.h. */
7697     _ACEOF
7698     cat confdefs.h >>conftest.$ac_ext
7699     cat >>conftest.$ac_ext <<_ACEOF
7700     /* end confdefs.h. */
7701 pcg 1.1 #include <X11/Xlib.h>
7702 pcg 1.11 int
7703     main ()
7704     {
7705 pcg 1.1 XPointer dummy;
7706 pcg 1.11 ;
7707     return 0;
7708     }
7709     _ACEOF
7710     rm -f conftest.$ac_objext
7711     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7712     (eval $ac_compile) 2>conftest.er1
7713     ac_status=$?
7714     grep -v '^ *+' conftest.er1 >conftest.err
7715     rm -f conftest.er1
7716     cat conftest.err >&5
7717     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718     (exit $ac_status); } &&
7719 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7720 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7721     (eval $ac_try) 2>&5
7722     ac_status=$?
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
7727     (eval $ac_try) 2>&5
7728     ac_status=$?
7729     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730     (exit $ac_status); }; }; then
7731 pcg 1.1 rxvt_cv_xpointer=yes
7732     else
7733 pcg 1.11 echo "$as_me: failed program was:" >&5
7734     sed 's/^/| /' conftest.$ac_ext >&5
7735    
7736     rxvt_cv_xpointer=no
7737 pcg 1.1 fi
7738 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7739 pcg 1.1 fi
7740 pcg 1.11 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
7743 pcg 1.1
7744 pcg 1.11 cat >>confdefs.h <<\_ACEOF
7745 pcg 1.1 #define HAVE_XPOINTER 1
7746 pcg 1.11 _ACEOF
7747 pcg 1.1
7748     fi
7749     LIBS=$ac_save_LIBS
7750     CFLAGS=$ac_save_CFLAGS
7751    
7752    
7753 pcg 1.11 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
7757     else
7758     cat >conftest.$ac_ext <<_ACEOF
7759     /* confdefs.h. */
7760     _ACEOF
7761     cat confdefs.h >>conftest.$ac_ext
7762     cat >>conftest.$ac_ext <<_ACEOF
7763     /* end confdefs.h. */
7764 pcg 1.1
7765 pcg 1.11 int
7766     main ()
7767     {
7768     /* FIXME: Include the comments suggested by Paul. */
7769     #ifndef __cplusplus
7770     /* Ultrix mips cc rejects this. */
7771     typedef int charset[2];
7772     const charset x;
7773     /* SunOS 4.1.1 cc rejects this. */
7774     char const *const *ccp;
7775     char **p;
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
7782     expression */
7783     const char *g = "string";
7784     ccp = &g + (g ? g-g : 0);
7785     /* HPUX 7.0 cc rejects these. */
7786     ++ccp;
7787     p = (char**) ccp;
7788     ccp = (char const *const *) p;
7789     { /* SCO 3.2v4 cc rejects this. */
7790     char *t;
7791     char const *s = 0 ? (char *) 0 : (char const *) 0;
7792    
7793     *t++ = 0;
7794     }
7795     { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7796     int x[] = {25, 17};
7797     const int *foo = &x[0];
7798     ++foo;
7799     }
7800     { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7801     typedef const int *iptr;
7802     iptr p = 0;
7803     ++p;
7804     }
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;
7809     }
7810     { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7811     const int foo = 10;
7812     }
7813     #endif
7814 pcg 1.1
7815 pcg 1.11 ;
7816     return 0;
7817 pcg 1.1 }
7818 pcg 1.11 _ACEOF
7819     rm -f conftest.$ac_objext
7820     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7821     (eval $ac_compile) 2>conftest.er1
7822     ac_status=$?
7823     grep -v '^ *+' conftest.er1 >conftest.err
7824     rm -f conftest.er1
7825     cat conftest.err >&5
7826     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827     (exit $ac_status); } &&
7828 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7829 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7830     (eval $ac_try) 2>&5
7831     ac_status=$?
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
7836     (eval $ac_try) 2>&5
7837     ac_status=$?
7838     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839     (exit $ac_status); }; }; then
7840 pcg 1.1 ac_cv_c_const=yes
7841     else
7842 pcg 1.11 echo "$as_me: failed program was:" >&5
7843     sed 's/^/| /' conftest.$ac_ext >&5
7844    
7845     ac_cv_c_const=no
7846 pcg 1.1 fi
7847 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7848 pcg 1.1 fi
7849 pcg 1.11 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
7852 pcg 1.1
7853 pcg 1.11 cat >>confdefs.h <<\_ACEOF
7854     #define const
7855     _ACEOF
7856 pcg 1.1
7857     fi
7858    
7859 pcg 1.11 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
7863 pcg 1.1 else
7864     ac_cv_c_inline=no
7865     for ac_kw in inline __inline__ __inline; do
7866 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
7867     /* confdefs.h. */
7868     _ACEOF
7869     cat confdefs.h >>conftest.$ac_ext
7870     cat >>conftest.$ac_ext <<_ACEOF
7871     /* end confdefs.h. */
7872     #ifndef __cplusplus
7873     typedef int foo_t;
7874     static $ac_kw foo_t static_foo () {return 0; }
7875     $ac_kw foo_t foo () {return 0; }
7876     #endif
7877 pcg 1.1
7878 pcg 1.11 _ACEOF
7879     rm -f conftest.$ac_objext
7880     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7881     (eval $ac_compile) 2>conftest.er1
7882     ac_status=$?
7883     grep -v '^ *+' conftest.er1 >conftest.err
7884     rm -f conftest.er1
7885     cat conftest.err >&5
7886     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887     (exit $ac_status); } &&
7888 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7889 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7890     (eval $ac_try) 2>&5
7891     ac_status=$?
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
7896     (eval $ac_try) 2>&5
7897     ac_status=$?
7898     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7899     (exit $ac_status); }; }; then
7900 pcg 1.1 ac_cv_c_inline=$ac_kw; break
7901     else
7902 pcg 1.11 echo "$as_me: failed program was:" >&5
7903     sed 's/^/| /' conftest.$ac_ext >&5
7904    
7905 pcg 1.1 fi
7906 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7907 pcg 1.1 done
7908    
7909     fi
7910 pcg 1.11 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7911     echo "${ECHO_T}$ac_cv_c_inline" >&6
7912    
7913 pcg 1.1
7914 pcg 1.11 case $ac_cv_c_inline in
7915 pcg 1.1 inline | yes) ;;
7916 pcg 1.11 *)
7917     case $ac_cv_c_inline in
7918     no) ac_val=;;
7919     *) ac_val=$ac_cv_c_inline;;
7920     esac
7921     cat >>confdefs.h <<_ACEOF
7922     #ifndef __cplusplus
7923     #define inline $ac_val
7924     #endif
7925     _ACEOF
7926     ;;
7927 pcg 1.1 esac
7928    
7929    
7930    
7931 pcg 1.11 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
7935     else
7936     cat >conftest.$ac_ext <<_ACEOF
7937     /* confdefs.h. */
7938     _ACEOF
7939     cat confdefs.h >>conftest.$ac_ext
7940     cat >>conftest.$ac_ext <<_ACEOF
7941     /* end confdefs.h. */
7942     $ac_includes_default
7943     int
7944     main ()
7945     {
7946     if ((mode_t *) 0)
7947     return 0;
7948     if (sizeof (mode_t))
7949     return 0;
7950     ;
7951     return 0;
7952     }
7953     _ACEOF
7954     rm -f conftest.$ac_objext
7955     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7956     (eval $ac_compile) 2>conftest.er1
7957     ac_status=$?
7958     grep -v '^ *+' conftest.er1 >conftest.err
7959     rm -f conftest.er1
7960     cat conftest.err >&5
7961     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962     (exit $ac_status); } &&
7963 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7964 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7965     (eval $ac_try) 2>&5
7966     ac_status=$?
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
7971     (eval $ac_try) 2>&5
7972     ac_status=$?
7973     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974     (exit $ac_status); }; }; then
7975     ac_cv_type_mode_t=yes
7976 pcg 1.1 else
7977 pcg 1.11 echo "$as_me: failed program was:" >&5
7978     sed 's/^/| /' conftest.$ac_ext >&5
7979 pcg 1.1
7980 pcg 1.11 ac_cv_type_mode_t=no
7981 pcg 1.1 fi
7982 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7983 pcg 1.1 fi
7984 pcg 1.11 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
7987 pcg 1.1 :
7988     else
7989    
7990 pcg 1.11 cat >>confdefs.h <<_ACEOF
7991     #define mode_t int
7992     _ACEOF
7993 pcg 1.1
7994     fi
7995    
7996 pcg 1.11 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
8000     else
8001     cat >conftest.$ac_ext <<_ACEOF
8002     /* confdefs.h. */
8003     _ACEOF
8004     cat confdefs.h >>conftest.$ac_ext
8005     cat >>conftest.$ac_ext <<_ACEOF
8006     /* end confdefs.h. */
8007     $ac_includes_default
8008     int
8009     main ()
8010     {
8011     if ((pid_t *) 0)
8012     return 0;
8013     if (sizeof (pid_t))
8014     return 0;
8015     ;
8016     return 0;
8017     }
8018     _ACEOF
8019     rm -f conftest.$ac_objext
8020     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8021     (eval $ac_compile) 2>conftest.er1
8022     ac_status=$?
8023     grep -v '^ *+' conftest.er1 >conftest.err
8024     rm -f conftest.er1
8025     cat conftest.err >&5
8026     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027     (exit $ac_status); } &&
8028 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8029 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8030     (eval $ac_try) 2>&5
8031     ac_status=$?
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
8036     (eval $ac_try) 2>&5
8037     ac_status=$?
8038     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039     (exit $ac_status); }; }; then
8040     ac_cv_type_pid_t=yes
8041 pcg 1.1 else
8042 pcg 1.11 echo "$as_me: failed program was:" >&5
8043     sed 's/^/| /' conftest.$ac_ext >&5
8044 pcg 1.1
8045 pcg 1.11 ac_cv_type_pid_t=no
8046 pcg 1.1 fi
8047 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8048 pcg 1.1 fi
8049 pcg 1.11 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
8052     :
8053 pcg 1.1 else
8054    
8055 pcg 1.11 cat >>confdefs.h <<_ACEOF
8056 pcg 1.1 #define pid_t int
8057 pcg 1.11 _ACEOF
8058 pcg 1.1
8059     fi
8060    
8061 pcg 1.11 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
8065 pcg 1.1 else
8066 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
8067     /* confdefs.h. */
8068     _ACEOF
8069     cat confdefs.h >>conftest.$ac_ext
8070     cat >>conftest.$ac_ext <<_ACEOF
8071     /* end confdefs.h. */
8072 pcg 1.1 #include <sys/types.h>
8073 pcg 1.11
8074     _ACEOF
8075 pcg 1.1 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8076 pcg 1.11 $EGREP "uid_t" >/dev/null 2>&1; then
8077 pcg 1.1 ac_cv_type_uid_t=yes
8078     else
8079     ac_cv_type_uid_t=no
8080     fi
8081     rm -f conftest*
8082    
8083     fi
8084 pcg 1.11 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
8087 pcg 1.1
8088 pcg 1.11 cat >>confdefs.h <<\_ACEOF
8089 pcg 1.1 #define uid_t int
8090 pcg 1.11 _ACEOF
8091    
8092 pcg 1.1
8093 pcg 1.11 cat >>confdefs.h <<\_ACEOF
8094 pcg 1.1 #define gid_t int
8095 pcg 1.11 _ACEOF
8096 pcg 1.1
8097     fi
8098    
8099    
8100 pcg 1.11 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
8104     else
8105     cat >conftest.$ac_ext <<_ACEOF
8106     /* confdefs.h. */
8107     _ACEOF
8108     cat confdefs.h >>conftest.$ac_ext
8109     cat >>conftest.$ac_ext <<_ACEOF
8110     /* end confdefs.h. */
8111     $ac_includes_default
8112     int
8113     main ()
8114     {
8115 root 1.42 if ((short *) 0)
8116 pcg 1.11 return 0;
8117 root 1.42 if (sizeof (short))
8118 pcg 1.11 return 0;
8119     ;
8120     return 0;
8121     }
8122     _ACEOF
8123     rm -f conftest.$ac_objext
8124     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8125     (eval $ac_compile) 2>conftest.er1
8126     ac_status=$?
8127     grep -v '^ *+' conftest.er1 >conftest.err
8128     rm -f conftest.er1
8129     cat conftest.err >&5
8130     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131     (exit $ac_status); } &&
8132 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8133 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8134     (eval $ac_try) 2>&5
8135     ac_status=$?
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
8140     (eval $ac_try) 2>&5
8141     ac_status=$?
8142     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143     (exit $ac_status); }; }; then
8144 root 1.42 ac_cv_type_short=yes
8145 pcg 1.11 else
8146     echo "$as_me: failed program was:" >&5
8147     sed 's/^/| /' conftest.$ac_ext >&5
8148    
8149 root 1.42 ac_cv_type_short=no
8150 pcg 1.11 fi
8151     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8152     fi
8153 root 1.42 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8154     echo "${ECHO_T}$ac_cv_type_short" >&6
8155 pcg 1.11
8156 root 1.42 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 pcg 1.11 echo $ECHO_N "(cached) $ECHO_C" >&6
8160     else
8161 root 1.42 if test "$ac_cv_type_short" = yes; then
8162 pcg 1.11 # 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
8169     /* confdefs.h. */
8170     _ACEOF
8171     cat confdefs.h >>conftest.$ac_ext
8172     cat >>conftest.$ac_ext <<_ACEOF
8173     /* end confdefs.h. */
8174     $ac_includes_default
8175     int
8176     main ()
8177     {
8178 root 1.42 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
8179 pcg 1.11 test_array [0] = 0
8180    
8181     ;
8182     return 0;
8183     }
8184     _ACEOF
8185     rm -f conftest.$ac_objext
8186     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8187     (eval $ac_compile) 2>conftest.er1
8188     ac_status=$?
8189     grep -v '^ *+' conftest.er1 >conftest.err
8190     rm -f conftest.er1
8191     cat conftest.err >&5
8192     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193     (exit $ac_status); } &&
8194 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8195 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8196     (eval $ac_try) 2>&5
8197     ac_status=$?
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
8202     (eval $ac_try) 2>&5
8203     ac_status=$?
8204     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205     (exit $ac_status); }; }; then
8206     ac_lo=0 ac_mid=0
8207     while :; do
8208     cat >conftest.$ac_ext <<_ACEOF
8209     /* confdefs.h. */
8210     _ACEOF
8211     cat confdefs.h >>conftest.$ac_ext
8212     cat >>conftest.$ac_ext <<_ACEOF
8213     /* end confdefs.h. */
8214     $ac_includes_default
8215     int
8216     main ()
8217     {
8218 root 1.42 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
8219 pcg 1.11 test_array [0] = 0
8220    
8221     ;
8222     return 0;
8223     }
8224     _ACEOF
8225     rm -f conftest.$ac_objext
8226     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8227     (eval $ac_compile) 2>conftest.er1
8228     ac_status=$?
8229     grep -v '^ *+' conftest.er1 >conftest.err
8230     rm -f conftest.er1
8231     cat conftest.err >&5
8232     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233     (exit $ac_status); } &&
8234 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8235 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8236     (eval $ac_try) 2>&5
8237     ac_status=$?
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
8242     (eval $ac_try) 2>&5
8243     ac_status=$?
8244     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245     (exit $ac_status); }; }; then
8246     ac_hi=$ac_mid; break
8247     else
8248     echo "$as_me: failed program was:" >&5
8249     sed 's/^/| /' conftest.$ac_ext >&5
8250    
8251     ac_lo=`expr $ac_mid + 1`
8252     if test $ac_lo -le $ac_mid; then
8253     ac_lo= ac_hi=
8254     break
8255     fi
8256     ac_mid=`expr 2 '*' $ac_mid + 1`
8257     fi
8258     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8259     done
8260     else
8261     echo "$as_me: failed program was:" >&5
8262     sed 's/^/| /' conftest.$ac_ext >&5
8263    
8264     cat >conftest.$ac_ext <<_ACEOF
8265     /* confdefs.h. */
8266     _ACEOF
8267     cat confdefs.h >>conftest.$ac_ext
8268     cat >>conftest.$ac_ext <<_ACEOF
8269     /* end confdefs.h. */
8270     $ac_includes_default
8271     int
8272     main ()
8273     {
8274 root 1.42 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
8275 pcg 1.11 test_array [0] = 0
8276    
8277     ;
8278     return 0;
8279     }
8280     _ACEOF
8281     rm -f conftest.$ac_objext
8282     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8283     (eval $ac_compile) 2>conftest.er1
8284     ac_status=$?
8285     grep -v '^ *+' conftest.er1 >conftest.err
8286     rm -f conftest.er1
8287     cat conftest.err >&5
8288     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289     (exit $ac_status); } &&
8290 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8291 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8292     (eval $ac_try) 2>&5
8293     ac_status=$?
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
8298     (eval $ac_try) 2>&5
8299     ac_status=$?
8300     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301     (exit $ac_status); }; }; then
8302     ac_hi=-1 ac_mid=-1
8303     while :; do
8304     cat >conftest.$ac_ext <<_ACEOF
8305     /* confdefs.h. */
8306     _ACEOF
8307     cat confdefs.h >>conftest.$ac_ext
8308     cat >>conftest.$ac_ext <<_ACEOF
8309     /* end confdefs.h. */
8310     $ac_includes_default
8311     int
8312     main ()
8313     {
8314 root 1.42 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
8315 pcg 1.11 test_array [0] = 0
8316    
8317     ;
8318     return 0;
8319     }
8320     _ACEOF
8321     rm -f conftest.$ac_objext
8322     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8323     (eval $ac_compile) 2>conftest.er1
8324     ac_status=$?
8325     grep -v '^ *+' conftest.er1 >conftest.err
8326     rm -f conftest.er1
8327     cat conftest.err >&5
8328     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329     (exit $ac_status); } &&
8330 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8331 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8332     (eval $ac_try) 2>&5
8333     ac_status=$?
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
8338     (eval $ac_try) 2>&5
8339     ac_status=$?
8340     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341     (exit $ac_status); }; }; then
8342     ac_lo=$ac_mid; break
8343     else
8344     echo "$as_me: failed program was:" >&5
8345     sed 's/^/| /' conftest.$ac_ext >&5
8346    
8347     ac_hi=`expr '(' $ac_mid ')' - 1`
8348     if test $ac_mid -le $ac_hi; then
8349     ac_lo= ac_hi=
8350     break
8351     fi
8352     ac_mid=`expr 2 '*' $ac_mid`
8353     fi
8354     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8355     done
8356     else
8357     echo "$as_me: failed program was:" >&5
8358     sed 's/^/| /' conftest.$ac_ext >&5
8359 pcg 1.1
8360 pcg 1.11 ac_lo= ac_hi=
8361 pcg 1.1 fi
8362 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8363     fi
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
8369     /* confdefs.h. */
8370     _ACEOF
8371     cat confdefs.h >>conftest.$ac_ext
8372     cat >>conftest.$ac_ext <<_ACEOF
8373     /* end confdefs.h. */
8374     $ac_includes_default
8375     int
8376     main ()
8377     {
8378 root 1.42 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
8379 pcg 1.11 test_array [0] = 0
8380 pcg 1.1
8381 pcg 1.11 ;
8382     return 0;
8383     }
8384     _ACEOF
8385     rm -f conftest.$ac_objext
8386     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8387     (eval $ac_compile) 2>conftest.er1
8388     ac_status=$?
8389     grep -v '^ *+' conftest.er1 >conftest.err
8390     rm -f conftest.er1
8391     cat conftest.err >&5
8392     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393     (exit $ac_status); } &&
8394 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8395 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8396     (eval $ac_try) 2>&5
8397     ac_status=$?
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
8402     (eval $ac_try) 2>&5
8403     ac_status=$?
8404     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405     (exit $ac_status); }; }; then
8406     ac_hi=$ac_mid
8407     else
8408     echo "$as_me: failed program was:" >&5
8409     sed 's/^/| /' conftest.$ac_ext >&5
8410 pcg 1.1
8411 pcg 1.11 ac_lo=`expr '(' $ac_mid ')' + 1`
8412     fi
8413     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8414     done
8415     case $ac_lo in
8416 root 1.42 ?*) ac_cv_sizeof_short=$ac_lo;;
8417     '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
8418 pcg 1.11 See \`config.log' for more details." >&5
8419 root 1.42 echo "$as_me: error: cannot compute sizeof (short), 77
8420 pcg 1.11 See \`config.log' for more details." >&2;}
8421     { (exit 1); exit 1; }; } ;;
8422     esac
8423 pcg 1.1 else
8424     if test "$cross_compiling" = yes; then
8425 pcg 1.13 { { 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 pcg 1.11 { (exit 1); exit 1; }; }
8428     else
8429     cat >conftest.$ac_ext <<_ACEOF
8430     /* confdefs.h. */
8431     _ACEOF
8432     cat confdefs.h >>conftest.$ac_ext
8433     cat >>conftest.$ac_ext <<_ACEOF
8434     /* end confdefs.h. */
8435     $ac_includes_default
8436 root 1.42 long longval () { return (long) (sizeof (short)); }
8437     unsigned long ulongval () { return (long) (sizeof (short)); }
8438 pcg 1.1 #include <stdio.h>
8439 pcg 1.11 #include <stdlib.h>
8440     int
8441     main ()
8442 pcg 1.1 {
8443 pcg 1.11
8444     FILE *f = fopen ("conftest.val", "w");
8445     if (! f)
8446     exit (1);
8447 root 1.42 if (((long) (sizeof (short))) < 0)
8448 pcg 1.11 {
8449     long i = longval ();
8450 root 1.42 if (i != ((long) (sizeof (short))))
8451 pcg 1.11 exit (1);
8452     fprintf (f, "%ld\n", i);
8453     }
8454     else
8455     {
8456     unsigned long i = ulongval ();
8457 root 1.42 if (i != ((long) (sizeof (short))))
8458 pcg 1.11 exit (1);
8459     fprintf (f, "%lu\n", i);
8460     }
8461     exit (ferror (f) || fclose (f) != 0);
8462    
8463     ;
8464     return 0;
8465 pcg 1.1 }
8466 pcg 1.11 _ACEOF
8467     rm -f conftest$ac_exeext
8468     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8469     (eval $ac_link) 2>&5
8470     ac_status=$?
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
8474     (eval $ac_try) 2>&5
8475     ac_status=$?
8476     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477     (exit $ac_status); }; }; then
8478 root 1.42 ac_cv_sizeof_short=`cat conftest.val`
8479 pcg 1.11 else
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
8483    
8484     ( exit $ac_status )
8485 root 1.42 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
8486 pcg 1.11 See \`config.log' for more details." >&5
8487 root 1.42 echo "$as_me: error: cannot compute sizeof (short), 77
8488 pcg 1.11 See \`config.log' for more details." >&2;}
8489     { (exit 1); exit 1; }; }
8490     fi
8491     rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8492     fi
8493     fi
8494     rm -f conftest.val
8495     else
8496 root 1.42 ac_cv_sizeof_short=0
8497 pcg 1.1 fi
8498     fi
8499 root 1.42 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8500     echo "${ECHO_T}$ac_cv_sizeof_short" >&6
8501 pcg 1.11 cat >>confdefs.h <<_ACEOF
8502 root 1.42 #define SIZEOF_SHORT $ac_cv_sizeof_short
8503 pcg 1.11 _ACEOF
8504    
8505    
8506 root 1.42 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 pcg 1.11 echo $ECHO_N "(cached) $ECHO_C" >&6
8510     else
8511     cat >conftest.$ac_ext <<_ACEOF
8512     /* confdefs.h. */
8513     _ACEOF
8514     cat confdefs.h >>conftest.$ac_ext
8515     cat >>conftest.$ac_ext <<_ACEOF
8516     /* end confdefs.h. */
8517     $ac_includes_default
8518     int
8519     main ()
8520     {
8521 root 1.42 if ((int *) 0)
8522 pcg 1.11 return 0;
8523 root 1.42 if (sizeof (int))
8524 pcg 1.11 return 0;
8525     ;
8526     return 0;
8527     }
8528     _ACEOF
8529     rm -f conftest.$ac_objext
8530     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8531     (eval $ac_compile) 2>conftest.er1
8532     ac_status=$?
8533     grep -v '^ *+' conftest.er1 >conftest.err
8534     rm -f conftest.er1
8535     cat conftest.err >&5
8536     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537     (exit $ac_status); } &&
8538 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8539 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8540     (eval $ac_try) 2>&5
8541     ac_status=$?
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
8546     (eval $ac_try) 2>&5
8547     ac_status=$?
8548     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549     (exit $ac_status); }; }; then
8550 root 1.42 ac_cv_type_int=yes
8551 pcg 1.11 else
8552     echo "$as_me: failed program was:" >&5
8553     sed 's/^/| /' conftest.$ac_ext >&5
8554    
8555 root 1.42 ac_cv_type_int=no
8556 pcg 1.11 fi
8557     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8558     fi
8559 root 1.42 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
8560     echo "${ECHO_T}$ac_cv_type_int" >&6
8561 pcg 1.11
8562 root 1.42 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 pcg 1.11 echo $ECHO_N "(cached) $ECHO_C" >&6
8566     else
8567 root 1.42 if test "$ac_cv_type_int" = yes; then
8568 pcg 1.11 # 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
8575     /* confdefs.h. */
8576     _ACEOF
8577     cat confdefs.h >>conftest.$ac_ext
8578     cat >>conftest.$ac_ext <<_ACEOF
8579     /* end confdefs.h. */
8580     $ac_includes_default
8581     int
8582     main ()
8583     {
8584 root 1.42 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
8585 pcg 1.11 test_array [0] = 0
8586    
8587     ;
8588     return 0;
8589     }
8590     _ACEOF
8591     rm -f conftest.$ac_objext
8592     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8593     (eval $ac_compile) 2>conftest.er1
8594     ac_status=$?
8595     grep -v '^ *+' conftest.er1 >conftest.err
8596     rm -f conftest.er1
8597     cat conftest.err >&5
8598     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599     (exit $ac_status); } &&
8600 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8601 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8602     (eval $ac_try) 2>&5
8603     ac_status=$?
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
8608     (eval $ac_try) 2>&5
8609     ac_status=$?
8610     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611     (exit $ac_status); }; }; then
8612     ac_lo=0 ac_mid=0
8613     while :; do
8614     cat >conftest.$ac_ext <<_ACEOF
8615     /* confdefs.h. */
8616     _ACEOF
8617     cat confdefs.h >>conftest.$ac_ext
8618     cat >>conftest.$ac_ext <<_ACEOF
8619     /* end confdefs.h. */
8620     $ac_includes_default
8621     int
8622     main ()
8623     {
8624 root 1.42 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
8625 pcg 1.11 test_array [0] = 0
8626    
8627     ;
8628     return 0;
8629     }
8630     _ACEOF
8631     rm -f conftest.$ac_objext
8632     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8633     (eval $ac_compile) 2>conftest.er1
8634     ac_status=$?
8635     grep -v '^ *+' conftest.er1 >conftest.err
8636     rm -f conftest.er1
8637     cat conftest.err >&5
8638     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639     (exit $ac_status); } &&
8640 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8641 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8642     (eval $ac_try) 2>&5
8643     ac_status=$?
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
8648     (eval $ac_try) 2>&5
8649     ac_status=$?
8650     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651     (exit $ac_status); }; }; then
8652     ac_hi=$ac_mid; break
8653     else
8654     echo "$as_me: failed program was:" >&5
8655     sed 's/^/| /' conftest.$ac_ext >&5
8656    
8657     ac_lo=`expr $ac_mid + 1`
8658     if test $ac_lo -le $ac_mid; then
8659     ac_lo= ac_hi=
8660     break
8661     fi
8662     ac_mid=`expr 2 '*' $ac_mid + 1`
8663     fi
8664     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8665     done
8666     else
8667     echo "$as_me: failed program was:" >&5
8668     sed 's/^/| /' conftest.$ac_ext >&5
8669    
8670     cat >conftest.$ac_ext <<_ACEOF
8671     /* confdefs.h. */
8672     _ACEOF
8673     cat confdefs.h >>conftest.$ac_ext
8674     cat >>conftest.$ac_ext <<_ACEOF
8675     /* end confdefs.h. */
8676     $ac_includes_default
8677     int
8678     main ()
8679     {
8680 root 1.42 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
8681 pcg 1.11 test_array [0] = 0
8682    
8683     ;
8684     return 0;
8685     }
8686     _ACEOF
8687     rm -f conftest.$ac_objext
8688     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8689     (eval $ac_compile) 2>conftest.er1
8690     ac_status=$?
8691     grep -v '^ *+' conftest.er1 >conftest.err
8692     rm -f conftest.er1
8693     cat conftest.err >&5
8694     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695     (exit $ac_status); } &&
8696 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8697 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8698     (eval $ac_try) 2>&5
8699     ac_status=$?
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
8704     (eval $ac_try) 2>&5
8705     ac_status=$?
8706     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707     (exit $ac_status); }; }; then
8708     ac_hi=-1 ac_mid=-1
8709     while :; do
8710     cat >conftest.$ac_ext <<_ACEOF
8711     /* confdefs.h. */
8712     _ACEOF
8713     cat confdefs.h >>conftest.$ac_ext
8714     cat >>conftest.$ac_ext <<_ACEOF
8715     /* end confdefs.h. */
8716     $ac_includes_default
8717     int
8718     main ()
8719     {
8720 root 1.42 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
8721 pcg 1.11 test_array [0] = 0
8722    
8723     ;
8724     return 0;
8725     }
8726     _ACEOF
8727     rm -f conftest.$ac_objext
8728     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8729     (eval $ac_compile) 2>conftest.er1
8730     ac_status=$?
8731     grep -v '^ *+' conftest.er1 >conftest.err
8732     rm -f conftest.er1
8733     cat conftest.err >&5
8734     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735     (exit $ac_status); } &&
8736 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8737 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8738     (eval $ac_try) 2>&5
8739     ac_status=$?
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
8744     (eval $ac_try) 2>&5
8745     ac_status=$?
8746     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747     (exit $ac_status); }; }; then
8748     ac_lo=$ac_mid; break
8749     else
8750     echo "$as_me: failed program was:" >&5
8751     sed 's/^/| /' conftest.$ac_ext >&5
8752    
8753     ac_hi=`expr '(' $ac_mid ')' - 1`
8754     if test $ac_mid -le $ac_hi; then
8755     ac_lo= ac_hi=
8756     break
8757     fi
8758     ac_mid=`expr 2 '*' $ac_mid`
8759     fi
8760     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8761     done
8762     else
8763     echo "$as_me: failed program was:" >&5
8764     sed 's/^/| /' conftest.$ac_ext >&5
8765 pcg 1.1
8766 pcg 1.11 ac_lo= ac_hi=
8767     fi
8768     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8769 pcg 1.1 fi
8770 pcg 1.11 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
8775     /* confdefs.h. */
8776     _ACEOF
8777     cat confdefs.h >>conftest.$ac_ext
8778     cat >>conftest.$ac_ext <<_ACEOF
8779     /* end confdefs.h. */
8780     $ac_includes_default
8781     int
8782     main ()
8783     {
8784 root 1.42 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
8785 pcg 1.11 test_array [0] = 0
8786 pcg 1.1
8787 pcg 1.11 ;
8788     return 0;
8789     }
8790     _ACEOF
8791     rm -f conftest.$ac_objext
8792     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8793     (eval $ac_compile) 2>conftest.er1
8794     ac_status=$?
8795     grep -v '^ *+' conftest.er1 >conftest.err
8796     rm -f conftest.er1
8797     cat conftest.err >&5
8798     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799     (exit $ac_status); } &&
8800 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8801 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8802     (eval $ac_try) 2>&5
8803     ac_status=$?
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
8808     (eval $ac_try) 2>&5
8809     ac_status=$?
8810     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811     (exit $ac_status); }; }; then
8812     ac_hi=$ac_mid
8813     else
8814     echo "$as_me: failed program was:" >&5
8815     sed 's/^/| /' conftest.$ac_ext >&5
8816 pcg 1.1
8817 pcg 1.11 ac_lo=`expr '(' $ac_mid ')' + 1`
8818     fi
8819     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8820     done
8821     case $ac_lo in
8822 root 1.42 ?*) ac_cv_sizeof_int=$ac_lo;;
8823     '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
8824 pcg 1.11 See \`config.log' for more details." >&5
8825 root 1.42 echo "$as_me: error: cannot compute sizeof (int), 77
8826 pcg 1.11 See \`config.log' for more details." >&2;}
8827     { (exit 1); exit 1; }; } ;;
8828     esac
8829 pcg 1.1 else
8830     if test "$cross_compiling" = yes; then
8831 pcg 1.13 { { 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 pcg 1.11 { (exit 1); exit 1; }; }
8834     else
8835     cat >conftest.$ac_ext <<_ACEOF
8836     /* confdefs.h. */
8837     _ACEOF
8838     cat confdefs.h >>conftest.$ac_ext
8839     cat >>conftest.$ac_ext <<_ACEOF
8840     /* end confdefs.h. */
8841     $ac_includes_default
8842 root 1.42 long longval () { return (long) (sizeof (int)); }
8843     unsigned long ulongval () { return (long) (sizeof (int)); }
8844 pcg 1.1 #include <stdio.h>
8845 pcg 1.11 #include <stdlib.h>
8846     int
8847     main ()
8848 pcg 1.1 {
8849 pcg 1.11
8850     FILE *f = fopen ("conftest.val", "w");
8851     if (! f)
8852     exit (1);
8853 root 1.42 if (((long) (sizeof (int))) < 0)
8854 pcg 1.11 {
8855     long i = longval ();
8856 root 1.42 if (i != ((long) (sizeof (int))))
8857 pcg 1.11 exit (1);
8858     fprintf (f, "%ld\n", i);
8859     }
8860     else
8861     {
8862     unsigned long i = ulongval ();
8863 root 1.42 if (i != ((long) (sizeof (int))))
8864 pcg 1.11 exit (1);
8865     fprintf (f, "%lu\n", i);
8866     }
8867     exit (ferror (f) || fclose (f) != 0);
8868    
8869     ;
8870     return 0;
8871 pcg 1.1 }
8872 pcg 1.11 _ACEOF
8873     rm -f conftest$ac_exeext
8874     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8875     (eval $ac_link) 2>&5
8876     ac_status=$?
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
8880     (eval $ac_try) 2>&5
8881     ac_status=$?
8882     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883     (exit $ac_status); }; }; then
8884 root 1.42 ac_cv_sizeof_int=`cat conftest.val`
8885 pcg 1.11 else
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
8889    
8890     ( exit $ac_status )
8891 root 1.42 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
8892 pcg 1.11 See \`config.log' for more details." >&5
8893 root 1.42 echo "$as_me: error: cannot compute sizeof (int), 77
8894 pcg 1.11 See \`config.log' for more details." >&2;}
8895     { (exit 1); exit 1; }; }
8896     fi
8897     rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8898     fi
8899     fi
8900     rm -f conftest.val
8901     else
8902 root 1.42 ac_cv_sizeof_int=0
8903 pcg 1.1 fi
8904     fi
8905 root 1.42 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
8906     echo "${ECHO_T}$ac_cv_sizeof_int" >&6
8907 pcg 1.11 cat >>confdefs.h <<_ACEOF
8908 root 1.42 #define SIZEOF_INT $ac_cv_sizeof_int
8909 pcg 1.11 _ACEOF
8910    
8911    
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
8916     else
8917     cat >conftest.$ac_ext <<_ACEOF
8918     /* confdefs.h. */
8919     _ACEOF
8920     cat confdefs.h >>conftest.$ac_ext
8921     cat >>conftest.$ac_ext <<_ACEOF
8922     /* end confdefs.h. */
8923     $ac_includes_default
8924     int
8925     main ()
8926     {
8927     if ((long long *) 0)
8928     return 0;
8929     if (sizeof (long long))
8930     return 0;
8931     ;
8932     return 0;
8933     }
8934     _ACEOF
8935     rm -f conftest.$ac_objext
8936     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8937     (eval $ac_compile) 2>conftest.er1
8938     ac_status=$?
8939     grep -v '^ *+' conftest.er1 >conftest.err
8940     rm -f conftest.er1
8941     cat conftest.err >&5
8942     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943     (exit $ac_status); } &&
8944 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8945 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8946     (eval $ac_try) 2>&5
8947     ac_status=$?
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
8952     (eval $ac_try) 2>&5
8953     ac_status=$?
8954     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955     (exit $ac_status); }; }; then
8956     ac_cv_type_long_long=yes
8957     else
8958     echo "$as_me: failed program was:" >&5
8959     sed 's/^/| /' conftest.$ac_ext >&5
8960    
8961     ac_cv_type_long_long=no
8962     fi
8963     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8964     fi
8965     echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8966     echo "${ECHO_T}$ac_cv_type_long_long" >&6
8967    
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
8972     else
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
8981     /* confdefs.h. */
8982     _ACEOF
8983     cat confdefs.h >>conftest.$ac_ext
8984     cat >>conftest.$ac_ext <<_ACEOF
8985     /* end confdefs.h. */
8986     $ac_includes_default
8987     int
8988     main ()
8989     {
8990     static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
8991     test_array [0] = 0
8992    
8993     ;
8994     return 0;
8995     }
8996     _ACEOF
8997     rm -f conftest.$ac_objext
8998     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8999     (eval $ac_compile) 2>conftest.er1
9000     ac_status=$?
9001     grep -v '^ *+' conftest.er1 >conftest.err
9002     rm -f conftest.er1
9003     cat conftest.err >&5
9004     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005     (exit $ac_status); } &&
9006 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9007 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9008     (eval $ac_try) 2>&5
9009     ac_status=$?
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
9014     (eval $ac_try) 2>&5
9015     ac_status=$?
9016     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017     (exit $ac_status); }; }; then
9018     ac_lo=0 ac_mid=0
9019     while :; do
9020     cat >conftest.$ac_ext <<_ACEOF
9021     /* confdefs.h. */
9022     _ACEOF
9023     cat confdefs.h >>conftest.$ac_ext
9024     cat >>conftest.$ac_ext <<_ACEOF
9025     /* end confdefs.h. */
9026     $ac_includes_default
9027     int
9028     main ()
9029     {
9030     static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9031     test_array [0] = 0
9032    
9033     ;
9034     return 0;
9035     }
9036     _ACEOF
9037     rm -f conftest.$ac_objext
9038     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9039     (eval $ac_compile) 2>conftest.er1
9040     ac_status=$?
9041     grep -v '^ *+' conftest.er1 >conftest.err
9042     rm -f conftest.er1
9043     cat conftest.err >&5
9044     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045     (exit $ac_status); } &&
9046 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9047 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9048     (eval $ac_try) 2>&5
9049     ac_status=$?
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
9054     (eval $ac_try) 2>&5
9055     ac_status=$?
9056     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057     (exit $ac_status); }; }; then
9058     ac_hi=$ac_mid; break
9059     else
9060     echo "$as_me: failed program was:" >&5
9061     sed 's/^/| /' conftest.$ac_ext >&5
9062    
9063     ac_lo=`expr $ac_mid + 1`
9064     if test $ac_lo -le $ac_mid; then
9065     ac_lo= ac_hi=
9066     break
9067     fi
9068     ac_mid=`expr 2 '*' $ac_mid + 1`
9069     fi
9070     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9071     done
9072     else
9073     echo "$as_me: failed program was:" >&5
9074     sed 's/^/| /' conftest.$ac_ext >&5
9075    
9076     cat >conftest.$ac_ext <<_ACEOF
9077     /* confdefs.h. */
9078     _ACEOF
9079     cat confdefs.h >>conftest.$ac_ext
9080     cat >>conftest.$ac_ext <<_ACEOF
9081     /* end confdefs.h. */
9082     $ac_includes_default
9083     int
9084     main ()
9085     {
9086     static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
9087     test_array [0] = 0
9088    
9089     ;
9090     return 0;
9091     }
9092     _ACEOF
9093     rm -f conftest.$ac_objext
9094     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9095     (eval $ac_compile) 2>conftest.er1
9096     ac_status=$?
9097     grep -v '^ *+' conftest.er1 >conftest.err
9098     rm -f conftest.er1
9099     cat conftest.err >&5
9100     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101     (exit $ac_status); } &&
9102 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9103 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9104     (eval $ac_try) 2>&5
9105     ac_status=$?
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
9110     (eval $ac_try) 2>&5
9111     ac_status=$?
9112     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113     (exit $ac_status); }; }; then
9114     ac_hi=-1 ac_mid=-1
9115     while :; do
9116     cat >conftest.$ac_ext <<_ACEOF
9117     /* confdefs.h. */
9118     _ACEOF
9119     cat confdefs.h >>conftest.$ac_ext
9120     cat >>conftest.$ac_ext <<_ACEOF
9121     /* end confdefs.h. */
9122     $ac_includes_default
9123     int
9124     main ()
9125     {
9126     static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
9127     test_array [0] = 0
9128    
9129     ;
9130     return 0;
9131     }
9132     _ACEOF
9133     rm -f conftest.$ac_objext
9134     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9135     (eval $ac_compile) 2>conftest.er1
9136     ac_status=$?
9137     grep -v '^ *+' conftest.er1 >conftest.err
9138     rm -f conftest.er1
9139     cat conftest.err >&5
9140     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141     (exit $ac_status); } &&
9142 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9143 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9144     (eval $ac_try) 2>&5
9145     ac_status=$?
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
9150     (eval $ac_try) 2>&5
9151     ac_status=$?
9152     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153     (exit $ac_status); }; }; then
9154     ac_lo=$ac_mid; break
9155     else
9156     echo "$as_me: failed program was:" >&5
9157     sed 's/^/| /' conftest.$ac_ext >&5
9158    
9159     ac_hi=`expr '(' $ac_mid ')' - 1`
9160     if test $ac_mid -le $ac_hi; then
9161     ac_lo= ac_hi=
9162     break
9163     fi
9164     ac_mid=`expr 2 '*' $ac_mid`
9165     fi
9166     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9167     done
9168     else
9169     echo "$as_me: failed program was:" >&5
9170     sed 's/^/| /' conftest.$ac_ext >&5
9171 pcg 1.1
9172 pcg 1.11 ac_lo= ac_hi=
9173     fi
9174     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9175 pcg 1.1 fi
9176 pcg 1.11 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
9181     /* confdefs.h. */
9182     _ACEOF
9183     cat confdefs.h >>conftest.$ac_ext
9184     cat >>conftest.$ac_ext <<_ACEOF
9185     /* end confdefs.h. */
9186     $ac_includes_default
9187     int
9188     main ()
9189     {
9190     static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9191     test_array [0] = 0
9192 pcg 1.1
9193 pcg 1.11 ;
9194     return 0;
9195     }
9196     _ACEOF
9197     rm -f conftest.$ac_objext
9198     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9199     (eval $ac_compile) 2>conftest.er1
9200     ac_status=$?
9201     grep -v '^ *+' conftest.er1 >conftest.err
9202     rm -f conftest.er1
9203     cat conftest.err >&5
9204     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205     (exit $ac_status); } &&
9206 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9207 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9208     (eval $ac_try) 2>&5
9209     ac_status=$?
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
9214     (eval $ac_try) 2>&5
9215     ac_status=$?
9216     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217     (exit $ac_status); }; }; then
9218     ac_hi=$ac_mid
9219     else
9220     echo "$as_me: failed program was:" >&5
9221     sed 's/^/| /' conftest.$ac_ext >&5
9222 pcg 1.1
9223 pcg 1.11 ac_lo=`expr '(' $ac_mid ')' + 1`
9224     fi
9225     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9226     done
9227     case $ac_lo in
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; }; } ;;
9234     esac
9235 pcg 1.1 else
9236     if test "$cross_compiling" = yes; then
9237 pcg 1.13 { { 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 pcg 1.11 { (exit 1); exit 1; }; }
9240     else
9241     cat >conftest.$ac_ext <<_ACEOF
9242     /* confdefs.h. */
9243     _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)); }
9250 pcg 1.1 #include <stdio.h>
9251 pcg 1.11 #include <stdlib.h>
9252     int
9253     main ()
9254 pcg 1.1 {
9255 pcg 1.11
9256     FILE *f = fopen ("conftest.val", "w");
9257     if (! f)
9258     exit (1);
9259     if (((long) (sizeof (long long))) < 0)
9260     {
9261     long i = longval ();
9262     if (i != ((long) (sizeof (long long))))
9263     exit (1);
9264     fprintf (f, "%ld\n", i);
9265     }
9266     else
9267     {
9268     unsigned long i = ulongval ();
9269     if (i != ((long) (sizeof (long long))))
9270     exit (1);
9271     fprintf (f, "%lu\n", i);
9272     }
9273     exit (ferror (f) || fclose (f) != 0);
9274    
9275     ;
9276     return 0;
9277 pcg 1.1 }
9278 pcg 1.11 _ACEOF
9279     rm -f conftest$ac_exeext
9280     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9281     (eval $ac_link) 2>&5
9282     ac_status=$?
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
9286     (eval $ac_try) 2>&5
9287     ac_status=$?
9288     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289     (exit $ac_status); }; }; then
9290     ac_cv_sizeof_long_long=`cat conftest.val`
9291     else
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
9295    
9296     ( exit $ac_status )
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; }; }
9302     fi
9303     rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9304     fi
9305     fi
9306     rm -f conftest.val
9307     else
9308 pcg 1.1 ac_cv_sizeof_long_long=0
9309     fi
9310 pcg 1.11 fi
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
9315     _ACEOF
9316    
9317    
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
9322     else
9323     cat >conftest.$ac_ext <<_ACEOF
9324     /* confdefs.h. */
9325     _ACEOF
9326     cat confdefs.h >>conftest.$ac_ext
9327     cat >>conftest.$ac_ext <<_ACEOF
9328     /* end confdefs.h. */
9329     $ac_includes_default
9330     int
9331     main ()
9332     {
9333     if ((int * *) 0)
9334     return 0;
9335     if (sizeof (int *))
9336     return 0;
9337     ;
9338     return 0;
9339     }
9340     _ACEOF
9341     rm -f conftest.$ac_objext
9342     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9343     (eval $ac_compile) 2>conftest.er1
9344     ac_status=$?
9345     grep -v '^ *+' conftest.er1 >conftest.err
9346     rm -f conftest.er1
9347     cat conftest.err >&5
9348     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349     (exit $ac_status); } &&
9350 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9351 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9352     (eval $ac_try) 2>&5
9353     ac_status=$?
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
9358     (eval $ac_try) 2>&5
9359     ac_status=$?
9360     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361     (exit $ac_status); }; }; then
9362     ac_cv_type_int_p=yes
9363     else
9364     echo "$as_me: failed program was:" >&5
9365     sed 's/^/| /' conftest.$ac_ext >&5
9366    
9367     ac_cv_type_int_p=no
9368     fi
9369     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9370     fi
9371     echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
9372     echo "${ECHO_T}$ac_cv_type_int_p" >&6
9373    
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
9378     else
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
9387     /* confdefs.h. */
9388     _ACEOF
9389     cat confdefs.h >>conftest.$ac_ext
9390     cat >>conftest.$ac_ext <<_ACEOF
9391     /* end confdefs.h. */
9392     $ac_includes_default
9393     int
9394     main ()
9395     {
9396     static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
9397     test_array [0] = 0
9398    
9399     ;
9400     return 0;
9401     }
9402     _ACEOF
9403     rm -f conftest.$ac_objext
9404     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9405     (eval $ac_compile) 2>conftest.er1
9406     ac_status=$?
9407     grep -v '^ *+' conftest.er1 >conftest.err
9408     rm -f conftest.er1
9409     cat conftest.err >&5
9410     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411     (exit $ac_status); } &&
9412 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9413 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9414     (eval $ac_try) 2>&5
9415     ac_status=$?
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
9420     (eval $ac_try) 2>&5
9421     ac_status=$?
9422     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423     (exit $ac_status); }; }; then
9424     ac_lo=0 ac_mid=0
9425     while :; do
9426     cat >conftest.$ac_ext <<_ACEOF
9427     /* confdefs.h. */
9428     _ACEOF
9429     cat confdefs.h >>conftest.$ac_ext
9430     cat >>conftest.$ac_ext <<_ACEOF
9431     /* end confdefs.h. */
9432     $ac_includes_default
9433     int
9434     main ()
9435     {
9436     static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
9437     test_array [0] = 0
9438    
9439     ;
9440     return 0;
9441     }
9442     _ACEOF
9443     rm -f conftest.$ac_objext
9444     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9445     (eval $ac_compile) 2>conftest.er1
9446     ac_status=$?
9447     grep -v '^ *+' conftest.er1 >conftest.err
9448     rm -f conftest.er1
9449     cat conftest.err >&5
9450     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451     (exit $ac_status); } &&
9452 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9453 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9454     (eval $ac_try) 2>&5
9455     ac_status=$?
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
9460     (eval $ac_try) 2>&5
9461     ac_status=$?
9462     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463     (exit $ac_status); }; }; then
9464     ac_hi=$ac_mid; break
9465     else
9466     echo "$as_me: failed program was:" >&5
9467     sed 's/^/| /' conftest.$ac_ext >&5
9468    
9469     ac_lo=`expr $ac_mid + 1`
9470     if test $ac_lo -le $ac_mid; then
9471     ac_lo= ac_hi=
9472     break
9473     fi
9474     ac_mid=`expr 2 '*' $ac_mid + 1`
9475     fi
9476     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9477     done
9478     else
9479     echo "$as_me: failed program was:" >&5
9480     sed 's/^/| /' conftest.$ac_ext >&5
9481    
9482     cat >conftest.$ac_ext <<_ACEOF
9483     /* confdefs.h. */
9484     _ACEOF
9485     cat confdefs.h >>conftest.$ac_ext
9486     cat >>conftest.$ac_ext <<_ACEOF
9487     /* end confdefs.h. */
9488     $ac_includes_default
9489     int
9490     main ()
9491     {
9492     static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
9493     test_array [0] = 0
9494    
9495     ;
9496     return 0;
9497     }
9498     _ACEOF
9499     rm -f conftest.$ac_objext
9500     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9501     (eval $ac_compile) 2>conftest.er1
9502     ac_status=$?
9503     grep -v '^ *+' conftest.er1 >conftest.err
9504     rm -f conftest.er1
9505     cat conftest.err >&5
9506     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507     (exit $ac_status); } &&
9508 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9509 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9510     (eval $ac_try) 2>&5
9511     ac_status=$?
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
9516     (eval $ac_try) 2>&5
9517     ac_status=$?
9518     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519     (exit $ac_status); }; }; then
9520     ac_hi=-1 ac_mid=-1
9521     while :; do
9522     cat >conftest.$ac_ext <<_ACEOF
9523     /* confdefs.h. */
9524     _ACEOF
9525     cat confdefs.h >>conftest.$ac_ext
9526     cat >>conftest.$ac_ext <<_ACEOF
9527     /* end confdefs.h. */
9528     $ac_includes_default
9529     int
9530     main ()
9531     {
9532     static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
9533     test_array [0] = 0
9534    
9535     ;
9536     return 0;
9537     }
9538     _ACEOF
9539     rm -f conftest.$ac_objext
9540     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9541     (eval $ac_compile) 2>conftest.er1
9542     ac_status=$?
9543     grep -v '^ *+' conftest.er1 >conftest.err
9544     rm -f conftest.er1
9545     cat conftest.err >&5
9546     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547     (exit $ac_status); } &&
9548 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9549 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9550     (eval $ac_try) 2>&5
9551     ac_status=$?
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
9556     (eval $ac_try) 2>&5
9557     ac_status=$?
9558     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559     (exit $ac_status); }; }; then
9560     ac_lo=$ac_mid; break
9561     else
9562     echo "$as_me: failed program was:" >&5
9563     sed 's/^/| /' conftest.$ac_ext >&5
9564    
9565     ac_hi=`expr '(' $ac_mid ')' - 1`
9566     if test $ac_mid -le $ac_hi; then
9567     ac_lo= ac_hi=
9568     break
9569     fi
9570     ac_mid=`expr 2 '*' $ac_mid`
9571     fi
9572     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9573     done
9574     else
9575     echo "$as_me: failed program was:" >&5
9576     sed 's/^/| /' conftest.$ac_ext >&5
9577    
9578     ac_lo= ac_hi=
9579     fi
9580     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9581     fi
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
9587     /* confdefs.h. */
9588     _ACEOF
9589     cat confdefs.h >>conftest.$ac_ext
9590     cat >>conftest.$ac_ext <<_ACEOF
9591     /* end confdefs.h. */
9592     $ac_includes_default
9593     int
9594     main ()
9595     {
9596     static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
9597     test_array [0] = 0
9598    
9599     ;
9600     return 0;
9601     }
9602     _ACEOF
9603     rm -f conftest.$ac_objext
9604     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9605     (eval $ac_compile) 2>conftest.er1
9606     ac_status=$?
9607     grep -v '^ *+' conftest.er1 >conftest.err
9608     rm -f conftest.er1
9609     cat conftest.err >&5
9610     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611     (exit $ac_status); } &&
9612 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9613 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9614     (eval $ac_try) 2>&5
9615     ac_status=$?
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
9620     (eval $ac_try) 2>&5
9621     ac_status=$?
9622     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623     (exit $ac_status); }; }; then
9624     ac_hi=$ac_mid
9625     else
9626     echo "$as_me: failed program was:" >&5
9627     sed 's/^/| /' conftest.$ac_ext >&5
9628 pcg 1.1
9629 pcg 1.11 ac_lo=`expr '(' $ac_mid ')' + 1`
9630 pcg 1.1 fi
9631 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9632     done
9633     case $ac_lo in
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; }; } ;;
9640     esac
9641 pcg 1.1 else
9642     if test "$cross_compiling" = yes; then
9643 pcg 1.13 { { 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 pcg 1.11 { (exit 1); exit 1; }; }
9646     else
9647     cat >conftest.$ac_ext <<_ACEOF
9648     /* confdefs.h. */
9649     _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 *)); }
9656 pcg 1.1 #include <stdio.h>
9657 pcg 1.11 #include <stdlib.h>
9658     int
9659     main ()
9660 pcg 1.1 {
9661 pcg 1.11
9662     FILE *f = fopen ("conftest.val", "w");
9663     if (! f)
9664     exit (1);
9665     if (((long) (sizeof (int *))) < 0)
9666     {
9667     long i = longval ();
9668     if (i != ((long) (sizeof (int *))))
9669     exit (1);
9670     fprintf (f, "%ld\n", i);
9671     }
9672     else
9673     {
9674     unsigned long i = ulongval ();
9675     if (i != ((long) (sizeof (int *))))
9676     exit (1);
9677     fprintf (f, "%lu\n", i);
9678     }
9679     exit (ferror (f) || fclose (f) != 0);
9680    
9681     ;
9682     return 0;
9683 pcg 1.1 }
9684 pcg 1.11 _ACEOF
9685     rm -f conftest$ac_exeext
9686     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9687     (eval $ac_link) 2>&5
9688     ac_status=$?
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
9692     (eval $ac_try) 2>&5
9693     ac_status=$?
9694     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695     (exit $ac_status); }; }; then
9696     ac_cv_sizeof_int_p=`cat conftest.val`
9697     else
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
9701    
9702     ( exit $ac_status )
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; }; }
9708     fi
9709     rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9710     fi
9711     fi
9712     rm -f conftest.val
9713     else
9714 pcg 1.1 ac_cv_sizeof_int_p=0
9715     fi
9716     fi
9717 pcg 1.11 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 pcg 1.1 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
9721 pcg 1.11 _ACEOF
9722 pcg 1.1
9723    
9724    
9725    
9726 pcg 1.11 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
9730 pcg 1.1 else
9731 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
9732     /* confdefs.h. */
9733     _ACEOF
9734     cat confdefs.h >>conftest.$ac_ext
9735     cat >>conftest.$ac_ext <<_ACEOF
9736     /* end confdefs.h. */
9737 pcg 1.1 #include <stdint.h>
9738 pcg 1.11 int
9739     main ()
9740     {
9741 pcg 1.1 int16_t dummy;
9742 pcg 1.11 ;
9743     return 0;
9744     }
9745     _ACEOF
9746     rm -f conftest.$ac_objext
9747     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9748     (eval $ac_compile) 2>conftest.er1
9749     ac_status=$?
9750     grep -v '^ *+' conftest.er1 >conftest.err
9751     rm -f conftest.er1
9752     cat conftest.err >&5
9753     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754     (exit $ac_status); } &&
9755 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9756 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9757     (eval $ac_try) 2>&5
9758     ac_status=$?
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
9763     (eval $ac_try) 2>&5
9764     ac_status=$?
9765     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766     (exit $ac_status); }; }; then
9767 pcg 1.1 rxvt_cv_int16_t=yes
9768     else
9769 pcg 1.11 echo "$as_me: failed program was:" >&5
9770     sed 's/^/| /' conftest.$ac_ext >&5
9771    
9772 root 1.50 if test "$ac_cv_sizeof_char" -ge 2; then
9773 pcg 1.1 rxvt_cv_int16_t=" char"
9774     else
9775 root 1.50 if test "$ac_cv_sizeof_short" -ge 2; then
9776 pcg 1.1 rxvt_cv_int16_t=" short"
9777     else
9778 root 1.50 if test "$ac_cv_sizeof_int" -ge 2; then
9779 pcg 1.1 rxvt_cv_int16_t=" int"
9780     else
9781 root 1.50 if test "$ac_cv_sizeof_long" -ge 2; then
9782 pcg 1.1 rxvt_cv_int16_t=" long"
9783     else
9784 root 1.50 if test "$ac_cv_sizeof_long_long" -ge 2; then
9785 pcg 1.1 rxvt_cv_int16_t=" long long"
9786     else
9787     rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
9788     fi
9789     fi
9790     fi
9791     fi
9792     fi
9793     fi
9794 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9795 pcg 1.1 fi
9796 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5
9797     echo "${ECHO_T}$rxvt_cv_int16_t" >&6
9798 pcg 1.1 if test x"$rxvt_cv_int16_t" != xyes; then
9799     rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;"
9800     else
9801     if test x"" = x; then
9802     rxvt_int16_typedef="/* typedef short int16_t; */"
9803     else
9804     rxvt_int16_typedef="/* typedef short int16_t; */"
9805     fi
9806 pcg 1.11 fi
9807 pcg 1.1
9808 pcg 1.11 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
9812     else
9813     cat >conftest.$ac_ext <<_ACEOF
9814     /* confdefs.h. */
9815     _ACEOF
9816     cat confdefs.h >>conftest.$ac_ext
9817     cat >>conftest.$ac_ext <<_ACEOF
9818     /* end confdefs.h. */
9819 pcg 1.1 #include <stdint.h>
9820 pcg 1.11 int
9821     main ()
9822     {
9823 pcg 1.1 uint16_t dummy;
9824 pcg 1.11 ;
9825     return 0;
9826     }
9827     _ACEOF
9828     rm -f conftest.$ac_objext
9829     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9830     (eval $ac_compile) 2>conftest.er1
9831     ac_status=$?
9832     grep -v '^ *+' conftest.er1 >conftest.err
9833     rm -f conftest.er1
9834     cat conftest.err >&5
9835     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836     (exit $ac_status); } &&
9837 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9838 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9839     (eval $ac_try) 2>&5
9840     ac_status=$?
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
9845     (eval $ac_try) 2>&5
9846     ac_status=$?
9847     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848     (exit $ac_status); }; }; then
9849 pcg 1.1 rxvt_cv_uint16_t=yes
9850     else
9851 pcg 1.11 echo "$as_me: failed program was:" >&5
9852     sed 's/^/| /' conftest.$ac_ext >&5
9853    
9854 root 1.50 if test "$ac_cv_sizeof_char" -ge 2; then
9855 pcg 1.1 rxvt_cv_uint16_t="unsigned char"
9856     else
9857 root 1.50 if test "$ac_cv_sizeof_short" -ge 2; then
9858 pcg 1.1 rxvt_cv_uint16_t="unsigned short"
9859     else
9860 root 1.50 if test "$ac_cv_sizeof_int" -ge 2; then
9861 pcg 1.1 rxvt_cv_uint16_t="unsigned int"
9862     else
9863 root 1.50 if test "$ac_cv_sizeof_long" -ge 2; then
9864 pcg 1.1 rxvt_cv_uint16_t="unsigned long"
9865     else
9866 root 1.50 if test "$ac_cv_sizeof_long_long" -ge 2; then
9867 pcg 1.1 rxvt_cv_uint16_t="unsigned long long"
9868     else
9869     rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default
9870     fi
9871     fi
9872     fi
9873     fi
9874     fi
9875     fi
9876 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9877 pcg 1.1 fi
9878 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5
9879     echo "${ECHO_T}$rxvt_cv_uint16_t" >&6
9880 pcg 1.1 if test x"$rxvt_cv_uint16_t" != xyes; then
9881     rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;"
9882     else
9883     if test x"unsigned" = x; then
9884     rxvt_uint16_typedef="/* typedef short uint16_t; */"
9885     else
9886     rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */"
9887     fi
9888 pcg 1.11 fi
9889 pcg 1.1
9890 pcg 1.11 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
9894     else
9895     cat >conftest.$ac_ext <<_ACEOF
9896     /* confdefs.h. */
9897     _ACEOF
9898     cat confdefs.h >>conftest.$ac_ext
9899     cat >>conftest.$ac_ext <<_ACEOF
9900     /* end confdefs.h. */
9901 pcg 1.1 #include <stdint.h>
9902 pcg 1.11 int
9903     main ()
9904     {
9905 pcg 1.1 int32_t dummy;
9906 pcg 1.11 ;
9907     return 0;
9908     }
9909     _ACEOF
9910     rm -f conftest.$ac_objext
9911     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9912     (eval $ac_compile) 2>conftest.er1
9913     ac_status=$?
9914     grep -v '^ *+' conftest.er1 >conftest.err
9915     rm -f conftest.er1
9916     cat conftest.err >&5
9917     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918     (exit $ac_status); } &&
9919 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9920 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9921     (eval $ac_try) 2>&5
9922     ac_status=$?
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
9927     (eval $ac_try) 2>&5
9928     ac_status=$?
9929     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930     (exit $ac_status); }; }; then
9931 pcg 1.1 rxvt_cv_int32_t=yes
9932     else
9933 pcg 1.11 echo "$as_me: failed program was:" >&5
9934     sed 's/^/| /' conftest.$ac_ext >&5
9935    
9936 root 1.50 if test "$ac_cv_sizeof_char" -ge 4; then
9937 pcg 1.1 rxvt_cv_int32_t=" char"
9938     else
9939 root 1.50 if test "$ac_cv_sizeof_short" -ge 4; then
9940 pcg 1.1 rxvt_cv_int32_t=" short"
9941     else
9942 root 1.50 if test "$ac_cv_sizeof_int" -ge 4; then
9943 pcg 1.1 rxvt_cv_int32_t=" int"
9944     else
9945 root 1.50 if test "$ac_cv_sizeof_long" -ge 4; then
9946 pcg 1.1 rxvt_cv_int32_t=" long"
9947     else
9948 root 1.50 if test "$ac_cv_sizeof_long_long" -ge 4; then
9949 pcg 1.1 rxvt_cv_int32_t=" long long"
9950     else
9951     rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
9952     fi
9953     fi
9954     fi
9955     fi
9956     fi
9957     fi
9958 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9959 pcg 1.1 fi
9960 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5
9961     echo "${ECHO_T}$rxvt_cv_int32_t" >&6
9962 pcg 1.1 if test x"$rxvt_cv_int32_t" != xyes; then
9963     rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;"
9964     else
9965     if test x"" = x; then
9966     rxvt_int32_typedef="/* typedef int int32_t; */"
9967     else
9968     rxvt_int32_typedef="/* typedef int int32_t; */"
9969     fi
9970 pcg 1.11 fi
9971 pcg 1.1
9972 pcg 1.11 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
9976     else
9977     cat >conftest.$ac_ext <<_ACEOF
9978     /* confdefs.h. */
9979     _ACEOF
9980     cat confdefs.h >>conftest.$ac_ext
9981     cat >>conftest.$ac_ext <<_ACEOF
9982     /* end confdefs.h. */
9983 pcg 1.1 #include <stdint.h>
9984 pcg 1.11 int
9985     main ()
9986     {
9987 pcg 1.1 uint32_t dummy;
9988 pcg 1.11 ;
9989     return 0;
9990     }
9991     _ACEOF
9992     rm -f conftest.$ac_objext
9993     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9994     (eval $ac_compile) 2>conftest.er1
9995     ac_status=$?
9996     grep -v '^ *+' conftest.er1 >conftest.err
9997     rm -f conftest.er1
9998     cat conftest.err >&5
9999     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000     (exit $ac_status); } &&
10001 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10002 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10003     (eval $ac_try) 2>&5
10004     ac_status=$?
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
10010     ac_status=$?
10011     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012     (exit $ac_status); }; }; then
10013 pcg 1.1 rxvt_cv_uint32_t=yes
10014     else
10015 pcg 1.11 echo "$as_me: failed program was:" >&5
10016     sed 's/^/| /' conftest.$ac_ext >&5
10017    
10018 root 1.50 if test "$ac_cv_sizeof_char" -ge 4; then
10019 pcg 1.1 rxvt_cv_uint32_t="unsigned char"
10020     else
10021 root 1.50 if test "$ac_cv_sizeof_short" -ge 4; then
10022 pcg 1.1 rxvt_cv_uint32_t="unsigned short"
10023     else
10024 root 1.50 if test "$ac_cv_sizeof_int" -ge 4; then
10025 pcg 1.1 rxvt_cv_uint32_t="unsigned int"
10026     else
10027 root 1.50 if test "$ac_cv_sizeof_long" -ge 4; then
10028 pcg 1.1 rxvt_cv_uint32_t="unsigned long"
10029     else
10030 root 1.50 if test "$ac_cv_sizeof_long_long" -ge 4; then
10031 pcg 1.1 rxvt_cv_uint32_t="unsigned long long"
10032     else
10033     rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default
10034     fi
10035     fi
10036     fi
10037     fi
10038     fi
10039     fi
10040 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10041 pcg 1.1 fi
10042 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5
10043     echo "${ECHO_T}$rxvt_cv_uint32_t" >&6
10044 pcg 1.1 if test x"$rxvt_cv_uint32_t" != xyes; then
10045     rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;"
10046     else
10047     if test x"unsigned" = x; then
10048     rxvt_uint32_typedef="/* typedef int uint32_t; */"
10049     else
10050     rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
10051     fi
10052 pcg 1.11 fi
10053 pcg 1.1
10054 root 1.50 if test "$ac_cv_sizeof_int_p" -eq 8; then
10055 pcg 1.1 rxvt_intp_define="#define intp_t int64_t"
10056     rxvt_u_intp_define="#define u_intp_t u_int64_t"
10057     else
10058 root 1.50 if test "$ac_cv_sizeof_int_p" -eq 4; then
10059 pcg 1.1 rxvt_intp_define="#define intp_t int32_t"
10060     rxvt_u_intp_define="#define u_intp_t u_int32_t"
10061     else
10062 root 1.50 if test "$ac_cv_sizeof_int_p" -eq 2; then
10063 pcg 1.1 rxvt_intp_define="#define intp_t int16_t"
10064     rxvt_u_intp_define="#define u_intp_t u_int16_t"
10065     else
10066     rxvt_intp_define="#error set intp_t"
10067     rxvt_u_intp_define="#error set u_intp_t"
10068     fi
10069     fi
10070     fi
10071    
10072    
10073    
10074 pcg 1.11 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
10078     else
10079     cat >conftest.$ac_ext <<_ACEOF
10080     /* confdefs.h. */
10081     _ACEOF
10082     cat confdefs.h >>conftest.$ac_ext
10083     cat >>conftest.$ac_ext <<_ACEOF
10084     /* end confdefs.h. */
10085 pcg 1.1 #include <sys/types.h>
10086     #include <signal.h>
10087     #ifdef signal
10088 pcg 1.11 # undef signal
10089 pcg 1.1 #endif
10090     #ifdef __cplusplus
10091     extern "C" void (*signal (int, void (*)(int)))(int);
10092     #else
10093     void (*signal ()) ();
10094     #endif
10095    
10096 pcg 1.11 int
10097     main ()
10098     {
10099 pcg 1.1 int i;
10100 pcg 1.11 ;
10101     return 0;
10102     }
10103     _ACEOF
10104     rm -f conftest.$ac_objext
10105     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10106     (eval $ac_compile) 2>conftest.er1
10107     ac_status=$?
10108     grep -v '^ *+' conftest.er1 >conftest.err
10109     rm -f conftest.er1
10110     cat conftest.err >&5
10111     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112     (exit $ac_status); } &&
10113 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10114 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10115     (eval $ac_try) 2>&5
10116     ac_status=$?
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
10122     ac_status=$?
10123     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124     (exit $ac_status); }; }; then
10125 pcg 1.1 ac_cv_type_signal=void
10126     else
10127 pcg 1.11 echo "$as_me: failed program was:" >&5
10128     sed 's/^/| /' conftest.$ac_ext >&5
10129    
10130     ac_cv_type_signal=int
10131 pcg 1.1 fi
10132 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10133 pcg 1.1 fi
10134 pcg 1.11 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10135     echo "${ECHO_T}$ac_cv_type_signal" >&6
10136 pcg 1.1
10137 pcg 1.11 cat >>confdefs.h <<_ACEOF
10138 pcg 1.1 #define RETSIGTYPE $ac_cv_type_signal
10139 pcg 1.11 _ACEOF
10140 pcg 1.1
10141    
10142    
10143     case "$host_alias" in
10144     *ultrix) ac_cv_func_setsid='no' ;;
10145     *) break;;
10146     esac
10147    
10148 pcg 1.11
10149    
10150    
10151    
10152    
10153    
10154    
10155    
10156    
10157    
10158    
10159    
10160    
10161    
10162    
10163    
10164    
10165    
10166 root 1.67
10167 pcg 1.1 for ac_func in \
10168     atexit \
10169     revoke \
10170     unsetenv \
10171     setutent \
10172     seteuid \
10173     setreuid \
10174     setsid \
10175     setpgrp \
10176     setpgid \
10177     _getpty \
10178 root 1.67 posix_openpt \
10179 pcg 1.1 grantpt \
10180     unlockpt \
10181     isastream \
10182     on_exit \
10183     nanosleep \
10184     updwtmp \
10185 root 1.52 updwtmpx \
10186 pcg 1.1 ttyslot \
10187    
10188     do
10189 pcg 1.11 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
10194     else
10195     cat >conftest.$ac_ext <<_ACEOF
10196     /* confdefs.h. */
10197     _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
10204    
10205 pcg 1.1 /* System header to define __stub macros and hopefully few prototypes,
10206 pcg 1.11 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. */
10209    
10210     #ifdef __STDC__
10211     # include <limits.h>
10212     #else
10213     # include <assert.h>
10214     #endif
10215    
10216     #undef $ac_func
10217    
10218 pcg 1.1 /* Override any gcc2 internal prototype to avoid an error. */
10219 pcg 1.11 #ifdef __cplusplus
10220     extern "C"
10221     {
10222     #endif
10223 pcg 1.1 /* We use char because int might match the return type of a gcc2
10224 pcg 1.11 builtin and then its argument prototype would still apply. */
10225     char $ac_func ();
10226 pcg 1.1 /* 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)
10230     choke me
10231     #else
10232 pcg 1.11 char (*f) () = $ac_func;
10233     #endif
10234     #ifdef __cplusplus
10235     }
10236 pcg 1.1 #endif
10237    
10238 pcg 1.11 int
10239     main ()
10240     {
10241     return f != $ac_func;
10242     ;
10243     return 0;
10244     }
10245     _ACEOF
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
10249     ac_status=$?
10250     grep -v '^ *+' conftest.er1 >conftest.err
10251     rm -f conftest.er1
10252     cat conftest.err >&5
10253     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254     (exit $ac_status); } &&
10255 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10256 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10257     (eval $ac_try) 2>&5
10258     ac_status=$?
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
10264     ac_status=$?
10265     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266     (exit $ac_status); }; }; then
10267     eval "$as_ac_var=yes"
10268     else
10269     echo "$as_me: failed program was:" >&5
10270     sed 's/^/| /' conftest.$ac_ext >&5
10271    
10272     eval "$as_ac_var=no"
10273     fi
10274     rm -f conftest.err conftest.$ac_objext \
10275     conftest$ac_exeext conftest.$ac_ext
10276     fi
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
10282     _ACEOF
10283 pcg 1.1
10284     fi
10285     done
10286    
10287    
10288    
10289 pcg 1.11 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
10294     fi
10295     echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
10296     echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
10297     else
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
10302     /* confdefs.h. */
10303     _ACEOF
10304     cat confdefs.h >>conftest.$ac_ext
10305     cat >>conftest.$ac_ext <<_ACEOF
10306     /* end confdefs.h. */
10307     $ac_includes_default
10308     #include <utmp.h>
10309     _ACEOF
10310     rm -f conftest.$ac_objext
10311     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10312     (eval $ac_compile) 2>conftest.er1
10313     ac_status=$?
10314     grep -v '^ *+' conftest.er1 >conftest.err
10315     rm -f conftest.er1
10316     cat conftest.err >&5
10317     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318     (exit $ac_status); } &&
10319 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10320 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10321     (eval $ac_try) 2>&5
10322     ac_status=$?
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
10328     ac_status=$?
10329     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330     (exit $ac_status); }; }; then
10331     ac_header_compiler=yes
10332     else
10333     echo "$as_me: failed program was:" >&5
10334     sed 's/^/| /' conftest.$ac_ext >&5
10335    
10336     ac_header_compiler=no
10337     fi
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
10341    
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
10346     /* confdefs.h. */
10347     _ACEOF
10348     cat confdefs.h >>conftest.$ac_ext
10349     cat >>conftest.$ac_ext <<_ACEOF
10350     /* end confdefs.h. */
10351 pcg 1.1 #include <utmp.h>
10352 pcg 1.11 _ACEOF
10353     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10354     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10355     ac_status=$?
10356     grep -v '^ *+' conftest.er1 >conftest.err
10357     rm -f conftest.er1
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 pcg 1.13 ac_cpp_err=$ac_cxx_preproc_warn_flag
10363     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10364 pcg 1.11 else
10365     ac_cpp_err=
10366     fi
10367 pcg 1.1 else
10368 pcg 1.11 ac_cpp_err=yes
10369 pcg 1.1 fi
10370 pcg 1.11 if test -z "$ac_cpp_err"; then
10371     ac_header_preproc=yes
10372     else
10373     echo "$as_me: failed program was:" >&5
10374     sed 's/^/| /' conftest.$ac_ext >&5
10375    
10376     ac_header_preproc=no
10377 pcg 1.1 fi
10378 pcg 1.11 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
10381    
10382     # So? What about this header?
10383 pcg 1.13 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10384 pcg 1.11 yes:no: )
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
10390     ;;
10391     no: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;}
10404     (
10405     cat <<\_ASBOX
10406     ## ------------------------------------------ ##
10407     ## Report this to the AC_PACKAGE_NAME lists. ##
10408     ## ------------------------------------------ ##
10409     _ASBOX
10410     ) |
10411     sed "s/^/$as_me: WARNING: /" >&2
10412     ;;
10413     esac
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
10418     else
10419     ac_cv_header_utmp_h=$ac_header_preproc
10420     fi
10421     echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
10422     echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
10423    
10424     fi
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
10430     else
10431     cat >conftest.$ac_ext <<_ACEOF
10432     /* confdefs.h. */
10433     _ACEOF
10434     cat confdefs.h >>conftest.$ac_ext
10435     cat >>conftest.$ac_ext <<_ACEOF
10436     /* end confdefs.h. */
10437 pcg 1.1 #include <sys/types.h>
10438     #include <stdint.h>
10439     #include <utmp.h>
10440 pcg 1.11 int
10441     main ()
10442     {
10443 pcg 1.1 struct utmp ut;
10444 pcg 1.11 ;
10445     return 0;
10446     }
10447     _ACEOF
10448     rm -f conftest.$ac_objext
10449     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10450     (eval $ac_compile) 2>conftest.er1
10451     ac_status=$?
10452     grep -v '^ *+' conftest.er1 >conftest.err
10453     rm -f conftest.er1
10454     cat conftest.err >&5
10455     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456     (exit $ac_status); } &&
10457 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10458 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10459     (eval $ac_try) 2>&5
10460     ac_status=$?
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
10466     ac_status=$?
10467     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468     (exit $ac_status); }; }; then
10469 pcg 1.1 rxvt_cv_struct_utmp=yes
10470     else
10471 pcg 1.11 echo "$as_me: failed program was:" >&5
10472     sed 's/^/| /' conftest.$ac_ext >&5
10473    
10474     rxvt_cv_struct_utmp=no
10475 pcg 1.1 fi
10476 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10477 pcg 1.1 fi
10478 pcg 1.11 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
10481 pcg 1.1
10482 pcg 1.11 cat >>confdefs.h <<\_ACEOF
10483 pcg 1.1 #define HAVE_STRUCT_UTMP 1
10484 pcg 1.11 _ACEOF
10485 pcg 1.1
10486     fi
10487    
10488    
10489 pcg 1.11 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
10493 pcg 1.1 else
10494 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
10495     /* confdefs.h. */
10496     _ACEOF
10497     cat confdefs.h >>conftest.$ac_ext
10498     cat >>conftest.$ac_ext <<_ACEOF
10499     /* end confdefs.h. */
10500 pcg 1.1 #include <sys/types.h>
10501     #include <utmp.h>
10502 pcg 1.11 int
10503     main ()
10504     {
10505 pcg 1.1 struct utmp ut; ut.ut_host;
10506 pcg 1.11 ;
10507     return 0;
10508     }
10509     _ACEOF
10510     rm -f conftest.$ac_objext
10511     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10512     (eval $ac_compile) 2>conftest.er1
10513     ac_status=$?
10514     grep -v '^ *+' conftest.er1 >conftest.err
10515     rm -f conftest.er1
10516     cat conftest.err >&5
10517     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518     (exit $ac_status); } &&
10519 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10520 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10521     (eval $ac_try) 2>&5
10522     ac_status=$?
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
10528     ac_status=$?
10529     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530     (exit $ac_status); }; }; then
10531 pcg 1.1 rxvt_cv_struct_utmp_host=yes
10532     else
10533 pcg 1.11 echo "$as_me: failed program was:" >&5
10534     sed 's/^/| /' conftest.$ac_ext >&5
10535    
10536     rxvt_cv_struct_utmp_host=no
10537 pcg 1.1 fi
10538 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10539 pcg 1.1 fi
10540 pcg 1.11 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
10543 pcg 1.1
10544 pcg 1.11 cat >>confdefs.h <<\_ACEOF
10545 pcg 1.1 #define HAVE_UTMP_HOST 1
10546 pcg 1.11 _ACEOF
10547 pcg 1.1
10548     fi
10549    
10550 pcg 1.11 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
10554 pcg 1.1 else
10555 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
10556     /* confdefs.h. */
10557     _ACEOF
10558     cat confdefs.h >>conftest.$ac_ext
10559     cat >>conftest.$ac_ext <<_ACEOF
10560     /* end confdefs.h. */
10561 pcg 1.1 #include <sys/types.h>
10562     #include <utmp.h>
10563 pcg 1.11 int
10564     main ()
10565     {
10566 pcg 1.1 struct utmp ut; ut.ut_pid;
10567 pcg 1.11 ;
10568     return 0;
10569     }
10570     _ACEOF
10571     rm -f conftest.$ac_objext
10572     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10573     (eval $ac_compile) 2>conftest.er1
10574     ac_status=$?
10575     grep -v '^ *+' conftest.er1 >conftest.err
10576     rm -f conftest.er1
10577     cat conftest.err >&5
10578     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579     (exit $ac_status); } &&
10580 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10581 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10582     (eval $ac_try) 2>&5
10583     ac_status=$?
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
10589     ac_status=$?
10590     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591     (exit $ac_status); }; }; then
10592 pcg 1.1 rxvt_cv_struct_utmp_pid=yes
10593     else
10594 pcg 1.11 echo "$as_me: failed program was:" >&5
10595     sed 's/^/| /' conftest.$ac_ext >&5
10596    
10597     rxvt_cv_struct_utmp_pid=no
10598 pcg 1.1 fi
10599 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10600 pcg 1.1 fi
10601 pcg 1.11 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
10604 pcg 1.1
10605 pcg 1.11 cat >>confdefs.h <<\_ACEOF
10606 pcg 1.1 #define HAVE_UTMP_PID 1
10607 pcg 1.11 _ACEOF
10608 pcg 1.1
10609     fi
10610    
10611     fi
10612    
10613 pcg 1.11
10614    
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
10620     fi
10621     echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
10622     echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
10623 pcg 1.1 else
10624 pcg 1.11 # 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
10628     /* confdefs.h. */
10629     _ACEOF
10630     cat confdefs.h >>conftest.$ac_ext
10631     cat >>conftest.$ac_ext <<_ACEOF
10632     /* end confdefs.h. */
10633     $ac_includes_default
10634     #include <utmpx.h>
10635     _ACEOF
10636     rm -f conftest.$ac_objext
10637     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10638     (eval $ac_compile) 2>conftest.er1
10639     ac_status=$?
10640     grep -v '^ *+' conftest.er1 >conftest.err
10641     rm -f conftest.er1
10642     cat conftest.err >&5
10643     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644     (exit $ac_status); } &&
10645 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10646 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10647     (eval $ac_try) 2>&5
10648     ac_status=$?
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
10654     ac_status=$?
10655     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656     (exit $ac_status); }; }; then
10657     ac_header_compiler=yes
10658     else
10659     echo "$as_me: failed program was:" >&5
10660     sed 's/^/| /' conftest.$ac_ext >&5
10661    
10662     ac_header_compiler=no
10663     fi
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
10667    
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
10672     /* confdefs.h. */
10673     _ACEOF
10674     cat confdefs.h >>conftest.$ac_ext
10675     cat >>conftest.$ac_ext <<_ACEOF
10676     /* end confdefs.h. */
10677 pcg 1.1 #include <utmpx.h>
10678 pcg 1.11 _ACEOF
10679     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10680     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10681     ac_status=$?
10682     grep -v '^ *+' conftest.er1 >conftest.err
10683     rm -f conftest.er1
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 pcg 1.13 ac_cpp_err=$ac_cxx_preproc_warn_flag
10689     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10690 pcg 1.11 else
10691     ac_cpp_err=
10692     fi
10693 pcg 1.1 else
10694 pcg 1.11 ac_cpp_err=yes
10695 pcg 1.1 fi
10696 pcg 1.11 if test -z "$ac_cpp_err"; then
10697     ac_header_preproc=yes
10698     else
10699     echo "$as_me: failed program was:" >&5
10700     sed 's/^/| /' conftest.$ac_ext >&5
10701    
10702     ac_header_preproc=no
10703 pcg 1.1 fi
10704 pcg 1.11 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
10707    
10708     # So? What about this header?
10709 pcg 1.13 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10710 pcg 1.11 yes:no: )
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
10716     ;;
10717     no: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;}
10730     (
10731     cat <<\_ASBOX
10732     ## ------------------------------------------ ##
10733     ## Report this to the AC_PACKAGE_NAME lists. ##
10734     ## ------------------------------------------ ##
10735     _ASBOX
10736     ) |
10737     sed "s/^/$as_me: WARNING: /" >&2
10738     ;;
10739     esac
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
10744     else
10745     ac_cv_header_utmpx_h=$ac_header_preproc
10746     fi
10747     echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
10748     echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
10749    
10750     fi
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
10756     else
10757     cat >conftest.$ac_ext <<_ACEOF
10758     /* confdefs.h. */
10759     _ACEOF
10760     cat confdefs.h >>conftest.$ac_ext
10761     cat >>conftest.$ac_ext <<_ACEOF
10762     /* end confdefs.h. */
10763 pcg 1.1 #include <sys/types.h>
10764     #include <utmpx.h>
10765 pcg 1.11 int
10766     main ()
10767     {
10768 pcg 1.1 struct utmpx ut;
10769 pcg 1.11 ;
10770     return 0;
10771     }
10772     _ACEOF
10773     rm -f conftest.$ac_objext
10774     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10775     (eval $ac_compile) 2>conftest.er1
10776     ac_status=$?
10777     grep -v '^ *+' conftest.er1 >conftest.err
10778     rm -f conftest.er1
10779     cat conftest.err >&5
10780     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781     (exit $ac_status); } &&
10782 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10783 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10784     (eval $ac_try) 2>&5
10785     ac_status=$?
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
10791     ac_status=$?
10792     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793     (exit $ac_status); }; }; then
10794 pcg 1.1 rxvt_cv_struct_utmpx=yes
10795     else
10796 pcg 1.11 echo "$as_me: failed program was:" >&5
10797     sed 's/^/| /' conftest.$ac_ext >&5
10798    
10799     rxvt_cv_struct_utmpx=no
10800 pcg 1.1 fi
10801 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10802 pcg 1.1 fi
10803 pcg 1.11 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
10806 pcg 1.1
10807 pcg 1.11 cat >>confdefs.h <<\_ACEOF
10808 pcg 1.1 #define HAVE_STRUCT_UTMPX 1
10809 pcg 1.11 _ACEOF
10810 pcg 1.1
10811     fi
10812    
10813    
10814 pcg 1.11 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
10818 pcg 1.1 else
10819 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
10820     /* confdefs.h. */
10821     _ACEOF
10822     cat confdefs.h >>conftest.$ac_ext
10823     cat >>conftest.$ac_ext <<_ACEOF
10824     /* end confdefs.h. */
10825 pcg 1.1 #include <sys/types.h>
10826     #include <utmpx.h>
10827 pcg 1.11 int
10828     main ()
10829     {
10830 pcg 1.1 struct utmpx utx; utx.ut_host;
10831 pcg 1.11 ;
10832     return 0;
10833     }
10834     _ACEOF
10835     rm -f conftest.$ac_objext
10836     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10837     (eval $ac_compile) 2>conftest.er1
10838     ac_status=$?
10839     grep -v '^ *+' conftest.er1 >conftest.err
10840     rm -f conftest.er1
10841     cat conftest.err >&5
10842     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843     (exit $ac_status); } &&
10844 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10845 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10846     (eval $ac_try) 2>&5
10847     ac_status=$?
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
10853     ac_status=$?
10854     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855     (exit $ac_status); }; }; then
10856 pcg 1.1 rxvt_cv_struct_utmpx_host=yes
10857     else
10858 pcg 1.11 echo "$as_me: failed program was:" >&5
10859     sed 's/^/| /' conftest.$ac_ext >&5
10860    
10861     rxvt_cv_struct_utmpx_host=no
10862 pcg 1.1 fi
10863 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10864 pcg 1.1 fi
10865 pcg 1.11 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
10868 pcg 1.1
10869 pcg 1.11 cat >>confdefs.h <<\_ACEOF
10870 pcg 1.1 #define HAVE_UTMPX_HOST 1
10871 pcg 1.11 _ACEOF
10872 pcg 1.1
10873     fi
10874    
10875 root 1.52 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
10879     else
10880     cat >conftest.$ac_ext <<_ACEOF
10881     /* confdefs.h. */
10882     _ACEOF
10883     cat confdefs.h >>conftest.$ac_ext
10884     cat >>conftest.$ac_ext <<_ACEOF
10885     /* end confdefs.h. */
10886     #include <sys/types.h>
10887     #include <utmpx.h>
10888     int
10889     main ()
10890     {
10891     struct utmpx utx; utx.ut_session;
10892     ;
10893     return 0;
10894     }
10895     _ACEOF
10896     rm -f conftest.$ac_objext
10897     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10898     (eval $ac_compile) 2>conftest.er1
10899     ac_status=$?
10900     grep -v '^ *+' conftest.er1 >conftest.err
10901     rm -f conftest.er1
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
10908     ac_status=$?
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
10914     ac_status=$?
10915     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916     (exit $ac_status); }; }; then
10917     rxvt_cv_struct_utmpx_session=yes
10918     else
10919     echo "$as_me: failed program was:" >&5
10920     sed 's/^/| /' conftest.$ac_ext >&5
10921    
10922     rxvt_cv_struct_utmpx_session=no
10923     fi
10924     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10925 pcg 1.1 fi
10926 root 1.52 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
10929 pcg 1.1
10930 root 1.52 cat >>confdefs.h <<\_ACEOF
10931     #define HAVE_UTMPX_SESSION 1
10932     _ACEOF
10933    
10934     fi
10935    
10936     fi
10937 pcg 1.11
10938    
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
10943 pcg 1.1 else
10944 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
10945     /* confdefs.h. */
10946     _ACEOF
10947     cat confdefs.h >>conftest.$ac_ext
10948     cat >>conftest.$ac_ext <<_ACEOF
10949     /* end confdefs.h. */
10950 pcg 1.1 #include <sys/types.h>
10951     #include <utmp.h>
10952     #ifdef HAVE_LASTLOG_H
10953     #include <lastlog.h>
10954     #endif
10955    
10956 pcg 1.11 int
10957     main ()
10958     {
10959 pcg 1.1 struct lastlog ll;
10960 pcg 1.11 ;
10961     return 0;
10962     }
10963     _ACEOF
10964     rm -f conftest.$ac_objext
10965     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10966     (eval $ac_compile) 2>conftest.er1
10967     ac_status=$?
10968     grep -v '^ *+' conftest.er1 >conftest.err
10969     rm -f conftest.er1
10970     cat conftest.err >&5
10971     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972     (exit $ac_status); } &&
10973 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10974 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10975     (eval $ac_try) 2>&5
10976     ac_status=$?
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
10982     ac_status=$?
10983     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984     (exit $ac_status); }; }; then
10985 pcg 1.1 rxvt_cv_struct_lastlog=yes
10986     else
10987 pcg 1.11 echo "$as_me: failed program was:" >&5
10988     sed 's/^/| /' conftest.$ac_ext >&5
10989    
10990     rxvt_cv_struct_lastlog=no
10991 pcg 1.1 fi
10992 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10993 pcg 1.1 fi
10994 pcg 1.11 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
10997 pcg 1.1
10998 pcg 1.11 cat >>confdefs.h <<\_ACEOF
10999 pcg 1.1 #define HAVE_STRUCT_LASTLOG 1
11000 pcg 1.11 _ACEOF
11001 pcg 1.1
11002     fi
11003    
11004 pcg 1.11 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
11008 pcg 1.1 else
11009 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
11010     /* confdefs.h. */
11011     _ACEOF
11012     cat confdefs.h >>conftest.$ac_ext
11013     cat >>conftest.$ac_ext <<_ACEOF
11014     /* end confdefs.h. */
11015 pcg 1.1 #include <sys/types.h>
11016     #include <utmpx.h>
11017     #ifdef HAVE_LASTLOG_H
11018     #include <lastlog.h>
11019     #endif
11020    
11021 pcg 1.11 int
11022     main ()
11023     {
11024 pcg 1.1 struct lastlogx ll;
11025 pcg 1.11 ;
11026     return 0;
11027     }
11028     _ACEOF
11029     rm -f conftest.$ac_objext
11030     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11031     (eval $ac_compile) 2>conftest.er1
11032     ac_status=$?
11033     grep -v '^ *+' conftest.er1 >conftest.err
11034     rm -f conftest.er1
11035     cat conftest.err >&5
11036     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037     (exit $ac_status); } &&
11038 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11039 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11040     (eval $ac_try) 2>&5
11041     ac_status=$?
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
11047     ac_status=$?
11048     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049     (exit $ac_status); }; }; then
11050 pcg 1.1 rxvt_cv_struct_lastlogx=yes
11051     else
11052 pcg 1.11 echo "$as_me: failed program was:" >&5
11053     sed 's/^/| /' conftest.$ac_ext >&5
11054    
11055     rxvt_cv_struct_lastlogx=no
11056 pcg 1.1 fi
11057 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11058 pcg 1.1 fi
11059 pcg 1.11 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
11062 pcg 1.1
11063 pcg 1.11 cat >>confdefs.h <<\_ACEOF
11064 pcg 1.1 #define HAVE_STRUCT_LASTLOGX 1
11065 pcg 1.11 _ACEOF
11066 pcg 1.1
11067     fi
11068    
11069    
11070 pcg 1.11 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
11074 pcg 1.1 else
11075     if test "$cross_compiling" = yes; then
11076 pcg 1.11 { 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;}
11078 pcg 1.1 else
11079 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
11080     /* confdefs.h. */
11081     _ACEOF
11082     cat confdefs.h >>conftest.$ac_ext
11083     cat >>conftest.$ac_ext <<_ACEOF
11084     /* end confdefs.h. */
11085 pcg 1.1 #include <stdio.h>
11086     #include <sys/types.h>
11087     #include <utmp.h>
11088     #include <errno.h>
11089     main()
11090     {
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");
11094     if (!f) exit(1);
11095     #ifdef UTMP_FILE
11096     fprintf(f, "%s\n", UTMP_FILE);
11097     exit(0);
11098     #endif
11099     #ifdef _PATH_UTMP
11100     fprintf(f, "%s\n", _PATH_UTMP);
11101     exit(0);
11102     #endif
11103     for (u = utmplist; *u; u++) {
11104     if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
11105     fprintf(f, "%s\n", *u);
11106     exit(0);
11107     }
11108     }
11109     exit(0);
11110     }
11111 pcg 1.11 _ACEOF
11112     rm -f conftest$ac_exeext
11113     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11114     (eval $ac_link) 2>&5
11115     ac_status=$?
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
11120     ac_status=$?
11121     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122     (exit $ac_status); }; }; then
11123 pcg 1.1 rxvt_cv_path_utmp=`cat conftestval`
11124     else
11125 pcg 1.11 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
11128    
11129     ( exit $ac_status )
11130     rxvt_cv_path_utmp=
11131 pcg 1.1 fi
11132 pcg 1.11 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11133 pcg 1.1 fi
11134     fi
11135 pcg 1.11 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
11138 pcg 1.1
11139 pcg 1.11 cat >>confdefs.h <<_ACEOF
11140 pcg 1.1 #define RXVT_UTMP_FILE "$rxvt_cv_path_utmp"
11141 pcg 1.11 _ACEOF
11142 pcg 1.1
11143     fi
11144    
11145    
11146 pcg 1.11 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
11150 pcg 1.1 else
11151     if test "$cross_compiling" = yes; then
11152 pcg 1.11 { 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;}
11154 pcg 1.1 else
11155 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
11156     /* confdefs.h. */
11157     _ACEOF
11158     cat confdefs.h >>conftest.$ac_ext
11159     cat >>conftest.$ac_ext <<_ACEOF
11160     /* end confdefs.h. */
11161 pcg 1.1 #include <stdio.h>
11162     #include <sys/types.h>
11163     #include <utmpx.h>
11164     #include <errno.h>
11165     #include <sys/stat.h>
11166     #ifdef HAVE_STRING_H
11167     #include <string.h>
11168     #endif
11169     main()
11170     {
11171     char **u, *p, *utmplist[] = {
11172     #ifdef UTMPX_FILE
11173     UTMPX_FILE,
11174     #endif
11175     #ifdef _PATH_UTMPX
11176     _PATH_UTMPX,
11177     #endif
11178     "/var/adm/utmpx", "/etc/utmpx", NULL };
11179     FILE *a, *f=fopen("conftestval", "w");
11180     struct stat statu, statux;
11181     if (!f) exit(1);
11182     for (u = utmplist; *u; u++) {
11183     if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
11184     if (stat(*u, &statux) < 0)
11185     continue;
11186     p = strdup(*u);
11187     p[strlen(p) - 1] = '\0';
11188     if (stat(p, &statu) >= 0
11189     && (statu.st_mtime - statux.st_mtime > 86400))
11190     continue;
11191     fprintf(f, "%s\n", *u);
11192     exit(0);
11193     }
11194     }
11195     exit(0);
11196     }
11197 pcg 1.11 _ACEOF
11198     rm -f conftest$ac_exeext
11199     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11200     (eval $ac_link) 2>&5
11201     ac_status=$?
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
11206     ac_status=$?
11207     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208     (exit $ac_status); }; }; then
11209 pcg 1.1 rxvt_cv_path_utmpx=`cat conftestval`
11210     else
11211 pcg 1.11 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
11214    
11215     ( exit $ac_status )
11216     rxvt_cv_path_utmpx=
11217 pcg 1.1 fi
11218 pcg 1.11 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11219 pcg 1.1 fi
11220     fi
11221 pcg 1.11 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
11224 pcg 1.1
11225 pcg 1.11 cat >>confdefs.h <<_ACEOF
11226 pcg 1.1 #define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx"
11227 pcg 1.11 _ACEOF
11228 pcg 1.1
11229     fi
11230    
11231    
11232 pcg 1.11 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
11236 pcg 1.1 else
11237     if test "$cross_compiling" = yes; then
11238 pcg 1.11 { 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;}
11240 pcg 1.1 else
11241 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
11242     /* confdefs.h. */
11243     _ACEOF
11244     cat confdefs.h >>conftest.$ac_ext
11245     cat >>conftest.$ac_ext <<_ACEOF
11246     /* end confdefs.h. */
11247 pcg 1.1 #include <stdio.h>
11248     #include <sys/types.h>
11249     #ifdef HAVE_UTMP_H
11250     #include <utmp.h>
11251     #endif
11252     #include <errno.h>
11253     main()
11254     {
11255     char **w, *wtmplist[] = {
11256 pcg 1.11 "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL };
11257 pcg 1.1 FILE *a, *f=fopen("conftestval", "w");
11258     if (!f) exit(1);
11259     #ifdef WTMP_FILE
11260     fprintf(f, "%s\n", WTMP_FILE);
11261     exit(0);
11262     #endif
11263     #ifdef _PATH_WTMP
11264     fprintf(f, "%s\n", _PATH_WTMP);
11265     exit(0);
11266     #endif
11267     for (w = wtmplist; *w; w++) {
11268     if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11269     fprintf(f, "%s\n", *w);
11270     exit(0);
11271     }
11272     }
11273     exit(0);
11274     }
11275 pcg 1.11 _ACEOF
11276     rm -f conftest$ac_exeext
11277     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11278     (eval $ac_link) 2>&5
11279     ac_status=$?
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
11284     ac_status=$?
11285     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286     (exit $ac_status); }; }; then
11287 pcg 1.1 rxvt_cv_path_wtmp=`cat conftestval`
11288     else
11289 pcg 1.11 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
11292    
11293     ( exit $ac_status )
11294     rxvt_cv_path_wtmp=
11295 pcg 1.1 fi
11296 pcg 1.11 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11297 pcg 1.1 fi
11298     fi
11299 pcg 1.11 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
11302 pcg 1.1
11303 pcg 1.11 cat >>confdefs.h <<_ACEOF
11304 pcg 1.1 #define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp"
11305 pcg 1.11 _ACEOF
11306 pcg 1.1
11307     fi
11308    
11309 pcg 1.11 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
11313 pcg 1.1 else
11314     if test "$cross_compiling" = yes; then
11315 pcg 1.11 { 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;}
11317 pcg 1.1 else
11318 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
11319     /* confdefs.h. */
11320     _ACEOF
11321     cat confdefs.h >>conftest.$ac_ext
11322     cat >>conftest.$ac_ext <<_ACEOF
11323     /* end confdefs.h. */
11324 pcg 1.1 #include <stdio.h>
11325     #ifdef HAVE_UTMPX_H
11326     #include <utmpx.h>
11327     #endif
11328     #include <errno.h>
11329     main()
11330     {
11331     char **w, *wtmplist[] = {
11332 pcg 1.11 "/var/log/wtmpx", "/var/adm/wtmpx", NULL };
11333 pcg 1.1 FILE *a, *f=fopen("conftestval", "w");
11334     if (!f) exit(1);
11335     #ifdef WTMPX_FILE
11336     fprintf(f, "%s\n", WTMPX_FILE);
11337     exit(0);
11338     #endif
11339     #ifdef _PATH_WTMPX
11340     fprintf(f, "%s\n", _PATH_WTMPX);
11341     exit(0);
11342     #endif
11343     for (w = wtmplist; *w; w++) {
11344     if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11345     fprintf(f, "%s\n", *w);
11346     exit(0);
11347     }
11348     }
11349     exit(0);
11350     }
11351 pcg 1.11 _ACEOF
11352     rm -f conftest$ac_exeext
11353     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11354     (eval $ac_link) 2>&5
11355     ac_status=$?
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
11360     ac_status=$?
11361     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362     (exit $ac_status); }; }; then
11363 pcg 1.1 rxvt_cv_path_wtmpx=`cat conftestval`
11364     else
11365 pcg 1.11 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
11368    
11369     ( exit $ac_status )
11370     rxvt_cv_path_wtmpx=
11371 pcg 1.1 fi
11372 pcg 1.11 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11373 pcg 1.1 fi
11374     fi
11375 pcg 1.11 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
11378 pcg 1.1
11379 pcg 1.11 cat >>confdefs.h <<_ACEOF
11380 pcg 1.1 #define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx"
11381 pcg 1.11 _ACEOF
11382 pcg 1.1
11383     fi
11384    
11385 pcg 1.11 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
11389 pcg 1.1 else
11390     if test "$cross_compiling" = yes; then
11391 pcg 1.11 { 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;}
11393 pcg 1.1 else
11394 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
11395     /* confdefs.h. */
11396     _ACEOF
11397     cat confdefs.h >>conftest.$ac_ext
11398     cat >>conftest.$ac_ext <<_ACEOF
11399     /* end confdefs.h. */
11400 pcg 1.1 #include <stdio.h>
11401     #include <sys/types.h>
11402     #ifdef HAVE_UTMPX_H
11403     #include <utmpx.h>
11404     #elif defined(HAVE_UTMP_H)
11405     #include <utmp.h>
11406     #endif
11407     #ifdef HAVE_LASTLOG_H
11408     #include <lastlog.h>
11409     #endif
11410     #include <errno.h>
11411     main()
11412     {
11413     char **w, *lastloglist[] = { "/var/log/lastlog", NULL };
11414     FILE *a, *f=fopen("conftestval", "w");
11415     if (!f) exit(1);
11416     #ifdef LASTLOG_FILE
11417     fprintf(f, "%s\n", LASTLOG_FILE);
11418     exit(0);
11419     #endif
11420     #ifdef _PATH_LASTLOG
11421     fprintf(f, "%s\n", _PATH_LASTLOG);
11422     exit(0);
11423     #endif
11424     for (w = lastloglist; *w; w++) {
11425     if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11426     fprintf(f, "%s\n", *w);
11427     exit(0);
11428     }
11429     }
11430     exit(0);
11431     }
11432 pcg 1.11 _ACEOF
11433     rm -f conftest$ac_exeext
11434     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11435     (eval $ac_link) 2>&5
11436     ac_status=$?
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
11441     ac_status=$?
11442     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443     (exit $ac_status); }; }; then
11444 pcg 1.1 rxvt_cv_path_lastlog=`cat conftestval`
11445     else
11446 pcg 1.11 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
11449    
11450     ( exit $ac_status )
11451     rxvt_cv_path_lastlog=
11452 pcg 1.1 fi
11453 pcg 1.11 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11454 pcg 1.1 fi
11455     fi
11456 pcg 1.11 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
11459 pcg 1.1
11460 pcg 1.11 cat >>confdefs.h <<_ACEOF
11461 pcg 1.1 #define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog"
11462 pcg 1.11 _ACEOF
11463 pcg 1.1
11464     if test -d "$rxvt_cv_path_lastlog"; then
11465 pcg 1.11
11466     cat >>confdefs.h <<\_ACEOF
11467 pcg 1.1 #define LASTLOG_IS_DIR 1
11468 pcg 1.11 _ACEOF
11469 pcg 1.1
11470     fi
11471     fi
11472    
11473 pcg 1.11 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
11477 pcg 1.1 else
11478     if test "$cross_compiling" = yes; then
11479 pcg 1.11 { 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;}
11481 pcg 1.1 else
11482 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
11483     /* confdefs.h. */
11484     _ACEOF
11485     cat confdefs.h >>conftest.$ac_ext
11486     cat >>conftest.$ac_ext <<_ACEOF
11487     /* end confdefs.h. */
11488 pcg 1.1 #include <stdio.h>
11489     #ifdef HAVE_UTMPX_H
11490     #include <utmpx.h>
11491     #endif
11492     #include <errno.h>
11493     main()
11494     {
11495     char **w, *wtmplist[] = { "/var/log/lastlogx", "/var/adm/lastlogx", NULL };
11496     FILE *a, *f=fopen("conftestval", "w");
11497     if (!f) exit(1);
11498     #ifdef LASTLOGX_FILE
11499     fprintf(f, "%s\n", LASTLOGX_FILE);
11500     exit(0);
11501     #endif
11502     #ifdef _PATH_LASTLOGX
11503     fprintf(f, "%s\n", _PATH_LASTLOGX);
11504     exit(0);
11505     #endif
11506     for (w = wtmplist; *w; w++) {
11507     if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11508     fprintf(f, "%s\n", *w);
11509     exit(0);
11510     }
11511     }
11512     exit(0);
11513     }
11514 pcg 1.11 _ACEOF
11515     rm -f conftest$ac_exeext
11516     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11517     (eval $ac_link) 2>&5
11518     ac_status=$?
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
11523     ac_status=$?
11524     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525     (exit $ac_status); }; }; then
11526 pcg 1.1 rxvt_cv_path_lastlogx=`cat conftestval`
11527     else
11528 pcg 1.11 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
11531    
11532     ( exit $ac_status )
11533     rxvt_cv_path_lastlogx=
11534 pcg 1.1 fi
11535 pcg 1.11 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11536 pcg 1.1 fi
11537     fi
11538 pcg 1.11 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
11541 pcg 1.1
11542 pcg 1.11 cat >>confdefs.h <<_ACEOF
11543 pcg 1.1 #define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx"
11544 pcg 1.11 _ACEOF
11545 pcg 1.1
11546     fi
11547    
11548    
11549 pcg 1.11 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
11553 pcg 1.1 else
11554     for ttys_file in /etc/ttys /etc/ttytab;
11555     do
11556 pcg 1.11 if test -f "$ttys_file" ; then
11557 pcg 1.1 rxvt_cv_path_ttytab=$ttys_file
11558     break
11559     fi
11560     done
11561    
11562     fi
11563 pcg 1.11 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
11566 pcg 1.1
11567 pcg 1.11 cat >>confdefs.h <<_ACEOF
11568 pcg 1.1 #define TTYTAB_FILENAME "$rxvt_cv_path_ttytab"
11569 pcg 1.11 _ACEOF
11570 pcg 1.1
11571     fi
11572    
11573    
11574     ac_save_LIBS=$LIBS
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"`
11580     fi
11581 pcg 1.11 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
11585 pcg 1.1 else
11586     if test "$cross_compiling" = yes; then
11587 pcg 1.11 { 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;}
11589 pcg 1.1 else
11590 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
11591     /* confdefs.h. */
11592     _ACEOF
11593     cat confdefs.h >>conftest.$ac_ext
11594     cat >>conftest.$ac_ext <<_ACEOF
11595     /* end confdefs.h. */
11596 pcg 1.1 #include <X11/Xlib.h>
11597     main() {
11598     char *p;
11599     if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
11600     exit (XSupportsLocale() ? 0 : 1);
11601     else
11602     exit (1);}
11603 pcg 1.11 _ACEOF
11604     rm -f conftest$ac_exeext
11605     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11606     (eval $ac_link) 2>&5
11607     ac_status=$?
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
11612     ac_status=$?
11613     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614     (exit $ac_status); }; }; then
11615 pcg 1.1 rxvt_cv_func_xlocale=yes
11616     else
11617 pcg 1.11 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
11620    
11621     ( exit $ac_status )
11622     rxvt_cv_func_xlocale=no
11623 pcg 1.1 fi
11624 pcg 1.11 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11625 pcg 1.1 fi
11626     fi
11627 pcg 1.11 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
11630 pcg 1.1
11631 pcg 1.11 cat >>confdefs.h <<\_ACEOF
11632 pcg 1.1 #define HAVE_XLOCALE 1
11633 pcg 1.11 _ACEOF
11634 pcg 1.1
11635     fi
11636    
11637 pcg 1.11 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
11641 pcg 1.1 else
11642 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
11643     /* confdefs.h. */
11644     _ACEOF
11645     cat confdefs.h >>conftest.$ac_ext
11646     cat >>conftest.$ac_ext <<_ACEOF
11647     /* end confdefs.h. */
11648 pcg 1.1 #define X_LOCALE 1
11649     #include <X11/Xlocale.h>
11650 pcg 1.11 int
11651     main ()
11652     {
11653 pcg 1.1 setlocale(LC_CTYPE, "");
11654 pcg 1.11 ;
11655     return 0;
11656     }
11657     _ACEOF
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
11661     ac_status=$?
11662     grep -v '^ *+' conftest.er1 >conftest.err
11663     rm -f conftest.er1
11664     cat conftest.err >&5
11665     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666     (exit $ac_status); } &&
11667 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11668 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11669     (eval $ac_try) 2>&5
11670     ac_status=$?
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
11676     ac_status=$?
11677     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678     (exit $ac_status); }; }; then
11679 pcg 1.1 rxvt_cv_func_xsetlocale=yes
11680     else
11681 pcg 1.11 echo "$as_me: failed program was:" >&5
11682     sed 's/^/| /' conftest.$ac_ext >&5
11683    
11684     rxvt_cv_func_xsetlocale=no
11685 pcg 1.1 fi
11686 pcg 1.11 rm -f conftest.err conftest.$ac_objext \
11687     conftest$ac_exeext conftest.$ac_ext
11688 pcg 1.1 fi
11689 pcg 1.11 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
11692 pcg 1.1
11693 pcg 1.11 cat >>confdefs.h <<\_ACEOF
11694 pcg 1.1 #define HAVE_XSETLOCALE 1
11695 pcg 1.11 _ACEOF
11696 pcg 1.1
11697     fi
11698     LIBS=$ac_save_LIBS
11699     CFLAGS=$ac_save_CFLAGS
11700    
11701 pcg 1.11 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
11705     else
11706     cat >conftest.$ac_ext <<_ACEOF
11707     /* confdefs.h. */
11708     _ACEOF
11709     cat confdefs.h >>conftest.$ac_ext
11710     cat >>conftest.$ac_ext <<_ACEOF
11711     /* end confdefs.h. */
11712 pcg 1.18 #include <clocale>
11713 pcg 1.11 int
11714     main ()
11715     {
11716 pcg 1.1 setlocale(LC_CTYPE, "");
11717 pcg 1.11 ;
11718     return 0;
11719     }
11720     _ACEOF
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
11724     ac_status=$?
11725     grep -v '^ *+' conftest.er1 >conftest.err
11726     rm -f conftest.er1
11727     cat conftest.err >&5
11728     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729     (exit $ac_status); } &&
11730 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11731 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11732     (eval $ac_try) 2>&5
11733     ac_status=$?
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
11739     ac_status=$?
11740     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741     (exit $ac_status); }; }; then
11742 pcg 1.1 rxvt_cv_func_setlocale=yes
11743     else
11744 pcg 1.11 echo "$as_me: failed program was:" >&5
11745     sed 's/^/| /' conftest.$ac_ext >&5
11746    
11747     rxvt_cv_func_setlocale=no
11748 pcg 1.1 fi
11749 pcg 1.11 rm -f conftest.err conftest.$ac_objext \
11750     conftest$ac_exeext conftest.$ac_ext
11751 pcg 1.1 fi
11752 pcg 1.11 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
11755 pcg 1.1
11756 pcg 1.11 cat >>confdefs.h <<\_ACEOF
11757 pcg 1.1 #define HAVE_SETLOCALE 1
11758 pcg 1.11 _ACEOF
11759 pcg 1.1
11760     fi
11761    
11762 pcg 1.11 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
11766 pcg 1.1 else
11767 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
11768     /* confdefs.h. */
11769     _ACEOF
11770     cat confdefs.h >>conftest.$ac_ext
11771     cat >>conftest.$ac_ext <<_ACEOF
11772     /* end confdefs.h. */
11773 pcg 1.1 #include <langinfo.h>
11774 pcg 1.11 int
11775     main ()
11776     {
11777 pcg 1.1 nl_langinfo(CODESET);
11778 pcg 1.11 ;
11779     return 0;
11780     }
11781     _ACEOF
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
11785     ac_status=$?
11786     grep -v '^ *+' conftest.er1 >conftest.err
11787     rm -f conftest.er1
11788     cat conftest.err >&5
11789     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790     (exit $ac_status); } &&
11791 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11792 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11793     (eval $ac_try) 2>&5
11794     ac_status=$?
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
11800     ac_status=$?
11801     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802     (exit $ac_status); }; }; then
11803 pcg 1.1 rxvt_cv_func_nl_langinfo=yes
11804     else
11805 pcg 1.11 echo "$as_me: failed program was:" >&5
11806     sed 's/^/| /' conftest.$ac_ext >&5
11807    
11808     rxvt_cv_func_nl_langinfo=no
11809 pcg 1.1 fi
11810 pcg 1.11 rm -f conftest.err conftest.$ac_objext \
11811     conftest$ac_exeext conftest.$ac_ext
11812 pcg 1.1 fi
11813 pcg 1.11 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
11816 pcg 1.1
11817 pcg 1.11 cat >>confdefs.h <<\_ACEOF
11818 pcg 1.1 #define HAVE_NL_LANGINFO 1
11819 pcg 1.11 _ACEOF
11820 pcg 1.1
11821     fi
11822    
11823 root 1.56 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
11827     else
11828     cat >conftest.$ac_ext <<_ACEOF
11829     /* confdefs.h. */
11830     _ACEOF
11831     cat confdefs.h >>conftest.$ac_ext
11832     cat >>conftest.$ac_ext <<_ACEOF
11833     /* end confdefs.h. */
11834    
11835     #include <sys/types.h>
11836     #include <sys/socket.h>
11837    
11838     int
11839     main ()
11840     {
11841    
11842     {
11843     msghdr msg;
11844     iovec iov;
11845     char buf [100];
11846     char data = 0;
11847    
11848     iov.iov_base = &data;
11849     iov.iov_len = 1;
11850    
11851     msg.msg_iov = &iov;
11852     msg.msg_iovlen = 1;
11853     msg.msg_control = buf;
11854     msg.msg_controllen = sizeof buf;
11855    
11856     cmsghdr *cmsg = CMSG_FIRSTHDR (&msg);
11857     cmsg->cmsg_level = SOL_SOCKET;
11858     cmsg->cmsg_type = SCM_RIGHTS;
11859     cmsg->cmsg_len = 100;
11860    
11861     *(int *)CMSG_DATA (cmsg) = 5;
11862    
11863     return sendmsg (3, &msg, 0);
11864     }
11865    
11866     ;
11867     return 0;
11868     }
11869     _ACEOF
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
11873     ac_status=$?
11874     grep -v '^ *+' conftest.er1 >conftest.err
11875     rm -f conftest.er1
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
11882     ac_status=$?
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
11888     ac_status=$?
11889     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890     (exit $ac_status); }; }; then
11891     rxvt_can_pass_fds=yes
11892     else
11893     echo "$as_me: failed program was:" >&5
11894     sed 's/^/| /' conftest.$ac_ext >&5
11895    
11896     rxvt_can_pass_fds=no
11897     fi
11898     rm -f conftest.err conftest.$ac_objext \
11899     conftest$ac_exeext conftest.$ac_ext
11900     fi
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
11904    
11905     cat >>confdefs.h <<\_ACEOF
11906     #define HAVE_UNIX_FDPASS 1
11907     _ACEOF
11908    
11909     fi
11910    
11911 root 1.31 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
11915     else
11916     cat >conftest.$ac_ext <<_ACEOF
11917    
11918     #include <X11/Xlib.h>
11919    
11920     void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
11921    
11922     void f() {
11923     XIMCallback cb;
11924     cb.callback = im_destroy_cb;
11925     }
11926    
11927     _ACEOF
11928     rm -f conftest.$ac_objext
11929     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11930     (eval $ac_compile) 2>conftest.er1
11931     ac_status=$?
11932     grep -v '^ *+' conftest.er1 >conftest.err
11933     rm -f conftest.er1
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
11940     ac_status=$?
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
11946     ac_status=$?
11947     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948     (exit $ac_status); }; }; then
11949     rxvt_broken_ximcb=yes
11950     else
11951     echo "$as_me: failed program was:" >&5
11952     sed 's/^/| /' conftest.$ac_ext >&5
11953    
11954     rxvt_broken_ximcb=no
11955     fi
11956     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11957     fi
11958     echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
11959     echo "${ECHO_T}$rxvt_broken_ximcb" >&6
11960    
11961     if test x$rxvt_broken_ximcb = xyes; then
11962    
11963     cat >>confdefs.h <<\_ACEOF
11964     #define XIMCB_PROTO_BROKEN 1
11965     _ACEOF
11966    
11967     fi
11968    
11969 root 1.70 if test x$ac_cv_func_posix_openpt = xno; then
11970 root 1.66 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
11974     else
11975     cat >conftest.$ac_ext <<_ACEOF
11976     /* confdefs.h. */
11977     _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
11984    
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. */
11989    
11990     #ifdef __STDC__
11991     # include <limits.h>
11992     #else
11993     # include <assert.h>
11994     #endif
11995    
11996     #undef openpty
11997    
11998     /* Override any gcc2 internal prototype to avoid an error. */
11999     #ifdef __cplusplus
12000     extern "C"
12001     {
12002     #endif
12003     /* We use char because int might match the return type of a gcc2
12004     builtin and then its argument prototype would still apply. */
12005     char openpty ();
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)
12010     choke me
12011     #else
12012     char (*f) () = openpty;
12013     #endif
12014     #ifdef __cplusplus
12015     }
12016     #endif
12017 pcg 1.1
12018 root 1.66 int
12019     main ()
12020     {
12021     return f != openpty;
12022     ;
12023     return 0;
12024     }
12025     _ACEOF
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
12029     ac_status=$?
12030     grep -v '^ *+' conftest.er1 >conftest.err
12031     rm -f conftest.er1
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
12038     ac_status=$?
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
12044     ac_status=$?
12045     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046     (exit $ac_status); }; }; then
12047     ac_cv_func_openpty=yes
12048     else
12049     echo "$as_me: failed program was:" >&5
12050     sed 's/^/| /' conftest.$ac_ext >&5
12051    
12052     ac_cv_func_openpty=no
12053     fi
12054     rm -f conftest.err conftest.$ac_objext \
12055     conftest$ac_exeext conftest.$ac_ext
12056     fi
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
12060     :
12061     else
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
12066     else
12067     ac_check_lib_save_LIBS=$LIBS
12068     LIBS="-lutil $LIBS"
12069     cat >conftest.$ac_ext <<_ACEOF
12070     /* confdefs.h. */
12071 pcg 1.11 _ACEOF
12072 root 1.66 cat confdefs.h >>conftest.$ac_ext
12073     cat >>conftest.$ac_ext <<_ACEOF
12074     /* end confdefs.h. */
12075    
12076     /* Override any gcc2 internal prototype to avoid an error. */
12077     #ifdef __cplusplus
12078     extern "C"
12079     #endif
12080     /* We use char because int might match the return type of a gcc2
12081     builtin and then its argument prototype would still apply. */
12082     char openpty ();
12083     int
12084     main ()
12085     {
12086     openpty ();
12087     ;
12088     return 0;
12089     }
12090     _ACEOF
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
12094     ac_status=$?
12095     grep -v '^ *+' conftest.er1 >conftest.err
12096     rm -f conftest.er1
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
12103     ac_status=$?
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
12109     ac_status=$?
12110     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111     (exit $ac_status); }; }; then
12112     ac_cv_lib_util_openpty=yes
12113     else
12114     echo "$as_me: failed program was:" >&5
12115     sed 's/^/| /' conftest.$ac_ext >&5
12116    
12117     ac_cv_lib_util_openpty=no
12118     fi
12119     rm -f conftest.err conftest.$ac_objext \
12120     conftest$ac_exeext conftest.$ac_ext
12121     LIBS=$ac_check_lib_save_LIBS
12122     fi
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"
12127     fi
12128    
12129     fi
12130 pcg 1.1
12131     fi
12132    
12133 pcg 1.11 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
12137 pcg 1.1 else
12138 root 1.66 if test x$ac_cv_func_openpty = xyes -o x$ac_cv_lib_util_openpty = xyes; then
12139 pcg 1.1 rxvt_cv_ptys=OPENPTY
12140 root 1.67 else if test x$ac_cv_func_posix_openpt = xyes; then
12141     rxvt_cv_ptys=POSIX
12142 pcg 1.1 else if test x$ac_cv_func__getpty = xyes; then
12143     rxvt_cv_ptys=SGI4
12144     else if test -c /dev/ttyp20; then
12145     rxvt_cv_ptys=SCO
12146     else if test -c /dev/ptym/clone; then
12147     rxvt_cv_ptys=HPUX
12148     else if test -c /dev/ptc -a -c /dev/pts; then
12149     rxvt_cv_ptys=PTC
12150     else if test -c /dev/ptc -a -d /dev/pts; then
12151     rxvt_cv_ptys=PTC
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
12156     else
12157     rxvt_cv_ptys=BSD
12158     fi
12159     fi
12160     fi
12161     fi
12162     fi
12163     fi
12164     fi
12165     fi
12166     fi
12167    
12168     fi
12169 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5
12170     echo "${ECHO_T}$rxvt_cv_ptys" >&6
12171 pcg 1.1
12172 root 1.67 if test x$rxvt_cv_ptys = xPOSIX; then
12173    
12174     cat >>confdefs.h <<\_ACEOF
12175     #define PTYS_ARE_POSIX 1
12176     _ACEOF
12177    
12178     fi
12179 pcg 1.11 if test x$rxvt_cv_ptys = xOPENPTY; then
12180 pcg 1.1
12181 pcg 1.11 cat >>confdefs.h <<\_ACEOF
12182 pcg 1.1 #define PTYS_ARE_OPENPTY 1
12183 pcg 1.11 _ACEOF
12184 pcg 1.1
12185     fi
12186     if test x$rxvt_cv_ptys = xSCO; then
12187 pcg 1.11
12188     cat >>confdefs.h <<\_ACEOF
12189 pcg 1.1 #define PTYS_ARE_NUMERIC 1
12190 pcg 1.11 _ACEOF
12191 pcg 1.1
12192     fi
12193     if test x$rxvt_cv_ptys = xSTREAMS; then
12194 pcg 1.11
12195     cat >>confdefs.h <<\_ACEOF
12196 pcg 1.1 #define PTYS_ARE_PTMX 1
12197 pcg 1.11 _ACEOF
12198 pcg 1.1
12199     fi
12200     if test x$rxvt_cv_ptys = xPTC; then
12201 pcg 1.11
12202     cat >>confdefs.h <<\_ACEOF
12203 pcg 1.1 #define PTYS_ARE_PTC 1
12204 pcg 1.11 _ACEOF
12205 pcg 1.1
12206     fi
12207     if test x$rxvt_cv_ptys = xSGI4; then
12208 pcg 1.11
12209     cat >>confdefs.h <<\_ACEOF
12210 pcg 1.1 #define PTYS_ARE__GETPTY 1
12211 pcg 1.11 _ACEOF
12212 pcg 1.1
12213     fi
12214     if test x$rxvt_cv_ptys = xHPUX; then
12215 pcg 1.11
12216     cat >>confdefs.h <<\_ACEOF
12217 pcg 1.1 #define PTYS_ARE_CLONE 1
12218 pcg 1.11 _ACEOF
12219 pcg 1.1
12220     fi
12221 root 1.69 if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xPOSIX; then
12222 pcg 1.11
12223     cat >>confdefs.h <<\_ACEOF
12224 pcg 1.1 #define PTYS_ARE_SEARCHED 1
12225 pcg 1.11 _ACEOF
12226 pcg 1.1
12227     fi
12228    
12229    
12230 pcg 1.11 { echo "$as_me:$LINENO: checking for pty ranges..." >&5
12231     echo "$as_me: checking for pty ranges..." >&6;}
12232 pcg 1.1 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
12236 pcg 1.11
12237     cat >>confdefs.h <<_ACEOF
12238 pcg 1.1 #define PTYCHAR1 "$pch1"
12239 pcg 1.11 _ACEOF
12240 pcg 1.1
12241     fi
12242     if test x$pch2 != x; then
12243 pcg 1.11
12244     cat >>confdefs.h <<_ACEOF
12245 pcg 1.1 #define PTYCHAR2 "$pch2"
12246 pcg 1.11 _ACEOF
12247 pcg 1.1
12248     fi
12249    
12250 root 1.39 if test x$support_xft = xyes; then
12251     LIBS="$LIBS `pkg-config xft --libs`"
12252     CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`"
12253 root 1.34
12254    
12255 root 1.39 for ac_header in X11/Xft/Xft.h
12256     do
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
12263 root 1.34 fi
12264 root 1.39 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12265     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12266     else
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
12271     /* confdefs.h. */
12272 root 1.26 _ACEOF
12273 root 1.39 cat confdefs.h >>conftest.$ac_ext
12274     cat >>conftest.$ac_ext <<_ACEOF
12275     /* end confdefs.h. */
12276     $ac_includes_default
12277     #include <$ac_header>
12278 root 1.31 _ACEOF
12279 root 1.39 rm -f conftest.$ac_objext
12280     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12281     (eval $ac_compile) 2>conftest.er1
12282     ac_status=$?
12283     grep -v '^ *+' conftest.er1 >conftest.err
12284     rm -f conftest.er1
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
12291     ac_status=$?
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
12297     ac_status=$?
12298     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299     (exit $ac_status); }; }; then
12300     ac_header_compiler=yes
12301     else
12302     echo "$as_me: failed program was:" >&5
12303     sed 's/^/| /' conftest.$ac_ext >&5
12304 root 1.31
12305 root 1.39 ac_header_compiler=no
12306 root 1.31 fi
12307 root 1.39 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
12310 pcg 1.24
12311 root 1.39 # 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
12315     /* confdefs.h. */
12316 pcg 1.24 _ACEOF
12317 root 1.39 cat confdefs.h >>conftest.$ac_ext
12318     cat >>conftest.$ac_ext <<_ACEOF
12319     /* end confdefs.h. */
12320     #include <$ac_header>
12321 pcg 1.11 _ACEOF
12322 root 1.39 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12323     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12324     ac_status=$?
12325     grep -v '^ *+' conftest.er1 >conftest.err
12326     rm -f conftest.er1
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
12333     else
12334     ac_cpp_err=
12335     fi
12336     else
12337     ac_cpp_err=yes
12338 pcg 1.1 fi
12339 root 1.39 if test -z "$ac_cpp_err"; then
12340     ac_header_preproc=yes
12341     else
12342     echo "$as_me: failed program was:" >&5
12343     sed 's/^/| /' conftest.$ac_ext >&5
12344 pcg 1.1
12345 root 1.39 ac_header_preproc=no
12346 pcg 1.1 fi
12347 root 1.39 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
12350 pcg 1.1
12351 root 1.39 # So? What about this header?
12352     case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
12353     yes:no: )
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
12359     ;;
12360     no: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;}
12373     (
12374     cat <<\_ASBOX
12375     ## ------------------------------------------ ##
12376     ## Report this to the AC_PACKAGE_NAME lists. ##
12377     ## ------------------------------------------ ##
12378     _ASBOX
12379     ) |
12380     sed "s/^/$as_me: WARNING: /" >&2
12381     ;;
12382     esac
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
12387     else
12388     eval "$as_ac_Header=\$ac_header_preproc"
12389 pcg 1.1 fi
12390 root 1.39 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12391     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12392 pcg 1.1
12393     fi
12394 root 1.39 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12395     cat >>confdefs.h <<_ACEOF
12396     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12397 pcg 1.11 _ACEOF
12398 pcg 1.1
12399 root 1.39 else
12400     support_xft=no
12401 pcg 1.1 fi
12402 pcg 1.11
12403 root 1.39 done
12404 pcg 1.1
12405 pcg 1.11
12406 root 1.39 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
12410     else
12411     ac_check_lib_save_LIBS=$LIBS
12412     LIBS="-lXft $LIBS"
12413     cat >conftest.$ac_ext <<_ACEOF
12414     /* confdefs.h. */
12415     _ACEOF
12416     cat confdefs.h >>conftest.$ac_ext
12417     cat >>conftest.$ac_ext <<_ACEOF
12418     /* end confdefs.h. */
12419    
12420     /* Override any gcc2 internal prototype to avoid an error. */
12421     #ifdef __cplusplus
12422     extern "C"
12423     #endif
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 ();
12427     int
12428     main ()
12429     {
12430     XftDrawString32 ();
12431     ;
12432     return 0;
12433     }
12434     _ACEOF
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
12438     ac_status=$?
12439     grep -v '^ *+' conftest.er1 >conftest.err
12440     rm -f conftest.er1
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
12447     ac_status=$?
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
12453     ac_status=$?
12454     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455     (exit $ac_status); }; }; then
12456     ac_cv_lib_Xft_XftDrawString32=yes
12457     else
12458     echo "$as_me: failed program was:" >&5
12459     sed 's/^/| /' conftest.$ac_ext >&5
12460    
12461     ac_cv_lib_Xft_XftDrawString32=no
12462     fi
12463     rm -f conftest.err conftest.$ac_objext \
12464     conftest$ac_exeext conftest.$ac_ext
12465     LIBS=$ac_check_lib_save_LIBS
12466     fi
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
12472     _ACEOF
12473    
12474     LIBS="-lXft $LIBS"
12475    
12476     else
12477     support_xft=no
12478     fi
12479    
12480    
12481     if test x$support_xft = xyes; then
12482    
12483     cat >>confdefs.h <<\_ACEOF
12484     #define XFT 1
12485     _ACEOF
12486    
12487     fi
12488     fi
12489     if test x$support_styles = xyes; then
12490    
12491     cat >>confdefs.h <<\_ACEOF
12492     #define ENABLE_STYLES 1
12493     _ACEOF
12494    
12495     fi
12496     if test x$support_iso14755 = xyes; then
12497    
12498     cat >>confdefs.h <<\_ACEOF
12499     #define ISO_14755 1
12500     _ACEOF
12501    
12502     fi
12503     if test x$support_8bitctrls = xyes; then
12504    
12505     cat >>confdefs.h <<\_ACEOF
12506     #define EIGHT_BIT_CONTROLS 1
12507     _ACEOF
12508    
12509     fi
12510     if test x$support_fading = xyes; then
12511    
12512     cat >>confdefs.h <<\_ACEOF
12513     #define OFF_FOCUS_FADING 1
12514     _ACEOF
12515    
12516     fi
12517     if test x$support_tinting = xyes; then
12518    
12519     cat >>confdefs.h <<\_ACEOF
12520     #define TINTING 1
12521     _ACEOF
12522    
12523     fi
12524     if test x$support_inheritpixmap = xyes; then
12525    
12526     cat >>confdefs.h <<\_ACEOF
12527     #define TRANSPARENT 1
12528     _ACEOF
12529    
12530     fi
12531     if test x$support_keepscrolling = xno; then
12532    
12533     cat >>confdefs.h <<\_ACEOF
12534     #define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
12535     _ACEOF
12536    
12537     fi
12538     if test x$support_selectionscrolling = xyes; then
12539    
12540     cat >>confdefs.h <<\_ACEOF
12541     #define SELECTION_SCROLLING 1
12542     _ACEOF
12543    
12544     fi
12545     if test x$support_frills = xyes; then
12546    
12547     cat >>confdefs.h <<\_ACEOF
12548     #define ENABLE_FRILLS 1
12549     _ACEOF
12550    
12551     fi
12552     if test x$support_24bit = xyes; then
12553    
12554     cat >>confdefs.h <<\_ACEOF
12555     #define PREFER_24BIT 1
12556 pcg 1.11 _ACEOF
12557 pcg 1.1
12558     fi
12559     if test x$support_mousewheel = xyes; then
12560 pcg 1.11
12561     cat >>confdefs.h <<\_ACEOF
12562 pcg 1.1 #define MOUSE_WHEEL 1
12563 pcg 1.11 _ACEOF
12564 pcg 1.1
12565     fi
12566     if test x$support_mouseslipwheel = xyes; then
12567 pcg 1.11
12568     cat >>confdefs.h <<\_ACEOF
12569 pcg 1.1 #define MOUSE_SLIP_WHEELING 1
12570 pcg 1.11 _ACEOF
12571 pcg 1.1
12572     fi
12573     if test x$support_utmp = xyes; then
12574 pcg 1.11
12575     cat >>confdefs.h <<\_ACEOF
12576 pcg 1.1 #define UTMP_SUPPORT 1
12577 pcg 1.11 _ACEOF
12578 pcg 1.1
12579     fi
12580     if test x$support_wtmp = xyes; then
12581 pcg 1.11
12582     cat >>confdefs.h <<\_ACEOF
12583 pcg 1.1 #define WTMP_SUPPORT 1
12584 pcg 1.11 _ACEOF
12585 pcg 1.1
12586     fi
12587     if test x$support_lastlog = xyes; then
12588 pcg 1.11
12589     cat >>confdefs.h <<\_ACEOF
12590 pcg 1.1 #define LASTLOG_SUPPORT 1
12591 pcg 1.11 _ACEOF
12592 pcg 1.1
12593     fi
12594     if test x$support_xim = xyes -o x$multichar_set = xyes; then
12595     if test x$rxvt_cv_func_xlocale = xyes; then
12596 pcg 1.11
12597     cat >>confdefs.h <<\_ACEOF
12598 pcg 1.1 #define USE_XIM 1
12599 pcg 1.11 _ACEOF
12600 pcg 1.1
12601     fi
12602     fi
12603     if test x$support_xpm = xyes; then
12604 pcg 1.11
12605     cat >>confdefs.h <<\_ACEOF
12606 pcg 1.1 #define XPM_BACKGROUND 1
12607 pcg 1.11 _ACEOF
12608 pcg 1.1
12609     fi
12610     if test x$support_scroll_rxvt = xyes; then
12611 pcg 1.11
12612     cat >>confdefs.h <<\_ACEOF
12613 pcg 1.1 #define RXVT_SCROLLBAR 1
12614 pcg 1.11 _ACEOF
12615 pcg 1.1
12616     scrolltypes="rxvt"
12617     fi
12618     if test x$support_scroll_next = xyes; then
12619 pcg 1.11
12620     cat >>confdefs.h <<\_ACEOF
12621 pcg 1.1 #define NEXT_SCROLLBAR 1
12622 pcg 1.11 _ACEOF
12623 pcg 1.1
12624     scrolltypes="$scrolltypes next"
12625     fi
12626     if test x$support_scroll_xterm = xyes; then
12627 pcg 1.11
12628     cat >>confdefs.h <<\_ACEOF
12629 pcg 1.1 #define XTERM_SCROLLBAR 1
12630 pcg 1.11 _ACEOF
12631 pcg 1.1
12632     scrolltypes="$scrolltypes xterm"
12633     fi
12634 pcg 1.11 if test x$support_scroll_plain = xyes; then
12635    
12636     cat >>confdefs.h <<\_ACEOF
12637     #define PLAIN_SCROLLBAR 1
12638     _ACEOF
12639    
12640     scrolltypes="$scrolltypes plain"
12641     fi
12642 pcg 1.1 if test x$support_pointer_blank = xyes; then
12643 pcg 1.11
12644     cat >>confdefs.h <<\_ACEOF
12645 pcg 1.1 #define POINTER_BLANK 1
12646 pcg 1.11 _ACEOF
12647 pcg 1.1
12648     fi
12649 pcg 1.11 if test x$support_text_blink = xyes; then
12650    
12651     cat >>confdefs.h <<\_ACEOF
12652     #define TEXT_BLINK 1
12653     _ACEOF
12654 pcg 1.1
12655     fi
12656     if test x$support_unicode3 = xyes; then
12657 pcg 1.11
12658     cat >>confdefs.h <<\_ACEOF
12659 pcg 1.1 #define UNICODE_3 1
12660 pcg 1.11 _ACEOF
12661 pcg 1.1
12662     fi
12663 pcg 1.18 if test x$support_combining = xyes; then
12664    
12665     cat >>confdefs.h <<\_ACEOF
12666 pcg 1.20 #define ENABLE_COMBINING 1
12667 pcg 1.18 _ACEOF
12668    
12669     fi
12670 pcg 1.1 if test x$codesets = xall; then
12671 root 1.40 codesets=jp,jp-ext,kr,zh,zh-ext
12672 pcg 1.1 fi
12673 pcg 1.11
12674     cat >>confdefs.h <<\_ACEOF
12675 pcg 1.1 #define ENCODING_EU 1
12676 pcg 1.11 _ACEOF
12677 pcg 1.1
12678 pcg 1.13
12679 pcg 1.11 cat >>confdefs.h <<\_ACEOF
12680 pcg 1.1 #define ENCODING_VN 1
12681 pcg 1.11 _ACEOF
12682 pcg 1.13
12683 root 1.34 for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
12684 pcg 1.13 case "$codeset" in
12685 pcg 1.11 JP )
12686     cat >>confdefs.h <<\_ACEOF
12687 pcg 1.1 #define ENCODING_JP 1
12688 pcg 1.11 _ACEOF
12689 pcg 1.1 ;;
12690 pcg 1.11 JP_EXT )
12691     cat >>confdefs.h <<\_ACEOF
12692 pcg 1.1 #define ENCODING_JP_EXT 1
12693 pcg 1.11 _ACEOF
12694 pcg 1.1 ;;
12695 pcg 1.11 KR )
12696     cat >>confdefs.h <<\_ACEOF
12697 pcg 1.1 #define ENCODING_KR 1
12698 pcg 1.11 _ACEOF
12699 pcg 1.1 ;;
12700 root 1.40 ZH )
12701 pcg 1.11 cat >>confdefs.h <<\_ACEOF
12702 root 1.40 #define ENCODING_ZH 1
12703 pcg 1.11 _ACEOF
12704 pcg 1.1 ;;
12705 root 1.40 ZH_EXT )
12706 pcg 1.11 cat >>confdefs.h <<\_ACEOF
12707 root 1.40 #define ENCODING_ZH_EXT 1
12708 pcg 1.11 _ACEOF
12709 pcg 1.1 ;;
12710     esac
12711     done
12712    
12713 root 1.60 IF_PERL=\#
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
12721     else
12722     case $PERL in
12723     [\\/]* | ?:[\\/]*)
12724     ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12725     ;;
12726     *)
12727     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12728     for as_dir in $PATH
12729     do
12730     IFS=$as_save_IFS
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
12736     break 2
12737     fi
12738     done
12739     done
12740    
12741     ;;
12742     esac
12743     fi
12744     PERL=$ac_cv_path_PERL
12745    
12746     if test -n "$PERL"; then
12747     echo "$as_me:$LINENO: result: $PERL" >&5
12748     echo "${ECHO_T}$PERL" >&6
12749     else
12750     echo "$as_me:$LINENO: result: no" >&5
12751     echo "${ECHO_T}no" >&6
12752     fi
12753    
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
12760     else
12761     case $PERL in
12762     [\\/]* | ?:[\\/]*)
12763     ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12764     ;;
12765     *)
12766     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12767     for as_dir in $PATH
12768     do
12769     IFS=$as_save_IFS
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
12775     break 2
12776     fi
12777     done
12778     done
12779    
12780     ;;
12781     esac
12782     fi
12783     PERL=$ac_cv_path_PERL
12784    
12785     if test -n "$PERL"; then
12786     echo "$as_me:$LINENO: result: $PERL" >&5
12787     echo "${ECHO_T}$PERL" >&6
12788     else
12789     echo "$as_me:$LINENO: result: no" >&5
12790     echo "${ECHO_T}no" >&6
12791     fi
12792    
12793    
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
12797    
12798 root 1.62 save_CXXFLAGS="$CXXFLAGS"
12799     save_LIBS="$LIBS"
12800     CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`"
12801     LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`"
12802     cat >conftest.$ac_ext <<_ACEOF
12803     /* confdefs.h. */
12804     _ACEOF
12805     cat confdefs.h >>conftest.$ac_ext
12806     cat >>conftest.$ac_ext <<_ACEOF
12807     /* end confdefs.h. */
12808    
12809     #include <EXTERN.h>
12810     #include <perl.h>
12811     #include <XSUB.h>
12812    
12813     int
12814     main ()
12815     {
12816    
12817     PerlInterpreter *perl = perl_alloc ();
12818    
12819     ;
12820     return 0;
12821     }
12822     _ACEOF
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
12826     ac_status=$?
12827     grep -v '^ *+' conftest.er1 >conftest.err
12828     rm -f conftest.er1
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
12835     ac_status=$?
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
12841     ac_status=$?
12842     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843     (exit $ac_status); }; }; then
12844     rxvt_perl_link=yes
12845     else
12846     echo "$as_me: failed program was:" >&5
12847     sed 's/^/| /' conftest.$ac_ext >&5
12848    
12849     rxvt_perl_link=no
12850     fi
12851     rm -f conftest.err conftest.$ac_objext \
12852     conftest$ac_exeext conftest.$ac_ext
12853     CXXFLAGS="$save_CXXFLAGS"
12854     LIBS="$save_LIBS"
12855    
12856     if test x$rxvt_perl_link = xyes; then
12857     echo "$as_me:$LINENO: result: ok" >&5
12858     echo "${ECHO_T}ok" >&6
12859    
12860 root 1.60 cat >>confdefs.h <<\_ACEOF
12861     #define ENABLE_PERL 1
12862     _ACEOF
12863    
12864 root 1.62 IF_PERL=
12865     PERL_O=rxvtperl.o
12866     PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
12867     PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
12868     PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`"
12869     else
12870     support_perl=no
12871     echo "$as_me:$LINENO: result: no, unable to link" >&5
12872     echo "${ECHO_T}no, unable to link" >&6
12873     fi
12874 root 1.60 else
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; }; }
12878 root 1.62 support_perl=no
12879 root 1.60 fi
12880     fi
12881    
12882    
12883    
12884    
12885    
12886    
12887    
12888 root 1.66 if test x$support_perl = xyes; then
12889 root 1.64 support_frills=yes
12890     fi
12891    
12892 pcg 1.1
12893     CFLAGS=${CFLAGS--O}
12894     LDFLAGS=${LDFLAGS--O}
12895    
12896     CPPFLAGS="$CPPFLAGS"
12897    
12898    
12899    
12900    
12901    
12902    
12903    
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"`
12910     fi
12911    
12912    
12913    
12914    
12915    
12916     MCOMMON=./autoconf/Make.common
12917    
12918    
12919     test "$program_prefix" != NONE &&
12920 pcg 1.11 program_transform_name="s,^,$program_prefix,;$program_transform_name"
12921 pcg 1.1 # Use a double $ so make ignores it.
12922     test "$program_suffix" != NONE &&
12923 pcg 1.11 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,$//
12928     _ACEOF
12929     program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
12930     rm conftest.sed
12931 pcg 1.1
12932    
12933    
12934    
12935    
12936     if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
12937     include_stdint_h="#include <stdint.h>"
12938     else
12939     include_stdint_h="/* #include <stdint.h> */"
12940 pcg 1.11 fi
12941 pcg 1.1 if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
12942 pcg 1.18 include_stdarg_h="#include <cstdarg>"
12943 pcg 1.1 else
12944 pcg 1.18 include_stdarg_h="/* #include <cstdarg> */"
12945 pcg 1.11 fi
12946 pcg 1.1 if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
12947 pcg 1.18 include_stdlib_h="#include <cstdlib>"
12948 pcg 1.1 else
12949 pcg 1.18 include_stdlib_h="/* #include <cstdlib> */"
12950 pcg 1.11 fi
12951 pcg 1.1 if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
12952     include_unistd_h="#include <unistd.h>"
12953     else
12954     include_unistd_h="/* #include <unistd.h> */"
12955 pcg 1.11 fi
12956 pcg 1.1 if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
12957 pcg 1.18 include_string_h="#include <cstring>"
12958 pcg 1.1 else
12959 pcg 1.18 include_string_h="/* #include <cstring> */"
12960 pcg 1.11 fi
12961 pcg 1.1 if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
12962     include_fcntl_h="#include <fcntl.h>"
12963     else
12964     include_fcntl_h="/* #include <fcntl.h> */"
12965 pcg 1.11 fi
12966 pcg 1.1 if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
12967     include_util_h="#include <util.h>"
12968     else
12969     include_util_h="/* #include <util.h> */"
12970 pcg 1.11 fi
12971 pcg 1.1 if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
12972     include_assert_h="#include <assert.h>"
12973     else
12974     include_assert_h="/* #include <assert.h> */"
12975 pcg 1.11 fi
12976 pcg 1.1 if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
12977     include_sys_ioctl_h="#include <sys/ioctl.h>"
12978     else
12979     include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
12980 pcg 1.11 fi
12981 pcg 1.1 if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
12982     include_sys_select_h="#include <sys/select.h>"
12983     else
12984     include_sys_select_h="/* #include <sys/select.h> */"
12985 pcg 1.11 fi
12986 pcg 1.1 if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
12987     include_sys_strredir_h="#include <sys/strredir.h>"
12988     else
12989     include_sys_strredir_h="/* #include <sys/strredir.h> */"
12990 pcg 1.11 fi
12991 pcg 1.1 if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
12992     include_sys_time_h="#include <sys/time.h>"
12993     else
12994     include_sys_time_h="/* #include <sys/time.h> */"
12995 pcg 1.11 fi
12996 pcg 1.1 if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
12997     include_time_h="#include <time.h>"
12998     else
12999     include_time_h="/* #include <time.h> */"
13000 pcg 1.11 fi
13001 pcg 1.1
13002 root 1.49 ac_config_files="$ac_config_files autoconf/Make.common Makefile doc/Makefile src/Makefile src/rxvtlib.h"
13003 root 1.32
13004 pcg 1.11 cat >confcache <<\_ACEOF
13005 pcg 1.1 # 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 pcg 1.11 # 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.
13010 pcg 1.1 #
13011 pcg 1.11 # config.status only pays attention to the cache file if you give it
13012     # the --recheck option to rerun configure.
13013 pcg 1.1 #
13014 pcg 1.11 # `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.
13017    
13018     _ACEOF
13019    
13020 pcg 1.1 # 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.
13025 pcg 1.11 {
13026     (set) 2>&1 |
13027     case `(ac_space=' '; set | grep ac_space) 2>&1` in
13028     *ac_space=\ *)
13029     # `set' does not quote correctly, so add quotes (double-quote
13030     # substitution turns \\\\ into \\, and sed turns \\ into \).
13031     sed -n \
13032     "s/'/'\\\\''/g;
13033     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13034     ;;
13035     *)
13036     # `set' quotes correctly as required by POSIX, so do not add quotes.
13037     sed -n \
13038     "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13039     ;;
13040     esac;
13041     } |
13042     sed '
13043     t clear
13044     : clear
13045     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13046     t end
13047     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13048     : end' >>confcache
13049     if diff $cache_file confcache >/dev/null 2>&1; then :; else
13050 pcg 1.1 if test -w $cache_file; then
13051 pcg 1.11 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13052     cat confcache >$cache_file
13053 pcg 1.1 else
13054     echo "not updating unwritable cache $cache_file"
13055     fi
13056     fi
13057     rm -f confcache
13058    
13059     test "x$prefix" = xNONE && prefix=$ac_default_prefix
13060     # Let make expand exec_prefix.
13061     test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13062    
13063 pcg 1.11 # 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 pcg 1.1 if test "x$srcdir" = x.; then
13068 pcg 1.11 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13069     s/:*\$(srcdir):*/:/;
13070     s/:*\${srcdir}:*/:/;
13071     s/:*@srcdir@:*/:/;
13072     s/^\([^=]*=[ ]*\):*/\1/;
13073     s/:*$//;
13074     s/^[^=]*=[ ]*$//;
13075     }'
13076 pcg 1.1 fi
13077    
13078 pcg 1.11 DEFS=-DHAVE_CONFIG_H
13079    
13080     ac_libobjs=
13081     ac_ltlibobjs=
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$//'`
13086     # 2. Add them.
13087     ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13088     ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13089     done
13090     LIBOBJS=$ac_libobjs
13091    
13092     LTLIBOBJS=$ac_ltlibobjs
13093    
13094 pcg 1.1
13095    
13096     : ${CONFIG_STATUS=./config.status}
13097 pcg 1.11 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
13102     #! $SHELL
13103     # Generated by $as_me.
13104 pcg 1.1 # Run this file to recreate the current configuration.
13105     # Compiler output produced by configure, useful for debugging
13106 pcg 1.11 # configure, is in config.log if it exists.
13107    
13108     debug=false
13109     ac_cs_recheck=false
13110     ac_cs_silent=false
13111     SHELL=\${CONFIG_SHELL-$SHELL}
13112     _ACEOF
13113    
13114     cat >>$CONFIG_STATUS <<\_ACEOF
13115     ## --------------------- ##
13116     ## M4sh Initialization. ##
13117     ## --------------------- ##
13118    
13119     # Be Bourne compatible
13120     if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13121     emulate sh
13122     NULLCMD=:
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
13127     set -o posix
13128     fi
13129     DUALCASE=1; export DUALCASE # for MKS sh
13130    
13131     # Support unset when possible.
13132     if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13133     as_unset=unset
13134     else
13135     as_unset=false
13136     fi
13137    
13138    
13139     # Work around bugs in pre-3.0 UWIN ksh.
13140     $as_unset ENV MAIL MAILPATH
13141     PS1='$ '
13142     PS2='> '
13143     PS4='+ '
13144    
13145     # NLS nuisances.
13146     for as_var in \
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
13150     do
13151     if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13152     eval $as_var=C; export $as_var
13153     else
13154     $as_unset $as_var
13155     fi
13156     done
13157    
13158     # Required to use basename.
13159     if expr a : '\(a\)' >/dev/null 2>&1; then
13160     as_expr=expr
13161     else
13162     as_expr=false
13163     fi
13164    
13165     if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13166     as_basename=basename
13167     else
13168     as_basename=false
13169     fi
13170    
13171    
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 ||
13178     echo X/"$0" |
13179     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13180     /^X\/\(\/\/\)$/{ s//\1/; q; }
13181     /^X\/\(\/\).*/{ s//\1/; q; }
13182     s/.*/./; q'`
13183    
13184    
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
13192    
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
13197     chmod +x conf$$.sh
13198     if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13199     PATH_SEPARATOR=';'
13200     else
13201     PATH_SEPARATOR=:
13202     fi
13203     rm -f conf$$.sh
13204     fi
13205    
13206    
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
13213     # relative or not.
13214     case $0 in
13215     *[\\/]* ) as_myself=$0 ;;
13216     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13217     for as_dir in $PATH
13218     do
13219     IFS=$as_save_IFS
13220     test -z "$as_dir" && as_dir=.
13221     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13222     done
13223    
13224     ;;
13225     esac
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
13229     as_myself=$0
13230     fi
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; }; }
13235     fi
13236     case $CONFIG_SHELL in
13237     '')
13238     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13239     for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13240     do
13241     IFS=$as_save_IFS
13242     test -z "$as_dir" && as_dir=.
13243     for as_base in sh bash ksh sh5; do
13244     case $as_dir in
13245     /*)
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+"$@"}
13257     fi;;
13258     esac
13259     done
13260     done
13261     ;;
13262     esac
13263    
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 |
13273     sed '
13274     N
13275     s,$,-,
13276     : loop
13277     s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13278     t loop
13279     s,-$,,
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; }; }
13286    
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).
13290     . ./$as_me.lineno
13291     # Exit status is that of the last command.
13292     exit
13293     }
13294    
13295    
13296     case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13297     *c*,-n*) ECHO_N= ECHO_C='
13298     ' ECHO_T=' ' ;;
13299     *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13300     *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13301     esac
13302    
13303     if expr a : '\(a\)' >/dev/null 2>&1; then
13304     as_expr=expr
13305     else
13306     as_expr=false
13307     fi
13308    
13309     rm -f conf$$ conf$$.exe conf$$.file
13310     echo >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
13316     as_ln_s='cp -p'
13317     else
13318     as_ln_s='ln -s'
13319     fi
13320     elif ln conf$$.file conf$$ 2>/dev/null; then
13321     as_ln_s=ln
13322     else
13323     as_ln_s='cp -p'
13324     fi
13325     rm -f conf$$ conf$$.exe conf$$.file
13326    
13327     if mkdir -p . 2>/dev/null; then
13328     as_mkdir_p=:
13329     else
13330     test -d ./-p && rmdir ./-p
13331     as_mkdir_p=false
13332     fi
13333    
13334     as_executable_p="test -f"
13335    
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'"
13338    
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'"
13341    
13342    
13343     # IFS
13344     # We need space, tab and new line, in precisely that order.
13345     as_nl='
13346     '
13347     IFS=" $as_nl"
13348    
13349     # CDPATH.
13350     $as_unset CDPATH
13351    
13352     exec 6>&1
13353    
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.
13357     exec 5>>config.log
13358     {
13359     echo
13360     sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13361     ## Running $as_me. ##
13362     _ASBOX
13363     } >&5
13364     cat >&5 <<_CSEOF
13365    
13366     This file was extended by $as_me, which was
13367     generated by GNU Autoconf 2.59. Invocation command line was
13368    
13369     CONFIG_FILES = $CONFIG_FILES
13370     CONFIG_HEADERS = $CONFIG_HEADERS
13371     CONFIG_LINKS = $CONFIG_LINKS
13372     CONFIG_COMMANDS = $CONFIG_COMMANDS
13373     $ $0 $@
13374    
13375     _CSEOF
13376     echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13377     echo >&5
13378     _ACEOF
13379    
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
13383     fi
13384    
13385     if test -n "$ac_config_headers"; then
13386     echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13387     fi
13388    
13389     if test -n "$ac_config_links"; then
13390     echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13391     fi
13392 pcg 1.1
13393 pcg 1.11 if test -n "$ac_config_commands"; then
13394     echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13395     fi
13396    
13397     cat >>$CONFIG_STATUS <<\_ACEOF
13398    
13399     ac_cs_usage="\
13400     \`$as_me' instantiates files from templates according to the
13401     current configuration.
13402    
13403     Usage: $0 [OPTIONS] [FILE]...
13404    
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
13414    
13415     Configuration files:
13416     $config_files
13417    
13418     Configuration headers:
13419     $config_headers
13420    
13421     Report bugs to <bug-autoconf@gnu.org>."
13422     _ACEOF
13423    
13424     cat >>$CONFIG_STATUS <<_ACEOF
13425     ac_cs_version="\\
13426     config.status
13427     configured by $0, generated by GNU Autoconf 2.59,
13428     with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13429    
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."
13433     srcdir=$srcdir
13434     INSTALL="$INSTALL"
13435     _ACEOF
13436    
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.
13440     ac_need_defaults=:
13441     while test $# != 0
13442 pcg 1.1 do
13443 pcg 1.11 case $1 in
13444     --*=*)
13445     ac_option=`expr "x$1" : 'x\([^=]*\)='`
13446     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13447     ac_shift=:
13448     ;;
13449     -*)
13450     ac_option=$1
13451     ac_optarg=$2
13452     ac_shift=shift
13453     ;;
13454     *) # This is not an option, so the user has probably given explicit
13455     # arguments.
13456     ac_option=$1
13457     ac_need_defaults=false;;
13458     esac
13459    
13460     case $ac_option in
13461     # Handling of the options.
13462     _ACEOF
13463     cat >>$CONFIG_STATUS <<\_ACEOF
13464 pcg 1.1 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13465 pcg 1.11 ac_cs_recheck=: ;;
13466     --version | --vers* | -V )
13467     echo "$ac_cs_version"; exit 0 ;;
13468     --he | --h)
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 )
13478     debug=: ;;
13479     --file | --fil | --fi | --f )
13480     $ac_shift
13481     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13482     ac_need_defaults=false;;
13483     --header | --heade | --head | --hea )
13484     $ac_shift
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)
13489     ac_cs_silent=: ;;
13490    
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; }; } ;;
13497    
13498     *) ac_config_targets="$ac_config_targets $1" ;;
13499    
13500     esac
13501     shift
13502     done
13503    
13504     ac_configure_extra_args=
13505    
13506     if $ac_cs_silent; then
13507     exec 6>/dev/null
13508     ac_configure_extra_args="$ac_configure_extra_args --silent"
13509     fi
13510    
13511     _ACEOF
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
13516     fi
13517    
13518     _ACEOF
13519    
13520    
13521    
13522    
13523    
13524     cat >>$CONFIG_STATUS <<\_ACEOF
13525     for ac_config_target in $ac_config_targets
13526     do
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; }; };;
13538 pcg 1.1 esac
13539     done
13540    
13541 pcg 1.11 # 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
13548     fi
13549    
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.
13554     $debug ||
13555     {
13556     trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13557     trap '{ (exit 1); exit 1; }' 1 2 13 15
13558     }
13559    
13560     # Create a (secure) tmp directory for tmp files.
13561    
13562     {
13563     tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13564     test -n "$tmp" && test -d "$tmp"
13565     } ||
13566     {
13567     tmp=./confstat$$-$RANDOM
13568     (umask 077 && mkdir $tmp)
13569     } ||
13570     {
13571     echo "$me: cannot create a temporary directory in ." >&2
13572     { (exit 1); exit 1; }
13573     }
13574    
13575     _ACEOF
13576    
13577     cat >>$CONFIG_STATUS <<_ACEOF
13578 pcg 1.1
13579 pcg 1.11 #
13580     # CONFIG_FILES section.
13581     #
13582 pcg 1.1
13583 pcg 1.11 # 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 root 1.48 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 pcg 1.11 s,@VERSION@,$VERSION,;t t
13628     s,@DATE@,$DATE,;t t
13629     s,@LSMDATE@,$LSMDATE,;t t
13630     s,@LIBVERSION@,$LIBVERSION,;t t
13631     s,@CC@,$CC,;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
13638     s,@CXX@,$CXX,;t t
13639     s,@CXXFLAGS@,$CXXFLAGS,;t t
13640     s,@ac_ct_CXX@,$ac_ct_CXX,;t t
13641     s,@CPP@,$CPP,;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
13645     s,@AWK@,$AWK,;t t
13646 pcg 1.13 s,@LINKER@,$LINKER,;t t
13647     s,@CXXCPP@,$CXXCPP,;t t
13648 pcg 1.11 s,@EGREP@,$EGREP,;t t
13649     s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t
13650 pcg 1.15 s,@RXVTNAME@,$RXVTNAME,;t t
13651 pcg 1.11 s,@MV@,$MV,;t t
13652     s,@RM@,$RM,;t t
13653     s,@CP@,$CP,;t t
13654     s,@LN@,$LN,;t t
13655     s,@SED@,$SED,;t t
13656 root 1.51 s,@ECHO@,$ECHO,;t t
13657 pcg 1.11 s,@CMP@,$CMP,;t t
13658     s,@TBL@,$TBL,;t t
13659 root 1.39 s,@TIC@,$TIC,;t t
13660 pcg 1.11 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 root 1.60 s,@PERL@,$PERL,;t t
13674     s,@PERLLIB@,$PERLLIB,;t t
13675     s,@PERLFLAGS@,$PERLFLAGS,;t t
13676 root 1.61 s,@PERLPRIVLIBEXP@,$PERLPRIVLIBEXP,;t t
13677 root 1.60 s,@IF_PERL@,$IF_PERL,;t t
13678     s,@PERL_O@,$PERL_O,;t t
13679 pcg 1.11 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 pcg 1.1 /@MCOMMON@/r $MCOMMON
13698 pcg 1.11 s,@MCOMMON@,,;t t
13699 pcg 1.1 CEOF
13700    
13701 pcg 1.11 _ACEOF
13702 pcg 1.1
13703 pcg 1.11 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.
13710     ac_more_lines=:
13711     ac_sed_cmds=
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
13715     else
13716     sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13717     fi
13718     if test ! -s $tmp/subs.frag; then
13719     ac_more_lines=false
13720 pcg 1.1 else
13721 pcg 1.11 # 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.
13725     (echo ':t
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"
13729     else
13730     ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13731     fi
13732     ac_sed_frag=`expr $ac_sed_frag + 1`
13733     ac_beg=$ac_end
13734     ac_end=`expr $ac_end + $ac_max_sed_lines`
13735 pcg 1.1 fi
13736 pcg 1.11 done
13737     if test -z "$ac_sed_cmds"; then
13738     ac_sed_cmds=cat
13739 pcg 1.1 fi
13740 pcg 1.11 fi # test -n "$CONFIG_FILES"
13741 pcg 1.1
13742 pcg 1.11 _ACEOF
13743     cat >>$CONFIG_STATUS <<\_ACEOF
13744     for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13745 pcg 1.1 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13746 pcg 1.11 case $ac_file in
13747     - | *:- | *:-:* ) # input from stdin
13748     cat >$tmp/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 ;;
13754 pcg 1.1 esac
13755    
13756 pcg 1.11 # 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 ||
13763     echo X"$ac_file" |
13764     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13765     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13766     /^X\(\/\/\)$/{ s//\1/; q; }
13767     /^X\(\/\).*/{ s//\1/; q; }
13768     s/.*/./; q'`
13769     { if $as_mkdir_p; then
13770     mkdir -p "$ac_dir"
13771     else
13772     as_dir="$ac_dir"
13773     as_dirs=
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 ||
13782     echo X"$as_dir" |
13783     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13784     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13785     /^X\(\/\/\)$/{ s//\1/; q; }
13786     /^X\(\/\).*/{ s//\1/; q; }
13787     s/.*/./; q'`
13788     done
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; }; }; }
13793    
13794     ac_builddir=.
13795    
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'`
13800     else
13801     ac_dir_suffix= ac_top_builddir=
13802     fi
13803    
13804     case $srcdir in
13805     .) # No --srcdir option. We are building in place.
13806     ac_srcdir=.
13807     if test -z "$ac_top_builddir"; then
13808     ac_top_srcdir=.
13809     else
13810     ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13811     fi ;;
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 ;;
13818     esac
13819    
13820     # Do not use `cd foo && pwd` to compute absolute paths, because
13821     # the directories may not exist.
13822     case `pwd` in
13823     .) ac_abs_builddir="$ac_dir";;
13824     *)
13825     case "$ac_dir" in
13826     .) ac_abs_builddir=`pwd`;;
13827     [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13828     *) ac_abs_builddir=`pwd`/"$ac_dir";;
13829     esac;;
13830     esac
13831     case $ac_abs_builddir in
13832     .) ac_abs_top_builddir=${ac_top_builddir}.;;
13833     *)
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}.;;
13838     esac;;
13839     esac
13840     case $ac_abs_builddir in
13841     .) ac_abs_srcdir=$ac_srcdir;;
13842     *)
13843     case $ac_srcdir in
13844     .) ac_abs_srcdir=$ac_abs_builddir;;
13845     [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13846     *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13847     esac;;
13848     esac
13849     case $ac_abs_builddir in
13850     .) ac_abs_top_srcdir=$ac_top_srcdir;;
13851     *)
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;;
13856     esac;;
13857     esac
13858    
13859 pcg 1.1
13860 pcg 1.11 case $INSTALL in
13861     [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13862     *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13863 pcg 1.1 esac
13864    
13865 pcg 1.11 # 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
13869     configure_input=
13870     else
13871     configure_input="$ac_file. "
13872     fi
13873     configure_input=$configure_input"Generated from `echo $ac_file_in |
13874     sed 's,.*/,,'` by configure."
13875    
13876     # First look for the input files in the build tree, otherwise in the
13877     # src tree.
13878     ac_file_inputs=`IFS=:
13879     for f in $ac_file_in; do
13880     case $f in
13881     -) echo $tmp/stdin ;;
13882     [\\/$]*)
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; }; }
13887     echo "$f";;
13888     *) # Relative
13889     if test -f "$f"; then
13890     # Build tree
13891     echo "$f"
13892     elif test -f "$srcdir/$f"; then
13893     # Source tree
13894     echo "$srcdir/$f"
13895     else
13896     # /dev/null tree
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; }; }
13900     fi;;
13901     esac
13902     done` || { (exit 1); exit 1; }
13903    
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;}
13907     rm -f "$ac_file"
13908     fi
13909     _ACEOF
13910     cat >>$CONFIG_STATUS <<_ACEOF
13911     sed "$ac_vpsub
13912     $extrasub
13913     _ACEOF
13914     cat >>$CONFIG_STATUS <<\_ACEOF
13915     :t
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
13928     rm -f $tmp/stdin
13929     if test x"$ac_file" != x-; then
13930     mv $tmp/out $ac_file
13931     else
13932     cat $tmp/out
13933     rm -f $tmp/out
13934     fi
13935 pcg 1.1
13936 pcg 1.11 done
13937     _ACEOF
13938     cat >>$CONFIG_STATUS <<\_ACEOF
13939 pcg 1.1
13940 pcg 1.11 #
13941     # CONFIG_HEADER section.
13942     #
13943 pcg 1.1
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.
13946     #
13947     # ac_d sets the value in "#define NAME VALUE" lines.
13948 pcg 1.11 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13949     ac_dB='[ ].*$,\1#\2'
13950     ac_dC=' '
13951     ac_dD=',;t'
13952     # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13953     ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13954     ac_uB='$,\1#\2define\3'
13955 pcg 1.1 ac_uC=' '
13956 pcg 1.11 ac_uD=',;t'
13957 pcg 1.1
13958 pcg 1.11 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13959 pcg 1.1 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13960 pcg 1.11 case $ac_file in
13961     - | *:- | *:-:* ) # input from stdin
13962     cat >$tmp/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 ;;
13968 pcg 1.1 esac
13969    
13970 pcg 1.11 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13971     echo "$as_me: creating $ac_file" >&6;}
13972 pcg 1.1
13973 pcg 1.11 # First look for the input files in the build tree, otherwise in the
13974     # src tree.
13975     ac_file_inputs=`IFS=:
13976     for f in $ac_file_in; do
13977     case $f in
13978     -) echo $tmp/stdin ;;
13979     [\\/$]*)
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.
13985     echo "$f";;
13986     *) # Relative
13987     if test -f "$f"; then
13988     # Build tree
13989     echo "$f"
13990     elif test -f "$srcdir/$f"; then
13991     # Source tree
13992     echo "$srcdir/$f"
13993     else
13994     # /dev/null tree
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; }; }
13998     fi;;
13999     esac
14000     done` || { (exit 1); exit 1; }
14001     # Remove the trailing spaces.
14002     sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14003    
14004     _ACEOF
14005    
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.
14016     #
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
14021     s/[\\&,]/\\&/g
14022     s,[\\$`],\\&,g
14023     t clear
14024     : clear
14025     s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14026     t end
14027     s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14028     : end
14029     _ACEOF
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
14036 pcg 1.1
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 pcg 1.11 cat >>conftest.undefs <<\_ACEOF
14041     s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14042     _ACEOF
14043    
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
14052     do
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
14061     echo 'CEOF
14062     sed -f $tmp/defines.sed $tmp/in >$tmp/out
14063     rm -f $tmp/in
14064     mv $tmp/out $tmp/in
14065     ' >>$CONFIG_STATUS
14066     sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14067     rm -f conftest.defines
14068     mv conftest.tail conftest.defines
14069     done
14070     rm -f conftest.defines
14071     echo ' fi # grep' >>$CONFIG_STATUS
14072     echo >>$CONFIG_STATUS
14073    
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 pcg 1.1 rm -f conftest.tail
14078 pcg 1.11 while grep . conftest.undefs >/dev/null
14079 pcg 1.1 do
14080 pcg 1.11 # 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
14088 pcg 1.1 echo 'CEOF
14089 pcg 1.11 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14090     rm -f $tmp/in
14091     mv $tmp/out $tmp/in
14092     ' >>$CONFIG_STATUS
14093     sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14094     rm -f conftest.undefs
14095     mv conftest.tail conftest.undefs
14096     done
14097     rm -f conftest.undefs
14098    
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
14105     else
14106     echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
14107     fi
14108     cat $tmp/in >>$tmp/config.h
14109     rm -f $tmp/in
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;}
14114     else
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 ||
14121     echo X"$ac_file" |
14122     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14123     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14124     /^X\(\/\/\)$/{ s//\1/; q; }
14125     /^X\(\/\).*/{ s//\1/; q; }
14126     s/.*/./; q'`
14127     { if $as_mkdir_p; then
14128     mkdir -p "$ac_dir"
14129     else
14130     as_dir="$ac_dir"
14131     as_dirs=
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 ||
14140     echo X"$as_dir" |
14141     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14142     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14143     /^X\(\/\/\)$/{ s//\1/; q; }
14144     /^X\(\/\).*/{ s//\1/; q; }
14145     s/.*/./; q'`
14146     done
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; }; }; }
14151    
14152     rm -f $ac_file
14153     mv $tmp/config.h $ac_file
14154 pcg 1.1 fi
14155 pcg 1.11 else
14156     cat $tmp/config.h
14157     rm -f $tmp/config.h
14158 pcg 1.1 fi
14159 pcg 1.11 done
14160     _ACEOF
14161    
14162     cat >>$CONFIG_STATUS <<\_ACEOF
14163 pcg 1.1
14164 pcg 1.11 { (exit 0); exit 0; }
14165     _ACEOF
14166     chmod +x $CONFIG_STATUS
14167     ac_clean_files=$ac_clean_files_save
14168 pcg 1.1
14169    
14170 pcg 1.11 # 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
14179     ac_cs_success=:
14180     ac_config_status_args=
14181     test "$silent" = yes &&
14182     ac_config_status_args="$ac_config_status_args --quiet"
14183     exec 5>/dev/null
14184     $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14185     exec 5>>config.log
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; }
14189     fi
14190 pcg 1.1
14191    
14192     echo "Configuration:
14193    
14194     Rxvt version: $VERSION : $DATE
14195     Source code location: $srcdir
14196     Install path: ${prefix}/bin
14197 pcg 1.13 Compiler: $CXX
14198     Compiler flags: $CFLAGS
14199     Linker: $LINKER"
14200 pcg 1.1
14201     if test "$MALLOC_TYPE" = S; then
14202     echo " malloc support: system default"
14203     fi
14204     if test "$MALLOC_TYPE" = G; then
14205     echo " malloc support: Gray Watson's dmalloc"
14206     fi
14207     if test "$MALLOC_TYPE" = D; then
14208     echo " malloc support: Doug Lea's malloc"
14209     fi
14210    
14211     if test x$support_xpm = xyes; then
14212     echo " Xpm library: $XPM_LIBS"
14213     fi
14214    
14215     echo "
14216     The following are set in config.h
14217     "
14218     echo " pty/tty type: "$rxvt_cv_ptys
14219     if test x$support_utmp != xyes; then
14220 pcg 1.20 echo " utmp support: disabled"
14221     echo
14222 pcg 1.1 else
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 root 1.60 ttys/ttytab file: $rxvt_cv_path_ttytab
14230     embedded perl: $support_perl"
14231 pcg 1.20 echo
14232 pcg 1.1 fi
14233     if test x$term != x; then
14234 pcg 1.18 echo " set TERM to: $term"
14235 pcg 1.1 fi
14236     if test x$terminfo != x; then
14237 pcg 1.18 echo " set TERMINFO to: $terminfo"
14238     fi
14239     echo " default resource name: $RESNAME"
14240     echo " resource class: $RESCLASS"
14241     if test x$RESFALLBACK != x; then
14242     echo " resource class fallback: $RESFALLBACK"
14243 pcg 1.1 fi
14244 pcg 1.18 echo
14245 pcg 1.1 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 ".----------------------------------------------------------------."
14250     fi
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 ".----------------------------------------------------------------."
14260     fi
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 ".----------------------------------------------------------------."
14267     fi
14268 pcg 1.20
14269 root 1.53 echo " *** Optionally check src/feature.h for further options ***"
14270 pcg 1.20 echo
14271    
14272     echo ".----------------------------------------------------------------."
14273 root 1.55 echo ". NOTE: some features are disabled by default, try ."
14274 root 1.53 echo ". configure --help to get an idea of the optional features, ."
14275     echo ". or read ./README.configure ."
14276     echo ". ."
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 pcg 1.20 echo ".----------------------------------------------------------------."
14281     echo
14282