ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/configure
Revision: 1.74
Committed: Tue Jan 17 09:07:40 2006 UTC (18 years, 4 months ago) by root
Branch: MAIN
Changes since 1.73: +13 -1 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 root 1.73 ac_subst_files=''
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-xim XIM (X Input Method) protocol support
888     --enable-ttygid enable tty setting to group named "tty"
889     --disable-backspace-key disable handling of the backspace key
890     --disable-delete-key disable handling of the delete key
891     --disable-resources disable all resource checking
892 root 1.26 --enable-8bitctrls enable 8 bit control sequences (not recommended)
893 pcg 1.15 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
894 pcg 1.11 --disable-swapscreen disable swap screen support
895 root 1.34 --enable-iso14755 enable support for extended ISO 14755 modes
896 pcg 1.11 --enable-frills enable support for rarely used features
897     --enable-24bit enable support for using 24bit visuals if available
898     --enable-keepscrolling enable continual scrolling on scrollbar arrow press
899     --enable-selectionscrolling enable scrolling during selections
900     --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
901     --enable-slipwheeling enable slip wheel scrolling (requires previous)
902     --enable-dmalloc enable Gray Watson's malloc - for debugging use
903     --enable-dlmalloc enable Doug Lea's malloc - for production use
904     NOTE: enable only one malloc package
905     --enable-smart-resize enable smart growth/shrink behaviour
906     --enable-text-blink enable blinking text
907     --enable-pointer-blank enable pointer blank when typing or inactive pointer
908    
909     Optional Packages:
910     --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
911     --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
912 root 1.41 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)
913 pcg 1.15 --with-res-name=NAME use this as default resource name (default: urxvt)
914 pcg 1.18 --with-res-class=CLASS use this as the resource class (default: URxvt)
915 pcg 1.15 --with-name=NAME set the basename for the installed binaries (default: urxvt)
916     --with-term=NAME set the terminal to NAME (default: rxvt)
917 pcg 1.11 --with-terminfo=PATH set the path to the terminfo tree to PATH
918     --with-x use the X Window System
919     --with-xpm-includes=DIR use XPM includes in DIR
920     --with-xpm-library=DIR use XPM library in DIR
921     --with-xpm use XPM
922    
923     Some influential environment variables:
924     CC C compiler command
925     CFLAGS C compiler flags
926     LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
927     nonstandard directory <lib dir>
928     CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
929     headers in a nonstandard directory <include dir>
930     CXX C++ compiler command
931     CXXFLAGS C++ compiler flags
932     CPP C preprocessor
933 pcg 1.13 CXXCPP C++ preprocessor
934 pcg 1.11
935     Use these variables to override the choices made by `configure' or to help
936     it to find libraries and programs with nonstandard names/locations.
937    
938     _ACEOF
939     fi
940    
941     if test "$ac_init_help" = "recursive"; then
942     # If there are subdirs, report their specific --help.
943     ac_popdir=`pwd`
944     for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
945     test -d $ac_dir || continue
946     ac_builddir=.
947    
948     if test "$ac_dir" != .; then
949     ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
950     # A "../" for each directory in $ac_dir_suffix.
951     ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
952     else
953     ac_dir_suffix= ac_top_builddir=
954     fi
955    
956     case $srcdir in
957     .) # No --srcdir option. We are building in place.
958     ac_srcdir=.
959     if test -z "$ac_top_builddir"; then
960     ac_top_srcdir=.
961     else
962     ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
963     fi ;;
964     [\\/]* | ?:[\\/]* ) # Absolute path.
965     ac_srcdir=$srcdir$ac_dir_suffix;
966     ac_top_srcdir=$srcdir ;;
967     *) # Relative path.
968     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
969     ac_top_srcdir=$ac_top_builddir$srcdir ;;
970     esac
971    
972     # Do not use `cd foo && pwd` to compute absolute paths, because
973     # the directories may not exist.
974     case `pwd` in
975     .) ac_abs_builddir="$ac_dir";;
976     *)
977     case "$ac_dir" in
978     .) ac_abs_builddir=`pwd`;;
979     [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
980     *) ac_abs_builddir=`pwd`/"$ac_dir";;
981     esac;;
982     esac
983     case $ac_abs_builddir in
984     .) ac_abs_top_builddir=${ac_top_builddir}.;;
985     *)
986     case ${ac_top_builddir}. in
987     .) ac_abs_top_builddir=$ac_abs_builddir;;
988     [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
989     *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
990     esac;;
991     esac
992     case $ac_abs_builddir in
993     .) ac_abs_srcdir=$ac_srcdir;;
994     *)
995     case $ac_srcdir in
996     .) ac_abs_srcdir=$ac_abs_builddir;;
997     [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
998     *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
999     esac;;
1000     esac
1001     case $ac_abs_builddir in
1002     .) ac_abs_top_srcdir=$ac_top_srcdir;;
1003     *)
1004     case $ac_top_srcdir in
1005     .) ac_abs_top_srcdir=$ac_abs_builddir;;
1006     [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1007     *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1008     esac;;
1009     esac
1010    
1011     cd $ac_dir
1012     # Check for guested configure; otherwise get Cygnus style configure.
1013     if test -f $ac_srcdir/configure.gnu; then
1014     echo
1015     $SHELL $ac_srcdir/configure.gnu --help=recursive
1016     elif test -f $ac_srcdir/configure; then
1017     echo
1018     $SHELL $ac_srcdir/configure --help=recursive
1019     elif test -f $ac_srcdir/configure.ac ||
1020     test -f $ac_srcdir/configure.in; then
1021     echo
1022     $ac_configure --help
1023     else
1024     echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1025     fi
1026     cd "$ac_popdir"
1027     done
1028     fi
1029    
1030     test -n "$ac_init_help" && exit 0
1031     if $ac_init_version; then
1032     cat <<\_ACEOF
1033    
1034     Copyright (C) 2003 Free Software Foundation, Inc.
1035     This configure script is free software; the Free Software Foundation
1036     gives unlimited permission to copy, distribute and modify it.
1037     _ACEOF
1038     exit 0
1039     fi
1040     exec 5>config.log
1041     cat >&5 <<_ACEOF
1042     This file contains any messages produced by compilers while
1043     running configure, to aid debugging if configure makes a mistake.
1044    
1045     It was created by $as_me, which was
1046     generated by GNU Autoconf 2.59. Invocation command line was
1047    
1048     $ $0 $@
1049    
1050     _ACEOF
1051     {
1052     cat <<_ASUNAME
1053     ## --------- ##
1054     ## Platform. ##
1055     ## --------- ##
1056    
1057     hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1058     uname -m = `(uname -m) 2>/dev/null || echo unknown`
1059     uname -r = `(uname -r) 2>/dev/null || echo unknown`
1060     uname -s = `(uname -s) 2>/dev/null || echo unknown`
1061     uname -v = `(uname -v) 2>/dev/null || echo unknown`
1062    
1063     /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1064     /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1065    
1066     /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1067     /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1068     /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1069     hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1070     /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1071     /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1072     /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1073    
1074     _ASUNAME
1075    
1076     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1077     for as_dir in $PATH
1078     do
1079     IFS=$as_save_IFS
1080     test -z "$as_dir" && as_dir=.
1081     echo "PATH: $as_dir"
1082     done
1083    
1084     } >&5
1085    
1086     cat >&5 <<_ACEOF
1087    
1088    
1089     ## ----------- ##
1090     ## Core tests. ##
1091     ## ----------- ##
1092    
1093     _ACEOF
1094    
1095    
1096     # Keep a trace of the command line.
1097     # Strip out --no-create and --no-recursion so they do not pile up.
1098     # Strip out --silent because we don't want to record it for future runs.
1099     # Also quote any args containing shell meta-characters.
1100     # Make two passes to allow for proper duplicate-argument suppression.
1101     ac_configure_args=
1102     ac_configure_args0=
1103     ac_configure_args1=
1104     ac_sep=
1105     ac_must_keep_next=false
1106     for ac_pass in 1 2
1107     do
1108     for ac_arg
1109     do
1110     case $ac_arg in
1111     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1112     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1113     | -silent | --silent | --silen | --sile | --sil)
1114     continue ;;
1115     *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1116     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1117     esac
1118     case $ac_pass in
1119     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1120     2)
1121     ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1122     if test $ac_must_keep_next = true; then
1123     ac_must_keep_next=false # Got value, back to normal.
1124     else
1125     case $ac_arg in
1126     *=* | --config-cache | -C | -disable-* | --disable-* \
1127     | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1128     | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1129     | -with-* | --with-* | -without-* | --without-* | --x)
1130     case "$ac_configure_args0 " in
1131     "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1132     esac
1133     ;;
1134     -* ) ac_must_keep_next=true ;;
1135     esac
1136     fi
1137     ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1138     # Get rid of the leading space.
1139     ac_sep=" "
1140     ;;
1141     esac
1142     done
1143     done
1144     $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1145     $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1146    
1147     # When interrupted or exit'd, cleanup temporary files, and complete
1148     # config.log. We remove comments because anyway the quotes in there
1149     # would cause problems or look ugly.
1150     # WARNING: Be sure not to use single quotes in there, as some shells,
1151     # such as our DU 5.0 friend, will then `close' the trap.
1152     trap 'exit_status=$?
1153     # Save into config.log some information that might help in debugging.
1154     {
1155     echo
1156    
1157     cat <<\_ASBOX
1158     ## ---------------- ##
1159     ## Cache variables. ##
1160     ## ---------------- ##
1161     _ASBOX
1162     echo
1163     # The following way of writing the cache mishandles newlines in values,
1164     {
1165     (set) 2>&1 |
1166     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1167     *ac_space=\ *)
1168     sed -n \
1169     "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1170     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1171     ;;
1172     *)
1173     sed -n \
1174     "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1175     ;;
1176     esac;
1177     }
1178     echo
1179    
1180     cat <<\_ASBOX
1181     ## ----------------- ##
1182     ## Output variables. ##
1183     ## ----------------- ##
1184     _ASBOX
1185     echo
1186     for ac_var in $ac_subst_vars
1187     do
1188     eval ac_val=$`echo $ac_var`
1189     echo "$ac_var='"'"'$ac_val'"'"'"
1190     done | sort
1191     echo
1192    
1193     if test -n "$ac_subst_files"; then
1194     cat <<\_ASBOX
1195     ## ------------- ##
1196     ## Output files. ##
1197     ## ------------- ##
1198     _ASBOX
1199     echo
1200     for ac_var in $ac_subst_files
1201     do
1202     eval ac_val=$`echo $ac_var`
1203     echo "$ac_var='"'"'$ac_val'"'"'"
1204     done | sort
1205     echo
1206     fi
1207    
1208     if test -s confdefs.h; then
1209     cat <<\_ASBOX
1210     ## ----------- ##
1211     ## confdefs.h. ##
1212     ## ----------- ##
1213     _ASBOX
1214     echo
1215     sed "/^$/d" confdefs.h | sort
1216     echo
1217     fi
1218     test "$ac_signal" != 0 &&
1219     echo "$as_me: caught signal $ac_signal"
1220     echo "$as_me: exit $exit_status"
1221     } >&5
1222     rm -f core *.core &&
1223     rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1224     exit $exit_status
1225     ' 0
1226     for ac_signal in 1 2 13 15; do
1227     trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1228     done
1229     ac_signal=0
1230    
1231     # confdefs.h avoids OS command line length limits that DEFS can exceed.
1232     rm -rf conftest* confdefs.h
1233     # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1234     echo >confdefs.h
1235    
1236     # Predefined preprocessor variables.
1237    
1238     cat >>confdefs.h <<_ACEOF
1239     #define PACKAGE_NAME "$PACKAGE_NAME"
1240     _ACEOF
1241    
1242    
1243     cat >>confdefs.h <<_ACEOF
1244     #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1245     _ACEOF
1246    
1247    
1248     cat >>confdefs.h <<_ACEOF
1249     #define PACKAGE_VERSION "$PACKAGE_VERSION"
1250     _ACEOF
1251    
1252    
1253     cat >>confdefs.h <<_ACEOF
1254     #define PACKAGE_STRING "$PACKAGE_STRING"
1255     _ACEOF
1256    
1257    
1258     cat >>confdefs.h <<_ACEOF
1259     #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1260     _ACEOF
1261 pcg 1.1
1262 pcg 1.11
1263     # Let the site file select an alternate cache file if it wants to.
1264 pcg 1.1 # Prefer explicitly selected file to automatically selected ones.
1265     if test -z "$CONFIG_SITE"; then
1266     if test "x$prefix" != xNONE; then
1267     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1268     else
1269     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1270     fi
1271     fi
1272     for ac_site_file in $CONFIG_SITE; do
1273     if test -r "$ac_site_file"; then
1274 pcg 1.11 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1275     echo "$as_me: loading site script $ac_site_file" >&6;}
1276     sed 's/^/| /' "$ac_site_file" >&5
1277 pcg 1.1 . "$ac_site_file"
1278     fi
1279     done
1280    
1281     if test -r "$cache_file"; then
1282 pcg 1.11 # Some versions of bash will fail to source /dev/null (special
1283     # files actually), so we avoid doing that.
1284     if test -f "$cache_file"; then
1285     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1286     echo "$as_me: loading cache $cache_file" >&6;}
1287     case $cache_file in
1288     [\\/]* | ?:[\\/]* ) . $cache_file;;
1289     *) . ./$cache_file;;
1290     esac
1291     fi
1292 pcg 1.1 else
1293 pcg 1.11 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1294     echo "$as_me: creating cache $cache_file" >&6;}
1295     >$cache_file
1296     fi
1297    
1298     # Check that the precious variables saved in the cache have kept the same
1299     # value.
1300     ac_cache_corrupted=false
1301     for ac_var in `(set) 2>&1 |
1302     sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1303     eval ac_old_set=\$ac_cv_env_${ac_var}_set
1304     eval ac_new_set=\$ac_env_${ac_var}_set
1305     eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1306     eval ac_new_val="\$ac_env_${ac_var}_value"
1307     case $ac_old_set,$ac_new_set in
1308     set,)
1309     { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1310     echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1311     ac_cache_corrupted=: ;;
1312     ,set)
1313     { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1314     echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1315     ac_cache_corrupted=: ;;
1316     ,);;
1317     *)
1318     if test "x$ac_old_val" != "x$ac_new_val"; then
1319     { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1320     echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1321     { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1322     echo "$as_me: former value: $ac_old_val" >&2;}
1323     { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1324     echo "$as_me: current value: $ac_new_val" >&2;}
1325     ac_cache_corrupted=:
1326     fi;;
1327     esac
1328     # Pass precious variables to config.status.
1329     if test "$ac_new_set" = set; then
1330     case $ac_new_val in
1331     *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1332     ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1333     *) ac_arg=$ac_var=$ac_new_val ;;
1334     esac
1335     case " $ac_configure_args " in
1336     *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1337     *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1338     esac
1339     fi
1340     done
1341     if $ac_cache_corrupted; then
1342     { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1343     echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1344     { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1345     echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1346     { (exit 1); exit 1; }; }
1347 pcg 1.1 fi
1348    
1349     ac_ext=c
1350     ac_cpp='$CPP $CPPFLAGS'
1351 pcg 1.11 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1352     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1353     ac_compiler_gnu=$ac_cv_c_compiler_gnu
1354    
1355    
1356    
1357    
1358    
1359    
1360    
1361    
1362    
1363    
1364    
1365    
1366    
1367    
1368    
1369    
1370    
1371 pcg 1.1
1372    
1373 root 1.32
1374 root 1.72
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 root 1.72 orig_CXXFLAGS="$CXXFLAGS"
1465    
1466 pcg 1.1
1467 pcg 1.11 ac_ext=c
1468     ac_cpp='$CPP $CPPFLAGS'
1469     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1470     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1471     ac_compiler_gnu=$ac_cv_c_compiler_gnu
1472     if test -n "$ac_tool_prefix"; then
1473     # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1474     set dummy ${ac_tool_prefix}gcc; ac_word=$2
1475     echo "$as_me:$LINENO: checking for $ac_word" >&5
1476     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1477     if test "${ac_cv_prog_CC+set}" = set; then
1478     echo $ECHO_N "(cached) $ECHO_C" >&6
1479     else
1480     if test -n "$CC"; then
1481     ac_cv_prog_CC="$CC" # Let the user override the test.
1482     else
1483     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1484     for as_dir in $PATH
1485     do
1486     IFS=$as_save_IFS
1487     test -z "$as_dir" && as_dir=.
1488     for ac_exec_ext in '' $ac_executable_extensions; do
1489     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1490     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1491     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1492     break 2
1493     fi
1494     done
1495     done
1496    
1497     fi
1498     fi
1499     CC=$ac_cv_prog_CC
1500     if test -n "$CC"; then
1501     echo "$as_me:$LINENO: result: $CC" >&5
1502     echo "${ECHO_T}$CC" >&6
1503     else
1504     echo "$as_me:$LINENO: result: no" >&5
1505     echo "${ECHO_T}no" >&6
1506     fi
1507    
1508     fi
1509     if test -z "$ac_cv_prog_CC"; then
1510     ac_ct_CC=$CC
1511     # Extract the first word of "gcc", so it can be a program name with args.
1512 pcg 1.1 set dummy gcc; ac_word=$2
1513 pcg 1.11 echo "$as_me:$LINENO: checking for $ac_word" >&5
1514     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1515     if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1516     echo $ECHO_N "(cached) $ECHO_C" >&6
1517     else
1518     if test -n "$ac_ct_CC"; then
1519     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1520     else
1521     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1522     for as_dir in $PATH
1523     do
1524     IFS=$as_save_IFS
1525     test -z "$as_dir" && as_dir=.
1526     for ac_exec_ext in '' $ac_executable_extensions; do
1527     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1528     ac_cv_prog_ac_ct_CC="gcc"
1529     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1530     break 2
1531     fi
1532     done
1533     done
1534    
1535     fi
1536     fi
1537     ac_ct_CC=$ac_cv_prog_ac_ct_CC
1538     if test -n "$ac_ct_CC"; then
1539     echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1540     echo "${ECHO_T}$ac_ct_CC" >&6
1541     else
1542     echo "$as_me:$LINENO: result: no" >&5
1543     echo "${ECHO_T}no" >&6
1544     fi
1545    
1546     CC=$ac_ct_CC
1547     else
1548     CC="$ac_cv_prog_CC"
1549     fi
1550    
1551     if test -z "$CC"; then
1552     if test -n "$ac_tool_prefix"; then
1553     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1554     set dummy ${ac_tool_prefix}cc; ac_word=$2
1555     echo "$as_me:$LINENO: checking for $ac_word" >&5
1556     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1557     if test "${ac_cv_prog_CC+set}" = set; then
1558     echo $ECHO_N "(cached) $ECHO_C" >&6
1559 pcg 1.1 else
1560     if test -n "$CC"; then
1561     ac_cv_prog_CC="$CC" # Let the user override the test.
1562     else
1563 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1564     for as_dir in $PATH
1565     do
1566     IFS=$as_save_IFS
1567     test -z "$as_dir" && as_dir=.
1568     for ac_exec_ext in '' $ac_executable_extensions; do
1569     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1570     ac_cv_prog_CC="${ac_tool_prefix}cc"
1571     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1572     break 2
1573     fi
1574     done
1575     done
1576    
1577 pcg 1.1 fi
1578     fi
1579 pcg 1.11 CC=$ac_cv_prog_CC
1580 pcg 1.1 if test -n "$CC"; then
1581 pcg 1.11 echo "$as_me:$LINENO: result: $CC" >&5
1582     echo "${ECHO_T}$CC" >&6
1583     else
1584     echo "$as_me:$LINENO: result: no" >&5
1585     echo "${ECHO_T}no" >&6
1586     fi
1587    
1588     fi
1589     if test -z "$ac_cv_prog_CC"; then
1590     ac_ct_CC=$CC
1591     # Extract the first word of "cc", so it can be a program name with args.
1592     set dummy cc; ac_word=$2
1593     echo "$as_me:$LINENO: checking for $ac_word" >&5
1594     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1595     if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1596     echo $ECHO_N "(cached) $ECHO_C" >&6
1597     else
1598     if test -n "$ac_ct_CC"; then
1599     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1600     else
1601     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1602     for as_dir in $PATH
1603     do
1604     IFS=$as_save_IFS
1605     test -z "$as_dir" && as_dir=.
1606     for ac_exec_ext in '' $ac_executable_extensions; do
1607     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1608     ac_cv_prog_ac_ct_CC="cc"
1609     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1610     break 2
1611     fi
1612     done
1613     done
1614    
1615     fi
1616     fi
1617     ac_ct_CC=$ac_cv_prog_ac_ct_CC
1618     if test -n "$ac_ct_CC"; then
1619     echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1620     echo "${ECHO_T}$ac_ct_CC" >&6
1621     else
1622     echo "$as_me:$LINENO: result: no" >&5
1623     echo "${ECHO_T}no" >&6
1624     fi
1625    
1626     CC=$ac_ct_CC
1627 pcg 1.1 else
1628 pcg 1.11 CC="$ac_cv_prog_CC"
1629 pcg 1.1 fi
1630    
1631 pcg 1.11 fi
1632 pcg 1.1 if test -z "$CC"; then
1633     # Extract the first word of "cc", so it can be a program name with args.
1634     set dummy cc; ac_word=$2
1635 pcg 1.11 echo "$as_me:$LINENO: checking for $ac_word" >&5
1636     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1637     if test "${ac_cv_prog_CC+set}" = set; then
1638     echo $ECHO_N "(cached) $ECHO_C" >&6
1639 pcg 1.1 else
1640     if test -n "$CC"; then
1641     ac_cv_prog_CC="$CC" # Let the user override the test.
1642     else
1643     ac_prog_rejected=no
1644 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1645     for as_dir in $PATH
1646     do
1647     IFS=$as_save_IFS
1648     test -z "$as_dir" && as_dir=.
1649     for ac_exec_ext in '' $ac_executable_extensions; do
1650     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1651     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1652     ac_prog_rejected=yes
1653     continue
1654     fi
1655     ac_cv_prog_CC="cc"
1656     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1657     break 2
1658     fi
1659     done
1660     done
1661    
1662 pcg 1.1 if test $ac_prog_rejected = yes; then
1663     # We found a bogon in the path, so make sure we never use it.
1664     set dummy $ac_cv_prog_CC
1665     shift
1666 pcg 1.11 if test $# != 0; then
1667 pcg 1.1 # We chose a different compiler from the bogus one.
1668     # However, it has the same basename, so the bogon will be chosen
1669     # first if we set CC to just the basename; use the full file name.
1670     shift
1671 pcg 1.11 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1672 pcg 1.1 fi
1673     fi
1674     fi
1675     fi
1676 pcg 1.11 CC=$ac_cv_prog_CC
1677 pcg 1.1 if test -n "$CC"; then
1678 pcg 1.11 echo "$as_me:$LINENO: result: $CC" >&5
1679     echo "${ECHO_T}$CC" >&6
1680 pcg 1.1 else
1681 pcg 1.11 echo "$as_me:$LINENO: result: no" >&5
1682     echo "${ECHO_T}no" >&6
1683 pcg 1.1 fi
1684    
1685 pcg 1.11 fi
1686     if test -z "$CC"; then
1687     if test -n "$ac_tool_prefix"; then
1688     for ac_prog in cl
1689     do
1690     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1691     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1692     echo "$as_me:$LINENO: checking for $ac_word" >&5
1693     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1694     if test "${ac_cv_prog_CC+set}" = set; then
1695     echo $ECHO_N "(cached) $ECHO_C" >&6
1696 pcg 1.1 else
1697     if test -n "$CC"; then
1698     ac_cv_prog_CC="$CC" # Let the user override the test.
1699     else
1700 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1701     for as_dir in $PATH
1702     do
1703     IFS=$as_save_IFS
1704     test -z "$as_dir" && as_dir=.
1705     for ac_exec_ext in '' $ac_executable_extensions; do
1706     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1707     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1708     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1709     break 2
1710     fi
1711     done
1712     done
1713    
1714 pcg 1.1 fi
1715     fi
1716 pcg 1.11 CC=$ac_cv_prog_CC
1717 pcg 1.1 if test -n "$CC"; then
1718 pcg 1.11 echo "$as_me:$LINENO: result: $CC" >&5
1719     echo "${ECHO_T}$CC" >&6
1720 pcg 1.1 else
1721 pcg 1.11 echo "$as_me:$LINENO: result: no" >&5
1722     echo "${ECHO_T}no" >&6
1723     fi
1724    
1725     test -n "$CC" && break
1726     done
1727 pcg 1.1 fi
1728 pcg 1.11 if test -z "$CC"; then
1729     ac_ct_CC=$CC
1730     for ac_prog in cl
1731     do
1732     # Extract the first word of "$ac_prog", so it can be a program name with args.
1733     set dummy $ac_prog; ac_word=$2
1734     echo "$as_me:$LINENO: checking for $ac_word" >&5
1735     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1736     if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1737     echo $ECHO_N "(cached) $ECHO_C" >&6
1738     else
1739     if test -n "$ac_ct_CC"; then
1740     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1741     else
1742     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1743     for as_dir in $PATH
1744     do
1745     IFS=$as_save_IFS
1746     test -z "$as_dir" && as_dir=.
1747     for ac_exec_ext in '' $ac_executable_extensions; do
1748     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1749     ac_cv_prog_ac_ct_CC="$ac_prog"
1750     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1751     break 2
1752 pcg 1.1 fi
1753 pcg 1.11 done
1754     done
1755    
1756     fi
1757     fi
1758     ac_ct_CC=$ac_cv_prog_ac_ct_CC
1759     if test -n "$ac_ct_CC"; then
1760     echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1761     echo "${ECHO_T}$ac_ct_CC" >&6
1762     else
1763     echo "$as_me:$LINENO: result: no" >&5
1764     echo "${ECHO_T}no" >&6
1765     fi
1766    
1767     test -n "$ac_ct_CC" && break
1768     done
1769    
1770     CC=$ac_ct_CC
1771     fi
1772    
1773 pcg 1.1 fi
1774    
1775    
1776 pcg 1.11 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1777     See \`config.log' for more details." >&5
1778     echo "$as_me: error: no acceptable C compiler found in \$PATH
1779     See \`config.log' for more details." >&2;}
1780     { (exit 1); exit 1; }; }
1781    
1782     # Provide some information about the compiler.
1783     echo "$as_me:$LINENO:" \
1784     "checking for C compiler version" >&5
1785     ac_compiler=`set X $ac_compile; echo $2`
1786     { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1787     (eval $ac_compiler --version </dev/null >&5) 2>&5
1788     ac_status=$?
1789     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1790     (exit $ac_status); }
1791     { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1792     (eval $ac_compiler -v </dev/null >&5) 2>&5
1793     ac_status=$?
1794     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1795     (exit $ac_status); }
1796     { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1797     (eval $ac_compiler -V </dev/null >&5) 2>&5
1798     ac_status=$?
1799     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1800     (exit $ac_status); }
1801    
1802     cat >conftest.$ac_ext <<_ACEOF
1803     /* confdefs.h. */
1804     _ACEOF
1805     cat confdefs.h >>conftest.$ac_ext
1806     cat >>conftest.$ac_ext <<_ACEOF
1807     /* end confdefs.h. */
1808 pcg 1.1
1809 pcg 1.11 int
1810     main ()
1811     {
1812 pcg 1.1
1813 pcg 1.11 ;
1814     return 0;
1815     }
1816     _ACEOF
1817     ac_clean_files_save=$ac_clean_files
1818     ac_clean_files="$ac_clean_files a.out a.exe b.out"
1819     # Try to create an executable without -o first, disregard a.out.
1820     # It will help us diagnose broken compilers, and finding out an intuition
1821     # of exeext.
1822     echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1823     echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1824     ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1825     if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1826     (eval $ac_link_default) 2>&5
1827     ac_status=$?
1828     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1829     (exit $ac_status); }; then
1830     # Find the output, starting from the most likely. This scheme is
1831     # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1832     # resort.
1833    
1834     # Be careful to initialize this variable, since it used to be cached.
1835     # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1836     ac_cv_exeext=
1837     # b.out is created by i960 compilers.
1838     for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1839     do
1840     test -f "$ac_file" || continue
1841     case $ac_file in
1842     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1843     ;;
1844     conftest.$ac_ext )
1845     # This is the source file.
1846     ;;
1847     [ab].out )
1848     # We found the default executable, but exeext='' is most
1849     # certainly right.
1850     break;;
1851     *.* )
1852     ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1853     # FIXME: I believe we export ac_cv_exeext for Libtool,
1854     # but it would be cool to find out if it's true. Does anybody
1855     # maintain Libtool? --akim.
1856     export ac_cv_exeext
1857     break;;
1858     * )
1859     break;;
1860     esac
1861     done
1862     else
1863     echo "$as_me: failed program was:" >&5
1864     sed 's/^/| /' conftest.$ac_ext >&5
1865 pcg 1.1
1866 pcg 1.11 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1867     See \`config.log' for more details." >&5
1868     echo "$as_me: error: C compiler cannot create executables
1869     See \`config.log' for more details." >&2;}
1870     { (exit 77); exit 77; }; }
1871     fi
1872    
1873     ac_exeext=$ac_cv_exeext
1874     echo "$as_me:$LINENO: result: $ac_file" >&5
1875     echo "${ECHO_T}$ac_file" >&6
1876    
1877     # Check the compiler produces executables we can run. If not, either
1878     # the compiler is broken, or we cross compile.
1879     echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1880     echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1881     # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1882     # If not cross compiling, check that we can run a simple program.
1883     if test "$cross_compiling" != yes; then
1884     if { ac_try='./$ac_file'
1885     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1886     (eval $ac_try) 2>&5
1887     ac_status=$?
1888     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1889     (exit $ac_status); }; }; then
1890     cross_compiling=no
1891     else
1892     if test "$cross_compiling" = maybe; then
1893     cross_compiling=yes
1894     else
1895     { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1896     If you meant to cross compile, use \`--host'.
1897     See \`config.log' for more details." >&5
1898     echo "$as_me: error: cannot run C compiled programs.
1899     If you meant to cross compile, use \`--host'.
1900     See \`config.log' for more details." >&2;}
1901     { (exit 1); exit 1; }; }
1902     fi
1903 pcg 1.1 fi
1904 pcg 1.11 fi
1905     echo "$as_me:$LINENO: result: yes" >&5
1906     echo "${ECHO_T}yes" >&6
1907    
1908     rm -f a.out a.exe conftest$ac_cv_exeext b.out
1909     ac_clean_files=$ac_clean_files_save
1910     # Check the compiler produces executables we can run. If not, either
1911     # the compiler is broken, or we cross compile.
1912     echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1913     echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1914     echo "$as_me:$LINENO: result: $cross_compiling" >&5
1915     echo "${ECHO_T}$cross_compiling" >&6
1916    
1917     echo "$as_me:$LINENO: checking for suffix of executables" >&5
1918     echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1919     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1920     (eval $ac_link) 2>&5
1921     ac_status=$?
1922     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1923     (exit $ac_status); }; then
1924     # If both `conftest.exe' and `conftest' are `present' (well, observable)
1925     # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1926     # work properly (i.e., refer to `conftest.exe'), while it won't with
1927     # `rm'.
1928     for ac_file in conftest.exe conftest conftest.*; do
1929     test -f "$ac_file" || continue
1930     case $ac_file in
1931     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1932     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1933     export ac_cv_exeext
1934     break;;
1935     * ) break;;
1936     esac
1937     done
1938 pcg 1.1 else
1939 pcg 1.11 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1940     See \`config.log' for more details." >&5
1941     echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1942     See \`config.log' for more details." >&2;}
1943     { (exit 1); exit 1; }; }
1944 pcg 1.1 fi
1945 pcg 1.11
1946     rm -f conftest$ac_cv_exeext
1947     echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1948     echo "${ECHO_T}$ac_cv_exeext" >&6
1949    
1950     rm -f conftest.$ac_ext
1951     EXEEXT=$ac_cv_exeext
1952     ac_exeext=$EXEEXT
1953     echo "$as_me:$LINENO: checking for suffix of object files" >&5
1954     echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1955     if test "${ac_cv_objext+set}" = set; then
1956     echo $ECHO_N "(cached) $ECHO_C" >&6
1957     else
1958     cat >conftest.$ac_ext <<_ACEOF
1959     /* confdefs.h. */
1960     _ACEOF
1961     cat confdefs.h >>conftest.$ac_ext
1962     cat >>conftest.$ac_ext <<_ACEOF
1963     /* end confdefs.h. */
1964    
1965     int
1966     main ()
1967     {
1968    
1969     ;
1970     return 0;
1971     }
1972     _ACEOF
1973     rm -f conftest.o conftest.obj
1974     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1975     (eval $ac_compile) 2>&5
1976     ac_status=$?
1977     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1978     (exit $ac_status); }; then
1979     for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1980     case $ac_file in
1981     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1982     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1983     break;;
1984     esac
1985     done
1986 pcg 1.1 else
1987 pcg 1.11 echo "$as_me: failed program was:" >&5
1988     sed 's/^/| /' conftest.$ac_ext >&5
1989    
1990     { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1991     See \`config.log' for more details." >&5
1992     echo "$as_me: error: cannot compute suffix of object files: cannot compile
1993     See \`config.log' for more details." >&2;}
1994     { (exit 1); exit 1; }; }
1995 pcg 1.1 fi
1996 pcg 1.11
1997     rm -f conftest.$ac_cv_objext conftest.$ac_ext
1998 pcg 1.1 fi
1999 pcg 1.11 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2000     echo "${ECHO_T}$ac_cv_objext" >&6
2001     OBJEXT=$ac_cv_objext
2002     ac_objext=$OBJEXT
2003     echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2004     echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2005     if test "${ac_cv_c_compiler_gnu+set}" = set; then
2006     echo $ECHO_N "(cached) $ECHO_C" >&6
2007     else
2008     cat >conftest.$ac_ext <<_ACEOF
2009     /* confdefs.h. */
2010     _ACEOF
2011     cat confdefs.h >>conftest.$ac_ext
2012     cat >>conftest.$ac_ext <<_ACEOF
2013     /* end confdefs.h. */
2014    
2015     int
2016     main ()
2017     {
2018     #ifndef __GNUC__
2019     choke me
2020     #endif
2021 pcg 1.1
2022 pcg 1.11 ;
2023     return 0;
2024     }
2025     _ACEOF
2026     rm -f conftest.$ac_objext
2027     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2028     (eval $ac_compile) 2>conftest.er1
2029     ac_status=$?
2030     grep -v '^ *+' conftest.er1 >conftest.err
2031     rm -f conftest.er1
2032     cat conftest.err >&5
2033     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034     (exit $ac_status); } &&
2035     { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2036     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2037     (eval $ac_try) 2>&5
2038     ac_status=$?
2039     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040     (exit $ac_status); }; } &&
2041     { ac_try='test -s conftest.$ac_objext'
2042     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2043     (eval $ac_try) 2>&5
2044     ac_status=$?
2045     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2046     (exit $ac_status); }; }; then
2047     ac_compiler_gnu=yes
2048     else
2049     echo "$as_me: failed program was:" >&5
2050     sed 's/^/| /' conftest.$ac_ext >&5
2051    
2052     ac_compiler_gnu=no
2053     fi
2054     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2055     ac_cv_c_compiler_gnu=$ac_compiler_gnu
2056    
2057     fi
2058     echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2059     echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2060     GCC=`test $ac_compiler_gnu = yes && echo yes`
2061     ac_test_CFLAGS=${CFLAGS+set}
2062     ac_save_CFLAGS=$CFLAGS
2063     CFLAGS="-g"
2064     echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2065     echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2066     if test "${ac_cv_prog_cc_g+set}" = set; then
2067     echo $ECHO_N "(cached) $ECHO_C" >&6
2068     else
2069     cat >conftest.$ac_ext <<_ACEOF
2070     /* confdefs.h. */
2071     _ACEOF
2072     cat confdefs.h >>conftest.$ac_ext
2073     cat >>conftest.$ac_ext <<_ACEOF
2074     /* end confdefs.h. */
2075 pcg 1.1
2076 pcg 1.11 int
2077     main ()
2078     {
2079 pcg 1.1
2080 pcg 1.11 ;
2081     return 0;
2082     }
2083     _ACEOF
2084     rm -f conftest.$ac_objext
2085     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2086     (eval $ac_compile) 2>conftest.er1
2087     ac_status=$?
2088     grep -v '^ *+' conftest.er1 >conftest.err
2089     rm -f conftest.er1
2090     cat conftest.err >&5
2091     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092     (exit $ac_status); } &&
2093     { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2094     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2095     (eval $ac_try) 2>&5
2096     ac_status=$?
2097     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098     (exit $ac_status); }; } &&
2099     { ac_try='test -s conftest.$ac_objext'
2100     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2101     (eval $ac_try) 2>&5
2102     ac_status=$?
2103     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104     (exit $ac_status); }; }; then
2105 pcg 1.1 ac_cv_prog_cc_g=yes
2106     else
2107 pcg 1.11 echo "$as_me: failed program was:" >&5
2108     sed 's/^/| /' conftest.$ac_ext >&5
2109    
2110     ac_cv_prog_cc_g=no
2111 pcg 1.1 fi
2112 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2113 pcg 1.1 fi
2114 pcg 1.11 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2115     echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2116 pcg 1.1 if test "$ac_test_CFLAGS" = set; then
2117 pcg 1.11 CFLAGS=$ac_save_CFLAGS
2118 pcg 1.1 elif test $ac_cv_prog_cc_g = yes; then
2119     if test "$GCC" = yes; then
2120     CFLAGS="-g -O2"
2121     else
2122     CFLAGS="-g"
2123     fi
2124     else
2125     if test "$GCC" = yes; then
2126     CFLAGS="-O2"
2127     else
2128     CFLAGS=
2129     fi
2130     fi
2131 pcg 1.11 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2132     echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2133     if test "${ac_cv_prog_cc_stdc+set}" = set; then
2134     echo $ECHO_N "(cached) $ECHO_C" >&6
2135     else
2136     ac_cv_prog_cc_stdc=no
2137     ac_save_CC=$CC
2138     cat >conftest.$ac_ext <<_ACEOF
2139     /* confdefs.h. */
2140     _ACEOF
2141     cat confdefs.h >>conftest.$ac_ext
2142     cat >>conftest.$ac_ext <<_ACEOF
2143     /* end confdefs.h. */
2144     #include <stdarg.h>
2145     #include <stdio.h>
2146     #include <sys/types.h>
2147     #include <sys/stat.h>
2148     /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2149     struct buf { int x; };
2150     FILE * (*rcsopen) (struct buf *, struct stat *, int);
2151     static char *e (p, i)
2152     char **p;
2153     int i;
2154     {
2155     return p[i];
2156     }
2157     static char *f (char * (*g) (char **, int), char **p, ...)
2158     {
2159     char *s;
2160     va_list v;
2161     va_start (v,p);
2162     s = g (p, va_arg (v,int));
2163     va_end (v);
2164     return s;
2165     }
2166 pcg 1.1
2167 pcg 1.11 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2168     function prototypes and stuff, but not '\xHH' hex character constants.
2169     These don't provoke an error unfortunately, instead are silently treated
2170     as 'x'. The following induces an error, until -std1 is added to get
2171     proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2172     array size at least. It's necessary to write '\x00'==0 to get something
2173     that's true only with -std1. */
2174     int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2175    
2176     int test (int i, double x);
2177     struct s1 {int (*f) (int a);};
2178     struct s2 {int (*f) (double a);};
2179     int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2180     int argc;
2181     char **argv;
2182     int
2183     main ()
2184     {
2185     return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2186     ;
2187     return 0;
2188     }
2189     _ACEOF
2190     # Don't try gcc -ansi; that turns off useful extensions and
2191     # breaks some systems' header files.
2192     # AIX -qlanglvl=ansi
2193     # Ultrix and OSF/1 -std1
2194     # HP-UX 10.20 and later -Ae
2195     # HP-UX older versions -Aa -D_HPUX_SOURCE
2196     # SVR4 -Xc -D__EXTENSIONS__
2197     for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2198 pcg 1.1 do
2199 pcg 1.11 CC="$ac_save_CC $ac_arg"
2200     rm -f conftest.$ac_objext
2201     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2202     (eval $ac_compile) 2>conftest.er1
2203     ac_status=$?
2204     grep -v '^ *+' conftest.er1 >conftest.err
2205     rm -f conftest.er1
2206     cat conftest.err >&5
2207     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208     (exit $ac_status); } &&
2209     { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2210     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2211     (eval $ac_try) 2>&5
2212     ac_status=$?
2213     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214     (exit $ac_status); }; } &&
2215     { ac_try='test -s conftest.$ac_objext'
2216     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2217     (eval $ac_try) 2>&5
2218     ac_status=$?
2219     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220     (exit $ac_status); }; }; then
2221     ac_cv_prog_cc_stdc=$ac_arg
2222     break
2223 pcg 1.1 else
2224 pcg 1.11 echo "$as_me: failed program was:" >&5
2225     sed 's/^/| /' conftest.$ac_ext >&5
2226    
2227 pcg 1.1 fi
2228 pcg 1.11 rm -f conftest.err conftest.$ac_objext
2229 pcg 1.1 done
2230 pcg 1.11 rm -f conftest.$ac_ext conftest.$ac_objext
2231     CC=$ac_save_CC
2232 pcg 1.1
2233 pcg 1.11 fi
2234 pcg 1.1
2235 pcg 1.11 case "x$ac_cv_prog_cc_stdc" in
2236     x|xno)
2237     echo "$as_me:$LINENO: result: none needed" >&5
2238     echo "${ECHO_T}none needed" >&6 ;;
2239     *)
2240     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2241     echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2242     CC="$CC $ac_cv_prog_cc_stdc" ;;
2243     esac
2244 pcg 1.1
2245 pcg 1.11 # Some people use a C++ compiler to compile C. Since we use `exit',
2246     # in C++ we need to declare it. In case someone uses the same compiler
2247     # for both compiling C and C++ we need to have the C++ compiler decide
2248     # the declaration of exit, since it's the most demanding environment.
2249     cat >conftest.$ac_ext <<_ACEOF
2250     #ifndef __cplusplus
2251     choke me
2252     #endif
2253     _ACEOF
2254     rm -f conftest.$ac_objext
2255     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2256     (eval $ac_compile) 2>conftest.er1
2257     ac_status=$?
2258     grep -v '^ *+' conftest.er1 >conftest.err
2259     rm -f conftest.er1
2260     cat conftest.err >&5
2261     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262     (exit $ac_status); } &&
2263     { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2264     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2265     (eval $ac_try) 2>&5
2266     ac_status=$?
2267     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268     (exit $ac_status); }; } &&
2269     { ac_try='test -s conftest.$ac_objext'
2270     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271     (eval $ac_try) 2>&5
2272     ac_status=$?
2273     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274     (exit $ac_status); }; }; then
2275     for ac_declaration in \
2276     '' \
2277     'extern "C" void std::exit (int) throw (); using std::exit;' \
2278     'extern "C" void std::exit (int); using std::exit;' \
2279     'extern "C" void exit (int) throw ();' \
2280     'extern "C" void exit (int);' \
2281     'void exit (int);'
2282     do
2283     cat >conftest.$ac_ext <<_ACEOF
2284     /* confdefs.h. */
2285     _ACEOF
2286     cat confdefs.h >>conftest.$ac_ext
2287     cat >>conftest.$ac_ext <<_ACEOF
2288     /* end confdefs.h. */
2289     $ac_declaration
2290     #include <stdlib.h>
2291     int
2292     main ()
2293     {
2294     exit (42);
2295     ;
2296     return 0;
2297     }
2298     _ACEOF
2299     rm -f conftest.$ac_objext
2300     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2301     (eval $ac_compile) 2>conftest.er1
2302     ac_status=$?
2303     grep -v '^ *+' conftest.er1 >conftest.err
2304     rm -f conftest.er1
2305     cat conftest.err >&5
2306     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307     (exit $ac_status); } &&
2308     { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2309     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2310     (eval $ac_try) 2>&5
2311     ac_status=$?
2312     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313     (exit $ac_status); }; } &&
2314     { ac_try='test -s conftest.$ac_objext'
2315     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2316     (eval $ac_try) 2>&5
2317     ac_status=$?
2318     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319     (exit $ac_status); }; }; then
2320     :
2321     else
2322     echo "$as_me: failed program was:" >&5
2323     sed 's/^/| /' conftest.$ac_ext >&5
2324 pcg 1.1
2325 pcg 1.11 continue
2326     fi
2327     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2328     cat >conftest.$ac_ext <<_ACEOF
2329     /* confdefs.h. */
2330     _ACEOF
2331     cat confdefs.h >>conftest.$ac_ext
2332     cat >>conftest.$ac_ext <<_ACEOF
2333     /* end confdefs.h. */
2334     $ac_declaration
2335     int
2336     main ()
2337     {
2338     exit (42);
2339     ;
2340     return 0;
2341     }
2342     _ACEOF
2343     rm -f conftest.$ac_objext
2344     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2345     (eval $ac_compile) 2>conftest.er1
2346     ac_status=$?
2347     grep -v '^ *+' conftest.er1 >conftest.err
2348     rm -f conftest.er1
2349     cat conftest.err >&5
2350     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351     (exit $ac_status); } &&
2352     { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2353     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2354     (eval $ac_try) 2>&5
2355     ac_status=$?
2356     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357     (exit $ac_status); }; } &&
2358     { ac_try='test -s conftest.$ac_objext'
2359     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2360     (eval $ac_try) 2>&5
2361     ac_status=$?
2362     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363     (exit $ac_status); }; }; then
2364     break
2365     else
2366     echo "$as_me: failed program was:" >&5
2367     sed 's/^/| /' conftest.$ac_ext >&5
2368 pcg 1.1
2369 pcg 1.11 fi
2370     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2371     done
2372     rm -f conftest*
2373     if test -n "$ac_declaration"; then
2374     echo '#ifdef __cplusplus' >>confdefs.h
2375     echo $ac_declaration >>confdefs.h
2376     echo '#endif' >>confdefs.h
2377     fi
2378 pcg 1.1
2379     else
2380 pcg 1.11 echo "$as_me: failed program was:" >&5
2381     sed 's/^/| /' conftest.$ac_ext >&5
2382    
2383 pcg 1.1 fi
2384 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2385 pcg 1.1 ac_ext=c
2386     ac_cpp='$CPP $CPPFLAGS'
2387 pcg 1.11 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2388     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2389     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2390    
2391     ac_ext=cc
2392     ac_cpp='$CXXCPP $CPPFLAGS'
2393     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2394     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2395     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2396     if test -n "$ac_tool_prefix"; then
2397     for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2398     do
2399     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2400     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2401     echo "$as_me:$LINENO: checking for $ac_word" >&5
2402     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2403     if test "${ac_cv_prog_CXX+set}" = set; then
2404     echo $ECHO_N "(cached) $ECHO_C" >&6
2405     else
2406     if test -n "$CXX"; then
2407     ac_cv_prog_CXX="$CXX" # Let the user override the test.
2408 pcg 1.1 else
2409 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410     for as_dir in $PATH
2411     do
2412     IFS=$as_save_IFS
2413     test -z "$as_dir" && as_dir=.
2414     for ac_exec_ext in '' $ac_executable_extensions; do
2415     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2416     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2417     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2418     break 2
2419     fi
2420     done
2421     done
2422    
2423 pcg 1.1 fi
2424     fi
2425 pcg 1.11 CXX=$ac_cv_prog_CXX
2426     if test -n "$CXX"; then
2427     echo "$as_me:$LINENO: result: $CXX" >&5
2428     echo "${ECHO_T}$CXX" >&6
2429 pcg 1.1 else
2430 pcg 1.11 echo "$as_me:$LINENO: result: no" >&5
2431     echo "${ECHO_T}no" >&6
2432 pcg 1.1 fi
2433    
2434 pcg 1.11 test -n "$CXX" && break
2435     done
2436     fi
2437     if test -z "$CXX"; then
2438     ac_ct_CXX=$CXX
2439     for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2440     do
2441     # Extract the first word of "$ac_prog", so it can be a program name with args.
2442     set dummy $ac_prog; ac_word=$2
2443     echo "$as_me:$LINENO: checking for $ac_word" >&5
2444     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2445     if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2446     echo $ECHO_N "(cached) $ECHO_C" >&6
2447 pcg 1.1 else
2448 pcg 1.11 if test -n "$ac_ct_CXX"; then
2449     ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2450 pcg 1.1 else
2451 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452     for as_dir in $PATH
2453     do
2454     IFS=$as_save_IFS
2455     test -z "$as_dir" && as_dir=.
2456     for ac_exec_ext in '' $ac_executable_extensions; do
2457     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2458     ac_cv_prog_ac_ct_CXX="$ac_prog"
2459     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2460     break 2
2461     fi
2462     done
2463     done
2464    
2465 pcg 1.1 fi
2466 pcg 1.11 fi
2467     ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2468     if test -n "$ac_ct_CXX"; then
2469     echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2470     echo "${ECHO_T}$ac_ct_CXX" >&6
2471     else
2472     echo "$as_me:$LINENO: result: no" >&5
2473     echo "${ECHO_T}no" >&6
2474 pcg 1.1 fi
2475    
2476 pcg 1.11 test -n "$ac_ct_CXX" && break
2477     done
2478     test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2479    
2480     CXX=$ac_ct_CXX
2481     fi
2482    
2483    
2484     # Provide some information about the compiler.
2485     echo "$as_me:$LINENO:" \
2486     "checking for C++ compiler version" >&5
2487     ac_compiler=`set X $ac_compile; echo $2`
2488     { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2489     (eval $ac_compiler --version </dev/null >&5) 2>&5
2490     ac_status=$?
2491     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492     (exit $ac_status); }
2493     { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2494     (eval $ac_compiler -v </dev/null >&5) 2>&5
2495     ac_status=$?
2496     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497     (exit $ac_status); }
2498     { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2499     (eval $ac_compiler -V </dev/null >&5) 2>&5
2500     ac_status=$?
2501     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502     (exit $ac_status); }
2503    
2504     echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2505     echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2506     if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2507     echo $ECHO_N "(cached) $ECHO_C" >&6
2508     else
2509     cat >conftest.$ac_ext <<_ACEOF
2510     /* confdefs.h. */
2511     _ACEOF
2512     cat confdefs.h >>conftest.$ac_ext
2513     cat >>conftest.$ac_ext <<_ACEOF
2514     /* end confdefs.h. */
2515    
2516     int
2517     main ()
2518     {
2519     #ifndef __GNUC__
2520     choke me
2521     #endif
2522    
2523     ;
2524     return 0;
2525     }
2526     _ACEOF
2527     rm -f conftest.$ac_objext
2528     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2529     (eval $ac_compile) 2>conftest.er1
2530     ac_status=$?
2531     grep -v '^ *+' conftest.er1 >conftest.err
2532     rm -f conftest.er1
2533     cat conftest.err >&5
2534     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535     (exit $ac_status); } &&
2536     { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2537     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538     (eval $ac_try) 2>&5
2539     ac_status=$?
2540     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541     (exit $ac_status); }; } &&
2542     { ac_try='test -s conftest.$ac_objext'
2543     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2544     (eval $ac_try) 2>&5
2545     ac_status=$?
2546     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547     (exit $ac_status); }; }; then
2548     ac_compiler_gnu=yes
2549     else
2550     echo "$as_me: failed program was:" >&5
2551     sed 's/^/| /' conftest.$ac_ext >&5
2552    
2553     ac_compiler_gnu=no
2554     fi
2555     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2556     ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2557    
2558     fi
2559     echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2560     echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2561     GXX=`test $ac_compiler_gnu = yes && echo yes`
2562     ac_test_CXXFLAGS=${CXXFLAGS+set}
2563     ac_save_CXXFLAGS=$CXXFLAGS
2564     CXXFLAGS="-g"
2565     echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2566     echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2567     if test "${ac_cv_prog_cxx_g+set}" = set; then
2568     echo $ECHO_N "(cached) $ECHO_C" >&6
2569     else
2570     cat >conftest.$ac_ext <<_ACEOF
2571     /* confdefs.h. */
2572     _ACEOF
2573     cat confdefs.h >>conftest.$ac_ext
2574     cat >>conftest.$ac_ext <<_ACEOF
2575     /* end confdefs.h. */
2576    
2577     int
2578     main ()
2579     {
2580    
2581     ;
2582     return 0;
2583     }
2584     _ACEOF
2585     rm -f conftest.$ac_objext
2586     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2587     (eval $ac_compile) 2>conftest.er1
2588     ac_status=$?
2589     grep -v '^ *+' conftest.er1 >conftest.err
2590     rm -f conftest.er1
2591     cat conftest.err >&5
2592     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593     (exit $ac_status); } &&
2594     { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2595     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2596     (eval $ac_try) 2>&5
2597     ac_status=$?
2598     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599     (exit $ac_status); }; } &&
2600     { ac_try='test -s conftest.$ac_objext'
2601     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2602     (eval $ac_try) 2>&5
2603     ac_status=$?
2604     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605     (exit $ac_status); }; }; then
2606     ac_cv_prog_cxx_g=yes
2607     else
2608     echo "$as_me: failed program was:" >&5
2609     sed 's/^/| /' conftest.$ac_ext >&5
2610    
2611     ac_cv_prog_cxx_g=no
2612     fi
2613     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2614     fi
2615     echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2616     echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2617 pcg 1.1 if test "$ac_test_CXXFLAGS" = set; then
2618 pcg 1.11 CXXFLAGS=$ac_save_CXXFLAGS
2619 pcg 1.1 elif test $ac_cv_prog_cxx_g = yes; then
2620     if test "$GXX" = yes; then
2621     CXXFLAGS="-g -O2"
2622     else
2623     CXXFLAGS="-g"
2624     fi
2625     else
2626     if test "$GXX" = yes; then
2627     CXXFLAGS="-O2"
2628     else
2629     CXXFLAGS=
2630     fi
2631     fi
2632 pcg 1.11 for ac_declaration in \
2633     '' \
2634     'extern "C" void std::exit (int) throw (); using std::exit;' \
2635     'extern "C" void std::exit (int); using std::exit;' \
2636     'extern "C" void exit (int) throw ();' \
2637     'extern "C" void exit (int);' \
2638     'void exit (int);'
2639     do
2640     cat >conftest.$ac_ext <<_ACEOF
2641     /* confdefs.h. */
2642     _ACEOF
2643     cat confdefs.h >>conftest.$ac_ext
2644     cat >>conftest.$ac_ext <<_ACEOF
2645     /* end confdefs.h. */
2646     $ac_declaration
2647     #include <stdlib.h>
2648     int
2649     main ()
2650     {
2651     exit (42);
2652     ;
2653     return 0;
2654     }
2655     _ACEOF
2656     rm -f conftest.$ac_objext
2657     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2658     (eval $ac_compile) 2>conftest.er1
2659     ac_status=$?
2660     grep -v '^ *+' conftest.er1 >conftest.err
2661     rm -f conftest.er1
2662     cat conftest.err >&5
2663     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664     (exit $ac_status); } &&
2665     { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2666     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667     (eval $ac_try) 2>&5
2668     ac_status=$?
2669     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670     (exit $ac_status); }; } &&
2671     { ac_try='test -s conftest.$ac_objext'
2672     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673     (eval $ac_try) 2>&5
2674     ac_status=$?
2675     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676     (exit $ac_status); }; }; then
2677     :
2678     else
2679     echo "$as_me: failed program was:" >&5
2680     sed 's/^/| /' conftest.$ac_ext >&5
2681    
2682     continue
2683     fi
2684     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2685     cat >conftest.$ac_ext <<_ACEOF
2686     /* confdefs.h. */
2687     _ACEOF
2688     cat confdefs.h >>conftest.$ac_ext
2689     cat >>conftest.$ac_ext <<_ACEOF
2690     /* end confdefs.h. */
2691     $ac_declaration
2692     int
2693     main ()
2694     {
2695     exit (42);
2696     ;
2697     return 0;
2698     }
2699     _ACEOF
2700     rm -f conftest.$ac_objext
2701     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2702     (eval $ac_compile) 2>conftest.er1
2703     ac_status=$?
2704     grep -v '^ *+' conftest.er1 >conftest.err
2705     rm -f conftest.er1
2706     cat conftest.err >&5
2707     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708     (exit $ac_status); } &&
2709     { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2710     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2711     (eval $ac_try) 2>&5
2712     ac_status=$?
2713     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714     (exit $ac_status); }; } &&
2715     { ac_try='test -s conftest.$ac_objext'
2716     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2717     (eval $ac_try) 2>&5
2718     ac_status=$?
2719     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720     (exit $ac_status); }; }; then
2721     break
2722     else
2723     echo "$as_me: failed program was:" >&5
2724     sed 's/^/| /' conftest.$ac_ext >&5
2725    
2726     fi
2727     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2728     done
2729     rm -f conftest*
2730     if test -n "$ac_declaration"; then
2731     echo '#ifdef __cplusplus' >>confdefs.h
2732     echo $ac_declaration >>confdefs.h
2733     echo '#endif' >>confdefs.h
2734     fi
2735    
2736     ac_ext=c
2737     ac_cpp='$CPP $CPPFLAGS'
2738     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2739     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2740     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2741 pcg 1.1
2742 pcg 1.11 ac_ext=c
2743     ac_cpp='$CPP $CPPFLAGS'
2744     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2745     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2746     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2747     echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2748     echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2749 pcg 1.1 # On Suns, sometimes $CPP names a directory.
2750     if test -n "$CPP" && test -d "$CPP"; then
2751     CPP=
2752     fi
2753     if test -z "$CPP"; then
2754 pcg 1.11 if test "${ac_cv_prog_CPP+set}" = set; then
2755     echo $ECHO_N "(cached) $ECHO_C" >&6
2756 pcg 1.1 else
2757 pcg 1.11 # Double quotes because CPP needs to be expanded
2758     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2759     do
2760     ac_preproc_ok=false
2761     for ac_c_preproc_warn_flag in '' yes
2762     do
2763     # Use a header file that comes with gcc, so configuring glibc
2764     # with a fresh cross-compiler works.
2765     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2766     # <limits.h> exists even on freestanding compilers.
2767 pcg 1.1 # On the NeXT, cc -E runs the code through the compiler's parser,
2768 pcg 1.11 # not just through cpp. "Syntax error" is here to catch this case.
2769     cat >conftest.$ac_ext <<_ACEOF
2770     /* confdefs.h. */
2771     _ACEOF
2772     cat confdefs.h >>conftest.$ac_ext
2773     cat >>conftest.$ac_ext <<_ACEOF
2774     /* end confdefs.h. */
2775     #ifdef __STDC__
2776     # include <limits.h>
2777     #else
2778     # include <assert.h>
2779     #endif
2780     Syntax error
2781     _ACEOF
2782     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2783     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2784     ac_status=$?
2785     grep -v '^ *+' conftest.er1 >conftest.err
2786     rm -f conftest.er1
2787     cat conftest.err >&5
2788     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789     (exit $ac_status); } >/dev/null; then
2790     if test -s conftest.err; then
2791     ac_cpp_err=$ac_c_preproc_warn_flag
2792     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2793     else
2794     ac_cpp_err=
2795     fi
2796     else
2797     ac_cpp_err=yes
2798     fi
2799     if test -z "$ac_cpp_err"; then
2800 pcg 1.1 :
2801     else
2802 pcg 1.11 echo "$as_me: failed program was:" >&5
2803     sed 's/^/| /' conftest.$ac_ext >&5
2804    
2805     # Broken: fails on valid input.
2806     continue
2807     fi
2808     rm -f conftest.err conftest.$ac_ext
2809    
2810     # OK, works on sane cases. Now check whether non-existent headers
2811     # can be detected and how.
2812     cat >conftest.$ac_ext <<_ACEOF
2813     /* confdefs.h. */
2814     _ACEOF
2815     cat confdefs.h >>conftest.$ac_ext
2816     cat >>conftest.$ac_ext <<_ACEOF
2817     /* end confdefs.h. */
2818     #include <ac_nonexistent.h>
2819     _ACEOF
2820     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2821     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2822     ac_status=$?
2823     grep -v '^ *+' conftest.er1 >conftest.err
2824     rm -f conftest.er1
2825     cat conftest.err >&5
2826     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827     (exit $ac_status); } >/dev/null; then
2828     if test -s conftest.err; then
2829     ac_cpp_err=$ac_c_preproc_warn_flag
2830     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2831     else
2832     ac_cpp_err=
2833     fi
2834     else
2835     ac_cpp_err=yes
2836     fi
2837     if test -z "$ac_cpp_err"; then
2838     # Broken: success on invalid input.
2839     continue
2840     else
2841     echo "$as_me: failed program was:" >&5
2842     sed 's/^/| /' conftest.$ac_ext >&5
2843    
2844     # Passes both tests.
2845     ac_preproc_ok=:
2846     break
2847     fi
2848     rm -f conftest.err conftest.$ac_ext
2849    
2850     done
2851     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2852     rm -f conftest.err conftest.$ac_ext
2853     if $ac_preproc_ok; then
2854     break
2855     fi
2856    
2857     done
2858     ac_cv_prog_CPP=$CPP
2859    
2860     fi
2861     CPP=$ac_cv_prog_CPP
2862     else
2863     ac_cv_prog_CPP=$CPP
2864     fi
2865     echo "$as_me:$LINENO: result: $CPP" >&5
2866     echo "${ECHO_T}$CPP" >&6
2867     ac_preproc_ok=false
2868     for ac_c_preproc_warn_flag in '' yes
2869     do
2870     # Use a header file that comes with gcc, so configuring glibc
2871     # with a fresh cross-compiler works.
2872     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2873     # <limits.h> exists even on freestanding compilers.
2874     # On the NeXT, cc -E runs the code through the compiler's parser,
2875     # not just through cpp. "Syntax error" is here to catch this case.
2876     cat >conftest.$ac_ext <<_ACEOF
2877     /* confdefs.h. */
2878     _ACEOF
2879     cat confdefs.h >>conftest.$ac_ext
2880     cat >>conftest.$ac_ext <<_ACEOF
2881     /* end confdefs.h. */
2882     #ifdef __STDC__
2883     # include <limits.h>
2884     #else
2885     # include <assert.h>
2886     #endif
2887     Syntax error
2888     _ACEOF
2889     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2890     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2891     ac_status=$?
2892     grep -v '^ *+' conftest.er1 >conftest.err
2893     rm -f conftest.er1
2894     cat conftest.err >&5
2895     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896     (exit $ac_status); } >/dev/null; then
2897     if test -s conftest.err; then
2898     ac_cpp_err=$ac_c_preproc_warn_flag
2899     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2900     else
2901     ac_cpp_err=
2902     fi
2903 pcg 1.1 else
2904 pcg 1.11 ac_cpp_err=yes
2905     fi
2906     if test -z "$ac_cpp_err"; then
2907 pcg 1.1 :
2908     else
2909 pcg 1.11 echo "$as_me: failed program was:" >&5
2910     sed 's/^/| /' conftest.$ac_ext >&5
2911    
2912     # Broken: fails on valid input.
2913     continue
2914 pcg 1.1 fi
2915 pcg 1.11 rm -f conftest.err conftest.$ac_ext
2916    
2917     # OK, works on sane cases. Now check whether non-existent headers
2918     # can be detected and how.
2919     cat >conftest.$ac_ext <<_ACEOF
2920     /* confdefs.h. */
2921     _ACEOF
2922     cat confdefs.h >>conftest.$ac_ext
2923     cat >>conftest.$ac_ext <<_ACEOF
2924     /* end confdefs.h. */
2925     #include <ac_nonexistent.h>
2926     _ACEOF
2927     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2928     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2929     ac_status=$?
2930     grep -v '^ *+' conftest.er1 >conftest.err
2931     rm -f conftest.er1
2932     cat conftest.err >&5
2933     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934     (exit $ac_status); } >/dev/null; then
2935     if test -s conftest.err; then
2936     ac_cpp_err=$ac_c_preproc_warn_flag
2937     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2938     else
2939     ac_cpp_err=
2940     fi
2941     else
2942     ac_cpp_err=yes
2943 pcg 1.1 fi
2944 pcg 1.11 if test -z "$ac_cpp_err"; then
2945     # Broken: success on invalid input.
2946     continue
2947     else
2948     echo "$as_me: failed program was:" >&5
2949     sed 's/^/| /' conftest.$ac_ext >&5
2950    
2951     # Passes both tests.
2952     ac_preproc_ok=:
2953     break
2954 pcg 1.1 fi
2955 pcg 1.11 rm -f conftest.err conftest.$ac_ext
2956    
2957     done
2958     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2959     rm -f conftest.err conftest.$ac_ext
2960     if $ac_preproc_ok; then
2961     :
2962 pcg 1.1 else
2963 pcg 1.11 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2964     See \`config.log' for more details." >&5
2965     echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2966     See \`config.log' for more details." >&2;}
2967     { (exit 1); exit 1; }; }
2968 pcg 1.1 fi
2969 pcg 1.11
2970     ac_ext=c
2971     ac_cpp='$CPP $CPPFLAGS'
2972     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2973     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2974     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2975 pcg 1.1
2976     # Find a good install program. We prefer a C program (faster),
2977     # so one script is as good as another. But avoid the broken or
2978     # incompatible versions:
2979     # SysV /etc/install, /usr/sbin/install
2980     # SunOS /usr/etc/install
2981     # IRIX /sbin/install
2982     # AIX /bin/install
2983 pcg 1.11 # AmigaOS /C/install, which installs bootblocks on floppy discs
2984 pcg 1.1 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2985     # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2986     # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2987 pcg 1.11 # OS/2's system install, which has a completely different semantic
2988 pcg 1.1 # ./install, which can be erroneously created by make from ./install.sh.
2989 pcg 1.11 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2990     echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2991 pcg 1.1 if test -z "$INSTALL"; then
2992 pcg 1.11 if test "${ac_cv_path_install+set}" = set; then
2993     echo $ECHO_N "(cached) $ECHO_C" >&6
2994 pcg 1.1 else
2995 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996     for as_dir in $PATH
2997     do
2998     IFS=$as_save_IFS
2999     test -z "$as_dir" && as_dir=.
3000     # Account for people who put trailing slashes in PATH elements.
3001     case $as_dir/ in
3002     ./ | .// | /cC/* | \
3003     /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3004     ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3005     /usr/ucb/* ) ;;
3006     *)
3007     # OSF1 and SCO ODT 3.0 have their own names for install.
3008     # Don't use installbsd from OSF since it installs stuff as root
3009     # by default.
3010     for ac_prog in ginstall scoinst install; do
3011     for ac_exec_ext in '' $ac_executable_extensions; do
3012     if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3013 pcg 1.1 if test $ac_prog = install &&
3014 pcg 1.11 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3015 pcg 1.1 # AIX install. It has an incompatible calling convention.
3016     :
3017 pcg 1.11 elif test $ac_prog = install &&
3018     grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3019     # program-specific install script used by HP pwplus--don't use.
3020     :
3021 pcg 1.1 else
3022 pcg 1.11 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3023     break 3
3024 pcg 1.1 fi
3025     fi
3026     done
3027 pcg 1.11 done
3028     ;;
3029     esac
3030     done
3031    
3032 pcg 1.1
3033     fi
3034     if test "${ac_cv_path_install+set}" = set; then
3035 pcg 1.11 INSTALL=$ac_cv_path_install
3036 pcg 1.1 else
3037     # As a last resort, use the slow shell script. We don't cache a
3038     # path for INSTALL within a source directory, because that will
3039     # break other packages using the cache if that directory is
3040     # removed, or if the path is relative.
3041 pcg 1.11 INSTALL=$ac_install_sh
3042 pcg 1.1 fi
3043     fi
3044 pcg 1.11 echo "$as_me:$LINENO: result: $INSTALL" >&5
3045     echo "${ECHO_T}$INSTALL" >&6
3046 pcg 1.1
3047     # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3048     # It thinks the first close brace ends the variable substitution.
3049     test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3050    
3051 pcg 1.11 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3052 pcg 1.1
3053     test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3054    
3055 pcg 1.11 for ac_prog in gawk mawk nawk awk
3056 pcg 1.1 do
3057 pcg 1.11 # Extract the first word of "$ac_prog", so it can be a program name with args.
3058 pcg 1.1 set dummy $ac_prog; ac_word=$2
3059 pcg 1.11 echo "$as_me:$LINENO: checking for $ac_word" >&5
3060     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3061     if test "${ac_cv_prog_AWK+set}" = set; then
3062     echo $ECHO_N "(cached) $ECHO_C" >&6
3063 pcg 1.1 else
3064     if test -n "$AWK"; then
3065     ac_cv_prog_AWK="$AWK" # Let the user override the test.
3066     else
3067 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068     for as_dir in $PATH
3069     do
3070     IFS=$as_save_IFS
3071     test -z "$as_dir" && as_dir=.
3072     for ac_exec_ext in '' $ac_executable_extensions; do
3073     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3074     ac_cv_prog_AWK="$ac_prog"
3075     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3076     break 2
3077     fi
3078     done
3079     done
3080    
3081 pcg 1.1 fi
3082     fi
3083 pcg 1.11 AWK=$ac_cv_prog_AWK
3084 pcg 1.1 if test -n "$AWK"; then
3085 pcg 1.11 echo "$as_me:$LINENO: result: $AWK" >&5
3086     echo "${ECHO_T}$AWK" >&6
3087 pcg 1.1 else
3088 pcg 1.11 echo "$as_me:$LINENO: result: no" >&5
3089     echo "${ECHO_T}no" >&6
3090 pcg 1.1 fi
3091    
3092 pcg 1.11 test -n "$AWK" && break
3093 pcg 1.1 done
3094    
3095    
3096 pcg 1.13 ac_ext=c
3097     ac_cpp='$CPP $CPPFLAGS'
3098     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3099     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3100     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3101    
3102    
3103 root 1.48 if test -z "$orig_CXXFLAGS"; then
3104     if test x$GCC = xyes && test "x$GXX" = xyes; then
3105     CXXFLAGS="-g -O3"
3106 root 1.72 else
3107     CXXFLAGS="-O"
3108 root 1.48 fi
3109     CFLAGS="$CXXFLAGS"
3110     fi
3111    
3112 pcg 1.13 LINKER="$CXX"
3113     if test x$GCC = xyes && test x$GXX = xyes; then
3114    
3115     echo "$as_me:$LINENO: checking for main in -lsupc++" >&5
3116     echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6
3117     if test "${ac_cv_lib_supcpp_main+set}" = set; then
3118     echo $ECHO_N "(cached) $ECHO_C" >&6
3119     else
3120     ac_check_lib_save_LIBS=$LIBS
3121     LIBS="-lsupc++ $LIBS"
3122     cat >conftest.$ac_ext <<_ACEOF
3123     /* confdefs.h. */
3124     _ACEOF
3125     cat confdefs.h >>conftest.$ac_ext
3126     cat >>conftest.$ac_ext <<_ACEOF
3127     /* end confdefs.h. */
3128    
3129    
3130     int
3131     main ()
3132     {
3133     main ();
3134     ;
3135     return 0;
3136     }
3137     _ACEOF
3138     rm -f conftest.$ac_objext conftest$ac_exeext
3139     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3140     (eval $ac_link) 2>conftest.er1
3141     ac_status=$?
3142     grep -v '^ *+' conftest.er1 >conftest.err
3143     rm -f conftest.er1
3144     cat conftest.err >&5
3145     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146     (exit $ac_status); } &&
3147     { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3148     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3149     (eval $ac_try) 2>&5
3150     ac_status=$?
3151     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152     (exit $ac_status); }; } &&
3153     { ac_try='test -s conftest$ac_exeext'
3154     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3155     (eval $ac_try) 2>&5
3156     ac_status=$?
3157     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158     (exit $ac_status); }; }; then
3159     ac_cv_lib_supcpp_main=yes
3160     else
3161     echo "$as_me: failed program was:" >&5
3162     sed 's/^/| /' conftest.$ac_ext >&5
3163    
3164     ac_cv_lib_supcpp_main=no
3165     fi
3166     rm -f conftest.err conftest.$ac_objext \
3167     conftest$ac_exeext conftest.$ac_ext
3168     LIBS=$ac_check_lib_save_LIBS
3169     fi
3170     echo "$as_me:$LINENO: result: $ac_cv_lib_supcpp_main" >&5
3171     echo "${ECHO_T}$ac_cv_lib_supcpp_main" >&6
3172     if test $ac_cv_lib_supcpp_main = yes; then
3173    
3174     LINKER="$CC"
3175     LIBS="$LIBS -lsupc++"
3176    
3177     fi
3178    
3179     fi
3180     LINKER=$LINKER
3181    
3182    
3183 root 1.48
3184     cat >>confdefs.h <<\_ACEOF
3185     #define _GNU_SOURCE 1
3186     _ACEOF
3187    
3188    
3189     case $host in
3190     *-*-solaris* )
3191    
3192     cat >>confdefs.h <<\_ACEOF
3193     #define _XOPEN_SOURCE_EXTENDED 1
3194     _ACEOF
3195    
3196    
3197     cat >>confdefs.h <<\_ACEOF
3198     #define _XOPEN_SOURCE 2
3199     _ACEOF
3200    
3201    
3202     cat >>confdefs.h <<\_ACEOF
3203     #define __EXTENSIONS__ 1
3204     _ACEOF
3205    
3206     ;;
3207     esac
3208 pcg 1.13
3209    
3210     ac_ext=cc
3211     ac_cpp='$CXXCPP $CPPFLAGS'
3212     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3213     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3214     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3215    
3216    
3217    
3218     ac_ext=cc
3219     ac_cpp='$CXXCPP $CPPFLAGS'
3220     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3221     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3222     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3223     echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3224     echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3225     if test -z "$CXXCPP"; then
3226     if test "${ac_cv_prog_CXXCPP+set}" = set; then
3227     echo $ECHO_N "(cached) $ECHO_C" >&6
3228     else
3229     # Double quotes because CXXCPP needs to be expanded
3230     for CXXCPP in "$CXX -E" "/lib/cpp"
3231     do
3232     ac_preproc_ok=false
3233     for ac_cxx_preproc_warn_flag in '' yes
3234     do
3235     # Use a header file that comes with gcc, so configuring glibc
3236     # with a fresh cross-compiler works.
3237     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3238     # <limits.h> exists even on freestanding compilers.
3239     # On the NeXT, cc -E runs the code through the compiler's parser,
3240     # not just through cpp. "Syntax error" is here to catch this case.
3241     cat >conftest.$ac_ext <<_ACEOF
3242     /* confdefs.h. */
3243     _ACEOF
3244     cat confdefs.h >>conftest.$ac_ext
3245     cat >>conftest.$ac_ext <<_ACEOF
3246     /* end confdefs.h. */
3247     #ifdef __STDC__
3248     # include <limits.h>
3249     #else
3250     # include <assert.h>
3251     #endif
3252     Syntax error
3253     _ACEOF
3254     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3255     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3256     ac_status=$?
3257     grep -v '^ *+' conftest.er1 >conftest.err
3258     rm -f conftest.er1
3259     cat conftest.err >&5
3260     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261     (exit $ac_status); } >/dev/null; then
3262     if test -s conftest.err; then
3263     ac_cpp_err=$ac_cxx_preproc_warn_flag
3264     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3265     else
3266     ac_cpp_err=
3267     fi
3268     else
3269     ac_cpp_err=yes
3270     fi
3271     if test -z "$ac_cpp_err"; then
3272     :
3273     else
3274     echo "$as_me: failed program was:" >&5
3275     sed 's/^/| /' conftest.$ac_ext >&5
3276    
3277     # Broken: fails on valid input.
3278     continue
3279     fi
3280     rm -f conftest.err conftest.$ac_ext
3281    
3282     # OK, works on sane cases. Now check whether non-existent headers
3283     # can be detected and how.
3284     cat >conftest.$ac_ext <<_ACEOF
3285     /* confdefs.h. */
3286     _ACEOF
3287     cat confdefs.h >>conftest.$ac_ext
3288     cat >>conftest.$ac_ext <<_ACEOF
3289     /* end confdefs.h. */
3290     #include <ac_nonexistent.h>
3291     _ACEOF
3292     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3293     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3294     ac_status=$?
3295     grep -v '^ *+' conftest.er1 >conftest.err
3296     rm -f conftest.er1
3297     cat conftest.err >&5
3298     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299     (exit $ac_status); } >/dev/null; then
3300     if test -s conftest.err; then
3301     ac_cpp_err=$ac_cxx_preproc_warn_flag
3302     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3303     else
3304     ac_cpp_err=
3305     fi
3306     else
3307     ac_cpp_err=yes
3308     fi
3309     if test -z "$ac_cpp_err"; then
3310     # Broken: success on invalid input.
3311     continue
3312     else
3313     echo "$as_me: failed program was:" >&5
3314     sed 's/^/| /' conftest.$ac_ext >&5
3315    
3316     # Passes both tests.
3317     ac_preproc_ok=:
3318     break
3319     fi
3320     rm -f conftest.err conftest.$ac_ext
3321    
3322     done
3323     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3324     rm -f conftest.err conftest.$ac_ext
3325     if $ac_preproc_ok; then
3326     break
3327     fi
3328    
3329     done
3330     ac_cv_prog_CXXCPP=$CXXCPP
3331    
3332     fi
3333     CXXCPP=$ac_cv_prog_CXXCPP
3334     else
3335     ac_cv_prog_CXXCPP=$CXXCPP
3336     fi
3337     echo "$as_me:$LINENO: result: $CXXCPP" >&5
3338     echo "${ECHO_T}$CXXCPP" >&6
3339     ac_preproc_ok=false
3340     for ac_cxx_preproc_warn_flag in '' yes
3341     do
3342     # Use a header file that comes with gcc, so configuring glibc
3343     # with a fresh cross-compiler works.
3344     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3345     # <limits.h> exists even on freestanding compilers.
3346     # On the NeXT, cc -E runs the code through the compiler's parser,
3347     # not just through cpp. "Syntax error" is here to catch this case.
3348     cat >conftest.$ac_ext <<_ACEOF
3349     /* confdefs.h. */
3350     _ACEOF
3351     cat confdefs.h >>conftest.$ac_ext
3352     cat >>conftest.$ac_ext <<_ACEOF
3353     /* end confdefs.h. */
3354     #ifdef __STDC__
3355     # include <limits.h>
3356     #else
3357     # include <assert.h>
3358     #endif
3359     Syntax error
3360     _ACEOF
3361     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3362     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3363     ac_status=$?
3364     grep -v '^ *+' conftest.er1 >conftest.err
3365     rm -f conftest.er1
3366     cat conftest.err >&5
3367     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368     (exit $ac_status); } >/dev/null; then
3369     if test -s conftest.err; then
3370     ac_cpp_err=$ac_cxx_preproc_warn_flag
3371     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3372     else
3373     ac_cpp_err=
3374     fi
3375     else
3376     ac_cpp_err=yes
3377     fi
3378     if test -z "$ac_cpp_err"; then
3379     :
3380     else
3381     echo "$as_me: failed program was:" >&5
3382     sed 's/^/| /' conftest.$ac_ext >&5
3383    
3384     # Broken: fails on valid input.
3385     continue
3386     fi
3387     rm -f conftest.err conftest.$ac_ext
3388    
3389     # OK, works on sane cases. Now check whether non-existent headers
3390     # can be detected and how.
3391     cat >conftest.$ac_ext <<_ACEOF
3392     /* confdefs.h. */
3393     _ACEOF
3394     cat confdefs.h >>conftest.$ac_ext
3395     cat >>conftest.$ac_ext <<_ACEOF
3396     /* end confdefs.h. */
3397     #include <ac_nonexistent.h>
3398     _ACEOF
3399     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3400     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3401     ac_status=$?
3402     grep -v '^ *+' conftest.er1 >conftest.err
3403     rm -f conftest.er1
3404     cat conftest.err >&5
3405     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406     (exit $ac_status); } >/dev/null; then
3407     if test -s conftest.err; then
3408     ac_cpp_err=$ac_cxx_preproc_warn_flag
3409     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3410     else
3411     ac_cpp_err=
3412     fi
3413     else
3414     ac_cpp_err=yes
3415     fi
3416     if test -z "$ac_cpp_err"; then
3417     # Broken: success on invalid input.
3418     continue
3419     else
3420     echo "$as_me: failed program was:" >&5
3421     sed 's/^/| /' conftest.$ac_ext >&5
3422    
3423     # Passes both tests.
3424     ac_preproc_ok=:
3425     break
3426     fi
3427     rm -f conftest.err conftest.$ac_ext
3428    
3429     done
3430     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3431     rm -f conftest.err conftest.$ac_ext
3432     if $ac_preproc_ok; then
3433     :
3434     else
3435     { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3436     See \`config.log' for more details." >&5
3437     echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3438     See \`config.log' for more details." >&2;}
3439     { (exit 1); exit 1; }; }
3440     fi
3441    
3442     ac_ext=cc
3443     ac_cpp='$CXXCPP $CPPFLAGS'
3444     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3445     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3446     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3447 pcg 1.11
3448    
3449     echo "$as_me:$LINENO: checking for egrep" >&5
3450     echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3451     if test "${ac_cv_prog_egrep+set}" = set; then
3452     echo $ECHO_N "(cached) $ECHO_C" >&6
3453     else
3454     if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3455     then ac_cv_prog_egrep='grep -E'
3456     else ac_cv_prog_egrep='egrep'
3457     fi
3458     fi
3459     echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3460     echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3461     EGREP=$ac_cv_prog_egrep
3462    
3463    
3464    
3465     echo "$as_me:$LINENO: checking for AIX" >&5
3466     echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3467     cat >conftest.$ac_ext <<_ACEOF
3468     /* confdefs.h. */
3469     _ACEOF
3470     cat confdefs.h >>conftest.$ac_ext
3471     cat >>conftest.$ac_ext <<_ACEOF
3472     /* end confdefs.h. */
3473 pcg 1.1 #ifdef _AIX
3474     yes
3475     #endif
3476    
3477 pcg 1.11 _ACEOF
3478 pcg 1.1 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3479 pcg 1.11 $EGREP "yes" >/dev/null 2>&1; then
3480     echo "$as_me:$LINENO: result: yes" >&5
3481     echo "${ECHO_T}yes" >&6
3482     cat >>confdefs.h <<\_ACEOF
3483 pcg 1.1 #define _ALL_SOURCE 1
3484 pcg 1.11 _ACEOF
3485 pcg 1.1
3486     else
3487 pcg 1.11 echo "$as_me:$LINENO: result: no" >&5
3488     echo "${ECHO_T}no" >&6
3489 pcg 1.1 fi
3490     rm -f conftest*
3491    
3492    
3493 pcg 1.11 echo "$as_me:$LINENO: checking for library containing strerror" >&5
3494     echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
3495     if test "${ac_cv_search_strerror+set}" = set; then
3496     echo $ECHO_N "(cached) $ECHO_C" >&6
3497     else
3498     ac_func_search_save_LIBS=$LIBS
3499     ac_cv_search_strerror=no
3500     cat >conftest.$ac_ext <<_ACEOF
3501     /* confdefs.h. */
3502     _ACEOF
3503     cat confdefs.h >>conftest.$ac_ext
3504     cat >>conftest.$ac_ext <<_ACEOF
3505     /* end confdefs.h. */
3506    
3507     /* Override any gcc2 internal prototype to avoid an error. */
3508     #ifdef __cplusplus
3509     extern "C"
3510     #endif
3511     /* We use char because int might match the return type of a gcc2
3512     builtin and then its argument prototype would still apply. */
3513     char strerror ();
3514     int
3515     main ()
3516     {
3517     strerror ();
3518     ;
3519     return 0;
3520     }
3521     _ACEOF
3522     rm -f conftest.$ac_objext conftest$ac_exeext
3523     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3524     (eval $ac_link) 2>conftest.er1
3525     ac_status=$?
3526     grep -v '^ *+' conftest.er1 >conftest.err
3527     rm -f conftest.er1
3528     cat conftest.err >&5
3529     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530     (exit $ac_status); } &&
3531 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3532 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3533     (eval $ac_try) 2>&5
3534     ac_status=$?
3535     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536     (exit $ac_status); }; } &&
3537     { ac_try='test -s conftest$ac_exeext'
3538     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3539     (eval $ac_try) 2>&5
3540     ac_status=$?
3541     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542     (exit $ac_status); }; }; then
3543     ac_cv_search_strerror="none required"
3544     else
3545     echo "$as_me: failed program was:" >&5
3546     sed 's/^/| /' conftest.$ac_ext >&5
3547    
3548     fi
3549     rm -f conftest.err conftest.$ac_objext \
3550     conftest$ac_exeext conftest.$ac_ext
3551     if test "$ac_cv_search_strerror" = no; then
3552     for ac_lib in cposix; do
3553     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3554     cat >conftest.$ac_ext <<_ACEOF
3555     /* confdefs.h. */
3556     _ACEOF
3557     cat confdefs.h >>conftest.$ac_ext
3558     cat >>conftest.$ac_ext <<_ACEOF
3559     /* end confdefs.h. */
3560 pcg 1.1
3561 pcg 1.11 /* Override any gcc2 internal prototype to avoid an error. */
3562     #ifdef __cplusplus
3563     extern "C"
3564     #endif
3565     /* We use char because int might match the return type of a gcc2
3566     builtin and then its argument prototype would still apply. */
3567     char strerror ();
3568     int
3569     main ()
3570     {
3571     strerror ();
3572     ;
3573     return 0;
3574     }
3575     _ACEOF
3576     rm -f conftest.$ac_objext conftest$ac_exeext
3577     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3578     (eval $ac_link) 2>conftest.er1
3579     ac_status=$?
3580     grep -v '^ *+' conftest.er1 >conftest.err
3581     rm -f conftest.er1
3582     cat conftest.err >&5
3583     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584     (exit $ac_status); } &&
3585 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3586 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3587     (eval $ac_try) 2>&5
3588     ac_status=$?
3589     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590     (exit $ac_status); }; } &&
3591     { ac_try='test -s conftest$ac_exeext'
3592     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3593     (eval $ac_try) 2>&5
3594     ac_status=$?
3595     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596     (exit $ac_status); }; }; then
3597     ac_cv_search_strerror="-l$ac_lib"
3598     break
3599 pcg 1.1 else
3600 pcg 1.11 echo "$as_me: failed program was:" >&5
3601     sed 's/^/| /' conftest.$ac_ext >&5
3602    
3603     fi
3604     rm -f conftest.err conftest.$ac_objext \
3605     conftest$ac_exeext conftest.$ac_ext
3606     done
3607     fi
3608     LIBS=$ac_func_search_save_LIBS
3609     fi
3610     echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3611     echo "${ECHO_T}$ac_cv_search_strerror" >&6
3612     if test "$ac_cv_search_strerror" != no; then
3613     test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3614    
3615 pcg 1.1 fi
3616    
3617    
3618 root 1.57 echo "$as_me:$LINENO: checking for setlocale" >&5
3619     echo $ECHO_N "checking for setlocale... $ECHO_C" >&6
3620     if test "${ac_cv_func_setlocale+set}" = set; then
3621     echo $ECHO_N "(cached) $ECHO_C" >&6
3622     else
3623     cat >conftest.$ac_ext <<_ACEOF
3624     /* confdefs.h. */
3625     _ACEOF
3626     cat confdefs.h >>conftest.$ac_ext
3627     cat >>conftest.$ac_ext <<_ACEOF
3628     /* end confdefs.h. */
3629     /* Define setlocale to an innocuous variant, in case <limits.h> declares setlocale.
3630     For example, HP-UX 11i <limits.h> declares gettimeofday. */
3631     #define setlocale innocuous_setlocale
3632    
3633     /* System header to define __stub macros and hopefully few prototypes,
3634     which can conflict with char setlocale (); below.
3635     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3636     <limits.h> exists even on freestanding compilers. */
3637    
3638     #ifdef __STDC__
3639     # include <limits.h>
3640     #else
3641     # include <assert.h>
3642     #endif
3643    
3644     #undef setlocale
3645    
3646     /* Override any gcc2 internal prototype to avoid an error. */
3647     #ifdef __cplusplus
3648     extern "C"
3649     {
3650     #endif
3651     /* We use char because int might match the return type of a gcc2
3652     builtin and then its argument prototype would still apply. */
3653     char setlocale ();
3654     /* The GNU C library defines this for functions which it implements
3655     to always fail with ENOSYS. Some functions are actually named
3656     something starting with __ and the normal name is an alias. */
3657     #if defined (__stub_setlocale) || defined (__stub___setlocale)
3658     choke me
3659     #else
3660     char (*f) () = setlocale;
3661     #endif
3662     #ifdef __cplusplus
3663     }
3664     #endif
3665    
3666     int
3667     main ()
3668     {
3669     return f != setlocale;
3670     ;
3671     return 0;
3672     }
3673     _ACEOF
3674     rm -f conftest.$ac_objext conftest$ac_exeext
3675     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3676     (eval $ac_link) 2>conftest.er1
3677     ac_status=$?
3678     grep -v '^ *+' conftest.er1 >conftest.err
3679     rm -f conftest.er1
3680     cat conftest.err >&5
3681     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682     (exit $ac_status); } &&
3683     { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3684     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3685     (eval $ac_try) 2>&5
3686     ac_status=$?
3687     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688     (exit $ac_status); }; } &&
3689     { ac_try='test -s conftest$ac_exeext'
3690     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3691     (eval $ac_try) 2>&5
3692     ac_status=$?
3693     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694     (exit $ac_status); }; }; then
3695     ac_cv_func_setlocale=yes
3696     else
3697     echo "$as_me: failed program was:" >&5
3698     sed 's/^/| /' conftest.$ac_ext >&5
3699    
3700     ac_cv_func_setlocale=no
3701     fi
3702     rm -f conftest.err conftest.$ac_objext \
3703     conftest$ac_exeext conftest.$ac_ext
3704     fi
3705     echo "$as_me:$LINENO: result: $ac_cv_func_setlocale" >&5
3706     echo "${ECHO_T}$ac_cv_func_setlocale" >&6
3707     if test $ac_cv_func_setlocale = yes; then
3708     :
3709     else
3710     echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
3711 pcg 1.25 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
3712     if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
3713     echo $ECHO_N "(cached) $ECHO_C" >&6
3714     else
3715     ac_check_lib_save_LIBS=$LIBS
3716     LIBS="-lxpg4 $LIBS"
3717     cat >conftest.$ac_ext <<_ACEOF
3718     /* confdefs.h. */
3719     _ACEOF
3720     cat confdefs.h >>conftest.$ac_ext
3721     cat >>conftest.$ac_ext <<_ACEOF
3722     /* end confdefs.h. */
3723    
3724     /* Override any gcc2 internal prototype to avoid an error. */
3725     #ifdef __cplusplus
3726     extern "C"
3727     #endif
3728     /* We use char because int might match the return type of a gcc2
3729     builtin and then its argument prototype would still apply. */
3730     char setlocale ();
3731     int
3732     main ()
3733     {
3734     setlocale ();
3735     ;
3736     return 0;
3737     }
3738     _ACEOF
3739     rm -f conftest.$ac_objext conftest$ac_exeext
3740     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3741     (eval $ac_link) 2>conftest.er1
3742     ac_status=$?
3743     grep -v '^ *+' conftest.er1 >conftest.err
3744     rm -f conftest.er1
3745     cat conftest.err >&5
3746     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747     (exit $ac_status); } &&
3748     { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3749     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3750     (eval $ac_try) 2>&5
3751     ac_status=$?
3752     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753     (exit $ac_status); }; } &&
3754     { ac_try='test -s conftest$ac_exeext'
3755     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3756     (eval $ac_try) 2>&5
3757     ac_status=$?
3758     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759     (exit $ac_status); }; }; then
3760     ac_cv_lib_xpg4_setlocale=yes
3761     else
3762     echo "$as_me: failed program was:" >&5
3763     sed 's/^/| /' conftest.$ac_ext >&5
3764    
3765     ac_cv_lib_xpg4_setlocale=no
3766     fi
3767     rm -f conftest.err conftest.$ac_objext \
3768     conftest$ac_exeext conftest.$ac_ext
3769     LIBS=$ac_check_lib_save_LIBS
3770     fi
3771     echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
3772     echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
3773     if test $ac_cv_lib_xpg4_setlocale = yes; then
3774     LIBS="$LIBS -lxpg4"
3775     fi
3776    
3777 root 1.57 fi
3778    
3779    
3780     echo "$as_me:$LINENO: checking for gethostbyname" >&5
3781     echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3782     if test "${ac_cv_func_gethostbyname+set}" = set; then
3783     echo $ECHO_N "(cached) $ECHO_C" >&6
3784     else
3785     cat >conftest.$ac_ext <<_ACEOF
3786     /* confdefs.h. */
3787     _ACEOF
3788     cat confdefs.h >>conftest.$ac_ext
3789     cat >>conftest.$ac_ext <<_ACEOF
3790     /* end confdefs.h. */
3791     /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3792     For example, HP-UX 11i <limits.h> declares gettimeofday. */
3793     #define gethostbyname innocuous_gethostbyname
3794    
3795     /* System header to define __stub macros and hopefully few prototypes,
3796     which can conflict with char gethostbyname (); below.
3797     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3798     <limits.h> exists even on freestanding compilers. */
3799    
3800     #ifdef __STDC__
3801     # include <limits.h>
3802     #else
3803     # include <assert.h>
3804     #endif
3805    
3806     #undef gethostbyname
3807    
3808     /* Override any gcc2 internal prototype to avoid an error. */
3809     #ifdef __cplusplus
3810     extern "C"
3811     {
3812     #endif
3813     /* We use char because int might match the return type of a gcc2
3814     builtin and then its argument prototype would still apply. */
3815     char gethostbyname ();
3816     /* The GNU C library defines this for functions which it implements
3817     to always fail with ENOSYS. Some functions are actually named
3818     something starting with __ and the normal name is an alias. */
3819     #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3820     choke me
3821     #else
3822     char (*f) () = gethostbyname;
3823     #endif
3824     #ifdef __cplusplus
3825     }
3826     #endif
3827    
3828     int
3829     main ()
3830     {
3831     return f != gethostbyname;
3832     ;
3833     return 0;
3834     }
3835     _ACEOF
3836     rm -f conftest.$ac_objext conftest$ac_exeext
3837     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3838     (eval $ac_link) 2>conftest.er1
3839     ac_status=$?
3840     grep -v '^ *+' conftest.er1 >conftest.err
3841     rm -f conftest.er1
3842     cat conftest.err >&5
3843     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844     (exit $ac_status); } &&
3845     { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3846     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3847     (eval $ac_try) 2>&5
3848     ac_status=$?
3849     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850     (exit $ac_status); }; } &&
3851     { ac_try='test -s conftest$ac_exeext'
3852     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3853     (eval $ac_try) 2>&5
3854     ac_status=$?
3855     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856     (exit $ac_status); }; }; then
3857     ac_cv_func_gethostbyname=yes
3858     else
3859     echo "$as_me: failed program was:" >&5
3860     sed 's/^/| /' conftest.$ac_ext >&5
3861 pcg 1.25
3862 root 1.57 ac_cv_func_gethostbyname=no
3863     fi
3864     rm -f conftest.err conftest.$ac_objext \
3865     conftest$ac_exeext conftest.$ac_ext
3866     fi
3867     echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3868     echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3869     if test $ac_cv_func_gethostbyname = yes; then
3870     :
3871     else
3872     echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3873 pcg 1.25 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3874     if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3875     echo $ECHO_N "(cached) $ECHO_C" >&6
3876     else
3877     ac_check_lib_save_LIBS=$LIBS
3878     LIBS="-lnsl $LIBS"
3879     cat >conftest.$ac_ext <<_ACEOF
3880     /* confdefs.h. */
3881     _ACEOF
3882     cat confdefs.h >>conftest.$ac_ext
3883     cat >>conftest.$ac_ext <<_ACEOF
3884     /* end confdefs.h. */
3885    
3886     /* Override any gcc2 internal prototype to avoid an error. */
3887     #ifdef __cplusplus
3888     extern "C"
3889     #endif
3890     /* We use char because int might match the return type of a gcc2
3891     builtin and then its argument prototype would still apply. */
3892     char gethostbyname ();
3893     int
3894     main ()
3895     {
3896     gethostbyname ();
3897     ;
3898     return 0;
3899     }
3900     _ACEOF
3901     rm -f conftest.$ac_objext conftest$ac_exeext
3902     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3903     (eval $ac_link) 2>conftest.er1
3904     ac_status=$?
3905     grep -v '^ *+' conftest.er1 >conftest.err
3906     rm -f conftest.er1
3907     cat conftest.err >&5
3908     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909     (exit $ac_status); } &&
3910     { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3911     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3912     (eval $ac_try) 2>&5
3913     ac_status=$?
3914     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915     (exit $ac_status); }; } &&
3916     { ac_try='test -s conftest$ac_exeext'
3917     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3918     (eval $ac_try) 2>&5
3919     ac_status=$?
3920     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921     (exit $ac_status); }; }; then
3922     ac_cv_lib_nsl_gethostbyname=yes
3923     else
3924     echo "$as_me: failed program was:" >&5
3925     sed 's/^/| /' conftest.$ac_ext >&5
3926    
3927     ac_cv_lib_nsl_gethostbyname=no
3928     fi
3929     rm -f conftest.err conftest.$ac_objext \
3930     conftest$ac_exeext conftest.$ac_ext
3931     LIBS=$ac_check_lib_save_LIBS
3932     fi
3933     echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3934     echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3935     if test $ac_cv_lib_nsl_gethostbyname = yes; then
3936     LIBS="$LIBS -lnsl"
3937     fi
3938    
3939 root 1.57 fi
3940    
3941     echo "$as_me:$LINENO: checking for socket" >&5
3942     echo $ECHO_N "checking for socket... $ECHO_C" >&6
3943     if test "${ac_cv_func_socket+set}" = set; then
3944     echo $ECHO_N "(cached) $ECHO_C" >&6
3945     else
3946     cat >conftest.$ac_ext <<_ACEOF
3947     /* confdefs.h. */
3948     _ACEOF
3949     cat confdefs.h >>conftest.$ac_ext
3950     cat >>conftest.$ac_ext <<_ACEOF
3951     /* end confdefs.h. */
3952     /* Define socket to an innocuous variant, in case <limits.h> declares socket.
3953     For example, HP-UX 11i <limits.h> declares gettimeofday. */
3954     #define socket innocuous_socket
3955    
3956     /* System header to define __stub macros and hopefully few prototypes,
3957     which can conflict with char socket (); below.
3958     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3959     <limits.h> exists even on freestanding compilers. */
3960    
3961     #ifdef __STDC__
3962     # include <limits.h>
3963     #else
3964     # include <assert.h>
3965     #endif
3966    
3967     #undef socket
3968    
3969     /* Override any gcc2 internal prototype to avoid an error. */
3970     #ifdef __cplusplus
3971     extern "C"
3972     {
3973     #endif
3974     /* We use char because int might match the return type of a gcc2
3975     builtin and then its argument prototype would still apply. */
3976     char socket ();
3977     /* The GNU C library defines this for functions which it implements
3978     to always fail with ENOSYS. Some functions are actually named
3979     something starting with __ and the normal name is an alias. */
3980     #if defined (__stub_socket) || defined (__stub___socket)
3981     choke me
3982     #else
3983     char (*f) () = socket;
3984     #endif
3985     #ifdef __cplusplus
3986     }
3987     #endif
3988    
3989     int
3990     main ()
3991     {
3992     return f != socket;
3993     ;
3994     return 0;
3995     }
3996     _ACEOF
3997     rm -f conftest.$ac_objext conftest$ac_exeext
3998     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3999     (eval $ac_link) 2>conftest.er1
4000     ac_status=$?
4001     grep -v '^ *+' conftest.er1 >conftest.err
4002     rm -f conftest.er1
4003     cat conftest.err >&5
4004     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005     (exit $ac_status); } &&
4006     { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4007     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4008     (eval $ac_try) 2>&5
4009     ac_status=$?
4010     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011     (exit $ac_status); }; } &&
4012     { ac_try='test -s conftest$ac_exeext'
4013     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4014     (eval $ac_try) 2>&5
4015     ac_status=$?
4016     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017     (exit $ac_status); }; }; then
4018     ac_cv_func_socket=yes
4019     else
4020     echo "$as_me: failed program was:" >&5
4021     sed 's/^/| /' conftest.$ac_ext >&5
4022    
4023     ac_cv_func_socket=no
4024     fi
4025     rm -f conftest.err conftest.$ac_objext \
4026     conftest$ac_exeext conftest.$ac_ext
4027     fi
4028     echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
4029     echo "${ECHO_T}$ac_cv_func_socket" >&6
4030     if test $ac_cv_func_socket = yes; then
4031     :
4032     else
4033     echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4034 pcg 1.25 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4035     if test "${ac_cv_lib_socket_socket+set}" = set; then
4036     echo $ECHO_N "(cached) $ECHO_C" >&6
4037     else
4038     ac_check_lib_save_LIBS=$LIBS
4039     LIBS="-lsocket $LIBS"
4040     cat >conftest.$ac_ext <<_ACEOF
4041     /* confdefs.h. */
4042     _ACEOF
4043     cat confdefs.h >>conftest.$ac_ext
4044     cat >>conftest.$ac_ext <<_ACEOF
4045     /* end confdefs.h. */
4046    
4047     /* Override any gcc2 internal prototype to avoid an error. */
4048     #ifdef __cplusplus
4049     extern "C"
4050     #endif
4051     /* We use char because int might match the return type of a gcc2
4052     builtin and then its argument prototype would still apply. */
4053     char socket ();
4054     int
4055     main ()
4056     {
4057     socket ();
4058     ;
4059     return 0;
4060     }
4061     _ACEOF
4062     rm -f conftest.$ac_objext conftest$ac_exeext
4063     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4064     (eval $ac_link) 2>conftest.er1
4065     ac_status=$?
4066     grep -v '^ *+' conftest.er1 >conftest.err
4067     rm -f conftest.er1
4068     cat conftest.err >&5
4069     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070     (exit $ac_status); } &&
4071     { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4072     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4073     (eval $ac_try) 2>&5
4074     ac_status=$?
4075     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076     (exit $ac_status); }; } &&
4077     { ac_try='test -s conftest$ac_exeext'
4078     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4079     (eval $ac_try) 2>&5
4080     ac_status=$?
4081     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082     (exit $ac_status); }; }; then
4083     ac_cv_lib_socket_socket=yes
4084     else
4085     echo "$as_me: failed program was:" >&5
4086     sed 's/^/| /' conftest.$ac_ext >&5
4087    
4088 root 1.51 ac_cv_lib_socket_socket=no
4089     fi
4090     rm -f conftest.err conftest.$ac_objext \
4091     conftest$ac_exeext conftest.$ac_ext
4092     LIBS=$ac_check_lib_save_LIBS
4093     fi
4094     echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4095     echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4096     if test $ac_cv_lib_socket_socket = yes; then
4097     LIBS="$LIBS -lsocket"
4098 pcg 1.1 fi
4099    
4100 root 1.57 fi
4101    
4102 pcg 1.1
4103 root 1.59 echo "$as_me:$LINENO: checking for sched_yield" >&5
4104     echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
4105     if test "${ac_cv_func_sched_yield+set}" = set; then
4106     echo $ECHO_N "(cached) $ECHO_C" >&6
4107     else
4108     cat >conftest.$ac_ext <<_ACEOF
4109     /* confdefs.h. */
4110     _ACEOF
4111     cat confdefs.h >>conftest.$ac_ext
4112     cat >>conftest.$ac_ext <<_ACEOF
4113     /* end confdefs.h. */
4114     /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
4115     For example, HP-UX 11i <limits.h> declares gettimeofday. */
4116     #define sched_yield innocuous_sched_yield
4117    
4118     /* System header to define __stub macros and hopefully few prototypes,
4119     which can conflict with char sched_yield (); below.
4120     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4121     <limits.h> exists even on freestanding compilers. */
4122    
4123     #ifdef __STDC__
4124     # include <limits.h>
4125     #else
4126     # include <assert.h>
4127     #endif
4128    
4129     #undef sched_yield
4130    
4131     /* Override any gcc2 internal prototype to avoid an error. */
4132     #ifdef __cplusplus
4133     extern "C"
4134     {
4135     #endif
4136     /* We use char because int might match the return type of a gcc2
4137     builtin and then its argument prototype would still apply. */
4138     char sched_yield ();
4139     /* The GNU C library defines this for functions which it implements
4140     to always fail with ENOSYS. Some functions are actually named
4141     something starting with __ and the normal name is an alias. */
4142     #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
4143     choke me
4144     #else
4145     char (*f) () = sched_yield;
4146     #endif
4147     #ifdef __cplusplus
4148     }
4149     #endif
4150    
4151     int
4152     main ()
4153     {
4154     return f != sched_yield;
4155     ;
4156     return 0;
4157     }
4158     _ACEOF
4159     rm -f conftest.$ac_objext conftest$ac_exeext
4160     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4161     (eval $ac_link) 2>conftest.er1
4162     ac_status=$?
4163     grep -v '^ *+' conftest.er1 >conftest.err
4164     rm -f conftest.er1
4165     cat conftest.err >&5
4166     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167     (exit $ac_status); } &&
4168     { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4169     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4170     (eval $ac_try) 2>&5
4171     ac_status=$?
4172     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173     (exit $ac_status); }; } &&
4174     { ac_try='test -s conftest$ac_exeext'
4175     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4176     (eval $ac_try) 2>&5
4177     ac_status=$?
4178     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179     (exit $ac_status); }; }; then
4180     ac_cv_func_sched_yield=yes
4181     else
4182     echo "$as_me: failed program was:" >&5
4183     sed 's/^/| /' conftest.$ac_ext >&5
4184    
4185     ac_cv_func_sched_yield=no
4186     fi
4187     rm -f conftest.err conftest.$ac_objext \
4188     conftest$ac_exeext conftest.$ac_ext
4189     fi
4190     echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
4191     echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
4192     if test $ac_cv_func_sched_yield = yes; then
4193     :
4194     else
4195     echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
4196     echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
4197     if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
4198     echo $ECHO_N "(cached) $ECHO_C" >&6
4199     else
4200     ac_check_lib_save_LIBS=$LIBS
4201     LIBS="-lrt $LIBS"
4202     cat >conftest.$ac_ext <<_ACEOF
4203     /* confdefs.h. */
4204     _ACEOF
4205     cat confdefs.h >>conftest.$ac_ext
4206     cat >>conftest.$ac_ext <<_ACEOF
4207     /* end confdefs.h. */
4208    
4209     /* Override any gcc2 internal prototype to avoid an error. */
4210     #ifdef __cplusplus
4211     extern "C"
4212     #endif
4213     /* We use char because int might match the return type of a gcc2
4214     builtin and then its argument prototype would still apply. */
4215     char sched_yield ();
4216     int
4217     main ()
4218     {
4219     sched_yield ();
4220     ;
4221     return 0;
4222     }
4223     _ACEOF
4224     rm -f conftest.$ac_objext conftest$ac_exeext
4225     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4226     (eval $ac_link) 2>conftest.er1
4227     ac_status=$?
4228     grep -v '^ *+' conftest.er1 >conftest.err
4229     rm -f conftest.er1
4230     cat conftest.err >&5
4231     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232     (exit $ac_status); } &&
4233     { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4234     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4235     (eval $ac_try) 2>&5
4236     ac_status=$?
4237     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238     (exit $ac_status); }; } &&
4239     { ac_try='test -s conftest$ac_exeext'
4240     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4241     (eval $ac_try) 2>&5
4242     ac_status=$?
4243     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244     (exit $ac_status); }; }; then
4245     ac_cv_lib_rt_sched_yield=yes
4246     else
4247     echo "$as_me: failed program was:" >&5
4248     sed 's/^/| /' conftest.$ac_ext >&5
4249    
4250     ac_cv_lib_rt_sched_yield=no
4251     fi
4252     rm -f conftest.err conftest.$ac_objext \
4253     conftest$ac_exeext conftest.$ac_ext
4254     LIBS=$ac_check_lib_save_LIBS
4255     fi
4256     echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
4257     echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
4258     if test $ac_cv_lib_rt_sched_yield = yes; then
4259     LIBS="$LIBS -lrt"
4260     fi
4261    
4262     fi
4263    
4264    
4265 root 1.58 echo "$as_me:$LINENO: checking for sched_yield support" >&5
4266     echo $ECHO_N "checking for sched_yield support... $ECHO_C" >&6
4267     cat >conftest.$ac_ext <<_ACEOF
4268     /* confdefs.h. */
4269     _ACEOF
4270     cat confdefs.h >>conftest.$ac_ext
4271     cat >>conftest.$ac_ext <<_ACEOF
4272     /* end confdefs.h. */
4273     #include <sched.h>
4274     int
4275     main ()
4276     {
4277     sched_yield ()
4278     ;
4279     return 0;
4280     }
4281     _ACEOF
4282     rm -f conftest.$ac_objext conftest$ac_exeext
4283     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4284     (eval $ac_link) 2>conftest.er1
4285     ac_status=$?
4286     grep -v '^ *+' conftest.er1 >conftest.err
4287     rm -f conftest.er1
4288     cat conftest.err >&5
4289     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290     (exit $ac_status); } &&
4291     { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4292     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4293     (eval $ac_try) 2>&5
4294     ac_status=$?
4295     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296     (exit $ac_status); }; } &&
4297     { ac_try='test -s conftest$ac_exeext'
4298     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4299     (eval $ac_try) 2>&5
4300     ac_status=$?
4301     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302     (exit $ac_status); }; }; then
4303     echo "$as_me:$LINENO: result: yes" >&5
4304     echo "${ECHO_T}yes" >&6
4305    
4306     cat >>confdefs.h <<\_ACEOF
4307     #define HAVE_SCHED_YIELD 1
4308     _ACEOF
4309    
4310     else
4311     echo "$as_me: failed program was:" >&5
4312     sed 's/^/| /' conftest.$ac_ext >&5
4313    
4314     echo "$as_me:$LINENO: result: no" >&5
4315     echo "${ECHO_T}no" >&6
4316     fi
4317     rm -f conftest.err conftest.$ac_objext \
4318     conftest$ac_exeext conftest.$ac_ext
4319    
4320 pcg 1.1
4321     MALLOC_TYPE=S
4322 root 1.54
4323     support_frills=yes
4324 root 1.62 support_inheritpixmap=yes
4325 root 1.54 support_tinting=yes
4326     support_fading=yes
4327     support_keepscrolling=yes
4328     support_selectionscrolling=yes
4329     support_mousewheel=yes
4330     support_mouseslipwheel=yes
4331     support_utmp=yes
4332     support_wtmp=yes
4333     support_lastlog=yes
4334     support_text_blink=yes
4335     support_pointer_blank=yes
4336     support_scroll_rxvt=yes
4337     support_scroll_next=yes
4338     support_scroll_xterm=yes
4339     support_scroll_plain=yes
4340     support_xim=yes
4341 root 1.62 support_xpm=yes
4342 root 1.54 support_xft=yes
4343 pcg 1.1 support_unicode3=no
4344 root 1.54 support_combining=yes
4345 root 1.26 support_8bitctrls=no
4346 root 1.54 support_iso14755=yes
4347     support_styles=yes
4348 root 1.62 support_perl=yes
4349 root 1.54 codesets=all
4350 pcg 1.1
4351    
4352     if test "x$enable_shared" = xyes; then
4353 pcg 1.11
4354     cat >>confdefs.h <<\_ACEOF
4355 pcg 1.1 #define LIBRXVT 1
4356 pcg 1.11 _ACEOF
4357 pcg 1.1
4358     INSTALL_LIBRXVT=yes
4359     fi
4360    
4361    
4362     # Check whether --enable-everything or --disable-everything was given.
4363     if test "${enable_everything+set}" = set; then
4364     enableval="$enable_everything"
4365 root 1.54
4366     if test x$enableval = xno; then
4367     support_24bit=no
4368     support_frills=no
4369     support_inheritpixmap=no
4370     support_tinting=no
4371     support_fading=no
4372     support_keepscrolling=no
4373     support_selectionscrolling=no
4374     support_lastlog=no
4375     support_mousewheel=no
4376     support_mouseslipwheel=no
4377     support_text_blink=no
4378     support_pointer_blank=no
4379     support_scroll_rxvt=no
4380     support_scroll_next=no
4381     support_scroll_xterm=no
4382     support_scroll_plain=no
4383     support_utmp=no
4384     support_wtmp=no
4385     support_xim=no
4386     support_xpm=no
4387     support_xft=no
4388     support_unicode3=no
4389     support_combining=no
4390     support_8bitctrls=no
4391     support_iso14755=no
4392     support_styles=no
4393 root 1.60 support_perl=no
4394 root 1.54 codesets=
4395     fi
4396     if test x$enableval = xyes; then
4397     support_24bit=yes
4398     support_frills=yes
4399     support_inheritpixmap=yes
4400     support_tinting=yes
4401     support_fading=yes
4402     support_keepscrolling=yes
4403     support_selectionscrolling=yes
4404     support_lastlog=yes
4405     support_mousewheel=yes
4406     support_mouseslipwheel=yes
4407     support_text_blink=yes
4408     support_pointer_blank=yes
4409     support_scroll_rxvt=yes
4410     support_scroll_next=yes
4411     support_scroll_xterm=yes
4412     support_scroll_plain=yes
4413     support_utmp=yes
4414     support_wtmp=yes
4415     support_xim=yes
4416     support_xpm=yes
4417     support_xft=yes
4418     support_unicode3=yes
4419     support_combining=yes
4420     #support_8bitctrls=yes
4421     support_iso14755=yes
4422     support_styles=yes
4423 root 1.60 support_perl=yes
4424 root 1.54 codesets=all
4425     fi
4426    
4427 pcg 1.11 fi;
4428 pcg 1.4
4429 pcg 1.1 # Check whether --enable-unicode3 or --disable-unicode3 was given.
4430     if test "${enable_unicode3+set}" = set; then
4431     enableval="$enable_unicode3"
4432 pcg 1.13 if test x$enableval = xyes -o x$enableval = xno; then
4433 root 1.39 support_unicode3=$enableval
4434 pcg 1.1 fi
4435 pcg 1.11 fi;
4436 pcg 1.1
4437 pcg 1.18 # Check whether --enable-combining or --disable-combining was given.
4438     if test "${enable_combining+set}" = set; then
4439     enableval="$enable_combining"
4440     if test x$enableval = xyes -o x$enableval = xno; then
4441 root 1.39 support_combining=$enableval
4442 pcg 1.18 fi
4443     fi;
4444    
4445 pcg 1.1 # Check whether --enable-xft or --disable-xft was given.
4446     if test "${enable_xft+set}" = set; then
4447     enableval="$enable_xft"
4448 pcg 1.13 if test x$enableval = xyes -o x$enableval = xno; then
4449 root 1.39 support_xft=$enableval
4450     fi
4451     fi;
4452    
4453     # Check whether --enable-font-styles or --disable-font-styles was given.
4454     if test "${enable_font_styles+set}" = set; then
4455     enableval="$enable_font_styles"
4456     if test x$enableval = xyes -o x$enableval = xno; then
4457     support_styles=$enableval
4458 pcg 1.1 fi
4459 pcg 1.11 fi;
4460 pcg 1.1
4461     # Check whether --enable-utmp or --disable-utmp was given.
4462     if test "${enable_utmp+set}" = set; then
4463     enableval="$enable_utmp"
4464     if test x$enableval = xyes -o x$enableval = xno; then
4465     support_utmp=$enableval
4466     fi
4467 pcg 1.11 fi;
4468 pcg 1.1
4469     # Check whether --enable-wtmp or --disable-wtmp was given.
4470     if test "${enable_wtmp+set}" = set; then
4471     enableval="$enable_wtmp"
4472     if test x$enableval = xyes -o x$enableval = xno; then
4473     support_wtmp=$enableval
4474     fi
4475 pcg 1.11 fi;
4476 pcg 1.1
4477     # Check whether --enable-lastlog or --disable-lastlog was given.
4478     if test "${enable_lastlog+set}" = set; then
4479     enableval="$enable_lastlog"
4480     if test x$enableval = xyes -o x$enableval = xno; then
4481     support_lastlog=$enableval
4482     fi
4483 pcg 1.11 fi;
4484 pcg 1.1
4485     # Check whether --enable-xpm-background or --disable-xpm-background was given.
4486     if test "${enable_xpm_background+set}" = set; then
4487     enableval="$enable_xpm_background"
4488     if test x$enableval = xyes -o x$enableval = xno; then
4489     support_xpm=$enableval
4490     fi
4491 pcg 1.11 fi;
4492 pcg 1.1
4493     # Check whether --enable-transparency or --disable-transparency was given.
4494     if test "${enable_transparency+set}" = set; then
4495     enableval="$enable_transparency"
4496     if test x$enableval = xyes -o x$enableval = xno; then
4497     support_inheritpixmap=$enableval
4498     fi
4499 pcg 1.11 fi;
4500 pcg 1.1
4501 pcg 1.24 # Check whether --enable-tinting or --disable-tinting was given.
4502     if test "${enable_tinting+set}" = set; then
4503     enableval="$enable_tinting"
4504     if test x$enableval = xyes -o x$enableval = xno; then
4505     support_tinting=$enableval
4506     fi
4507     fi;
4508    
4509 root 1.31 # Check whether --enable-fading or --disable-fading was given.
4510     if test "${enable_fading+set}" = set; then
4511     enableval="$enable_fading"
4512     if test x$enableval = xyes -o x$enableval = xno; then
4513     support_fading=$enableval
4514     fi
4515     fi;
4516    
4517 pcg 1.1 # Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given.
4518     if test "${enable_rxvt_scroll+set}" = set; then
4519     enableval="$enable_rxvt_scroll"
4520     if test x$enableval = xyes -o x$enableval = xno; then
4521     support_scroll_rxvt=$enableval
4522     fi
4523 pcg 1.11 fi;
4524 pcg 1.1
4525     # Check whether --enable-next-scroll or --disable-next-scroll was given.
4526     if test "${enable_next_scroll+set}" = set; then
4527     enableval="$enable_next_scroll"
4528     if test x$enableval = xyes -o x$enableval = xno; then
4529     support_scroll_next=$enableval
4530     fi
4531 pcg 1.11 fi;
4532 pcg 1.1
4533     # Check whether --enable-xterm-scroll or --disable-xterm-scroll was given.
4534     if test "${enable_xterm_scroll+set}" = set; then
4535     enableval="$enable_xterm_scroll"
4536     if test x$enableval = xyes -o x$enableval = xno; then
4537     support_scroll_xterm=$enableval
4538     fi
4539 pcg 1.11 fi;
4540 pcg 1.1
4541 root 1.60 # Check whether --enable-perl or --disable-perl was given.
4542     if test "${enable_perl+set}" = set; then
4543     enableval="$enable_perl"
4544     if test x$enableval = xyes -o x$enableval = xno; then
4545     support_perl=$enableval
4546     fi
4547     fi;
4548    
4549 pcg 1.11 # Check whether --enable-plain-scroll or --disable-plain-scroll was given.
4550     if test "${enable_plain_scroll+set}" = set; then
4551     enableval="$enable_plain_scroll"
4552     if test x$enableval = xyes -o x$enableval = xno; then
4553     support_scroll_plain=$enableval
4554     fi
4555     fi;
4556 pcg 1.1
4557    
4558 pcg 1.15
4559     # Check whether --with-codesets or --without-codesets was given.
4560     if test "${with_codesets+set}" = set; then
4561     withval="$with_codesets"
4562     codesets="$withval"
4563     fi;
4564    
4565 pcg 1.1 # Check whether --enable-xim or --disable-xim was given.
4566     if test "${enable_xim+set}" = set; then
4567     enableval="$enable_xim"
4568     if test x$enableval = xyes -o x$enableval = xno; then
4569     support_xim=$enableval
4570     fi
4571 pcg 1.11 fi;
4572 pcg 1.1
4573     # Check whether --enable-ttygid or --disable-ttygid was given.
4574     if test "${enable_ttygid+set}" = set; then
4575     enableval="$enable_ttygid"
4576     if test x$enableval = xyes; then
4577 pcg 1.11
4578     cat >>confdefs.h <<\_ACEOF
4579 pcg 1.1 #define TTY_GID_SUPPORT 1
4580 pcg 1.11 _ACEOF
4581 pcg 1.1
4582     fi
4583 pcg 1.11 fi;
4584 pcg 1.1
4585     # Check whether --enable-backspace-key or --disable-backspace-key was given.
4586     if test "${enable_backspace_key+set}" = set; then
4587     enableval="$enable_backspace_key"
4588     if test x$enableval = xno; then
4589 pcg 1.11
4590     cat >>confdefs.h <<\_ACEOF
4591 pcg 1.1 #define NO_BACKSPACE_KEY 1
4592 pcg 1.11 _ACEOF
4593 pcg 1.1
4594     fi
4595 pcg 1.11 fi;
4596 pcg 1.1
4597     # Check whether --enable-delete-key or --disable-delete-key was given.
4598     if test "${enable_delete_key+set}" = set; then
4599     enableval="$enable_delete_key"
4600     if test x$enableval = xno; then
4601 pcg 1.11
4602     cat >>confdefs.h <<\_ACEOF
4603 pcg 1.1 #define NO_DELETE_KEY 1
4604 pcg 1.11 _ACEOF
4605 pcg 1.1
4606     fi
4607 pcg 1.11 fi;
4608 pcg 1.1
4609     # Check whether --enable-resources or --disable-resources was given.
4610     if test "${enable_resources+set}" = set; then
4611     enableval="$enable_resources"
4612     if test x$enableval = xno; then
4613 pcg 1.11
4614     cat >>confdefs.h <<\_ACEOF
4615 pcg 1.1 #define NO_RESOURCES 1
4616 pcg 1.11 _ACEOF
4617 pcg 1.1
4618     fi
4619 pcg 1.11 fi;
4620 pcg 1.1
4621 root 1.26 # Check whether --enable-8bitctrls or --disable-8bitctrls was given.
4622     if test "${enable_8bitctrls+set}" = set; then
4623     enableval="$enable_8bitctrls"
4624     if test x$enableval = xyes -o x$enableval = xno; then
4625 root 1.39 support_8bitctrls=$enableval
4626 root 1.26 fi
4627     fi;
4628    
4629 pcg 1.15 RESFALLBACK=Rxvt
4630     # Check whether --enable-fallback or --disable-fallback was given.
4631     if test "${enable_fallback+set}" = set; then
4632     enableval="$enable_fallback"
4633    
4634     test x$enableval = xyes && enableval=Rxvt
4635     test x$enableval = xno && enableval=
4636     RESFALLBACK="$enableval"
4637    
4638     fi;
4639    
4640     if test x$RESFALLBACK != x; then
4641    
4642     cat >>confdefs.h <<_ACEOF
4643     #define RESFALLBACK "$RESFALLBACK"
4644     _ACEOF
4645    
4646     fi
4647    
4648     RESNAME=urxvt
4649    
4650     # Check whether --with-res-name or --without-res-name was given.
4651     if test "${with_res_name+set}" = set; then
4652     withval="$with_res_name"
4653     RESNAME="$withval"
4654     fi;
4655    
4656     cat >>confdefs.h <<_ACEOF
4657     #define RESNAME "$RESNAME"
4658     _ACEOF
4659    
4660    
4661     RESCLASS=URxvt
4662    
4663     # Check whether --with-res-class or --without-res-class was given.
4664     if test "${with_res_class+set}" = set; then
4665     withval="$with_res_class"
4666     RESCLASS="$withval"
4667     fi;
4668    
4669     cat >>confdefs.h <<_ACEOF
4670     #define RESCLASS "$RESCLASS"
4671     _ACEOF
4672    
4673    
4674     RXVTNAME=urxvt
4675    
4676     # Check whether --with-name or --without-name was given.
4677     if test "${with_name+set}" = set; then
4678     withval="$with_name"
4679     RXVTNAME="$withval"
4680     fi;
4681    
4682 root 1.39 cat >>confdefs.h <<_ACEOF
4683     #define RXVTNAME "$RXVTNAME"
4684     _ACEOF
4685    
4686    
4687 pcg 1.15 RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
4688    
4689    
4690 pcg 1.1 # Check whether --enable-swapscreen or --disable-swapscreen was given.
4691     if test "${enable_swapscreen+set}" = set; then
4692     enableval="$enable_swapscreen"
4693     if test x$enableval = xno; then
4694 pcg 1.11
4695     cat >>confdefs.h <<\_ACEOF
4696 pcg 1.1 #define NO_SECONDARY_SCREEN 1
4697 pcg 1.11 _ACEOF
4698 pcg 1.1
4699     fi
4700 pcg 1.11 fi;
4701 pcg 1.1
4702 root 1.34 # Check whether --enable-iso14755 or --disable-iso14755 was given.
4703     if test "${enable_iso14755+set}" = set; then
4704     enableval="$enable_iso14755"
4705     if test x$enableval = xyes -o x$enableval = xno; then
4706     support_iso14755=$enableval
4707     fi
4708     fi;
4709    
4710 pcg 1.1 # Check whether --enable-frills or --disable-frills was given.
4711     if test "${enable_frills+set}" = set; then
4712     enableval="$enable_frills"
4713     if test x$enableval = xyes -o x$enableval = xno; then
4714     support_frills=$enableval
4715     fi
4716 pcg 1.11 fi;
4717 pcg 1.1
4718     # Check whether --enable-24bit or --disable-24bit was given.
4719     if test "${enable_24bit+set}" = set; then
4720     enableval="$enable_24bit"
4721     if test x$enableval = xyes -o x$enableval = xno; then
4722     support_24bit=$enableval
4723     fi
4724 pcg 1.11 fi;
4725 pcg 1.1
4726     # Check whether --enable-keepscrolling or --disable-keepscrolling was given.
4727     if test "${enable_keepscrolling+set}" = set; then
4728     enableval="$enable_keepscrolling"
4729     if test x$enableval = xyes -o x$enableval = xno; then
4730     support_keepscrolling=$enableval
4731     fi
4732 pcg 1.11 fi;
4733 pcg 1.1
4734     # Check whether --enable-selectionscrolling or --disable-selectionscrolling was given.
4735     if test "${enable_selectionscrolling+set}" = set; then
4736     enableval="$enable_selectionscrolling"
4737     if test x$enableval = xyes -o x$enableval = xno; then
4738     support_selectionscrolling=$enableval
4739     fi
4740 pcg 1.11 fi;
4741 pcg 1.1
4742     # Check whether --enable-mousewheel or --disable-mousewheel was given.
4743     if test "${enable_mousewheel+set}" = set; then
4744     enableval="$enable_mousewheel"
4745     if test x$enableval = xyes -o x$enableval = xno; then
4746     support_mousewheel=$enableval
4747     fi
4748 pcg 1.11 fi;
4749 pcg 1.1
4750     # Check whether --enable-slipwheeling or --disable-slipwheeling was given.
4751     if test "${enable_slipwheeling+set}" = set; then
4752     enableval="$enable_slipwheeling"
4753     if test x$enableval = xyes -o x$enableval = xno; then
4754     support_mouseslipwheel=$enableval
4755     fi
4756 pcg 1.11 fi;
4757 pcg 1.1
4758     # Check whether --enable-dmalloc or --disable-dmalloc was given.
4759     if test "${enable_dmalloc+set}" = set; then
4760     enableval="$enable_dmalloc"
4761     if test x$enableval = xyes; then
4762     MALLOC_TYPE=G
4763     DEBUG=-DDEBUG_MALLOC
4764     DLIB="-L/usr/local/lib -ldmalloc"
4765     DINCLUDE=-I/usr/local/include
4766     fi
4767 pcg 1.11 fi;
4768 pcg 1.1
4769     # Check whether --enable-dlmalloc or --disable-dlmalloc was given.
4770     if test "${enable_dlmalloc+set}" = set; then
4771     enableval="$enable_dlmalloc"
4772     if test x$enableval = xyes; then
4773     MALLOC_TYPE=D
4774     DEBUG=
4775     DLIB="-L/usr/local/lib -ldlmalloc"
4776     DINCLUDE=
4777     fi
4778 pcg 1.11 fi;
4779 pcg 1.1
4780     # Check whether --enable-smart-resize or --disable-smart-resize was given.
4781     if test "${enable_smart_resize+set}" = set; then
4782     enableval="$enable_smart_resize"
4783     if test x$enableval = xyes; then
4784 pcg 1.11
4785     cat >>confdefs.h <<\_ACEOF
4786 pcg 1.1 #define SMART_RESIZE 1
4787 pcg 1.11 _ACEOF
4788 pcg 1.1
4789     fi
4790 pcg 1.11 fi;
4791 pcg 1.1
4792 pcg 1.11 # Check whether --enable-text-blink or --disable-text-blink was given.
4793     if test "${enable_text_blink+set}" = set; then
4794     enableval="$enable_text_blink"
4795     if test x$enableval = xyes -o x$enableval = xno; then
4796     support_text_blink=$enableval
4797     fi
4798     fi;
4799 pcg 1.1
4800     # Check whether --enable-pointer-blank or --disable-pointer-blank was given.
4801     if test "${enable_pointer_blank+set}" = set; then
4802     enableval="$enable_pointer_blank"
4803     if test x$enableval = xyes -o x$enableval = xno; then
4804     support_pointer_blank=$enableval
4805     fi
4806 pcg 1.11 fi;
4807 pcg 1.1
4808    
4809     # Check whether --with-term or --without-term was given.
4810     if test "${with_term+set}" = set; then
4811     withval="$with_term"
4812     if test x$withval != x; then
4813 pcg 1.11
4814     cat >>confdefs.h <<_ACEOF
4815 pcg 1.1 #define TERMENV "$withval"
4816 pcg 1.11 _ACEOF
4817 pcg 1.1 term="$withval"
4818     fi
4819 pcg 1.11 fi;
4820 pcg 1.1
4821    
4822     # Check whether --with-terminfo or --without-terminfo was given.
4823     if test "${with_terminfo+set}" = set; then
4824     withval="$with_terminfo"
4825     if test x$withval != x; then
4826 pcg 1.11
4827     cat >>confdefs.h <<_ACEOF
4828 pcg 1.1 #define RXVT_TERMINFO "$withval"
4829 pcg 1.11 _ACEOF
4830 pcg 1.1 terminfo="$withval"
4831     fi
4832 pcg 1.11 fi;
4833 pcg 1.1
4834    
4835    
4836 pcg 1.11 cat >>confdefs.h <<\_ACEOF
4837 pcg 1.1 #define PROTOTYPES 1
4838 pcg 1.11 _ACEOF
4839 pcg 1.1
4840    
4841     # Extract the first word of "mv", so it can be a program name with args.
4842     set dummy mv; ac_word=$2
4843 pcg 1.11 echo "$as_me:$LINENO: checking for $ac_word" >&5
4844     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4845     if test "${ac_cv_path_MV+set}" = set; then
4846     echo $ECHO_N "(cached) $ECHO_C" >&6
4847 pcg 1.1 else
4848 pcg 1.11 case $MV in
4849     [\\/]* | ?:[\\/]*)
4850 pcg 1.1 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4851     ;;
4852     *)
4853 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4854     for as_dir in $PATH
4855     do
4856     IFS=$as_save_IFS
4857     test -z "$as_dir" && as_dir=.
4858     for ac_exec_ext in '' $ac_executable_extensions; do
4859     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4860     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4861     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4862     break 2
4863     fi
4864     done
4865     done
4866    
4867 pcg 1.1 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4868     ;;
4869     esac
4870     fi
4871 pcg 1.11 MV=$ac_cv_path_MV
4872    
4873 pcg 1.1 if test -n "$MV"; then
4874 pcg 1.11 echo "$as_me:$LINENO: result: $MV" >&5
4875     echo "${ECHO_T}$MV" >&6
4876 pcg 1.1 else
4877 pcg 1.11 echo "$as_me:$LINENO: result: no" >&5
4878     echo "${ECHO_T}no" >&6
4879 pcg 1.1 fi
4880    
4881     # Extract the first word of "rm", so it can be a program name with args.
4882     set dummy rm; ac_word=$2
4883 pcg 1.11 echo "$as_me:$LINENO: checking for $ac_word" >&5
4884     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4885     if test "${ac_cv_path_RM+set}" = set; then
4886     echo $ECHO_N "(cached) $ECHO_C" >&6
4887 pcg 1.1 else
4888 pcg 1.11 case $RM in
4889     [\\/]* | ?:[\\/]*)
4890 pcg 1.1 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4891     ;;
4892     *)
4893 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4894     for as_dir in $PATH
4895     do
4896     IFS=$as_save_IFS
4897     test -z "$as_dir" && as_dir=.
4898     for ac_exec_ext in '' $ac_executable_extensions; do
4899     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4900     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4901     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4902     break 2
4903     fi
4904     done
4905     done
4906    
4907 pcg 1.1 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4908     ;;
4909     esac
4910     fi
4911 pcg 1.11 RM=$ac_cv_path_RM
4912    
4913 pcg 1.1 if test -n "$RM"; then
4914 pcg 1.11 echo "$as_me:$LINENO: result: $RM" >&5
4915     echo "${ECHO_T}$RM" >&6
4916 pcg 1.1 else
4917 pcg 1.11 echo "$as_me:$LINENO: result: no" >&5
4918     echo "${ECHO_T}no" >&6
4919 pcg 1.1 fi
4920    
4921     # Extract the first word of "cp", so it can be a program name with args.
4922     set dummy cp; ac_word=$2
4923 pcg 1.11 echo "$as_me:$LINENO: checking for $ac_word" >&5
4924     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4925     if test "${ac_cv_path_CP+set}" = set; then
4926     echo $ECHO_N "(cached) $ECHO_C" >&6
4927 pcg 1.1 else
4928 pcg 1.11 case $CP in
4929     [\\/]* | ?:[\\/]*)
4930 pcg 1.1 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4931     ;;
4932     *)
4933 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4934     for as_dir in $PATH
4935     do
4936     IFS=$as_save_IFS
4937     test -z "$as_dir" && as_dir=.
4938     for ac_exec_ext in '' $ac_executable_extensions; do
4939     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4940     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4941     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4942     break 2
4943     fi
4944     done
4945     done
4946    
4947 pcg 1.1 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4948     ;;
4949     esac
4950     fi
4951 pcg 1.11 CP=$ac_cv_path_CP
4952    
4953 pcg 1.1 if test -n "$CP"; then
4954 pcg 1.11 echo "$as_me:$LINENO: result: $CP" >&5
4955     echo "${ECHO_T}$CP" >&6
4956 pcg 1.1 else
4957 pcg 1.11 echo "$as_me:$LINENO: result: no" >&5
4958     echo "${ECHO_T}no" >&6
4959 pcg 1.1 fi
4960    
4961     # Extract the first word of "ln", so it can be a program name with args.
4962     set dummy ln; ac_word=$2
4963 pcg 1.11 echo "$as_me:$LINENO: checking for $ac_word" >&5
4964     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4965     if test "${ac_cv_path_LN+set}" = set; then
4966     echo $ECHO_N "(cached) $ECHO_C" >&6
4967 pcg 1.1 else
4968 pcg 1.11 case $LN in
4969     [\\/]* | ?:[\\/]*)
4970 pcg 1.1 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4971     ;;
4972     *)
4973 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4974     for as_dir in $PATH
4975     do
4976     IFS=$as_save_IFS
4977     test -z "$as_dir" && as_dir=.
4978     for ac_exec_ext in '' $ac_executable_extensions; do
4979     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4980     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4981     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4982     break 2
4983     fi
4984     done
4985     done
4986    
4987 pcg 1.1 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
4988     ;;
4989     esac
4990     fi
4991 pcg 1.11 LN=$ac_cv_path_LN
4992    
4993 pcg 1.1 if test -n "$LN"; then
4994 pcg 1.11 echo "$as_me:$LINENO: result: $LN" >&5
4995     echo "${ECHO_T}$LN" >&6
4996 pcg 1.1 else
4997 pcg 1.11 echo "$as_me:$LINENO: result: no" >&5
4998     echo "${ECHO_T}no" >&6
4999 pcg 1.1 fi
5000    
5001     # Extract the first word of "sed", so it can be a program name with args.
5002     set dummy sed; ac_word=$2
5003 pcg 1.11 echo "$as_me:$LINENO: checking for $ac_word" >&5
5004     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5005     if test "${ac_cv_path_SED+set}" = set; then
5006     echo $ECHO_N "(cached) $ECHO_C" >&6
5007 pcg 1.1 else
5008 pcg 1.11 case $SED in
5009     [\\/]* | ?:[\\/]*)
5010 pcg 1.1 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5011     ;;
5012     *)
5013 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5014     for as_dir in $PATH
5015     do
5016     IFS=$as_save_IFS
5017     test -z "$as_dir" && as_dir=.
5018     for ac_exec_ext in '' $ac_executable_extensions; do
5019     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5020     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5021     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5022     break 2
5023     fi
5024     done
5025     done
5026    
5027 pcg 1.1 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5028     ;;
5029     esac
5030     fi
5031 pcg 1.11 SED=$ac_cv_path_SED
5032    
5033 pcg 1.1 if test -n "$SED"; then
5034 pcg 1.11 echo "$as_me:$LINENO: result: $SED" >&5
5035     echo "${ECHO_T}$SED" >&6
5036 pcg 1.1 else
5037 pcg 1.11 echo "$as_me:$LINENO: result: no" >&5
5038     echo "${ECHO_T}no" >&6
5039 pcg 1.1 fi
5040    
5041     # Extract the first word of "echo", so it can be a program name with args.
5042     set dummy echo; ac_word=$2
5043 pcg 1.11 echo "$as_me:$LINENO: checking for $ac_word" >&5
5044     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5045     if test "${ac_cv_path_ECHO+set}" = set; then
5046     echo $ECHO_N "(cached) $ECHO_C" >&6
5047 pcg 1.1 else
5048 pcg 1.11 case $ECHO in
5049     [\\/]* | ?:[\\/]*)
5050 pcg 1.1 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5051     ;;
5052     *)
5053 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5054     for as_dir in $PATH
5055     do
5056     IFS=$as_save_IFS
5057     test -z "$as_dir" && as_dir=.
5058     for ac_exec_ext in '' $ac_executable_extensions; do
5059     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5060     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5061     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5062     break 2
5063     fi
5064     done
5065     done
5066    
5067 pcg 1.1 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5068     ;;
5069     esac
5070     fi
5071 pcg 1.11 ECHO=$ac_cv_path_ECHO
5072    
5073 pcg 1.1 if test -n "$ECHO"; then
5074 pcg 1.11 echo "$as_me:$LINENO: result: $ECHO" >&5
5075     echo "${ECHO_T}$ECHO" >&6
5076 pcg 1.1 else
5077 pcg 1.11 echo "$as_me:$LINENO: result: no" >&5
5078     echo "${ECHO_T}no" >&6
5079 pcg 1.1 fi
5080    
5081     # Extract the first word of "cmp", so it can be a program name with args.
5082     set dummy cmp; ac_word=$2
5083 pcg 1.11 echo "$as_me:$LINENO: checking for $ac_word" >&5
5084     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5085     if test "${ac_cv_path_CMP+set}" = set; then
5086     echo $ECHO_N "(cached) $ECHO_C" >&6
5087 pcg 1.1 else
5088 pcg 1.11 case $CMP in
5089     [\\/]* | ?:[\\/]*)
5090 pcg 1.1 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5091     ;;
5092     *)
5093 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094     for as_dir in $PATH
5095     do
5096     IFS=$as_save_IFS
5097     test -z "$as_dir" && as_dir=.
5098     for ac_exec_ext in '' $ac_executable_extensions; do
5099     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5100     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5101     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5102     break 2
5103     fi
5104     done
5105     done
5106    
5107 pcg 1.1 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5108     ;;
5109     esac
5110     fi
5111 pcg 1.11 CMP=$ac_cv_path_CMP
5112    
5113 pcg 1.1 if test -n "$CMP"; then
5114 pcg 1.11 echo "$as_me:$LINENO: result: $CMP" >&5
5115     echo "${ECHO_T}$CMP" >&6
5116 pcg 1.1 else
5117 pcg 1.11 echo "$as_me:$LINENO: result: no" >&5
5118     echo "${ECHO_T}no" >&6
5119 pcg 1.1 fi
5120    
5121     # Extract the first word of "tbl", so it can be a program name with args.
5122     set dummy tbl; ac_word=$2
5123 pcg 1.11 echo "$as_me:$LINENO: checking for $ac_word" >&5
5124     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5125     if test "${ac_cv_path_TBL+set}" = set; then
5126     echo $ECHO_N "(cached) $ECHO_C" >&6
5127 pcg 1.1 else
5128 pcg 1.11 case $TBL in
5129     [\\/]* | ?:[\\/]*)
5130 pcg 1.1 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5131     ;;
5132     *)
5133 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134     for as_dir in $PATH
5135     do
5136     IFS=$as_save_IFS
5137     test -z "$as_dir" && as_dir=.
5138     for ac_exec_ext in '' $ac_executable_extensions; do
5139     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5140     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5141     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5142     break 2
5143     fi
5144     done
5145     done
5146    
5147 pcg 1.1 ;;
5148     esac
5149     fi
5150 pcg 1.11 TBL=$ac_cv_path_TBL
5151    
5152 pcg 1.1 if test -n "$TBL"; then
5153 pcg 1.11 echo "$as_me:$LINENO: result: $TBL" >&5
5154     echo "${ECHO_T}$TBL" >&6
5155 pcg 1.1 else
5156 pcg 1.11 echo "$as_me:$LINENO: result: no" >&5
5157     echo "${ECHO_T}no" >&6
5158 pcg 1.1 fi
5159    
5160 root 1.39 # Extract the first word of "tic", so it can be a program name with args.
5161     set dummy tic; ac_word=$2
5162     echo "$as_me:$LINENO: checking for $ac_word" >&5
5163     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5164     if test "${ac_cv_path_TIC+set}" = set; then
5165     echo $ECHO_N "(cached) $ECHO_C" >&6
5166     else
5167     case $TIC in
5168     [\\/]* | ?:[\\/]*)
5169     ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
5170     ;;
5171     *)
5172     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5173     for as_dir in $PATH
5174     do
5175     IFS=$as_save_IFS
5176     test -z "$as_dir" && as_dir=.
5177     for ac_exec_ext in '' $ac_executable_extensions; do
5178     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5179     ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext"
5180     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5181     break 2
5182     fi
5183     done
5184     done
5185    
5186     ;;
5187     esac
5188     fi
5189     TIC=$ac_cv_path_TIC
5190    
5191     if test -n "$TIC"; then
5192     echo "$as_me:$LINENO: result: $TIC" >&5
5193     echo "${ECHO_T}$TIC" >&6
5194     else
5195     echo "$as_me:$LINENO: result: no" >&5
5196     echo "${ECHO_T}no" >&6
5197     fi
5198    
5199 pcg 1.1
5200    
5201    
5202 pcg 1.24
5203     if test "x$ac_path_x_has_been_run" != xyes; then
5204     echo "$as_me:$LINENO: checking for X" >&5
5205 pcg 1.11 echo $ECHO_N "checking for X... $ECHO_C" >&6
5206    
5207 pcg 1.24 ac_path_x_has_been_run=yes
5208 pcg 1.1
5209     # Check whether --with-x or --without-x was given.
5210     if test "${with_x+set}" = set; then
5211     withval="$with_x"
5212    
5213 pcg 1.11 fi;
5214 pcg 1.1 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5215     if test "x$with_x" = xno; then
5216     # The user explicitly disabled X.
5217     have_x=disabled
5218     else
5219     if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5220     # Both variables are already set.
5221     have_x=yes
5222     else
5223 pcg 1.11 if test "${ac_cv_have_x+set}" = set; then
5224     echo $ECHO_N "(cached) $ECHO_C" >&6
5225 pcg 1.1 else
5226     # One or both of the vars are not set, and there is no cached value.
5227 pcg 1.11 ac_x_includes=no ac_x_libraries=no
5228     rm -fr conftest.dir
5229     if mkdir conftest.dir; then
5230     cd conftest.dir
5231 pcg 1.1 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5232 pcg 1.11 cat >Imakefile <<'_ACEOF'
5233 pcg 1.1 acfindx:
5234     @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5235 pcg 1.11 _ACEOF
5236 pcg 1.1 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5237     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5238     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5239     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5240     for ac_extension in a so sl; do
5241     if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5242 pcg 1.11 test -f $ac_im_libdir/libX11.$ac_extension; then
5243     ac_im_usrlibdir=$ac_im_libdir; break
5244 pcg 1.1 fi
5245     done
5246     # Screen out bogus values from the imake configuration. They are
5247     # bogus both because they are the default anyway, and because
5248     # using them would break gcc on systems where it needs fixed includes.
5249 pcg 1.11 case $ac_im_incroot in
5250 pcg 1.1 /usr/include) ;;
5251 pcg 1.11 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5252 pcg 1.1 esac
5253 pcg 1.11 case $ac_im_usrlibdir in
5254 pcg 1.1 /usr/lib | /lib) ;;
5255 pcg 1.11 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5256 pcg 1.1 esac
5257     fi
5258     cd ..
5259 pcg 1.11 rm -fr conftest.dir
5260 pcg 1.1 fi
5261    
5262 pcg 1.11 # Standard set of common directories for X headers.
5263     # Check X11 before X11Rn because it is often a symlink to the current release.
5264     ac_x_header_dirs='
5265     /usr/X11/include
5266     /usr/X11R6/include
5267     /usr/X11R5/include
5268     /usr/X11R4/include
5269    
5270     /usr/include/X11
5271     /usr/include/X11R6
5272     /usr/include/X11R5
5273     /usr/include/X11R4
5274    
5275     /usr/local/X11/include
5276     /usr/local/X11R6/include
5277     /usr/local/X11R5/include
5278     /usr/local/X11R4/include
5279    
5280     /usr/local/include/X11
5281     /usr/local/include/X11R6
5282     /usr/local/include/X11R5
5283     /usr/local/include/X11R4
5284    
5285     /usr/X386/include
5286     /usr/x386/include
5287     /usr/XFree86/include/X11
5288    
5289     /usr/include
5290     /usr/local/include
5291     /usr/unsupported/include
5292     /usr/athena/include
5293     /usr/local/x11r5/include
5294     /usr/lpp/Xamples/include
5295    
5296     /usr/openwin/include
5297     /usr/openwin/share/include'
5298 pcg 1.1
5299 pcg 1.11 if test "$ac_x_includes" = no; then
5300 pcg 1.24 # Guess where to find include files, by looking for a specified header file.
5301 pcg 1.1 # First, try using that file with no special directory specified.
5302 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
5303     /* confdefs.h. */
5304     _ACEOF
5305     cat confdefs.h >>conftest.$ac_ext
5306     cat >>conftest.$ac_ext <<_ACEOF
5307     /* end confdefs.h. */
5308 root 1.54 #include <X11/Xlib.h>
5309 pcg 1.11 _ACEOF
5310     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5311     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5312     ac_status=$?
5313     grep -v '^ *+' conftest.er1 >conftest.err
5314     rm -f conftest.er1
5315     cat conftest.err >&5
5316     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317     (exit $ac_status); } >/dev/null; then
5318     if test -s conftest.err; then
5319 pcg 1.13 ac_cpp_err=$ac_cxx_preproc_warn_flag
5320     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5321 pcg 1.11 else
5322     ac_cpp_err=
5323     fi
5324     else
5325     ac_cpp_err=yes
5326     fi
5327     if test -z "$ac_cpp_err"; then
5328 pcg 1.1 # We can compile using X headers with no special include directory.
5329     ac_x_includes=
5330     else
5331 pcg 1.11 echo "$as_me: failed program was:" >&5
5332     sed 's/^/| /' conftest.$ac_ext >&5
5333    
5334     for ac_dir in $ac_x_header_dirs; do
5335 root 1.54 if test -r "$ac_dir/X11/Xlib.h"; then
5336 pcg 1.11 ac_x_includes=$ac_dir
5337     break
5338     fi
5339     done
5340 pcg 1.1 fi
5341 pcg 1.11 rm -f conftest.err conftest.$ac_ext
5342     fi # $ac_x_includes = no
5343 pcg 1.1
5344 pcg 1.11 if test "$ac_x_libraries" = no; then
5345 pcg 1.1 # Check for the libraries.
5346     # See if we find them without any special options.
5347     # Don't add to $LIBS permanently.
5348 pcg 1.11 ac_save_LIBS=$LIBS
5349 root 1.54 LIBS="-lX11 $LIBS"
5350 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
5351     /* confdefs.h. */
5352     _ACEOF
5353     cat confdefs.h >>conftest.$ac_ext
5354     cat >>conftest.$ac_ext <<_ACEOF
5355     /* end confdefs.h. */
5356 root 1.54 #include <X11/Xlib.h>
5357 pcg 1.11 int
5358     main ()
5359     {
5360 root 1.54 XrmInitialize ()
5361 pcg 1.11 ;
5362     return 0;
5363     }
5364     _ACEOF
5365     rm -f conftest.$ac_objext conftest$ac_exeext
5366     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5367     (eval $ac_link) 2>conftest.er1
5368     ac_status=$?
5369     grep -v '^ *+' conftest.er1 >conftest.err
5370     rm -f conftest.er1
5371     cat conftest.err >&5
5372     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373     (exit $ac_status); } &&
5374 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5375 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5376     (eval $ac_try) 2>&5
5377     ac_status=$?
5378     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379     (exit $ac_status); }; } &&
5380     { ac_try='test -s conftest$ac_exeext'
5381     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5382     (eval $ac_try) 2>&5
5383     ac_status=$?
5384     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385     (exit $ac_status); }; }; then
5386     LIBS=$ac_save_LIBS
5387 pcg 1.1 # We can link X programs with no special library path.
5388     ac_x_libraries=
5389     else
5390 pcg 1.11 echo "$as_me: failed program was:" >&5
5391     sed 's/^/| /' conftest.$ac_ext >&5
5392    
5393     LIBS=$ac_save_LIBS
5394     for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5395 pcg 1.1 do
5396 pcg 1.11 # Don't even attempt the hair of trying to link an X program!
5397 pcg 1.1 for ac_extension in a so sl; do
5398 root 1.54 if test -r $ac_dir/libX11.$ac_extension; then
5399 pcg 1.1 ac_x_libraries=$ac_dir
5400     break 2
5401     fi
5402     done
5403     done
5404     fi
5405 pcg 1.11 rm -f conftest.err conftest.$ac_objext \
5406     conftest$ac_exeext conftest.$ac_ext
5407     fi # $ac_x_libraries = no
5408 pcg 1.1
5409 pcg 1.11 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
5410 pcg 1.1 # Didn't find X anywhere. Cache the known absence of X.
5411     ac_cv_have_x="have_x=no"
5412     else
5413     # Record where we found X for the cache.
5414     ac_cv_have_x="have_x=yes \
5415 pcg 1.11 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5416 pcg 1.1 fi
5417     fi
5418 pcg 1.11
5419 pcg 1.1 fi
5420     eval "$ac_cv_have_x"
5421     fi # $with_x != no
5422    
5423     if test "$have_x" != yes; then
5424 pcg 1.11 echo "$as_me:$LINENO: result: $have_x" >&5
5425     echo "${ECHO_T}$have_x" >&6
5426 pcg 1.1 no_x=yes
5427     else
5428     # If each of the values was on the command line, it overrides each guess.
5429     test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5430     test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5431     # Update the cache value to reflect the command line values.
5432     ac_cv_have_x="have_x=yes \
5433     ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5434 pcg 1.24 # It might be that x_includes is empty (headers are found in the
5435     # standard search path. Then output the corresponding message
5436     ac_out_x_includes=$x_includes
5437     test "x$x_includes" = x && ac_out_x_includes="in standard search path"
5438     echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
5439     echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
5440 pcg 1.1 fi
5441    
5442 pcg 1.24 fi
5443 pcg 1.1 if test "$no_x" = yes; then
5444     # Not all programs may use this symbol, but it does not hurt to define it.
5445 pcg 1.11
5446     cat >>confdefs.h <<\_ACEOF
5447 pcg 1.1 #define X_DISPLAY_MISSING 1
5448 pcg 1.11 _ACEOF
5449 pcg 1.1
5450     X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5451     else
5452     if test -n "$x_includes"; then
5453     X_CFLAGS="$X_CFLAGS -I$x_includes"
5454     fi
5455    
5456     # It would also be nice to do this for all -L options, not just this one.
5457     if test -n "$x_libraries"; then
5458     X_LIBS="$X_LIBS -L$x_libraries"
5459     # For Solaris; some versions of Sun CC require a space after -R and
5460     # others require no space. Words are not sufficient . . . .
5461 pcg 1.11 case `(uname -sr) 2>/dev/null` in
5462 pcg 1.1 "SunOS 5"*)
5463 pcg 1.11 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5464     echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
5465     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5466     cat >conftest.$ac_ext <<_ACEOF
5467     /* confdefs.h. */
5468     _ACEOF
5469     cat confdefs.h >>conftest.$ac_ext
5470     cat >>conftest.$ac_ext <<_ACEOF
5471     /* end confdefs.h. */
5472 pcg 1.1
5473 pcg 1.11 int
5474     main ()
5475     {
5476 pcg 1.1
5477 pcg 1.11 ;
5478     return 0;
5479     }
5480     _ACEOF
5481     rm -f conftest.$ac_objext conftest$ac_exeext
5482     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5483     (eval $ac_link) 2>conftest.er1
5484     ac_status=$?
5485     grep -v '^ *+' conftest.er1 >conftest.err
5486     rm -f conftest.er1
5487     cat conftest.err >&5
5488     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489     (exit $ac_status); } &&
5490 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5491 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5492     (eval $ac_try) 2>&5
5493     ac_status=$?
5494     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495     (exit $ac_status); }; } &&
5496     { ac_try='test -s conftest$ac_exeext'
5497     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5498     (eval $ac_try) 2>&5
5499     ac_status=$?
5500     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501     (exit $ac_status); }; }; then
5502 pcg 1.1 ac_R_nospace=yes
5503     else
5504 pcg 1.11 echo "$as_me: failed program was:" >&5
5505     sed 's/^/| /' conftest.$ac_ext >&5
5506    
5507     ac_R_nospace=no
5508 pcg 1.1 fi
5509 pcg 1.11 rm -f conftest.err conftest.$ac_objext \
5510     conftest$ac_exeext conftest.$ac_ext
5511 pcg 1.1 if test $ac_R_nospace = yes; then
5512 pcg 1.11 echo "$as_me:$LINENO: result: no" >&5
5513     echo "${ECHO_T}no" >&6
5514 pcg 1.1 X_LIBS="$X_LIBS -R$x_libraries"
5515     else
5516     LIBS="$ac_xsave_LIBS -R $x_libraries"
5517 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
5518     /* confdefs.h. */
5519     _ACEOF
5520     cat confdefs.h >>conftest.$ac_ext
5521     cat >>conftest.$ac_ext <<_ACEOF
5522     /* end confdefs.h. */
5523 pcg 1.1
5524 pcg 1.11 int
5525     main ()
5526     {
5527 pcg 1.1
5528 pcg 1.11 ;
5529     return 0;
5530     }
5531     _ACEOF
5532     rm -f conftest.$ac_objext conftest$ac_exeext
5533     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5534     (eval $ac_link) 2>conftest.er1
5535     ac_status=$?
5536     grep -v '^ *+' conftest.er1 >conftest.err
5537     rm -f conftest.er1
5538     cat conftest.err >&5
5539     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540     (exit $ac_status); } &&
5541 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5542 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5543     (eval $ac_try) 2>&5
5544     ac_status=$?
5545     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546     (exit $ac_status); }; } &&
5547     { ac_try='test -s conftest$ac_exeext'
5548     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5549     (eval $ac_try) 2>&5
5550     ac_status=$?
5551     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552     (exit $ac_status); }; }; then
5553 pcg 1.1 ac_R_space=yes
5554     else
5555 pcg 1.11 echo "$as_me: failed program was:" >&5
5556     sed 's/^/| /' conftest.$ac_ext >&5
5557    
5558     ac_R_space=no
5559 pcg 1.1 fi
5560 pcg 1.11 rm -f conftest.err conftest.$ac_objext \
5561     conftest$ac_exeext conftest.$ac_ext
5562 pcg 1.1 if test $ac_R_space = yes; then
5563 pcg 1.11 echo "$as_me:$LINENO: result: yes" >&5
5564     echo "${ECHO_T}yes" >&6
5565 pcg 1.1 X_LIBS="$X_LIBS -R $x_libraries"
5566     else
5567 pcg 1.11 echo "$as_me:$LINENO: result: neither works" >&5
5568     echo "${ECHO_T}neither works" >&6
5569 pcg 1.1 fi
5570     fi
5571 pcg 1.11 LIBS=$ac_xsave_LIBS
5572 pcg 1.1 esac
5573     fi
5574    
5575     # Check for system-dependent libraries X programs must link with.
5576     # Do this before checking for the system-independent R6 libraries
5577     # (-lICE), since we may need -lsocket or whatever for X linking.
5578    
5579     if test "$ISC" = yes; then
5580     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5581     else
5582 pcg 1.11 # Martyn Johnson says this is needed for Ultrix, if the X
5583     # libraries were built with DECnet support. And Karl Berry says
5584 pcg 1.1 # the Alpha needs dnet_stub (dnet does not exist).
5585 pcg 1.11 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5586     cat >conftest.$ac_ext <<_ACEOF
5587     /* confdefs.h. */
5588     _ACEOF
5589     cat confdefs.h >>conftest.$ac_ext
5590     cat >>conftest.$ac_ext <<_ACEOF
5591     /* end confdefs.h. */
5592    
5593 pcg 1.1 /* Override any gcc2 internal prototype to avoid an error. */
5594 pcg 1.11 #ifdef __cplusplus
5595     extern "C"
5596     #endif
5597 pcg 1.1 /* We use char because int might match the return type of a gcc2
5598 pcg 1.11 builtin and then its argument prototype would still apply. */
5599     char XOpenDisplay ();
5600     int
5601     main ()
5602     {
5603     XOpenDisplay ();
5604     ;
5605     return 0;
5606     }
5607     _ACEOF
5608     rm -f conftest.$ac_objext conftest$ac_exeext
5609     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5610     (eval $ac_link) 2>conftest.er1
5611     ac_status=$?
5612     grep -v '^ *+' conftest.er1 >conftest.err
5613     rm -f conftest.er1
5614     cat conftest.err >&5
5615     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616     (exit $ac_status); } &&
5617 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5618 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5619     (eval $ac_try) 2>&5
5620     ac_status=$?
5621     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622     (exit $ac_status); }; } &&
5623     { ac_try='test -s conftest$ac_exeext'
5624     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5625     (eval $ac_try) 2>&5
5626     ac_status=$?
5627     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628     (exit $ac_status); }; }; then
5629     :
5630     else
5631     echo "$as_me: failed program was:" >&5
5632     sed 's/^/| /' conftest.$ac_ext >&5
5633 pcg 1.1
5634 pcg 1.11 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5635     echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5636     if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5637     echo $ECHO_N "(cached) $ECHO_C" >&6
5638 pcg 1.1 else
5639 pcg 1.11 ac_check_lib_save_LIBS=$LIBS
5640     LIBS="-ldnet $LIBS"
5641     cat >conftest.$ac_ext <<_ACEOF
5642     /* confdefs.h. */
5643     _ACEOF
5644     cat confdefs.h >>conftest.$ac_ext
5645     cat >>conftest.$ac_ext <<_ACEOF
5646     /* end confdefs.h. */
5647 pcg 1.1
5648 pcg 1.11 /* Override any gcc2 internal prototype to avoid an error. */
5649     #ifdef __cplusplus
5650     extern "C"
5651     #endif
5652     /* We use char because int might match the return type of a gcc2
5653     builtin and then its argument prototype would still apply. */
5654     char dnet_ntoa ();
5655     int
5656     main ()
5657     {
5658     dnet_ntoa ();
5659     ;
5660     return 0;
5661     }
5662     _ACEOF
5663     rm -f conftest.$ac_objext conftest$ac_exeext
5664     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5665     (eval $ac_link) 2>conftest.er1
5666     ac_status=$?
5667     grep -v '^ *+' conftest.er1 >conftest.err
5668     rm -f conftest.er1
5669     cat conftest.err >&5
5670     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671     (exit $ac_status); } &&
5672 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5673 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5674     (eval $ac_try) 2>&5
5675     ac_status=$?
5676     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677     (exit $ac_status); }; } &&
5678     { ac_try='test -s conftest$ac_exeext'
5679     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5680     (eval $ac_try) 2>&5
5681     ac_status=$?
5682     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683     (exit $ac_status); }; }; then
5684     ac_cv_lib_dnet_dnet_ntoa=yes
5685     else
5686     echo "$as_me: failed program was:" >&5
5687     sed 's/^/| /' conftest.$ac_ext >&5
5688    
5689     ac_cv_lib_dnet_dnet_ntoa=no
5690     fi
5691     rm -f conftest.err conftest.$ac_objext \
5692     conftest$ac_exeext conftest.$ac_ext
5693     LIBS=$ac_check_lib_save_LIBS
5694     fi
5695     echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5696     echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5697     if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5698 pcg 1.1 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5699     fi
5700    
5701     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5702 pcg 1.11 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5703     echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5704     if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5705     echo $ECHO_N "(cached) $ECHO_C" >&6
5706 pcg 1.1 else
5707 pcg 1.11 ac_check_lib_save_LIBS=$LIBS
5708 pcg 1.1 LIBS="-ldnet_stub $LIBS"
5709 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
5710     /* confdefs.h. */
5711     _ACEOF
5712     cat confdefs.h >>conftest.$ac_ext
5713     cat >>conftest.$ac_ext <<_ACEOF
5714     /* end confdefs.h. */
5715    
5716 pcg 1.1 /* Override any gcc2 internal prototype to avoid an error. */
5717 pcg 1.11 #ifdef __cplusplus
5718     extern "C"
5719     #endif
5720 pcg 1.1 /* We use char because int might match the return type of a gcc2
5721 pcg 1.11 builtin and then its argument prototype would still apply. */
5722     char dnet_ntoa ();
5723     int
5724     main ()
5725     {
5726     dnet_ntoa ();
5727     ;
5728     return 0;
5729     }
5730     _ACEOF
5731     rm -f conftest.$ac_objext conftest$ac_exeext
5732     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5733     (eval $ac_link) 2>conftest.er1
5734     ac_status=$?
5735     grep -v '^ *+' conftest.er1 >conftest.err
5736     rm -f conftest.er1
5737     cat conftest.err >&5
5738     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739     (exit $ac_status); } &&
5740 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5741 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5742     (eval $ac_try) 2>&5
5743     ac_status=$?
5744     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745     (exit $ac_status); }; } &&
5746     { ac_try='test -s conftest$ac_exeext'
5747     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5748     (eval $ac_try) 2>&5
5749     ac_status=$?
5750     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751     (exit $ac_status); }; }; then
5752     ac_cv_lib_dnet_stub_dnet_ntoa=yes
5753     else
5754     echo "$as_me: failed program was:" >&5
5755     sed 's/^/| /' conftest.$ac_ext >&5
5756    
5757     ac_cv_lib_dnet_stub_dnet_ntoa=no
5758     fi
5759     rm -f conftest.err conftest.$ac_objext \
5760     conftest$ac_exeext conftest.$ac_ext
5761     LIBS=$ac_check_lib_save_LIBS
5762     fi
5763     echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5764     echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5765     if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5766 pcg 1.1 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5767     fi
5768    
5769     fi
5770 pcg 1.11 fi
5771     rm -f conftest.err conftest.$ac_objext \
5772     conftest$ac_exeext conftest.$ac_ext
5773     LIBS="$ac_xsave_LIBS"
5774 pcg 1.1
5775     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5776     # to get the SysV transport functions.
5777 pcg 1.11 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5778 pcg 1.1 # needs -lnsl.
5779     # The nsl library prevents programs from opening the X display
5780 pcg 1.11 # on Irix 5.2, according to T.E. Dickey.
5781     # The functions gethostbyname, getservbyname, and inet_addr are
5782     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5783     echo "$as_me:$LINENO: checking for gethostbyname" >&5
5784     echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5785     if test "${ac_cv_func_gethostbyname+set}" = set; then
5786     echo $ECHO_N "(cached) $ECHO_C" >&6
5787     else
5788     cat >conftest.$ac_ext <<_ACEOF
5789     /* confdefs.h. */
5790     _ACEOF
5791     cat confdefs.h >>conftest.$ac_ext
5792     cat >>conftest.$ac_ext <<_ACEOF
5793     /* end confdefs.h. */
5794     /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5795     For example, HP-UX 11i <limits.h> declares gettimeofday. */
5796     #define gethostbyname innocuous_gethostbyname
5797    
5798 pcg 1.1 /* System header to define __stub macros and hopefully few prototypes,
5799 pcg 1.11 which can conflict with char gethostbyname (); below.
5800     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5801     <limits.h> exists even on freestanding compilers. */
5802    
5803     #ifdef __STDC__
5804     # include <limits.h>
5805     #else
5806     # include <assert.h>
5807     #endif
5808    
5809     #undef gethostbyname
5810    
5811 pcg 1.1 /* Override any gcc2 internal prototype to avoid an error. */
5812 pcg 1.11 #ifdef __cplusplus
5813     extern "C"
5814     {
5815     #endif
5816 pcg 1.1 /* We use char because int might match the return type of a gcc2
5817 pcg 1.11 builtin and then its argument prototype would still apply. */
5818     char gethostbyname ();
5819 pcg 1.1 /* The GNU C library defines this for functions which it implements
5820     to always fail with ENOSYS. Some functions are actually named
5821     something starting with __ and the normal name is an alias. */
5822     #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5823     choke me
5824     #else
5825 pcg 1.11 char (*f) () = gethostbyname;
5826     #endif
5827     #ifdef __cplusplus
5828     }
5829 pcg 1.1 #endif
5830    
5831 pcg 1.11 int
5832     main ()
5833     {
5834     return f != gethostbyname;
5835     ;
5836     return 0;
5837     }
5838     _ACEOF
5839     rm -f conftest.$ac_objext conftest$ac_exeext
5840     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5841     (eval $ac_link) 2>conftest.er1
5842     ac_status=$?
5843     grep -v '^ *+' conftest.er1 >conftest.err
5844     rm -f conftest.er1
5845     cat conftest.err >&5
5846     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847     (exit $ac_status); } &&
5848 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5849 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5850     (eval $ac_try) 2>&5
5851     ac_status=$?
5852     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853     (exit $ac_status); }; } &&
5854     { ac_try='test -s conftest$ac_exeext'
5855     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5856     (eval $ac_try) 2>&5
5857     ac_status=$?
5858     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859     (exit $ac_status); }; }; then
5860     ac_cv_func_gethostbyname=yes
5861     else
5862     echo "$as_me: failed program was:" >&5
5863     sed 's/^/| /' conftest.$ac_ext >&5
5864    
5865     ac_cv_func_gethostbyname=no
5866     fi
5867     rm -f conftest.err conftest.$ac_objext \
5868     conftest$ac_exeext conftest.$ac_ext
5869     fi
5870     echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5871     echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5872    
5873 pcg 1.1 if test $ac_cv_func_gethostbyname = no; then
5874 pcg 1.11 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5875     echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5876     if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5877     echo $ECHO_N "(cached) $ECHO_C" >&6
5878 pcg 1.1 else
5879 pcg 1.11 ac_check_lib_save_LIBS=$LIBS
5880 pcg 1.1 LIBS="-lnsl $LIBS"
5881 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
5882     /* confdefs.h. */
5883     _ACEOF
5884     cat confdefs.h >>conftest.$ac_ext
5885     cat >>conftest.$ac_ext <<_ACEOF
5886     /* end confdefs.h. */
5887    
5888 pcg 1.1 /* Override any gcc2 internal prototype to avoid an error. */
5889 pcg 1.11 #ifdef __cplusplus
5890     extern "C"
5891     #endif
5892 pcg 1.1 /* We use char because int might match the return type of a gcc2
5893 pcg 1.11 builtin and then its argument prototype would still apply. */
5894     char gethostbyname ();
5895     int
5896     main ()
5897     {
5898     gethostbyname ();
5899     ;
5900     return 0;
5901     }
5902     _ACEOF
5903     rm -f conftest.$ac_objext conftest$ac_exeext
5904     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5905     (eval $ac_link) 2>conftest.er1
5906     ac_status=$?
5907     grep -v '^ *+' conftest.er1 >conftest.err
5908     rm -f conftest.er1
5909     cat conftest.err >&5
5910     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911     (exit $ac_status); } &&
5912 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5913 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5914     (eval $ac_try) 2>&5
5915     ac_status=$?
5916     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917     (exit $ac_status); }; } &&
5918     { ac_try='test -s conftest$ac_exeext'
5919     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5920     (eval $ac_try) 2>&5
5921     ac_status=$?
5922     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923     (exit $ac_status); }; }; then
5924     ac_cv_lib_nsl_gethostbyname=yes
5925     else
5926     echo "$as_me: failed program was:" >&5
5927     sed 's/^/| /' conftest.$ac_ext >&5
5928    
5929     ac_cv_lib_nsl_gethostbyname=no
5930     fi
5931     rm -f conftest.err conftest.$ac_objext \
5932     conftest$ac_exeext conftest.$ac_ext
5933     LIBS=$ac_check_lib_save_LIBS
5934     fi
5935     echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5936     echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5937     if test $ac_cv_lib_nsl_gethostbyname = yes; then
5938     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5939     fi
5940 pcg 1.1
5941 pcg 1.11 if test $ac_cv_lib_nsl_gethostbyname = no; then
5942     echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5943     echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5944     if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5945     echo $ECHO_N "(cached) $ECHO_C" >&6
5946     else
5947     ac_check_lib_save_LIBS=$LIBS
5948     LIBS="-lbsd $LIBS"
5949     cat >conftest.$ac_ext <<_ACEOF
5950     /* confdefs.h. */
5951     _ACEOF
5952     cat confdefs.h >>conftest.$ac_ext
5953     cat >>conftest.$ac_ext <<_ACEOF
5954     /* end confdefs.h. */
5955 pcg 1.1
5956 pcg 1.11 /* Override any gcc2 internal prototype to avoid an error. */
5957     #ifdef __cplusplus
5958     extern "C"
5959     #endif
5960     /* We use char because int might match the return type of a gcc2
5961     builtin and then its argument prototype would still apply. */
5962     char gethostbyname ();
5963     int
5964     main ()
5965     {
5966     gethostbyname ();
5967     ;
5968     return 0;
5969     }
5970     _ACEOF
5971     rm -f conftest.$ac_objext conftest$ac_exeext
5972     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5973     (eval $ac_link) 2>conftest.er1
5974     ac_status=$?
5975     grep -v '^ *+' conftest.er1 >conftest.err
5976     rm -f conftest.er1
5977     cat conftest.err >&5
5978     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979     (exit $ac_status); } &&
5980 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5981 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5982     (eval $ac_try) 2>&5
5983     ac_status=$?
5984     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985     (exit $ac_status); }; } &&
5986     { ac_try='test -s conftest$ac_exeext'
5987     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5988     (eval $ac_try) 2>&5
5989     ac_status=$?
5990     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991     (exit $ac_status); }; }; then
5992     ac_cv_lib_bsd_gethostbyname=yes
5993     else
5994     echo "$as_me: failed program was:" >&5
5995     sed 's/^/| /' conftest.$ac_ext >&5
5996    
5997     ac_cv_lib_bsd_gethostbyname=no
5998     fi
5999     rm -f conftest.err conftest.$ac_objext \
6000     conftest$ac_exeext conftest.$ac_ext
6001     LIBS=$ac_check_lib_save_LIBS
6002     fi
6003     echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6004     echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
6005     if test $ac_cv_lib_bsd_gethostbyname = yes; then
6006     X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6007 pcg 1.1 fi
6008    
6009 pcg 1.11 fi
6010 pcg 1.1 fi
6011    
6012     # lieder@skyler.mavd.honeywell.com says without -lsocket,
6013     # socket/setsockopt and other routines are undefined under SCO ODT
6014     # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6015 pcg 1.11 # on later versions), says Simon Leinen: it contains gethostby*
6016     # variants that don't use the name server (or something). -lsocket
6017     # must be given before -lnsl if both are needed. We assume that
6018     # if connect needs -lnsl, so does gethostbyname.
6019     echo "$as_me:$LINENO: checking for connect" >&5
6020     echo $ECHO_N "checking for connect... $ECHO_C" >&6
6021     if test "${ac_cv_func_connect+set}" = set; then
6022     echo $ECHO_N "(cached) $ECHO_C" >&6
6023     else
6024     cat >conftest.$ac_ext <<_ACEOF
6025     /* confdefs.h. */
6026     _ACEOF
6027     cat confdefs.h >>conftest.$ac_ext
6028     cat >>conftest.$ac_ext <<_ACEOF
6029     /* end confdefs.h. */
6030     /* Define connect to an innocuous variant, in case <limits.h> declares connect.
6031     For example, HP-UX 11i <limits.h> declares gettimeofday. */
6032     #define connect innocuous_connect
6033    
6034 pcg 1.1 /* System header to define __stub macros and hopefully few prototypes,
6035 pcg 1.11 which can conflict with char connect (); below.
6036     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6037     <limits.h> exists even on freestanding compilers. */
6038    
6039     #ifdef __STDC__
6040     # include <limits.h>
6041     #else
6042     # include <assert.h>
6043     #endif
6044    
6045     #undef connect
6046    
6047 pcg 1.1 /* Override any gcc2 internal prototype to avoid an error. */
6048 pcg 1.11 #ifdef __cplusplus
6049     extern "C"
6050     {
6051     #endif
6052 pcg 1.1 /* We use char because int might match the return type of a gcc2
6053 pcg 1.11 builtin and then its argument prototype would still apply. */
6054     char connect ();
6055 pcg 1.1 /* The GNU C library defines this for functions which it implements
6056     to always fail with ENOSYS. Some functions are actually named
6057     something starting with __ and the normal name is an alias. */
6058     #if defined (__stub_connect) || defined (__stub___connect)
6059     choke me
6060     #else
6061 pcg 1.11 char (*f) () = connect;
6062     #endif
6063     #ifdef __cplusplus
6064     }
6065 pcg 1.1 #endif
6066    
6067 pcg 1.11 int
6068     main ()
6069     {
6070     return f != connect;
6071     ;
6072     return 0;
6073     }
6074     _ACEOF
6075     rm -f conftest.$ac_objext conftest$ac_exeext
6076     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6077     (eval $ac_link) 2>conftest.er1
6078     ac_status=$?
6079     grep -v '^ *+' conftest.er1 >conftest.err
6080     rm -f conftest.er1
6081     cat conftest.err >&5
6082     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083     (exit $ac_status); } &&
6084 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6085 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6086     (eval $ac_try) 2>&5
6087     ac_status=$?
6088     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089     (exit $ac_status); }; } &&
6090     { ac_try='test -s conftest$ac_exeext'
6091     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6092     (eval $ac_try) 2>&5
6093     ac_status=$?
6094     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095     (exit $ac_status); }; }; then
6096     ac_cv_func_connect=yes
6097     else
6098     echo "$as_me: failed program was:" >&5
6099     sed 's/^/| /' conftest.$ac_ext >&5
6100    
6101     ac_cv_func_connect=no
6102 pcg 1.1 fi
6103 pcg 1.11 rm -f conftest.err conftest.$ac_objext \
6104     conftest$ac_exeext conftest.$ac_ext
6105 pcg 1.1 fi
6106 pcg 1.11 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6107     echo "${ECHO_T}$ac_cv_func_connect" >&6
6108 pcg 1.1
6109     if test $ac_cv_func_connect = no; then
6110 pcg 1.11 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6111     echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6112     if test "${ac_cv_lib_socket_connect+set}" = set; then
6113     echo $ECHO_N "(cached) $ECHO_C" >&6
6114 pcg 1.1 else
6115 pcg 1.11 ac_check_lib_save_LIBS=$LIBS
6116 pcg 1.1 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6117 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
6118     /* confdefs.h. */
6119     _ACEOF
6120     cat confdefs.h >>conftest.$ac_ext
6121     cat >>conftest.$ac_ext <<_ACEOF
6122     /* end confdefs.h. */
6123    
6124 pcg 1.1 /* Override any gcc2 internal prototype to avoid an error. */
6125 pcg 1.11 #ifdef __cplusplus
6126     extern "C"
6127     #endif
6128 pcg 1.1 /* We use char because int might match the return type of a gcc2
6129 pcg 1.11 builtin and then its argument prototype would still apply. */
6130     char connect ();
6131     int
6132     main ()
6133     {
6134     connect ();
6135     ;
6136     return 0;
6137     }
6138     _ACEOF
6139     rm -f conftest.$ac_objext conftest$ac_exeext
6140     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6141     (eval $ac_link) 2>conftest.er1
6142     ac_status=$?
6143     grep -v '^ *+' conftest.er1 >conftest.err
6144     rm -f conftest.er1
6145     cat conftest.err >&5
6146     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147     (exit $ac_status); } &&
6148 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6149 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6150     (eval $ac_try) 2>&5
6151     ac_status=$?
6152     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153     (exit $ac_status); }; } &&
6154     { ac_try='test -s conftest$ac_exeext'
6155     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6156     (eval $ac_try) 2>&5
6157     ac_status=$?
6158     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159     (exit $ac_status); }; }; then
6160     ac_cv_lib_socket_connect=yes
6161     else
6162     echo "$as_me: failed program was:" >&5
6163     sed 's/^/| /' conftest.$ac_ext >&5
6164    
6165     ac_cv_lib_socket_connect=no
6166     fi
6167     rm -f conftest.err conftest.$ac_objext \
6168     conftest$ac_exeext conftest.$ac_ext
6169     LIBS=$ac_check_lib_save_LIBS
6170     fi
6171     echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6172     echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6173     if test $ac_cv_lib_socket_connect = yes; then
6174 pcg 1.1 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6175     fi
6176    
6177     fi
6178    
6179 pcg 1.11 # Guillermo Gomez says -lposix is necessary on A/UX.
6180     echo "$as_me:$LINENO: checking for remove" >&5
6181     echo $ECHO_N "checking for remove... $ECHO_C" >&6
6182     if test "${ac_cv_func_remove+set}" = set; then
6183     echo $ECHO_N "(cached) $ECHO_C" >&6
6184     else
6185     cat >conftest.$ac_ext <<_ACEOF
6186     /* confdefs.h. */
6187     _ACEOF
6188     cat confdefs.h >>conftest.$ac_ext
6189     cat >>conftest.$ac_ext <<_ACEOF
6190     /* end confdefs.h. */
6191     /* Define remove to an innocuous variant, in case <limits.h> declares remove.
6192     For example, HP-UX 11i <limits.h> declares gettimeofday. */
6193     #define remove innocuous_remove
6194    
6195 pcg 1.1 /* System header to define __stub macros and hopefully few prototypes,
6196 pcg 1.11 which can conflict with char remove (); below.
6197     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6198     <limits.h> exists even on freestanding compilers. */
6199    
6200     #ifdef __STDC__
6201     # include <limits.h>
6202     #else
6203     # include <assert.h>
6204     #endif
6205    
6206     #undef remove
6207    
6208 pcg 1.1 /* Override any gcc2 internal prototype to avoid an error. */
6209 pcg 1.11 #ifdef __cplusplus
6210     extern "C"
6211     {
6212     #endif
6213 pcg 1.1 /* We use char because int might match the return type of a gcc2
6214 pcg 1.11 builtin and then its argument prototype would still apply. */
6215     char remove ();
6216 pcg 1.1 /* The GNU C library defines this for functions which it implements
6217     to always fail with ENOSYS. Some functions are actually named
6218     something starting with __ and the normal name is an alias. */
6219     #if defined (__stub_remove) || defined (__stub___remove)
6220     choke me
6221     #else
6222 pcg 1.11 char (*f) () = remove;
6223     #endif
6224     #ifdef __cplusplus
6225     }
6226 pcg 1.1 #endif
6227    
6228 pcg 1.11 int
6229     main ()
6230     {
6231     return f != remove;
6232     ;
6233     return 0;
6234     }
6235     _ACEOF
6236     rm -f conftest.$ac_objext conftest$ac_exeext
6237     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6238     (eval $ac_link) 2>conftest.er1
6239     ac_status=$?
6240     grep -v '^ *+' conftest.er1 >conftest.err
6241     rm -f conftest.er1
6242     cat conftest.err >&5
6243     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244     (exit $ac_status); } &&
6245 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6246 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6247     (eval $ac_try) 2>&5
6248     ac_status=$?
6249     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250     (exit $ac_status); }; } &&
6251     { ac_try='test -s conftest$ac_exeext'
6252     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6253     (eval $ac_try) 2>&5
6254     ac_status=$?
6255     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256     (exit $ac_status); }; }; then
6257     ac_cv_func_remove=yes
6258     else
6259     echo "$as_me: failed program was:" >&5
6260     sed 's/^/| /' conftest.$ac_ext >&5
6261    
6262     ac_cv_func_remove=no
6263 pcg 1.1 fi
6264 pcg 1.11 rm -f conftest.err conftest.$ac_objext \
6265     conftest$ac_exeext conftest.$ac_ext
6266 pcg 1.1 fi
6267 pcg 1.11 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6268     echo "${ECHO_T}$ac_cv_func_remove" >&6
6269 pcg 1.1
6270     if test $ac_cv_func_remove = no; then
6271 pcg 1.11 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6272     echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
6273     if test "${ac_cv_lib_posix_remove+set}" = set; then
6274     echo $ECHO_N "(cached) $ECHO_C" >&6
6275 pcg 1.1 else
6276 pcg 1.11 ac_check_lib_save_LIBS=$LIBS
6277 pcg 1.1 LIBS="-lposix $LIBS"
6278 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
6279     /* confdefs.h. */
6280     _ACEOF
6281     cat confdefs.h >>conftest.$ac_ext
6282     cat >>conftest.$ac_ext <<_ACEOF
6283     /* end confdefs.h. */
6284    
6285 pcg 1.1 /* Override any gcc2 internal prototype to avoid an error. */
6286 pcg 1.11 #ifdef __cplusplus
6287     extern "C"
6288     #endif
6289 pcg 1.1 /* We use char because int might match the return type of a gcc2
6290 pcg 1.11 builtin and then its argument prototype would still apply. */
6291     char remove ();
6292     int
6293     main ()
6294     {
6295     remove ();
6296     ;
6297     return 0;
6298     }
6299     _ACEOF
6300     rm -f conftest.$ac_objext conftest$ac_exeext
6301     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6302     (eval $ac_link) 2>conftest.er1
6303     ac_status=$?
6304     grep -v '^ *+' conftest.er1 >conftest.err
6305     rm -f conftest.er1
6306     cat conftest.err >&5
6307     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308     (exit $ac_status); } &&
6309 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6310 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6311     (eval $ac_try) 2>&5
6312     ac_status=$?
6313     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314     (exit $ac_status); }; } &&
6315     { ac_try='test -s conftest$ac_exeext'
6316     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6317     (eval $ac_try) 2>&5
6318     ac_status=$?
6319     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320     (exit $ac_status); }; }; then
6321     ac_cv_lib_posix_remove=yes
6322     else
6323     echo "$as_me: failed program was:" >&5
6324     sed 's/^/| /' conftest.$ac_ext >&5
6325    
6326     ac_cv_lib_posix_remove=no
6327     fi
6328     rm -f conftest.err conftest.$ac_objext \
6329     conftest$ac_exeext conftest.$ac_ext
6330     LIBS=$ac_check_lib_save_LIBS
6331     fi
6332     echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6333     echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
6334     if test $ac_cv_lib_posix_remove = yes; then
6335 pcg 1.1 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6336     fi
6337    
6338     fi
6339    
6340     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6341 pcg 1.11 echo "$as_me:$LINENO: checking for shmat" >&5
6342     echo $ECHO_N "checking for shmat... $ECHO_C" >&6
6343     if test "${ac_cv_func_shmat+set}" = set; then
6344     echo $ECHO_N "(cached) $ECHO_C" >&6
6345     else
6346     cat >conftest.$ac_ext <<_ACEOF
6347     /* confdefs.h. */
6348     _ACEOF
6349     cat confdefs.h >>conftest.$ac_ext
6350     cat >>conftest.$ac_ext <<_ACEOF
6351     /* end confdefs.h. */
6352     /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6353     For example, HP-UX 11i <limits.h> declares gettimeofday. */
6354     #define shmat innocuous_shmat
6355    
6356 pcg 1.1 /* System header to define __stub macros and hopefully few prototypes,
6357 pcg 1.11 which can conflict with char shmat (); below.
6358     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6359     <limits.h> exists even on freestanding compilers. */
6360    
6361     #ifdef __STDC__
6362     # include <limits.h>
6363     #else
6364     # include <assert.h>
6365     #endif
6366    
6367     #undef shmat
6368    
6369 pcg 1.1 /* Override any gcc2 internal prototype to avoid an error. */
6370 pcg 1.11 #ifdef __cplusplus
6371     extern "C"
6372     {
6373     #endif
6374 pcg 1.1 /* We use char because int might match the return type of a gcc2
6375 pcg 1.11 builtin and then its argument prototype would still apply. */
6376     char shmat ();
6377 pcg 1.1 /* The GNU C library defines this for functions which it implements
6378     to always fail with ENOSYS. Some functions are actually named
6379     something starting with __ and the normal name is an alias. */
6380     #if defined (__stub_shmat) || defined (__stub___shmat)
6381     choke me
6382     #else
6383 pcg 1.11 char (*f) () = shmat;
6384 pcg 1.1 #endif
6385 pcg 1.11 #ifdef __cplusplus
6386     }
6387     #endif
6388    
6389     int
6390     main ()
6391     {
6392     return f != shmat;
6393     ;
6394     return 0;
6395     }
6396     _ACEOF
6397     rm -f conftest.$ac_objext conftest$ac_exeext
6398     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6399     (eval $ac_link) 2>conftest.er1
6400     ac_status=$?
6401     grep -v '^ *+' conftest.er1 >conftest.err
6402     rm -f conftest.er1
6403     cat conftest.err >&5
6404     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405     (exit $ac_status); } &&
6406 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6407 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6408     (eval $ac_try) 2>&5
6409     ac_status=$?
6410     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411     (exit $ac_status); }; } &&
6412     { ac_try='test -s conftest$ac_exeext'
6413     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6414     (eval $ac_try) 2>&5
6415     ac_status=$?
6416     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417     (exit $ac_status); }; }; then
6418     ac_cv_func_shmat=yes
6419     else
6420     echo "$as_me: failed program was:" >&5
6421     sed 's/^/| /' conftest.$ac_ext >&5
6422 pcg 1.1
6423 pcg 1.11 ac_cv_func_shmat=no
6424 pcg 1.1 fi
6425 pcg 1.11 rm -f conftest.err conftest.$ac_objext \
6426     conftest$ac_exeext conftest.$ac_ext
6427 pcg 1.1 fi
6428 pcg 1.11 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6429     echo "${ECHO_T}$ac_cv_func_shmat" >&6
6430 pcg 1.1
6431     if test $ac_cv_func_shmat = no; then
6432 pcg 1.11 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6433     echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
6434     if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6435     echo $ECHO_N "(cached) $ECHO_C" >&6
6436 pcg 1.1 else
6437 pcg 1.11 ac_check_lib_save_LIBS=$LIBS
6438 pcg 1.1 LIBS="-lipc $LIBS"
6439 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
6440     /* confdefs.h. */
6441     _ACEOF
6442     cat confdefs.h >>conftest.$ac_ext
6443     cat >>conftest.$ac_ext <<_ACEOF
6444     /* end confdefs.h. */
6445    
6446 pcg 1.1 /* Override any gcc2 internal prototype to avoid an error. */
6447 pcg 1.11 #ifdef __cplusplus
6448     extern "C"
6449     #endif
6450 pcg 1.1 /* We use char because int might match the return type of a gcc2
6451 pcg 1.11 builtin and then its argument prototype would still apply. */
6452     char shmat ();
6453     int
6454     main ()
6455     {
6456     shmat ();
6457     ;
6458     return 0;
6459     }
6460     _ACEOF
6461     rm -f conftest.$ac_objext conftest$ac_exeext
6462     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6463     (eval $ac_link) 2>conftest.er1
6464     ac_status=$?
6465     grep -v '^ *+' conftest.er1 >conftest.err
6466     rm -f conftest.er1
6467     cat conftest.err >&5
6468     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469     (exit $ac_status); } &&
6470 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6471 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6472     (eval $ac_try) 2>&5
6473     ac_status=$?
6474     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475     (exit $ac_status); }; } &&
6476     { ac_try='test -s conftest$ac_exeext'
6477     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6478     (eval $ac_try) 2>&5
6479     ac_status=$?
6480     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481     (exit $ac_status); }; }; then
6482     ac_cv_lib_ipc_shmat=yes
6483     else
6484     echo "$as_me: failed program was:" >&5
6485     sed 's/^/| /' conftest.$ac_ext >&5
6486    
6487     ac_cv_lib_ipc_shmat=no
6488     fi
6489     rm -f conftest.err conftest.$ac_objext \
6490     conftest$ac_exeext conftest.$ac_ext
6491     LIBS=$ac_check_lib_save_LIBS
6492     fi
6493     echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6494     echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
6495     if test $ac_cv_lib_ipc_shmat = yes; then
6496 pcg 1.1 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6497     fi
6498    
6499     fi
6500     fi
6501    
6502     # Check for libraries that X11R6 Xt/Xaw programs need.
6503 pcg 1.11 ac_save_LDFLAGS=$LDFLAGS
6504 pcg 1.1 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6505     # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6506     # check for ICE first), but we must link in the order -lSM -lICE or
6507     # we get undefined symbols. So assume we have SM if we have ICE.
6508     # These have to be linked with before -lX11, unlike the other
6509     # libraries we check for below, so use a different variable.
6510 pcg 1.11 # John Interrante, Karl Berry
6511     echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6512     echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6513     if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6514     echo $ECHO_N "(cached) $ECHO_C" >&6
6515 pcg 1.1 else
6516 pcg 1.11 ac_check_lib_save_LIBS=$LIBS
6517 pcg 1.1 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6518 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
6519     /* confdefs.h. */
6520     _ACEOF
6521     cat confdefs.h >>conftest.$ac_ext
6522     cat >>conftest.$ac_ext <<_ACEOF
6523     /* end confdefs.h. */
6524    
6525 pcg 1.1 /* Override any gcc2 internal prototype to avoid an error. */
6526 pcg 1.11 #ifdef __cplusplus
6527     extern "C"
6528     #endif
6529 pcg 1.1 /* We use char because int might match the return type of a gcc2
6530 pcg 1.11 builtin and then its argument prototype would still apply. */
6531     char IceConnectionNumber ();
6532     int
6533     main ()
6534     {
6535     IceConnectionNumber ();
6536     ;
6537     return 0;
6538     }
6539     _ACEOF
6540     rm -f conftest.$ac_objext conftest$ac_exeext
6541     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6542     (eval $ac_link) 2>conftest.er1
6543     ac_status=$?
6544     grep -v '^ *+' conftest.er1 >conftest.err
6545     rm -f conftest.er1
6546     cat conftest.err >&5
6547     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548     (exit $ac_status); } &&
6549 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6550 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6551     (eval $ac_try) 2>&5
6552     ac_status=$?
6553     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554     (exit $ac_status); }; } &&
6555     { ac_try='test -s conftest$ac_exeext'
6556     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6557     (eval $ac_try) 2>&5
6558     ac_status=$?
6559     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560     (exit $ac_status); }; }; then
6561     ac_cv_lib_ICE_IceConnectionNumber=yes
6562     else
6563     echo "$as_me: failed program was:" >&5
6564     sed 's/^/| /' conftest.$ac_ext >&5
6565    
6566     ac_cv_lib_ICE_IceConnectionNumber=no
6567     fi
6568     rm -f conftest.err conftest.$ac_objext \
6569     conftest$ac_exeext conftest.$ac_ext
6570     LIBS=$ac_check_lib_save_LIBS
6571     fi
6572     echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6573     echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6574     if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6575 pcg 1.1 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6576     fi
6577    
6578 pcg 1.11 LDFLAGS=$ac_save_LDFLAGS
6579 pcg 1.1
6580     fi
6581    
6582    
6583    
6584     if test x$support_xpm = xyes; then
6585 pcg 1.11
6586 pcg 1.1
6587    
6588     # Initialize some more variables set by options.
6589     # The variables have the same names as the options, with
6590     # dashes changed to underlines.
6591    
6592     # If we find XPM, set shell vars xpm_includes and xpm_libraries to the
6593     # paths, otherwise set no_xpm=yes.
6594     # Uses ac_ vars as temps to allow command line to override cache and checks.
6595 pcg 1.11 echo "$as_me:$LINENO: checking for libXpm" >&5
6596     echo $ECHO_N "checking for libXpm... $ECHO_C" >&6
6597    
6598 pcg 1.1
6599     # Check whether --with-xpm_includes or --without-xpm_includes was given.
6600     if test "${with_xpm_includes+set}" = set; then
6601     withval="$with_xpm_includes"
6602     xpm_includes="$withval"
6603     else
6604     xpm_includes=NO
6605 pcg 1.11 fi;
6606 pcg 1.1
6607     # Check whether --with-xpm_library or --without-xpm_library was given.
6608     if test "${with_xpm_library+set}" = set; then
6609     withval="$with_xpm_library"
6610     xpm_libraries="$withval"
6611     else
6612     xpm_libraries=NO
6613 pcg 1.11 fi;
6614 pcg 1.1
6615 pcg 1.11 # --without-xpm overrides everything else, but does not touch the cache.
6616 pcg 1.1
6617     # Check whether --with-xpm or --without-xpm was given.
6618     if test "${with_xpm+set}" = set; then
6619     withval="$with_xpm"
6620    
6621 pcg 1.11 fi;
6622 pcg 1.1 if test "$with_xpm" = no; then
6623     have_xpm=disabled
6624     else
6625 pcg 1.11 if test "${ac_cv_have_xpm+set}" = set; then
6626     echo $ECHO_N "(cached) $ECHO_C" >&6
6627 pcg 1.1 else
6628 pcg 1.11
6629 pcg 1.1 vt_xpm_include_X11=no
6630     if test -n "$xpm_includes"; then
6631     vt_xpm_includes=$xpm_includes
6632     else
6633     vt_xpm_includes=NO
6634     fi
6635     if test -n "$xpm_libraries"; then
6636     vt_xpm_libraries=$xpm_libraries
6637     else
6638     vt_xpm_libraries=NO
6639     fi
6640    
6641     if test "$vt_xpm_includes" = NO; then
6642     # Guess where to find xpm.h
6643    
6644     ac_save_CPPFLAGS="$CPPFLAGS"
6645     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6646    
6647     # First, try using that file with no special directory specified.
6648 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
6649     /* confdefs.h. */
6650     _ACEOF
6651     cat confdefs.h >>conftest.$ac_ext
6652     cat >>conftest.$ac_ext <<_ACEOF
6653     /* end confdefs.h. */
6654 pcg 1.1 #include <X11/xpm.h>
6655 pcg 1.11 _ACEOF
6656     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6657     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6658     ac_status=$?
6659     grep -v '^ *+' conftest.er1 >conftest.err
6660     rm -f conftest.er1
6661     cat conftest.err >&5
6662     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663     (exit $ac_status); } >/dev/null; then
6664     if test -s conftest.err; then
6665 pcg 1.13 ac_cpp_err=$ac_cxx_preproc_warn_flag
6666     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6667 pcg 1.11 else
6668     ac_cpp_err=
6669     fi
6670     else
6671     ac_cpp_err=yes
6672     fi
6673     if test -z "$ac_cpp_err"; then
6674 pcg 1.1 # We can compile using X headers with no special include directory.
6675     vt_xpm_includes=
6676     vt_xpm_include_X11=yes
6677     else
6678 pcg 1.11 echo "$as_me: failed program was:" >&5
6679     sed 's/^/| /' conftest.$ac_ext >&5
6680    
6681 pcg 1.1 CPPFLAGS="$ac_save_CPPFLAGS"
6682     # Look for the header file in a standard set of common directories.
6683     for ac_dir in \
6684     /usr/X11/include \
6685     /usr/X11R6/include \
6686     /usr/X11R5/include \
6687     /usr/X11R4/include \
6688     \
6689     /usr/include/X11 \
6690     /usr/include/X11R6 \
6691     /usr/include/X11R5 \
6692     /usr/include/X11R4 \
6693     \
6694     /usr/local/X11/include \
6695     /usr/local/X11R6/include \
6696     /usr/local/X11R5/include \
6697     /usr/local/X11R4/include \
6698     \
6699     /usr/local/include/X11 \
6700     /usr/local/include/X11R6 \
6701     /usr/local/include/X11R5 \
6702     /usr/local/include/X11R4 \
6703     \
6704     /usr/X386/include \
6705     /usr/x386/include \
6706     /usr/XFree86/include/X11 \
6707     \
6708     /usr/include \
6709     /usr/local/include \
6710     /usr/unsupported/include \
6711     /usr/athena/include \
6712     /usr/local/x11r5/include \
6713     /usr/lpp/Xamples/include \
6714     \
6715     /usr/openwin/include \
6716     /usr/openwin/share/include \
6717     ; \
6718     do
6719     if test -r "$ac_dir/X11/xpm.h"; then
6720     vt_xpm_includes="$ac_dir"
6721     vt_xpm_include_X11=yes
6722     break
6723     else
6724     if test -r "$ac_dir/xpm.h"; then
6725     vt_xpm_includes=$ac_dir
6726     break
6727     fi
6728     fi
6729     done
6730     fi
6731 pcg 1.11 rm -f conftest.err conftest.$ac_ext
6732 pcg 1.1 fi
6733    
6734     if test "$vt_xpm_libraries" = NO; then
6735     # Check for the libraries.
6736    
6737     # See if we find them without any special options.
6738     # Don't add to $LIBS permanently.
6739     ac_save_LIBS="$LIBS"
6740     LIBS="$LIBS $X_LIBS -lXpm -lX11"
6741 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
6742     /* confdefs.h. */
6743     _ACEOF
6744     cat confdefs.h >>conftest.$ac_ext
6745     cat >>conftest.$ac_ext <<_ACEOF
6746     /* end confdefs.h. */
6747 pcg 1.1
6748 pcg 1.11 int
6749     main ()
6750     {
6751 pcg 1.1 XpmReadFileToPixmap()
6752 pcg 1.11 ;
6753     return 0;
6754     }
6755     _ACEOF
6756     rm -f conftest.$ac_objext conftest$ac_exeext
6757     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6758     (eval $ac_link) 2>conftest.er1
6759     ac_status=$?
6760     grep -v '^ *+' conftest.er1 >conftest.err
6761     rm -f conftest.er1
6762     cat conftest.err >&5
6763     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764     (exit $ac_status); } &&
6765 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6766 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6767     (eval $ac_try) 2>&5
6768     ac_status=$?
6769     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770     (exit $ac_status); }; } &&
6771     { ac_try='test -s conftest$ac_exeext'
6772     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6773     (eval $ac_try) 2>&5
6774     ac_status=$?
6775     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776     (exit $ac_status); }; }; then
6777 pcg 1.1 LIBS="$ac_save_LIBS"
6778     # We can link libXpm with no special library path.
6779     vt_xpm_libraries=
6780     else
6781 pcg 1.11 echo "$as_me: failed program was:" >&5
6782     sed 's/^/| /' conftest.$ac_ext >&5
6783    
6784     LIBS="$ac_save_LIBS"
6785 pcg 1.1 # First see if replacing the include by lib works.
6786     for ac_dir in \
6787     `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \
6788     /usr/X11/lib \
6789     /usr/X11R6/lib \
6790     /usr/X11R5/lib \
6791     /usr/X11R4/lib \
6792     \
6793     /usr/lib/X11 \
6794     /usr/lib/X11R6 \
6795     /usr/lib/X11R5 \
6796     /usr/lib/X11R4 \
6797     \
6798     /usr/local/X11/lib \
6799     /usr/local/X11R6/lib \
6800     /usr/local/X11R5/lib \
6801     /usr/local/X11R4/lib \
6802     \
6803     /usr/local/lib/X11 \
6804     /usr/local/lib/X11R6 \
6805     /usr/local/lib/X11R5 \
6806     /usr/local/lib/X11R4 \
6807     \
6808     /usr/X386/lib \
6809     /usr/x386/lib \
6810     /usr/XFree86/lib/X11 \
6811     \
6812     /usr/lib \
6813     /usr/local/lib \
6814     /usr/unsupported/lib \
6815     /usr/athena/lib \
6816     /usr/local/x11r5/lib \
6817     /usr/lpp/Xamples/lib \
6818     \
6819     /usr/openwin/lib \
6820     /usr/openwin/share/lib \
6821     ; \
6822     do
6823     for ac_extension in a so sl; do
6824     if test -r $ac_dir/libXpm.$ac_extension; then
6825     vt_xpm_libraries=$ac_dir
6826     break 2
6827     fi
6828     done
6829     done
6830     fi
6831 pcg 1.11 rm -f conftest.err conftest.$ac_objext \
6832     conftest$ac_exeext conftest.$ac_ext
6833 pcg 1.1 fi
6834    
6835    
6836     if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then
6837     ac_cv_have_xpm="have_xpm=no"
6838     else
6839     ac_cv_have_xpm="have_xpm=yes \
6840     vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
6841     vt_xpm_include_X11=$vt_xpm_include_X11"
6842     fi
6843     fi
6844     eval "$ac_cv_have_xpm"
6845     fi
6846    
6847     if test "$have_xpm" != yes; then
6848 pcg 1.11 echo "$as_me:$LINENO: result: $have_xpm" >&5
6849     echo "${ECHO_T}$have_xpm" >&6
6850 pcg 1.1 no_xpm=yes
6851     else
6852     if test "$xpm_includes" != NO; then
6853     if test "$xpm_includes" = "$vt_xpm_includes"; then
6854     if test -r "$xpm_includes/X11/xpm.h"; then
6855     vt_xpm_include_X11=yes
6856     fi
6857     else
6858     vt_xpm_include_X11=no
6859     if test -z "$xpm_includes"; then
6860 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
6861     /* confdefs.h. */
6862     _ACEOF
6863     cat confdefs.h >>conftest.$ac_ext
6864     cat >>conftest.$ac_ext <<_ACEOF
6865     /* end confdefs.h. */
6866 pcg 1.1 #include <X11/xpm.h>
6867 pcg 1.11 _ACEOF
6868     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6869     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6870     ac_status=$?
6871     grep -v '^ *+' conftest.er1 >conftest.err
6872     rm -f conftest.er1
6873     cat conftest.err >&5
6874     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875     (exit $ac_status); } >/dev/null; then
6876     if test -s conftest.err; then
6877 pcg 1.13 ac_cpp_err=$ac_cxx_preproc_warn_flag
6878     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6879 pcg 1.11 else
6880     ac_cpp_err=
6881     fi
6882     else
6883     ac_cpp_err=yes
6884     fi
6885     if test -z "$ac_cpp_err"; then
6886 pcg 1.1 vt_xpm_include_X11=yes
6887     else
6888 pcg 1.11 echo "$as_me: failed program was:" >&5
6889     sed 's/^/| /' conftest.$ac_ext >&5
6890    
6891    
6892 pcg 1.1 fi
6893 pcg 1.11 rm -f conftest.err conftest.$ac_ext
6894 pcg 1.1 else
6895     if test -r "$xpm_includes/X11/xpm.h"; then
6896     vt_xpm_include_X11=yes
6897     fi
6898     fi
6899     fi
6900     vt_xpm_includes=$xpm_includes
6901     fi
6902     if test "x$xpm_libraries" != xNO; then
6903     vt_xpm_libraries=$xpm_libraries
6904     fi
6905     # Update the cache value to reflect the command line values.
6906     ac_cv_have_xpm="have_xpm=yes \
6907     vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
6908     vt_xpm_include_X11=$vt_xpm_include_X11"
6909     eval "$ac_cv_have_xpm"
6910 pcg 1.11 echo "$as_me:$LINENO: result: -I$vt_xpm_includes, -L$vt_xpm_libraries" >&5
6911     echo "${ECHO_T}-I$vt_xpm_includes, -L$vt_xpm_libraries" >&6
6912 pcg 1.1 if test -n "$vt_xpm_includes"; then
6913     XPM_CPPFLAGS="-DHAVE_LIBXPM"
6914     fi
6915     if test -n "$vt_xpm_includes"; then
6916     XPM_CFLAGS="-I$vt_xpm_includes"
6917     fi
6918     XPM_LIBS="-lXpm"
6919     if test -n "$vt_xpm_libraries"; then
6920     XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS"
6921     fi
6922     if test "x$vt_xpm_include_X11" = xyes; then
6923 pcg 1.11
6924     cat >>confdefs.h <<\_ACEOF
6925 pcg 1.1 #define XPM_INC_X11 1
6926 pcg 1.11 _ACEOF
6927 pcg 1.1
6928     fi
6929     fi
6930    
6931    
6932    
6933    
6934    
6935     if test x$no_xpm = xyes; then
6936     support_xpm=needsmanualspecification
6937     fi
6938     fi
6939    
6940 pcg 1.11 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6941     echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6942     if test "${ac_cv_header_sys_wait_h+set}" = set; then
6943     echo $ECHO_N "(cached) $ECHO_C" >&6
6944     else
6945     cat >conftest.$ac_ext <<_ACEOF
6946     /* confdefs.h. */
6947     _ACEOF
6948     cat confdefs.h >>conftest.$ac_ext
6949     cat >>conftest.$ac_ext <<_ACEOF
6950     /* end confdefs.h. */
6951 pcg 1.1 #include <sys/types.h>
6952     #include <sys/wait.h>
6953     #ifndef WEXITSTATUS
6954 pcg 1.11 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6955 pcg 1.1 #endif
6956     #ifndef WIFEXITED
6957 pcg 1.11 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6958 pcg 1.1 #endif
6959 pcg 1.11
6960     int
6961     main ()
6962     {
6963     int s;
6964     wait (&s);
6965     s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6966     ;
6967     return 0;
6968     }
6969     _ACEOF
6970     rm -f conftest.$ac_objext
6971     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6972     (eval $ac_compile) 2>conftest.er1
6973     ac_status=$?
6974     grep -v '^ *+' conftest.er1 >conftest.err
6975     rm -f conftest.er1
6976     cat conftest.err >&5
6977     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978     (exit $ac_status); } &&
6979 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6980 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6981     (eval $ac_try) 2>&5
6982     ac_status=$?
6983     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984     (exit $ac_status); }; } &&
6985     { ac_try='test -s conftest.$ac_objext'
6986     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6987     (eval $ac_try) 2>&5
6988     ac_status=$?
6989     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990     (exit $ac_status); }; }; then
6991     ac_cv_header_sys_wait_h=yes
6992 pcg 1.1 else
6993 pcg 1.11 echo "$as_me: failed program was:" >&5
6994     sed 's/^/| /' conftest.$ac_ext >&5
6995    
6996     ac_cv_header_sys_wait_h=no
6997 pcg 1.1 fi
6998 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6999 pcg 1.1 fi
7000 pcg 1.11 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7001     echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
7002     if test $ac_cv_header_sys_wait_h = yes; then
7003 pcg 1.1
7004 pcg 1.11 cat >>confdefs.h <<\_ACEOF
7005 pcg 1.1 #define HAVE_SYS_WAIT_H 1
7006 pcg 1.11 _ACEOF
7007 pcg 1.1
7008     fi
7009    
7010 root 1.51 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7011     echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7012     if test "${ac_cv_header_stdc+set}" = set; then
7013     echo $ECHO_N "(cached) $ECHO_C" >&6
7014     else
7015     cat >conftest.$ac_ext <<_ACEOF
7016     /* confdefs.h. */
7017     _ACEOF
7018     cat confdefs.h >>conftest.$ac_ext
7019     cat >>conftest.$ac_ext <<_ACEOF
7020     /* end confdefs.h. */
7021     #include <stdlib.h>
7022     #include <stdarg.h>
7023     #include <string.h>
7024     #include <float.h>
7025    
7026     int
7027     main ()
7028     {
7029    
7030     ;
7031     return 0;
7032     }
7033     _ACEOF
7034     rm -f conftest.$ac_objext
7035     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7036     (eval $ac_compile) 2>conftest.er1
7037     ac_status=$?
7038     grep -v '^ *+' conftest.er1 >conftest.err
7039     rm -f conftest.er1
7040     cat conftest.err >&5
7041     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042     (exit $ac_status); } &&
7043     { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7044     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7045     (eval $ac_try) 2>&5
7046     ac_status=$?
7047     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048     (exit $ac_status); }; } &&
7049     { ac_try='test -s conftest.$ac_objext'
7050     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7051     (eval $ac_try) 2>&5
7052     ac_status=$?
7053     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054     (exit $ac_status); }; }; then
7055     ac_cv_header_stdc=yes
7056     else
7057     echo "$as_me: failed program was:" >&5
7058     sed 's/^/| /' conftest.$ac_ext >&5
7059    
7060     ac_cv_header_stdc=no
7061     fi
7062     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7063    
7064     if test $ac_cv_header_stdc = yes; then
7065     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7066     cat >conftest.$ac_ext <<_ACEOF
7067     /* confdefs.h. */
7068     _ACEOF
7069     cat confdefs.h >>conftest.$ac_ext
7070     cat >>conftest.$ac_ext <<_ACEOF
7071     /* end confdefs.h. */
7072     #include <string.h>
7073    
7074     _ACEOF
7075     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7076     $EGREP "memchr" >/dev/null 2>&1; then
7077     :
7078     else
7079     ac_cv_header_stdc=no
7080     fi
7081     rm -f conftest*
7082    
7083     fi
7084    
7085     if test $ac_cv_header_stdc = yes; then
7086     # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7087     cat >conftest.$ac_ext <<_ACEOF
7088     /* confdefs.h. */
7089     _ACEOF
7090     cat confdefs.h >>conftest.$ac_ext
7091     cat >>conftest.$ac_ext <<_ACEOF
7092     /* end confdefs.h. */
7093     #include <stdlib.h>
7094    
7095     _ACEOF
7096     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7097     $EGREP "free" >/dev/null 2>&1; then
7098     :
7099     else
7100     ac_cv_header_stdc=no
7101     fi
7102     rm -f conftest*
7103    
7104     fi
7105    
7106     if test $ac_cv_header_stdc = yes; then
7107     # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7108     if test "$cross_compiling" = yes; then
7109     :
7110     else
7111     cat >conftest.$ac_ext <<_ACEOF
7112     /* confdefs.h. */
7113     _ACEOF
7114     cat confdefs.h >>conftest.$ac_ext
7115     cat >>conftest.$ac_ext <<_ACEOF
7116     /* end confdefs.h. */
7117     #include <ctype.h>
7118     #if ((' ' & 0x0FF) == 0x020)
7119     # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7120     # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7121     #else
7122     # define ISLOWER(c) \
7123     (('a' <= (c) && (c) <= 'i') \
7124     || ('j' <= (c) && (c) <= 'r') \
7125     || ('s' <= (c) && (c) <= 'z'))
7126     # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7127     #endif
7128    
7129     #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7130     int
7131     main ()
7132     {
7133     int i;
7134     for (i = 0; i < 256; i++)
7135     if (XOR (islower (i), ISLOWER (i))
7136     || toupper (i) != TOUPPER (i))
7137     exit(2);
7138     exit (0);
7139     }
7140     _ACEOF
7141     rm -f conftest$ac_exeext
7142     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7143     (eval $ac_link) 2>&5
7144     ac_status=$?
7145     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7147     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7148     (eval $ac_try) 2>&5
7149     ac_status=$?
7150     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151     (exit $ac_status); }; }; then
7152     :
7153     else
7154     echo "$as_me: program exited with status $ac_status" >&5
7155     echo "$as_me: failed program was:" >&5
7156     sed 's/^/| /' conftest.$ac_ext >&5
7157    
7158     ( exit $ac_status )
7159     ac_cv_header_stdc=no
7160     fi
7161     rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7162     fi
7163     fi
7164     fi
7165     echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7166     echo "${ECHO_T}$ac_cv_header_stdc" >&6
7167     if test $ac_cv_header_stdc = yes; then
7168    
7169     cat >>confdefs.h <<\_ACEOF
7170     #define STDC_HEADERS 1
7171     _ACEOF
7172    
7173     fi
7174    
7175     # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7176    
7177    
7178    
7179    
7180    
7181    
7182    
7183    
7184    
7185     for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7186     inttypes.h stdint.h unistd.h
7187     do
7188     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7189     echo "$as_me:$LINENO: checking for $ac_header" >&5
7190     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7191     if eval "test \"\${$as_ac_Header+set}\" = set"; then
7192     echo $ECHO_N "(cached) $ECHO_C" >&6
7193     else
7194     cat >conftest.$ac_ext <<_ACEOF
7195     /* confdefs.h. */
7196     _ACEOF
7197     cat confdefs.h >>conftest.$ac_ext
7198     cat >>conftest.$ac_ext <<_ACEOF
7199     /* end confdefs.h. */
7200     $ac_includes_default
7201    
7202     #include <$ac_header>
7203     _ACEOF
7204     rm -f conftest.$ac_objext
7205     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7206     (eval $ac_compile) 2>conftest.er1
7207     ac_status=$?
7208     grep -v '^ *+' conftest.er1 >conftest.err
7209     rm -f conftest.er1
7210     cat conftest.err >&5
7211     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212     (exit $ac_status); } &&
7213     { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7214     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7215     (eval $ac_try) 2>&5
7216     ac_status=$?
7217     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218     (exit $ac_status); }; } &&
7219     { ac_try='test -s conftest.$ac_objext'
7220     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7221     (eval $ac_try) 2>&5
7222     ac_status=$?
7223     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224     (exit $ac_status); }; }; then
7225     eval "$as_ac_Header=yes"
7226     else
7227     echo "$as_me: failed program was:" >&5
7228     sed 's/^/| /' conftest.$ac_ext >&5
7229    
7230     eval "$as_ac_Header=no"
7231     fi
7232     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7233     fi
7234     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7235     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7236     if test `eval echo '${'$as_ac_Header'}'` = yes; then
7237     cat >>confdefs.h <<_ACEOF
7238     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7239     _ACEOF
7240    
7241     fi
7242    
7243     done
7244    
7245    
7246 pcg 1.11
7247    
7248    
7249    
7250    
7251    
7252    
7253    
7254    
7255    
7256    
7257    
7258    
7259    
7260    
7261    
7262    
7263    
7264    
7265 root 1.33
7266 root 1.48
7267 root 1.50
7268    
7269    
7270 root 1.64
7271    
7272 pcg 1.11 for ac_header in \
7273 pcg 1.1 assert.h \
7274     fcntl.h \
7275     grp.h \
7276     libc.h \
7277     lastlog.h \
7278     stdarg.h \
7279     stdlib.h \
7280     string.h \
7281     termios.h \
7282     unistd.h \
7283     sys/byteorder.h \
7284     sys/ioctl.h \
7285     sys/select.h \
7286     sys/sockio.h \
7287     sys/strredir.h \
7288 root 1.33 sys/stropts.h \
7289 pcg 1.1 sys/time.h \
7290     utmp.h \
7291     utmpx.h \
7292     stdint.h \
7293 root 1.48 pty.h \
7294 root 1.64 util.h \
7295     libutil.h \
7296 root 1.50 wchar.h \
7297     cwchar \
7298     clocale \
7299 pcg 1.1
7300     do
7301 pcg 1.11 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7302     if eval "test \"\${$as_ac_Header+set}\" = set"; then
7303     echo "$as_me:$LINENO: checking for $ac_header" >&5
7304     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7305     if eval "test \"\${$as_ac_Header+set}\" = set"; then
7306     echo $ECHO_N "(cached) $ECHO_C" >&6
7307     fi
7308     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7309     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7310     else
7311     # Is the header compilable?
7312     echo "$as_me:$LINENO: checking $ac_header usability" >&5
7313     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7314     cat >conftest.$ac_ext <<_ACEOF
7315     /* confdefs.h. */
7316     _ACEOF
7317     cat confdefs.h >>conftest.$ac_ext
7318     cat >>conftest.$ac_ext <<_ACEOF
7319     /* end confdefs.h. */
7320     $ac_includes_default
7321     #include <$ac_header>
7322     _ACEOF
7323     rm -f conftest.$ac_objext
7324     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7325     (eval $ac_compile) 2>conftest.er1
7326     ac_status=$?
7327     grep -v '^ *+' conftest.er1 >conftest.err
7328     rm -f conftest.er1
7329     cat conftest.err >&5
7330     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331     (exit $ac_status); } &&
7332 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7333 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7334     (eval $ac_try) 2>&5
7335     ac_status=$?
7336     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337     (exit $ac_status); }; } &&
7338     { ac_try='test -s conftest.$ac_objext'
7339     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7340     (eval $ac_try) 2>&5
7341     ac_status=$?
7342     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343     (exit $ac_status); }; }; then
7344     ac_header_compiler=yes
7345     else
7346     echo "$as_me: failed program was:" >&5
7347     sed 's/^/| /' conftest.$ac_ext >&5
7348    
7349     ac_header_compiler=no
7350     fi
7351     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7352     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7353     echo "${ECHO_T}$ac_header_compiler" >&6
7354    
7355     # Is the header present?
7356     echo "$as_me:$LINENO: checking $ac_header presence" >&5
7357     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7358     cat >conftest.$ac_ext <<_ACEOF
7359     /* confdefs.h. */
7360     _ACEOF
7361     cat confdefs.h >>conftest.$ac_ext
7362     cat >>conftest.$ac_ext <<_ACEOF
7363     /* end confdefs.h. */
7364     #include <$ac_header>
7365     _ACEOF
7366     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7367     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7368     ac_status=$?
7369     grep -v '^ *+' conftest.er1 >conftest.err
7370     rm -f conftest.er1
7371     cat conftest.err >&5
7372     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7373     (exit $ac_status); } >/dev/null; then
7374     if test -s conftest.err; then
7375 pcg 1.13 ac_cpp_err=$ac_cxx_preproc_warn_flag
7376     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7377 pcg 1.11 else
7378     ac_cpp_err=
7379     fi
7380     else
7381     ac_cpp_err=yes
7382     fi
7383     if test -z "$ac_cpp_err"; then
7384     ac_header_preproc=yes
7385 pcg 1.1 else
7386 pcg 1.11 echo "$as_me: failed program was:" >&5
7387     sed 's/^/| /' conftest.$ac_ext >&5
7388    
7389     ac_header_preproc=no
7390     fi
7391     rm -f conftest.err conftest.$ac_ext
7392     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7393     echo "${ECHO_T}$ac_header_preproc" >&6
7394    
7395     # So? What about this header?
7396 pcg 1.13 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7397 pcg 1.11 yes:no: )
7398     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7399     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7400     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7401     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7402     ac_header_preproc=yes
7403     ;;
7404     no:yes:* )
7405     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7406     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7407     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7408     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7409     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7410     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7411     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7412     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7413     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7414     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7415     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7416     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7417     (
7418     cat <<\_ASBOX
7419     ## ------------------------------------------ ##
7420     ## Report this to the AC_PACKAGE_NAME lists. ##
7421     ## ------------------------------------------ ##
7422     _ASBOX
7423     ) |
7424     sed "s/^/$as_me: WARNING: /" >&2
7425     ;;
7426     esac
7427     echo "$as_me:$LINENO: checking for $ac_header" >&5
7428     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7429     if eval "test \"\${$as_ac_Header+set}\" = set"; then
7430     echo $ECHO_N "(cached) $ECHO_C" >&6
7431 pcg 1.1 else
7432 pcg 1.11 eval "$as_ac_Header=\$ac_header_preproc"
7433 pcg 1.1 fi
7434 pcg 1.11 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7435     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7436    
7437 pcg 1.1 fi
7438 pcg 1.11 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7439     cat >>confdefs.h <<_ACEOF
7440     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7441     _ACEOF
7442    
7443 pcg 1.1 fi
7444 pcg 1.11
7445 pcg 1.1 done
7446    
7447    
7448 pcg 1.11 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7449     echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7450     if test "${ac_cv_header_time+set}" = set; then
7451     echo $ECHO_N "(cached) $ECHO_C" >&6
7452     else
7453     cat >conftest.$ac_ext <<_ACEOF
7454     /* confdefs.h. */
7455     _ACEOF
7456     cat confdefs.h >>conftest.$ac_ext
7457     cat >>conftest.$ac_ext <<_ACEOF
7458     /* end confdefs.h. */
7459 pcg 1.1 #include <sys/types.h>
7460     #include <sys/time.h>
7461     #include <time.h>
7462 pcg 1.11
7463     int
7464     main ()
7465     {
7466     if ((struct tm *) 0)
7467     return 0;
7468     ;
7469     return 0;
7470     }
7471     _ACEOF
7472     rm -f conftest.$ac_objext
7473     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7474     (eval $ac_compile) 2>conftest.er1
7475     ac_status=$?
7476     grep -v '^ *+' conftest.er1 >conftest.err
7477     rm -f conftest.er1
7478     cat conftest.err >&5
7479     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480     (exit $ac_status); } &&
7481 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7482 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7483     (eval $ac_try) 2>&5
7484     ac_status=$?
7485     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486     (exit $ac_status); }; } &&
7487     { ac_try='test -s conftest.$ac_objext'
7488     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7489     (eval $ac_try) 2>&5
7490     ac_status=$?
7491     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492     (exit $ac_status); }; }; then
7493 pcg 1.1 ac_cv_header_time=yes
7494     else
7495 pcg 1.11 echo "$as_me: failed program was:" >&5
7496     sed 's/^/| /' conftest.$ac_ext >&5
7497    
7498     ac_cv_header_time=no
7499 pcg 1.1 fi
7500 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7501 pcg 1.1 fi
7502 pcg 1.11 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7503     echo "${ECHO_T}$ac_cv_header_time" >&6
7504     if test $ac_cv_header_time = yes; then
7505 pcg 1.1
7506 pcg 1.11 cat >>confdefs.h <<\_ACEOF
7507 pcg 1.1 #define TIME_WITH_SYS_TIME 1
7508 pcg 1.11 _ACEOF
7509 pcg 1.1
7510     fi
7511    
7512    
7513 pcg 1.11 echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5
7514     echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6
7515     if test "${rxvt_cv_header_sysioctl+set}" = set; then
7516     echo $ECHO_N "(cached) $ECHO_C" >&6
7517 pcg 1.1 else
7518 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
7519     /* confdefs.h. */
7520     _ACEOF
7521     cat confdefs.h >>conftest.$ac_ext
7522     cat >>conftest.$ac_ext <<_ACEOF
7523     /* end confdefs.h. */
7524 pcg 1.1 #include <stdio.h>
7525     #include <sys/ioctl.h>
7526     #ifdef HAVE_TERMIOS_H
7527     #include <termios.h>
7528     #endif
7529 pcg 1.11 int
7530     main ()
7531     {
7532 pcg 1.1 int a = ECHO;
7533 pcg 1.11 ;
7534     return 0;
7535     }
7536     _ACEOF
7537     rm -f conftest.$ac_objext
7538     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7539     (eval $ac_compile) 2>conftest.er1
7540     ac_status=$?
7541     grep -v '^ *+' conftest.er1 >conftest.err
7542     rm -f conftest.er1
7543     cat conftest.err >&5
7544     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545     (exit $ac_status); } &&
7546 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7547 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7548     (eval $ac_try) 2>&5
7549     ac_status=$?
7550     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551     (exit $ac_status); }; } &&
7552     { ac_try='test -s conftest.$ac_objext'
7553     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7554     (eval $ac_try) 2>&5
7555     ac_status=$?
7556     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557     (exit $ac_status); }; }; then
7558 pcg 1.1 rxvt_cv_header_sysioctl=yes
7559     else
7560 pcg 1.11 echo "$as_me: failed program was:" >&5
7561     sed 's/^/| /' conftest.$ac_ext >&5
7562    
7563     rxvt_cv_header_sysioctl=no
7564 pcg 1.1 fi
7565 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7566 pcg 1.1 fi
7567 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5
7568     echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6
7569 pcg 1.1
7570     if test -n "$GCC"; then
7571     LDARG="-Wl,"
7572     else
7573     LDARG=""
7574     fi
7575     R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-rpath '$LDARG'\1/g'
7576    
7577     ac_save_CFLAGS=$CFLAGS
7578     ac_save_LIBS=$LIBS
7579     CFLAGS="$CFLAGS $X_CFLAGS"
7580     LIBS=`echo "$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
7581 pcg 1.11 echo "$as_me:$LINENO: checking for -rpath dynamic library path recording" >&5
7582     echo $ECHO_N "checking for -rpath dynamic library path recording... $ECHO_C" >&6
7583     if test "${rxvt_cv_rpath+set}" = set; then
7584     echo $ECHO_N "(cached) $ECHO_C" >&6
7585 pcg 1.1 else
7586     if test "$cross_compiling" = yes; then
7587 pcg 1.11 { echo "$as_me:$LINENO: WARNING: You may need to check the LIBS line" >&5
7588     echo "$as_me: WARNING: You may need to check the LIBS line" >&2;}
7589 pcg 1.1 else
7590 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
7591     /* confdefs.h. */
7592     _ACEOF
7593     cat confdefs.h >>conftest.$ac_ext
7594     cat >>conftest.$ac_ext <<_ACEOF
7595     /* end confdefs.h. */
7596 pcg 1.1
7597     main()
7598     {
7599     exit(0);
7600     (void) XOpenDisplay("foobar");
7601     }
7602 pcg 1.11 _ACEOF
7603     rm -f conftest$ac_exeext
7604     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7605     (eval $ac_link) 2>&5
7606     ac_status=$?
7607     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7609     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7610     (eval $ac_try) 2>&5
7611     ac_status=$?
7612     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613     (exit $ac_status); }; }; then
7614 pcg 1.1 rxvt_cv_rpath=yes
7615     else
7616 pcg 1.11 echo "$as_me: program exited with status $ac_status" >&5
7617     echo "$as_me: failed program was:" >&5
7618     sed 's/^/| /' conftest.$ac_ext >&5
7619    
7620     ( exit $ac_status )
7621     rxvt_cv_rpath=no
7622 pcg 1.1 fi
7623 pcg 1.11 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7624 pcg 1.1 fi
7625     fi
7626 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_rpath" >&5
7627     echo "${ECHO_T}$rxvt_cv_rpath" >&6
7628 pcg 1.1 if test x$rxvt_cv_rpath != xyes; then
7629     R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-R\1/g'
7630     LIBS=`echo "$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
7631 pcg 1.11 echo "$as_me:$LINENO: checking for -R dynamic library path recording" >&5
7632     echo $ECHO_N "checking for -R dynamic library path recording... $ECHO_C" >&6
7633     if test "${rxvt_cv_R+set}" = set; then
7634     echo $ECHO_N "(cached) $ECHO_C" >&6
7635 pcg 1.1 else
7636     if test "$cross_compiling" = yes; then
7637     rxvt_cv_R=no
7638     else
7639 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
7640     /* confdefs.h. */
7641     _ACEOF
7642     cat confdefs.h >>conftest.$ac_ext
7643     cat >>conftest.$ac_ext <<_ACEOF
7644     /* end confdefs.h. */
7645 pcg 1.1
7646     main()
7647     {
7648     exit(0);
7649     (void) XOpenDisplay("foobar");
7650     }
7651 pcg 1.11 _ACEOF
7652     rm -f conftest$ac_exeext
7653     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7654     (eval $ac_link) 2>&5
7655     ac_status=$?
7656     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7658     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7659     (eval $ac_try) 2>&5
7660     ac_status=$?
7661     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662     (exit $ac_status); }; }; then
7663 pcg 1.1 rxvt_cv_R=yes
7664     else
7665 pcg 1.11 echo "$as_me: program exited with status $ac_status" >&5
7666     echo "$as_me: failed program was:" >&5
7667     sed 's/^/| /' conftest.$ac_ext >&5
7668    
7669     ( exit $ac_status )
7670     rxvt_cv_R=no
7671 pcg 1.1 fi
7672 pcg 1.11 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7673 pcg 1.1 fi
7674     fi
7675 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_R" >&5
7676     echo "${ECHO_T}$rxvt_cv_R" >&6
7677 pcg 1.1 if test x$rxvt_cv_R != xyes; then
7678     LIBS="$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
7679     fi
7680     fi
7681    
7682 pcg 1.11 echo "$as_me:$LINENO: checking for XPointer" >&5
7683     echo $ECHO_N "checking for XPointer... $ECHO_C" >&6
7684     if test "${rxvt_cv_xpointer+set}" = set; then
7685     echo $ECHO_N "(cached) $ECHO_C" >&6
7686     else
7687     cat >conftest.$ac_ext <<_ACEOF
7688     /* confdefs.h. */
7689     _ACEOF
7690     cat confdefs.h >>conftest.$ac_ext
7691     cat >>conftest.$ac_ext <<_ACEOF
7692     /* end confdefs.h. */
7693 pcg 1.1 #include <X11/Xlib.h>
7694 pcg 1.11 int
7695     main ()
7696     {
7697 pcg 1.1 XPointer dummy;
7698 pcg 1.11 ;
7699     return 0;
7700     }
7701     _ACEOF
7702     rm -f conftest.$ac_objext
7703     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7704     (eval $ac_compile) 2>conftest.er1
7705     ac_status=$?
7706     grep -v '^ *+' conftest.er1 >conftest.err
7707     rm -f conftest.er1
7708     cat conftest.err >&5
7709     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710     (exit $ac_status); } &&
7711 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7712 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7713     (eval $ac_try) 2>&5
7714     ac_status=$?
7715     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716     (exit $ac_status); }; } &&
7717     { ac_try='test -s conftest.$ac_objext'
7718     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7719     (eval $ac_try) 2>&5
7720     ac_status=$?
7721     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722     (exit $ac_status); }; }; then
7723 pcg 1.1 rxvt_cv_xpointer=yes
7724     else
7725 pcg 1.11 echo "$as_me: failed program was:" >&5
7726     sed 's/^/| /' conftest.$ac_ext >&5
7727    
7728     rxvt_cv_xpointer=no
7729 pcg 1.1 fi
7730 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7731 pcg 1.1 fi
7732 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_xpointer" >&5
7733     echo "${ECHO_T}$rxvt_cv_xpointer" >&6
7734     if test x$rxvt_cv_xpointer = xyes; then
7735 pcg 1.1
7736 pcg 1.11 cat >>confdefs.h <<\_ACEOF
7737 pcg 1.1 #define HAVE_XPOINTER 1
7738 pcg 1.11 _ACEOF
7739 pcg 1.1
7740     fi
7741     LIBS=$ac_save_LIBS
7742     CFLAGS=$ac_save_CFLAGS
7743    
7744    
7745 pcg 1.11 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7746     echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7747     if test "${ac_cv_c_const+set}" = set; then
7748     echo $ECHO_N "(cached) $ECHO_C" >&6
7749     else
7750     cat >conftest.$ac_ext <<_ACEOF
7751     /* confdefs.h. */
7752     _ACEOF
7753     cat confdefs.h >>conftest.$ac_ext
7754     cat >>conftest.$ac_ext <<_ACEOF
7755     /* end confdefs.h. */
7756 pcg 1.1
7757 pcg 1.11 int
7758     main ()
7759     {
7760     /* FIXME: Include the comments suggested by Paul. */
7761     #ifndef __cplusplus
7762     /* Ultrix mips cc rejects this. */
7763     typedef int charset[2];
7764     const charset x;
7765     /* SunOS 4.1.1 cc rejects this. */
7766     char const *const *ccp;
7767     char **p;
7768     /* NEC SVR4.0.2 mips cc rejects this. */
7769     struct point {int x, y;};
7770     static struct point const zero = {0,0};
7771     /* AIX XL C 1.02.0.0 rejects this.
7772     It does not let you subtract one const X* pointer from another in
7773     an arm of an if-expression whose if-part is not a constant
7774     expression */
7775     const char *g = "string";
7776     ccp = &g + (g ? g-g : 0);
7777     /* HPUX 7.0 cc rejects these. */
7778     ++ccp;
7779     p = (char**) ccp;
7780     ccp = (char const *const *) p;
7781     { /* SCO 3.2v4 cc rejects this. */
7782     char *t;
7783     char const *s = 0 ? (char *) 0 : (char const *) 0;
7784    
7785     *t++ = 0;
7786     }
7787     { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7788     int x[] = {25, 17};
7789     const int *foo = &x[0];
7790     ++foo;
7791     }
7792     { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7793     typedef const int *iptr;
7794     iptr p = 0;
7795     ++p;
7796     }
7797     { /* AIX XL C 1.02.0.0 rejects this saying
7798     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7799     struct s { int j; const int *ap[3]; };
7800     struct s *b; b->j = 5;
7801     }
7802     { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7803     const int foo = 10;
7804     }
7805     #endif
7806 pcg 1.1
7807 pcg 1.11 ;
7808     return 0;
7809 pcg 1.1 }
7810 pcg 1.11 _ACEOF
7811     rm -f conftest.$ac_objext
7812     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7813     (eval $ac_compile) 2>conftest.er1
7814     ac_status=$?
7815     grep -v '^ *+' conftest.er1 >conftest.err
7816     rm -f conftest.er1
7817     cat conftest.err >&5
7818     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819     (exit $ac_status); } &&
7820 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7821 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7822     (eval $ac_try) 2>&5
7823     ac_status=$?
7824     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825     (exit $ac_status); }; } &&
7826     { ac_try='test -s conftest.$ac_objext'
7827     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7828     (eval $ac_try) 2>&5
7829     ac_status=$?
7830     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831     (exit $ac_status); }; }; then
7832 pcg 1.1 ac_cv_c_const=yes
7833     else
7834 pcg 1.11 echo "$as_me: failed program was:" >&5
7835     sed 's/^/| /' conftest.$ac_ext >&5
7836    
7837     ac_cv_c_const=no
7838 pcg 1.1 fi
7839 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7840 pcg 1.1 fi
7841 pcg 1.11 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7842     echo "${ECHO_T}$ac_cv_c_const" >&6
7843     if test $ac_cv_c_const = no; then
7844 pcg 1.1
7845 pcg 1.11 cat >>confdefs.h <<\_ACEOF
7846     #define const
7847     _ACEOF
7848 pcg 1.1
7849     fi
7850    
7851 pcg 1.11 echo "$as_me:$LINENO: checking for inline" >&5
7852     echo $ECHO_N "checking for inline... $ECHO_C" >&6
7853     if test "${ac_cv_c_inline+set}" = set; then
7854     echo $ECHO_N "(cached) $ECHO_C" >&6
7855 pcg 1.1 else
7856     ac_cv_c_inline=no
7857     for ac_kw in inline __inline__ __inline; do
7858 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
7859     /* confdefs.h. */
7860     _ACEOF
7861     cat confdefs.h >>conftest.$ac_ext
7862     cat >>conftest.$ac_ext <<_ACEOF
7863     /* end confdefs.h. */
7864     #ifndef __cplusplus
7865     typedef int foo_t;
7866     static $ac_kw foo_t static_foo () {return 0; }
7867     $ac_kw foo_t foo () {return 0; }
7868     #endif
7869 pcg 1.1
7870 pcg 1.11 _ACEOF
7871     rm -f conftest.$ac_objext
7872     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7873     (eval $ac_compile) 2>conftest.er1
7874     ac_status=$?
7875     grep -v '^ *+' conftest.er1 >conftest.err
7876     rm -f conftest.er1
7877     cat conftest.err >&5
7878     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879     (exit $ac_status); } &&
7880 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7881 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7882     (eval $ac_try) 2>&5
7883     ac_status=$?
7884     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885     (exit $ac_status); }; } &&
7886     { ac_try='test -s conftest.$ac_objext'
7887     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7888     (eval $ac_try) 2>&5
7889     ac_status=$?
7890     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891     (exit $ac_status); }; }; then
7892 pcg 1.1 ac_cv_c_inline=$ac_kw; break
7893     else
7894 pcg 1.11 echo "$as_me: failed program was:" >&5
7895     sed 's/^/| /' conftest.$ac_ext >&5
7896    
7897 pcg 1.1 fi
7898 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7899 pcg 1.1 done
7900    
7901     fi
7902 pcg 1.11 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7903     echo "${ECHO_T}$ac_cv_c_inline" >&6
7904    
7905 pcg 1.1
7906 pcg 1.11 case $ac_cv_c_inline in
7907 pcg 1.1 inline | yes) ;;
7908 pcg 1.11 *)
7909     case $ac_cv_c_inline in
7910     no) ac_val=;;
7911     *) ac_val=$ac_cv_c_inline;;
7912     esac
7913     cat >>confdefs.h <<_ACEOF
7914     #ifndef __cplusplus
7915     #define inline $ac_val
7916     #endif
7917     _ACEOF
7918     ;;
7919 pcg 1.1 esac
7920    
7921    
7922    
7923 pcg 1.11 echo "$as_me:$LINENO: checking for mode_t" >&5
7924     echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
7925     if test "${ac_cv_type_mode_t+set}" = set; then
7926     echo $ECHO_N "(cached) $ECHO_C" >&6
7927     else
7928     cat >conftest.$ac_ext <<_ACEOF
7929     /* confdefs.h. */
7930     _ACEOF
7931     cat confdefs.h >>conftest.$ac_ext
7932     cat >>conftest.$ac_ext <<_ACEOF
7933     /* end confdefs.h. */
7934     $ac_includes_default
7935     int
7936     main ()
7937     {
7938     if ((mode_t *) 0)
7939     return 0;
7940     if (sizeof (mode_t))
7941     return 0;
7942     ;
7943     return 0;
7944     }
7945     _ACEOF
7946     rm -f conftest.$ac_objext
7947     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7948     (eval $ac_compile) 2>conftest.er1
7949     ac_status=$?
7950     grep -v '^ *+' conftest.er1 >conftest.err
7951     rm -f conftest.er1
7952     cat conftest.err >&5
7953     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954     (exit $ac_status); } &&
7955 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7956 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7957     (eval $ac_try) 2>&5
7958     ac_status=$?
7959     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960     (exit $ac_status); }; } &&
7961     { ac_try='test -s conftest.$ac_objext'
7962     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7963     (eval $ac_try) 2>&5
7964     ac_status=$?
7965     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966     (exit $ac_status); }; }; then
7967     ac_cv_type_mode_t=yes
7968 pcg 1.1 else
7969 pcg 1.11 echo "$as_me: failed program was:" >&5
7970     sed 's/^/| /' conftest.$ac_ext >&5
7971 pcg 1.1
7972 pcg 1.11 ac_cv_type_mode_t=no
7973 pcg 1.1 fi
7974 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7975 pcg 1.1 fi
7976 pcg 1.11 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
7977     echo "${ECHO_T}$ac_cv_type_mode_t" >&6
7978     if test $ac_cv_type_mode_t = yes; then
7979 pcg 1.1 :
7980     else
7981    
7982 pcg 1.11 cat >>confdefs.h <<_ACEOF
7983     #define mode_t int
7984     _ACEOF
7985 pcg 1.1
7986     fi
7987    
7988 pcg 1.11 echo "$as_me:$LINENO: checking for pid_t" >&5
7989     echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7990     if test "${ac_cv_type_pid_t+set}" = set; then
7991     echo $ECHO_N "(cached) $ECHO_C" >&6
7992     else
7993     cat >conftest.$ac_ext <<_ACEOF
7994     /* confdefs.h. */
7995     _ACEOF
7996     cat confdefs.h >>conftest.$ac_ext
7997     cat >>conftest.$ac_ext <<_ACEOF
7998     /* end confdefs.h. */
7999     $ac_includes_default
8000     int
8001     main ()
8002     {
8003     if ((pid_t *) 0)
8004     return 0;
8005     if (sizeof (pid_t))
8006     return 0;
8007     ;
8008     return 0;
8009     }
8010     _ACEOF
8011     rm -f conftest.$ac_objext
8012     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8013     (eval $ac_compile) 2>conftest.er1
8014     ac_status=$?
8015     grep -v '^ *+' conftest.er1 >conftest.err
8016     rm -f conftest.er1
8017     cat conftest.err >&5
8018     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019     (exit $ac_status); } &&
8020 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8021 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8022     (eval $ac_try) 2>&5
8023     ac_status=$?
8024     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025     (exit $ac_status); }; } &&
8026     { ac_try='test -s conftest.$ac_objext'
8027     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8028     (eval $ac_try) 2>&5
8029     ac_status=$?
8030     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031     (exit $ac_status); }; }; then
8032     ac_cv_type_pid_t=yes
8033 pcg 1.1 else
8034 pcg 1.11 echo "$as_me: failed program was:" >&5
8035     sed 's/^/| /' conftest.$ac_ext >&5
8036 pcg 1.1
8037 pcg 1.11 ac_cv_type_pid_t=no
8038 pcg 1.1 fi
8039 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8040 pcg 1.1 fi
8041 pcg 1.11 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8042     echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8043     if test $ac_cv_type_pid_t = yes; then
8044     :
8045 pcg 1.1 else
8046    
8047 pcg 1.11 cat >>confdefs.h <<_ACEOF
8048 pcg 1.1 #define pid_t int
8049 pcg 1.11 _ACEOF
8050 pcg 1.1
8051     fi
8052    
8053 pcg 1.11 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
8054     echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
8055     if test "${ac_cv_type_uid_t+set}" = set; then
8056     echo $ECHO_N "(cached) $ECHO_C" >&6
8057 pcg 1.1 else
8058 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
8059     /* confdefs.h. */
8060     _ACEOF
8061     cat confdefs.h >>conftest.$ac_ext
8062     cat >>conftest.$ac_ext <<_ACEOF
8063     /* end confdefs.h. */
8064 pcg 1.1 #include <sys/types.h>
8065 pcg 1.11
8066     _ACEOF
8067 pcg 1.1 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8068 pcg 1.11 $EGREP "uid_t" >/dev/null 2>&1; then
8069 pcg 1.1 ac_cv_type_uid_t=yes
8070     else
8071     ac_cv_type_uid_t=no
8072     fi
8073     rm -f conftest*
8074    
8075     fi
8076 pcg 1.11 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
8077     echo "${ECHO_T}$ac_cv_type_uid_t" >&6
8078     if test $ac_cv_type_uid_t = no; then
8079 pcg 1.1
8080 pcg 1.11 cat >>confdefs.h <<\_ACEOF
8081 pcg 1.1 #define uid_t int
8082 pcg 1.11 _ACEOF
8083    
8084 pcg 1.1
8085 pcg 1.11 cat >>confdefs.h <<\_ACEOF
8086 pcg 1.1 #define gid_t int
8087 pcg 1.11 _ACEOF
8088 pcg 1.1
8089     fi
8090    
8091    
8092 pcg 1.11 echo "$as_me:$LINENO: checking for short" >&5
8093     echo $ECHO_N "checking for short... $ECHO_C" >&6
8094     if test "${ac_cv_type_short+set}" = set; then
8095     echo $ECHO_N "(cached) $ECHO_C" >&6
8096     else
8097     cat >conftest.$ac_ext <<_ACEOF
8098     /* confdefs.h. */
8099     _ACEOF
8100     cat confdefs.h >>conftest.$ac_ext
8101     cat >>conftest.$ac_ext <<_ACEOF
8102     /* end confdefs.h. */
8103     $ac_includes_default
8104     int
8105     main ()
8106     {
8107 root 1.42 if ((short *) 0)
8108 pcg 1.11 return 0;
8109 root 1.42 if (sizeof (short))
8110 pcg 1.11 return 0;
8111     ;
8112     return 0;
8113     }
8114     _ACEOF
8115     rm -f conftest.$ac_objext
8116     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8117     (eval $ac_compile) 2>conftest.er1
8118     ac_status=$?
8119     grep -v '^ *+' conftest.er1 >conftest.err
8120     rm -f conftest.er1
8121     cat conftest.err >&5
8122     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123     (exit $ac_status); } &&
8124 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8125 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8126     (eval $ac_try) 2>&5
8127     ac_status=$?
8128     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129     (exit $ac_status); }; } &&
8130     { ac_try='test -s conftest.$ac_objext'
8131     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8132     (eval $ac_try) 2>&5
8133     ac_status=$?
8134     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135     (exit $ac_status); }; }; then
8136 root 1.42 ac_cv_type_short=yes
8137 pcg 1.11 else
8138     echo "$as_me: failed program was:" >&5
8139     sed 's/^/| /' conftest.$ac_ext >&5
8140    
8141 root 1.42 ac_cv_type_short=no
8142 pcg 1.11 fi
8143     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8144     fi
8145 root 1.42 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8146     echo "${ECHO_T}$ac_cv_type_short" >&6
8147 pcg 1.11
8148 root 1.42 echo "$as_me:$LINENO: checking size of short" >&5
8149     echo $ECHO_N "checking size of short... $ECHO_C" >&6
8150     if test "${ac_cv_sizeof_short+set}" = set; then
8151 pcg 1.11 echo $ECHO_N "(cached) $ECHO_C" >&6
8152     else
8153 root 1.42 if test "$ac_cv_type_short" = yes; then
8154 pcg 1.11 # The cast to unsigned long works around a bug in the HP C Compiler
8155     # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8156     # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8157     # This bug is HP SR number 8606223364.
8158     if test "$cross_compiling" = yes; then
8159     # Depending upon the size, compute the lo and hi bounds.
8160     cat >conftest.$ac_ext <<_ACEOF
8161     /* confdefs.h. */
8162     _ACEOF
8163     cat confdefs.h >>conftest.$ac_ext
8164     cat >>conftest.$ac_ext <<_ACEOF
8165     /* end confdefs.h. */
8166     $ac_includes_default
8167     int
8168     main ()
8169     {
8170 root 1.42 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
8171 pcg 1.11 test_array [0] = 0
8172    
8173     ;
8174     return 0;
8175     }
8176     _ACEOF
8177     rm -f conftest.$ac_objext
8178     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8179     (eval $ac_compile) 2>conftest.er1
8180     ac_status=$?
8181     grep -v '^ *+' conftest.er1 >conftest.err
8182     rm -f conftest.er1
8183     cat conftest.err >&5
8184     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185     (exit $ac_status); } &&
8186 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8187 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8188     (eval $ac_try) 2>&5
8189     ac_status=$?
8190     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191     (exit $ac_status); }; } &&
8192     { ac_try='test -s conftest.$ac_objext'
8193     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8194     (eval $ac_try) 2>&5
8195     ac_status=$?
8196     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197     (exit $ac_status); }; }; then
8198     ac_lo=0 ac_mid=0
8199     while :; do
8200     cat >conftest.$ac_ext <<_ACEOF
8201     /* confdefs.h. */
8202     _ACEOF
8203     cat confdefs.h >>conftest.$ac_ext
8204     cat >>conftest.$ac_ext <<_ACEOF
8205     /* end confdefs.h. */
8206     $ac_includes_default
8207     int
8208     main ()
8209     {
8210 root 1.42 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
8211 pcg 1.11 test_array [0] = 0
8212    
8213     ;
8214     return 0;
8215     }
8216     _ACEOF
8217     rm -f conftest.$ac_objext
8218     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8219     (eval $ac_compile) 2>conftest.er1
8220     ac_status=$?
8221     grep -v '^ *+' conftest.er1 >conftest.err
8222     rm -f conftest.er1
8223     cat conftest.err >&5
8224     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225     (exit $ac_status); } &&
8226 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8227 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8228     (eval $ac_try) 2>&5
8229     ac_status=$?
8230     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231     (exit $ac_status); }; } &&
8232     { ac_try='test -s conftest.$ac_objext'
8233     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8234     (eval $ac_try) 2>&5
8235     ac_status=$?
8236     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237     (exit $ac_status); }; }; then
8238     ac_hi=$ac_mid; break
8239     else
8240     echo "$as_me: failed program was:" >&5
8241     sed 's/^/| /' conftest.$ac_ext >&5
8242    
8243     ac_lo=`expr $ac_mid + 1`
8244     if test $ac_lo -le $ac_mid; then
8245     ac_lo= ac_hi=
8246     break
8247     fi
8248     ac_mid=`expr 2 '*' $ac_mid + 1`
8249     fi
8250     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8251     done
8252     else
8253     echo "$as_me: failed program was:" >&5
8254     sed 's/^/| /' conftest.$ac_ext >&5
8255    
8256     cat >conftest.$ac_ext <<_ACEOF
8257     /* confdefs.h. */
8258     _ACEOF
8259     cat confdefs.h >>conftest.$ac_ext
8260     cat >>conftest.$ac_ext <<_ACEOF
8261     /* end confdefs.h. */
8262     $ac_includes_default
8263     int
8264     main ()
8265     {
8266 root 1.42 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
8267 pcg 1.11 test_array [0] = 0
8268    
8269     ;
8270     return 0;
8271     }
8272     _ACEOF
8273     rm -f conftest.$ac_objext
8274     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8275     (eval $ac_compile) 2>conftest.er1
8276     ac_status=$?
8277     grep -v '^ *+' conftest.er1 >conftest.err
8278     rm -f conftest.er1
8279     cat conftest.err >&5
8280     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281     (exit $ac_status); } &&
8282 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8283 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8284     (eval $ac_try) 2>&5
8285     ac_status=$?
8286     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287     (exit $ac_status); }; } &&
8288     { ac_try='test -s conftest.$ac_objext'
8289     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8290     (eval $ac_try) 2>&5
8291     ac_status=$?
8292     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293     (exit $ac_status); }; }; then
8294     ac_hi=-1 ac_mid=-1
8295     while :; do
8296     cat >conftest.$ac_ext <<_ACEOF
8297     /* confdefs.h. */
8298     _ACEOF
8299     cat confdefs.h >>conftest.$ac_ext
8300     cat >>conftest.$ac_ext <<_ACEOF
8301     /* end confdefs.h. */
8302     $ac_includes_default
8303     int
8304     main ()
8305     {
8306 root 1.42 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
8307 pcg 1.11 test_array [0] = 0
8308    
8309     ;
8310     return 0;
8311     }
8312     _ACEOF
8313     rm -f conftest.$ac_objext
8314     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8315     (eval $ac_compile) 2>conftest.er1
8316     ac_status=$?
8317     grep -v '^ *+' conftest.er1 >conftest.err
8318     rm -f conftest.er1
8319     cat conftest.err >&5
8320     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321     (exit $ac_status); } &&
8322 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8323 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8324     (eval $ac_try) 2>&5
8325     ac_status=$?
8326     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327     (exit $ac_status); }; } &&
8328     { ac_try='test -s conftest.$ac_objext'
8329     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8330     (eval $ac_try) 2>&5
8331     ac_status=$?
8332     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333     (exit $ac_status); }; }; then
8334     ac_lo=$ac_mid; break
8335     else
8336     echo "$as_me: failed program was:" >&5
8337     sed 's/^/| /' conftest.$ac_ext >&5
8338    
8339     ac_hi=`expr '(' $ac_mid ')' - 1`
8340     if test $ac_mid -le $ac_hi; then
8341     ac_lo= ac_hi=
8342     break
8343     fi
8344     ac_mid=`expr 2 '*' $ac_mid`
8345     fi
8346     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8347     done
8348     else
8349     echo "$as_me: failed program was:" >&5
8350     sed 's/^/| /' conftest.$ac_ext >&5
8351 pcg 1.1
8352 pcg 1.11 ac_lo= ac_hi=
8353 pcg 1.1 fi
8354 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8355     fi
8356     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8357     # Binary search between lo and hi bounds.
8358     while test "x$ac_lo" != "x$ac_hi"; do
8359     ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8360     cat >conftest.$ac_ext <<_ACEOF
8361     /* confdefs.h. */
8362     _ACEOF
8363     cat confdefs.h >>conftest.$ac_ext
8364     cat >>conftest.$ac_ext <<_ACEOF
8365     /* end confdefs.h. */
8366     $ac_includes_default
8367     int
8368     main ()
8369     {
8370 root 1.42 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
8371 pcg 1.11 test_array [0] = 0
8372 pcg 1.1
8373 pcg 1.11 ;
8374     return 0;
8375     }
8376     _ACEOF
8377     rm -f conftest.$ac_objext
8378     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8379     (eval $ac_compile) 2>conftest.er1
8380     ac_status=$?
8381     grep -v '^ *+' conftest.er1 >conftest.err
8382     rm -f conftest.er1
8383     cat conftest.err >&5
8384     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385     (exit $ac_status); } &&
8386 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8387 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8388     (eval $ac_try) 2>&5
8389     ac_status=$?
8390     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391     (exit $ac_status); }; } &&
8392     { ac_try='test -s conftest.$ac_objext'
8393     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8394     (eval $ac_try) 2>&5
8395     ac_status=$?
8396     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397     (exit $ac_status); }; }; then
8398     ac_hi=$ac_mid
8399     else
8400     echo "$as_me: failed program was:" >&5
8401     sed 's/^/| /' conftest.$ac_ext >&5
8402 pcg 1.1
8403 pcg 1.11 ac_lo=`expr '(' $ac_mid ')' + 1`
8404     fi
8405     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8406     done
8407     case $ac_lo in
8408 root 1.42 ?*) ac_cv_sizeof_short=$ac_lo;;
8409     '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
8410 pcg 1.11 See \`config.log' for more details." >&5
8411 root 1.42 echo "$as_me: error: cannot compute sizeof (short), 77
8412 pcg 1.11 See \`config.log' for more details." >&2;}
8413     { (exit 1); exit 1; }; } ;;
8414     esac
8415 pcg 1.1 else
8416     if test "$cross_compiling" = yes; then
8417 pcg 1.13 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
8418     echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
8419 pcg 1.11 { (exit 1); exit 1; }; }
8420     else
8421     cat >conftest.$ac_ext <<_ACEOF
8422     /* confdefs.h. */
8423     _ACEOF
8424     cat confdefs.h >>conftest.$ac_ext
8425     cat >>conftest.$ac_ext <<_ACEOF
8426     /* end confdefs.h. */
8427     $ac_includes_default
8428 root 1.42 long longval () { return (long) (sizeof (short)); }
8429     unsigned long ulongval () { return (long) (sizeof (short)); }
8430 pcg 1.1 #include <stdio.h>
8431 pcg 1.11 #include <stdlib.h>
8432     int
8433     main ()
8434 pcg 1.1 {
8435 pcg 1.11
8436     FILE *f = fopen ("conftest.val", "w");
8437     if (! f)
8438     exit (1);
8439 root 1.42 if (((long) (sizeof (short))) < 0)
8440 pcg 1.11 {
8441     long i = longval ();
8442 root 1.42 if (i != ((long) (sizeof (short))))
8443 pcg 1.11 exit (1);
8444     fprintf (f, "%ld\n", i);
8445     }
8446     else
8447     {
8448     unsigned long i = ulongval ();
8449 root 1.42 if (i != ((long) (sizeof (short))))
8450 pcg 1.11 exit (1);
8451     fprintf (f, "%lu\n", i);
8452     }
8453     exit (ferror (f) || fclose (f) != 0);
8454    
8455     ;
8456     return 0;
8457 pcg 1.1 }
8458 pcg 1.11 _ACEOF
8459     rm -f conftest$ac_exeext
8460     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8461     (eval $ac_link) 2>&5
8462     ac_status=$?
8463     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8465     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8466     (eval $ac_try) 2>&5
8467     ac_status=$?
8468     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469     (exit $ac_status); }; }; then
8470 root 1.42 ac_cv_sizeof_short=`cat conftest.val`
8471 pcg 1.11 else
8472     echo "$as_me: program exited with status $ac_status" >&5
8473     echo "$as_me: failed program was:" >&5
8474     sed 's/^/| /' conftest.$ac_ext >&5
8475    
8476     ( exit $ac_status )
8477 root 1.42 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
8478 pcg 1.11 See \`config.log' for more details." >&5
8479 root 1.42 echo "$as_me: error: cannot compute sizeof (short), 77
8480 pcg 1.11 See \`config.log' for more details." >&2;}
8481     { (exit 1); exit 1; }; }
8482     fi
8483     rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8484     fi
8485     fi
8486     rm -f conftest.val
8487     else
8488 root 1.42 ac_cv_sizeof_short=0
8489 pcg 1.1 fi
8490     fi
8491 root 1.42 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8492     echo "${ECHO_T}$ac_cv_sizeof_short" >&6
8493 pcg 1.11 cat >>confdefs.h <<_ACEOF
8494 root 1.42 #define SIZEOF_SHORT $ac_cv_sizeof_short
8495 pcg 1.11 _ACEOF
8496    
8497    
8498 root 1.42 echo "$as_me:$LINENO: checking for int" >&5
8499     echo $ECHO_N "checking for int... $ECHO_C" >&6
8500     if test "${ac_cv_type_int+set}" = set; then
8501 pcg 1.11 echo $ECHO_N "(cached) $ECHO_C" >&6
8502     else
8503     cat >conftest.$ac_ext <<_ACEOF
8504     /* confdefs.h. */
8505     _ACEOF
8506     cat confdefs.h >>conftest.$ac_ext
8507     cat >>conftest.$ac_ext <<_ACEOF
8508     /* end confdefs.h. */
8509     $ac_includes_default
8510     int
8511     main ()
8512     {
8513 root 1.42 if ((int *) 0)
8514 pcg 1.11 return 0;
8515 root 1.42 if (sizeof (int))
8516 pcg 1.11 return 0;
8517     ;
8518     return 0;
8519     }
8520     _ACEOF
8521     rm -f conftest.$ac_objext
8522     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8523     (eval $ac_compile) 2>conftest.er1
8524     ac_status=$?
8525     grep -v '^ *+' conftest.er1 >conftest.err
8526     rm -f conftest.er1
8527     cat conftest.err >&5
8528     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529     (exit $ac_status); } &&
8530 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8531 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8532     (eval $ac_try) 2>&5
8533     ac_status=$?
8534     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535     (exit $ac_status); }; } &&
8536     { ac_try='test -s conftest.$ac_objext'
8537     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8538     (eval $ac_try) 2>&5
8539     ac_status=$?
8540     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541     (exit $ac_status); }; }; then
8542 root 1.42 ac_cv_type_int=yes
8543 pcg 1.11 else
8544     echo "$as_me: failed program was:" >&5
8545     sed 's/^/| /' conftest.$ac_ext >&5
8546    
8547 root 1.42 ac_cv_type_int=no
8548 pcg 1.11 fi
8549     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8550     fi
8551 root 1.42 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
8552     echo "${ECHO_T}$ac_cv_type_int" >&6
8553 pcg 1.11
8554 root 1.42 echo "$as_me:$LINENO: checking size of int" >&5
8555     echo $ECHO_N "checking size of int... $ECHO_C" >&6
8556     if test "${ac_cv_sizeof_int+set}" = set; then
8557 pcg 1.11 echo $ECHO_N "(cached) $ECHO_C" >&6
8558     else
8559 root 1.42 if test "$ac_cv_type_int" = yes; then
8560 pcg 1.11 # The cast to unsigned long works around a bug in the HP C Compiler
8561     # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8562     # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8563     # This bug is HP SR number 8606223364.
8564     if test "$cross_compiling" = yes; then
8565     # Depending upon the size, compute the lo and hi bounds.
8566     cat >conftest.$ac_ext <<_ACEOF
8567     /* confdefs.h. */
8568     _ACEOF
8569     cat confdefs.h >>conftest.$ac_ext
8570     cat >>conftest.$ac_ext <<_ACEOF
8571     /* end confdefs.h. */
8572     $ac_includes_default
8573     int
8574     main ()
8575     {
8576 root 1.42 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
8577 pcg 1.11 test_array [0] = 0
8578    
8579     ;
8580     return 0;
8581     }
8582     _ACEOF
8583     rm -f conftest.$ac_objext
8584     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8585     (eval $ac_compile) 2>conftest.er1
8586     ac_status=$?
8587     grep -v '^ *+' conftest.er1 >conftest.err
8588     rm -f conftest.er1
8589     cat conftest.err >&5
8590     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591     (exit $ac_status); } &&
8592 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8593 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8594     (eval $ac_try) 2>&5
8595     ac_status=$?
8596     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597     (exit $ac_status); }; } &&
8598     { ac_try='test -s conftest.$ac_objext'
8599     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8600     (eval $ac_try) 2>&5
8601     ac_status=$?
8602     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603     (exit $ac_status); }; }; then
8604     ac_lo=0 ac_mid=0
8605     while :; do
8606     cat >conftest.$ac_ext <<_ACEOF
8607     /* confdefs.h. */
8608     _ACEOF
8609     cat confdefs.h >>conftest.$ac_ext
8610     cat >>conftest.$ac_ext <<_ACEOF
8611     /* end confdefs.h. */
8612     $ac_includes_default
8613     int
8614     main ()
8615     {
8616 root 1.42 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
8617 pcg 1.11 test_array [0] = 0
8618    
8619     ;
8620     return 0;
8621     }
8622     _ACEOF
8623     rm -f conftest.$ac_objext
8624     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8625     (eval $ac_compile) 2>conftest.er1
8626     ac_status=$?
8627     grep -v '^ *+' conftest.er1 >conftest.err
8628     rm -f conftest.er1
8629     cat conftest.err >&5
8630     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631     (exit $ac_status); } &&
8632 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8633 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8634     (eval $ac_try) 2>&5
8635     ac_status=$?
8636     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637     (exit $ac_status); }; } &&
8638     { ac_try='test -s conftest.$ac_objext'
8639     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8640     (eval $ac_try) 2>&5
8641     ac_status=$?
8642     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643     (exit $ac_status); }; }; then
8644     ac_hi=$ac_mid; break
8645     else
8646     echo "$as_me: failed program was:" >&5
8647     sed 's/^/| /' conftest.$ac_ext >&5
8648    
8649     ac_lo=`expr $ac_mid + 1`
8650     if test $ac_lo -le $ac_mid; then
8651     ac_lo= ac_hi=
8652     break
8653     fi
8654     ac_mid=`expr 2 '*' $ac_mid + 1`
8655     fi
8656     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8657     done
8658     else
8659     echo "$as_me: failed program was:" >&5
8660     sed 's/^/| /' conftest.$ac_ext >&5
8661    
8662     cat >conftest.$ac_ext <<_ACEOF
8663     /* confdefs.h. */
8664     _ACEOF
8665     cat confdefs.h >>conftest.$ac_ext
8666     cat >>conftest.$ac_ext <<_ACEOF
8667     /* end confdefs.h. */
8668     $ac_includes_default
8669     int
8670     main ()
8671     {
8672 root 1.42 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
8673 pcg 1.11 test_array [0] = 0
8674    
8675     ;
8676     return 0;
8677     }
8678     _ACEOF
8679     rm -f conftest.$ac_objext
8680     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8681     (eval $ac_compile) 2>conftest.er1
8682     ac_status=$?
8683     grep -v '^ *+' conftest.er1 >conftest.err
8684     rm -f conftest.er1
8685     cat conftest.err >&5
8686     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687     (exit $ac_status); } &&
8688 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8689 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8690     (eval $ac_try) 2>&5
8691     ac_status=$?
8692     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693     (exit $ac_status); }; } &&
8694     { ac_try='test -s conftest.$ac_objext'
8695     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8696     (eval $ac_try) 2>&5
8697     ac_status=$?
8698     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699     (exit $ac_status); }; }; then
8700     ac_hi=-1 ac_mid=-1
8701     while :; do
8702     cat >conftest.$ac_ext <<_ACEOF
8703     /* confdefs.h. */
8704     _ACEOF
8705     cat confdefs.h >>conftest.$ac_ext
8706     cat >>conftest.$ac_ext <<_ACEOF
8707     /* end confdefs.h. */
8708     $ac_includes_default
8709     int
8710     main ()
8711     {
8712 root 1.42 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
8713 pcg 1.11 test_array [0] = 0
8714    
8715     ;
8716     return 0;
8717     }
8718     _ACEOF
8719     rm -f conftest.$ac_objext
8720     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8721     (eval $ac_compile) 2>conftest.er1
8722     ac_status=$?
8723     grep -v '^ *+' conftest.er1 >conftest.err
8724     rm -f conftest.er1
8725     cat conftest.err >&5
8726     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727     (exit $ac_status); } &&
8728 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8729 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8730     (eval $ac_try) 2>&5
8731     ac_status=$?
8732     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733     (exit $ac_status); }; } &&
8734     { ac_try='test -s conftest.$ac_objext'
8735     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8736     (eval $ac_try) 2>&5
8737     ac_status=$?
8738     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739     (exit $ac_status); }; }; then
8740     ac_lo=$ac_mid; break
8741     else
8742     echo "$as_me: failed program was:" >&5
8743     sed 's/^/| /' conftest.$ac_ext >&5
8744    
8745     ac_hi=`expr '(' $ac_mid ')' - 1`
8746     if test $ac_mid -le $ac_hi; then
8747     ac_lo= ac_hi=
8748     break
8749     fi
8750     ac_mid=`expr 2 '*' $ac_mid`
8751     fi
8752     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8753     done
8754     else
8755     echo "$as_me: failed program was:" >&5
8756     sed 's/^/| /' conftest.$ac_ext >&5
8757 pcg 1.1
8758 pcg 1.11 ac_lo= ac_hi=
8759     fi
8760     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8761 pcg 1.1 fi
8762 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8763     # Binary search between lo and hi bounds.
8764     while test "x$ac_lo" != "x$ac_hi"; do
8765     ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8766     cat >conftest.$ac_ext <<_ACEOF
8767     /* confdefs.h. */
8768     _ACEOF
8769     cat confdefs.h >>conftest.$ac_ext
8770     cat >>conftest.$ac_ext <<_ACEOF
8771     /* end confdefs.h. */
8772     $ac_includes_default
8773     int
8774     main ()
8775     {
8776 root 1.42 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
8777 pcg 1.11 test_array [0] = 0
8778 pcg 1.1
8779 pcg 1.11 ;
8780     return 0;
8781     }
8782     _ACEOF
8783     rm -f conftest.$ac_objext
8784     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8785     (eval $ac_compile) 2>conftest.er1
8786     ac_status=$?
8787     grep -v '^ *+' conftest.er1 >conftest.err
8788     rm -f conftest.er1
8789     cat conftest.err >&5
8790     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791     (exit $ac_status); } &&
8792 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8793 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8794     (eval $ac_try) 2>&5
8795     ac_status=$?
8796     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797     (exit $ac_status); }; } &&
8798     { ac_try='test -s conftest.$ac_objext'
8799     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8800     (eval $ac_try) 2>&5
8801     ac_status=$?
8802     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803     (exit $ac_status); }; }; then
8804     ac_hi=$ac_mid
8805     else
8806     echo "$as_me: failed program was:" >&5
8807     sed 's/^/| /' conftest.$ac_ext >&5
8808 pcg 1.1
8809 pcg 1.11 ac_lo=`expr '(' $ac_mid ')' + 1`
8810     fi
8811     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8812     done
8813     case $ac_lo in
8814 root 1.42 ?*) ac_cv_sizeof_int=$ac_lo;;
8815     '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
8816 pcg 1.11 See \`config.log' for more details." >&5
8817 root 1.42 echo "$as_me: error: cannot compute sizeof (int), 77
8818 pcg 1.11 See \`config.log' for more details." >&2;}
8819     { (exit 1); exit 1; }; } ;;
8820     esac
8821 pcg 1.1 else
8822     if test "$cross_compiling" = yes; then
8823 pcg 1.13 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
8824     echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
8825 pcg 1.11 { (exit 1); exit 1; }; }
8826     else
8827     cat >conftest.$ac_ext <<_ACEOF
8828     /* confdefs.h. */
8829     _ACEOF
8830     cat confdefs.h >>conftest.$ac_ext
8831     cat >>conftest.$ac_ext <<_ACEOF
8832     /* end confdefs.h. */
8833     $ac_includes_default
8834 root 1.42 long longval () { return (long) (sizeof (int)); }
8835     unsigned long ulongval () { return (long) (sizeof (int)); }
8836 pcg 1.1 #include <stdio.h>
8837 pcg 1.11 #include <stdlib.h>
8838     int
8839     main ()
8840 pcg 1.1 {
8841 pcg 1.11
8842     FILE *f = fopen ("conftest.val", "w");
8843     if (! f)
8844     exit (1);
8845 root 1.42 if (((long) (sizeof (int))) < 0)
8846 pcg 1.11 {
8847     long i = longval ();
8848 root 1.42 if (i != ((long) (sizeof (int))))
8849 pcg 1.11 exit (1);
8850     fprintf (f, "%ld\n", i);
8851     }
8852     else
8853     {
8854     unsigned long i = ulongval ();
8855 root 1.42 if (i != ((long) (sizeof (int))))
8856 pcg 1.11 exit (1);
8857     fprintf (f, "%lu\n", i);
8858     }
8859     exit (ferror (f) || fclose (f) != 0);
8860    
8861     ;
8862     return 0;
8863 pcg 1.1 }
8864 pcg 1.11 _ACEOF
8865     rm -f conftest$ac_exeext
8866     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8867     (eval $ac_link) 2>&5
8868     ac_status=$?
8869     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8871     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8872     (eval $ac_try) 2>&5
8873     ac_status=$?
8874     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875     (exit $ac_status); }; }; then
8876 root 1.42 ac_cv_sizeof_int=`cat conftest.val`
8877 pcg 1.11 else
8878     echo "$as_me: program exited with status $ac_status" >&5
8879     echo "$as_me: failed program was:" >&5
8880     sed 's/^/| /' conftest.$ac_ext >&5
8881    
8882     ( exit $ac_status )
8883 root 1.42 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
8884 pcg 1.11 See \`config.log' for more details." >&5
8885 root 1.42 echo "$as_me: error: cannot compute sizeof (int), 77
8886 pcg 1.11 See \`config.log' for more details." >&2;}
8887     { (exit 1); exit 1; }; }
8888     fi
8889     rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8890     fi
8891     fi
8892     rm -f conftest.val
8893     else
8894 root 1.42 ac_cv_sizeof_int=0
8895 pcg 1.1 fi
8896     fi
8897 root 1.42 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
8898     echo "${ECHO_T}$ac_cv_sizeof_int" >&6
8899 pcg 1.11 cat >>confdefs.h <<_ACEOF
8900 root 1.42 #define SIZEOF_INT $ac_cv_sizeof_int
8901 pcg 1.11 _ACEOF
8902    
8903    
8904     echo "$as_me:$LINENO: checking for long long" >&5
8905     echo $ECHO_N "checking for long long... $ECHO_C" >&6
8906     if test "${ac_cv_type_long_long+set}" = set; then
8907     echo $ECHO_N "(cached) $ECHO_C" >&6
8908     else
8909     cat >conftest.$ac_ext <<_ACEOF
8910     /* confdefs.h. */
8911     _ACEOF
8912     cat confdefs.h >>conftest.$ac_ext
8913     cat >>conftest.$ac_ext <<_ACEOF
8914     /* end confdefs.h. */
8915     $ac_includes_default
8916     int
8917     main ()
8918     {
8919     if ((long long *) 0)
8920     return 0;
8921     if (sizeof (long long))
8922     return 0;
8923     ;
8924     return 0;
8925     }
8926     _ACEOF
8927     rm -f conftest.$ac_objext
8928     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8929     (eval $ac_compile) 2>conftest.er1
8930     ac_status=$?
8931     grep -v '^ *+' conftest.er1 >conftest.err
8932     rm -f conftest.er1
8933     cat conftest.err >&5
8934     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935     (exit $ac_status); } &&
8936 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8937 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8938     (eval $ac_try) 2>&5
8939     ac_status=$?
8940     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941     (exit $ac_status); }; } &&
8942     { ac_try='test -s conftest.$ac_objext'
8943     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8944     (eval $ac_try) 2>&5
8945     ac_status=$?
8946     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947     (exit $ac_status); }; }; then
8948     ac_cv_type_long_long=yes
8949     else
8950     echo "$as_me: failed program was:" >&5
8951     sed 's/^/| /' conftest.$ac_ext >&5
8952    
8953     ac_cv_type_long_long=no
8954     fi
8955     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8956     fi
8957     echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8958     echo "${ECHO_T}$ac_cv_type_long_long" >&6
8959    
8960     echo "$as_me:$LINENO: checking size of long long" >&5
8961     echo $ECHO_N "checking size of long long... $ECHO_C" >&6
8962     if test "${ac_cv_sizeof_long_long+set}" = set; then
8963     echo $ECHO_N "(cached) $ECHO_C" >&6
8964     else
8965     if test "$ac_cv_type_long_long" = yes; then
8966     # The cast to unsigned long works around a bug in the HP C Compiler
8967     # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8968     # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8969     # This bug is HP SR number 8606223364.
8970     if test "$cross_compiling" = yes; then
8971     # Depending upon the size, compute the lo and hi bounds.
8972     cat >conftest.$ac_ext <<_ACEOF
8973     /* confdefs.h. */
8974     _ACEOF
8975     cat confdefs.h >>conftest.$ac_ext
8976     cat >>conftest.$ac_ext <<_ACEOF
8977     /* end confdefs.h. */
8978     $ac_includes_default
8979     int
8980     main ()
8981     {
8982     static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
8983     test_array [0] = 0
8984    
8985     ;
8986     return 0;
8987     }
8988     _ACEOF
8989     rm -f conftest.$ac_objext
8990     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8991     (eval $ac_compile) 2>conftest.er1
8992     ac_status=$?
8993     grep -v '^ *+' conftest.er1 >conftest.err
8994     rm -f conftest.er1
8995     cat conftest.err >&5
8996     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997     (exit $ac_status); } &&
8998 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8999 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9000     (eval $ac_try) 2>&5
9001     ac_status=$?
9002     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003     (exit $ac_status); }; } &&
9004     { ac_try='test -s conftest.$ac_objext'
9005     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9006     (eval $ac_try) 2>&5
9007     ac_status=$?
9008     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009     (exit $ac_status); }; }; then
9010     ac_lo=0 ac_mid=0
9011     while :; do
9012     cat >conftest.$ac_ext <<_ACEOF
9013     /* confdefs.h. */
9014     _ACEOF
9015     cat confdefs.h >>conftest.$ac_ext
9016     cat >>conftest.$ac_ext <<_ACEOF
9017     /* end confdefs.h. */
9018     $ac_includes_default
9019     int
9020     main ()
9021     {
9022     static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9023     test_array [0] = 0
9024    
9025     ;
9026     return 0;
9027     }
9028     _ACEOF
9029     rm -f conftest.$ac_objext
9030     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9031     (eval $ac_compile) 2>conftest.er1
9032     ac_status=$?
9033     grep -v '^ *+' conftest.er1 >conftest.err
9034     rm -f conftest.er1
9035     cat conftest.err >&5
9036     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037     (exit $ac_status); } &&
9038 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9039 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9040     (eval $ac_try) 2>&5
9041     ac_status=$?
9042     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043     (exit $ac_status); }; } &&
9044     { ac_try='test -s conftest.$ac_objext'
9045     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9046     (eval $ac_try) 2>&5
9047     ac_status=$?
9048     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049     (exit $ac_status); }; }; then
9050     ac_hi=$ac_mid; break
9051     else
9052     echo "$as_me: failed program was:" >&5
9053     sed 's/^/| /' conftest.$ac_ext >&5
9054    
9055     ac_lo=`expr $ac_mid + 1`
9056     if test $ac_lo -le $ac_mid; then
9057     ac_lo= ac_hi=
9058     break
9059     fi
9060     ac_mid=`expr 2 '*' $ac_mid + 1`
9061     fi
9062     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9063     done
9064     else
9065     echo "$as_me: failed program was:" >&5
9066     sed 's/^/| /' conftest.$ac_ext >&5
9067    
9068     cat >conftest.$ac_ext <<_ACEOF
9069     /* confdefs.h. */
9070     _ACEOF
9071     cat confdefs.h >>conftest.$ac_ext
9072     cat >>conftest.$ac_ext <<_ACEOF
9073     /* end confdefs.h. */
9074     $ac_includes_default
9075     int
9076     main ()
9077     {
9078     static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
9079     test_array [0] = 0
9080    
9081     ;
9082     return 0;
9083     }
9084     _ACEOF
9085     rm -f conftest.$ac_objext
9086     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9087     (eval $ac_compile) 2>conftest.er1
9088     ac_status=$?
9089     grep -v '^ *+' conftest.er1 >conftest.err
9090     rm -f conftest.er1
9091     cat conftest.err >&5
9092     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093     (exit $ac_status); } &&
9094 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9095 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9096     (eval $ac_try) 2>&5
9097     ac_status=$?
9098     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099     (exit $ac_status); }; } &&
9100     { ac_try='test -s conftest.$ac_objext'
9101     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9102     (eval $ac_try) 2>&5
9103     ac_status=$?
9104     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105     (exit $ac_status); }; }; then
9106     ac_hi=-1 ac_mid=-1
9107     while :; do
9108     cat >conftest.$ac_ext <<_ACEOF
9109     /* confdefs.h. */
9110     _ACEOF
9111     cat confdefs.h >>conftest.$ac_ext
9112     cat >>conftest.$ac_ext <<_ACEOF
9113     /* end confdefs.h. */
9114     $ac_includes_default
9115     int
9116     main ()
9117     {
9118     static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
9119     test_array [0] = 0
9120    
9121     ;
9122     return 0;
9123     }
9124     _ACEOF
9125     rm -f conftest.$ac_objext
9126     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9127     (eval $ac_compile) 2>conftest.er1
9128     ac_status=$?
9129     grep -v '^ *+' conftest.er1 >conftest.err
9130     rm -f conftest.er1
9131     cat conftest.err >&5
9132     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133     (exit $ac_status); } &&
9134 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9135 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9136     (eval $ac_try) 2>&5
9137     ac_status=$?
9138     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139     (exit $ac_status); }; } &&
9140     { ac_try='test -s conftest.$ac_objext'
9141     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9142     (eval $ac_try) 2>&5
9143     ac_status=$?
9144     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145     (exit $ac_status); }; }; then
9146     ac_lo=$ac_mid; break
9147     else
9148     echo "$as_me: failed program was:" >&5
9149     sed 's/^/| /' conftest.$ac_ext >&5
9150    
9151     ac_hi=`expr '(' $ac_mid ')' - 1`
9152     if test $ac_mid -le $ac_hi; then
9153     ac_lo= ac_hi=
9154     break
9155     fi
9156     ac_mid=`expr 2 '*' $ac_mid`
9157     fi
9158     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9159     done
9160     else
9161     echo "$as_me: failed program was:" >&5
9162     sed 's/^/| /' conftest.$ac_ext >&5
9163 pcg 1.1
9164 pcg 1.11 ac_lo= ac_hi=
9165     fi
9166     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9167 pcg 1.1 fi
9168 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9169     # Binary search between lo and hi bounds.
9170     while test "x$ac_lo" != "x$ac_hi"; do
9171     ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9172     cat >conftest.$ac_ext <<_ACEOF
9173     /* confdefs.h. */
9174     _ACEOF
9175     cat confdefs.h >>conftest.$ac_ext
9176     cat >>conftest.$ac_ext <<_ACEOF
9177     /* end confdefs.h. */
9178     $ac_includes_default
9179     int
9180     main ()
9181     {
9182     static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9183     test_array [0] = 0
9184 pcg 1.1
9185 pcg 1.11 ;
9186     return 0;
9187     }
9188     _ACEOF
9189     rm -f conftest.$ac_objext
9190     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9191     (eval $ac_compile) 2>conftest.er1
9192     ac_status=$?
9193     grep -v '^ *+' conftest.er1 >conftest.err
9194     rm -f conftest.er1
9195     cat conftest.err >&5
9196     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197     (exit $ac_status); } &&
9198 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9199 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9200     (eval $ac_try) 2>&5
9201     ac_status=$?
9202     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203     (exit $ac_status); }; } &&
9204     { ac_try='test -s conftest.$ac_objext'
9205     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9206     (eval $ac_try) 2>&5
9207     ac_status=$?
9208     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209     (exit $ac_status); }; }; then
9210     ac_hi=$ac_mid
9211     else
9212     echo "$as_me: failed program was:" >&5
9213     sed 's/^/| /' conftest.$ac_ext >&5
9214 pcg 1.1
9215 pcg 1.11 ac_lo=`expr '(' $ac_mid ')' + 1`
9216     fi
9217     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9218     done
9219     case $ac_lo in
9220     ?*) ac_cv_sizeof_long_long=$ac_lo;;
9221     '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
9222     See \`config.log' for more details." >&5
9223     echo "$as_me: error: cannot compute sizeof (long long), 77
9224     See \`config.log' for more details." >&2;}
9225     { (exit 1); exit 1; }; } ;;
9226     esac
9227 pcg 1.1 else
9228     if test "$cross_compiling" = yes; then
9229 pcg 1.13 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
9230     echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
9231 pcg 1.11 { (exit 1); exit 1; }; }
9232     else
9233     cat >conftest.$ac_ext <<_ACEOF
9234     /* confdefs.h. */
9235     _ACEOF
9236     cat confdefs.h >>conftest.$ac_ext
9237     cat >>conftest.$ac_ext <<_ACEOF
9238     /* end confdefs.h. */
9239     $ac_includes_default
9240     long longval () { return (long) (sizeof (long long)); }
9241     unsigned long ulongval () { return (long) (sizeof (long long)); }
9242 pcg 1.1 #include <stdio.h>
9243 pcg 1.11 #include <stdlib.h>
9244     int
9245     main ()
9246 pcg 1.1 {
9247 pcg 1.11
9248     FILE *f = fopen ("conftest.val", "w");
9249     if (! f)
9250     exit (1);
9251     if (((long) (sizeof (long long))) < 0)
9252     {
9253     long i = longval ();
9254     if (i != ((long) (sizeof (long long))))
9255     exit (1);
9256     fprintf (f, "%ld\n", i);
9257     }
9258     else
9259     {
9260     unsigned long i = ulongval ();
9261     if (i != ((long) (sizeof (long long))))
9262     exit (1);
9263     fprintf (f, "%lu\n", i);
9264     }
9265     exit (ferror (f) || fclose (f) != 0);
9266    
9267     ;
9268     return 0;
9269 pcg 1.1 }
9270 pcg 1.11 _ACEOF
9271     rm -f conftest$ac_exeext
9272     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9273     (eval $ac_link) 2>&5
9274     ac_status=$?
9275     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9277     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9278     (eval $ac_try) 2>&5
9279     ac_status=$?
9280     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281     (exit $ac_status); }; }; then
9282     ac_cv_sizeof_long_long=`cat conftest.val`
9283     else
9284     echo "$as_me: program exited with status $ac_status" >&5
9285     echo "$as_me: failed program was:" >&5
9286     sed 's/^/| /' conftest.$ac_ext >&5
9287    
9288     ( exit $ac_status )
9289     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
9290     See \`config.log' for more details." >&5
9291     echo "$as_me: error: cannot compute sizeof (long long), 77
9292     See \`config.log' for more details." >&2;}
9293     { (exit 1); exit 1; }; }
9294     fi
9295     rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9296     fi
9297     fi
9298     rm -f conftest.val
9299     else
9300 pcg 1.1 ac_cv_sizeof_long_long=0
9301     fi
9302 pcg 1.11 fi
9303     echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
9304     echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
9305     cat >>confdefs.h <<_ACEOF
9306     #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9307     _ACEOF
9308    
9309    
9310     echo "$as_me:$LINENO: checking for int *" >&5
9311     echo $ECHO_N "checking for int *... $ECHO_C" >&6
9312     if test "${ac_cv_type_int_p+set}" = set; then
9313     echo $ECHO_N "(cached) $ECHO_C" >&6
9314     else
9315     cat >conftest.$ac_ext <<_ACEOF
9316     /* confdefs.h. */
9317     _ACEOF
9318     cat confdefs.h >>conftest.$ac_ext
9319     cat >>conftest.$ac_ext <<_ACEOF
9320     /* end confdefs.h. */
9321     $ac_includes_default
9322     int
9323     main ()
9324     {
9325     if ((int * *) 0)
9326     return 0;
9327     if (sizeof (int *))
9328     return 0;
9329     ;
9330     return 0;
9331     }
9332     _ACEOF
9333     rm -f conftest.$ac_objext
9334     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9335     (eval $ac_compile) 2>conftest.er1
9336     ac_status=$?
9337     grep -v '^ *+' conftest.er1 >conftest.err
9338     rm -f conftest.er1
9339     cat conftest.err >&5
9340     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341     (exit $ac_status); } &&
9342 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9343 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9344     (eval $ac_try) 2>&5
9345     ac_status=$?
9346     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347     (exit $ac_status); }; } &&
9348     { ac_try='test -s conftest.$ac_objext'
9349     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9350     (eval $ac_try) 2>&5
9351     ac_status=$?
9352     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353     (exit $ac_status); }; }; then
9354     ac_cv_type_int_p=yes
9355     else
9356     echo "$as_me: failed program was:" >&5
9357     sed 's/^/| /' conftest.$ac_ext >&5
9358    
9359     ac_cv_type_int_p=no
9360     fi
9361     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9362     fi
9363     echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
9364     echo "${ECHO_T}$ac_cv_type_int_p" >&6
9365    
9366     echo "$as_me:$LINENO: checking size of int *" >&5
9367     echo $ECHO_N "checking size of int *... $ECHO_C" >&6
9368     if test "${ac_cv_sizeof_int_p+set}" = set; then
9369     echo $ECHO_N "(cached) $ECHO_C" >&6
9370     else
9371     if test "$ac_cv_type_int_p" = yes; then
9372     # The cast to unsigned long works around a bug in the HP C Compiler
9373     # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9374     # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9375     # This bug is HP SR number 8606223364.
9376     if test "$cross_compiling" = yes; then
9377     # Depending upon the size, compute the lo and hi bounds.
9378     cat >conftest.$ac_ext <<_ACEOF
9379     /* confdefs.h. */
9380     _ACEOF
9381     cat confdefs.h >>conftest.$ac_ext
9382     cat >>conftest.$ac_ext <<_ACEOF
9383     /* end confdefs.h. */
9384     $ac_includes_default
9385     int
9386     main ()
9387     {
9388     static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
9389     test_array [0] = 0
9390    
9391     ;
9392     return 0;
9393     }
9394     _ACEOF
9395     rm -f conftest.$ac_objext
9396     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9397     (eval $ac_compile) 2>conftest.er1
9398     ac_status=$?
9399     grep -v '^ *+' conftest.er1 >conftest.err
9400     rm -f conftest.er1
9401     cat conftest.err >&5
9402     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403     (exit $ac_status); } &&
9404 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9405 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9406     (eval $ac_try) 2>&5
9407     ac_status=$?
9408     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409     (exit $ac_status); }; } &&
9410     { ac_try='test -s conftest.$ac_objext'
9411     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9412     (eval $ac_try) 2>&5
9413     ac_status=$?
9414     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415     (exit $ac_status); }; }; then
9416     ac_lo=0 ac_mid=0
9417     while :; do
9418     cat >conftest.$ac_ext <<_ACEOF
9419     /* confdefs.h. */
9420     _ACEOF
9421     cat confdefs.h >>conftest.$ac_ext
9422     cat >>conftest.$ac_ext <<_ACEOF
9423     /* end confdefs.h. */
9424     $ac_includes_default
9425     int
9426     main ()
9427     {
9428     static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
9429     test_array [0] = 0
9430    
9431     ;
9432     return 0;
9433     }
9434     _ACEOF
9435     rm -f conftest.$ac_objext
9436     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9437     (eval $ac_compile) 2>conftest.er1
9438     ac_status=$?
9439     grep -v '^ *+' conftest.er1 >conftest.err
9440     rm -f conftest.er1
9441     cat conftest.err >&5
9442     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443     (exit $ac_status); } &&
9444 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9445 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9446     (eval $ac_try) 2>&5
9447     ac_status=$?
9448     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449     (exit $ac_status); }; } &&
9450     { ac_try='test -s conftest.$ac_objext'
9451     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9452     (eval $ac_try) 2>&5
9453     ac_status=$?
9454     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455     (exit $ac_status); }; }; then
9456     ac_hi=$ac_mid; break
9457     else
9458     echo "$as_me: failed program was:" >&5
9459     sed 's/^/| /' conftest.$ac_ext >&5
9460    
9461     ac_lo=`expr $ac_mid + 1`
9462     if test $ac_lo -le $ac_mid; then
9463     ac_lo= ac_hi=
9464     break
9465     fi
9466     ac_mid=`expr 2 '*' $ac_mid + 1`
9467     fi
9468     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9469     done
9470     else
9471     echo "$as_me: failed program was:" >&5
9472     sed 's/^/| /' conftest.$ac_ext >&5
9473    
9474     cat >conftest.$ac_ext <<_ACEOF
9475     /* confdefs.h. */
9476     _ACEOF
9477     cat confdefs.h >>conftest.$ac_ext
9478     cat >>conftest.$ac_ext <<_ACEOF
9479     /* end confdefs.h. */
9480     $ac_includes_default
9481     int
9482     main ()
9483     {
9484     static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
9485     test_array [0] = 0
9486    
9487     ;
9488     return 0;
9489     }
9490     _ACEOF
9491     rm -f conftest.$ac_objext
9492     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9493     (eval $ac_compile) 2>conftest.er1
9494     ac_status=$?
9495     grep -v '^ *+' conftest.er1 >conftest.err
9496     rm -f conftest.er1
9497     cat conftest.err >&5
9498     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499     (exit $ac_status); } &&
9500 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9501 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9502     (eval $ac_try) 2>&5
9503     ac_status=$?
9504     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505     (exit $ac_status); }; } &&
9506     { ac_try='test -s conftest.$ac_objext'
9507     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9508     (eval $ac_try) 2>&5
9509     ac_status=$?
9510     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511     (exit $ac_status); }; }; then
9512     ac_hi=-1 ac_mid=-1
9513     while :; do
9514     cat >conftest.$ac_ext <<_ACEOF
9515     /* confdefs.h. */
9516     _ACEOF
9517     cat confdefs.h >>conftest.$ac_ext
9518     cat >>conftest.$ac_ext <<_ACEOF
9519     /* end confdefs.h. */
9520     $ac_includes_default
9521     int
9522     main ()
9523     {
9524     static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
9525     test_array [0] = 0
9526    
9527     ;
9528     return 0;
9529     }
9530     _ACEOF
9531     rm -f conftest.$ac_objext
9532     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9533     (eval $ac_compile) 2>conftest.er1
9534     ac_status=$?
9535     grep -v '^ *+' conftest.er1 >conftest.err
9536     rm -f conftest.er1
9537     cat conftest.err >&5
9538     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539     (exit $ac_status); } &&
9540 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9541 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9542     (eval $ac_try) 2>&5
9543     ac_status=$?
9544     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545     (exit $ac_status); }; } &&
9546     { ac_try='test -s conftest.$ac_objext'
9547     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9548     (eval $ac_try) 2>&5
9549     ac_status=$?
9550     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551     (exit $ac_status); }; }; then
9552     ac_lo=$ac_mid; break
9553     else
9554     echo "$as_me: failed program was:" >&5
9555     sed 's/^/| /' conftest.$ac_ext >&5
9556    
9557     ac_hi=`expr '(' $ac_mid ')' - 1`
9558     if test $ac_mid -le $ac_hi; then
9559     ac_lo= ac_hi=
9560     break
9561     fi
9562     ac_mid=`expr 2 '*' $ac_mid`
9563     fi
9564     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9565     done
9566     else
9567     echo "$as_me: failed program was:" >&5
9568     sed 's/^/| /' conftest.$ac_ext >&5
9569    
9570     ac_lo= ac_hi=
9571     fi
9572     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9573     fi
9574     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9575     # Binary search between lo and hi bounds.
9576     while test "x$ac_lo" != "x$ac_hi"; do
9577     ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9578     cat >conftest.$ac_ext <<_ACEOF
9579     /* confdefs.h. */
9580     _ACEOF
9581     cat confdefs.h >>conftest.$ac_ext
9582     cat >>conftest.$ac_ext <<_ACEOF
9583     /* end confdefs.h. */
9584     $ac_includes_default
9585     int
9586     main ()
9587     {
9588     static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
9589     test_array [0] = 0
9590    
9591     ;
9592     return 0;
9593     }
9594     _ACEOF
9595     rm -f conftest.$ac_objext
9596     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9597     (eval $ac_compile) 2>conftest.er1
9598     ac_status=$?
9599     grep -v '^ *+' conftest.er1 >conftest.err
9600     rm -f conftest.er1
9601     cat conftest.err >&5
9602     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603     (exit $ac_status); } &&
9604 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9605 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9606     (eval $ac_try) 2>&5
9607     ac_status=$?
9608     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609     (exit $ac_status); }; } &&
9610     { ac_try='test -s conftest.$ac_objext'
9611     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9612     (eval $ac_try) 2>&5
9613     ac_status=$?
9614     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615     (exit $ac_status); }; }; then
9616     ac_hi=$ac_mid
9617     else
9618     echo "$as_me: failed program was:" >&5
9619     sed 's/^/| /' conftest.$ac_ext >&5
9620 pcg 1.1
9621 pcg 1.11 ac_lo=`expr '(' $ac_mid ')' + 1`
9622 pcg 1.1 fi
9623 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9624     done
9625     case $ac_lo in
9626     ?*) ac_cv_sizeof_int_p=$ac_lo;;
9627     '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
9628     See \`config.log' for more details." >&5
9629     echo "$as_me: error: cannot compute sizeof (int *), 77
9630     See \`config.log' for more details." >&2;}
9631     { (exit 1); exit 1; }; } ;;
9632     esac
9633 pcg 1.1 else
9634     if test "$cross_compiling" = yes; then
9635 pcg 1.13 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
9636     echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
9637 pcg 1.11 { (exit 1); exit 1; }; }
9638     else
9639     cat >conftest.$ac_ext <<_ACEOF
9640     /* confdefs.h. */
9641     _ACEOF
9642     cat confdefs.h >>conftest.$ac_ext
9643     cat >>conftest.$ac_ext <<_ACEOF
9644     /* end confdefs.h. */
9645     $ac_includes_default
9646     long longval () { return (long) (sizeof (int *)); }
9647     unsigned long ulongval () { return (long) (sizeof (int *)); }
9648 pcg 1.1 #include <stdio.h>
9649 pcg 1.11 #include <stdlib.h>
9650     int
9651     main ()
9652 pcg 1.1 {
9653 pcg 1.11
9654     FILE *f = fopen ("conftest.val", "w");
9655     if (! f)
9656     exit (1);
9657     if (((long) (sizeof (int *))) < 0)
9658     {
9659     long i = longval ();
9660     if (i != ((long) (sizeof (int *))))
9661     exit (1);
9662     fprintf (f, "%ld\n", i);
9663     }
9664     else
9665     {
9666     unsigned long i = ulongval ();
9667     if (i != ((long) (sizeof (int *))))
9668     exit (1);
9669     fprintf (f, "%lu\n", i);
9670     }
9671     exit (ferror (f) || fclose (f) != 0);
9672    
9673     ;
9674     return 0;
9675 pcg 1.1 }
9676 pcg 1.11 _ACEOF
9677     rm -f conftest$ac_exeext
9678     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9679     (eval $ac_link) 2>&5
9680     ac_status=$?
9681     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9683     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9684     (eval $ac_try) 2>&5
9685     ac_status=$?
9686     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687     (exit $ac_status); }; }; then
9688     ac_cv_sizeof_int_p=`cat conftest.val`
9689     else
9690     echo "$as_me: program exited with status $ac_status" >&5
9691     echo "$as_me: failed program was:" >&5
9692     sed 's/^/| /' conftest.$ac_ext >&5
9693    
9694     ( exit $ac_status )
9695     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
9696     See \`config.log' for more details." >&5
9697     echo "$as_me: error: cannot compute sizeof (int *), 77
9698     See \`config.log' for more details." >&2;}
9699     { (exit 1); exit 1; }; }
9700     fi
9701     rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9702     fi
9703     fi
9704     rm -f conftest.val
9705     else
9706 pcg 1.1 ac_cv_sizeof_int_p=0
9707     fi
9708     fi
9709 pcg 1.11 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
9710     echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
9711     cat >>confdefs.h <<_ACEOF
9712 pcg 1.1 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
9713 pcg 1.11 _ACEOF
9714 pcg 1.1
9715    
9716    
9717    
9718 pcg 1.11 echo "$as_me:$LINENO: checking for int16_t" >&5
9719     echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
9720     if test "${rxvt_cv_int16_t+set}" = set; then
9721     echo $ECHO_N "(cached) $ECHO_C" >&6
9722 pcg 1.1 else
9723 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
9724     /* confdefs.h. */
9725     _ACEOF
9726     cat confdefs.h >>conftest.$ac_ext
9727     cat >>conftest.$ac_ext <<_ACEOF
9728     /* end confdefs.h. */
9729 pcg 1.1 #include <stdint.h>
9730 pcg 1.11 int
9731     main ()
9732     {
9733 pcg 1.1 int16_t dummy;
9734 pcg 1.11 ;
9735     return 0;
9736     }
9737     _ACEOF
9738     rm -f conftest.$ac_objext
9739     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9740     (eval $ac_compile) 2>conftest.er1
9741     ac_status=$?
9742     grep -v '^ *+' conftest.er1 >conftest.err
9743     rm -f conftest.er1
9744     cat conftest.err >&5
9745     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746     (exit $ac_status); } &&
9747 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9748 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9749     (eval $ac_try) 2>&5
9750     ac_status=$?
9751     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752     (exit $ac_status); }; } &&
9753     { ac_try='test -s conftest.$ac_objext'
9754     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9755     (eval $ac_try) 2>&5
9756     ac_status=$?
9757     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758     (exit $ac_status); }; }; then
9759 pcg 1.1 rxvt_cv_int16_t=yes
9760     else
9761 pcg 1.11 echo "$as_me: failed program was:" >&5
9762     sed 's/^/| /' conftest.$ac_ext >&5
9763    
9764 root 1.50 if test "$ac_cv_sizeof_char" -ge 2; then
9765 pcg 1.1 rxvt_cv_int16_t=" char"
9766     else
9767 root 1.50 if test "$ac_cv_sizeof_short" -ge 2; then
9768 pcg 1.1 rxvt_cv_int16_t=" short"
9769     else
9770 root 1.50 if test "$ac_cv_sizeof_int" -ge 2; then
9771 pcg 1.1 rxvt_cv_int16_t=" int"
9772     else
9773 root 1.50 if test "$ac_cv_sizeof_long" -ge 2; then
9774 pcg 1.1 rxvt_cv_int16_t=" long"
9775     else
9776 root 1.50 if test "$ac_cv_sizeof_long_long" -ge 2; then
9777 pcg 1.1 rxvt_cv_int16_t=" long long"
9778     else
9779     rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
9780     fi
9781     fi
9782     fi
9783     fi
9784     fi
9785     fi
9786 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9787 pcg 1.1 fi
9788 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5
9789     echo "${ECHO_T}$rxvt_cv_int16_t" >&6
9790 pcg 1.1 if test x"$rxvt_cv_int16_t" != xyes; then
9791     rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;"
9792     else
9793     if test x"" = x; then
9794     rxvt_int16_typedef="/* typedef short int16_t; */"
9795     else
9796     rxvt_int16_typedef="/* typedef short int16_t; */"
9797     fi
9798 pcg 1.11 fi
9799 pcg 1.1
9800 pcg 1.11 echo "$as_me:$LINENO: checking for uint16_t" >&5
9801     echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
9802     if test "${rxvt_cv_uint16_t+set}" = set; then
9803     echo $ECHO_N "(cached) $ECHO_C" >&6
9804     else
9805     cat >conftest.$ac_ext <<_ACEOF
9806     /* confdefs.h. */
9807     _ACEOF
9808     cat confdefs.h >>conftest.$ac_ext
9809     cat >>conftest.$ac_ext <<_ACEOF
9810     /* end confdefs.h. */
9811 pcg 1.1 #include <stdint.h>
9812 pcg 1.11 int
9813     main ()
9814     {
9815 pcg 1.1 uint16_t dummy;
9816 pcg 1.11 ;
9817     return 0;
9818     }
9819     _ACEOF
9820     rm -f conftest.$ac_objext
9821     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9822     (eval $ac_compile) 2>conftest.er1
9823     ac_status=$?
9824     grep -v '^ *+' conftest.er1 >conftest.err
9825     rm -f conftest.er1
9826     cat conftest.err >&5
9827     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828     (exit $ac_status); } &&
9829 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9830 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9831     (eval $ac_try) 2>&5
9832     ac_status=$?
9833     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834     (exit $ac_status); }; } &&
9835     { ac_try='test -s conftest.$ac_objext'
9836     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9837     (eval $ac_try) 2>&5
9838     ac_status=$?
9839     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840     (exit $ac_status); }; }; then
9841 pcg 1.1 rxvt_cv_uint16_t=yes
9842     else
9843 pcg 1.11 echo "$as_me: failed program was:" >&5
9844     sed 's/^/| /' conftest.$ac_ext >&5
9845    
9846 root 1.50 if test "$ac_cv_sizeof_char" -ge 2; then
9847 pcg 1.1 rxvt_cv_uint16_t="unsigned char"
9848     else
9849 root 1.50 if test "$ac_cv_sizeof_short" -ge 2; then
9850 pcg 1.1 rxvt_cv_uint16_t="unsigned short"
9851     else
9852 root 1.50 if test "$ac_cv_sizeof_int" -ge 2; then
9853 pcg 1.1 rxvt_cv_uint16_t="unsigned int"
9854     else
9855 root 1.50 if test "$ac_cv_sizeof_long" -ge 2; then
9856 pcg 1.1 rxvt_cv_uint16_t="unsigned long"
9857     else
9858 root 1.50 if test "$ac_cv_sizeof_long_long" -ge 2; then
9859 pcg 1.1 rxvt_cv_uint16_t="unsigned long long"
9860     else
9861     rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default
9862     fi
9863     fi
9864     fi
9865     fi
9866     fi
9867     fi
9868 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9869 pcg 1.1 fi
9870 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5
9871     echo "${ECHO_T}$rxvt_cv_uint16_t" >&6
9872 pcg 1.1 if test x"$rxvt_cv_uint16_t" != xyes; then
9873     rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;"
9874     else
9875     if test x"unsigned" = x; then
9876     rxvt_uint16_typedef="/* typedef short uint16_t; */"
9877     else
9878     rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */"
9879     fi
9880 pcg 1.11 fi
9881 pcg 1.1
9882 pcg 1.11 echo "$as_me:$LINENO: checking for int32_t" >&5
9883     echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
9884     if test "${rxvt_cv_int32_t+set}" = set; then
9885     echo $ECHO_N "(cached) $ECHO_C" >&6
9886     else
9887     cat >conftest.$ac_ext <<_ACEOF
9888     /* confdefs.h. */
9889     _ACEOF
9890     cat confdefs.h >>conftest.$ac_ext
9891     cat >>conftest.$ac_ext <<_ACEOF
9892     /* end confdefs.h. */
9893 pcg 1.1 #include <stdint.h>
9894 pcg 1.11 int
9895     main ()
9896     {
9897 pcg 1.1 int32_t dummy;
9898 pcg 1.11 ;
9899     return 0;
9900     }
9901     _ACEOF
9902     rm -f conftest.$ac_objext
9903     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9904     (eval $ac_compile) 2>conftest.er1
9905     ac_status=$?
9906     grep -v '^ *+' conftest.er1 >conftest.err
9907     rm -f conftest.er1
9908     cat conftest.err >&5
9909     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910     (exit $ac_status); } &&
9911 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9912 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9913     (eval $ac_try) 2>&5
9914     ac_status=$?
9915     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916     (exit $ac_status); }; } &&
9917     { ac_try='test -s conftest.$ac_objext'
9918     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9919     (eval $ac_try) 2>&5
9920     ac_status=$?
9921     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922     (exit $ac_status); }; }; then
9923 pcg 1.1 rxvt_cv_int32_t=yes
9924     else
9925 pcg 1.11 echo "$as_me: failed program was:" >&5
9926     sed 's/^/| /' conftest.$ac_ext >&5
9927    
9928 root 1.50 if test "$ac_cv_sizeof_char" -ge 4; then
9929 pcg 1.1 rxvt_cv_int32_t=" char"
9930     else
9931 root 1.50 if test "$ac_cv_sizeof_short" -ge 4; then
9932 pcg 1.1 rxvt_cv_int32_t=" short"
9933     else
9934 root 1.50 if test "$ac_cv_sizeof_int" -ge 4; then
9935 pcg 1.1 rxvt_cv_int32_t=" int"
9936     else
9937 root 1.50 if test "$ac_cv_sizeof_long" -ge 4; then
9938 pcg 1.1 rxvt_cv_int32_t=" long"
9939     else
9940 root 1.50 if test "$ac_cv_sizeof_long_long" -ge 4; then
9941 pcg 1.1 rxvt_cv_int32_t=" long long"
9942     else
9943     rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
9944     fi
9945     fi
9946     fi
9947     fi
9948     fi
9949     fi
9950 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9951 pcg 1.1 fi
9952 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5
9953     echo "${ECHO_T}$rxvt_cv_int32_t" >&6
9954 pcg 1.1 if test x"$rxvt_cv_int32_t" != xyes; then
9955     rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;"
9956     else
9957     if test x"" = x; then
9958     rxvt_int32_typedef="/* typedef int int32_t; */"
9959     else
9960     rxvt_int32_typedef="/* typedef int int32_t; */"
9961     fi
9962 pcg 1.11 fi
9963 pcg 1.1
9964 pcg 1.11 echo "$as_me:$LINENO: checking for uint32_t" >&5
9965     echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
9966     if test "${rxvt_cv_uint32_t+set}" = set; then
9967     echo $ECHO_N "(cached) $ECHO_C" >&6
9968     else
9969     cat >conftest.$ac_ext <<_ACEOF
9970     /* confdefs.h. */
9971     _ACEOF
9972     cat confdefs.h >>conftest.$ac_ext
9973     cat >>conftest.$ac_ext <<_ACEOF
9974     /* end confdefs.h. */
9975 pcg 1.1 #include <stdint.h>
9976 pcg 1.11 int
9977     main ()
9978     {
9979 pcg 1.1 uint32_t dummy;
9980 pcg 1.11 ;
9981     return 0;
9982     }
9983     _ACEOF
9984     rm -f conftest.$ac_objext
9985     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9986     (eval $ac_compile) 2>conftest.er1
9987     ac_status=$?
9988     grep -v '^ *+' conftest.er1 >conftest.err
9989     rm -f conftest.er1
9990     cat conftest.err >&5
9991     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992     (exit $ac_status); } &&
9993 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9994 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9995     (eval $ac_try) 2>&5
9996     ac_status=$?
9997     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998     (exit $ac_status); }; } &&
9999     { ac_try='test -s conftest.$ac_objext'
10000     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10001     (eval $ac_try) 2>&5
10002     ac_status=$?
10003     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004     (exit $ac_status); }; }; then
10005 pcg 1.1 rxvt_cv_uint32_t=yes
10006     else
10007 pcg 1.11 echo "$as_me: failed program was:" >&5
10008     sed 's/^/| /' conftest.$ac_ext >&5
10009    
10010 root 1.50 if test "$ac_cv_sizeof_char" -ge 4; then
10011 pcg 1.1 rxvt_cv_uint32_t="unsigned char"
10012     else
10013 root 1.50 if test "$ac_cv_sizeof_short" -ge 4; then
10014 pcg 1.1 rxvt_cv_uint32_t="unsigned short"
10015     else
10016 root 1.50 if test "$ac_cv_sizeof_int" -ge 4; then
10017 pcg 1.1 rxvt_cv_uint32_t="unsigned int"
10018     else
10019 root 1.50 if test "$ac_cv_sizeof_long" -ge 4; then
10020 pcg 1.1 rxvt_cv_uint32_t="unsigned long"
10021     else
10022 root 1.50 if test "$ac_cv_sizeof_long_long" -ge 4; then
10023 pcg 1.1 rxvt_cv_uint32_t="unsigned long long"
10024     else
10025     rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default
10026     fi
10027     fi
10028     fi
10029     fi
10030     fi
10031     fi
10032 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10033 pcg 1.1 fi
10034 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5
10035     echo "${ECHO_T}$rxvt_cv_uint32_t" >&6
10036 pcg 1.1 if test x"$rxvt_cv_uint32_t" != xyes; then
10037     rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;"
10038     else
10039     if test x"unsigned" = x; then
10040     rxvt_uint32_typedef="/* typedef int uint32_t; */"
10041     else
10042     rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
10043     fi
10044 pcg 1.11 fi
10045 pcg 1.1
10046 root 1.50 if test "$ac_cv_sizeof_int_p" -eq 8; then
10047 pcg 1.1 rxvt_intp_define="#define intp_t int64_t"
10048     rxvt_u_intp_define="#define u_intp_t u_int64_t"
10049     else
10050 root 1.50 if test "$ac_cv_sizeof_int_p" -eq 4; then
10051 pcg 1.1 rxvt_intp_define="#define intp_t int32_t"
10052     rxvt_u_intp_define="#define u_intp_t u_int32_t"
10053     else
10054 root 1.50 if test "$ac_cv_sizeof_int_p" -eq 2; then
10055 pcg 1.1 rxvt_intp_define="#define intp_t int16_t"
10056     rxvt_u_intp_define="#define u_intp_t u_int16_t"
10057     else
10058     rxvt_intp_define="#error set intp_t"
10059     rxvt_u_intp_define="#error set u_intp_t"
10060     fi
10061     fi
10062     fi
10063    
10064    
10065    
10066 pcg 1.11 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10067     echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10068     if test "${ac_cv_type_signal+set}" = set; then
10069     echo $ECHO_N "(cached) $ECHO_C" >&6
10070     else
10071     cat >conftest.$ac_ext <<_ACEOF
10072     /* confdefs.h. */
10073     _ACEOF
10074     cat confdefs.h >>conftest.$ac_ext
10075     cat >>conftest.$ac_ext <<_ACEOF
10076     /* end confdefs.h. */
10077 pcg 1.1 #include <sys/types.h>
10078     #include <signal.h>
10079     #ifdef signal
10080 pcg 1.11 # undef signal
10081 pcg 1.1 #endif
10082     #ifdef __cplusplus
10083     extern "C" void (*signal (int, void (*)(int)))(int);
10084     #else
10085     void (*signal ()) ();
10086     #endif
10087    
10088 pcg 1.11 int
10089     main ()
10090     {
10091 pcg 1.1 int i;
10092 pcg 1.11 ;
10093     return 0;
10094     }
10095     _ACEOF
10096     rm -f conftest.$ac_objext
10097     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10098     (eval $ac_compile) 2>conftest.er1
10099     ac_status=$?
10100     grep -v '^ *+' conftest.er1 >conftest.err
10101     rm -f conftest.er1
10102     cat conftest.err >&5
10103     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104     (exit $ac_status); } &&
10105 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10106 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10107     (eval $ac_try) 2>&5
10108     ac_status=$?
10109     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110     (exit $ac_status); }; } &&
10111     { ac_try='test -s conftest.$ac_objext'
10112     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10113     (eval $ac_try) 2>&5
10114     ac_status=$?
10115     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116     (exit $ac_status); }; }; then
10117 pcg 1.1 ac_cv_type_signal=void
10118     else
10119 pcg 1.11 echo "$as_me: failed program was:" >&5
10120     sed 's/^/| /' conftest.$ac_ext >&5
10121    
10122     ac_cv_type_signal=int
10123 pcg 1.1 fi
10124 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10125 pcg 1.1 fi
10126 pcg 1.11 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10127     echo "${ECHO_T}$ac_cv_type_signal" >&6
10128 pcg 1.1
10129 pcg 1.11 cat >>confdefs.h <<_ACEOF
10130 pcg 1.1 #define RETSIGTYPE $ac_cv_type_signal
10131 pcg 1.11 _ACEOF
10132 pcg 1.1
10133    
10134    
10135     case "$host_alias" in
10136     *ultrix) ac_cv_func_setsid='no' ;;
10137     *) break;;
10138     esac
10139    
10140 pcg 1.11
10141    
10142    
10143    
10144    
10145    
10146    
10147    
10148    
10149    
10150    
10151    
10152    
10153    
10154    
10155    
10156    
10157    
10158 root 1.67
10159 root 1.74
10160 pcg 1.1 for ac_func in \
10161     atexit \
10162     revoke \
10163     unsetenv \
10164     setutent \
10165     seteuid \
10166     setreuid \
10167     setsid \
10168     setpgrp \
10169     setpgid \
10170     _getpty \
10171 root 1.74 getpt \
10172 root 1.67 posix_openpt \
10173 pcg 1.1 grantpt \
10174     unlockpt \
10175     isastream \
10176     on_exit \
10177     nanosleep \
10178     updwtmp \
10179 root 1.52 updwtmpx \
10180 pcg 1.1 ttyslot \
10181    
10182     do
10183 pcg 1.11 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10184     echo "$as_me:$LINENO: checking for $ac_func" >&5
10185     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10186     if eval "test \"\${$as_ac_var+set}\" = set"; then
10187     echo $ECHO_N "(cached) $ECHO_C" >&6
10188     else
10189     cat >conftest.$ac_ext <<_ACEOF
10190     /* confdefs.h. */
10191     _ACEOF
10192     cat confdefs.h >>conftest.$ac_ext
10193     cat >>conftest.$ac_ext <<_ACEOF
10194     /* end confdefs.h. */
10195     /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10196     For example, HP-UX 11i <limits.h> declares gettimeofday. */
10197     #define $ac_func innocuous_$ac_func
10198    
10199 pcg 1.1 /* System header to define __stub macros and hopefully few prototypes,
10200 pcg 1.11 which can conflict with char $ac_func (); below.
10201     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10202     <limits.h> exists even on freestanding compilers. */
10203    
10204     #ifdef __STDC__
10205     # include <limits.h>
10206     #else
10207     # include <assert.h>
10208     #endif
10209    
10210     #undef $ac_func
10211    
10212 pcg 1.1 /* Override any gcc2 internal prototype to avoid an error. */
10213 pcg 1.11 #ifdef __cplusplus
10214     extern "C"
10215     {
10216     #endif
10217 pcg 1.1 /* We use char because int might match the return type of a gcc2
10218 pcg 1.11 builtin and then its argument prototype would still apply. */
10219     char $ac_func ();
10220 pcg 1.1 /* The GNU C library defines this for functions which it implements
10221     to always fail with ENOSYS. Some functions are actually named
10222     something starting with __ and the normal name is an alias. */
10223     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10224     choke me
10225     #else
10226 pcg 1.11 char (*f) () = $ac_func;
10227     #endif
10228     #ifdef __cplusplus
10229     }
10230 pcg 1.1 #endif
10231    
10232 pcg 1.11 int
10233     main ()
10234     {
10235     return f != $ac_func;
10236     ;
10237     return 0;
10238     }
10239     _ACEOF
10240     rm -f conftest.$ac_objext conftest$ac_exeext
10241     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10242     (eval $ac_link) 2>conftest.er1
10243     ac_status=$?
10244     grep -v '^ *+' conftest.er1 >conftest.err
10245     rm -f conftest.er1
10246     cat conftest.err >&5
10247     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248     (exit $ac_status); } &&
10249 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10250 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10251     (eval $ac_try) 2>&5
10252     ac_status=$?
10253     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254     (exit $ac_status); }; } &&
10255     { ac_try='test -s conftest$ac_exeext'
10256     { (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); }; }; then
10261     eval "$as_ac_var=yes"
10262     else
10263     echo "$as_me: failed program was:" >&5
10264     sed 's/^/| /' conftest.$ac_ext >&5
10265    
10266     eval "$as_ac_var=no"
10267     fi
10268     rm -f conftest.err conftest.$ac_objext \
10269     conftest$ac_exeext conftest.$ac_ext
10270     fi
10271     echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10272     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10273     if test `eval echo '${'$as_ac_var'}'` = yes; then
10274     cat >>confdefs.h <<_ACEOF
10275     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10276     _ACEOF
10277 pcg 1.1
10278     fi
10279     done
10280    
10281    
10282    
10283 pcg 1.11 if test "${ac_cv_header_utmp_h+set}" = set; then
10284     echo "$as_me:$LINENO: checking for utmp.h" >&5
10285     echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
10286     if test "${ac_cv_header_utmp_h+set}" = set; then
10287     echo $ECHO_N "(cached) $ECHO_C" >&6
10288     fi
10289     echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
10290     echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
10291     else
10292     # Is the header compilable?
10293     echo "$as_me:$LINENO: checking utmp.h usability" >&5
10294     echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6
10295     cat >conftest.$ac_ext <<_ACEOF
10296     /* confdefs.h. */
10297     _ACEOF
10298     cat confdefs.h >>conftest.$ac_ext
10299     cat >>conftest.$ac_ext <<_ACEOF
10300     /* end confdefs.h. */
10301     $ac_includes_default
10302     #include <utmp.h>
10303     _ACEOF
10304     rm -f conftest.$ac_objext
10305     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10306     (eval $ac_compile) 2>conftest.er1
10307     ac_status=$?
10308     grep -v '^ *+' conftest.er1 >conftest.err
10309     rm -f conftest.er1
10310     cat conftest.err >&5
10311     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312     (exit $ac_status); } &&
10313 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10314 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10315     (eval $ac_try) 2>&5
10316     ac_status=$?
10317     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318     (exit $ac_status); }; } &&
10319     { ac_try='test -s conftest.$ac_objext'
10320     { (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); }; }; then
10325     ac_header_compiler=yes
10326     else
10327     echo "$as_me: failed program was:" >&5
10328     sed 's/^/| /' conftest.$ac_ext >&5
10329    
10330     ac_header_compiler=no
10331     fi
10332     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10333     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10334     echo "${ECHO_T}$ac_header_compiler" >&6
10335    
10336     # Is the header present?
10337     echo "$as_me:$LINENO: checking utmp.h presence" >&5
10338     echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6
10339     cat >conftest.$ac_ext <<_ACEOF
10340     /* confdefs.h. */
10341     _ACEOF
10342     cat confdefs.h >>conftest.$ac_ext
10343     cat >>conftest.$ac_ext <<_ACEOF
10344     /* end confdefs.h. */
10345 pcg 1.1 #include <utmp.h>
10346 pcg 1.11 _ACEOF
10347     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10348     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10349     ac_status=$?
10350     grep -v '^ *+' conftest.er1 >conftest.err
10351     rm -f conftest.er1
10352     cat conftest.err >&5
10353     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354     (exit $ac_status); } >/dev/null; then
10355     if test -s conftest.err; then
10356 pcg 1.13 ac_cpp_err=$ac_cxx_preproc_warn_flag
10357     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10358 pcg 1.11 else
10359     ac_cpp_err=
10360     fi
10361 pcg 1.1 else
10362 pcg 1.11 ac_cpp_err=yes
10363 pcg 1.1 fi
10364 pcg 1.11 if test -z "$ac_cpp_err"; then
10365     ac_header_preproc=yes
10366     else
10367     echo "$as_me: failed program was:" >&5
10368     sed 's/^/| /' conftest.$ac_ext >&5
10369    
10370     ac_header_preproc=no
10371 pcg 1.1 fi
10372 pcg 1.11 rm -f conftest.err conftest.$ac_ext
10373     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10374     echo "${ECHO_T}$ac_header_preproc" >&6
10375    
10376     # So? What about this header?
10377 pcg 1.13 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10378 pcg 1.11 yes:no: )
10379     { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
10380     echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10381     { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5
10382     echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;}
10383     ac_header_preproc=yes
10384     ;;
10385     no:yes:* )
10386     { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5
10387     echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;}
10388     { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5
10389     echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;}
10390     { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5
10391     echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;}
10392     { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5
10393     echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
10394     { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5
10395     echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;}
10396     { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5
10397     echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;}
10398     (
10399     cat <<\_ASBOX
10400     ## ------------------------------------------ ##
10401     ## Report this to the AC_PACKAGE_NAME lists. ##
10402     ## ------------------------------------------ ##
10403     _ASBOX
10404     ) |
10405     sed "s/^/$as_me: WARNING: /" >&2
10406     ;;
10407     esac
10408     echo "$as_me:$LINENO: checking for utmp.h" >&5
10409     echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
10410     if test "${ac_cv_header_utmp_h+set}" = set; then
10411     echo $ECHO_N "(cached) $ECHO_C" >&6
10412     else
10413     ac_cv_header_utmp_h=$ac_header_preproc
10414     fi
10415     echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
10416     echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
10417    
10418     fi
10419     if test $ac_cv_header_utmp_h = yes; then
10420     echo "$as_me:$LINENO: checking for struct utmp" >&5
10421     echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6
10422     if test "${rxvt_cv_struct_utmp+set}" = set; then
10423     echo $ECHO_N "(cached) $ECHO_C" >&6
10424     else
10425     cat >conftest.$ac_ext <<_ACEOF
10426     /* confdefs.h. */
10427     _ACEOF
10428     cat confdefs.h >>conftest.$ac_ext
10429     cat >>conftest.$ac_ext <<_ACEOF
10430     /* end confdefs.h. */
10431 pcg 1.1 #include <sys/types.h>
10432     #include <stdint.h>
10433     #include <utmp.h>
10434 pcg 1.11 int
10435     main ()
10436     {
10437 pcg 1.1 struct utmp ut;
10438 pcg 1.11 ;
10439     return 0;
10440     }
10441     _ACEOF
10442     rm -f conftest.$ac_objext
10443     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10444     (eval $ac_compile) 2>conftest.er1
10445     ac_status=$?
10446     grep -v '^ *+' conftest.er1 >conftest.err
10447     rm -f conftest.er1
10448     cat conftest.err >&5
10449     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450     (exit $ac_status); } &&
10451 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10452 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10453     (eval $ac_try) 2>&5
10454     ac_status=$?
10455     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456     (exit $ac_status); }; } &&
10457     { ac_try='test -s conftest.$ac_objext'
10458     { (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); }; }; then
10463 pcg 1.1 rxvt_cv_struct_utmp=yes
10464     else
10465 pcg 1.11 echo "$as_me: failed program was:" >&5
10466     sed 's/^/| /' conftest.$ac_ext >&5
10467    
10468     rxvt_cv_struct_utmp=no
10469 pcg 1.1 fi
10470 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10471 pcg 1.1 fi
10472 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp" >&5
10473     echo "${ECHO_T}$rxvt_cv_struct_utmp" >&6
10474     if test x$rxvt_cv_struct_utmp = xyes; then
10475 pcg 1.1
10476 pcg 1.11 cat >>confdefs.h <<\_ACEOF
10477 pcg 1.1 #define HAVE_STRUCT_UTMP 1
10478 pcg 1.11 _ACEOF
10479 pcg 1.1
10480     fi
10481    
10482    
10483 pcg 1.11 echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5
10484     echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6
10485     if test "${rxvt_cv_struct_utmp_host+set}" = set; then
10486     echo $ECHO_N "(cached) $ECHO_C" >&6
10487 pcg 1.1 else
10488 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
10489     /* confdefs.h. */
10490     _ACEOF
10491     cat confdefs.h >>conftest.$ac_ext
10492     cat >>conftest.$ac_ext <<_ACEOF
10493     /* end confdefs.h. */
10494 pcg 1.1 #include <sys/types.h>
10495     #include <utmp.h>
10496 pcg 1.11 int
10497     main ()
10498     {
10499 pcg 1.1 struct utmp ut; ut.ut_host;
10500 pcg 1.11 ;
10501     return 0;
10502     }
10503     _ACEOF
10504     rm -f conftest.$ac_objext
10505     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10506     (eval $ac_compile) 2>conftest.er1
10507     ac_status=$?
10508     grep -v '^ *+' conftest.er1 >conftest.err
10509     rm -f conftest.er1
10510     cat conftest.err >&5
10511     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512     (exit $ac_status); } &&
10513 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10514 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10515     (eval $ac_try) 2>&5
10516     ac_status=$?
10517     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518     (exit $ac_status); }; } &&
10519     { ac_try='test -s conftest.$ac_objext'
10520     { (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); }; }; then
10525 pcg 1.1 rxvt_cv_struct_utmp_host=yes
10526     else
10527 pcg 1.11 echo "$as_me: failed program was:" >&5
10528     sed 's/^/| /' conftest.$ac_ext >&5
10529    
10530     rxvt_cv_struct_utmp_host=no
10531 pcg 1.1 fi
10532 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10533 pcg 1.1 fi
10534 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_host" >&5
10535     echo "${ECHO_T}$rxvt_cv_struct_utmp_host" >&6
10536     if test x$rxvt_cv_struct_utmp_host = xyes; then
10537 pcg 1.1
10538 pcg 1.11 cat >>confdefs.h <<\_ACEOF
10539 pcg 1.1 #define HAVE_UTMP_HOST 1
10540 pcg 1.11 _ACEOF
10541 pcg 1.1
10542     fi
10543    
10544 pcg 1.11 echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5
10545     echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6
10546     if test "${rxvt_cv_struct_utmp_pid+set}" = set; then
10547     echo $ECHO_N "(cached) $ECHO_C" >&6
10548 pcg 1.1 else
10549 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
10550     /* confdefs.h. */
10551     _ACEOF
10552     cat confdefs.h >>conftest.$ac_ext
10553     cat >>conftest.$ac_ext <<_ACEOF
10554     /* end confdefs.h. */
10555 pcg 1.1 #include <sys/types.h>
10556     #include <utmp.h>
10557 pcg 1.11 int
10558     main ()
10559     {
10560 pcg 1.1 struct utmp ut; ut.ut_pid;
10561 pcg 1.11 ;
10562     return 0;
10563     }
10564     _ACEOF
10565     rm -f conftest.$ac_objext
10566     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10567     (eval $ac_compile) 2>conftest.er1
10568     ac_status=$?
10569     grep -v '^ *+' conftest.er1 >conftest.err
10570     rm -f conftest.er1
10571     cat conftest.err >&5
10572     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573     (exit $ac_status); } &&
10574 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10575 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10576     (eval $ac_try) 2>&5
10577     ac_status=$?
10578     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579     (exit $ac_status); }; } &&
10580     { ac_try='test -s conftest.$ac_objext'
10581     { (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); }; }; then
10586 pcg 1.1 rxvt_cv_struct_utmp_pid=yes
10587     else
10588 pcg 1.11 echo "$as_me: failed program was:" >&5
10589     sed 's/^/| /' conftest.$ac_ext >&5
10590    
10591     rxvt_cv_struct_utmp_pid=no
10592 pcg 1.1 fi
10593 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10594 pcg 1.1 fi
10595 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_pid" >&5
10596     echo "${ECHO_T}$rxvt_cv_struct_utmp_pid" >&6
10597     if test x$rxvt_cv_struct_utmp_pid = xyes; then
10598 pcg 1.1
10599 pcg 1.11 cat >>confdefs.h <<\_ACEOF
10600 pcg 1.1 #define HAVE_UTMP_PID 1
10601 pcg 1.11 _ACEOF
10602 pcg 1.1
10603     fi
10604    
10605     fi
10606    
10607 pcg 1.11
10608    
10609     if test "${ac_cv_header_utmpx_h+set}" = set; then
10610     echo "$as_me:$LINENO: checking for utmpx.h" >&5
10611     echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
10612     if test "${ac_cv_header_utmpx_h+set}" = set; then
10613     echo $ECHO_N "(cached) $ECHO_C" >&6
10614     fi
10615     echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
10616     echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
10617 pcg 1.1 else
10618 pcg 1.11 # Is the header compilable?
10619     echo "$as_me:$LINENO: checking utmpx.h usability" >&5
10620     echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6
10621     cat >conftest.$ac_ext <<_ACEOF
10622     /* confdefs.h. */
10623     _ACEOF
10624     cat confdefs.h >>conftest.$ac_ext
10625     cat >>conftest.$ac_ext <<_ACEOF
10626     /* end confdefs.h. */
10627     $ac_includes_default
10628     #include <utmpx.h>
10629     _ACEOF
10630     rm -f conftest.$ac_objext
10631     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10632     (eval $ac_compile) 2>conftest.er1
10633     ac_status=$?
10634     grep -v '^ *+' conftest.er1 >conftest.err
10635     rm -f conftest.er1
10636     cat conftest.err >&5
10637     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638     (exit $ac_status); } &&
10639 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10640 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10641     (eval $ac_try) 2>&5
10642     ac_status=$?
10643     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644     (exit $ac_status); }; } &&
10645     { ac_try='test -s conftest.$ac_objext'
10646     { (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); }; }; then
10651     ac_header_compiler=yes
10652     else
10653     echo "$as_me: failed program was:" >&5
10654     sed 's/^/| /' conftest.$ac_ext >&5
10655    
10656     ac_header_compiler=no
10657     fi
10658     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10659     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10660     echo "${ECHO_T}$ac_header_compiler" >&6
10661    
10662     # Is the header present?
10663     echo "$as_me:$LINENO: checking utmpx.h presence" >&5
10664     echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6
10665     cat >conftest.$ac_ext <<_ACEOF
10666     /* confdefs.h. */
10667     _ACEOF
10668     cat confdefs.h >>conftest.$ac_ext
10669     cat >>conftest.$ac_ext <<_ACEOF
10670     /* end confdefs.h. */
10671 pcg 1.1 #include <utmpx.h>
10672 pcg 1.11 _ACEOF
10673     if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10674     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10675     ac_status=$?
10676     grep -v '^ *+' conftest.er1 >conftest.err
10677     rm -f conftest.er1
10678     cat conftest.err >&5
10679     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680     (exit $ac_status); } >/dev/null; then
10681     if test -s conftest.err; then
10682 pcg 1.13 ac_cpp_err=$ac_cxx_preproc_warn_flag
10683     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10684 pcg 1.11 else
10685     ac_cpp_err=
10686     fi
10687 pcg 1.1 else
10688 pcg 1.11 ac_cpp_err=yes
10689 pcg 1.1 fi
10690 pcg 1.11 if test -z "$ac_cpp_err"; then
10691     ac_header_preproc=yes
10692     else
10693     echo "$as_me: failed program was:" >&5
10694     sed 's/^/| /' conftest.$ac_ext >&5
10695    
10696     ac_header_preproc=no
10697 pcg 1.1 fi
10698 pcg 1.11 rm -f conftest.err conftest.$ac_ext
10699     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10700     echo "${ECHO_T}$ac_header_preproc" >&6
10701    
10702     # So? What about this header?
10703 pcg 1.13 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10704 pcg 1.11 yes:no: )
10705     { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5
10706     echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10707     { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5
10708     echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;}
10709     ac_header_preproc=yes
10710     ;;
10711     no:yes:* )
10712     { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5
10713     echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;}
10714     { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5
10715     echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;}
10716     { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5
10717     echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;}
10718     { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5
10719     echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;}
10720     { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5
10721     echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;}
10722     { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5
10723     echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;}
10724     (
10725     cat <<\_ASBOX
10726     ## ------------------------------------------ ##
10727     ## Report this to the AC_PACKAGE_NAME lists. ##
10728     ## ------------------------------------------ ##
10729     _ASBOX
10730     ) |
10731     sed "s/^/$as_me: WARNING: /" >&2
10732     ;;
10733     esac
10734     echo "$as_me:$LINENO: checking for utmpx.h" >&5
10735     echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
10736     if test "${ac_cv_header_utmpx_h+set}" = set; then
10737     echo $ECHO_N "(cached) $ECHO_C" >&6
10738     else
10739     ac_cv_header_utmpx_h=$ac_header_preproc
10740     fi
10741     echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
10742     echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
10743    
10744     fi
10745     if test $ac_cv_header_utmpx_h = yes; then
10746     echo "$as_me:$LINENO: checking for struct utmpx" >&5
10747     echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6
10748     if test "${rxvt_cv_struct_utmpx+set}" = set; then
10749     echo $ECHO_N "(cached) $ECHO_C" >&6
10750     else
10751     cat >conftest.$ac_ext <<_ACEOF
10752     /* confdefs.h. */
10753     _ACEOF
10754     cat confdefs.h >>conftest.$ac_ext
10755     cat >>conftest.$ac_ext <<_ACEOF
10756     /* end confdefs.h. */
10757 pcg 1.1 #include <sys/types.h>
10758     #include <utmpx.h>
10759 pcg 1.11 int
10760     main ()
10761     {
10762 pcg 1.1 struct utmpx ut;
10763 pcg 1.11 ;
10764     return 0;
10765     }
10766     _ACEOF
10767     rm -f conftest.$ac_objext
10768     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10769     (eval $ac_compile) 2>conftest.er1
10770     ac_status=$?
10771     grep -v '^ *+' conftest.er1 >conftest.err
10772     rm -f conftest.er1
10773     cat conftest.err >&5
10774     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775     (exit $ac_status); } &&
10776 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10777 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10778     (eval $ac_try) 2>&5
10779     ac_status=$?
10780     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781     (exit $ac_status); }; } &&
10782     { ac_try='test -s conftest.$ac_objext'
10783     { (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); }; }; then
10788 pcg 1.1 rxvt_cv_struct_utmpx=yes
10789     else
10790 pcg 1.11 echo "$as_me: failed program was:" >&5
10791     sed 's/^/| /' conftest.$ac_ext >&5
10792    
10793     rxvt_cv_struct_utmpx=no
10794 pcg 1.1 fi
10795 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10796 pcg 1.1 fi
10797 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx" >&5
10798     echo "${ECHO_T}$rxvt_cv_struct_utmpx" >&6
10799     if test x$rxvt_cv_struct_utmpx = xyes; then
10800 pcg 1.1
10801 pcg 1.11 cat >>confdefs.h <<\_ACEOF
10802 pcg 1.1 #define HAVE_STRUCT_UTMPX 1
10803 pcg 1.11 _ACEOF
10804 pcg 1.1
10805     fi
10806    
10807    
10808 pcg 1.11 echo "$as_me:$LINENO: checking for host in utmpx struct" >&5
10809     echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6
10810     if test "${rxvt_cv_struct_utmpx_host+set}" = set; then
10811     echo $ECHO_N "(cached) $ECHO_C" >&6
10812 pcg 1.1 else
10813 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
10814     /* confdefs.h. */
10815     _ACEOF
10816     cat confdefs.h >>conftest.$ac_ext
10817     cat >>conftest.$ac_ext <<_ACEOF
10818     /* end confdefs.h. */
10819 pcg 1.1 #include <sys/types.h>
10820     #include <utmpx.h>
10821 pcg 1.11 int
10822     main ()
10823     {
10824 pcg 1.1 struct utmpx utx; utx.ut_host;
10825 pcg 1.11 ;
10826     return 0;
10827     }
10828     _ACEOF
10829     rm -f conftest.$ac_objext
10830     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10831     (eval $ac_compile) 2>conftest.er1
10832     ac_status=$?
10833     grep -v '^ *+' conftest.er1 >conftest.err
10834     rm -f conftest.er1
10835     cat conftest.err >&5
10836     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837     (exit $ac_status); } &&
10838 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10839 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10840     (eval $ac_try) 2>&5
10841     ac_status=$?
10842     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843     (exit $ac_status); }; } &&
10844     { ac_try='test -s conftest.$ac_objext'
10845     { (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); }; }; then
10850 pcg 1.1 rxvt_cv_struct_utmpx_host=yes
10851     else
10852 pcg 1.11 echo "$as_me: failed program was:" >&5
10853     sed 's/^/| /' conftest.$ac_ext >&5
10854    
10855     rxvt_cv_struct_utmpx_host=no
10856 pcg 1.1 fi
10857 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10858 pcg 1.1 fi
10859 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_host" >&5
10860     echo "${ECHO_T}$rxvt_cv_struct_utmpx_host" >&6
10861     if test x$rxvt_cv_struct_utmpx_host = xyes; then
10862 pcg 1.1
10863 pcg 1.11 cat >>confdefs.h <<\_ACEOF
10864 pcg 1.1 #define HAVE_UTMPX_HOST 1
10865 pcg 1.11 _ACEOF
10866 pcg 1.1
10867     fi
10868    
10869 root 1.52 echo "$as_me:$LINENO: checking for session in utmpx struct" >&5
10870     echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6
10871     if test "${rxvt_cv_struct_utmpx_session+set}" = set; then
10872     echo $ECHO_N "(cached) $ECHO_C" >&6
10873     else
10874     cat >conftest.$ac_ext <<_ACEOF
10875     /* confdefs.h. */
10876     _ACEOF
10877     cat confdefs.h >>conftest.$ac_ext
10878     cat >>conftest.$ac_ext <<_ACEOF
10879     /* end confdefs.h. */
10880     #include <sys/types.h>
10881     #include <utmpx.h>
10882     int
10883     main ()
10884     {
10885     struct utmpx utx; utx.ut_session;
10886     ;
10887     return 0;
10888     }
10889     _ACEOF
10890     rm -f conftest.$ac_objext
10891     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10892     (eval $ac_compile) 2>conftest.er1
10893     ac_status=$?
10894     grep -v '^ *+' conftest.er1 >conftest.err
10895     rm -f conftest.er1
10896     cat conftest.err >&5
10897     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898     (exit $ac_status); } &&
10899     { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10900     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10901     (eval $ac_try) 2>&5
10902     ac_status=$?
10903     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904     (exit $ac_status); }; } &&
10905     { ac_try='test -s conftest.$ac_objext'
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); }; }; then
10911     rxvt_cv_struct_utmpx_session=yes
10912     else
10913     echo "$as_me: failed program was:" >&5
10914     sed 's/^/| /' conftest.$ac_ext >&5
10915    
10916     rxvt_cv_struct_utmpx_session=no
10917     fi
10918     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10919 pcg 1.1 fi
10920 root 1.52 echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_session" >&5
10921     echo "${ECHO_T}$rxvt_cv_struct_utmpx_session" >&6
10922     if test x$rxvt_cv_struct_utmpx_session = xyes; then
10923 pcg 1.1
10924 root 1.52 cat >>confdefs.h <<\_ACEOF
10925     #define HAVE_UTMPX_SESSION 1
10926     _ACEOF
10927    
10928     fi
10929    
10930     fi
10931 pcg 1.11
10932    
10933     echo "$as_me:$LINENO: checking for struct lastlog" >&5
10934     echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6
10935     if test "${rxvt_cv_struct_lastlog+set}" = set; then
10936     echo $ECHO_N "(cached) $ECHO_C" >&6
10937 pcg 1.1 else
10938 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
10939     /* confdefs.h. */
10940     _ACEOF
10941     cat confdefs.h >>conftest.$ac_ext
10942     cat >>conftest.$ac_ext <<_ACEOF
10943     /* end confdefs.h. */
10944 pcg 1.1 #include <sys/types.h>
10945     #include <utmp.h>
10946     #ifdef HAVE_LASTLOG_H
10947     #include <lastlog.h>
10948     #endif
10949    
10950 pcg 1.11 int
10951     main ()
10952     {
10953 pcg 1.1 struct lastlog ll;
10954 pcg 1.11 ;
10955     return 0;
10956     }
10957     _ACEOF
10958     rm -f conftest.$ac_objext
10959     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10960     (eval $ac_compile) 2>conftest.er1
10961     ac_status=$?
10962     grep -v '^ *+' conftest.er1 >conftest.err
10963     rm -f conftest.er1
10964     cat conftest.err >&5
10965     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966     (exit $ac_status); } &&
10967 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10968 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10969     (eval $ac_try) 2>&5
10970     ac_status=$?
10971     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972     (exit $ac_status); }; } &&
10973     { ac_try='test -s conftest.$ac_objext'
10974     { (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); }; }; then
10979 pcg 1.1 rxvt_cv_struct_lastlog=yes
10980     else
10981 pcg 1.11 echo "$as_me: failed program was:" >&5
10982     sed 's/^/| /' conftest.$ac_ext >&5
10983    
10984     rxvt_cv_struct_lastlog=no
10985 pcg 1.1 fi
10986 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10987 pcg 1.1 fi
10988 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlog" >&5
10989     echo "${ECHO_T}$rxvt_cv_struct_lastlog" >&6
10990     if test x$rxvt_cv_struct_lastlog = xyes; then
10991 pcg 1.1
10992 pcg 1.11 cat >>confdefs.h <<\_ACEOF
10993 pcg 1.1 #define HAVE_STRUCT_LASTLOG 1
10994 pcg 1.11 _ACEOF
10995 pcg 1.1
10996     fi
10997    
10998 pcg 1.11 echo "$as_me:$LINENO: checking for struct lastlogx" >&5
10999     echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6
11000     if test "${rxvt_cv_struct_lastlogx+set}" = set; then
11001     echo $ECHO_N "(cached) $ECHO_C" >&6
11002 pcg 1.1 else
11003 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
11004     /* confdefs.h. */
11005     _ACEOF
11006     cat confdefs.h >>conftest.$ac_ext
11007     cat >>conftest.$ac_ext <<_ACEOF
11008     /* end confdefs.h. */
11009 pcg 1.1 #include <sys/types.h>
11010     #include <utmpx.h>
11011     #ifdef HAVE_LASTLOG_H
11012     #include <lastlog.h>
11013     #endif
11014    
11015 pcg 1.11 int
11016     main ()
11017     {
11018 pcg 1.1 struct lastlogx ll;
11019 pcg 1.11 ;
11020     return 0;
11021     }
11022     _ACEOF
11023     rm -f conftest.$ac_objext
11024     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11025     (eval $ac_compile) 2>conftest.er1
11026     ac_status=$?
11027     grep -v '^ *+' conftest.er1 >conftest.err
11028     rm -f conftest.er1
11029     cat conftest.err >&5
11030     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031     (exit $ac_status); } &&
11032 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11033 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11034     (eval $ac_try) 2>&5
11035     ac_status=$?
11036     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037     (exit $ac_status); }; } &&
11038     { ac_try='test -s conftest.$ac_objext'
11039     { (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); }; }; then
11044 pcg 1.1 rxvt_cv_struct_lastlogx=yes
11045     else
11046 pcg 1.11 echo "$as_me: failed program was:" >&5
11047     sed 's/^/| /' conftest.$ac_ext >&5
11048    
11049     rxvt_cv_struct_lastlogx=no
11050 pcg 1.1 fi
11051 pcg 1.11 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11052 pcg 1.1 fi
11053 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlogx" >&5
11054     echo "${ECHO_T}$rxvt_cv_struct_lastlogx" >&6
11055     if test x$rxvt_cv_struct_lastlogx = xyes; then
11056 pcg 1.1
11057 pcg 1.11 cat >>confdefs.h <<\_ACEOF
11058 pcg 1.1 #define HAVE_STRUCT_LASTLOGX 1
11059 pcg 1.11 _ACEOF
11060 pcg 1.1
11061     fi
11062    
11063    
11064 pcg 1.11 echo "$as_me:$LINENO: checking where utmp is located" >&5
11065     echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6
11066     if test "${rxvt_cv_path_utmp+set}" = set; then
11067     echo $ECHO_N "(cached) $ECHO_C" >&6
11068 pcg 1.1 else
11069     if test "$cross_compiling" = yes; then
11070 pcg 1.11 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&5
11071     echo "$as_me: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&2;}
11072 pcg 1.1 else
11073 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
11074     /* confdefs.h. */
11075     _ACEOF
11076     cat confdefs.h >>conftest.$ac_ext
11077     cat >>conftest.$ac_ext <<_ACEOF
11078     /* end confdefs.h. */
11079 pcg 1.1 #include <stdio.h>
11080     #include <sys/types.h>
11081     #include <utmp.h>
11082     #include <errno.h>
11083     main()
11084     {
11085     char **u, *utmplist[] = {
11086     "/var/run/utmp", "/var/adm/utmp", "/etc/utmp", "/usr/etc/utmp", "/usr/adm/utmp", NULL };
11087     FILE *a, *f=fopen("conftestval", "w");
11088     if (!f) exit(1);
11089     #ifdef UTMP_FILE
11090     fprintf(f, "%s\n", UTMP_FILE);
11091     exit(0);
11092     #endif
11093     #ifdef _PATH_UTMP
11094     fprintf(f, "%s\n", _PATH_UTMP);
11095     exit(0);
11096     #endif
11097     for (u = utmplist; *u; u++) {
11098     if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
11099     fprintf(f, "%s\n", *u);
11100     exit(0);
11101     }
11102     }
11103     exit(0);
11104     }
11105 pcg 1.11 _ACEOF
11106     rm -f conftest$ac_exeext
11107     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11108     (eval $ac_link) 2>&5
11109     ac_status=$?
11110     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11112     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11113     (eval $ac_try) 2>&5
11114     ac_status=$?
11115     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116     (exit $ac_status); }; }; then
11117 pcg 1.1 rxvt_cv_path_utmp=`cat conftestval`
11118     else
11119 pcg 1.11 echo "$as_me: program exited with status $ac_status" >&5
11120     echo "$as_me: failed program was:" >&5
11121     sed 's/^/| /' conftest.$ac_ext >&5
11122    
11123     ( exit $ac_status )
11124     rxvt_cv_path_utmp=
11125 pcg 1.1 fi
11126 pcg 1.11 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11127 pcg 1.1 fi
11128     fi
11129 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_path_utmp" >&5
11130     echo "${ECHO_T}$rxvt_cv_path_utmp" >&6
11131     if test x$rxvt_cv_path_utmp != x; then
11132 pcg 1.1
11133 pcg 1.11 cat >>confdefs.h <<_ACEOF
11134 pcg 1.1 #define RXVT_UTMP_FILE "$rxvt_cv_path_utmp"
11135 pcg 1.11 _ACEOF
11136 pcg 1.1
11137     fi
11138    
11139    
11140 pcg 1.11 echo "$as_me:$LINENO: checking where utmpx is located" >&5
11141     echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6
11142     if test "${rxvt_cv_path_utmpx+set}" = set; then
11143     echo $ECHO_N "(cached) $ECHO_C" >&6
11144 pcg 1.1 else
11145     if test "$cross_compiling" = yes; then
11146 pcg 1.11 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&5
11147     echo "$as_me: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&2;}
11148 pcg 1.1 else
11149 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
11150     /* confdefs.h. */
11151     _ACEOF
11152     cat confdefs.h >>conftest.$ac_ext
11153     cat >>conftest.$ac_ext <<_ACEOF
11154     /* end confdefs.h. */
11155 pcg 1.1 #include <stdio.h>
11156     #include <sys/types.h>
11157     #include <utmpx.h>
11158     #include <errno.h>
11159     #include <sys/stat.h>
11160     #ifdef HAVE_STRING_H
11161     #include <string.h>
11162     #endif
11163     main()
11164     {
11165     char **u, *p, *utmplist[] = {
11166     #ifdef UTMPX_FILE
11167     UTMPX_FILE,
11168     #endif
11169     #ifdef _PATH_UTMPX
11170     _PATH_UTMPX,
11171     #endif
11172     "/var/adm/utmpx", "/etc/utmpx", NULL };
11173     FILE *a, *f=fopen("conftestval", "w");
11174     struct stat statu, statux;
11175     if (!f) exit(1);
11176     for (u = utmplist; *u; u++) {
11177     if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
11178     if (stat(*u, &statux) < 0)
11179     continue;
11180     p = strdup(*u);
11181     p[strlen(p) - 1] = '\0';
11182     if (stat(p, &statu) >= 0
11183     && (statu.st_mtime - statux.st_mtime > 86400))
11184     continue;
11185     fprintf(f, "%s\n", *u);
11186     exit(0);
11187     }
11188     }
11189     exit(0);
11190     }
11191 pcg 1.11 _ACEOF
11192     rm -f conftest$ac_exeext
11193     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11194     (eval $ac_link) 2>&5
11195     ac_status=$?
11196     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11198     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11199     (eval $ac_try) 2>&5
11200     ac_status=$?
11201     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202     (exit $ac_status); }; }; then
11203 pcg 1.1 rxvt_cv_path_utmpx=`cat conftestval`
11204     else
11205 pcg 1.11 echo "$as_me: program exited with status $ac_status" >&5
11206     echo "$as_me: failed program was:" >&5
11207     sed 's/^/| /' conftest.$ac_ext >&5
11208    
11209     ( exit $ac_status )
11210     rxvt_cv_path_utmpx=
11211 pcg 1.1 fi
11212 pcg 1.11 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11213 pcg 1.1 fi
11214     fi
11215 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_path_utmpx" >&5
11216     echo "${ECHO_T}$rxvt_cv_path_utmpx" >&6
11217     if test x$rxvt_cv_path_utmpx != x; then
11218 pcg 1.1
11219 pcg 1.11 cat >>confdefs.h <<_ACEOF
11220 pcg 1.1 #define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx"
11221 pcg 1.11 _ACEOF
11222 pcg 1.1
11223     fi
11224    
11225    
11226 pcg 1.11 echo "$as_me:$LINENO: checking where wtmp is located" >&5
11227     echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6
11228     if test "${rxvt_cv_path_wtmp+set}" = set; then
11229     echo $ECHO_N "(cached) $ECHO_C" >&6
11230 pcg 1.1 else
11231     if test "$cross_compiling" = yes; then
11232 pcg 1.11 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&5
11233     echo "$as_me: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&2;}
11234 pcg 1.1 else
11235 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
11236     /* confdefs.h. */
11237     _ACEOF
11238     cat confdefs.h >>conftest.$ac_ext
11239     cat >>conftest.$ac_ext <<_ACEOF
11240     /* end confdefs.h. */
11241 pcg 1.1 #include <stdio.h>
11242     #include <sys/types.h>
11243     #ifdef HAVE_UTMP_H
11244     #include <utmp.h>
11245     #endif
11246     #include <errno.h>
11247     main()
11248     {
11249     char **w, *wtmplist[] = {
11250 pcg 1.11 "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL };
11251 pcg 1.1 FILE *a, *f=fopen("conftestval", "w");
11252     if (!f) exit(1);
11253     #ifdef WTMP_FILE
11254     fprintf(f, "%s\n", WTMP_FILE);
11255     exit(0);
11256     #endif
11257     #ifdef _PATH_WTMP
11258     fprintf(f, "%s\n", _PATH_WTMP);
11259     exit(0);
11260     #endif
11261     for (w = wtmplist; *w; w++) {
11262     if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11263     fprintf(f, "%s\n", *w);
11264     exit(0);
11265     }
11266     }
11267     exit(0);
11268     }
11269 pcg 1.11 _ACEOF
11270     rm -f conftest$ac_exeext
11271     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11272     (eval $ac_link) 2>&5
11273     ac_status=$?
11274     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11276     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11277     (eval $ac_try) 2>&5
11278     ac_status=$?
11279     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280     (exit $ac_status); }; }; then
11281 pcg 1.1 rxvt_cv_path_wtmp=`cat conftestval`
11282     else
11283 pcg 1.11 echo "$as_me: program exited with status $ac_status" >&5
11284     echo "$as_me: failed program was:" >&5
11285     sed 's/^/| /' conftest.$ac_ext >&5
11286    
11287     ( exit $ac_status )
11288     rxvt_cv_path_wtmp=
11289 pcg 1.1 fi
11290 pcg 1.11 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11291 pcg 1.1 fi
11292     fi
11293 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmp" >&5
11294     echo "${ECHO_T}$rxvt_cv_path_wtmp" >&6
11295     if test x$rxvt_cv_path_wtmp != x; then
11296 pcg 1.1
11297 pcg 1.11 cat >>confdefs.h <<_ACEOF
11298 pcg 1.1 #define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp"
11299 pcg 1.11 _ACEOF
11300 pcg 1.1
11301     fi
11302    
11303 pcg 1.11 echo "$as_me:$LINENO: checking where wtmpx is located" >&5
11304     echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6
11305     if test "${rxvt_cv_path_wtmpx+set}" = set; then
11306     echo $ECHO_N "(cached) $ECHO_C" >&6
11307 pcg 1.1 else
11308     if test "$cross_compiling" = yes; then
11309 pcg 1.11 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&5
11310     echo "$as_me: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&2;}
11311 pcg 1.1 else
11312 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
11313     /* confdefs.h. */
11314     _ACEOF
11315     cat confdefs.h >>conftest.$ac_ext
11316     cat >>conftest.$ac_ext <<_ACEOF
11317     /* end confdefs.h. */
11318 pcg 1.1 #include <stdio.h>
11319     #ifdef HAVE_UTMPX_H
11320     #include <utmpx.h>
11321     #endif
11322     #include <errno.h>
11323     main()
11324     {
11325     char **w, *wtmplist[] = {
11326 pcg 1.11 "/var/log/wtmpx", "/var/adm/wtmpx", NULL };
11327 pcg 1.1 FILE *a, *f=fopen("conftestval", "w");
11328     if (!f) exit(1);
11329     #ifdef WTMPX_FILE
11330     fprintf(f, "%s\n", WTMPX_FILE);
11331     exit(0);
11332     #endif
11333     #ifdef _PATH_WTMPX
11334     fprintf(f, "%s\n", _PATH_WTMPX);
11335     exit(0);
11336     #endif
11337     for (w = wtmplist; *w; w++) {
11338     if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11339     fprintf(f, "%s\n", *w);
11340     exit(0);
11341     }
11342     }
11343     exit(0);
11344     }
11345 pcg 1.11 _ACEOF
11346     rm -f conftest$ac_exeext
11347     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11348     (eval $ac_link) 2>&5
11349     ac_status=$?
11350     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11352     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11353     (eval $ac_try) 2>&5
11354     ac_status=$?
11355     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356     (exit $ac_status); }; }; then
11357 pcg 1.1 rxvt_cv_path_wtmpx=`cat conftestval`
11358     else
11359 pcg 1.11 echo "$as_me: program exited with status $ac_status" >&5
11360     echo "$as_me: failed program was:" >&5
11361     sed 's/^/| /' conftest.$ac_ext >&5
11362    
11363     ( exit $ac_status )
11364     rxvt_cv_path_wtmpx=
11365 pcg 1.1 fi
11366 pcg 1.11 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11367 pcg 1.1 fi
11368     fi
11369 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmpx" >&5
11370     echo "${ECHO_T}$rxvt_cv_path_wtmpx" >&6
11371     if test x$rxvt_cv_path_wtmpx != x; then
11372 pcg 1.1
11373 pcg 1.11 cat >>confdefs.h <<_ACEOF
11374 pcg 1.1 #define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx"
11375 pcg 1.11 _ACEOF
11376 pcg 1.1
11377     fi
11378    
11379 pcg 1.11 echo "$as_me:$LINENO: checking where lastlog is located" >&5
11380     echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6
11381     if test "${rxvt_cv_path_lastlog+set}" = set; then
11382     echo $ECHO_N "(cached) $ECHO_C" >&6
11383 pcg 1.1 else
11384     if test "$cross_compiling" = yes; then
11385 pcg 1.11 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&5
11386     echo "$as_me: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&2;}
11387 pcg 1.1 else
11388 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
11389     /* confdefs.h. */
11390     _ACEOF
11391     cat confdefs.h >>conftest.$ac_ext
11392     cat >>conftest.$ac_ext <<_ACEOF
11393     /* end confdefs.h. */
11394 pcg 1.1 #include <stdio.h>
11395     #include <sys/types.h>
11396     #ifdef HAVE_UTMPX_H
11397     #include <utmpx.h>
11398     #elif defined(HAVE_UTMP_H)
11399     #include <utmp.h>
11400     #endif
11401     #ifdef HAVE_LASTLOG_H
11402     #include <lastlog.h>
11403     #endif
11404     #include <errno.h>
11405     main()
11406     {
11407     char **w, *lastloglist[] = { "/var/log/lastlog", NULL };
11408     FILE *a, *f=fopen("conftestval", "w");
11409     if (!f) exit(1);
11410     #ifdef LASTLOG_FILE
11411     fprintf(f, "%s\n", LASTLOG_FILE);
11412     exit(0);
11413     #endif
11414     #ifdef _PATH_LASTLOG
11415     fprintf(f, "%s\n", _PATH_LASTLOG);
11416     exit(0);
11417     #endif
11418     for (w = lastloglist; *w; w++) {
11419     if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11420     fprintf(f, "%s\n", *w);
11421     exit(0);
11422     }
11423     }
11424     exit(0);
11425     }
11426 pcg 1.11 _ACEOF
11427     rm -f conftest$ac_exeext
11428     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11429     (eval $ac_link) 2>&5
11430     ac_status=$?
11431     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11433     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11434     (eval $ac_try) 2>&5
11435     ac_status=$?
11436     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437     (exit $ac_status); }; }; then
11438 pcg 1.1 rxvt_cv_path_lastlog=`cat conftestval`
11439     else
11440 pcg 1.11 echo "$as_me: program exited with status $ac_status" >&5
11441     echo "$as_me: failed program was:" >&5
11442     sed 's/^/| /' conftest.$ac_ext >&5
11443    
11444     ( exit $ac_status )
11445     rxvt_cv_path_lastlog=
11446 pcg 1.1 fi
11447 pcg 1.11 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11448 pcg 1.1 fi
11449     fi
11450 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlog" >&5
11451     echo "${ECHO_T}$rxvt_cv_path_lastlog" >&6
11452     if test x$rxvt_cv_path_lastlog != x; then
11453 pcg 1.1
11454 pcg 1.11 cat >>confdefs.h <<_ACEOF
11455 pcg 1.1 #define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog"
11456 pcg 1.11 _ACEOF
11457 pcg 1.1
11458     if test -d "$rxvt_cv_path_lastlog"; then
11459 pcg 1.11
11460     cat >>confdefs.h <<\_ACEOF
11461 pcg 1.1 #define LASTLOG_IS_DIR 1
11462 pcg 1.11 _ACEOF
11463 pcg 1.1
11464     fi
11465     fi
11466    
11467 pcg 1.11 echo "$as_me:$LINENO: checking where lastlogx is located" >&5
11468     echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6
11469     if test "${rxvt_cv_path_lastlogx+set}" = set; then
11470     echo $ECHO_N "(cached) $ECHO_C" >&6
11471 pcg 1.1 else
11472     if test "$cross_compiling" = yes; then
11473 pcg 1.11 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&5
11474     echo "$as_me: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&2;}
11475 pcg 1.1 else
11476 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
11477     /* confdefs.h. */
11478     _ACEOF
11479     cat confdefs.h >>conftest.$ac_ext
11480     cat >>conftest.$ac_ext <<_ACEOF
11481     /* end confdefs.h. */
11482 pcg 1.1 #include <stdio.h>
11483     #ifdef HAVE_UTMPX_H
11484     #include <utmpx.h>
11485     #endif
11486     #include <errno.h>
11487     main()
11488     {
11489     char **w, *wtmplist[] = { "/var/log/lastlogx", "/var/adm/lastlogx", NULL };
11490     FILE *a, *f=fopen("conftestval", "w");
11491     if (!f) exit(1);
11492     #ifdef LASTLOGX_FILE
11493     fprintf(f, "%s\n", LASTLOGX_FILE);
11494     exit(0);
11495     #endif
11496     #ifdef _PATH_LASTLOGX
11497     fprintf(f, "%s\n", _PATH_LASTLOGX);
11498     exit(0);
11499     #endif
11500     for (w = wtmplist; *w; w++) {
11501     if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11502     fprintf(f, "%s\n", *w);
11503     exit(0);
11504     }
11505     }
11506     exit(0);
11507     }
11508 pcg 1.11 _ACEOF
11509     rm -f conftest$ac_exeext
11510     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11511     (eval $ac_link) 2>&5
11512     ac_status=$?
11513     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11515     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11516     (eval $ac_try) 2>&5
11517     ac_status=$?
11518     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519     (exit $ac_status); }; }; then
11520 pcg 1.1 rxvt_cv_path_lastlogx=`cat conftestval`
11521     else
11522 pcg 1.11 echo "$as_me: program exited with status $ac_status" >&5
11523     echo "$as_me: failed program was:" >&5
11524     sed 's/^/| /' conftest.$ac_ext >&5
11525    
11526     ( exit $ac_status )
11527     rxvt_cv_path_lastlogx=
11528 pcg 1.1 fi
11529 pcg 1.11 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11530 pcg 1.1 fi
11531     fi
11532 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlogx" >&5
11533     echo "${ECHO_T}$rxvt_cv_path_lastlogx" >&6
11534     if test x$rxvt_cv_path_lastlogx != x; then
11535 pcg 1.1
11536 pcg 1.11 cat >>confdefs.h <<_ACEOF
11537 pcg 1.1 #define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx"
11538 pcg 1.11 _ACEOF
11539 pcg 1.1
11540     fi
11541    
11542    
11543 pcg 1.11 echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
11544     echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6
11545     if test "${rxvt_cv_path_ttytab+set}" = set; then
11546     echo $ECHO_N "(cached) $ECHO_C" >&6
11547 pcg 1.1 else
11548     for ttys_file in /etc/ttys /etc/ttytab;
11549     do
11550 pcg 1.11 if test -f "$ttys_file" ; then
11551 pcg 1.1 rxvt_cv_path_ttytab=$ttys_file
11552     break
11553     fi
11554     done
11555    
11556     fi
11557 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5
11558     echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6
11559     if test x$rxvt_cv_path_ttytab != x; then
11560 pcg 1.1
11561 pcg 1.11 cat >>confdefs.h <<_ACEOF
11562 pcg 1.1 #define TTYTAB_FILENAME "$rxvt_cv_path_ttytab"
11563 pcg 1.11 _ACEOF
11564 pcg 1.1
11565     fi
11566    
11567    
11568     ac_save_LIBS=$LIBS
11569     ac_save_CFLAGS=$CFLAGS
11570     CFLAGS="$CFLAGS $X_CFLAGS"
11571     LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
11572     if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
11573     LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
11574     fi
11575 pcg 1.11 echo "$as_me:$LINENO: checking for working Xlocale" >&5
11576     echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6
11577     if test "${rxvt_cv_func_xlocale+set}" = set; then
11578     echo $ECHO_N "(cached) $ECHO_C" >&6
11579 pcg 1.1 else
11580     if test "$cross_compiling" = yes; then
11581 pcg 1.11 { echo "$as_me:$LINENO: WARNING: Define NO_XLOCALE in config.h manually" >&5
11582     echo "$as_me: WARNING: Define NO_XLOCALE in config.h manually" >&2;}
11583 pcg 1.1 else
11584 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
11585     /* confdefs.h. */
11586     _ACEOF
11587     cat confdefs.h >>conftest.$ac_ext
11588     cat >>conftest.$ac_ext <<_ACEOF
11589     /* end confdefs.h. */
11590 pcg 1.1 #include <X11/Xlib.h>
11591     main() {
11592     char *p;
11593     if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
11594     exit (XSupportsLocale() ? 0 : 1);
11595     else
11596     exit (1);}
11597 pcg 1.11 _ACEOF
11598     rm -f conftest$ac_exeext
11599     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11600     (eval $ac_link) 2>&5
11601     ac_status=$?
11602     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11604     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11605     (eval $ac_try) 2>&5
11606     ac_status=$?
11607     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608     (exit $ac_status); }; }; then
11609 pcg 1.1 rxvt_cv_func_xlocale=yes
11610     else
11611 pcg 1.11 echo "$as_me: program exited with status $ac_status" >&5
11612     echo "$as_me: failed program was:" >&5
11613     sed 's/^/| /' conftest.$ac_ext >&5
11614    
11615     ( exit $ac_status )
11616     rxvt_cv_func_xlocale=no
11617 pcg 1.1 fi
11618 pcg 1.11 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11619 pcg 1.1 fi
11620     fi
11621 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5
11622     echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6
11623     if test x$rxvt_cv_func_xlocale = xyes; then
11624 pcg 1.1
11625 pcg 1.11 cat >>confdefs.h <<\_ACEOF
11626 pcg 1.1 #define HAVE_XLOCALE 1
11627 pcg 1.11 _ACEOF
11628 pcg 1.1
11629     fi
11630    
11631 pcg 1.11 echo "$as_me:$LINENO: checking for working X setlocale" >&5
11632     echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6
11633     if test "${rxvt_cv_func_xsetlocale+set}" = set; then
11634     echo $ECHO_N "(cached) $ECHO_C" >&6
11635 pcg 1.1 else
11636 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
11637     /* confdefs.h. */
11638     _ACEOF
11639     cat confdefs.h >>conftest.$ac_ext
11640     cat >>conftest.$ac_ext <<_ACEOF
11641     /* end confdefs.h. */
11642 pcg 1.1 #define X_LOCALE 1
11643     #include <X11/Xlocale.h>
11644 pcg 1.11 int
11645     main ()
11646     {
11647 pcg 1.1 setlocale(LC_CTYPE, "");
11648 pcg 1.11 ;
11649     return 0;
11650     }
11651     _ACEOF
11652     rm -f conftest.$ac_objext conftest$ac_exeext
11653     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11654     (eval $ac_link) 2>conftest.er1
11655     ac_status=$?
11656     grep -v '^ *+' conftest.er1 >conftest.err
11657     rm -f conftest.er1
11658     cat conftest.err >&5
11659     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660     (exit $ac_status); } &&
11661 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11662 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11663     (eval $ac_try) 2>&5
11664     ac_status=$?
11665     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666     (exit $ac_status); }; } &&
11667     { ac_try='test -s conftest$ac_exeext'
11668     { (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); }; }; then
11673 pcg 1.1 rxvt_cv_func_xsetlocale=yes
11674     else
11675 pcg 1.11 echo "$as_me: failed program was:" >&5
11676     sed 's/^/| /' conftest.$ac_ext >&5
11677    
11678     rxvt_cv_func_xsetlocale=no
11679 pcg 1.1 fi
11680 pcg 1.11 rm -f conftest.err conftest.$ac_objext \
11681     conftest$ac_exeext conftest.$ac_ext
11682 pcg 1.1 fi
11683 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_func_xsetlocale" >&5
11684     echo "${ECHO_T}$rxvt_cv_func_xsetlocale" >&6
11685     if test x$rxvt_cv_func_xsetlocale = xyes; then
11686 pcg 1.1
11687 pcg 1.11 cat >>confdefs.h <<\_ACEOF
11688 pcg 1.1 #define HAVE_XSETLOCALE 1
11689 pcg 1.11 _ACEOF
11690 pcg 1.1
11691     fi
11692     LIBS=$ac_save_LIBS
11693     CFLAGS=$ac_save_CFLAGS
11694    
11695 pcg 1.11 echo "$as_me:$LINENO: checking for working plain setlocale" >&5
11696     echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6
11697     if test "${rxvt_cv_func_setlocale+set}" = set; then
11698     echo $ECHO_N "(cached) $ECHO_C" >&6
11699     else
11700     cat >conftest.$ac_ext <<_ACEOF
11701     /* confdefs.h. */
11702     _ACEOF
11703     cat confdefs.h >>conftest.$ac_ext
11704     cat >>conftest.$ac_ext <<_ACEOF
11705     /* end confdefs.h. */
11706 pcg 1.18 #include <clocale>
11707 pcg 1.11 int
11708     main ()
11709     {
11710 pcg 1.1 setlocale(LC_CTYPE, "");
11711 pcg 1.11 ;
11712     return 0;
11713     }
11714     _ACEOF
11715     rm -f conftest.$ac_objext conftest$ac_exeext
11716     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11717     (eval $ac_link) 2>conftest.er1
11718     ac_status=$?
11719     grep -v '^ *+' conftest.er1 >conftest.err
11720     rm -f conftest.er1
11721     cat conftest.err >&5
11722     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723     (exit $ac_status); } &&
11724 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11725 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11726     (eval $ac_try) 2>&5
11727     ac_status=$?
11728     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729     (exit $ac_status); }; } &&
11730     { ac_try='test -s conftest$ac_exeext'
11731     { (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); }; }; then
11736 pcg 1.1 rxvt_cv_func_setlocale=yes
11737     else
11738 pcg 1.11 echo "$as_me: failed program was:" >&5
11739     sed 's/^/| /' conftest.$ac_ext >&5
11740    
11741     rxvt_cv_func_setlocale=no
11742 pcg 1.1 fi
11743 pcg 1.11 rm -f conftest.err conftest.$ac_objext \
11744     conftest$ac_exeext conftest.$ac_ext
11745 pcg 1.1 fi
11746 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_func_setlocale" >&5
11747     echo "${ECHO_T}$rxvt_cv_func_setlocale" >&6
11748     if test x$rxvt_cv_func_setlocale = xyes; then
11749 pcg 1.1
11750 pcg 1.11 cat >>confdefs.h <<\_ACEOF
11751 pcg 1.1 #define HAVE_SETLOCALE 1
11752 pcg 1.11 _ACEOF
11753 pcg 1.1
11754     fi
11755    
11756 pcg 1.11 echo "$as_me:$LINENO: checking for working nl_langinfo" >&5
11757     echo $ECHO_N "checking for working nl_langinfo... $ECHO_C" >&6
11758     if test "${rxvt_cv_func_nl_langinfo+set}" = set; then
11759     echo $ECHO_N "(cached) $ECHO_C" >&6
11760 pcg 1.1 else
11761 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
11762     /* confdefs.h. */
11763     _ACEOF
11764     cat confdefs.h >>conftest.$ac_ext
11765     cat >>conftest.$ac_ext <<_ACEOF
11766     /* end confdefs.h. */
11767 pcg 1.1 #include <langinfo.h>
11768 pcg 1.11 int
11769     main ()
11770     {
11771 pcg 1.1 nl_langinfo(CODESET);
11772 pcg 1.11 ;
11773     return 0;
11774     }
11775     _ACEOF
11776     rm -f conftest.$ac_objext conftest$ac_exeext
11777     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11778     (eval $ac_link) 2>conftest.er1
11779     ac_status=$?
11780     grep -v '^ *+' conftest.er1 >conftest.err
11781     rm -f conftest.er1
11782     cat conftest.err >&5
11783     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784     (exit $ac_status); } &&
11785 pcg 1.13 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11786 pcg 1.11 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11787     (eval $ac_try) 2>&5
11788     ac_status=$?
11789     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790     (exit $ac_status); }; } &&
11791     { ac_try='test -s conftest$ac_exeext'
11792     { (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); }; }; then
11797 pcg 1.1 rxvt_cv_func_nl_langinfo=yes
11798     else
11799 pcg 1.11 echo "$as_me: failed program was:" >&5
11800     sed 's/^/| /' conftest.$ac_ext >&5
11801    
11802     rxvt_cv_func_nl_langinfo=no
11803 pcg 1.1 fi
11804 pcg 1.11 rm -f conftest.err conftest.$ac_objext \
11805     conftest$ac_exeext conftest.$ac_ext
11806 pcg 1.1 fi
11807 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_func_nl_langinfo" >&5
11808     echo "${ECHO_T}$rxvt_cv_func_nl_langinfo" >&6
11809     if test x$rxvt_cv_func_nl_langinfo = xyes; then
11810 pcg 1.1
11811 pcg 1.11 cat >>confdefs.h <<\_ACEOF
11812 pcg 1.1 #define HAVE_NL_LANGINFO 1
11813 pcg 1.11 _ACEOF
11814 pcg 1.1
11815     fi
11816    
11817 root 1.56 echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5
11818     echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6
11819     if test "${rxvt_can_pass_fds+set}" = set; then
11820     echo $ECHO_N "(cached) $ECHO_C" >&6
11821     else
11822     cat >conftest.$ac_ext <<_ACEOF
11823     /* confdefs.h. */
11824     _ACEOF
11825     cat confdefs.h >>conftest.$ac_ext
11826     cat >>conftest.$ac_ext <<_ACEOF
11827     /* end confdefs.h. */
11828    
11829     #include <sys/types.h>
11830     #include <sys/socket.h>
11831    
11832     int
11833     main ()
11834     {
11835    
11836     {
11837     msghdr msg;
11838     iovec iov;
11839     char buf [100];
11840     char data = 0;
11841    
11842     iov.iov_base = &data;
11843     iov.iov_len = 1;
11844    
11845     msg.msg_iov = &iov;
11846     msg.msg_iovlen = 1;
11847     msg.msg_control = buf;
11848     msg.msg_controllen = sizeof buf;
11849    
11850     cmsghdr *cmsg = CMSG_FIRSTHDR (&msg);
11851     cmsg->cmsg_level = SOL_SOCKET;
11852     cmsg->cmsg_type = SCM_RIGHTS;
11853     cmsg->cmsg_len = 100;
11854    
11855     *(int *)CMSG_DATA (cmsg) = 5;
11856    
11857     return sendmsg (3, &msg, 0);
11858     }
11859    
11860     ;
11861     return 0;
11862     }
11863     _ACEOF
11864     rm -f conftest.$ac_objext conftest$ac_exeext
11865     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11866     (eval $ac_link) 2>conftest.er1
11867     ac_status=$?
11868     grep -v '^ *+' conftest.er1 >conftest.err
11869     rm -f conftest.er1
11870     cat conftest.err >&5
11871     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872     (exit $ac_status); } &&
11873     { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11874     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11875     (eval $ac_try) 2>&5
11876     ac_status=$?
11877     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878     (exit $ac_status); }; } &&
11879     { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11885     rxvt_can_pass_fds=yes
11886     else
11887     echo "$as_me: failed program was:" >&5
11888     sed 's/^/| /' conftest.$ac_ext >&5
11889    
11890     rxvt_can_pass_fds=no
11891     fi
11892     rm -f conftest.err conftest.$ac_objext \
11893     conftest$ac_exeext conftest.$ac_ext
11894     fi
11895     echo "$as_me:$LINENO: result: $rxvt_can_pass_fds" >&5
11896     echo "${ECHO_T}$rxvt_can_pass_fds" >&6
11897     if test x$rxvt_can_pass_fds = xyes; then
11898    
11899     cat >>confdefs.h <<\_ACEOF
11900     #define HAVE_UNIX_FDPASS 1
11901     _ACEOF
11902    
11903     fi
11904    
11905 root 1.31 echo "$as_me:$LINENO: checking for broken XIM callback" >&5
11906     echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6
11907     if test "${rxvt_broken_ximcb+set}" = set; then
11908     echo $ECHO_N "(cached) $ECHO_C" >&6
11909     else
11910     cat >conftest.$ac_ext <<_ACEOF
11911    
11912     #include <X11/Xlib.h>
11913    
11914     void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
11915    
11916     void f() {
11917     XIMCallback cb;
11918     cb.callback = im_destroy_cb;
11919     }
11920    
11921     _ACEOF
11922     rm -f conftest.$ac_objext
11923     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11924     (eval $ac_compile) 2>conftest.er1
11925     ac_status=$?
11926     grep -v '^ *+' conftest.er1 >conftest.err
11927     rm -f conftest.er1
11928     cat conftest.err >&5
11929     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930     (exit $ac_status); } &&
11931     { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11932     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11933     (eval $ac_try) 2>&5
11934     ac_status=$?
11935     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936     (exit $ac_status); }; } &&
11937     { ac_try='test -s conftest.$ac_objext'
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); }; }; then
11943     rxvt_broken_ximcb=yes
11944     else
11945     echo "$as_me: failed program was:" >&5
11946     sed 's/^/| /' conftest.$ac_ext >&5
11947    
11948     rxvt_broken_ximcb=no
11949     fi
11950     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11951     fi
11952     echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
11953     echo "${ECHO_T}$rxvt_broken_ximcb" >&6
11954    
11955     if test x$rxvt_broken_ximcb = xyes; then
11956    
11957     cat >>confdefs.h <<\_ACEOF
11958     #define XIMCB_PROTO_BROKEN 1
11959     _ACEOF
11960    
11961     fi
11962    
11963 root 1.74 if test x$ac_cv_func_getpt = xno -a x$ac_cv_func_posix_openpt = xno; then
11964 root 1.66 echo "$as_me:$LINENO: checking for openpty" >&5
11965     echo $ECHO_N "checking for openpty... $ECHO_C" >&6
11966     if test "${ac_cv_func_openpty+set}" = set; then
11967     echo $ECHO_N "(cached) $ECHO_C" >&6
11968     else
11969     cat >conftest.$ac_ext <<_ACEOF
11970     /* confdefs.h. */
11971     _ACEOF
11972     cat confdefs.h >>conftest.$ac_ext
11973     cat >>conftest.$ac_ext <<_ACEOF
11974     /* end confdefs.h. */
11975     /* Define openpty to an innocuous variant, in case <limits.h> declares openpty.
11976     For example, HP-UX 11i <limits.h> declares gettimeofday. */
11977     #define openpty innocuous_openpty
11978    
11979     /* System header to define __stub macros and hopefully few prototypes,
11980     which can conflict with char openpty (); below.
11981     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11982     <limits.h> exists even on freestanding compilers. */
11983    
11984     #ifdef __STDC__
11985     # include <limits.h>
11986     #else
11987     # include <assert.h>
11988     #endif
11989    
11990     #undef openpty
11991    
11992     /* Override any gcc2 internal prototype to avoid an error. */
11993     #ifdef __cplusplus
11994     extern "C"
11995     {
11996     #endif
11997     /* We use char because int might match the return type of a gcc2
11998     builtin and then its argument prototype would still apply. */
11999     char openpty ();
12000     /* The GNU C library defines this for functions which it implements
12001     to always fail with ENOSYS. Some functions are actually named
12002     something starting with __ and the normal name is an alias. */
12003     #if defined (__stub_openpty) || defined (__stub___openpty)
12004     choke me
12005     #else
12006     char (*f) () = openpty;
12007     #endif
12008     #ifdef __cplusplus
12009     }
12010     #endif
12011 pcg 1.1
12012 root 1.66 int
12013     main ()
12014     {
12015     return f != openpty;
12016     ;
12017     return 0;
12018     }
12019     _ACEOF
12020     rm -f conftest.$ac_objext conftest$ac_exeext
12021     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12022     (eval $ac_link) 2>conftest.er1
12023     ac_status=$?
12024     grep -v '^ *+' conftest.er1 >conftest.err
12025     rm -f conftest.er1
12026     cat conftest.err >&5
12027     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028     (exit $ac_status); } &&
12029     { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12030     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12031     (eval $ac_try) 2>&5
12032     ac_status=$?
12033     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034     (exit $ac_status); }; } &&
12035     { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12041     ac_cv_func_openpty=yes
12042     else
12043     echo "$as_me: failed program was:" >&5
12044     sed 's/^/| /' conftest.$ac_ext >&5
12045    
12046     ac_cv_func_openpty=no
12047     fi
12048     rm -f conftest.err conftest.$ac_objext \
12049     conftest$ac_exeext conftest.$ac_ext
12050     fi
12051     echo "$as_me:$LINENO: result: $ac_cv_func_openpty" >&5
12052     echo "${ECHO_T}$ac_cv_func_openpty" >&6
12053     if test $ac_cv_func_openpty = yes; then
12054     :
12055     else
12056     echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
12057     echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
12058     if test "${ac_cv_lib_util_openpty+set}" = set; then
12059     echo $ECHO_N "(cached) $ECHO_C" >&6
12060     else
12061     ac_check_lib_save_LIBS=$LIBS
12062     LIBS="-lutil $LIBS"
12063     cat >conftest.$ac_ext <<_ACEOF
12064     /* confdefs.h. */
12065 pcg 1.11 _ACEOF
12066 root 1.66 cat confdefs.h >>conftest.$ac_ext
12067     cat >>conftest.$ac_ext <<_ACEOF
12068     /* end confdefs.h. */
12069    
12070     /* Override any gcc2 internal prototype to avoid an error. */
12071     #ifdef __cplusplus
12072     extern "C"
12073     #endif
12074     /* We use char because int might match the return type of a gcc2
12075     builtin and then its argument prototype would still apply. */
12076     char openpty ();
12077     int
12078     main ()
12079     {
12080     openpty ();
12081     ;
12082     return 0;
12083     }
12084     _ACEOF
12085     rm -f conftest.$ac_objext conftest$ac_exeext
12086     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12087     (eval $ac_link) 2>conftest.er1
12088     ac_status=$?
12089     grep -v '^ *+' conftest.er1 >conftest.err
12090     rm -f conftest.er1
12091     cat conftest.err >&5
12092     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093     (exit $ac_status); } &&
12094     { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12095     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12096     (eval $ac_try) 2>&5
12097     ac_status=$?
12098     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099     (exit $ac_status); }; } &&
12100     { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12106     ac_cv_lib_util_openpty=yes
12107     else
12108     echo "$as_me: failed program was:" >&5
12109     sed 's/^/| /' conftest.$ac_ext >&5
12110    
12111     ac_cv_lib_util_openpty=no
12112     fi
12113     rm -f conftest.err conftest.$ac_objext \
12114     conftest$ac_exeext conftest.$ac_ext
12115     LIBS=$ac_check_lib_save_LIBS
12116     fi
12117     echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
12118     echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
12119     if test $ac_cv_lib_util_openpty = yes; then
12120     LIBS="$LIBS -lutil"
12121     fi
12122    
12123     fi
12124 pcg 1.1
12125     fi
12126    
12127 pcg 1.11 echo "$as_me:$LINENO: checking for pty/tty type" >&5
12128     echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6
12129     if test "${rxvt_cv_ptys+set}" = set; then
12130     echo $ECHO_N "(cached) $ECHO_C" >&6
12131 pcg 1.1 else
12132 root 1.66 if test x$ac_cv_func_openpty = xyes -o x$ac_cv_lib_util_openpty = xyes; then
12133 pcg 1.1 rxvt_cv_ptys=OPENPTY
12134 root 1.74 else if test x$ac_cv_func_getpt = xyes; then
12135     rxvt_cv_ptys=GLIBC
12136 root 1.67 else if test x$ac_cv_func_posix_openpt = xyes; then
12137     rxvt_cv_ptys=POSIX
12138 pcg 1.1 else if test x$ac_cv_func__getpty = xyes; then
12139     rxvt_cv_ptys=SGI4
12140     else if test -c /dev/ttyp20; then
12141     rxvt_cv_ptys=SCO
12142     else if test -c /dev/ptym/clone; then
12143     rxvt_cv_ptys=HPUX
12144     else if test -c /dev/ptc -a -c /dev/pts; then
12145     rxvt_cv_ptys=PTC
12146     else if test -c /dev/ptc -a -d /dev/pts; then
12147     rxvt_cv_ptys=PTC
12148     else if test -c /dev/ptmx -a -c /dev/pts/0; then
12149     rxvt_cv_ptys=STREAMS
12150     else if test x$ac_cv_func_grantpt = xyes && test x$ac_cv_func_unlockpt = xyes; then
12151     rxvt_cv_ptys=STREAMS
12152     else
12153     rxvt_cv_ptys=BSD
12154     fi
12155     fi
12156     fi
12157     fi
12158     fi
12159     fi
12160     fi
12161     fi
12162     fi
12163 root 1.74 fi
12164 pcg 1.1
12165     fi
12166 pcg 1.11 echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5
12167     echo "${ECHO_T}$rxvt_cv_ptys" >&6
12168 pcg 1.1
12169 root 1.74 if test x$rxvt_cv_ptys = xGLIBC; then
12170    
12171     cat >>confdefs.h <<\_ACEOF
12172     #define PTYS_ARE_GETPT 1
12173     _ACEOF
12174    
12175     fi
12176 root 1.67 if test x$rxvt_cv_ptys = xPOSIX; then
12177    
12178     cat >>confdefs.h <<\_ACEOF
12179     #define PTYS_ARE_POSIX 1
12180     _ACEOF
12181    
12182     fi
12183 pcg 1.11 if test x$rxvt_cv_ptys = xOPENPTY; then
12184 pcg 1.1
12185 pcg 1.11 cat >>confdefs.h <<\_ACEOF
12186 pcg 1.1 #define PTYS_ARE_OPENPTY 1
12187 pcg 1.11 _ACEOF
12188 pcg 1.1
12189     fi
12190     if test x$rxvt_cv_ptys = xSCO; then
12191 pcg 1.11
12192     cat >>confdefs.h <<\_ACEOF
12193 pcg 1.1 #define PTYS_ARE_NUMERIC 1
12194 pcg 1.11 _ACEOF
12195 pcg 1.1
12196     fi
12197     if test x$rxvt_cv_ptys = xSTREAMS; then
12198 pcg 1.11
12199     cat >>confdefs.h <<\_ACEOF
12200 pcg 1.1 #define PTYS_ARE_PTMX 1
12201 pcg 1.11 _ACEOF
12202 pcg 1.1
12203     fi
12204     if test x$rxvt_cv_ptys = xPTC; then
12205 pcg 1.11
12206     cat >>confdefs.h <<\_ACEOF
12207 pcg 1.1 #define PTYS_ARE_PTC 1
12208 pcg 1.11 _ACEOF
12209 pcg 1.1
12210     fi
12211     if test x$rxvt_cv_ptys = xSGI4; then
12212 pcg 1.11
12213     cat >>confdefs.h <<\_ACEOF
12214 pcg 1.1 #define PTYS_ARE__GETPTY 1
12215 pcg 1.11 _ACEOF
12216 pcg 1.1
12217     fi
12218     if test x$rxvt_cv_ptys = xHPUX; then
12219 pcg 1.11
12220     cat >>confdefs.h <<\_ACEOF
12221 pcg 1.1 #define PTYS_ARE_CLONE 1
12222 pcg 1.11 _ACEOF
12223 pcg 1.1
12224     fi
12225 root 1.69 if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xPOSIX; then
12226 pcg 1.11
12227     cat >>confdefs.h <<\_ACEOF
12228 pcg 1.1 #define PTYS_ARE_SEARCHED 1
12229 pcg 1.11 _ACEOF
12230 pcg 1.1
12231     fi
12232    
12233    
12234 pcg 1.11 { echo "$as_me:$LINENO: checking for pty ranges..." >&5
12235     echo "$as_me: checking for pty ranges..." >&6;}
12236 pcg 1.1 ptys=`echo /dev/pty??`
12237     pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
12238     pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
12239     if test x$pch1 != x; then
12240 pcg 1.11
12241     cat >>confdefs.h <<_ACEOF
12242 pcg 1.1 #define PTYCHAR1 "$pch1"
12243 pcg 1.11 _ACEOF
12244 pcg 1.1
12245     fi
12246     if test x$pch2 != x; then
12247 pcg 1.11
12248     cat >>confdefs.h <<_ACEOF
12249 pcg 1.1 #define PTYCHAR2 "$pch2"
12250 pcg 1.11 _ACEOF
12251 pcg 1.1
12252     fi
12253    
12254 root 1.39 if test x$support_xft = xyes; then
12255     LIBS="$LIBS `pkg-config xft --libs`"
12256     CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`"
12257 root 1.34
12258    
12259 root 1.39 for ac_header in X11/Xft/Xft.h
12260     do
12261     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12262     if eval "test \"\${$as_ac_Header+set}\" = set"; then
12263     echo "$as_me:$LINENO: checking for $ac_header" >&5
12264     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12265     if eval "test \"\${$as_ac_Header+set}\" = set"; then
12266     echo $ECHO_N "(cached) $ECHO_C" >&6
12267 root 1.34 fi
12268 root 1.39 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12269     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12270     else
12271     # Is the header compilable?
12272     echo "$as_me:$LINENO: checking $ac_header usability" >&5
12273     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12274     cat >conftest.$ac_ext <<_ACEOF
12275     /* confdefs.h. */
12276 root 1.26 _ACEOF
12277 root 1.39 cat confdefs.h >>conftest.$ac_ext
12278     cat >>conftest.$ac_ext <<_ACEOF
12279     /* end confdefs.h. */
12280     $ac_includes_default
12281     #include <$ac_header>
12282 root 1.31 _ACEOF
12283 root 1.39 rm -f conftest.$ac_objext
12284     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12285     (eval $ac_compile) 2>conftest.er1
12286     ac_status=$?
12287     grep -v '^ *+' conftest.er1 >conftest.err
12288     rm -f conftest.er1
12289     cat conftest.err >&5
12290     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291     (exit $ac_status); } &&
12292     { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12293     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12294     (eval $ac_try) 2>&5
12295     ac_status=$?
12296     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297     (exit $ac_status); }; } &&
12298     { ac_try='test -s conftest.$ac_objext'
12299     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12300     (eval $ac_try) 2>&5
12301     ac_status=$?
12302     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303     (exit $ac_status); }; }; then
12304     ac_header_compiler=yes
12305     else
12306     echo "$as_me: failed program was:" >&5
12307     sed 's/^/| /' conftest.$ac_ext >&5
12308 root 1.31
12309 root 1.39 ac_header_compiler=no
12310 root 1.31 fi
12311 root 1.39 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12312     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12313     echo "${ECHO_T}$ac_header_compiler" >&6
12314 pcg 1.24
12315 root 1.39 # Is the header present?
12316     echo "$as_me:$LINENO: checking $ac_header presence" >&5
12317     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12318     cat >conftest.$ac_ext <<_ACEOF
12319     /* confdefs.h. */
12320 pcg 1.24 _ACEOF
12321 root 1.39 cat confdefs.h >>conftest.$ac_ext
12322     cat >>conftest.$ac_ext <<_ACEOF
12323     /* end confdefs.h. */
12324     #include <$ac_header>
12325 pcg 1.11 _ACEOF
12326 root 1.39 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12327     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12328     ac_status=$?
12329     grep -v '^ *+' conftest.er1 >conftest.err
12330     rm -f conftest.er1
12331     cat conftest.err >&5
12332     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333     (exit $ac_status); } >/dev/null; then
12334     if test -s conftest.err; then
12335     ac_cpp_err=$ac_cxx_preproc_warn_flag
12336     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12337     else
12338     ac_cpp_err=
12339     fi
12340     else
12341     ac_cpp_err=yes
12342 pcg 1.1 fi
12343 root 1.39 if test -z "$ac_cpp_err"; then
12344     ac_header_preproc=yes
12345     else
12346     echo "$as_me: failed program was:" >&5
12347     sed 's/^/| /' conftest.$ac_ext >&5
12348 pcg 1.1
12349 root 1.39 ac_header_preproc=no
12350 pcg 1.1 fi
12351 root 1.39 rm -f conftest.err conftest.$ac_ext
12352     echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12353     echo "${ECHO_T}$ac_header_preproc" >&6
12354 pcg 1.1
12355 root 1.39 # So? What about this header?
12356     case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
12357     yes:no: )
12358     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12359     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12360     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12361     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12362     ac_header_preproc=yes
12363     ;;
12364     no:yes:* )
12365     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12366     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12367     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12368     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12369     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12370     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12371     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12372     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12373     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12374     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12375     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12376     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12377     (
12378     cat <<\_ASBOX
12379     ## ------------------------------------------ ##
12380     ## Report this to the AC_PACKAGE_NAME lists. ##
12381     ## ------------------------------------------ ##
12382     _ASBOX
12383     ) |
12384     sed "s/^/$as_me: WARNING: /" >&2
12385     ;;
12386     esac
12387     echo "$as_me:$LINENO: checking for $ac_header" >&5
12388     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12389     if eval "test \"\${$as_ac_Header+set}\" = set"; then
12390     echo $ECHO_N "(cached) $ECHO_C" >&6
12391     else
12392     eval "$as_ac_Header=\$ac_header_preproc"
12393 pcg 1.1 fi
12394 root 1.39 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12395     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12396 pcg 1.1
12397     fi
12398 root 1.39 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12399     cat >>confdefs.h <<_ACEOF
12400     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12401 pcg 1.11 _ACEOF
12402 pcg 1.1
12403 root 1.39 else
12404     support_xft=no
12405 pcg 1.1 fi
12406 pcg 1.11
12407 root 1.39 done
12408 pcg 1.1
12409 pcg 1.11
12410 root 1.39 echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5
12411     echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6
12412     if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then
12413     echo $ECHO_N "(cached) $ECHO_C" >&6
12414     else
12415     ac_check_lib_save_LIBS=$LIBS
12416     LIBS="-lXft $LIBS"
12417     cat >conftest.$ac_ext <<_ACEOF
12418     /* confdefs.h. */
12419     _ACEOF
12420     cat confdefs.h >>conftest.$ac_ext
12421     cat >>conftest.$ac_ext <<_ACEOF
12422     /* end confdefs.h. */
12423    
12424     /* Override any gcc2 internal prototype to avoid an error. */
12425     #ifdef __cplusplus
12426     extern "C"
12427     #endif
12428     /* We use char because int might match the return type of a gcc2
12429     builtin and then its argument prototype would still apply. */
12430     char XftDrawString32 ();
12431     int
12432     main ()
12433     {
12434     XftDrawString32 ();
12435     ;
12436     return 0;
12437     }
12438     _ACEOF
12439     rm -f conftest.$ac_objext conftest$ac_exeext
12440     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12441     (eval $ac_link) 2>conftest.er1
12442     ac_status=$?
12443     grep -v '^ *+' conftest.er1 >conftest.err
12444     rm -f conftest.er1
12445     cat conftest.err >&5
12446     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447     (exit $ac_status); } &&
12448     { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12449     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12450     (eval $ac_try) 2>&5
12451     ac_status=$?
12452     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453     (exit $ac_status); }; } &&
12454     { ac_try='test -s conftest$ac_exeext'
12455     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12456     (eval $ac_try) 2>&5
12457     ac_status=$?
12458     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459     (exit $ac_status); }; }; then
12460     ac_cv_lib_Xft_XftDrawString32=yes
12461     else
12462     echo "$as_me: failed program was:" >&5
12463     sed 's/^/| /' conftest.$ac_ext >&5
12464    
12465     ac_cv_lib_Xft_XftDrawString32=no
12466     fi
12467     rm -f conftest.err conftest.$ac_objext \
12468     conftest$ac_exeext conftest.$ac_ext
12469     LIBS=$ac_check_lib_save_LIBS
12470     fi
12471     echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5
12472     echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6
12473     if test $ac_cv_lib_Xft_XftDrawString32 = yes; then
12474     cat >>confdefs.h <<_ACEOF
12475     #define HAVE_LIBXFT 1
12476     _ACEOF
12477    
12478     LIBS="-lXft $LIBS"
12479    
12480     else
12481     support_xft=no
12482     fi
12483    
12484    
12485     if test x$support_xft = xyes; then
12486    
12487     cat >>confdefs.h <<\_ACEOF
12488     #define XFT 1
12489     _ACEOF
12490    
12491     fi
12492     fi
12493     if test x$support_styles = xyes; then
12494    
12495     cat >>confdefs.h <<\_ACEOF
12496     #define ENABLE_STYLES 1
12497     _ACEOF
12498    
12499     fi
12500     if test x$support_iso14755 = xyes; then
12501    
12502     cat >>confdefs.h <<\_ACEOF
12503     #define ISO_14755 1
12504     _ACEOF
12505    
12506     fi
12507     if test x$support_8bitctrls = xyes; then
12508    
12509     cat >>confdefs.h <<\_ACEOF
12510     #define EIGHT_BIT_CONTROLS 1
12511     _ACEOF
12512    
12513     fi
12514     if test x$support_fading = xyes; then
12515    
12516     cat >>confdefs.h <<\_ACEOF
12517     #define OFF_FOCUS_FADING 1
12518     _ACEOF
12519    
12520     fi
12521     if test x$support_tinting = xyes; then
12522    
12523     cat >>confdefs.h <<\_ACEOF
12524     #define TINTING 1
12525     _ACEOF
12526    
12527     fi
12528     if test x$support_inheritpixmap = xyes; then
12529    
12530     cat >>confdefs.h <<\_ACEOF
12531     #define TRANSPARENT 1
12532     _ACEOF
12533    
12534     fi
12535     if test x$support_keepscrolling = xno; then
12536    
12537     cat >>confdefs.h <<\_ACEOF
12538     #define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
12539     _ACEOF
12540    
12541     fi
12542     if test x$support_selectionscrolling = xyes; then
12543    
12544     cat >>confdefs.h <<\_ACEOF
12545     #define SELECTION_SCROLLING 1
12546     _ACEOF
12547    
12548     fi
12549     if test x$support_frills = xyes; then
12550    
12551     cat >>confdefs.h <<\_ACEOF
12552     #define ENABLE_FRILLS 1
12553     _ACEOF
12554    
12555     fi
12556     if test x$support_24bit = xyes; then
12557    
12558     cat >>confdefs.h <<\_ACEOF
12559     #define PREFER_24BIT 1
12560 pcg 1.11 _ACEOF
12561 pcg 1.1
12562     fi
12563     if test x$support_mousewheel = xyes; then
12564 pcg 1.11
12565     cat >>confdefs.h <<\_ACEOF
12566 pcg 1.1 #define MOUSE_WHEEL 1
12567 pcg 1.11 _ACEOF
12568 pcg 1.1
12569     fi
12570     if test x$support_mouseslipwheel = xyes; then
12571 pcg 1.11
12572     cat >>confdefs.h <<\_ACEOF
12573 pcg 1.1 #define MOUSE_SLIP_WHEELING 1
12574 pcg 1.11 _ACEOF
12575 pcg 1.1
12576     fi
12577     if test x$support_utmp = xyes; then
12578 pcg 1.11
12579     cat >>confdefs.h <<\_ACEOF
12580 pcg 1.1 #define UTMP_SUPPORT 1
12581 pcg 1.11 _ACEOF
12582 pcg 1.1
12583     fi
12584     if test x$support_wtmp = xyes; then
12585 pcg 1.11
12586     cat >>confdefs.h <<\_ACEOF
12587 pcg 1.1 #define WTMP_SUPPORT 1
12588 pcg 1.11 _ACEOF
12589 pcg 1.1
12590     fi
12591     if test x$support_lastlog = xyes; then
12592 pcg 1.11
12593     cat >>confdefs.h <<\_ACEOF
12594 pcg 1.1 #define LASTLOG_SUPPORT 1
12595 pcg 1.11 _ACEOF
12596 pcg 1.1
12597     fi
12598     if test x$support_xim = xyes -o x$multichar_set = xyes; then
12599     if test x$rxvt_cv_func_xlocale = xyes; then
12600 pcg 1.11
12601     cat >>confdefs.h <<\_ACEOF
12602 pcg 1.1 #define USE_XIM 1
12603 pcg 1.11 _ACEOF
12604 pcg 1.1
12605     fi
12606     fi
12607     if test x$support_xpm = xyes; then
12608 pcg 1.11
12609     cat >>confdefs.h <<\_ACEOF
12610 pcg 1.1 #define XPM_BACKGROUND 1
12611 pcg 1.11 _ACEOF
12612 pcg 1.1
12613     fi
12614     if test x$support_scroll_rxvt = xyes; then
12615 pcg 1.11
12616     cat >>confdefs.h <<\_ACEOF
12617 pcg 1.1 #define RXVT_SCROLLBAR 1
12618 pcg 1.11 _ACEOF
12619 pcg 1.1
12620     scrolltypes="rxvt"
12621     fi
12622     if test x$support_scroll_next = xyes; then
12623 pcg 1.11
12624     cat >>confdefs.h <<\_ACEOF
12625 pcg 1.1 #define NEXT_SCROLLBAR 1
12626 pcg 1.11 _ACEOF
12627 pcg 1.1
12628     scrolltypes="$scrolltypes next"
12629     fi
12630     if test x$support_scroll_xterm = xyes; then
12631 pcg 1.11
12632     cat >>confdefs.h <<\_ACEOF
12633 pcg 1.1 #define XTERM_SCROLLBAR 1
12634 pcg 1.11 _ACEOF
12635 pcg 1.1
12636     scrolltypes="$scrolltypes xterm"
12637     fi
12638 pcg 1.11 if test x$support_scroll_plain = xyes; then
12639    
12640     cat >>confdefs.h <<\_ACEOF
12641     #define PLAIN_SCROLLBAR 1
12642     _ACEOF
12643    
12644     scrolltypes="$scrolltypes plain"
12645     fi
12646 pcg 1.1 if test x$support_pointer_blank = xyes; then
12647 pcg 1.11
12648     cat >>confdefs.h <<\_ACEOF
12649 pcg 1.1 #define POINTER_BLANK 1
12650 pcg 1.11 _ACEOF
12651 pcg 1.1
12652     fi
12653 pcg 1.11 if test x$support_text_blink = xyes; then
12654    
12655     cat >>confdefs.h <<\_ACEOF
12656     #define TEXT_BLINK 1
12657     _ACEOF
12658 pcg 1.1
12659     fi
12660     if test x$support_unicode3 = xyes; then
12661 pcg 1.11
12662     cat >>confdefs.h <<\_ACEOF
12663 pcg 1.1 #define UNICODE_3 1
12664 pcg 1.11 _ACEOF
12665 pcg 1.1
12666     fi
12667 pcg 1.18 if test x$support_combining = xyes; then
12668    
12669     cat >>confdefs.h <<\_ACEOF
12670 pcg 1.20 #define ENABLE_COMBINING 1
12671 pcg 1.18 _ACEOF
12672    
12673     fi
12674 pcg 1.1 if test x$codesets = xall; then
12675 root 1.40 codesets=jp,jp-ext,kr,zh,zh-ext
12676 pcg 1.1 fi
12677 pcg 1.11
12678     cat >>confdefs.h <<\_ACEOF
12679 pcg 1.1 #define ENCODING_EU 1
12680 pcg 1.11 _ACEOF
12681 pcg 1.1
12682 pcg 1.13
12683 pcg 1.11 cat >>confdefs.h <<\_ACEOF
12684 pcg 1.1 #define ENCODING_VN 1
12685 pcg 1.11 _ACEOF
12686 pcg 1.13
12687 root 1.34 for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
12688 pcg 1.13 case "$codeset" in
12689 pcg 1.11 JP )
12690     cat >>confdefs.h <<\_ACEOF
12691 pcg 1.1 #define ENCODING_JP 1
12692 pcg 1.11 _ACEOF
12693 pcg 1.1 ;;
12694 pcg 1.11 JP_EXT )
12695     cat >>confdefs.h <<\_ACEOF
12696 pcg 1.1 #define ENCODING_JP_EXT 1
12697 pcg 1.11 _ACEOF
12698 pcg 1.1 ;;
12699 pcg 1.11 KR )
12700     cat >>confdefs.h <<\_ACEOF
12701 pcg 1.1 #define ENCODING_KR 1
12702 pcg 1.11 _ACEOF
12703 pcg 1.1 ;;
12704 root 1.40 ZH )
12705 pcg 1.11 cat >>confdefs.h <<\_ACEOF
12706 root 1.40 #define ENCODING_ZH 1
12707 pcg 1.11 _ACEOF
12708 pcg 1.1 ;;
12709 root 1.40 ZH_EXT )
12710 pcg 1.11 cat >>confdefs.h <<\_ACEOF
12711 root 1.40 #define ENCODING_ZH_EXT 1
12712 pcg 1.11 _ACEOF
12713 pcg 1.1 ;;
12714     esac
12715     done
12716    
12717 root 1.60 IF_PERL=\#
12718     if test x$support_perl = xyes; then
12719     # Extract the first word of "perl5", so it can be a program name with args.
12720     set dummy perl5; ac_word=$2
12721     echo "$as_me:$LINENO: checking for $ac_word" >&5
12722     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12723     if test "${ac_cv_path_PERL+set}" = set; then
12724     echo $ECHO_N "(cached) $ECHO_C" >&6
12725     else
12726     case $PERL in
12727     [\\/]* | ?:[\\/]*)
12728     ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12729     ;;
12730     *)
12731     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12732     for as_dir in $PATH
12733     do
12734     IFS=$as_save_IFS
12735     test -z "$as_dir" && as_dir=.
12736     for ac_exec_ext in '' $ac_executable_extensions; do
12737     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12738     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12739     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12740     break 2
12741     fi
12742     done
12743     done
12744    
12745     ;;
12746     esac
12747     fi
12748     PERL=$ac_cv_path_PERL
12749    
12750     if test -n "$PERL"; then
12751     echo "$as_me:$LINENO: result: $PERL" >&5
12752     echo "${ECHO_T}$PERL" >&6
12753     else
12754     echo "$as_me:$LINENO: result: no" >&5
12755     echo "${ECHO_T}no" >&6
12756     fi
12757    
12758     # Extract the first word of "perl", so it can be a program name with args.
12759     set dummy perl; ac_word=$2
12760     echo "$as_me:$LINENO: checking for $ac_word" >&5
12761     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12762     if test "${ac_cv_path_PERL+set}" = set; then
12763     echo $ECHO_N "(cached) $ECHO_C" >&6
12764     else
12765     case $PERL in
12766     [\\/]* | ?:[\\/]*)
12767     ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12768     ;;
12769     *)
12770     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12771     for as_dir in $PATH
12772     do
12773     IFS=$as_save_IFS
12774     test -z "$as_dir" && as_dir=.
12775     for ac_exec_ext in '' $ac_executable_extensions; do
12776     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12777     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12778     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12779     break 2
12780     fi
12781     done
12782     done
12783    
12784     ;;
12785     esac
12786     fi
12787     PERL=$ac_cv_path_PERL
12788    
12789     if test -n "$PERL"; then
12790     echo "$as_me:$LINENO: result: $PERL" >&5
12791     echo "${ECHO_T}$PERL" >&6
12792     else
12793     echo "$as_me:$LINENO: result: no" >&5
12794     echo "${ECHO_T}no" >&6
12795     fi
12796    
12797    
12798     echo "$as_me:$LINENO: checking for $PERL suitability" >&5
12799     echo $ECHO_N "checking for $PERL suitability... $ECHO_C" >&6
12800     if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then
12801    
12802 root 1.62 save_CXXFLAGS="$CXXFLAGS"
12803     save_LIBS="$LIBS"
12804     CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`"
12805     LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`"
12806     cat >conftest.$ac_ext <<_ACEOF
12807     /* confdefs.h. */
12808     _ACEOF
12809     cat confdefs.h >>conftest.$ac_ext
12810     cat >>conftest.$ac_ext <<_ACEOF
12811     /* end confdefs.h. */
12812    
12813     #include <EXTERN.h>
12814     #include <perl.h>
12815     #include <XSUB.h>
12816    
12817     int
12818     main ()
12819     {
12820    
12821     PerlInterpreter *perl = perl_alloc ();
12822    
12823     ;
12824     return 0;
12825     }
12826     _ACEOF
12827     rm -f conftest.$ac_objext conftest$ac_exeext
12828     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12829     (eval $ac_link) 2>conftest.er1
12830     ac_status=$?
12831     grep -v '^ *+' conftest.er1 >conftest.err
12832     rm -f conftest.er1
12833     cat conftest.err >&5
12834     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835     (exit $ac_status); } &&
12836     { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12837     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12838     (eval $ac_try) 2>&5
12839     ac_status=$?
12840     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841     (exit $ac_status); }; } &&
12842     { ac_try='test -s conftest$ac_exeext'
12843     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12844     (eval $ac_try) 2>&5
12845     ac_status=$?
12846     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847     (exit $ac_status); }; }; then
12848     rxvt_perl_link=yes
12849     else
12850     echo "$as_me: failed program was:" >&5
12851     sed 's/^/| /' conftest.$ac_ext >&5
12852    
12853     rxvt_perl_link=no
12854     fi
12855     rm -f conftest.err conftest.$ac_objext \
12856     conftest$ac_exeext conftest.$ac_ext
12857     CXXFLAGS="$save_CXXFLAGS"
12858     LIBS="$save_LIBS"
12859    
12860     if test x$rxvt_perl_link = xyes; then
12861     echo "$as_me:$LINENO: result: ok" >&5
12862     echo "${ECHO_T}ok" >&6
12863    
12864 root 1.60 cat >>confdefs.h <<\_ACEOF
12865     #define ENABLE_PERL 1
12866     _ACEOF
12867    
12868 root 1.62 IF_PERL=
12869     PERL_O=rxvtperl.o
12870     PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
12871     PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
12872     PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`"
12873     else
12874     support_perl=no
12875     echo "$as_me:$LINENO: result: no, unable to link" >&5
12876     echo "${ECHO_T}no, unable to link" >&6
12877     fi
12878 root 1.60 else
12879     { { echo "$as_me:$LINENO: error: no working perl found" >&5
12880     echo "$as_me: error: no working perl found" >&2;}
12881     { (exit or perl not version >= 5.8); exit or perl not version >= 5.8; }; }
12882 root 1.62 support_perl=no
12883 root 1.60 fi
12884     fi
12885    
12886    
12887    
12888    
12889    
12890    
12891    
12892 root 1.66 if test x$support_perl = xyes; then
12893 root 1.64 support_frills=yes
12894     fi
12895    
12896 pcg 1.1
12897     CFLAGS=${CFLAGS--O}
12898     LDFLAGS=${LDFLAGS--O}
12899    
12900     CPPFLAGS="$CPPFLAGS"
12901    
12902    
12903    
12904    
12905    
12906    
12907    
12908     if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
12909     DLIB=`echo $DLIB | sed "$R_TRANSLATE"`
12910     LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
12911     X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
12912     X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
12913     XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
12914     fi
12915    
12916    
12917    
12918    
12919    
12920     test "$program_prefix" != NONE &&
12921 pcg 1.11 program_transform_name="s,^,$program_prefix,;$program_transform_name"
12922 pcg 1.1 # Use a double $ so make ignores it.
12923     test "$program_suffix" != NONE &&
12924 pcg 1.11 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
12925     # Double any \ or $. echo might interpret backslashes.
12926     # By default was `s,x,x', remove it if useless.
12927     cat <<\_ACEOF >conftest.sed
12928     s/[\\$]/&&/g;s/;s,x,x,$//
12929     _ACEOF
12930     program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
12931     rm conftest.sed
12932 pcg 1.1
12933    
12934    
12935    
12936    
12937     if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
12938     include_stdint_h="#include <stdint.h>"
12939     else
12940     include_stdint_h="/* #include <stdint.h> */"
12941 pcg 1.11 fi
12942 pcg 1.1 if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
12943 pcg 1.18 include_stdarg_h="#include <cstdarg>"
12944 pcg 1.1 else
12945 pcg 1.18 include_stdarg_h="/* #include <cstdarg> */"
12946 pcg 1.11 fi
12947 pcg 1.1 if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
12948 pcg 1.18 include_stdlib_h="#include <cstdlib>"
12949 pcg 1.1 else
12950 pcg 1.18 include_stdlib_h="/* #include <cstdlib> */"
12951 pcg 1.11 fi
12952 pcg 1.1 if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
12953     include_unistd_h="#include <unistd.h>"
12954     else
12955     include_unistd_h="/* #include <unistd.h> */"
12956 pcg 1.11 fi
12957 pcg 1.1 if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
12958 pcg 1.18 include_string_h="#include <cstring>"
12959 pcg 1.1 else
12960 pcg 1.18 include_string_h="/* #include <cstring> */"
12961 pcg 1.11 fi
12962 pcg 1.1 if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
12963     include_fcntl_h="#include <fcntl.h>"
12964     else
12965     include_fcntl_h="/* #include <fcntl.h> */"
12966 pcg 1.11 fi
12967 pcg 1.1 if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
12968     include_util_h="#include <util.h>"
12969     else
12970     include_util_h="/* #include <util.h> */"
12971 pcg 1.11 fi
12972 pcg 1.1 if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
12973     include_assert_h="#include <assert.h>"
12974     else
12975     include_assert_h="/* #include <assert.h> */"
12976 pcg 1.11 fi
12977 pcg 1.1 if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
12978     include_sys_ioctl_h="#include <sys/ioctl.h>"
12979     else
12980     include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
12981 pcg 1.11 fi
12982 pcg 1.1 if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
12983     include_sys_select_h="#include <sys/select.h>"
12984     else
12985     include_sys_select_h="/* #include <sys/select.h> */"
12986 pcg 1.11 fi
12987 pcg 1.1 if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
12988     include_sys_strredir_h="#include <sys/strredir.h>"
12989     else
12990     include_sys_strredir_h="/* #include <sys/strredir.h> */"
12991 pcg 1.11 fi
12992 pcg 1.1 if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
12993     include_sys_time_h="#include <sys/time.h>"
12994     else
12995     include_sys_time_h="/* #include <sys/time.h> */"
12996 pcg 1.11 fi
12997 pcg 1.1 if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
12998     include_time_h="#include <time.h>"
12999     else
13000     include_time_h="/* #include <time.h> */"
13001 pcg 1.11 fi
13002 pcg 1.1
13003 root 1.73 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h"
13004 root 1.32
13005 pcg 1.11 cat >confcache <<\_ACEOF
13006 pcg 1.1 # This file is a shell script that caches the results of configure
13007     # tests run on this system so they can be shared between configure
13008 pcg 1.11 # scripts and configure runs, see configure's option --config-cache.
13009     # It is not useful on other systems. If it contains results you don't
13010     # want to keep, you may remove or edit it.
13011 pcg 1.1 #
13012 pcg 1.11 # config.status only pays attention to the cache file if you give it
13013     # the --recheck option to rerun configure.
13014 pcg 1.1 #
13015 pcg 1.11 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13016     # loading this file, other *unset* `ac_cv_foo' will be assigned the
13017     # following values.
13018    
13019     _ACEOF
13020    
13021 pcg 1.1 # The following way of writing the cache mishandles newlines in values,
13022     # but we know of no workaround that is simple, portable, and efficient.
13023     # So, don't put newlines in cache variables' values.
13024     # Ultrix sh set writes to stderr and can't be redirected directly,
13025     # and sets the high bit in the cache file unless we assign to the vars.
13026 pcg 1.11 {
13027     (set) 2>&1 |
13028     case `(ac_space=' '; set | grep ac_space) 2>&1` in
13029     *ac_space=\ *)
13030     # `set' does not quote correctly, so add quotes (double-quote
13031     # substitution turns \\\\ into \\, and sed turns \\ into \).
13032     sed -n \
13033     "s/'/'\\\\''/g;
13034     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13035     ;;
13036     *)
13037     # `set' quotes correctly as required by POSIX, so do not add quotes.
13038     sed -n \
13039     "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13040     ;;
13041     esac;
13042     } |
13043     sed '
13044     t clear
13045     : clear
13046     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13047     t end
13048     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13049     : end' >>confcache
13050     if diff $cache_file confcache >/dev/null 2>&1; then :; else
13051 pcg 1.1 if test -w $cache_file; then
13052 pcg 1.11 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13053     cat confcache >$cache_file
13054 pcg 1.1 else
13055     echo "not updating unwritable cache $cache_file"
13056     fi
13057     fi
13058     rm -f confcache
13059    
13060     test "x$prefix" = xNONE && prefix=$ac_default_prefix
13061     # Let make expand exec_prefix.
13062     test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13063    
13064 pcg 1.11 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13065     # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13066     # trailing colons and then remove the whole line if VPATH becomes empty
13067     # (actually we leave an empty line to preserve line numbers).
13068 pcg 1.1 if test "x$srcdir" = x.; then
13069 pcg 1.11 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13070     s/:*\$(srcdir):*/:/;
13071     s/:*\${srcdir}:*/:/;
13072     s/:*@srcdir@:*/:/;
13073     s/^\([^=]*=[ ]*\):*/\1/;
13074     s/:*$//;
13075     s/^[^=]*=[ ]*$//;
13076     }'
13077 pcg 1.1 fi
13078    
13079 pcg 1.11 DEFS=-DHAVE_CONFIG_H
13080    
13081     ac_libobjs=
13082     ac_ltlibobjs=
13083     for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13084     # 1. Remove the extension, and $U if already installed.
13085     ac_i=`echo "$ac_i" |
13086     sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13087     # 2. Add them.
13088     ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13089     ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13090     done
13091     LIBOBJS=$ac_libobjs
13092    
13093     LTLIBOBJS=$ac_ltlibobjs
13094    
13095 pcg 1.1
13096    
13097     : ${CONFIG_STATUS=./config.status}
13098 pcg 1.11 ac_clean_files_save=$ac_clean_files
13099     ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13100     { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13101     echo "$as_me: creating $CONFIG_STATUS" >&6;}
13102     cat >$CONFIG_STATUS <<_ACEOF
13103     #! $SHELL
13104     # Generated by $as_me.
13105 pcg 1.1 # Run this file to recreate the current configuration.
13106     # Compiler output produced by configure, useful for debugging
13107 pcg 1.11 # configure, is in config.log if it exists.
13108    
13109     debug=false
13110     ac_cs_recheck=false
13111     ac_cs_silent=false
13112     SHELL=\${CONFIG_SHELL-$SHELL}
13113     _ACEOF
13114    
13115     cat >>$CONFIG_STATUS <<\_ACEOF
13116     ## --------------------- ##
13117     ## M4sh Initialization. ##
13118     ## --------------------- ##
13119    
13120     # Be Bourne compatible
13121     if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13122     emulate sh
13123     NULLCMD=:
13124     # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13125     # is contrary to our usage. Disable this feature.
13126     alias -g '${1+"$@"}'='"$@"'
13127     elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13128     set -o posix
13129     fi
13130     DUALCASE=1; export DUALCASE # for MKS sh
13131    
13132     # Support unset when possible.
13133     if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13134     as_unset=unset
13135     else
13136     as_unset=false
13137     fi
13138    
13139    
13140     # Work around bugs in pre-3.0 UWIN ksh.
13141     $as_unset ENV MAIL MAILPATH
13142     PS1='$ '
13143     PS2='> '
13144     PS4='+ '
13145    
13146     # NLS nuisances.
13147     for as_var in \
13148     LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13149     LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13150     LC_TELEPHONE LC_TIME
13151     do
13152     if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13153     eval $as_var=C; export $as_var
13154     else
13155     $as_unset $as_var
13156     fi
13157     done
13158    
13159     # Required to use basename.
13160     if expr a : '\(a\)' >/dev/null 2>&1; then
13161     as_expr=expr
13162     else
13163     as_expr=false
13164     fi
13165    
13166     if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13167     as_basename=basename
13168     else
13169     as_basename=false
13170     fi
13171    
13172    
13173     # Name of the executable.
13174     as_me=`$as_basename "$0" ||
13175     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13176     X"$0" : 'X\(//\)$' \| \
13177     X"$0" : 'X\(/\)$' \| \
13178     . : '\(.\)' 2>/dev/null ||
13179     echo X/"$0" |
13180     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13181     /^X\/\(\/\/\)$/{ s//\1/; q; }
13182     /^X\/\(\/\).*/{ s//\1/; q; }
13183     s/.*/./; q'`
13184    
13185    
13186     # PATH needs CR, and LINENO needs CR and PATH.
13187     # Avoid depending upon Character Ranges.
13188     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13189     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13190     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13191     as_cr_digits='0123456789'
13192     as_cr_alnum=$as_cr_Letters$as_cr_digits
13193    
13194     # The user is always right.
13195     if test "${PATH_SEPARATOR+set}" != set; then
13196     echo "#! /bin/sh" >conf$$.sh
13197     echo "exit 0" >>conf$$.sh
13198     chmod +x conf$$.sh
13199     if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13200     PATH_SEPARATOR=';'
13201     else
13202     PATH_SEPARATOR=:
13203     fi
13204     rm -f conf$$.sh
13205     fi
13206    
13207    
13208     as_lineno_1=$LINENO
13209     as_lineno_2=$LINENO
13210     as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13211     test "x$as_lineno_1" != "x$as_lineno_2" &&
13212     test "x$as_lineno_3" = "x$as_lineno_2" || {
13213     # Find who we are. Look in the path if we contain no path at all
13214     # relative or not.
13215     case $0 in
13216     *[\\/]* ) as_myself=$0 ;;
13217     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13218     for as_dir in $PATH
13219     do
13220     IFS=$as_save_IFS
13221     test -z "$as_dir" && as_dir=.
13222     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13223     done
13224    
13225     ;;
13226     esac
13227     # We did not find ourselves, most probably we were run as `sh COMMAND'
13228     # in which case we are not to be found in the path.
13229     if test "x$as_myself" = x; then
13230     as_myself=$0
13231     fi
13232     if test ! -f "$as_myself"; then
13233     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13234     echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13235     { (exit 1); exit 1; }; }
13236     fi
13237     case $CONFIG_SHELL in
13238     '')
13239     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13240     for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13241     do
13242     IFS=$as_save_IFS
13243     test -z "$as_dir" && as_dir=.
13244     for as_base in sh bash ksh sh5; do
13245     case $as_dir in
13246     /*)
13247     if ("$as_dir/$as_base" -c '
13248     as_lineno_1=$LINENO
13249     as_lineno_2=$LINENO
13250     as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13251     test "x$as_lineno_1" != "x$as_lineno_2" &&
13252     test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13253     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13254     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13255     CONFIG_SHELL=$as_dir/$as_base
13256     export CONFIG_SHELL
13257     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13258     fi;;
13259     esac
13260     done
13261     done
13262     ;;
13263     esac
13264    
13265     # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13266     # uniformly replaced by the line number. The first 'sed' inserts a
13267     # line-number line before each line; the second 'sed' does the real
13268     # work. The second script uses 'N' to pair each line-number line
13269     # with the numbered line, and appends trailing '-' during
13270     # substitution so that $LINENO is not a special case at line end.
13271     # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13272     # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13273     sed '=' <$as_myself |
13274     sed '
13275     N
13276     s,$,-,
13277     : loop
13278     s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13279     t loop
13280     s,-$,,
13281     s,^['$as_cr_digits']*\n,,
13282     ' >$as_me.lineno &&
13283     chmod +x $as_me.lineno ||
13284     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13285     echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13286     { (exit 1); exit 1; }; }
13287    
13288     # Don't try to exec as it changes $[0], causing all sort of problems
13289     # (the dirname of $[0] is not the place where we might find the
13290     # original and so on. Autoconf is especially sensible to this).
13291     . ./$as_me.lineno
13292     # Exit status is that of the last command.
13293     exit
13294     }
13295    
13296    
13297     case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13298     *c*,-n*) ECHO_N= ECHO_C='
13299     ' ECHO_T=' ' ;;
13300     *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13301     *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13302     esac
13303    
13304     if expr a : '\(a\)' >/dev/null 2>&1; then
13305     as_expr=expr
13306     else
13307     as_expr=false
13308     fi
13309    
13310     rm -f conf$$ conf$$.exe conf$$.file
13311     echo >conf$$.file
13312     if ln -s conf$$.file conf$$ 2>/dev/null; then
13313     # We could just check for DJGPP; but this test a) works b) is more generic
13314     # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13315     if test -f conf$$.exe; then
13316     # Don't use ln at all; we don't have any links
13317     as_ln_s='cp -p'
13318     else
13319     as_ln_s='ln -s'
13320     fi
13321     elif ln conf$$.file conf$$ 2>/dev/null; then
13322     as_ln_s=ln
13323     else
13324     as_ln_s='cp -p'
13325     fi
13326     rm -f conf$$ conf$$.exe conf$$.file
13327    
13328     if mkdir -p . 2>/dev/null; then
13329     as_mkdir_p=:
13330     else
13331     test -d ./-p && rmdir ./-p
13332     as_mkdir_p=false
13333     fi
13334    
13335     as_executable_p="test -f"
13336    
13337     # Sed expression to map a string onto a valid CPP name.
13338     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13339    
13340     # Sed expression to map a string onto a valid variable name.
13341     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13342    
13343    
13344     # IFS
13345     # We need space, tab and new line, in precisely that order.
13346     as_nl='
13347     '
13348     IFS=" $as_nl"
13349    
13350     # CDPATH.
13351     $as_unset CDPATH
13352    
13353     exec 6>&1
13354    
13355     # Open the log real soon, to keep \$[0] and so on meaningful, and to
13356     # report actual input values of CONFIG_FILES etc. instead of their
13357     # values after options handling. Logging --version etc. is OK.
13358     exec 5>>config.log
13359     {
13360     echo
13361     sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13362     ## Running $as_me. ##
13363     _ASBOX
13364     } >&5
13365     cat >&5 <<_CSEOF
13366    
13367     This file was extended by $as_me, which was
13368     generated by GNU Autoconf 2.59. Invocation command line was
13369    
13370     CONFIG_FILES = $CONFIG_FILES
13371     CONFIG_HEADERS = $CONFIG_HEADERS
13372     CONFIG_LINKS = $CONFIG_LINKS
13373     CONFIG_COMMANDS = $CONFIG_COMMANDS
13374     $ $0 $@
13375    
13376     _CSEOF
13377     echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13378     echo >&5
13379     _ACEOF
13380    
13381     # Files that config.status was made for.
13382     if test -n "$ac_config_files"; then
13383     echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13384     fi
13385    
13386     if test -n "$ac_config_headers"; then
13387     echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13388     fi
13389    
13390     if test -n "$ac_config_links"; then
13391     echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13392     fi
13393 pcg 1.1
13394 pcg 1.11 if test -n "$ac_config_commands"; then
13395     echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13396     fi
13397    
13398     cat >>$CONFIG_STATUS <<\_ACEOF
13399    
13400     ac_cs_usage="\
13401     \`$as_me' instantiates files from templates according to the
13402     current configuration.
13403    
13404     Usage: $0 [OPTIONS] [FILE]...
13405    
13406     -h, --help print this help, then exit
13407     -V, --version print version number, then exit
13408     -q, --quiet do not print progress messages
13409     -d, --debug don't remove temporary files
13410     --recheck update $as_me by reconfiguring in the same conditions
13411     --file=FILE[:TEMPLATE]
13412     instantiate the configuration file FILE
13413     --header=FILE[:TEMPLATE]
13414     instantiate the configuration header FILE
13415    
13416     Configuration files:
13417     $config_files
13418    
13419     Configuration headers:
13420     $config_headers
13421    
13422     Report bugs to <bug-autoconf@gnu.org>."
13423     _ACEOF
13424    
13425     cat >>$CONFIG_STATUS <<_ACEOF
13426     ac_cs_version="\\
13427     config.status
13428     configured by $0, generated by GNU Autoconf 2.59,
13429     with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13430    
13431     Copyright (C) 2003 Free Software Foundation, Inc.
13432     This config.status script is free software; the Free Software Foundation
13433     gives unlimited permission to copy, distribute and modify it."
13434     srcdir=$srcdir
13435     INSTALL="$INSTALL"
13436     _ACEOF
13437    
13438     cat >>$CONFIG_STATUS <<\_ACEOF
13439     # If no file are specified by the user, then we need to provide default
13440     # value. By we need to know if files were specified by the user.
13441     ac_need_defaults=:
13442     while test $# != 0
13443 pcg 1.1 do
13444 pcg 1.11 case $1 in
13445     --*=*)
13446     ac_option=`expr "x$1" : 'x\([^=]*\)='`
13447     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13448     ac_shift=:
13449     ;;
13450     -*)
13451     ac_option=$1
13452     ac_optarg=$2
13453     ac_shift=shift
13454     ;;
13455     *) # This is not an option, so the user has probably given explicit
13456     # arguments.
13457     ac_option=$1
13458     ac_need_defaults=false;;
13459     esac
13460    
13461     case $ac_option in
13462     # Handling of the options.
13463     _ACEOF
13464     cat >>$CONFIG_STATUS <<\_ACEOF
13465 pcg 1.1 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13466 pcg 1.11 ac_cs_recheck=: ;;
13467     --version | --vers* | -V )
13468     echo "$ac_cs_version"; exit 0 ;;
13469     --he | --h)
13470     # Conflict between --help and --header
13471     { { echo "$as_me:$LINENO: error: ambiguous option: $1
13472     Try \`$0 --help' for more information." >&5
13473     echo "$as_me: error: ambiguous option: $1
13474     Try \`$0 --help' for more information." >&2;}
13475     { (exit 1); exit 1; }; };;
13476     --help | --hel | -h )
13477     echo "$ac_cs_usage"; exit 0 ;;
13478     --debug | --d* | -d )
13479     debug=: ;;
13480     --file | --fil | --fi | --f )
13481     $ac_shift
13482     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13483     ac_need_defaults=false;;
13484     --header | --heade | --head | --hea )
13485     $ac_shift
13486     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13487     ac_need_defaults=false;;
13488     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13489     | -silent | --silent | --silen | --sile | --sil | --si | --s)
13490     ac_cs_silent=: ;;
13491    
13492     # This is an error.
13493     -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13494     Try \`$0 --help' for more information." >&5
13495     echo "$as_me: error: unrecognized option: $1
13496     Try \`$0 --help' for more information." >&2;}
13497     { (exit 1); exit 1; }; } ;;
13498    
13499     *) ac_config_targets="$ac_config_targets $1" ;;
13500    
13501     esac
13502     shift
13503     done
13504    
13505     ac_configure_extra_args=
13506    
13507     if $ac_cs_silent; then
13508     exec 6>/dev/null
13509     ac_configure_extra_args="$ac_configure_extra_args --silent"
13510     fi
13511    
13512     _ACEOF
13513     cat >>$CONFIG_STATUS <<_ACEOF
13514     if \$ac_cs_recheck; then
13515     echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13516     exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13517     fi
13518    
13519     _ACEOF
13520    
13521    
13522    
13523    
13524    
13525     cat >>$CONFIG_STATUS <<\_ACEOF
13526     for ac_config_target in $ac_config_targets
13527     do
13528     case "$ac_config_target" in
13529     # Handling of arguments.
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 CEOF
13698    
13699 pcg 1.11 _ACEOF
13700 pcg 1.1
13701 pcg 1.11 cat >>$CONFIG_STATUS <<\_ACEOF
13702     # Split the substitutions into bite-sized pieces for seds with
13703     # small command number limits, like on Digital OSF/1 and HP-UX.
13704     ac_max_sed_lines=48
13705     ac_sed_frag=1 # Number of current file.
13706     ac_beg=1 # First line for current file.
13707     ac_end=$ac_max_sed_lines # Line after last line for current file.
13708     ac_more_lines=:
13709     ac_sed_cmds=
13710     while $ac_more_lines; do
13711     if test $ac_beg -gt 1; then
13712     sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13713     else
13714     sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13715     fi
13716     if test ! -s $tmp/subs.frag; then
13717     ac_more_lines=false
13718 pcg 1.1 else
13719 pcg 1.11 # The purpose of the label and of the branching condition is to
13720     # speed up the sed processing (if there are no `@' at all, there
13721     # is no need to browse any of the substitutions).
13722     # These are the two extra sed commands mentioned above.
13723     (echo ':t
13724     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13725     if test -z "$ac_sed_cmds"; then
13726     ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13727     else
13728     ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13729     fi
13730     ac_sed_frag=`expr $ac_sed_frag + 1`
13731     ac_beg=$ac_end
13732     ac_end=`expr $ac_end + $ac_max_sed_lines`
13733 pcg 1.1 fi
13734 pcg 1.11 done
13735     if test -z "$ac_sed_cmds"; then
13736     ac_sed_cmds=cat
13737 pcg 1.1 fi
13738 pcg 1.11 fi # test -n "$CONFIG_FILES"
13739 pcg 1.1
13740 pcg 1.11 _ACEOF
13741     cat >>$CONFIG_STATUS <<\_ACEOF
13742     for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13743 pcg 1.1 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13744 pcg 1.11 case $ac_file in
13745     - | *:- | *:-:* ) # input from stdin
13746     cat >$tmp/stdin
13747     ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13748     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13749     *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13750     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13751     * ) ac_file_in=$ac_file.in ;;
13752 pcg 1.1 esac
13753    
13754 pcg 1.11 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13755     ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13756     $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13757     X"$ac_file" : 'X\(//\)[^/]' \| \
13758     X"$ac_file" : 'X\(//\)$' \| \
13759     X"$ac_file" : 'X\(/\)' \| \
13760     . : '\(.\)' 2>/dev/null ||
13761     echo X"$ac_file" |
13762     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13763     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13764     /^X\(\/\/\)$/{ s//\1/; q; }
13765     /^X\(\/\).*/{ s//\1/; q; }
13766     s/.*/./; q'`
13767     { if $as_mkdir_p; then
13768     mkdir -p "$ac_dir"
13769     else
13770     as_dir="$ac_dir"
13771     as_dirs=
13772     while test ! -d "$as_dir"; do
13773     as_dirs="$as_dir $as_dirs"
13774     as_dir=`(dirname "$as_dir") 2>/dev/null ||
13775     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13776     X"$as_dir" : 'X\(//\)[^/]' \| \
13777     X"$as_dir" : 'X\(//\)$' \| \
13778     X"$as_dir" : 'X\(/\)' \| \
13779     . : '\(.\)' 2>/dev/null ||
13780     echo X"$as_dir" |
13781     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13782     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13783     /^X\(\/\/\)$/{ s//\1/; q; }
13784     /^X\(\/\).*/{ s//\1/; q; }
13785     s/.*/./; q'`
13786     done
13787     test ! -n "$as_dirs" || mkdir $as_dirs
13788     fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13789     echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13790     { (exit 1); exit 1; }; }; }
13791    
13792     ac_builddir=.
13793    
13794     if test "$ac_dir" != .; then
13795     ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13796     # A "../" for each directory in $ac_dir_suffix.
13797     ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13798     else
13799     ac_dir_suffix= ac_top_builddir=
13800     fi
13801    
13802     case $srcdir in
13803     .) # No --srcdir option. We are building in place.
13804     ac_srcdir=.
13805     if test -z "$ac_top_builddir"; then
13806     ac_top_srcdir=.
13807     else
13808     ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13809     fi ;;
13810     [\\/]* | ?:[\\/]* ) # Absolute path.
13811     ac_srcdir=$srcdir$ac_dir_suffix;
13812     ac_top_srcdir=$srcdir ;;
13813     *) # Relative path.
13814     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13815     ac_top_srcdir=$ac_top_builddir$srcdir ;;
13816     esac
13817    
13818     # Do not use `cd foo && pwd` to compute absolute paths, because
13819     # the directories may not exist.
13820     case `pwd` in
13821     .) ac_abs_builddir="$ac_dir";;
13822     *)
13823     case "$ac_dir" in
13824     .) ac_abs_builddir=`pwd`;;
13825     [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13826     *) ac_abs_builddir=`pwd`/"$ac_dir";;
13827     esac;;
13828     esac
13829     case $ac_abs_builddir in
13830     .) ac_abs_top_builddir=${ac_top_builddir}.;;
13831     *)
13832     case ${ac_top_builddir}. in
13833     .) ac_abs_top_builddir=$ac_abs_builddir;;
13834     [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13835     *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13836     esac;;
13837     esac
13838     case $ac_abs_builddir in
13839     .) ac_abs_srcdir=$ac_srcdir;;
13840     *)
13841     case $ac_srcdir in
13842     .) ac_abs_srcdir=$ac_abs_builddir;;
13843     [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13844     *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13845     esac;;
13846     esac
13847     case $ac_abs_builddir in
13848     .) ac_abs_top_srcdir=$ac_top_srcdir;;
13849     *)
13850     case $ac_top_srcdir in
13851     .) ac_abs_top_srcdir=$ac_abs_builddir;;
13852     [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13853     *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13854     esac;;
13855     esac
13856    
13857 pcg 1.1
13858 pcg 1.11 case $INSTALL in
13859     [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13860     *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13861 pcg 1.1 esac
13862    
13863 pcg 1.11 # Let's still pretend it is `configure' which instantiates (i.e., don't
13864     # use $as_me), people would be surprised to read:
13865     # /* config.h. Generated by config.status. */
13866     if test x"$ac_file" = x-; then
13867     configure_input=
13868     else
13869     configure_input="$ac_file. "
13870     fi
13871     configure_input=$configure_input"Generated from `echo $ac_file_in |
13872     sed 's,.*/,,'` by configure."
13873    
13874     # First look for the input files in the build tree, otherwise in the
13875     # src tree.
13876     ac_file_inputs=`IFS=:
13877     for f in $ac_file_in; do
13878     case $f in
13879     -) echo $tmp/stdin ;;
13880     [\\/$]*)
13881     # Absolute (can't be DOS-style, as IFS=:)
13882     test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13883     echo "$as_me: error: cannot find input file: $f" >&2;}
13884     { (exit 1); exit 1; }; }
13885     echo "$f";;
13886     *) # Relative
13887     if test -f "$f"; then
13888     # Build tree
13889     echo "$f"
13890     elif test -f "$srcdir/$f"; then
13891     # Source tree
13892     echo "$srcdir/$f"
13893     else
13894     # /dev/null tree
13895     { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13896     echo "$as_me: error: cannot find input file: $f" >&2;}
13897     { (exit 1); exit 1; }; }
13898     fi;;
13899     esac
13900     done` || { (exit 1); exit 1; }
13901    
13902     if test x"$ac_file" != x-; then
13903     { echo "$as_me:$LINENO: creating $ac_file" >&5
13904     echo "$as_me: creating $ac_file" >&6;}
13905     rm -f "$ac_file"
13906     fi
13907     _ACEOF
13908     cat >>$CONFIG_STATUS <<_ACEOF
13909     sed "$ac_vpsub
13910     $extrasub
13911     _ACEOF
13912     cat >>$CONFIG_STATUS <<\_ACEOF
13913     :t
13914     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13915     s,@configure_input@,$configure_input,;t t
13916     s,@srcdir@,$ac_srcdir,;t t
13917     s,@abs_srcdir@,$ac_abs_srcdir,;t t
13918     s,@top_srcdir@,$ac_top_srcdir,;t t
13919     s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13920     s,@builddir@,$ac_builddir,;t t
13921     s,@abs_builddir@,$ac_abs_builddir,;t t
13922     s,@top_builddir@,$ac_top_builddir,;t t
13923     s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13924     s,@INSTALL@,$ac_INSTALL,;t t
13925     " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13926     rm -f $tmp/stdin
13927     if test x"$ac_file" != x-; then
13928     mv $tmp/out $ac_file
13929     else
13930     cat $tmp/out
13931     rm -f $tmp/out
13932     fi
13933 pcg 1.1
13934 pcg 1.11 done
13935     _ACEOF
13936     cat >>$CONFIG_STATUS <<\_ACEOF
13937 pcg 1.1
13938 pcg 1.11 #
13939     # CONFIG_HEADER section.
13940     #
13941 pcg 1.1
13942     # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13943     # NAME is the cpp macro being defined and VALUE is the value it is being given.
13944     #
13945     # ac_d sets the value in "#define NAME VALUE" lines.
13946 pcg 1.11 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13947     ac_dB='[ ].*$,\1#\2'
13948     ac_dC=' '
13949     ac_dD=',;t'
13950     # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13951     ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13952     ac_uB='$,\1#\2define\3'
13953 pcg 1.1 ac_uC=' '
13954 pcg 1.11 ac_uD=',;t'
13955 pcg 1.1
13956 pcg 1.11 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13957 pcg 1.1 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13958 pcg 1.11 case $ac_file in
13959     - | *:- | *:-:* ) # input from stdin
13960     cat >$tmp/stdin
13961     ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13962     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13963     *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13964     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13965     * ) ac_file_in=$ac_file.in ;;
13966 pcg 1.1 esac
13967    
13968 pcg 1.11 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13969     echo "$as_me: creating $ac_file" >&6;}
13970 pcg 1.1
13971 pcg 1.11 # First look for the input files in the build tree, otherwise in the
13972     # src tree.
13973     ac_file_inputs=`IFS=:
13974     for f in $ac_file_in; do
13975     case $f in
13976     -) echo $tmp/stdin ;;
13977     [\\/$]*)
13978     # Absolute (can't be DOS-style, as IFS=:)
13979     test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13980     echo "$as_me: error: cannot find input file: $f" >&2;}
13981     { (exit 1); exit 1; }; }
13982     # Do quote $f, to prevent DOS paths from being IFS'd.
13983     echo "$f";;
13984     *) # Relative
13985     if test -f "$f"; then
13986     # Build tree
13987     echo "$f"
13988     elif test -f "$srcdir/$f"; then
13989     # Source tree
13990     echo "$srcdir/$f"
13991     else
13992     # /dev/null tree
13993     { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13994     echo "$as_me: error: cannot find input file: $f" >&2;}
13995     { (exit 1); exit 1; }; }
13996     fi;;
13997     esac
13998     done` || { (exit 1); exit 1; }
13999     # Remove the trailing spaces.
14000     sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14001    
14002     _ACEOF
14003    
14004     # Transform confdefs.h into two sed scripts, `conftest.defines' and
14005     # `conftest.undefs', that substitutes the proper values into
14006     # config.h.in to produce config.h. The first handles `#define'
14007     # templates, and the second `#undef' templates.
14008     # And first: Protect against being on the right side of a sed subst in
14009     # config.status. Protect against being in an unquoted here document
14010     # in config.status.
14011     rm -f conftest.defines conftest.undefs
14012     # Using a here document instead of a string reduces the quoting nightmare.
14013     # Putting comments in sed scripts is not portable.
14014     #
14015     # `end' is used to avoid that the second main sed command (meant for
14016     # 0-ary CPP macros) applies to n-ary macro definitions.
14017     # See the Autoconf documentation for `clear'.
14018     cat >confdef2sed.sed <<\_ACEOF
14019     s/[\\&,]/\\&/g
14020     s,[\\$`],\\&,g
14021     t clear
14022     : clear
14023     s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14024     t end
14025     s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14026     : end
14027     _ACEOF
14028     # If some macros were called several times there might be several times
14029     # the same #defines, which is useless. Nevertheless, we may not want to
14030     # sort them, since we want the *last* AC-DEFINE to be honored.
14031     uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14032     sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14033     rm -f confdef2sed.sed
14034 pcg 1.1
14035     # This sed command replaces #undef with comments. This is necessary, for
14036     # example, in the case of _POSIX_SOURCE, which is predefined and required
14037     # on some systems where configure will not decide to define it.
14038 pcg 1.11 cat >>conftest.undefs <<\_ACEOF
14039     s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14040     _ACEOF
14041    
14042     # Break up conftest.defines because some shells have a limit on the size
14043     # of here documents, and old seds have small limits too (100 cmds).
14044     echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14045     echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14046     echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14047     echo ' :' >>$CONFIG_STATUS
14048     rm -f conftest.tail
14049     while grep . conftest.defines >/dev/null
14050     do
14051     # Write a limited-size here document to $tmp/defines.sed.
14052     echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14053     # Speed up: don't consider the non `#define' lines.
14054     echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14055     # Work around the forget-to-reset-the-flag bug.
14056     echo 't clr' >>$CONFIG_STATUS
14057     echo ': clr' >>$CONFIG_STATUS
14058     sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14059     echo 'CEOF
14060     sed -f $tmp/defines.sed $tmp/in >$tmp/out
14061     rm -f $tmp/in
14062     mv $tmp/out $tmp/in
14063     ' >>$CONFIG_STATUS
14064     sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14065     rm -f conftest.defines
14066     mv conftest.tail conftest.defines
14067     done
14068     rm -f conftest.defines
14069     echo ' fi # grep' >>$CONFIG_STATUS
14070     echo >>$CONFIG_STATUS
14071    
14072     # Break up conftest.undefs because some shells have a limit on the size
14073     # of here documents, and old seds have small limits too (100 cmds).
14074     echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
14075 pcg 1.1 rm -f conftest.tail
14076 pcg 1.11 while grep . conftest.undefs >/dev/null
14077 pcg 1.1 do
14078 pcg 1.11 # Write a limited-size here document to $tmp/undefs.sed.
14079     echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14080     # Speed up: don't consider the non `#undef'
14081     echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14082     # Work around the forget-to-reset-the-flag bug.
14083     echo 't clr' >>$CONFIG_STATUS
14084     echo ': clr' >>$CONFIG_STATUS
14085     sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14086 pcg 1.1 echo 'CEOF
14087 pcg 1.11 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14088     rm -f $tmp/in
14089     mv $tmp/out $tmp/in
14090     ' >>$CONFIG_STATUS
14091     sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14092     rm -f conftest.undefs
14093     mv conftest.tail conftest.undefs
14094     done
14095     rm -f conftest.undefs
14096    
14097     cat >>$CONFIG_STATUS <<\_ACEOF
14098     # Let's still pretend it is `configure' which instantiates (i.e., don't
14099     # use $as_me), people would be surprised to read:
14100     # /* config.h. Generated by config.status. */
14101     if test x"$ac_file" = x-; then
14102     echo "/* Generated by configure. */" >$tmp/config.h
14103     else
14104     echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
14105     fi
14106     cat $tmp/in >>$tmp/config.h
14107     rm -f $tmp/in
14108     if test x"$ac_file" != x-; then
14109     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
14110     { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14111     echo "$as_me: $ac_file is unchanged" >&6;}
14112     else
14113     ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14114     $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14115     X"$ac_file" : 'X\(//\)[^/]' \| \
14116     X"$ac_file" : 'X\(//\)$' \| \
14117     X"$ac_file" : 'X\(/\)' \| \
14118     . : '\(.\)' 2>/dev/null ||
14119     echo X"$ac_file" |
14120     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14121     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14122     /^X\(\/\/\)$/{ s//\1/; q; }
14123     /^X\(\/\).*/{ s//\1/; q; }
14124     s/.*/./; q'`
14125     { if $as_mkdir_p; then
14126     mkdir -p "$ac_dir"
14127     else
14128     as_dir="$ac_dir"
14129     as_dirs=
14130     while test ! -d "$as_dir"; do
14131     as_dirs="$as_dir $as_dirs"
14132     as_dir=`(dirname "$as_dir") 2>/dev/null ||
14133     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14134     X"$as_dir" : 'X\(//\)[^/]' \| \
14135     X"$as_dir" : 'X\(//\)$' \| \
14136     X"$as_dir" : 'X\(/\)' \| \
14137     . : '\(.\)' 2>/dev/null ||
14138     echo X"$as_dir" |
14139     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14140     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14141     /^X\(\/\/\)$/{ s//\1/; q; }
14142     /^X\(\/\).*/{ s//\1/; q; }
14143     s/.*/./; q'`
14144     done
14145     test ! -n "$as_dirs" || mkdir $as_dirs
14146     fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14147     echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14148     { (exit 1); exit 1; }; }; }
14149    
14150     rm -f $ac_file
14151     mv $tmp/config.h $ac_file
14152 pcg 1.1 fi
14153 pcg 1.11 else
14154     cat $tmp/config.h
14155     rm -f $tmp/config.h
14156 pcg 1.1 fi
14157 pcg 1.11 done
14158     _ACEOF
14159    
14160     cat >>$CONFIG_STATUS <<\_ACEOF
14161 pcg 1.1
14162 pcg 1.11 { (exit 0); exit 0; }
14163     _ACEOF
14164     chmod +x $CONFIG_STATUS
14165     ac_clean_files=$ac_clean_files_save
14166 pcg 1.1
14167    
14168 pcg 1.11 # configure is writing to config.log, and then calls config.status.
14169     # config.status does its own redirection, appending to config.log.
14170     # Unfortunately, on DOS this fails, as config.log is still kept open
14171     # by configure, so config.status won't be able to write to it; its
14172     # output is simply discarded. So we exec the FD to /dev/null,
14173     # effectively closing config.log, so it can be properly (re)opened and
14174     # appended to by config.status. When coming back to configure, we
14175     # need to make the FD available again.
14176     if test "$no_create" != yes; then
14177     ac_cs_success=:
14178     ac_config_status_args=
14179     test "$silent" = yes &&
14180     ac_config_status_args="$ac_config_status_args --quiet"
14181     exec 5>/dev/null
14182     $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14183     exec 5>>config.log
14184     # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14185     # would make configure fail if this is the last instruction.
14186     $ac_cs_success || { (exit 1); exit 1; }
14187     fi
14188 pcg 1.1
14189    
14190     echo "Configuration:
14191    
14192     Rxvt version: $VERSION : $DATE
14193     Source code location: $srcdir
14194     Install path: ${prefix}/bin
14195 pcg 1.13 Compiler: $CXX
14196     Compiler flags: $CFLAGS
14197     Linker: $LINKER"
14198 pcg 1.1
14199     if test "$MALLOC_TYPE" = S; then
14200     echo " malloc support: system default"
14201     fi
14202     if test "$MALLOC_TYPE" = G; then
14203     echo " malloc support: Gray Watson's dmalloc"
14204     fi
14205     if test "$MALLOC_TYPE" = D; then
14206     echo " malloc support: Doug Lea's malloc"
14207     fi
14208    
14209     if test x$support_xpm = xyes; then
14210     echo " Xpm library: $XPM_LIBS"
14211     fi
14212    
14213     echo "
14214     The following are set in config.h
14215     "
14216     echo " pty/tty type: "$rxvt_cv_ptys
14217     if test x$support_utmp != xyes; then
14218 pcg 1.20 echo " utmp support: disabled"
14219     echo
14220 pcg 1.1 else
14221     echo " utmp support: enabled
14222     utmp file: $rxvt_cv_path_utmp
14223     utmpx file: $rxvt_cv_path_utmpx
14224     wtmp file: $rxvt_cv_path_wtmp
14225     wtmpx file: $rxvt_cv_path_wtmpx
14226     lastlog file: $rxvt_cv_path_lastlog
14227 root 1.60 ttys/ttytab file: $rxvt_cv_path_ttytab
14228     embedded perl: $support_perl"
14229 pcg 1.20 echo
14230 pcg 1.1 fi
14231     if test x$term != x; then
14232 pcg 1.18 echo " set TERM to: $term"
14233 pcg 1.1 fi
14234     if test x$terminfo != x; then
14235 pcg 1.18 echo " set TERMINFO to: $terminfo"
14236     fi
14237     echo " default resource name: $RESNAME"
14238     echo " resource class: $RESCLASS"
14239     if test x$RESFALLBACK != x; then
14240     echo " resource class fallback: $RESFALLBACK"
14241 pcg 1.1 fi
14242 pcg 1.18 echo
14243 pcg 1.1 if test x$rxvt_cv_ptys = xUNKNOWN; then
14244     echo ".----------------------------------------------------------------."
14245     echo ". WARNING: could not determine pty/tty type. Do not build until ."
14246     echo ". the appropriate PTYS_ARE_* is defined in config.h ."
14247     echo ".----------------------------------------------------------------."
14248     fi
14249     if test x$support_xpm = xneedsmanualspecification; then
14250     echo ".----------------------------------------------------------------."
14251     echo ". WARNING: --enable-xpm-background was specified however the ."
14252     echo ". XPM includes files and libraries could not be found. ."
14253     echo ". XPM backgrounds are now being DISABLED! If you want ."
14254     echo ". to use them you should rerun configure with the ."
14255     echo ". appropriate --with-xpm-includes=/path/to/xpm/includes ."
14256     echo ". and --with-xpm-library=/path/to/xpm/library lines. ."
14257     echo ".----------------------------------------------------------------."
14258     fi
14259     if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then
14260     echo ".----------------------------------------------------------------."
14261     echo ". WARNING: --enable-xim was specified however the locale support ."
14262     echo ". functions could not be found. ."
14263     echo ". XIM is now being DISABLED! ."
14264     echo ".----------------------------------------------------------------."
14265     fi
14266 pcg 1.20
14267 root 1.53 echo " *** Optionally check src/feature.h for further options ***"
14268 pcg 1.20 echo
14269    
14270     echo ".----------------------------------------------------------------."
14271 root 1.55 echo ". NOTE: some features are disabled by default, try ."
14272 root 1.53 echo ". configure --help to get an idea of the optional features, ."
14273     echo ". or read ./README.configure ."
14274     echo ". ."
14275     echo ". The script ./reconf gives a reasonable baseline, try it if ."
14276     echo ". you do not want to read documentation and still want some ."
14277     echo ". useful features. ."
14278 pcg 1.20 echo ".----------------------------------------------------------------."
14279     echo
14280