ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/configure
Revision: 1.104
Committed: Sat Jun 23 13:41:19 2007 UTC (17 years ago) by ayin
Branch: MAIN
Changes since 1.103: +5052 -5660 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 ayin 1.104 # Generated by GNU Autoconf 2.59.
4 pcg 1.1 #
5 ayin 1.104 # 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 ayin 1.104 # Be Bourne compatible
13 pcg 1.11 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 ayin 1.104 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20     set -o posix
21 pcg 1.11 fi
22 ayin 1.104 DUALCASE=1; export DUALCASE # for MKS sh
23 pcg 1.11
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 ayin 1.104 $as_unset ENV MAIL MAILPATH
34 pcg 1.11 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 ayin 1.104 $as_unset $as_var
48 pcg 1.11 fi
49     done
50    
51     # Required to use basename.
52 ayin 1.104 if expr a : '\(a\)' >/dev/null 2>&1; then
53 pcg 1.11 as_expr=expr
54     else
55     as_expr=false
56     fi
57    
58 ayin 1.104 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 pcg 1.11 as_basename=basename
60     else
61     as_basename=false
62     fi
63    
64    
65     # Name of the executable.
66 ayin 1.104 as_me=`$as_basename "$0" ||
67 pcg 1.11 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68     X"$0" : 'X\(//\)$' \| \
69 ayin 1.104 X"$0" : 'X\(/\)$' \| \
70     . : '\(.\)' 2>/dev/null ||
71 pcg 1.11 echo X/"$0" |
72 ayin 1.104 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73     /^X\/\(\/\/\)$/{ s//\1/; q; }
74     /^X\/\(\/\).*/{ s//\1/; q; }
75     s/.*/./; q'`
76 ayin 1.102
77    
78 ayin 1.104 # 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 ayin 1.102
86 ayin 1.104 # 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 ayin 1.102 fi
98    
99 pcg 1.11
100 ayin 1.104 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 pcg 1.11
117 ayin 1.104 ;;
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 pcg 1.11 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 ayin 1.104 for as_base in sh bash ksh sh5; do
136     case $as_dir in
137 pcg 1.11 /*)
138 ayin 1.104 if ("$as_dir/$as_base" -c '
139 ayin 1.102 as_lineno_1=$LINENO
140     as_lineno_2=$LINENO
141 ayin 1.104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 ayin 1.102 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 ayin 1.104 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 pcg 1.11
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 ayin 1.104 # 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 pcg 1.11 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 ayin 1.104 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164     sed '=' <$as_myself |
165 pcg 1.11 sed '
166     N
167 ayin 1.104 s,$,-,
168     : loop
169     s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 pcg 1.11 t loop
171 ayin 1.104 s,-$,,
172     s,^['$as_cr_digits']*\n,,
173 pcg 1.11 ' >$as_me.lineno &&
174 ayin 1.104 chmod +x $as_me.lineno ||
175 pcg 1.11 { 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 ayin 1.104 # original and so on. Autoconf is especially sensible to this).
181     . ./$as_me.lineno
182 pcg 1.11 # Exit status is that of the last command.
183     exit
184     }
185    
186    
187 ayin 1.104 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 pcg 1.11 esac
193    
194 ayin 1.104 if expr a : '\(a\)' >/dev/null 2>&1; then
195 pcg 1.11 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 ayin 1.104 # 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 pcg 1.11 as_ln_s='cp -p'
208 ayin 1.104 else
209     as_ln_s='ln -s'
210     fi
211 pcg 1.11 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 ayin 1.104 rm -f conf$$ conf$$.exe conf$$.file
217 pcg 1.11
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 ayin 1.104 as_executable_p="test -f"
226 pcg 1.11
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 ayin 1.104 # 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 ayin 1.104 exec 6>&1
250    
251 pcg 1.11 #
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 ayin 1.104 # 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 pcg 1.11 # 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 ayin 1.104 #if HAVE_SYS_TYPES_H
279 pcg 1.11 # include <sys/types.h>
280     #endif
281 ayin 1.104 #if HAVE_SYS_STAT_H
282 pcg 1.11 # include <sys/stat.h>
283     #endif
284 ayin 1.104 #if STDC_HEADERS
285 pcg 1.11 # include <stdlib.h>
286     # include <stddef.h>
287     #else
288 ayin 1.104 # if HAVE_STDLIB_H
289 pcg 1.11 # include <stdlib.h>
290     # endif
291     #endif
292 ayin 1.104 #if HAVE_STRING_H
293     # if !STDC_HEADERS && HAVE_MEMORY_H
294 pcg 1.11 # include <memory.h>
295     # endif
296     # include <string.h>
297     #endif
298 ayin 1.104 #if HAVE_STRINGS_H
299 pcg 1.11 # include <strings.h>
300     #endif
301 ayin 1.104 #if HAVE_INTTYPES_H
302 pcg 1.11 # include <inttypes.h>
303 ayin 1.104 #else
304     # if HAVE_STDINT_H
305     # include <stdint.h>
306     # endif
307 pcg 1.11 #endif
308 ayin 1.104 #if HAVE_UNISTD_H
309 pcg 1.11 # include <unistd.h>
310     #endif"
311    
312 ayin 1.104 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os VERSION DATE LSMDATE LIBVERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA EGREP LINKER CXXLIB INSTALL_LIBRXVT RXVTNAME TIC CXXCPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS afterimage_config XPM_CPPFLAGS XPM_CFLAGS XPM_LIBS rxvt_int16_typedef rxvt_uint16_typedef rxvt_int32_typedef rxvt_uint32_typedef rxvt_intp_define rxvt_u_intp_define PKG_CONFIG XFT_CONFIG PERL PERLLIB PERLFLAGS PERLPRIVLIBEXP IF_PERL PERL_O LIBAFTERIMAGE_CFLAGS AFTERIMAGE_LIBS include_stdint_h include_stdarg_h include_stdlib_h include_unistd_h include_string_h include_fcntl_h include_util_h include_assert_h include_sys_ioctl_h include_sys_select_h include_sys_strredir_h include_sys_time_h include_time_h LIBOBJS LTLIBOBJS'
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 ayin 1.104 datadir='${prefix}/share'
344 pcg 1.1 sysconfdir='${prefix}/etc'
345     sharedstatedir='${prefix}/com'
346     localstatedir='${prefix}/var'
347 ayin 1.104 libdir='${exec_prefix}/lib'
348 pcg 1.1 includedir='${prefix}/include'
349     oldincludedir='/usr/include'
350 ayin 1.104 infodir='${prefix}/info'
351     mandir='${prefix}/man'
352 pcg 1.1
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 ayin 1.104 eval "$ac_prev=\$ac_option"
359 pcg 1.1 ac_prev=
360     continue
361     fi
362    
363 ayin 1.104 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 ayin 1.104 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 ayin 1.104 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 pcg 1.1 ac_prev=datadir ;;
391 ayin 1.104 -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 ayin 1.104 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 pcg 1.11 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400     { (exit 1); exit 1; }; }
401 ayin 1.104 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 ayin 1.104 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 pcg 1.11 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409     { (exit 1); exit 1; }; }
410 ayin 1.104 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412     *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413     *) ac_optarg=yes ;;
414     esac
415     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 ayin 1.104 | --localstate | --localstat | --localsta | --localst \
468     | --locals | --local | --loca | --loc | --lo)
469 pcg 1.1 ac_prev=localstatedir ;;
470     -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 ayin 1.104 | --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 ayin 1.104 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 pcg 1.11 { echo "$as_me: error: invalid package name: $ac_package" >&2
591     { (exit 1); exit 1; }; }
592 ayin 1.104 ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594     *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595     *) ac_optarg=yes ;;
596     esac
597     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 ayin 1.104 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 pcg 1.11 { echo "$as_me: error: invalid package name: $ac_package" >&2
604     { (exit 1); exit 1; }; }
605 ayin 1.104 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 ayin 1.104 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639 pcg 1.11 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 ayin 1.104 # Be sure to have absolute paths.
659     for ac_var in exec_prefix prefix
660 pcg 1.11 do
661 ayin 1.104 eval ac_val=$`echo $ac_var`
662 pcg 1.11 case $ac_val in
663 ayin 1.104 [\\/$]* | ?:[\\/]* | 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    
669     # Be sure to have absolute paths.
670     for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671     localstatedir libdir includedir oldincludedir infodir mandir
672     do
673     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 ayin 1.104 # Try the directory containing this script, then its parent.
709     ac_confdir=`(dirname "$0") 2>/dev/null ||
710 pcg 1.11 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711     X"$0" : 'X\(//\)[^/]' \| \
712     X"$0" : 'X\(//\)$' \| \
713 ayin 1.104 X"$0" : 'X\(/\)' \| \
714     . : '\(.\)' 2>/dev/null ||
715 pcg 1.11 echo X"$0" |
716 ayin 1.104 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 ayin 1.104 if test ! -r $srcdir/$ac_unique_file; then
723 pcg 1.1 srcdir=..
724     fi
725     else
726     ac_srcdir_defaulted=no
727     fi
728 ayin 1.104 if test ! -r $srcdir/$ac_unique_file; then
729     if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731     { (exit 1); exit 1; }; }
732     else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734     { (exit 1); exit 1; }; }
735     fi
736     fi
737     (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738     { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739     { (exit 1); exit 1; }; }
740     srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741     ac_env_build_alias_set=${build_alias+set}
742     ac_env_build_alias_value=$build_alias
743     ac_cv_env_build_alias_set=${build_alias+set}
744     ac_cv_env_build_alias_value=$build_alias
745     ac_env_host_alias_set=${host_alias+set}
746     ac_env_host_alias_value=$host_alias
747     ac_cv_env_host_alias_set=${host_alias+set}
748     ac_cv_env_host_alias_value=$host_alias
749     ac_env_target_alias_set=${target_alias+set}
750     ac_env_target_alias_value=$target_alias
751     ac_cv_env_target_alias_set=${target_alias+set}
752     ac_cv_env_target_alias_value=$target_alias
753     ac_env_CC_set=${CC+set}
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     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 ayin 1.102
786 pcg 1.11 #
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 ayin 1.104 _ACEOF
814    
815     cat <<_ACEOF
816 pcg 1.11 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 ayin 1.104 --datadir=DIR read-only architecture-independent data [PREFIX/share]
834 pcg 1.11 --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 ayin 1.104 --infodir=DIR info documentation [PREFIX/info]
841     --mandir=DIR man documentation [PREFIX/man]
842 pcg 1.11 _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 root 1.103 --enable-xpm-background enable background pixmaps
876     --enable-afterimage enable integration with libAfterImage for background images
877     --enable-afterstep enable integration with AfterStep window manager
878 pcg 1.11 --enable-transparency enable transparent backgrounds
879 pcg 1.24 --enable-tinting enable tinting of transparent bg
880 root 1.31 --enable-fading enable colors fading when off focus
881 pcg 1.11 --enable-rxvt-scroll enable rxvt style scrollbar
882     --enable-next-scroll enable NeXT style scrollbar
883     --enable-xterm-scroll enable Xterm style scrollbar
884 root 1.60 --enable-perl enable embedded perl interpreter
885 pcg 1.11 --enable-plain-scroll enable plain style scrollbar
886     --enable-xim XIM (X Input Method) protocol support
887     --disable-backspace-key disable handling of the backspace key
888     --disable-delete-key disable handling of the delete key
889     --disable-resources disable all resource checking
890 root 1.26 --enable-8bitctrls enable 8 bit control sequences (not recommended)
891 pcg 1.15 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
892 pcg 1.11 --disable-swapscreen disable swap screen support
893 root 1.34 --enable-iso14755 enable support for extended ISO 14755 modes
894 pcg 1.11 --enable-frills enable support for rarely used features
895     --enable-keepscrolling enable continual scrolling on scrollbar arrow press
896     --enable-selectionscrolling enable scrolling during selections
897     --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
898     --enable-slipwheeling enable slip wheel scrolling (requires previous)
899     --enable-smart-resize enable smart growth/shrink behaviour
900     --enable-text-blink enable blinking text
901     --enable-pointer-blank enable pointer blank when typing or inactive pointer
902 root 1.92 --enable-utmp enable utmp (utmpx) support
903     --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
904     --enable-lastlog enable lastlog support (requires --enable-utmp)
905 pcg 1.11
906     Optional Packages:
907     --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
908     --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
909 root 1.103 --with-afterimage-config=DIR use libAfterImage config script in DIR
910 root 1.41 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)
911 pcg 1.15 --with-res-name=NAME use this as default resource name (default: urxvt)
912 pcg 1.18 --with-res-class=CLASS use this as the resource class (default: URxvt)
913 pcg 1.15 --with-name=NAME set the basename for the installed binaries (default: urxvt)
914     --with-term=NAME set the terminal to NAME (default: rxvt)
915 pcg 1.11 --with-terminfo=PATH set the path to the terminfo tree to PATH
916     --with-x use the X Window System
917     --with-xpm-includes=DIR use XPM includes in DIR
918     --with-xpm-library=DIR use XPM library in DIR
919     --with-xpm use XPM
920    
921     Some influential environment variables:
922     CC C compiler command
923     CFLAGS C compiler flags
924     LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
925     nonstandard directory <lib dir>
926 ayin 1.104 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
927     headers in a nonstandard directory <include dir>
928 pcg 1.11 CXX C++ compiler command
929     CXXFLAGS C++ compiler flags
930     CPP C preprocessor
931 pcg 1.13 CXXCPP C++ preprocessor
932 pcg 1.11
933     Use these variables to override the choices made by `configure' or to help
934     it to find libraries and programs with nonstandard names/locations.
935    
936     _ACEOF
937     fi
938    
939     if test "$ac_init_help" = "recursive"; then
940     # If there are subdirs, report their specific --help.
941 ayin 1.104 ac_popdir=`pwd`
942 pcg 1.11 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
943 ayin 1.104 test -d $ac_dir || continue
944 pcg 1.11 ac_builddir=.
945    
946 ayin 1.104 if test "$ac_dir" != .; then
947 pcg 1.11 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
948 ayin 1.104 # A "../" for each directory in $ac_dir_suffix.
949     ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
950     else
951     ac_dir_suffix= ac_top_builddir=
952     fi
953 pcg 1.11
954     case $srcdir in
955 ayin 1.104 .) # No --srcdir option. We are building in place.
956 pcg 1.11 ac_srcdir=.
957 ayin 1.104 if test -z "$ac_top_builddir"; then
958     ac_top_srcdir=.
959     else
960     ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
961     fi ;;
962     [\\/]* | ?:[\\/]* ) # Absolute path.
963 pcg 1.11 ac_srcdir=$srcdir$ac_dir_suffix;
964 ayin 1.104 ac_top_srcdir=$srcdir ;;
965     *) # Relative path.
966     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
967     ac_top_srcdir=$ac_top_builddir$srcdir ;;
968     esac
969    
970     # Do not use `cd foo && pwd` to compute absolute paths, because
971     # the directories may not exist.
972     case `pwd` in
973     .) ac_abs_builddir="$ac_dir";;
974     *)
975     case "$ac_dir" in
976     .) ac_abs_builddir=`pwd`;;
977     [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
978     *) ac_abs_builddir=`pwd`/"$ac_dir";;
979     esac;;
980     esac
981     case $ac_abs_builddir in
982     .) ac_abs_top_builddir=${ac_top_builddir}.;;
983     *)
984     case ${ac_top_builddir}. in
985     .) ac_abs_top_builddir=$ac_abs_builddir;;
986     [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
987     *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
988     esac;;
989     esac
990     case $ac_abs_builddir in
991     .) ac_abs_srcdir=$ac_srcdir;;
992     *)
993     case $ac_srcdir in
994     .) ac_abs_srcdir=$ac_abs_builddir;;
995     [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
996     *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
997     esac;;
998     esac
999     case $ac_abs_builddir in
1000     .) ac_abs_top_srcdir=$ac_top_srcdir;;
1001     *)
1002     case $ac_top_srcdir in
1003     .) ac_abs_top_srcdir=$ac_abs_builddir;;
1004     [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1005     *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1006     esac;;
1007 pcg 1.11 esac
1008    
1009 ayin 1.104 cd $ac_dir
1010     # Check for guested configure; otherwise get Cygnus style configure.
1011     if test -f $ac_srcdir/configure.gnu; then
1012     echo
1013     $SHELL $ac_srcdir/configure.gnu --help=recursive
1014     elif test -f $ac_srcdir/configure; then
1015     echo
1016     $SHELL $ac_srcdir/configure --help=recursive
1017     elif test -f $ac_srcdir/configure.ac ||
1018     test -f $ac_srcdir/configure.in; then
1019     echo
1020     $ac_configure --help
1021 pcg 1.11 else
1022     echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1023 ayin 1.104 fi
1024     cd $ac_popdir
1025 pcg 1.11 done
1026     fi
1027    
1028 ayin 1.104 test -n "$ac_init_help" && exit 0
1029 pcg 1.11 if $ac_init_version; then
1030     cat <<\_ACEOF
1031    
1032 ayin 1.104 Copyright (C) 2003 Free Software Foundation, Inc.
1033 pcg 1.11 This configure script is free software; the Free Software Foundation
1034     gives unlimited permission to copy, distribute and modify it.
1035     _ACEOF
1036 ayin 1.104 exit 0
1037 pcg 1.11 fi
1038 ayin 1.104 exec 5>config.log
1039     cat >&5 <<_ACEOF
1040 pcg 1.11 This file contains any messages produced by compilers while
1041     running configure, to aid debugging if configure makes a mistake.
1042    
1043     It was created by $as_me, which was
1044 ayin 1.104 generated by GNU Autoconf 2.59. Invocation command line was
1045 pcg 1.11
1046     $ $0 $@
1047    
1048     _ACEOF
1049     {
1050     cat <<_ASUNAME
1051     ## --------- ##
1052     ## Platform. ##
1053     ## --------- ##
1054    
1055     hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1056     uname -m = `(uname -m) 2>/dev/null || echo unknown`
1057     uname -r = `(uname -r) 2>/dev/null || echo unknown`
1058     uname -s = `(uname -s) 2>/dev/null || echo unknown`
1059     uname -v = `(uname -v) 2>/dev/null || echo unknown`
1060    
1061     /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1062     /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1063    
1064     /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1065     /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1066     /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1067 ayin 1.104 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1068 pcg 1.11 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1069     /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1070     /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1071    
1072     _ASUNAME
1073    
1074     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1075     for as_dir in $PATH
1076     do
1077     IFS=$as_save_IFS
1078     test -z "$as_dir" && as_dir=.
1079     echo "PATH: $as_dir"
1080     done
1081    
1082     } >&5
1083    
1084     cat >&5 <<_ACEOF
1085    
1086    
1087     ## ----------- ##
1088     ## Core tests. ##
1089     ## ----------- ##
1090    
1091     _ACEOF
1092    
1093    
1094     # Keep a trace of the command line.
1095     # Strip out --no-create and --no-recursion so they do not pile up.
1096     # Strip out --silent because we don't want to record it for future runs.
1097     # Also quote any args containing shell meta-characters.
1098     # Make two passes to allow for proper duplicate-argument suppression.
1099     ac_configure_args=
1100     ac_configure_args0=
1101     ac_configure_args1=
1102 ayin 1.104 ac_sep=
1103 pcg 1.11 ac_must_keep_next=false
1104     for ac_pass in 1 2
1105     do
1106     for ac_arg
1107     do
1108     case $ac_arg in
1109     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1110     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1111     | -silent | --silent | --silen | --sile | --sil)
1112     continue ;;
1113 ayin 1.104 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1114 pcg 1.11 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1115     esac
1116     case $ac_pass in
1117     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1118     2)
1119     ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1120     if test $ac_must_keep_next = true; then
1121     ac_must_keep_next=false # Got value, back to normal.
1122     else
1123     case $ac_arg in
1124     *=* | --config-cache | -C | -disable-* | --disable-* \
1125     | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1126     | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1127     | -with-* | --with-* | -without-* | --without-* | --x)
1128     case "$ac_configure_args0 " in
1129     "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1130     esac
1131     ;;
1132     -* ) ac_must_keep_next=true ;;
1133     esac
1134     fi
1135 ayin 1.104 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1136     # Get rid of the leading space.
1137     ac_sep=" "
1138 pcg 1.11 ;;
1139     esac
1140     done
1141     done
1142     $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1143     $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1144    
1145     # When interrupted or exit'd, cleanup temporary files, and complete
1146     # config.log. We remove comments because anyway the quotes in there
1147     # would cause problems or look ugly.
1148 ayin 1.104 # WARNING: Be sure not to use single quotes in there, as some shells,
1149     # such as our DU 5.0 friend, will then `close' the trap.
1150 pcg 1.11 trap 'exit_status=$?
1151     # Save into config.log some information that might help in debugging.
1152     {
1153     echo
1154    
1155     cat <<\_ASBOX
1156     ## ---------------- ##
1157     ## Cache variables. ##
1158     ## ---------------- ##
1159     _ASBOX
1160     echo
1161     # The following way of writing the cache mishandles newlines in values,
1162 ayin 1.104 {
1163 pcg 1.11 (set) 2>&1 |
1164 ayin 1.104 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1165     *ac_space=\ *)
1166 pcg 1.11 sed -n \
1167 ayin 1.104 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1168     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1169     ;;
1170 pcg 1.11 *)
1171 ayin 1.104 sed -n \
1172     "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1173 pcg 1.11 ;;
1174 ayin 1.104 esac;
1175     }
1176 pcg 1.11 echo
1177    
1178     cat <<\_ASBOX
1179     ## ----------------- ##
1180     ## Output variables. ##
1181     ## ----------------- ##
1182     _ASBOX
1183     echo
1184     for ac_var in $ac_subst_vars
1185     do
1186 ayin 1.104 eval ac_val=$`echo $ac_var`
1187     echo "$ac_var='"'"'$ac_val'"'"'"
1188 pcg 1.11 done | sort
1189     echo
1190    
1191     if test -n "$ac_subst_files"; then
1192     cat <<\_ASBOX
1193 ayin 1.104 ## ------------- ##
1194     ## Output files. ##
1195     ## ------------- ##
1196 pcg 1.11 _ASBOX
1197     echo
1198     for ac_var in $ac_subst_files
1199     do
1200 ayin 1.104 eval ac_val=$`echo $ac_var`
1201     echo "$ac_var='"'"'$ac_val'"'"'"
1202 pcg 1.11 done | sort
1203     echo
1204     fi
1205    
1206     if test -s confdefs.h; then
1207     cat <<\_ASBOX
1208     ## ----------- ##
1209     ## confdefs.h. ##
1210     ## ----------- ##
1211     _ASBOX
1212     echo
1213 ayin 1.104 sed "/^$/d" confdefs.h | sort
1214 pcg 1.11 echo
1215     fi
1216     test "$ac_signal" != 0 &&
1217     echo "$as_me: caught signal $ac_signal"
1218     echo "$as_me: exit $exit_status"
1219     } >&5
1220 ayin 1.104 rm -f core *.core &&
1221     rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1222 pcg 1.11 exit $exit_status
1223 ayin 1.104 ' 0
1224 pcg 1.11 for ac_signal in 1 2 13 15; do
1225     trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1226     done
1227     ac_signal=0
1228    
1229     # confdefs.h avoids OS command line length limits that DEFS can exceed.
1230 ayin 1.104 rm -rf conftest* confdefs.h
1231     # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1232     echo >confdefs.h
1233 pcg 1.11
1234     # Predefined preprocessor variables.
1235    
1236     cat >>confdefs.h <<_ACEOF
1237     #define PACKAGE_NAME "$PACKAGE_NAME"
1238     _ACEOF
1239    
1240    
1241     cat >>confdefs.h <<_ACEOF
1242     #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1243     _ACEOF
1244    
1245    
1246     cat >>confdefs.h <<_ACEOF
1247     #define PACKAGE_VERSION "$PACKAGE_VERSION"
1248     _ACEOF
1249    
1250    
1251     cat >>confdefs.h <<_ACEOF
1252     #define PACKAGE_STRING "$PACKAGE_STRING"
1253     _ACEOF
1254    
1255    
1256     cat >>confdefs.h <<_ACEOF
1257     #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1258     _ACEOF
1259 pcg 1.1
1260 pcg 1.11
1261     # Let the site file select an alternate cache file if it wants to.
1262 pcg 1.1 # Prefer explicitly selected file to automatically selected ones.
1263 ayin 1.104 if test -z "$CONFIG_SITE"; then
1264     if test "x$prefix" != xNONE; then
1265     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1266     else
1267     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1268     fi
1269 pcg 1.1 fi
1270 ayin 1.104 for ac_site_file in $CONFIG_SITE; do
1271 pcg 1.1 if test -r "$ac_site_file"; then
1272 pcg 1.11 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1273     echo "$as_me: loading site script $ac_site_file" >&6;}
1274     sed 's/^/| /' "$ac_site_file" >&5
1275 pcg 1.1 . "$ac_site_file"
1276     fi
1277     done
1278    
1279     if test -r "$cache_file"; then
1280 pcg 1.11 # Some versions of bash will fail to source /dev/null (special
1281     # files actually), so we avoid doing that.
1282     if test -f "$cache_file"; then
1283     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1284     echo "$as_me: loading cache $cache_file" >&6;}
1285     case $cache_file in
1286 ayin 1.104 [\\/]* | ?:[\\/]* ) . $cache_file;;
1287     *) . ./$cache_file;;
1288 pcg 1.11 esac
1289     fi
1290 pcg 1.1 else
1291 pcg 1.11 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1292     echo "$as_me: creating cache $cache_file" >&6;}
1293     >$cache_file
1294     fi
1295    
1296     # Check that the precious variables saved in the cache have kept the same
1297     # value.
1298     ac_cache_corrupted=false
1299 ayin 1.104 for ac_var in `(set) 2>&1 |
1300     sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1301 pcg 1.11 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1302     eval ac_new_set=\$ac_env_${ac_var}_set
1303 ayin 1.104 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1304     eval ac_new_val="\$ac_env_${ac_var}_value"
1305 pcg 1.11 case $ac_old_set,$ac_new_set in
1306     set,)
1307     { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1308     echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1309     ac_cache_corrupted=: ;;
1310     ,set)
1311     { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1312     echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1313     ac_cache_corrupted=: ;;
1314     ,);;
1315     *)
1316     if test "x$ac_old_val" != "x$ac_new_val"; then
1317     { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1318     echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1319     { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1320     echo "$as_me: former value: $ac_old_val" >&2;}
1321     { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1322     echo "$as_me: current value: $ac_new_val" >&2;}
1323     ac_cache_corrupted=:
1324     fi;;
1325     esac
1326     # Pass precious variables to config.status.
1327     if test "$ac_new_set" = set; then
1328     case $ac_new_val in
1329 ayin 1.104 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1330     ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1331 pcg 1.11 *) ac_arg=$ac_var=$ac_new_val ;;
1332     esac
1333     case " $ac_configure_args " in
1334     *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1335     *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1336     esac
1337     fi
1338     done
1339     if $ac_cache_corrupted; then
1340     { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1341     echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1342     { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1343     echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1344     { (exit 1); exit 1; }; }
1345 pcg 1.1 fi
1346    
1347 ayin 1.104 ac_ext=c
1348     ac_cpp='$CPP $CPPFLAGS'
1349     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1350     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1351     ac_compiler_gnu=$ac_cv_c_compiler_gnu
1352    
1353 pcg 1.11
1354    
1355    
1356    
1357    
1358    
1359    
1360    
1361    
1362    
1363    
1364    
1365    
1366    
1367    
1368    
1369    
1370 pcg 1.1
1371    
1372 root 1.32
1373 ayin 1.104 ac_config_headers="$ac_config_headers config.h:config.h.in"
1374 root 1.76
1375    
1376 pcg 1.1 ac_aux_dir=
1377 ayin 1.104 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1378     if test -f $ac_dir/install-sh; then
1379 pcg 1.1 ac_aux_dir=$ac_dir
1380     ac_install_sh="$ac_aux_dir/install-sh -c"
1381     break
1382 ayin 1.104 elif test -f $ac_dir/install.sh; then
1383 pcg 1.1 ac_aux_dir=$ac_dir
1384     ac_install_sh="$ac_aux_dir/install.sh -c"
1385     break
1386 ayin 1.104 elif test -f $ac_dir/shtool; then
1387 pcg 1.11 ac_aux_dir=$ac_dir
1388     ac_install_sh="$ac_aux_dir/shtool install -c"
1389     break
1390 pcg 1.1 fi
1391     done
1392     if test -z "$ac_aux_dir"; then
1393 ayin 1.104 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1394     echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1395 pcg 1.11 { (exit 1); exit 1; }; }
1396     fi
1397 ayin 1.104 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1398     ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1399     ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1400 pcg 1.1
1401 root 1.48 # Make sure we can run config.sub.
1402 ayin 1.104 $ac_config_sub sun4 >/dev/null 2>&1 ||
1403     { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1404     echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1405 root 1.48 { (exit 1); exit 1; }; }
1406    
1407 ayin 1.104 echo "$as_me:$LINENO: checking build system type" >&5
1408     echo $ECHO_N "checking build system type... $ECHO_C" >&6
1409 root 1.48 if test "${ac_cv_build+set}" = set; then
1410     echo $ECHO_N "(cached) $ECHO_C" >&6
1411     else
1412 ayin 1.104 ac_cv_build_alias=$build_alias
1413     test -z "$ac_cv_build_alias" &&
1414     ac_cv_build_alias=`$ac_config_guess`
1415     test -z "$ac_cv_build_alias" &&
1416 root 1.48 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1417     echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1418     { (exit 1); exit 1; }; }
1419 ayin 1.104 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1420     { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1421     echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1422 root 1.48 { (exit 1); exit 1; }; }
1423    
1424     fi
1425 ayin 1.104 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1426     echo "${ECHO_T}$ac_cv_build" >&6
1427 root 1.48 build=$ac_cv_build
1428 ayin 1.104 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1429     build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1430     build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1431 root 1.48
1432    
1433 ayin 1.104 echo "$as_me:$LINENO: checking host system type" >&5
1434     echo $ECHO_N "checking host system type... $ECHO_C" >&6
1435 root 1.48 if test "${ac_cv_host+set}" = set; then
1436     echo $ECHO_N "(cached) $ECHO_C" >&6
1437     else
1438 ayin 1.104 ac_cv_host_alias=$host_alias
1439     test -z "$ac_cv_host_alias" &&
1440     ac_cv_host_alias=$ac_cv_build_alias
1441     ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1442     { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1443     echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1444 root 1.48 { (exit 1); exit 1; }; }
1445    
1446     fi
1447 ayin 1.104 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1448     echo "${ECHO_T}$ac_cv_host" >&6
1449 root 1.48 host=$ac_cv_host
1450 ayin 1.104 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1451     host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1452     host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1453 root 1.48
1454    
1455    
1456 pcg 1.1 VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1457     DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1458     echo ""
1459     echo "configuring for rxvt $VERSION"
1460     echo ""
1461    
1462 root 1.72 orig_CXXFLAGS="$CXXFLAGS"
1463    
1464 pcg 1.1
1465 pcg 1.11 ac_ext=c
1466     ac_cpp='$CPP $CPPFLAGS'
1467     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1468     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1469     ac_compiler_gnu=$ac_cv_c_compiler_gnu
1470     if test -n "$ac_tool_prefix"; then
1471     # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1472     set dummy ${ac_tool_prefix}gcc; ac_word=$2
1473 ayin 1.104 echo "$as_me:$LINENO: checking for $ac_word" >&5
1474     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1475 pcg 1.11 if test "${ac_cv_prog_CC+set}" = set; then
1476     echo $ECHO_N "(cached) $ECHO_C" >&6
1477     else
1478     if test -n "$CC"; then
1479     ac_cv_prog_CC="$CC" # Let the user override the test.
1480     else
1481     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1482     for as_dir in $PATH
1483     do
1484     IFS=$as_save_IFS
1485     test -z "$as_dir" && as_dir=.
1486     for ac_exec_ext in '' $ac_executable_extensions; do
1487 ayin 1.104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1488 pcg 1.11 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1490     break 2
1491     fi
1492     done
1493     done
1494    
1495     fi
1496     fi
1497     CC=$ac_cv_prog_CC
1498     if test -n "$CC"; then
1499 ayin 1.104 echo "$as_me:$LINENO: result: $CC" >&5
1500     echo "${ECHO_T}$CC" >&6
1501 pcg 1.11 else
1502 ayin 1.104 echo "$as_me:$LINENO: result: no" >&5
1503     echo "${ECHO_T}no" >&6
1504 pcg 1.11 fi
1505    
1506     fi
1507     if test -z "$ac_cv_prog_CC"; then
1508     ac_ct_CC=$CC
1509     # Extract the first word of "gcc", so it can be a program name with args.
1510 pcg 1.1 set dummy gcc; ac_word=$2
1511 ayin 1.104 echo "$as_me:$LINENO: checking for $ac_word" >&5
1512     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1513 pcg 1.11 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1514     echo $ECHO_N "(cached) $ECHO_C" >&6
1515     else
1516     if test -n "$ac_ct_CC"; then
1517     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1518     else
1519     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1520     for as_dir in $PATH
1521     do
1522     IFS=$as_save_IFS
1523     test -z "$as_dir" && as_dir=.
1524     for ac_exec_ext in '' $ac_executable_extensions; do
1525 ayin 1.104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1526 pcg 1.11 ac_cv_prog_ac_ct_CC="gcc"
1527     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1528     break 2
1529     fi
1530     done
1531     done
1532    
1533     fi
1534     fi
1535     ac_ct_CC=$ac_cv_prog_ac_ct_CC
1536     if test -n "$ac_ct_CC"; then
1537 ayin 1.104 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1538     echo "${ECHO_T}$ac_ct_CC" >&6
1539 pcg 1.11 else
1540 ayin 1.104 echo "$as_me:$LINENO: result: no" >&5
1541     echo "${ECHO_T}no" >&6
1542 pcg 1.11 fi
1543    
1544 ayin 1.104 CC=$ac_ct_CC
1545 pcg 1.11 else
1546     CC="$ac_cv_prog_CC"
1547     fi
1548    
1549     if test -z "$CC"; then
1550 ayin 1.104 if test -n "$ac_tool_prefix"; then
1551     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1552 pcg 1.11 set dummy ${ac_tool_prefix}cc; ac_word=$2
1553 ayin 1.104 echo "$as_me:$LINENO: checking for $ac_word" >&5
1554     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1555 pcg 1.11 if test "${ac_cv_prog_CC+set}" = set; then
1556     echo $ECHO_N "(cached) $ECHO_C" >&6
1557 pcg 1.1 else
1558     if test -n "$CC"; then
1559     ac_cv_prog_CC="$CC" # Let the user override the test.
1560     else
1561 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1562     for as_dir in $PATH
1563     do
1564     IFS=$as_save_IFS
1565     test -z "$as_dir" && as_dir=.
1566     for ac_exec_ext in '' $ac_executable_extensions; do
1567 ayin 1.104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1568 pcg 1.11 ac_cv_prog_CC="${ac_tool_prefix}cc"
1569     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1570     break 2
1571     fi
1572     done
1573     done
1574    
1575 pcg 1.1 fi
1576     fi
1577 pcg 1.11 CC=$ac_cv_prog_CC
1578 pcg 1.1 if test -n "$CC"; then
1579 ayin 1.104 echo "$as_me:$LINENO: result: $CC" >&5
1580     echo "${ECHO_T}$CC" >&6
1581     else
1582     echo "$as_me:$LINENO: result: no" >&5
1583     echo "${ECHO_T}no" >&6
1584     fi
1585    
1586     fi
1587     if test -z "$ac_cv_prog_CC"; then
1588     ac_ct_CC=$CC
1589     # Extract the first word of "cc", so it can be a program name with args.
1590     set dummy cc; ac_word=$2
1591     echo "$as_me:$LINENO: checking for $ac_word" >&5
1592     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1593     if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1594     echo $ECHO_N "(cached) $ECHO_C" >&6
1595     else
1596     if test -n "$ac_ct_CC"; then
1597     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1598     else
1599     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1600     for as_dir in $PATH
1601     do
1602     IFS=$as_save_IFS
1603     test -z "$as_dir" && as_dir=.
1604     for ac_exec_ext in '' $ac_executable_extensions; do
1605     if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1606     ac_cv_prog_ac_ct_CC="cc"
1607     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1608     break 2
1609     fi
1610     done
1611     done
1612    
1613     fi
1614     fi
1615     ac_ct_CC=$ac_cv_prog_ac_ct_CC
1616     if test -n "$ac_ct_CC"; then
1617     echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1618     echo "${ECHO_T}$ac_ct_CC" >&6
1619 pcg 1.11 else
1620 ayin 1.104 echo "$as_me:$LINENO: result: no" >&5
1621     echo "${ECHO_T}no" >&6
1622 pcg 1.11 fi
1623    
1624 ayin 1.104 CC=$ac_ct_CC
1625     else
1626     CC="$ac_cv_prog_CC"
1627     fi
1628 ayin 1.102
1629 pcg 1.11 fi
1630 pcg 1.1 if test -z "$CC"; then
1631     # Extract the first word of "cc", so it can be a program name with args.
1632     set dummy cc; ac_word=$2
1633 ayin 1.104 echo "$as_me:$LINENO: checking for $ac_word" >&5
1634     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1635 pcg 1.11 if test "${ac_cv_prog_CC+set}" = set; then
1636     echo $ECHO_N "(cached) $ECHO_C" >&6
1637 pcg 1.1 else
1638     if test -n "$CC"; then
1639     ac_cv_prog_CC="$CC" # Let the user override the test.
1640     else
1641     ac_prog_rejected=no
1642 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1643     for as_dir in $PATH
1644     do
1645     IFS=$as_save_IFS
1646     test -z "$as_dir" && as_dir=.
1647     for ac_exec_ext in '' $ac_executable_extensions; do
1648 ayin 1.104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1649 pcg 1.11 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1650     ac_prog_rejected=yes
1651     continue
1652     fi
1653     ac_cv_prog_CC="cc"
1654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1655     break 2
1656     fi
1657     done
1658     done
1659    
1660 pcg 1.1 if test $ac_prog_rejected = yes; then
1661     # We found a bogon in the path, so make sure we never use it.
1662     set dummy $ac_cv_prog_CC
1663     shift
1664 pcg 1.11 if test $# != 0; then
1665 pcg 1.1 # We chose a different compiler from the bogus one.
1666     # However, it has the same basename, so the bogon will be chosen
1667     # first if we set CC to just the basename; use the full file name.
1668     shift
1669 pcg 1.11 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1670 pcg 1.1 fi
1671     fi
1672     fi
1673     fi
1674 pcg 1.11 CC=$ac_cv_prog_CC
1675 pcg 1.1 if test -n "$CC"; then
1676 ayin 1.104 echo "$as_me:$LINENO: result: $CC" >&5
1677     echo "${ECHO_T}$CC" >&6
1678 pcg 1.1 else
1679 ayin 1.104 echo "$as_me:$LINENO: result: no" >&5
1680     echo "${ECHO_T}no" >&6
1681 pcg 1.1 fi
1682    
1683 pcg 1.11 fi
1684     if test -z "$CC"; then
1685     if test -n "$ac_tool_prefix"; then
1686 ayin 1.104 for ac_prog in cl
1687 pcg 1.11 do
1688     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1689     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1690 ayin 1.104 echo "$as_me:$LINENO: checking for $ac_word" >&5
1691     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1692 pcg 1.11 if test "${ac_cv_prog_CC+set}" = set; then
1693     echo $ECHO_N "(cached) $ECHO_C" >&6
1694 pcg 1.1 else
1695     if test -n "$CC"; then
1696     ac_cv_prog_CC="$CC" # Let the user override the test.
1697     else
1698 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699     for as_dir in $PATH
1700     do
1701     IFS=$as_save_IFS
1702     test -z "$as_dir" && as_dir=.
1703     for ac_exec_ext in '' $ac_executable_extensions; do
1704 ayin 1.104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1705 pcg 1.11 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1706     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1707     break 2
1708     fi
1709     done
1710     done
1711    
1712 pcg 1.1 fi
1713     fi
1714 pcg 1.11 CC=$ac_cv_prog_CC
1715 pcg 1.1 if test -n "$CC"; then
1716 ayin 1.104 echo "$as_me:$LINENO: result: $CC" >&5
1717     echo "${ECHO_T}$CC" >&6
1718 pcg 1.1 else
1719 ayin 1.104 echo "$as_me:$LINENO: result: no" >&5
1720     echo "${ECHO_T}no" >&6
1721 pcg 1.11 fi
1722    
1723     test -n "$CC" && break
1724     done
1725 pcg 1.1 fi
1726 pcg 1.11 if test -z "$CC"; then
1727     ac_ct_CC=$CC
1728 ayin 1.104 for ac_prog in cl
1729 pcg 1.11 do
1730     # Extract the first word of "$ac_prog", so it can be a program name with args.
1731     set dummy $ac_prog; ac_word=$2
1732 ayin 1.104 echo "$as_me:$LINENO: checking for $ac_word" >&5
1733     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1734 pcg 1.11 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1735     echo $ECHO_N "(cached) $ECHO_C" >&6
1736     else
1737     if test -n "$ac_ct_CC"; then
1738     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1739     else
1740     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1741     for as_dir in $PATH
1742     do
1743     IFS=$as_save_IFS
1744     test -z "$as_dir" && as_dir=.
1745     for ac_exec_ext in '' $ac_executable_extensions; do
1746 ayin 1.104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1747 pcg 1.11 ac_cv_prog_ac_ct_CC="$ac_prog"
1748     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1749     break 2
1750 pcg 1.1 fi
1751 pcg 1.11 done
1752     done
1753    
1754     fi
1755     fi
1756     ac_ct_CC=$ac_cv_prog_ac_ct_CC
1757     if test -n "$ac_ct_CC"; then
1758 ayin 1.104 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1759     echo "${ECHO_T}$ac_ct_CC" >&6
1760 pcg 1.11 else
1761 ayin 1.104 echo "$as_me:$LINENO: result: no" >&5
1762     echo "${ECHO_T}no" >&6
1763 pcg 1.11 fi
1764    
1765     test -n "$ac_ct_CC" && break
1766     done
1767    
1768 ayin 1.104 CC=$ac_ct_CC
1769 pcg 1.11 fi
1770    
1771 pcg 1.1 fi
1772    
1773    
1774 pcg 1.11 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1775     See \`config.log' for more details." >&5
1776     echo "$as_me: error: no acceptable C compiler found in \$PATH
1777     See \`config.log' for more details." >&2;}
1778     { (exit 1); exit 1; }; }
1779    
1780     # Provide some information about the compiler.
1781 ayin 1.104 echo "$as_me:$LINENO:" \
1782     "checking for C compiler version" >&5
1783 pcg 1.11 ac_compiler=`set X $ac_compile; echo $2`
1784 ayin 1.104 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1785     (eval $ac_compiler --version </dev/null >&5) 2>&5
1786 pcg 1.11 ac_status=$?
1787     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1788     (exit $ac_status); }
1789 ayin 1.104 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1790     (eval $ac_compiler -v </dev/null >&5) 2>&5
1791 pcg 1.11 ac_status=$?
1792     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1793     (exit $ac_status); }
1794 ayin 1.104 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1795     (eval $ac_compiler -V </dev/null >&5) 2>&5
1796 pcg 1.11 ac_status=$?
1797     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1798     (exit $ac_status); }
1799    
1800     cat >conftest.$ac_ext <<_ACEOF
1801     /* confdefs.h. */
1802     _ACEOF
1803     cat confdefs.h >>conftest.$ac_ext
1804     cat >>conftest.$ac_ext <<_ACEOF
1805     /* end confdefs.h. */
1806 pcg 1.1
1807 pcg 1.11 int
1808     main ()
1809     {
1810 pcg 1.1
1811 pcg 1.11 ;
1812     return 0;
1813     }
1814     _ACEOF
1815     ac_clean_files_save=$ac_clean_files
1816     ac_clean_files="$ac_clean_files a.out a.exe b.out"
1817     # Try to create an executable without -o first, disregard a.out.
1818     # It will help us diagnose broken compilers, and finding out an intuition
1819     # of exeext.
1820 ayin 1.104 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1821     echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1822 pcg 1.11 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1823 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1824     (eval $ac_link_default) 2>&5
1825 pcg 1.11 ac_status=$?
1826     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1827     (exit $ac_status); }; then
1828 ayin 1.104 # Find the output, starting from the most likely. This scheme is
1829     # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1830     # resort.
1831    
1832     # Be careful to initialize this variable, since it used to be cached.
1833     # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1834     ac_cv_exeext=
1835     # b.out is created by i960 compilers.
1836     for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1837 pcg 1.11 do
1838     test -f "$ac_file" || continue
1839     case $ac_file in
1840 ayin 1.104 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1841     ;;
1842     conftest.$ac_ext )
1843     # This is the source file.
1844 pcg 1.11 ;;
1845     [ab].out )
1846     # We found the default executable, but exeext='' is most
1847     # certainly right.
1848     break;;
1849     *.* )
1850 ayin 1.104 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1851     # FIXME: I believe we export ac_cv_exeext for Libtool,
1852     # but it would be cool to find out if it's true. Does anybody
1853     # maintain Libtool? --akim.
1854     export ac_cv_exeext
1855 pcg 1.11 break;;
1856     * )
1857     break;;
1858     esac
1859     done
1860     else
1861     echo "$as_me: failed program was:" >&5
1862     sed 's/^/| /' conftest.$ac_ext >&5
1863 pcg 1.1
1864 pcg 1.11 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1865     See \`config.log' for more details." >&5
1866     echo "$as_me: error: C compiler cannot create executables
1867     See \`config.log' for more details." >&2;}
1868     { (exit 77); exit 77; }; }
1869     fi
1870    
1871     ac_exeext=$ac_cv_exeext
1872 ayin 1.104 echo "$as_me:$LINENO: result: $ac_file" >&5
1873     echo "${ECHO_T}$ac_file" >&6
1874 pcg 1.11
1875 ayin 1.104 # Check the compiler produces executables we can run. If not, either
1876 pcg 1.11 # the compiler is broken, or we cross compile.
1877 ayin 1.104 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1878     echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1879 pcg 1.11 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1880     # If not cross compiling, check that we can run a simple program.
1881     if test "$cross_compiling" != yes; then
1882     if { ac_try='./$ac_file'
1883 ayin 1.104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1884     (eval $ac_try) 2>&5
1885 pcg 1.11 ac_status=$?
1886     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1887     (exit $ac_status); }; }; then
1888     cross_compiling=no
1889     else
1890     if test "$cross_compiling" = maybe; then
1891     cross_compiling=yes
1892     else
1893     { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1894     If you meant to cross compile, use \`--host'.
1895     See \`config.log' for more details." >&5
1896     echo "$as_me: error: cannot run C compiled programs.
1897     If you meant to cross compile, use \`--host'.
1898     See \`config.log' for more details." >&2;}
1899     { (exit 1); exit 1; }; }
1900     fi
1901 pcg 1.1 fi
1902 pcg 1.11 fi
1903 ayin 1.104 echo "$as_me:$LINENO: result: yes" >&5
1904     echo "${ECHO_T}yes" >&6
1905 pcg 1.11
1906     rm -f a.out a.exe conftest$ac_cv_exeext b.out
1907     ac_clean_files=$ac_clean_files_save
1908 ayin 1.104 # Check the compiler produces executables we can run. If not, either
1909 pcg 1.11 # the compiler is broken, or we cross compile.
1910 ayin 1.104 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1911     echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1912     echo "$as_me:$LINENO: result: $cross_compiling" >&5
1913     echo "${ECHO_T}$cross_compiling" >&6
1914    
1915     echo "$as_me:$LINENO: checking for suffix of executables" >&5
1916     echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1917     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1918     (eval $ac_link) 2>&5
1919 pcg 1.11 ac_status=$?
1920     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1921     (exit $ac_status); }; then
1922     # If both `conftest.exe' and `conftest' are `present' (well, observable)
1923     # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1924     # work properly (i.e., refer to `conftest.exe'), while it won't with
1925     # `rm'.
1926     for ac_file in conftest.exe conftest conftest.*; do
1927     test -f "$ac_file" || continue
1928     case $ac_file in
1929 ayin 1.104 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1930 pcg 1.11 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1931 ayin 1.104 export ac_cv_exeext
1932 pcg 1.11 break;;
1933     * ) break;;
1934     esac
1935     done
1936 pcg 1.1 else
1937 pcg 1.11 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1938     See \`config.log' for more details." >&5
1939     echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1940     See \`config.log' for more details." >&2;}
1941     { (exit 1); exit 1; }; }
1942 pcg 1.1 fi
1943 pcg 1.11
1944     rm -f conftest$ac_cv_exeext
1945 ayin 1.104 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1946     echo "${ECHO_T}$ac_cv_exeext" >&6
1947 pcg 1.11
1948     rm -f conftest.$ac_ext
1949     EXEEXT=$ac_cv_exeext
1950     ac_exeext=$EXEEXT
1951 ayin 1.104 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1952     echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1953 pcg 1.11 if test "${ac_cv_objext+set}" = set; then
1954     echo $ECHO_N "(cached) $ECHO_C" >&6
1955     else
1956     cat >conftest.$ac_ext <<_ACEOF
1957     /* confdefs.h. */
1958     _ACEOF
1959     cat confdefs.h >>conftest.$ac_ext
1960     cat >>conftest.$ac_ext <<_ACEOF
1961     /* end confdefs.h. */
1962    
1963     int
1964     main ()
1965     {
1966    
1967     ;
1968     return 0;
1969     }
1970     _ACEOF
1971     rm -f conftest.o conftest.obj
1972 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1973     (eval $ac_compile) 2>&5
1974 pcg 1.11 ac_status=$?
1975     echo "$as_me:$LINENO: \$? = $ac_status" >&5
1976     (exit $ac_status); }; then
1977 ayin 1.104 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1978 pcg 1.11 case $ac_file in
1979 ayin 1.104 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1980 pcg 1.11 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1981     break;;
1982     esac
1983     done
1984 pcg 1.1 else
1985 pcg 1.11 echo "$as_me: failed program was:" >&5
1986     sed 's/^/| /' conftest.$ac_ext >&5
1987    
1988     { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1989     See \`config.log' for more details." >&5
1990     echo "$as_me: error: cannot compute suffix of object files: cannot compile
1991     See \`config.log' for more details." >&2;}
1992     { (exit 1); exit 1; }; }
1993 pcg 1.1 fi
1994 pcg 1.11
1995     rm -f conftest.$ac_cv_objext conftest.$ac_ext
1996 pcg 1.1 fi
1997 ayin 1.104 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1998     echo "${ECHO_T}$ac_cv_objext" >&6
1999 pcg 1.11 OBJEXT=$ac_cv_objext
2000     ac_objext=$OBJEXT
2001 ayin 1.104 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2002     echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2003 pcg 1.11 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2004     echo $ECHO_N "(cached) $ECHO_C" >&6
2005     else
2006     cat >conftest.$ac_ext <<_ACEOF
2007     /* confdefs.h. */
2008     _ACEOF
2009     cat confdefs.h >>conftest.$ac_ext
2010     cat >>conftest.$ac_ext <<_ACEOF
2011     /* end confdefs.h. */
2012    
2013     int
2014     main ()
2015     {
2016     #ifndef __GNUC__
2017     choke me
2018     #endif
2019 pcg 1.1
2020 pcg 1.11 ;
2021     return 0;
2022     }
2023     _ACEOF
2024     rm -f conftest.$ac_objext
2025 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2026     (eval $ac_compile) 2>conftest.er1
2027 pcg 1.11 ac_status=$?
2028     grep -v '^ *+' conftest.er1 >conftest.err
2029     rm -f conftest.er1
2030     cat conftest.err >&5
2031     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032 ayin 1.104 (exit $ac_status); } &&
2033     { ac_try='test -z "$ac_c_werror_flag"
2034     || test ! -s conftest.err'
2035     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2036     (eval $ac_try) 2>&5
2037     ac_status=$?
2038     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2039     (exit $ac_status); }; } &&
2040     { ac_try='test -s conftest.$ac_objext'
2041     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2042     (eval $ac_try) 2>&5
2043     ac_status=$?
2044     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045     (exit $ac_status); }; }; then
2046 pcg 1.11 ac_compiler_gnu=yes
2047     else
2048     echo "$as_me: failed program was:" >&5
2049     sed 's/^/| /' conftest.$ac_ext >&5
2050    
2051 ayin 1.104 ac_compiler_gnu=no
2052 pcg 1.11 fi
2053 ayin 1.104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2054 pcg 1.11 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2055    
2056     fi
2057 ayin 1.104 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2058     echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2059 pcg 1.11 GCC=`test $ac_compiler_gnu = yes && echo yes`
2060     ac_test_CFLAGS=${CFLAGS+set}
2061     ac_save_CFLAGS=$CFLAGS
2062 ayin 1.104 CFLAGS="-g"
2063     echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2064     echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2065 pcg 1.11 if test "${ac_cv_prog_cc_g+set}" = set; then
2066     echo $ECHO_N "(cached) $ECHO_C" >&6
2067     else
2068 ayin 1.104 cat >conftest.$ac_ext <<_ACEOF
2069 pcg 1.11 /* confdefs.h. */
2070     _ACEOF
2071     cat confdefs.h >>conftest.$ac_ext
2072     cat >>conftest.$ac_ext <<_ACEOF
2073     /* end confdefs.h. */
2074 pcg 1.1
2075 pcg 1.11 int
2076     main ()
2077     {
2078 pcg 1.1
2079 pcg 1.11 ;
2080     return 0;
2081     }
2082     _ACEOF
2083     rm -f conftest.$ac_objext
2084 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2085     (eval $ac_compile) 2>conftest.er1
2086 pcg 1.11 ac_status=$?
2087     grep -v '^ *+' conftest.er1 >conftest.err
2088     rm -f conftest.er1
2089     cat conftest.err >&5
2090     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 ayin 1.104 (exit $ac_status); } &&
2092     { ac_try='test -z "$ac_c_werror_flag"
2093     || test ! -s conftest.err'
2094     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2095     (eval $ac_try) 2>&5
2096 pcg 1.11 ac_status=$?
2097     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098 ayin 1.104 (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 pcg 1.11 ac_status=$?
2103     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 ayin 1.104 (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 ayin 1.104 ac_cv_prog_cc_g=no
2111 ayin 1.102 fi
2112 ayin 1.104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2113 pcg 1.1 fi
2114 ayin 1.104 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 ayin 1.104 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 pcg 1.11 echo $ECHO_N "(cached) $ECHO_C" >&6
2135     else
2136 ayin 1.104 ac_cv_prog_cc_stdc=no
2137 pcg 1.11 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 ayin 1.104 as 'x'. The following induces an error, until -std1 is added to get
2171 pcg 1.11 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 ayin 1.104 that's true only with -std1. */
2174 pcg 1.11 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 ayin 1.104 # 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 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2202     (eval $ac_compile) 2>conftest.er1
2203 pcg 1.11 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 ayin 1.104 (exit $ac_status); } &&
2209     { ac_try='test -z "$ac_c_werror_flag"
2210     || test ! -s conftest.err'
2211     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2212     (eval $ac_try) 2>&5
2213     ac_status=$?
2214     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215     (exit $ac_status); }; } &&
2216     { ac_try='test -s conftest.$ac_objext'
2217     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2218     (eval $ac_try) 2>&5
2219     ac_status=$?
2220     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221     (exit $ac_status); }; }; then
2222     ac_cv_prog_cc_stdc=$ac_arg
2223     break
2224 pcg 1.1 else
2225 pcg 1.11 echo "$as_me: failed program was:" >&5
2226     sed 's/^/| /' conftest.$ac_ext >&5
2227    
2228 pcg 1.1 fi
2229 ayin 1.104 rm -f conftest.err conftest.$ac_objext
2230 pcg 1.1 done
2231 ayin 1.104 rm -f conftest.$ac_ext conftest.$ac_objext
2232 pcg 1.11 CC=$ac_save_CC
2233 pcg 1.1
2234 pcg 1.11 fi
2235 ayin 1.104
2236     case "x$ac_cv_prog_cc_stdc" in
2237     x|xno)
2238     echo "$as_me:$LINENO: result: none needed" >&5
2239     echo "${ECHO_T}none needed" >&6 ;;
2240 pcg 1.11 *)
2241 ayin 1.104 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2242     echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2243     CC="$CC $ac_cv_prog_cc_stdc" ;;
2244 pcg 1.11 esac
2245 pcg 1.1
2246 ayin 1.104 # Some people use a C++ compiler to compile C. Since we use `exit',
2247     # in C++ we need to declare it. In case someone uses the same compiler
2248     # for both compiling C and C++ we need to have the C++ compiler decide
2249     # the declaration of exit, since it's the most demanding environment.
2250     cat >conftest.$ac_ext <<_ACEOF
2251     #ifndef __cplusplus
2252     choke me
2253     #endif
2254     _ACEOF
2255     rm -f conftest.$ac_objext
2256     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2257     (eval $ac_compile) 2>conftest.er1
2258     ac_status=$?
2259     grep -v '^ *+' conftest.er1 >conftest.err
2260     rm -f conftest.er1
2261     cat conftest.err >&5
2262     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263     (exit $ac_status); } &&
2264     { ac_try='test -z "$ac_c_werror_flag"
2265     || test ! -s conftest.err'
2266     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2267     (eval $ac_try) 2>&5
2268     ac_status=$?
2269     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270     (exit $ac_status); }; } &&
2271     { ac_try='test -s conftest.$ac_objext'
2272     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2273     (eval $ac_try) 2>&5
2274     ac_status=$?
2275     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276     (exit $ac_status); }; }; then
2277     for ac_declaration in \
2278     '' \
2279     'extern "C" void std::exit (int) throw (); using std::exit;' \
2280     'extern "C" void std::exit (int); using std::exit;' \
2281     'extern "C" void exit (int) throw ();' \
2282     'extern "C" void exit (int);' \
2283     'void exit (int);'
2284     do
2285     cat >conftest.$ac_ext <<_ACEOF
2286     /* confdefs.h. */
2287     _ACEOF
2288     cat confdefs.h >>conftest.$ac_ext
2289     cat >>conftest.$ac_ext <<_ACEOF
2290     /* end confdefs.h. */
2291     $ac_declaration
2292     #include <stdlib.h>
2293     int
2294     main ()
2295     {
2296     exit (42);
2297     ;
2298     return 0;
2299     }
2300     _ACEOF
2301     rm -f conftest.$ac_objext
2302     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2303     (eval $ac_compile) 2>conftest.er1
2304     ac_status=$?
2305     grep -v '^ *+' conftest.er1 >conftest.err
2306     rm -f conftest.er1
2307     cat conftest.err >&5
2308     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309     (exit $ac_status); } &&
2310     { ac_try='test -z "$ac_c_werror_flag"
2311     || test ! -s conftest.err'
2312     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2313     (eval $ac_try) 2>&5
2314     ac_status=$?
2315     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316     (exit $ac_status); }; } &&
2317     { ac_try='test -s conftest.$ac_objext'
2318     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2319     (eval $ac_try) 2>&5
2320     ac_status=$?
2321     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322     (exit $ac_status); }; }; then
2323     :
2324     else
2325     echo "$as_me: failed program was:" >&5
2326     sed 's/^/| /' conftest.$ac_ext >&5
2327 ayin 1.102
2328 ayin 1.104 continue
2329     fi
2330     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2331     cat >conftest.$ac_ext <<_ACEOF
2332     /* confdefs.h. */
2333     _ACEOF
2334     cat confdefs.h >>conftest.$ac_ext
2335     cat >>conftest.$ac_ext <<_ACEOF
2336     /* end confdefs.h. */
2337     $ac_declaration
2338     int
2339     main ()
2340     {
2341     exit (42);
2342     ;
2343     return 0;
2344     }
2345     _ACEOF
2346     rm -f conftest.$ac_objext
2347     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2348     (eval $ac_compile) 2>conftest.er1
2349     ac_status=$?
2350     grep -v '^ *+' conftest.er1 >conftest.err
2351     rm -f conftest.er1
2352     cat conftest.err >&5
2353     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354     (exit $ac_status); } &&
2355     { ac_try='test -z "$ac_c_werror_flag"
2356     || test ! -s conftest.err'
2357     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2358     (eval $ac_try) 2>&5
2359     ac_status=$?
2360     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361     (exit $ac_status); }; } &&
2362     { ac_try='test -s conftest.$ac_objext'
2363     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2364     (eval $ac_try) 2>&5
2365     ac_status=$?
2366     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367     (exit $ac_status); }; }; then
2368     break
2369     else
2370     echo "$as_me: failed program was:" >&5
2371     sed 's/^/| /' conftest.$ac_ext >&5
2372    
2373     fi
2374     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2375     done
2376     rm -f conftest*
2377     if test -n "$ac_declaration"; then
2378     echo '#ifdef __cplusplus' >>confdefs.h
2379     echo $ac_declaration >>confdefs.h
2380     echo '#endif' >>confdefs.h
2381     fi
2382    
2383     else
2384     echo "$as_me: failed program was:" >&5
2385     sed 's/^/| /' conftest.$ac_ext >&5
2386    
2387     fi
2388     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2389 ayin 1.102 ac_ext=c
2390     ac_cpp='$CPP $CPPFLAGS'
2391     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2392     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2393     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2394    
2395 ayin 1.104 ac_ext=cc
2396 ayin 1.102 ac_cpp='$CXXCPP $CPPFLAGS'
2397     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2398     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2399     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2400 ayin 1.104 if test -n "$ac_tool_prefix"; then
2401     for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2402 ayin 1.102 do
2403     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2404     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2405 ayin 1.104 echo "$as_me:$LINENO: checking for $ac_word" >&5
2406     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2407 ayin 1.102 if test "${ac_cv_prog_CXX+set}" = set; then
2408     echo $ECHO_N "(cached) $ECHO_C" >&6
2409     else
2410     if test -n "$CXX"; then
2411     ac_cv_prog_CXX="$CXX" # Let the user override the test.
2412     else
2413     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2414     for as_dir in $PATH
2415 pcg 1.11 do
2416 ayin 1.102 IFS=$as_save_IFS
2417     test -z "$as_dir" && as_dir=.
2418     for ac_exec_ext in '' $ac_executable_extensions; do
2419 ayin 1.104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2420 ayin 1.102 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2421     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2422     break 2
2423     fi
2424     done
2425     done
2426    
2427 pcg 1.1 fi
2428     fi
2429 pcg 1.11 CXX=$ac_cv_prog_CXX
2430     if test -n "$CXX"; then
2431 ayin 1.104 echo "$as_me:$LINENO: result: $CXX" >&5
2432     echo "${ECHO_T}$CXX" >&6
2433 pcg 1.1 else
2434 ayin 1.104 echo "$as_me:$LINENO: result: no" >&5
2435     echo "${ECHO_T}no" >&6
2436 pcg 1.1 fi
2437    
2438 pcg 1.11 test -n "$CXX" && break
2439     done
2440     fi
2441     if test -z "$CXX"; then
2442     ac_ct_CXX=$CXX
2443 ayin 1.104 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2444 pcg 1.11 do
2445     # Extract the first word of "$ac_prog", so it can be a program name with args.
2446     set dummy $ac_prog; ac_word=$2
2447 ayin 1.104 echo "$as_me:$LINENO: checking for $ac_word" >&5
2448     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2449 pcg 1.11 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2450     echo $ECHO_N "(cached) $ECHO_C" >&6
2451 pcg 1.1 else
2452 pcg 1.11 if test -n "$ac_ct_CXX"; then
2453     ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2454 pcg 1.1 else
2455 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456     for as_dir in $PATH
2457     do
2458     IFS=$as_save_IFS
2459     test -z "$as_dir" && as_dir=.
2460     for ac_exec_ext in '' $ac_executable_extensions; do
2461 ayin 1.104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2462 pcg 1.11 ac_cv_prog_ac_ct_CXX="$ac_prog"
2463     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2464     break 2
2465     fi
2466     done
2467     done
2468    
2469 pcg 1.1 fi
2470 pcg 1.11 fi
2471     ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2472     if test -n "$ac_ct_CXX"; then
2473 ayin 1.104 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2474     echo "${ECHO_T}$ac_ct_CXX" >&6
2475 pcg 1.11 else
2476 ayin 1.104 echo "$as_me:$LINENO: result: no" >&5
2477     echo "${ECHO_T}no" >&6
2478 pcg 1.1 fi
2479    
2480 pcg 1.11 test -n "$ac_ct_CXX" && break
2481     done
2482 ayin 1.104 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2483 pcg 1.11
2484 ayin 1.104 CXX=$ac_ct_CXX
2485 pcg 1.11 fi
2486    
2487 ayin 1.104
2488 pcg 1.11 # Provide some information about the compiler.
2489 ayin 1.104 echo "$as_me:$LINENO:" \
2490     "checking for C++ compiler version" >&5
2491 pcg 1.11 ac_compiler=`set X $ac_compile; echo $2`
2492 ayin 1.104 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2493     (eval $ac_compiler --version </dev/null >&5) 2>&5
2494 pcg 1.11 ac_status=$?
2495     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496     (exit $ac_status); }
2497 ayin 1.104 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2498     (eval $ac_compiler -v </dev/null >&5) 2>&5
2499 pcg 1.11 ac_status=$?
2500     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501     (exit $ac_status); }
2502 ayin 1.104 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2503     (eval $ac_compiler -V </dev/null >&5) 2>&5
2504 pcg 1.11 ac_status=$?
2505     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506     (exit $ac_status); }
2507    
2508 ayin 1.104 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2509     echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2510 pcg 1.11 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2511     echo $ECHO_N "(cached) $ECHO_C" >&6
2512     else
2513     cat >conftest.$ac_ext <<_ACEOF
2514     /* confdefs.h. */
2515     _ACEOF
2516     cat confdefs.h >>conftest.$ac_ext
2517     cat >>conftest.$ac_ext <<_ACEOF
2518     /* end confdefs.h. */
2519    
2520     int
2521     main ()
2522     {
2523     #ifndef __GNUC__
2524     choke me
2525     #endif
2526    
2527     ;
2528     return 0;
2529     }
2530     _ACEOF
2531     rm -f conftest.$ac_objext
2532 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2533     (eval $ac_compile) 2>conftest.er1
2534 pcg 1.11 ac_status=$?
2535     grep -v '^ *+' conftest.er1 >conftest.err
2536     rm -f conftest.er1
2537     cat conftest.err >&5
2538     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 ayin 1.104 (exit $ac_status); } &&
2540     { ac_try='test -z "$ac_cxx_werror_flag"
2541     || test ! -s conftest.err'
2542     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2543     (eval $ac_try) 2>&5
2544     ac_status=$?
2545     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546     (exit $ac_status); }; } &&
2547     { ac_try='test -s conftest.$ac_objext'
2548     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2549     (eval $ac_try) 2>&5
2550     ac_status=$?
2551     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552     (exit $ac_status); }; }; then
2553 pcg 1.11 ac_compiler_gnu=yes
2554     else
2555     echo "$as_me: failed program was:" >&5
2556     sed 's/^/| /' conftest.$ac_ext >&5
2557    
2558 ayin 1.104 ac_compiler_gnu=no
2559 pcg 1.11 fi
2560 ayin 1.104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2561 pcg 1.11 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2562    
2563     fi
2564 ayin 1.104 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2565     echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2566 pcg 1.11 GXX=`test $ac_compiler_gnu = yes && echo yes`
2567     ac_test_CXXFLAGS=${CXXFLAGS+set}
2568     ac_save_CXXFLAGS=$CXXFLAGS
2569 ayin 1.104 CXXFLAGS="-g"
2570     echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2571     echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2572 pcg 1.11 if test "${ac_cv_prog_cxx_g+set}" = set; then
2573     echo $ECHO_N "(cached) $ECHO_C" >&6
2574     else
2575 ayin 1.104 cat >conftest.$ac_ext <<_ACEOF
2576 pcg 1.11 /* confdefs.h. */
2577     _ACEOF
2578     cat confdefs.h >>conftest.$ac_ext
2579     cat >>conftest.$ac_ext <<_ACEOF
2580     /* end confdefs.h. */
2581    
2582     int
2583     main ()
2584     {
2585    
2586     ;
2587     return 0;
2588     }
2589     _ACEOF
2590     rm -f conftest.$ac_objext
2591 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2592     (eval $ac_compile) 2>conftest.er1
2593 pcg 1.11 ac_status=$?
2594     grep -v '^ *+' conftest.er1 >conftest.err
2595     rm -f conftest.er1
2596     cat conftest.err >&5
2597     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 ayin 1.104 (exit $ac_status); } &&
2599     { ac_try='test -z "$ac_cxx_werror_flag"
2600     || test ! -s conftest.err'
2601     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2602     (eval $ac_try) 2>&5
2603     ac_status=$?
2604     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605     (exit $ac_status); }; } &&
2606     { ac_try='test -s conftest.$ac_objext'
2607     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2608     (eval $ac_try) 2>&5
2609     ac_status=$?
2610     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611     (exit $ac_status); }; }; then
2612 pcg 1.11 ac_cv_prog_cxx_g=yes
2613     else
2614     echo "$as_me: failed program was:" >&5
2615     sed 's/^/| /' conftest.$ac_ext >&5
2616    
2617 ayin 1.104 ac_cv_prog_cxx_g=no
2618     fi
2619     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2620     fi
2621     echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2622     echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2623     if test "$ac_test_CXXFLAGS" = set; then
2624     CXXFLAGS=$ac_save_CXXFLAGS
2625     elif test $ac_cv_prog_cxx_g = yes; then
2626     if test "$GXX" = yes; then
2627     CXXFLAGS="-g -O2"
2628     else
2629     CXXFLAGS="-g"
2630     fi
2631     else
2632     if test "$GXX" = yes; then
2633     CXXFLAGS="-O2"
2634     else
2635     CXXFLAGS=
2636     fi
2637     fi
2638     for ac_declaration in \
2639     '' \
2640     'extern "C" void std::exit (int) throw (); using std::exit;' \
2641     'extern "C" void std::exit (int); using std::exit;' \
2642     'extern "C" void exit (int) throw ();' \
2643     'extern "C" void exit (int);' \
2644     'void exit (int);'
2645     do
2646     cat >conftest.$ac_ext <<_ACEOF
2647 pcg 1.11 /* confdefs.h. */
2648     _ACEOF
2649     cat confdefs.h >>conftest.$ac_ext
2650     cat >>conftest.$ac_ext <<_ACEOF
2651     /* end confdefs.h. */
2652 ayin 1.104 $ac_declaration
2653     #include <stdlib.h>
2654 pcg 1.11 int
2655     main ()
2656     {
2657 ayin 1.104 exit (42);
2658 pcg 1.11 ;
2659     return 0;
2660     }
2661     _ACEOF
2662     rm -f conftest.$ac_objext
2663 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2664     (eval $ac_compile) 2>conftest.er1
2665 pcg 1.11 ac_status=$?
2666     grep -v '^ *+' conftest.er1 >conftest.err
2667     rm -f conftest.er1
2668     cat conftest.err >&5
2669     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 ayin 1.104 (exit $ac_status); } &&
2671     { ac_try='test -z "$ac_cxx_werror_flag"
2672     || test ! -s conftest.err'
2673     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2674     (eval $ac_try) 2>&5
2675     ac_status=$?
2676     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677     (exit $ac_status); }; } &&
2678     { ac_try='test -s conftest.$ac_objext'
2679     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2680     (eval $ac_try) 2>&5
2681     ac_status=$?
2682     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683     (exit $ac_status); }; }; then
2684 pcg 1.11 :
2685     else
2686     echo "$as_me: failed program was:" >&5
2687     sed 's/^/| /' conftest.$ac_ext >&5
2688    
2689 ayin 1.104 continue
2690     fi
2691     rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2692     cat >conftest.$ac_ext <<_ACEOF
2693 pcg 1.11 /* confdefs.h. */
2694     _ACEOF
2695     cat confdefs.h >>conftest.$ac_ext
2696     cat >>conftest.$ac_ext <<_ACEOF
2697     /* end confdefs.h. */
2698 ayin 1.104 $ac_declaration
2699 pcg 1.11 int
2700     main ()
2701     {
2702 ayin 1.104 exit (42);
2703 pcg 1.11 ;
2704     return 0;
2705     }
2706     _ACEOF
2707     rm -f conftest.$ac_objext
2708 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2709     (eval $ac_compile) 2>conftest.er1
2710 pcg 1.11 ac_status=$?
2711     grep -v '^ *+' conftest.er1 >conftest.err
2712     rm -f conftest.er1
2713     cat conftest.err >&5
2714     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 ayin 1.104 (exit $ac_status); } &&
2716     { ac_try='test -z "$ac_cxx_werror_flag"
2717     || test ! -s conftest.err'
2718     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2719     (eval $ac_try) 2>&5
2720     ac_status=$?
2721     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722     (exit $ac_status); }; } &&
2723     { ac_try='test -s conftest.$ac_objext'
2724     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2725     (eval $ac_try) 2>&5
2726     ac_status=$?
2727     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728     (exit $ac_status); }; }; then
2729     break
2730 pcg 1.11 else
2731     echo "$as_me: failed program was:" >&5
2732     sed 's/^/| /' conftest.$ac_ext >&5
2733    
2734     fi
2735 ayin 1.104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2736     done
2737     rm -f conftest*
2738     if test -n "$ac_declaration"; then
2739     echo '#ifdef __cplusplus' >>confdefs.h
2740     echo $ac_declaration >>confdefs.h
2741     echo '#endif' >>confdefs.h
2742 pcg 1.11 fi
2743    
2744     ac_ext=c
2745     ac_cpp='$CPP $CPPFLAGS'
2746     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2747     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2748     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2749 pcg 1.1
2750 pcg 1.11 ac_ext=c
2751     ac_cpp='$CPP $CPPFLAGS'
2752     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2753     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2754     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2755 ayin 1.104 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2756     echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2757 pcg 1.1 # On Suns, sometimes $CPP names a directory.
2758     if test -n "$CPP" && test -d "$CPP"; then
2759     CPP=
2760     fi
2761     if test -z "$CPP"; then
2762 pcg 1.11 if test "${ac_cv_prog_CPP+set}" = set; then
2763     echo $ECHO_N "(cached) $ECHO_C" >&6
2764 pcg 1.1 else
2765 pcg 1.11 # Double quotes because CPP needs to be expanded
2766     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2767     do
2768     ac_preproc_ok=false
2769     for ac_c_preproc_warn_flag in '' yes
2770     do
2771     # Use a header file that comes with gcc, so configuring glibc
2772     # with a fresh cross-compiler works.
2773     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2774     # <limits.h> exists even on freestanding compilers.
2775 pcg 1.1 # On the NeXT, cc -E runs the code through the compiler's parser,
2776 pcg 1.11 # not just through cpp. "Syntax error" is here to catch this case.
2777     cat >conftest.$ac_ext <<_ACEOF
2778     /* confdefs.h. */
2779     _ACEOF
2780     cat confdefs.h >>conftest.$ac_ext
2781     cat >>conftest.$ac_ext <<_ACEOF
2782     /* end confdefs.h. */
2783     #ifdef __STDC__
2784     # include <limits.h>
2785     #else
2786     # include <assert.h>
2787     #endif
2788     Syntax error
2789     _ACEOF
2790 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2791     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2792 pcg 1.11 ac_status=$?
2793     grep -v '^ *+' conftest.er1 >conftest.err
2794     rm -f conftest.er1
2795     cat conftest.err >&5
2796     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 ayin 1.104 (exit $ac_status); } >/dev/null; then
2798     if test -s conftest.err; then
2799     ac_cpp_err=$ac_c_preproc_warn_flag
2800     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2801     else
2802     ac_cpp_err=
2803     fi
2804     else
2805     ac_cpp_err=yes
2806     fi
2807     if test -z "$ac_cpp_err"; then
2808 pcg 1.1 :
2809     else
2810 pcg 1.11 echo "$as_me: failed program was:" >&5
2811     sed 's/^/| /' conftest.$ac_ext >&5
2812    
2813     # Broken: fails on valid input.
2814     continue
2815     fi
2816     rm -f conftest.err conftest.$ac_ext
2817    
2818 ayin 1.104 # OK, works on sane cases. Now check whether non-existent headers
2819 pcg 1.11 # can be detected and how.
2820     cat >conftest.$ac_ext <<_ACEOF
2821     /* confdefs.h. */
2822     _ACEOF
2823     cat confdefs.h >>conftest.$ac_ext
2824     cat >>conftest.$ac_ext <<_ACEOF
2825     /* end confdefs.h. */
2826     #include <ac_nonexistent.h>
2827     _ACEOF
2828 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2829     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2830 pcg 1.11 ac_status=$?
2831     grep -v '^ *+' conftest.er1 >conftest.err
2832     rm -f conftest.er1
2833     cat conftest.err >&5
2834     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 ayin 1.104 (exit $ac_status); } >/dev/null; then
2836     if test -s conftest.err; then
2837     ac_cpp_err=$ac_c_preproc_warn_flag
2838     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2839     else
2840     ac_cpp_err=
2841     fi
2842     else
2843     ac_cpp_err=yes
2844     fi
2845     if test -z "$ac_cpp_err"; then
2846 pcg 1.11 # Broken: success on invalid input.
2847     continue
2848     else
2849     echo "$as_me: failed program was:" >&5
2850     sed 's/^/| /' conftest.$ac_ext >&5
2851    
2852     # Passes both tests.
2853     ac_preproc_ok=:
2854     break
2855     fi
2856     rm -f conftest.err conftest.$ac_ext
2857    
2858     done
2859     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2860     rm -f conftest.err conftest.$ac_ext
2861     if $ac_preproc_ok; then
2862     break
2863     fi
2864    
2865     done
2866     ac_cv_prog_CPP=$CPP
2867    
2868     fi
2869     CPP=$ac_cv_prog_CPP
2870     else
2871     ac_cv_prog_CPP=$CPP
2872     fi
2873 ayin 1.104 echo "$as_me:$LINENO: result: $CPP" >&5
2874     echo "${ECHO_T}$CPP" >&6
2875 pcg 1.11 ac_preproc_ok=false
2876     for ac_c_preproc_warn_flag in '' yes
2877     do
2878     # Use a header file that comes with gcc, so configuring glibc
2879     # with a fresh cross-compiler works.
2880     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2881     # <limits.h> exists even on freestanding compilers.
2882     # On the NeXT, cc -E runs the code through the compiler's parser,
2883     # not just through cpp. "Syntax error" is here to catch this case.
2884     cat >conftest.$ac_ext <<_ACEOF
2885     /* confdefs.h. */
2886     _ACEOF
2887     cat confdefs.h >>conftest.$ac_ext
2888     cat >>conftest.$ac_ext <<_ACEOF
2889     /* end confdefs.h. */
2890     #ifdef __STDC__
2891     # include <limits.h>
2892     #else
2893     # include <assert.h>
2894     #endif
2895     Syntax error
2896     _ACEOF
2897 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2898     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2899 pcg 1.11 ac_status=$?
2900     grep -v '^ *+' conftest.er1 >conftest.err
2901     rm -f conftest.er1
2902     cat conftest.err >&5
2903     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 ayin 1.104 (exit $ac_status); } >/dev/null; then
2905     if test -s conftest.err; then
2906     ac_cpp_err=$ac_c_preproc_warn_flag
2907     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2908     else
2909     ac_cpp_err=
2910     fi
2911     else
2912     ac_cpp_err=yes
2913     fi
2914     if test -z "$ac_cpp_err"; then
2915 pcg 1.1 :
2916     else
2917 pcg 1.11 echo "$as_me: failed program was:" >&5
2918     sed 's/^/| /' conftest.$ac_ext >&5
2919    
2920     # Broken: fails on valid input.
2921     continue
2922 pcg 1.1 fi
2923 pcg 1.11 rm -f conftest.err conftest.$ac_ext
2924    
2925 ayin 1.104 # OK, works on sane cases. Now check whether non-existent headers
2926 pcg 1.11 # can be detected and how.
2927     cat >conftest.$ac_ext <<_ACEOF
2928     /* confdefs.h. */
2929     _ACEOF
2930     cat confdefs.h >>conftest.$ac_ext
2931     cat >>conftest.$ac_ext <<_ACEOF
2932     /* end confdefs.h. */
2933     #include <ac_nonexistent.h>
2934     _ACEOF
2935 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2936     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2937 pcg 1.11 ac_status=$?
2938     grep -v '^ *+' conftest.er1 >conftest.err
2939     rm -f conftest.er1
2940     cat conftest.err >&5
2941     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 ayin 1.104 (exit $ac_status); } >/dev/null; then
2943     if test -s conftest.err; then
2944     ac_cpp_err=$ac_c_preproc_warn_flag
2945     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2946     else
2947     ac_cpp_err=
2948     fi
2949     else
2950     ac_cpp_err=yes
2951     fi
2952     if test -z "$ac_cpp_err"; then
2953 pcg 1.11 # Broken: success on invalid input.
2954     continue
2955     else
2956     echo "$as_me: failed program was:" >&5
2957     sed 's/^/| /' conftest.$ac_ext >&5
2958    
2959     # Passes both tests.
2960     ac_preproc_ok=:
2961     break
2962 pcg 1.1 fi
2963 pcg 1.11 rm -f conftest.err conftest.$ac_ext
2964    
2965     done
2966     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2967     rm -f conftest.err conftest.$ac_ext
2968     if $ac_preproc_ok; then
2969     :
2970 pcg 1.1 else
2971 pcg 1.11 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2972     See \`config.log' for more details." >&5
2973     echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2974     See \`config.log' for more details." >&2;}
2975     { (exit 1); exit 1; }; }
2976 pcg 1.1 fi
2977 pcg 1.11
2978     ac_ext=c
2979     ac_cpp='$CPP $CPPFLAGS'
2980     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2981     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2982     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2983 pcg 1.1
2984     # Find a good install program. We prefer a C program (faster),
2985     # so one script is as good as another. But avoid the broken or
2986     # incompatible versions:
2987     # SysV /etc/install, /usr/sbin/install
2988     # SunOS /usr/etc/install
2989     # IRIX /sbin/install
2990     # AIX /bin/install
2991 pcg 1.11 # AmigaOS /C/install, which installs bootblocks on floppy discs
2992 pcg 1.1 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2993     # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2994     # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2995 pcg 1.11 # OS/2's system install, which has a completely different semantic
2996 pcg 1.1 # ./install, which can be erroneously created by make from ./install.sh.
2997 ayin 1.104 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2998     echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2999 pcg 1.1 if test -z "$INSTALL"; then
3000 pcg 1.11 if test "${ac_cv_path_install+set}" = set; then
3001     echo $ECHO_N "(cached) $ECHO_C" >&6
3002 pcg 1.1 else
3003 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004     for as_dir in $PATH
3005     do
3006     IFS=$as_save_IFS
3007     test -z "$as_dir" && as_dir=.
3008     # Account for people who put trailing slashes in PATH elements.
3009     case $as_dir/ in
3010     ./ | .// | /cC/* | \
3011     /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3012     ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3013     /usr/ucb/* ) ;;
3014     *)
3015     # OSF1 and SCO ODT 3.0 have their own names for install.
3016     # Don't use installbsd from OSF since it installs stuff as root
3017     # by default.
3018     for ac_prog in ginstall scoinst install; do
3019     for ac_exec_ext in '' $ac_executable_extensions; do
3020 ayin 1.104 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3021 pcg 1.1 if test $ac_prog = install &&
3022 pcg 1.11 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3023 pcg 1.1 # AIX install. It has an incompatible calling convention.
3024     :
3025 pcg 1.11 elif test $ac_prog = install &&
3026     grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3027     # program-specific install script used by HP pwplus--don't use.
3028     :
3029 pcg 1.1 else
3030 pcg 1.11 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3031     break 3
3032 pcg 1.1 fi
3033     fi
3034     done
3035 pcg 1.11 done
3036     ;;
3037     esac
3038     done
3039    
3040 pcg 1.1
3041     fi
3042     if test "${ac_cv_path_install+set}" = set; then
3043 pcg 1.11 INSTALL=$ac_cv_path_install
3044 pcg 1.1 else
3045 ayin 1.104 # As a last resort, use the slow shell script. We don't cache a
3046     # path for INSTALL within a source directory, because that will
3047 pcg 1.1 # break other packages using the cache if that directory is
3048 ayin 1.104 # removed, or if the path is relative.
3049 pcg 1.11 INSTALL=$ac_install_sh
3050 pcg 1.1 fi
3051     fi
3052 ayin 1.104 echo "$as_me:$LINENO: result: $INSTALL" >&5
3053     echo "${ECHO_T}$INSTALL" >&6
3054 pcg 1.1
3055     # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3056     # It thinks the first close brace ends the variable substitution.
3057     test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3058    
3059 pcg 1.11 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3060 pcg 1.1
3061     test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3062    
3063    
3064 pcg 1.11
3065    
3066 ayin 1.104 echo "$as_me:$LINENO: checking for egrep" >&5
3067     echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3068     if test "${ac_cv_prog_egrep+set}" = set; then
3069 pcg 1.11 echo $ECHO_N "(cached) $ECHO_C" >&6
3070     else
3071 ayin 1.104 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3072     then ac_cv_prog_egrep='grep -E'
3073     else ac_cv_prog_egrep='egrep'
3074 ayin 1.102 fi
3075     fi
3076 ayin 1.104 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3077     echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3078     EGREP=$ac_cv_prog_egrep
3079 ayin 1.102
3080    
3081    
3082 ayin 1.104 echo "$as_me:$LINENO: checking for AIX" >&5
3083     echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3084 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
3085     /* confdefs.h. */
3086     _ACEOF
3087     cat confdefs.h >>conftest.$ac_ext
3088     cat >>conftest.$ac_ext <<_ACEOF
3089     /* end confdefs.h. */
3090 ayin 1.102 #ifdef _AIX
3091     yes
3092     #endif
3093 pcg 1.11
3094     _ACEOF
3095 ayin 1.102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3096     $EGREP "yes" >/dev/null 2>&1; then
3097 ayin 1.104 echo "$as_me:$LINENO: result: yes" >&5
3098     echo "${ECHO_T}yes" >&6
3099 ayin 1.102 cat >>confdefs.h <<\_ACEOF
3100     #define _ALL_SOURCE 1
3101     _ACEOF
3102    
3103 pcg 1.11 else
3104 ayin 1.104 echo "$as_me:$LINENO: result: no" >&5
3105     echo "${ECHO_T}no" >&6
3106 ayin 1.102 fi
3107     rm -f conftest*
3108    
3109 pcg 1.11
3110 ayin 1.104 echo "$as_me:$LINENO: checking for library containing strerror" >&5
3111     echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
3112 ayin 1.102 if test "${ac_cv_search_strerror+set}" = set; then
3113     echo $ECHO_N "(cached) $ECHO_C" >&6
3114     else
3115     ac_func_search_save_LIBS=$LIBS
3116 ayin 1.104 ac_cv_search_strerror=no
3117 ayin 1.102 cat >conftest.$ac_ext <<_ACEOF
3118 pcg 1.11 /* confdefs.h. */
3119     _ACEOF
3120     cat confdefs.h >>conftest.$ac_ext
3121     cat >>conftest.$ac_ext <<_ACEOF
3122     /* end confdefs.h. */
3123 pcg 1.1
3124 ayin 1.104 /* Override any gcc2 internal prototype to avoid an error. */
3125 pcg 1.11 #ifdef __cplusplus
3126     extern "C"
3127     #endif
3128 ayin 1.104 /* We use char because int might match the return type of a gcc2
3129     builtin and then its argument prototype would still apply. */
3130 pcg 1.11 char strerror ();
3131     int
3132     main ()
3133     {
3134 ayin 1.104 strerror ();
3135 pcg 1.11 ;
3136     return 0;
3137     }
3138     _ACEOF
3139 ayin 1.104 rm -f conftest.$ac_objext conftest$ac_exeext
3140     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3141     (eval $ac_link) 2>conftest.er1
3142 pcg 1.11 ac_status=$?
3143     grep -v '^ *+' conftest.er1 >conftest.err
3144     rm -f conftest.er1
3145     cat conftest.err >&5
3146     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 ayin 1.104 (exit $ac_status); } &&
3148     { ac_try='test -z "$ac_c_werror_flag"
3149     || test ! -s conftest.err'
3150     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3151     (eval $ac_try) 2>&5
3152     ac_status=$?
3153     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154     (exit $ac_status); }; } &&
3155     { ac_try='test -s conftest$ac_exeext'
3156     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3157     (eval $ac_try) 2>&5
3158     ac_status=$?
3159     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160     (exit $ac_status); }; }; then
3161     ac_cv_search_strerror="none required"
3162 root 1.80 else
3163     echo "$as_me: failed program was:" >&5
3164     sed 's/^/| /' conftest.$ac_ext >&5
3165    
3166 ayin 1.102 fi
3167 ayin 1.104 rm -f conftest.err conftest.$ac_objext \
3168     conftest$ac_exeext conftest.$ac_ext
3169     if test "$ac_cv_search_strerror" = no; then
3170     for ac_lib in cposix; do
3171     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3172     cat >conftest.$ac_ext <<_ACEOF
3173     /* confdefs.h. */
3174     _ACEOF
3175     cat confdefs.h >>conftest.$ac_ext
3176     cat >>conftest.$ac_ext <<_ACEOF
3177     /* end confdefs.h. */
3178    
3179     /* Override any gcc2 internal prototype to avoid an error. */
3180     #ifdef __cplusplus
3181     extern "C"
3182     #endif
3183     /* We use char because int might match the return type of a gcc2
3184     builtin and then its argument prototype would still apply. */
3185     char strerror ();
3186     int
3187     main ()
3188     {
3189     strerror ();
3190     ;
3191     return 0;
3192     }
3193     _ACEOF
3194     rm -f conftest.$ac_objext conftest$ac_exeext
3195     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3196     (eval $ac_link) 2>conftest.er1
3197     ac_status=$?
3198     grep -v '^ *+' conftest.er1 >conftest.err
3199     rm -f conftest.er1
3200     cat conftest.err >&5
3201     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202     (exit $ac_status); } &&
3203     { ac_try='test -z "$ac_c_werror_flag"
3204     || test ! -s conftest.err'
3205     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3206     (eval $ac_try) 2>&5
3207     ac_status=$?
3208     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209     (exit $ac_status); }; } &&
3210     { ac_try='test -s conftest$ac_exeext'
3211     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3212     (eval $ac_try) 2>&5
3213     ac_status=$?
3214     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215     (exit $ac_status); }; }; then
3216     ac_cv_search_strerror="-l$ac_lib"
3217     break
3218     else
3219     echo "$as_me: failed program was:" >&5
3220     sed 's/^/| /' conftest.$ac_ext >&5
3221    
3222     fi
3223     rm -f conftest.err conftest.$ac_objext \
3224     conftest$ac_exeext conftest.$ac_ext
3225     done
3226     fi
3227     LIBS=$ac_func_search_save_LIBS
3228     fi
3229     echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3230     echo "${ECHO_T}$ac_cv_search_strerror" >&6
3231     if test "$ac_cv_search_strerror" != no; then
3232     test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3233    
3234     fi
3235    
3236     ac_ext=cc
3237     ac_cpp='$CXXCPP $CPPFLAGS'
3238     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3239     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3240     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3241    
3242    
3243     if test x$GCC = xyes && test x$GXX = xyes; then
3244     echo "$as_me:$LINENO: checking for working libsupc++" >&5
3245     echo $ECHO_N "checking for working libsupc++... $ECHO_C" >&6
3246     save_CXX="$CXX"
3247     save_LIBS="$LIBS"
3248     CXX="$CC"
3249     LIBS="$LIBS -lsupc++"
3250     LINKER="$CC"
3251    
3252     cat >conftest.$ac_ext <<_ACEOF
3253 root 1.80 /* confdefs.h. */
3254     _ACEOF
3255     cat confdefs.h >>conftest.$ac_ext
3256     cat >>conftest.$ac_ext <<_ACEOF
3257     /* end confdefs.h. */
3258 root 1.84 struct test { }; void f() try { throw new test; } catch (...) { throw; }
3259 root 1.80 int
3260     main ()
3261     {
3262 root 1.84
3263 root 1.80 ;
3264     return 0;
3265     }
3266     _ACEOF
3267     rm -f conftest.$ac_objext conftest$ac_exeext
3268 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3269     (eval $ac_link) 2>conftest.er1
3270 root 1.80 ac_status=$?
3271     grep -v '^ *+' conftest.er1 >conftest.err
3272     rm -f conftest.er1
3273     cat conftest.err >&5
3274     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 ayin 1.104 (exit $ac_status); } &&
3276     { ac_try='test -z "$ac_cxx_werror_flag"
3277     || test ! -s conftest.err'
3278     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3279     (eval $ac_try) 2>&5
3280     ac_status=$?
3281     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282     (exit $ac_status); }; } &&
3283     { ac_try='test -s conftest$ac_exeext'
3284     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3285     (eval $ac_try) 2>&5
3286     ac_status=$?
3287     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288     (exit $ac_status); }; }; then
3289    
3290     echo "$as_me:$LINENO: result: ok" >&5
3291     echo "${ECHO_T}ok" >&6
3292     CXXLIB="-lsupc++"
3293    
3294 root 1.80 else
3295     echo "$as_me: failed program was:" >&5
3296     sed 's/^/| /' conftest.$ac_ext >&5
3297    
3298 root 1.84
3299 ayin 1.104 echo "$as_me:$LINENO: result: no, making everything bigger and slower" >&5
3300     echo "${ECHO_T}no, making everything bigger and slower" >&6
3301 root 1.84 LIBS="$save_LIBS"
3302 root 1.85 LINKER="$save_CXX"
3303 root 1.84
3304    
3305 root 1.80 fi
3306 ayin 1.104 rm -f conftest.err conftest.$ac_objext \
3307 root 1.80 conftest$ac_exeext conftest.$ac_ext
3308 root 1.85 CXX="$save_CXX"
3309 root 1.80 fi
3310     LINKER=$LINKER
3311    
3312    
3313 ayin 1.104
3314 root 1.80 if test -z "$orig_CXXFLAGS"; then
3315     if test x$GCC = xyes && test "x$GXX" = xyes; then
3316 root 1.91 CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs"
3317 root 1.84 cat >conftest.$ac_ext <<_ACEOF
3318 root 1.83 /* confdefs.h. */
3319     _ACEOF
3320     cat confdefs.h >>conftest.$ac_ext
3321     cat >>conftest.$ac_ext <<_ACEOF
3322     /* end confdefs.h. */
3323    
3324     int
3325     main ()
3326     {
3327    
3328     ;
3329     return 0;
3330     }
3331 root 1.80 _ACEOF
3332     rm -f conftest.$ac_objext
3333 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3334     (eval $ac_compile) 2>conftest.er1
3335 root 1.80 ac_status=$?
3336     grep -v '^ *+' conftest.er1 >conftest.err
3337     rm -f conftest.er1
3338     cat conftest.err >&5
3339     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 ayin 1.104 (exit $ac_status); } &&
3341     { ac_try='test -z "$ac_cxx_werror_flag"
3342     || test ! -s conftest.err'
3343     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3344     (eval $ac_try) 2>&5
3345     ac_status=$?
3346     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347     (exit $ac_status); }; } &&
3348     { ac_try='test -s conftest.$ac_objext'
3349     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350     (eval $ac_try) 2>&5
3351     ac_status=$?
3352     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353     (exit $ac_status); }; }; then
3354 root 1.82 :
3355 root 1.80 else
3356     echo "$as_me: failed program was:" >&5
3357     sed 's/^/| /' conftest.$ac_ext >&5
3358    
3359 ayin 1.104 CXXFLAGS="-g -O3"
3360 root 1.80 fi
3361 ayin 1.104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3362 root 1.80 else
3363     CXXFLAGS="-O"
3364     fi
3365     CFLAGS="$CXXFLAGS"
3366     fi
3367    
3368    
3369     cat >>confdefs.h <<\_ACEOF
3370     #define _GNU_SOURCE 1
3371     _ACEOF
3372    
3373    
3374     case $host in
3375     *-*-solaris* )
3376    
3377     cat >>confdefs.h <<\_ACEOF
3378     #define _XOPEN_SOURCE_EXTENDED 1
3379     _ACEOF
3380    
3381    
3382     cat >>confdefs.h <<\_ACEOF
3383     #define _XOPEN_SOURCE 2
3384     _ACEOF
3385    
3386 pcg 1.11
3387 root 1.80 cat >>confdefs.h <<\_ACEOF
3388     #define __EXTENSIONS__ 1
3389     _ACEOF
3390 pcg 1.11
3391 root 1.80 ;;
3392     esac
3393 pcg 1.1
3394    
3395 ayin 1.104 echo "$as_me:$LINENO: checking for setlocale" >&5
3396     echo $ECHO_N "checking for setlocale... $ECHO_C" >&6
3397 root 1.57 if test "${ac_cv_func_setlocale+set}" = set; then
3398     echo $ECHO_N "(cached) $ECHO_C" >&6
3399     else
3400     cat >conftest.$ac_ext <<_ACEOF
3401     /* confdefs.h. */
3402     _ACEOF
3403     cat confdefs.h >>conftest.$ac_ext
3404     cat >>conftest.$ac_ext <<_ACEOF
3405     /* end confdefs.h. */
3406     /* Define setlocale to an innocuous variant, in case <limits.h> declares setlocale.
3407     For example, HP-UX 11i <limits.h> declares gettimeofday. */
3408     #define setlocale innocuous_setlocale
3409    
3410     /* System header to define __stub macros and hopefully few prototypes,
3411     which can conflict with char setlocale (); below.
3412     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3413     <limits.h> exists even on freestanding compilers. */
3414    
3415     #ifdef __STDC__
3416     # include <limits.h>
3417     #else
3418     # include <assert.h>
3419     #endif
3420    
3421     #undef setlocale
3422    
3423 ayin 1.104 /* Override any gcc2 internal prototype to avoid an error. */
3424 root 1.57 #ifdef __cplusplus
3425     extern "C"
3426 ayin 1.104 {
3427 root 1.57 #endif
3428 ayin 1.104 /* We use char because int might match the return type of a gcc2
3429     builtin and then its argument prototype would still apply. */
3430 root 1.57 char setlocale ();
3431     /* The GNU C library defines this for functions which it implements
3432     to always fail with ENOSYS. Some functions are actually named
3433     something starting with __ and the normal name is an alias. */
3434 ayin 1.104 #if defined (__stub_setlocale) || defined (__stub___setlocale)
3435 root 1.57 choke me
3436 ayin 1.104 #else
3437     char (*f) () = setlocale;
3438     #endif
3439     #ifdef __cplusplus
3440     }
3441 root 1.57 #endif
3442    
3443     int
3444     main ()
3445     {
3446 ayin 1.104 return f != setlocale;
3447 root 1.57 ;
3448     return 0;
3449     }
3450     _ACEOF
3451     rm -f conftest.$ac_objext conftest$ac_exeext
3452 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3453     (eval $ac_link) 2>conftest.er1
3454 root 1.57 ac_status=$?
3455     grep -v '^ *+' conftest.er1 >conftest.err
3456     rm -f conftest.er1
3457     cat conftest.err >&5
3458     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 ayin 1.104 (exit $ac_status); } &&
3460     { ac_try='test -z "$ac_cxx_werror_flag"
3461     || test ! -s conftest.err'
3462     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3463     (eval $ac_try) 2>&5
3464     ac_status=$?
3465     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466     (exit $ac_status); }; } &&
3467     { ac_try='test -s conftest$ac_exeext'
3468     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3469     (eval $ac_try) 2>&5
3470     ac_status=$?
3471     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472     (exit $ac_status); }; }; then
3473 root 1.57 ac_cv_func_setlocale=yes
3474     else
3475     echo "$as_me: failed program was:" >&5
3476     sed 's/^/| /' conftest.$ac_ext >&5
3477    
3478 ayin 1.104 ac_cv_func_setlocale=no
3479 root 1.57 fi
3480 ayin 1.104 rm -f conftest.err conftest.$ac_objext \
3481 root 1.57 conftest$ac_exeext conftest.$ac_ext
3482     fi
3483 ayin 1.104 echo "$as_me:$LINENO: result: $ac_cv_func_setlocale" >&5
3484     echo "${ECHO_T}$ac_cv_func_setlocale" >&6
3485 root 1.57 if test $ac_cv_func_setlocale = yes; then
3486     :
3487     else
3488 ayin 1.104 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
3489     echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
3490 pcg 1.25 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
3491     echo $ECHO_N "(cached) $ECHO_C" >&6
3492     else
3493     ac_check_lib_save_LIBS=$LIBS
3494     LIBS="-lxpg4 $LIBS"
3495     cat >conftest.$ac_ext <<_ACEOF
3496     /* confdefs.h. */
3497     _ACEOF
3498     cat confdefs.h >>conftest.$ac_ext
3499     cat >>conftest.$ac_ext <<_ACEOF
3500     /* end confdefs.h. */
3501    
3502 ayin 1.104 /* Override any gcc2 internal prototype to avoid an error. */
3503 pcg 1.25 #ifdef __cplusplus
3504     extern "C"
3505     #endif
3506 ayin 1.104 /* We use char because int might match the return type of a gcc2
3507     builtin and then its argument prototype would still apply. */
3508 pcg 1.25 char setlocale ();
3509     int
3510     main ()
3511     {
3512 ayin 1.104 setlocale ();
3513 pcg 1.25 ;
3514     return 0;
3515     }
3516     _ACEOF
3517     rm -f conftest.$ac_objext conftest$ac_exeext
3518 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3519     (eval $ac_link) 2>conftest.er1
3520 pcg 1.25 ac_status=$?
3521     grep -v '^ *+' conftest.er1 >conftest.err
3522     rm -f conftest.er1
3523     cat conftest.err >&5
3524     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 ayin 1.104 (exit $ac_status); } &&
3526     { ac_try='test -z "$ac_cxx_werror_flag"
3527     || test ! -s conftest.err'
3528     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3529     (eval $ac_try) 2>&5
3530     ac_status=$?
3531     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532     (exit $ac_status); }; } &&
3533     { ac_try='test -s conftest$ac_exeext'
3534     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3535     (eval $ac_try) 2>&5
3536     ac_status=$?
3537     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538     (exit $ac_status); }; }; then
3539 pcg 1.25 ac_cv_lib_xpg4_setlocale=yes
3540     else
3541     echo "$as_me: failed program was:" >&5
3542     sed 's/^/| /' conftest.$ac_ext >&5
3543    
3544 ayin 1.104 ac_cv_lib_xpg4_setlocale=no
3545 pcg 1.25 fi
3546 ayin 1.104 rm -f conftest.err conftest.$ac_objext \
3547 pcg 1.25 conftest$ac_exeext conftest.$ac_ext
3548     LIBS=$ac_check_lib_save_LIBS
3549     fi
3550 ayin 1.104 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
3551     echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
3552 pcg 1.25 if test $ac_cv_lib_xpg4_setlocale = yes; then
3553     LIBS="$LIBS -lxpg4"
3554     fi
3555    
3556 root 1.57 fi
3557    
3558    
3559 ayin 1.104 echo "$as_me:$LINENO: checking for gethostbyname" >&5
3560     echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3561 root 1.57 if test "${ac_cv_func_gethostbyname+set}" = set; then
3562     echo $ECHO_N "(cached) $ECHO_C" >&6
3563     else
3564     cat >conftest.$ac_ext <<_ACEOF
3565     /* confdefs.h. */
3566     _ACEOF
3567     cat confdefs.h >>conftest.$ac_ext
3568     cat >>conftest.$ac_ext <<_ACEOF
3569     /* end confdefs.h. */
3570     /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3571     For example, HP-UX 11i <limits.h> declares gettimeofday. */
3572     #define gethostbyname innocuous_gethostbyname
3573    
3574     /* System header to define __stub macros and hopefully few prototypes,
3575     which can conflict with char gethostbyname (); below.
3576     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3577     <limits.h> exists even on freestanding compilers. */
3578    
3579     #ifdef __STDC__
3580     # include <limits.h>
3581     #else
3582     # include <assert.h>
3583     #endif
3584    
3585     #undef gethostbyname
3586    
3587 ayin 1.104 /* Override any gcc2 internal prototype to avoid an error. */
3588 root 1.57 #ifdef __cplusplus
3589     extern "C"
3590 ayin 1.104 {
3591 root 1.57 #endif
3592 ayin 1.104 /* We use char because int might match the return type of a gcc2
3593     builtin and then its argument prototype would still apply. */
3594 root 1.57 char gethostbyname ();
3595     /* The GNU C library defines this for functions which it implements
3596     to always fail with ENOSYS. Some functions are actually named
3597     something starting with __ and the normal name is an alias. */
3598 ayin 1.104 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3599 root 1.57 choke me
3600 ayin 1.104 #else
3601     char (*f) () = gethostbyname;
3602     #endif
3603     #ifdef __cplusplus
3604     }
3605 root 1.57 #endif
3606    
3607     int
3608     main ()
3609     {
3610 ayin 1.104 return f != gethostbyname;
3611 root 1.57 ;
3612     return 0;
3613     }
3614     _ACEOF
3615     rm -f conftest.$ac_objext conftest$ac_exeext
3616 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3617     (eval $ac_link) 2>conftest.er1
3618 root 1.57 ac_status=$?
3619     grep -v '^ *+' conftest.er1 >conftest.err
3620     rm -f conftest.er1
3621     cat conftest.err >&5
3622     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 ayin 1.104 (exit $ac_status); } &&
3624     { ac_try='test -z "$ac_cxx_werror_flag"
3625     || test ! -s conftest.err'
3626     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3627     (eval $ac_try) 2>&5
3628     ac_status=$?
3629     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630     (exit $ac_status); }; } &&
3631     { ac_try='test -s conftest$ac_exeext'
3632     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3633     (eval $ac_try) 2>&5
3634     ac_status=$?
3635     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636     (exit $ac_status); }; }; then
3637 root 1.57 ac_cv_func_gethostbyname=yes
3638     else
3639     echo "$as_me: failed program was:" >&5
3640     sed 's/^/| /' conftest.$ac_ext >&5
3641 pcg 1.25
3642 ayin 1.104 ac_cv_func_gethostbyname=no
3643 root 1.57 fi
3644 ayin 1.104 rm -f conftest.err conftest.$ac_objext \
3645 root 1.57 conftest$ac_exeext conftest.$ac_ext
3646     fi
3647 ayin 1.104 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3648     echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3649 root 1.57 if test $ac_cv_func_gethostbyname = yes; then
3650     :
3651     else
3652 ayin 1.104 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3653     echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3654 pcg 1.25 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3655     echo $ECHO_N "(cached) $ECHO_C" >&6
3656     else
3657     ac_check_lib_save_LIBS=$LIBS
3658     LIBS="-lnsl $LIBS"
3659     cat >conftest.$ac_ext <<_ACEOF
3660     /* confdefs.h. */
3661     _ACEOF
3662     cat confdefs.h >>conftest.$ac_ext
3663     cat >>conftest.$ac_ext <<_ACEOF
3664     /* end confdefs.h. */
3665    
3666 ayin 1.104 /* Override any gcc2 internal prototype to avoid an error. */
3667 pcg 1.25 #ifdef __cplusplus
3668     extern "C"
3669     #endif
3670 ayin 1.104 /* We use char because int might match the return type of a gcc2
3671     builtin and then its argument prototype would still apply. */
3672 pcg 1.25 char gethostbyname ();
3673     int
3674     main ()
3675     {
3676 ayin 1.104 gethostbyname ();
3677 pcg 1.25 ;
3678     return 0;
3679     }
3680     _ACEOF
3681     rm -f conftest.$ac_objext conftest$ac_exeext
3682 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3683     (eval $ac_link) 2>conftest.er1
3684 pcg 1.25 ac_status=$?
3685     grep -v '^ *+' conftest.er1 >conftest.err
3686     rm -f conftest.er1
3687     cat conftest.err >&5
3688     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689 ayin 1.104 (exit $ac_status); } &&
3690     { ac_try='test -z "$ac_cxx_werror_flag"
3691     || test ! -s conftest.err'
3692     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3693     (eval $ac_try) 2>&5
3694     ac_status=$?
3695     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696     (exit $ac_status); }; } &&
3697     { ac_try='test -s conftest$ac_exeext'
3698     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3699     (eval $ac_try) 2>&5
3700     ac_status=$?
3701     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702     (exit $ac_status); }; }; then
3703 pcg 1.25 ac_cv_lib_nsl_gethostbyname=yes
3704     else
3705     echo "$as_me: failed program was:" >&5
3706     sed 's/^/| /' conftest.$ac_ext >&5
3707    
3708 ayin 1.104 ac_cv_lib_nsl_gethostbyname=no
3709 pcg 1.25 fi
3710 ayin 1.104 rm -f conftest.err conftest.$ac_objext \
3711 pcg 1.25 conftest$ac_exeext conftest.$ac_ext
3712     LIBS=$ac_check_lib_save_LIBS
3713     fi
3714 ayin 1.104 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3715     echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3716 pcg 1.25 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3717     LIBS="$LIBS -lnsl"
3718     fi
3719    
3720 root 1.57 fi
3721    
3722 ayin 1.104 echo "$as_me:$LINENO: checking for socket" >&5
3723     echo $ECHO_N "checking for socket... $ECHO_C" >&6
3724 root 1.57 if test "${ac_cv_func_socket+set}" = set; then
3725     echo $ECHO_N "(cached) $ECHO_C" >&6
3726     else
3727     cat >conftest.$ac_ext <<_ACEOF
3728     /* confdefs.h. */
3729     _ACEOF
3730     cat confdefs.h >>conftest.$ac_ext
3731     cat >>conftest.$ac_ext <<_ACEOF
3732     /* end confdefs.h. */
3733     /* Define socket to an innocuous variant, in case <limits.h> declares socket.
3734     For example, HP-UX 11i <limits.h> declares gettimeofday. */
3735     #define socket innocuous_socket
3736    
3737     /* System header to define __stub macros and hopefully few prototypes,
3738     which can conflict with char socket (); below.
3739     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3740     <limits.h> exists even on freestanding compilers. */
3741    
3742     #ifdef __STDC__
3743     # include <limits.h>
3744     #else
3745     # include <assert.h>
3746     #endif
3747    
3748     #undef socket
3749    
3750 ayin 1.104 /* Override any gcc2 internal prototype to avoid an error. */
3751 root 1.57 #ifdef __cplusplus
3752     extern "C"
3753 ayin 1.104 {
3754 root 1.57 #endif
3755 ayin 1.104 /* We use char because int might match the return type of a gcc2
3756     builtin and then its argument prototype would still apply. */
3757 root 1.57 char socket ();
3758     /* The GNU C library defines this for functions which it implements
3759     to always fail with ENOSYS. Some functions are actually named
3760     something starting with __ and the normal name is an alias. */
3761 ayin 1.104 #if defined (__stub_socket) || defined (__stub___socket)
3762 root 1.57 choke me
3763 ayin 1.104 #else
3764     char (*f) () = socket;
3765     #endif
3766     #ifdef __cplusplus
3767     }
3768 root 1.57 #endif
3769    
3770     int
3771     main ()
3772     {
3773 ayin 1.104 return f != socket;
3774 root 1.57 ;
3775     return 0;
3776     }
3777     _ACEOF
3778     rm -f conftest.$ac_objext conftest$ac_exeext
3779 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3780     (eval $ac_link) 2>conftest.er1
3781 root 1.57 ac_status=$?
3782     grep -v '^ *+' conftest.er1 >conftest.err
3783     rm -f conftest.er1
3784     cat conftest.err >&5
3785     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786 ayin 1.104 (exit $ac_status); } &&
3787     { ac_try='test -z "$ac_cxx_werror_flag"
3788     || test ! -s conftest.err'
3789     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3790     (eval $ac_try) 2>&5
3791     ac_status=$?
3792     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793     (exit $ac_status); }; } &&
3794     { ac_try='test -s conftest$ac_exeext'
3795     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796     (eval $ac_try) 2>&5
3797     ac_status=$?
3798     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799     (exit $ac_status); }; }; then
3800 root 1.57 ac_cv_func_socket=yes
3801     else
3802     echo "$as_me: failed program was:" >&5
3803     sed 's/^/| /' conftest.$ac_ext >&5
3804    
3805 ayin 1.104 ac_cv_func_socket=no
3806 root 1.57 fi
3807 ayin 1.104 rm -f conftest.err conftest.$ac_objext \
3808 root 1.57 conftest$ac_exeext conftest.$ac_ext
3809     fi
3810 ayin 1.104 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
3811     echo "${ECHO_T}$ac_cv_func_socket" >&6
3812 root 1.57 if test $ac_cv_func_socket = yes; then
3813     :
3814     else
3815 ayin 1.104 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3816     echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3817 pcg 1.25 if test "${ac_cv_lib_socket_socket+set}" = set; then
3818     echo $ECHO_N "(cached) $ECHO_C" >&6
3819     else
3820     ac_check_lib_save_LIBS=$LIBS
3821     LIBS="-lsocket $LIBS"
3822     cat >conftest.$ac_ext <<_ACEOF
3823     /* confdefs.h. */
3824     _ACEOF
3825     cat confdefs.h >>conftest.$ac_ext
3826     cat >>conftest.$ac_ext <<_ACEOF
3827     /* end confdefs.h. */
3828    
3829 ayin 1.104 /* Override any gcc2 internal prototype to avoid an error. */
3830 pcg 1.25 #ifdef __cplusplus
3831     extern "C"
3832     #endif
3833 ayin 1.104 /* We use char because int might match the return type of a gcc2
3834     builtin and then its argument prototype would still apply. */
3835 pcg 1.25 char socket ();
3836     int
3837     main ()
3838     {
3839 ayin 1.104 socket ();
3840 pcg 1.25 ;
3841     return 0;
3842     }
3843     _ACEOF
3844     rm -f conftest.$ac_objext conftest$ac_exeext
3845 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3846     (eval $ac_link) 2>conftest.er1
3847 pcg 1.25 ac_status=$?
3848     grep -v '^ *+' conftest.er1 >conftest.err
3849     rm -f conftest.er1
3850     cat conftest.err >&5
3851     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852 ayin 1.104 (exit $ac_status); } &&
3853     { ac_try='test -z "$ac_cxx_werror_flag"
3854     || test ! -s conftest.err'
3855     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3856     (eval $ac_try) 2>&5
3857     ac_status=$?
3858     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859     (exit $ac_status); }; } &&
3860     { ac_try='test -s conftest$ac_exeext'
3861     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3862     (eval $ac_try) 2>&5
3863     ac_status=$?
3864     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865     (exit $ac_status); }; }; then
3866 pcg 1.25 ac_cv_lib_socket_socket=yes
3867     else
3868     echo "$as_me: failed program was:" >&5
3869     sed 's/^/| /' conftest.$ac_ext >&5
3870    
3871 ayin 1.104 ac_cv_lib_socket_socket=no
3872 root 1.51 fi
3873 ayin 1.104 rm -f conftest.err conftest.$ac_objext \
3874 root 1.51 conftest$ac_exeext conftest.$ac_ext
3875     LIBS=$ac_check_lib_save_LIBS
3876     fi
3877 ayin 1.104 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3878     echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3879 root 1.51 if test $ac_cv_lib_socket_socket = yes; then
3880     LIBS="$LIBS -lsocket"
3881 pcg 1.1 fi
3882    
3883 root 1.57 fi
3884    
3885 pcg 1.1
3886    
3887 root 1.54 support_frills=yes
3888 root 1.62 support_inheritpixmap=yes
3889 root 1.54 support_tinting=yes
3890     support_fading=yes
3891     support_keepscrolling=yes
3892     support_selectionscrolling=yes
3893     support_mousewheel=yes
3894     support_mouseslipwheel=yes
3895     support_text_blink=yes
3896     support_pointer_blank=yes
3897     support_scroll_rxvt=yes
3898     support_scroll_next=yes
3899     support_scroll_xterm=yes
3900     support_scroll_plain=yes
3901     support_xim=yes
3902 root 1.62 support_xpm=yes
3903 root 1.103 support_afterimage=yes
3904     support_afterstep=yes
3905 root 1.54 support_xft=yes
3906 pcg 1.1 support_unicode3=no
3907 root 1.54 support_combining=yes
3908 root 1.26 support_8bitctrls=no
3909 root 1.54 support_iso14755=yes
3910     support_styles=yes
3911 root 1.62 support_perl=yes
3912 root 1.54 codesets=all
3913 pcg 1.1
3914    
3915     if test "x$enable_shared" = xyes; then
3916 pcg 1.11
3917     cat >>confdefs.h <<\_ACEOF
3918 pcg 1.1 #define LIBRXVT 1
3919 pcg 1.11 _ACEOF
3920 pcg 1.1
3921     INSTALL_LIBRXVT=yes
3922     fi
3923    
3924    
3925 ayin 1.104 # Check whether --enable-everything or --disable-everything was given.
3926 pcg 1.1 if test "${enable_everything+set}" = set; then
3927 ayin 1.104 enableval="$enable_everything"
3928    
3929 root 1.54 if test x$enableval = xno; then
3930     support_frills=no
3931     support_inheritpixmap=no
3932     support_tinting=no
3933     support_fading=no
3934     support_keepscrolling=no
3935     support_selectionscrolling=no
3936     support_lastlog=no
3937     support_mousewheel=no
3938     support_mouseslipwheel=no
3939     support_text_blink=no
3940     support_pointer_blank=no
3941     support_scroll_rxvt=no
3942     support_scroll_next=no
3943     support_scroll_xterm=no
3944     support_scroll_plain=no
3945     support_utmp=no
3946     support_wtmp=no
3947     support_xim=no
3948     support_xpm=no
3949 root 1.103 support_afterimage=no
3950     support_afterstep=no
3951 root 1.54 support_xft=no
3952     support_unicode3=no
3953     support_combining=no
3954     support_8bitctrls=no
3955     support_iso14755=no
3956     support_styles=no
3957 root 1.60 support_perl=no
3958 root 1.54 codesets=
3959     fi
3960     if test x$enableval = xyes; then
3961     support_frills=yes
3962     support_inheritpixmap=yes
3963     support_tinting=yes
3964     support_fading=yes
3965     support_keepscrolling=yes
3966     support_selectionscrolling=yes
3967     support_lastlog=yes
3968     support_mousewheel=yes
3969     support_mouseslipwheel=yes
3970     support_text_blink=yes
3971     support_pointer_blank=yes
3972     support_scroll_rxvt=yes
3973     support_scroll_next=yes
3974     support_scroll_xterm=yes
3975     support_scroll_plain=yes
3976     support_utmp=yes
3977     support_wtmp=yes
3978     support_xim=yes
3979     support_xpm=yes
3980 root 1.103 support_afterimage=yes
3981     support_afterstep=yes
3982 root 1.54 support_xft=yes
3983     support_unicode3=yes
3984     support_combining=yes
3985     #support_8bitctrls=yes
3986     support_iso14755=yes
3987     support_styles=yes
3988 root 1.60 support_perl=yes
3989 root 1.54 codesets=all
3990     fi
3991    
3992 ayin 1.104 fi;
3993 pcg 1.4
3994 ayin 1.104 # Check whether --enable-unicode3 or --disable-unicode3 was given.
3995 pcg 1.1 if test "${enable_unicode3+set}" = set; then
3996 ayin 1.104 enableval="$enable_unicode3"
3997     if test x$enableval = xyes -o x$enableval = xno; then
3998 root 1.39 support_unicode3=$enableval
3999 pcg 1.1 fi
4000 ayin 1.104 fi;
4001 ayin 1.102
4002 ayin 1.104 # Check whether --enable-combining or --disable-combining was given.
4003 pcg 1.18 if test "${enable_combining+set}" = set; then
4004 ayin 1.104 enableval="$enable_combining"
4005     if test x$enableval = xyes -o x$enableval = xno; then
4006 root 1.39 support_combining=$enableval
4007 pcg 1.18 fi
4008 ayin 1.104 fi;
4009 ayin 1.102
4010 ayin 1.104 # Check whether --enable-xft or --disable-xft was given.
4011 pcg 1.1 if test "${enable_xft+set}" = set; then
4012 ayin 1.104 enableval="$enable_xft"
4013     if test x$enableval = xyes -o x$enableval = xno; then
4014 root 1.39 support_xft=$enableval
4015     fi
4016 ayin 1.104 fi;
4017 ayin 1.102
4018 ayin 1.104 # Check whether --enable-font-styles or --disable-font-styles was given.
4019 root 1.39 if test "${enable_font_styles+set}" = set; then
4020 ayin 1.104 enableval="$enable_font_styles"
4021     if test x$enableval = xyes -o x$enableval = xno; then
4022 root 1.39 support_styles=$enableval
4023 pcg 1.1 fi
4024 ayin 1.104 fi;
4025 ayin 1.102
4026 ayin 1.104 # Check whether --enable-xpm-background or --disable-xpm-background was given.
4027 pcg 1.1 if test "${enable_xpm_background+set}" = set; then
4028 ayin 1.104 enableval="$enable_xpm_background"
4029     if test x$enableval = xyes -o x$enableval = xno; then
4030 pcg 1.1 support_xpm=$enableval
4031     fi
4032 ayin 1.104 fi;
4033 ayin 1.102
4034 ayin 1.104 # Check whether --enable-afterimage or --disable-afterimage was given.
4035 root 1.103 if test "${enable_afterimage+set}" = set; then
4036 ayin 1.104 enableval="$enable_afterimage"
4037     if test x$enableval = xyes -o x$enableval = xno; then
4038 root 1.103 support_afterimage=$enableval
4039     fi
4040 ayin 1.104 fi;
4041 root 1.103
4042    
4043 ayin 1.104 # Check whether --with-afterimage_config or --without-afterimage_config was given.
4044 root 1.103 if test "${with_afterimage_config+set}" = set; then
4045 ayin 1.104 withval="$with_afterimage_config"
4046     if test "x$withval" != x; then
4047     afterimage_config=$withval/afterimage-config
4048     fi
4049     fi;
4050 root 1.103
4051 ayin 1.104 # Check whether --enable-afterstep or --disable-afterstep was given.
4052 root 1.103 if test "${enable_afterstep+set}" = set; then
4053 ayin 1.104 enableval="$enable_afterstep"
4054     if test x$enableval = xyes -o x$enableval = xno; then
4055 root 1.103 support_afterstep=$enableval
4056     fi
4057 ayin 1.104 fi;
4058 root 1.103
4059 ayin 1.104 # Check whether --enable-transparency or --disable-transparency was given.
4060 pcg 1.1 if test "${enable_transparency+set}" = set; then
4061 ayin 1.104 enableval="$enable_transparency"
4062     if test x$enableval = xyes -o x$enableval = xno; then
4063 pcg 1.1 support_inheritpixmap=$enableval
4064     fi
4065 ayin 1.104 fi;
4066 pcg 1.1
4067 ayin 1.104 # Check whether --enable-tinting or --disable-tinting was given.
4068 pcg 1.24 if test "${enable_tinting+set}" = set; then
4069 ayin 1.104 enableval="$enable_tinting"
4070     if test x$enableval = xyes -o x$enableval = xno; then
4071 pcg 1.24 support_tinting=$enableval
4072     fi
4073 ayin 1.104 fi;
4074 pcg 1.24
4075 ayin 1.104 # Check whether --enable-fading or --disable-fading was given.
4076 root 1.31 if test "${enable_fading+set}" = set; then
4077 ayin 1.104 enableval="$enable_fading"
4078     if test x$enableval = xyes -o x$enableval = xno; then
4079 root 1.31 support_fading=$enableval
4080     fi
4081 ayin 1.104 fi;
4082 root 1.31
4083 ayin 1.104 # Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given.
4084 pcg 1.1 if test "${enable_rxvt_scroll+set}" = set; then
4085 ayin 1.104 enableval="$enable_rxvt_scroll"
4086     if test x$enableval = xyes -o x$enableval = xno; then
4087 pcg 1.1 support_scroll_rxvt=$enableval
4088     fi
4089 ayin 1.104 fi;
4090 pcg 1.1
4091 ayin 1.104 # Check whether --enable-next-scroll or --disable-next-scroll was given.
4092 pcg 1.1 if test "${enable_next_scroll+set}" = set; then
4093 ayin 1.104 enableval="$enable_next_scroll"
4094     if test x$enableval = xyes -o x$enableval = xno; then
4095 pcg 1.1 support_scroll_next=$enableval
4096     fi
4097 ayin 1.104 fi;
4098 pcg 1.1
4099 ayin 1.104 # Check whether --enable-xterm-scroll or --disable-xterm-scroll was given.
4100 pcg 1.1 if test "${enable_xterm_scroll+set}" = set; then
4101 ayin 1.104 enableval="$enable_xterm_scroll"
4102     if test x$enableval = xyes -o x$enableval = xno; then
4103 pcg 1.1 support_scroll_xterm=$enableval
4104     fi
4105 ayin 1.104 fi;
4106 pcg 1.1
4107 ayin 1.104 # Check whether --enable-perl or --disable-perl was given.
4108 root 1.60 if test "${enable_perl+set}" = set; then
4109 ayin 1.104 enableval="$enable_perl"
4110     if test x$enableval = xyes -o x$enableval = xno; then
4111 root 1.60 support_perl=$enableval
4112     fi
4113 ayin 1.104 fi;
4114 root 1.60
4115 ayin 1.104 # Check whether --enable-plain-scroll or --disable-plain-scroll was given.
4116 pcg 1.11 if test "${enable_plain_scroll+set}" = set; then
4117 ayin 1.104 enableval="$enable_plain_scroll"
4118     if test x$enableval = xyes -o x$enableval = xno; then
4119 pcg 1.11 support_scroll_plain=$enableval
4120     fi
4121 ayin 1.104 fi;
4122 pcg 1.1
4123    
4124 ayin 1.104 # Check whether --with-codesets or --without-codesets was given.
4125 pcg 1.15 if test "${with_codesets+set}" = set; then
4126 ayin 1.104 withval="$with_codesets"
4127     codesets="$withval"
4128     fi;
4129 pcg 1.15
4130 ayin 1.104 # Check whether --enable-xim or --disable-xim was given.
4131 pcg 1.1 if test "${enable_xim+set}" = set; then
4132 ayin 1.104 enableval="$enable_xim"
4133     if test x$enableval = xyes -o x$enableval = xno; then
4134 pcg 1.1 support_xim=$enableval
4135     fi
4136 ayin 1.104 fi;
4137 pcg 1.1
4138 ayin 1.104 # Check whether --enable-backspace-key or --disable-backspace-key was given.
4139 pcg 1.1 if test "${enable_backspace_key+set}" = set; then
4140 ayin 1.104 enableval="$enable_backspace_key"
4141     if test x$enableval = xno; then
4142 pcg 1.11
4143     cat >>confdefs.h <<\_ACEOF
4144 pcg 1.1 #define NO_BACKSPACE_KEY 1
4145 pcg 1.11 _ACEOF
4146 pcg 1.1
4147     fi
4148 ayin 1.104 fi;
4149 pcg 1.1
4150 ayin 1.104 # Check whether --enable-delete-key or --disable-delete-key was given.
4151 pcg 1.1 if test "${enable_delete_key+set}" = set; then
4152 ayin 1.104 enableval="$enable_delete_key"
4153     if test x$enableval = xno; then
4154 pcg 1.11
4155     cat >>confdefs.h <<\_ACEOF
4156 pcg 1.1 #define NO_DELETE_KEY 1
4157 pcg 1.11 _ACEOF
4158 pcg 1.1
4159     fi
4160 ayin 1.104 fi;
4161 pcg 1.1
4162 ayin 1.104 # Check whether --enable-resources or --disable-resources was given.
4163 pcg 1.1 if test "${enable_resources+set}" = set; then
4164 ayin 1.104 enableval="$enable_resources"
4165     if test x$enableval = xno; then
4166 pcg 1.11
4167     cat >>confdefs.h <<\_ACEOF
4168 pcg 1.1 #define NO_RESOURCES 1
4169 pcg 1.11 _ACEOF
4170 pcg 1.1
4171     fi
4172 ayin 1.104 fi;
4173 pcg 1.1
4174 ayin 1.104 # Check whether --enable-8bitctrls or --disable-8bitctrls was given.
4175 root 1.26 if test "${enable_8bitctrls+set}" = set; then
4176 ayin 1.104 enableval="$enable_8bitctrls"
4177     if test x$enableval = xyes -o x$enableval = xno; then
4178 root 1.39 support_8bitctrls=$enableval
4179 root 1.26 fi
4180 ayin 1.104 fi;
4181 root 1.26
4182 pcg 1.15 RESFALLBACK=Rxvt
4183 ayin 1.104 # Check whether --enable-fallback or --disable-fallback was given.
4184 pcg 1.15 if test "${enable_fallback+set}" = set; then
4185 ayin 1.104 enableval="$enable_fallback"
4186    
4187 pcg 1.15 test x$enableval = xyes && enableval=Rxvt
4188     test x$enableval = xno && enableval=
4189     RESFALLBACK="$enableval"
4190    
4191 ayin 1.104 fi;
4192 pcg 1.15
4193     if test x$RESFALLBACK != x; then
4194    
4195     cat >>confdefs.h <<_ACEOF
4196     #define RESFALLBACK "$RESFALLBACK"
4197     _ACEOF
4198    
4199     fi
4200    
4201     RESNAME=urxvt
4202    
4203 ayin 1.104 # Check whether --with-res-name or --without-res-name was given.
4204 pcg 1.15 if test "${with_res_name+set}" = set; then
4205 ayin 1.104 withval="$with_res_name"
4206     RESNAME="$withval"
4207     fi;
4208 pcg 1.15
4209     cat >>confdefs.h <<_ACEOF
4210     #define RESNAME "$RESNAME"
4211     _ACEOF
4212    
4213    
4214     RESCLASS=URxvt
4215    
4216 ayin 1.104 # Check whether --with-res-class or --without-res-class was given.
4217 pcg 1.15 if test "${with_res_class+set}" = set; then
4218 ayin 1.104 withval="$with_res_class"
4219     RESCLASS="$withval"
4220     fi;
4221 pcg 1.15
4222     cat >>confdefs.h <<_ACEOF
4223     #define RESCLASS "$RESCLASS"
4224     _ACEOF
4225    
4226    
4227     RXVTNAME=urxvt
4228    
4229 ayin 1.104 # Check whether --with-name or --without-name was given.
4230 pcg 1.15 if test "${with_name+set}" = set; then
4231 ayin 1.104 withval="$with_name"
4232     RXVTNAME="$withval"
4233     fi;
4234 pcg 1.15
4235 root 1.39 cat >>confdefs.h <<_ACEOF
4236     #define RXVTNAME "$RXVTNAME"
4237     _ACEOF
4238    
4239    
4240 pcg 1.15 RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
4241    
4242    
4243 ayin 1.104 # Check whether --enable-swapscreen or --disable-swapscreen was given.
4244 pcg 1.1 if test "${enable_swapscreen+set}" = set; then
4245 ayin 1.104 enableval="$enable_swapscreen"
4246     if test x$enableval = xno; then
4247 pcg 1.11
4248     cat >>confdefs.h <<\_ACEOF
4249 pcg 1.1 #define NO_SECONDARY_SCREEN 1
4250 pcg 1.11 _ACEOF
4251 pcg 1.1
4252     fi
4253 ayin 1.104 fi;
4254 pcg 1.1
4255 ayin 1.104 # Check whether --enable-iso14755 or --disable-iso14755 was given.
4256 root 1.34 if test "${enable_iso14755+set}" = set; then
4257 ayin 1.104 enableval="$enable_iso14755"
4258     if test x$enableval = xyes -o x$enableval = xno; then
4259 root 1.34 support_iso14755=$enableval
4260     fi
4261 ayin 1.104 fi;
4262 root 1.34
4263 ayin 1.104 # Check whether --enable-frills or --disable-frills was given.
4264 pcg 1.1 if test "${enable_frills+set}" = set; then
4265 ayin 1.104 enableval="$enable_frills"
4266     if test x$enableval = xyes -o x$enableval = xno; then
4267 pcg 1.1 support_frills=$enableval
4268     fi
4269 ayin 1.104 fi;
4270 pcg 1.1
4271 ayin 1.104 # Check whether --enable-keepscrolling or --disable-keepscrolling was given.
4272 pcg 1.1 if test "${enable_keepscrolling+set}" = set; then
4273 ayin 1.104 enableval="$enable_keepscrolling"
4274     if test x$enableval = xyes -o x$enableval = xno; then
4275 pcg 1.1 support_keepscrolling=$enableval
4276     fi
4277 ayin 1.104 fi;
4278 pcg 1.1
4279 ayin 1.104 # Check whether --enable-selectionscrolling or --disable-selectionscrolling was given.
4280 pcg 1.1 if test "${enable_selectionscrolling+set}" = set; then
4281 ayin 1.104 enableval="$enable_selectionscrolling"
4282     if test x$enableval = xyes -o x$enableval = xno; then
4283 pcg 1.1 support_selectionscrolling=$enableval
4284     fi
4285 ayin 1.104 fi;
4286 pcg 1.1
4287 ayin 1.104 # Check whether --enable-mousewheel or --disable-mousewheel was given.
4288 pcg 1.1 if test "${enable_mousewheel+set}" = set; then
4289 ayin 1.104 enableval="$enable_mousewheel"
4290     if test x$enableval = xyes -o x$enableval = xno; then
4291 pcg 1.1 support_mousewheel=$enableval
4292     fi
4293 ayin 1.104 fi;
4294 pcg 1.1
4295 ayin 1.104 # Check whether --enable-slipwheeling or --disable-slipwheeling was given.
4296 pcg 1.1 if test "${enable_slipwheeling+set}" = set; then
4297 ayin 1.104 enableval="$enable_slipwheeling"
4298     if test x$enableval = xyes -o x$enableval = xno; then
4299 pcg 1.1 support_mouseslipwheel=$enableval
4300     fi
4301 ayin 1.104 fi;
4302 pcg 1.1
4303 ayin 1.104 # Check whether --enable-smart-resize or --disable-smart-resize was given.
4304 pcg 1.1 if test "${enable_smart_resize+set}" = set; then
4305 ayin 1.104 enableval="$enable_smart_resize"
4306     if test x$enableval = xyes; then
4307 pcg 1.11
4308     cat >>confdefs.h <<\_ACEOF
4309 pcg 1.1 #define SMART_RESIZE 1
4310 pcg 1.11 _ACEOF
4311 pcg 1.1
4312     fi
4313 ayin 1.104 fi;
4314 pcg 1.1
4315 ayin 1.104 # Check whether --enable-text-blink or --disable-text-blink was given.
4316 pcg 1.11 if test "${enable_text_blink+set}" = set; then
4317 ayin 1.104 enableval="$enable_text_blink"
4318     if test x$enableval = xyes -o x$enableval = xno; then
4319 pcg 1.11 support_text_blink=$enableval
4320     fi
4321 ayin 1.104 fi;
4322 pcg 1.1
4323 ayin 1.104 # Check whether --enable-pointer-blank or --disable-pointer-blank was given.
4324 pcg 1.1 if test "${enable_pointer_blank+set}" = set; then
4325 ayin 1.104 enableval="$enable_pointer_blank"
4326     if test x$enableval = xyes -o x$enableval = xno; then
4327 pcg 1.1 support_pointer_blank=$enableval
4328     fi
4329 ayin 1.104 fi;
4330 pcg 1.1
4331    
4332 ayin 1.104 # Check whether --with-term or --without-term was given.
4333 pcg 1.1 if test "${with_term+set}" = set; then
4334 ayin 1.104 withval="$with_term"
4335     if test x$withval != x; then
4336 pcg 1.11
4337     cat >>confdefs.h <<_ACEOF
4338 pcg 1.1 #define TERMENV "$withval"
4339 pcg 1.11 _ACEOF
4340 pcg 1.1 term="$withval"
4341     fi
4342 ayin 1.104 fi;
4343 pcg 1.1
4344    
4345 ayin 1.104 # Check whether --with-terminfo or --without-terminfo was given.
4346 pcg 1.1 if test "${with_terminfo+set}" = set; then
4347 ayin 1.104 withval="$with_terminfo"
4348     if test x$withval != x; then
4349 pcg 1.11
4350     cat >>confdefs.h <<_ACEOF
4351 pcg 1.1 #define RXVT_TERMINFO "$withval"
4352 pcg 1.11 _ACEOF
4353 pcg 1.1 terminfo="$withval"
4354     fi
4355 ayin 1.104 fi;
4356 ayin 1.102
4357 pcg 1.1
4358 ayin 1.104 # Extract the first word of "tic", so it can be a program name with args.
4359     set dummy tic; ac_word=$2
4360     echo "$as_me:$LINENO: checking for $ac_word" >&5
4361     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4362     if test "${ac_cv_path_TIC+set}" = set; then
4363 pcg 1.11 echo $ECHO_N "(cached) $ECHO_C" >&6
4364 pcg 1.1 else
4365 ayin 1.104 case $TIC in
4366 pcg 1.11 [\\/]* | ?:[\\/]*)
4367 ayin 1.104 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
4368 pcg 1.1 ;;
4369     *)
4370 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4371     for as_dir in $PATH
4372     do
4373     IFS=$as_save_IFS
4374     test -z "$as_dir" && as_dir=.
4375     for ac_exec_ext in '' $ac_executable_extensions; do
4376 ayin 1.104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4377     ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext"
4378 pcg 1.11 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4379     break 2
4380     fi
4381     done
4382     done
4383    
4384 pcg 1.1 ;;
4385     esac
4386     fi
4387 ayin 1.104 TIC=$ac_cv_path_TIC
4388    
4389     if test -n "$TIC"; then
4390     echo "$as_me:$LINENO: result: $TIC" >&5
4391     echo "${ECHO_T}$TIC" >&6
4392 pcg 1.1 else
4393 ayin 1.104 echo "$as_me:$LINENO: result: no" >&5
4394     echo "${ECHO_T}no" >&6
4395 pcg 1.1 fi
4396    
4397 ayin 1.102
4398 ayin 1.104
4399    
4400     ac_ext=cc
4401     ac_cpp='$CXXCPP $CPPFLAGS'
4402     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4403     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4404     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4405     echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4406     echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4407     if test -z "$CXXCPP"; then
4408     if test "${ac_cv_prog_CXXCPP+set}" = set; then
4409 pcg 1.11 echo $ECHO_N "(cached) $ECHO_C" >&6
4410 pcg 1.1 else
4411 ayin 1.104 # Double quotes because CXXCPP needs to be expanded
4412     for CXXCPP in "$CXX -E" "/lib/cpp"
4413     do
4414     ac_preproc_ok=false
4415     for ac_cxx_preproc_warn_flag in '' yes
4416 pcg 1.11 do
4417 ayin 1.104 # Use a header file that comes with gcc, so configuring glibc
4418     # with a fresh cross-compiler works.
4419     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4420     # <limits.h> exists even on freestanding compilers.
4421     # On the NeXT, cc -E runs the code through the compiler's parser,
4422 root 1.80 # not just through cpp. "Syntax error" is here to catch this case.
4423     cat >conftest.$ac_ext <<_ACEOF
4424     /* confdefs.h. */
4425     _ACEOF
4426     cat confdefs.h >>conftest.$ac_ext
4427     cat >>conftest.$ac_ext <<_ACEOF
4428     /* end confdefs.h. */
4429     #ifdef __STDC__
4430     # include <limits.h>
4431     #else
4432     # include <assert.h>
4433     #endif
4434     Syntax error
4435     _ACEOF
4436 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4437     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4438 root 1.80 ac_status=$?
4439     grep -v '^ *+' conftest.er1 >conftest.err
4440     rm -f conftest.er1
4441     cat conftest.err >&5
4442     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443 ayin 1.104 (exit $ac_status); } >/dev/null; then
4444     if test -s conftest.err; then
4445     ac_cpp_err=$ac_cxx_preproc_warn_flag
4446     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4447     else
4448     ac_cpp_err=
4449     fi
4450     else
4451     ac_cpp_err=yes
4452     fi
4453     if test -z "$ac_cpp_err"; then
4454 root 1.80 :
4455     else
4456     echo "$as_me: failed program was:" >&5
4457     sed 's/^/| /' conftest.$ac_ext >&5
4458    
4459     # Broken: fails on valid input.
4460     continue
4461     fi
4462     rm -f conftest.err conftest.$ac_ext
4463    
4464 ayin 1.104 # OK, works on sane cases. Now check whether non-existent headers
4465 root 1.80 # can be detected and how.
4466     cat >conftest.$ac_ext <<_ACEOF
4467     /* confdefs.h. */
4468     _ACEOF
4469     cat confdefs.h >>conftest.$ac_ext
4470     cat >>conftest.$ac_ext <<_ACEOF
4471     /* end confdefs.h. */
4472     #include <ac_nonexistent.h>
4473     _ACEOF
4474 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4475     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4476 root 1.80 ac_status=$?
4477     grep -v '^ *+' conftest.er1 >conftest.err
4478     rm -f conftest.er1
4479     cat conftest.err >&5
4480     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 ayin 1.104 (exit $ac_status); } >/dev/null; then
4482     if test -s conftest.err; then
4483     ac_cpp_err=$ac_cxx_preproc_warn_flag
4484     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4485     else
4486     ac_cpp_err=
4487     fi
4488     else
4489     ac_cpp_err=yes
4490     fi
4491     if test -z "$ac_cpp_err"; then
4492 root 1.80 # Broken: success on invalid input.
4493     continue
4494     else
4495     echo "$as_me: failed program was:" >&5
4496     sed 's/^/| /' conftest.$ac_ext >&5
4497    
4498     # Passes both tests.
4499     ac_preproc_ok=:
4500     break
4501     fi
4502     rm -f conftest.err conftest.$ac_ext
4503    
4504     done
4505     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4506     rm -f conftest.err conftest.$ac_ext
4507     if $ac_preproc_ok; then
4508     break
4509     fi
4510    
4511     done
4512     ac_cv_prog_CXXCPP=$CXXCPP
4513    
4514     fi
4515     CXXCPP=$ac_cv_prog_CXXCPP
4516     else
4517     ac_cv_prog_CXXCPP=$CXXCPP
4518     fi
4519 ayin 1.104 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4520     echo "${ECHO_T}$CXXCPP" >&6
4521 root 1.80 ac_preproc_ok=false
4522     for ac_cxx_preproc_warn_flag in '' yes
4523     do
4524     # Use a header file that comes with gcc, so configuring glibc
4525     # with a fresh cross-compiler works.
4526     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4527     # <limits.h> exists even on freestanding compilers.
4528     # On the NeXT, cc -E runs the code through the compiler's parser,
4529     # not just through cpp. "Syntax error" is here to catch this case.
4530     cat >conftest.$ac_ext <<_ACEOF
4531     /* confdefs.h. */
4532     _ACEOF
4533     cat confdefs.h >>conftest.$ac_ext
4534     cat >>conftest.$ac_ext <<_ACEOF
4535     /* end confdefs.h. */
4536     #ifdef __STDC__
4537     # include <limits.h>
4538     #else
4539     # include <assert.h>
4540     #endif
4541     Syntax error
4542     _ACEOF
4543 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4544     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4545 root 1.80 ac_status=$?
4546     grep -v '^ *+' conftest.er1 >conftest.err
4547     rm -f conftest.er1
4548     cat conftest.err >&5
4549     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 ayin 1.104 (exit $ac_status); } >/dev/null; then
4551     if test -s conftest.err; then
4552     ac_cpp_err=$ac_cxx_preproc_warn_flag
4553     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4554     else
4555     ac_cpp_err=
4556     fi
4557     else
4558     ac_cpp_err=yes
4559     fi
4560     if test -z "$ac_cpp_err"; then
4561 root 1.80 :
4562     else
4563     echo "$as_me: failed program was:" >&5
4564     sed 's/^/| /' conftest.$ac_ext >&5
4565    
4566     # Broken: fails on valid input.
4567     continue
4568     fi
4569     rm -f conftest.err conftest.$ac_ext
4570    
4571 ayin 1.104 # OK, works on sane cases. Now check whether non-existent headers
4572 root 1.80 # can be detected and how.
4573     cat >conftest.$ac_ext <<_ACEOF
4574     /* confdefs.h. */
4575     _ACEOF
4576     cat confdefs.h >>conftest.$ac_ext
4577     cat >>conftest.$ac_ext <<_ACEOF
4578     /* end confdefs.h. */
4579     #include <ac_nonexistent.h>
4580     _ACEOF
4581 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4582     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4583 root 1.80 ac_status=$?
4584     grep -v '^ *+' conftest.er1 >conftest.err
4585     rm -f conftest.er1
4586     cat conftest.err >&5
4587     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 ayin 1.104 (exit $ac_status); } >/dev/null; then
4589     if test -s conftest.err; then
4590     ac_cpp_err=$ac_cxx_preproc_warn_flag
4591     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4592     else
4593     ac_cpp_err=
4594     fi
4595     else
4596     ac_cpp_err=yes
4597     fi
4598     if test -z "$ac_cpp_err"; then
4599 root 1.80 # Broken: success on invalid input.
4600     continue
4601     else
4602     echo "$as_me: failed program was:" >&5
4603     sed 's/^/| /' conftest.$ac_ext >&5
4604    
4605     # Passes both tests.
4606     ac_preproc_ok=:
4607     break
4608     fi
4609     rm -f conftest.err conftest.$ac_ext
4610    
4611     done
4612     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4613     rm -f conftest.err conftest.$ac_ext
4614     if $ac_preproc_ok; then
4615     :
4616     else
4617     { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4618     See \`config.log' for more details." >&5
4619     echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4620     See \`config.log' for more details." >&2;}
4621     { (exit 1); exit 1; }; }
4622     fi
4623    
4624 ayin 1.104 ac_ext=cc
4625 root 1.80 ac_cpp='$CXXCPP $CPPFLAGS'
4626     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4627     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4628     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4629    
4630    
4631 ayin 1.104 echo "$as_me:$LINENO: checking for X" >&5
4632     echo $ECHO_N "checking for X... $ECHO_C" >&6
4633 pcg 1.24
4634 pcg 1.11
4635 ayin 1.104 # Check whether --with-x or --without-x was given.
4636 pcg 1.1 if test "${with_x+set}" = set; then
4637 ayin 1.104 withval="$with_x"
4638 pcg 1.1
4639 ayin 1.104 fi;
4640 pcg 1.1 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4641     if test "x$with_x" = xno; then
4642     # The user explicitly disabled X.
4643     have_x=disabled
4644     else
4645 ayin 1.104 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4646     # Both variables are already set.
4647     have_x=yes
4648     else
4649     if test "${ac_cv_have_x+set}" = set; then
4650 pcg 1.11 echo $ECHO_N "(cached) $ECHO_C" >&6
4651 pcg 1.1 else
4652     # One or both of the vars are not set, and there is no cached value.
4653 pcg 1.11 ac_x_includes=no ac_x_libraries=no
4654 ayin 1.104 rm -fr conftest.dir
4655 pcg 1.11 if mkdir conftest.dir; then
4656     cd conftest.dir
4657 ayin 1.104 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4658 pcg 1.11 cat >Imakefile <<'_ACEOF'
4659 ayin 1.104 acfindx:
4660     @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4661 pcg 1.11 _ACEOF
4662 ayin 1.104 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4663 pcg 1.1 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4664 ayin 1.104 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4665 pcg 1.1 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4666     for ac_extension in a so sl; do
4667 ayin 1.104 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4668     test -f $ac_im_libdir/libX11.$ac_extension; then
4669 pcg 1.11 ac_im_usrlibdir=$ac_im_libdir; break
4670 pcg 1.1 fi
4671     done
4672     # Screen out bogus values from the imake configuration. They are
4673     # bogus both because they are the default anyway, and because
4674     # using them would break gcc on systems where it needs fixed includes.
4675 pcg 1.11 case $ac_im_incroot in
4676 ayin 1.104 /usr/include) ;;
4677 pcg 1.11 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4678 pcg 1.1 esac
4679 pcg 1.11 case $ac_im_usrlibdir in
4680 pcg 1.1 /usr/lib | /lib) ;;
4681 pcg 1.11 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4682 pcg 1.1 esac
4683     fi
4684     cd ..
4685 ayin 1.104 rm -fr conftest.dir
4686 pcg 1.1 fi
4687    
4688 pcg 1.11 # Standard set of common directories for X headers.
4689     # Check X11 before X11Rn because it is often a symlink to the current release.
4690     ac_x_header_dirs='
4691     /usr/X11/include
4692     /usr/X11R6/include
4693     /usr/X11R5/include
4694     /usr/X11R4/include
4695    
4696     /usr/include/X11
4697     /usr/include/X11R6
4698     /usr/include/X11R5
4699     /usr/include/X11R4
4700    
4701     /usr/local/X11/include
4702     /usr/local/X11R6/include
4703     /usr/local/X11R5/include
4704     /usr/local/X11R4/include
4705    
4706     /usr/local/include/X11
4707     /usr/local/include/X11R6
4708     /usr/local/include/X11R5
4709     /usr/local/include/X11R4
4710    
4711     /usr/X386/include
4712     /usr/x386/include
4713     /usr/XFree86/include/X11
4714    
4715     /usr/include
4716     /usr/local/include
4717     /usr/unsupported/include
4718     /usr/athena/include
4719     /usr/local/x11r5/include
4720     /usr/lpp/Xamples/include
4721    
4722     /usr/openwin/include
4723     /usr/openwin/share/include'
4724 pcg 1.1
4725 pcg 1.11 if test "$ac_x_includes" = no; then
4726 ayin 1.104 # Guess where to find include files, by looking for Intrinsic.h.
4727 pcg 1.1 # First, try using that file with no special directory specified.
4728 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
4729     /* confdefs.h. */
4730     _ACEOF
4731     cat confdefs.h >>conftest.$ac_ext
4732     cat >>conftest.$ac_ext <<_ACEOF
4733     /* end confdefs.h. */
4734 ayin 1.104 #include <X11/Intrinsic.h>
4735 pcg 1.11 _ACEOF
4736 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4737     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4738 pcg 1.11 ac_status=$?
4739     grep -v '^ *+' conftest.er1 >conftest.err
4740     rm -f conftest.er1
4741     cat conftest.err >&5
4742     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743 ayin 1.104 (exit $ac_status); } >/dev/null; then
4744     if test -s conftest.err; then
4745     ac_cpp_err=$ac_cxx_preproc_warn_flag
4746     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4747     else
4748     ac_cpp_err=
4749     fi
4750     else
4751     ac_cpp_err=yes
4752     fi
4753     if test -z "$ac_cpp_err"; then
4754 pcg 1.1 # We can compile using X headers with no special include directory.
4755     ac_x_includes=
4756     else
4757 pcg 1.11 echo "$as_me: failed program was:" >&5
4758     sed 's/^/| /' conftest.$ac_ext >&5
4759    
4760     for ac_dir in $ac_x_header_dirs; do
4761 ayin 1.104 if test -r "$ac_dir/X11/Intrinsic.h"; then
4762 pcg 1.11 ac_x_includes=$ac_dir
4763     break
4764     fi
4765     done
4766 pcg 1.1 fi
4767 pcg 1.11 rm -f conftest.err conftest.$ac_ext
4768     fi # $ac_x_includes = no
4769 pcg 1.1
4770 pcg 1.11 if test "$ac_x_libraries" = no; then
4771 pcg 1.1 # Check for the libraries.
4772     # See if we find them without any special options.
4773     # Don't add to $LIBS permanently.
4774 pcg 1.11 ac_save_LIBS=$LIBS
4775 ayin 1.104 LIBS="-lXt $LIBS"
4776 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
4777     /* confdefs.h. */
4778     _ACEOF
4779     cat confdefs.h >>conftest.$ac_ext
4780     cat >>conftest.$ac_ext <<_ACEOF
4781     /* end confdefs.h. */
4782 ayin 1.104 #include <X11/Intrinsic.h>
4783 pcg 1.11 int
4784     main ()
4785     {
4786 ayin 1.104 XtMalloc (0)
4787 pcg 1.11 ;
4788     return 0;
4789     }
4790     _ACEOF
4791     rm -f conftest.$ac_objext conftest$ac_exeext
4792 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4793     (eval $ac_link) 2>conftest.er1
4794 pcg 1.11 ac_status=$?
4795     grep -v '^ *+' conftest.er1 >conftest.err
4796     rm -f conftest.er1
4797     cat conftest.err >&5
4798     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 ayin 1.104 (exit $ac_status); } &&
4800     { ac_try='test -z "$ac_cxx_werror_flag"
4801     || test ! -s conftest.err'
4802     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4803     (eval $ac_try) 2>&5
4804     ac_status=$?
4805     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806     (exit $ac_status); }; } &&
4807     { ac_try='test -s conftest$ac_exeext'
4808     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4809     (eval $ac_try) 2>&5
4810     ac_status=$?
4811     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812     (exit $ac_status); }; }; then
4813 pcg 1.11 LIBS=$ac_save_LIBS
4814 pcg 1.1 # We can link X programs with no special library path.
4815     ac_x_libraries=
4816     else
4817 pcg 1.11 echo "$as_me: failed program was:" >&5
4818     sed 's/^/| /' conftest.$ac_ext >&5
4819    
4820 ayin 1.104 LIBS=$ac_save_LIBS
4821 pcg 1.11 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4822 pcg 1.1 do
4823 pcg 1.11 # Don't even attempt the hair of trying to link an X program!
4824 pcg 1.1 for ac_extension in a so sl; do
4825 ayin 1.104 if test -r $ac_dir/libXt.$ac_extension; then
4826 pcg 1.1 ac_x_libraries=$ac_dir
4827     break 2
4828     fi
4829     done
4830     done
4831     fi
4832 ayin 1.104 rm -f conftest.err conftest.$ac_objext \
4833 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
4834     fi # $ac_x_libraries = no
4835 pcg 1.1
4836 ayin 1.104 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
4837     # Didn't find X anywhere. Cache the known absence of X.
4838     ac_cv_have_x="have_x=no"
4839     else
4840     # Record where we found X for the cache.
4841     ac_cv_have_x="have_x=yes \
4842     ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4843     fi
4844 pcg 1.1 fi
4845 ayin 1.104
4846     fi
4847 pcg 1.1 eval "$ac_cv_have_x"
4848     fi # $with_x != no
4849    
4850     if test "$have_x" != yes; then
4851 ayin 1.104 echo "$as_me:$LINENO: result: $have_x" >&5
4852     echo "${ECHO_T}$have_x" >&6
4853 pcg 1.1 no_x=yes
4854     else
4855     # If each of the values was on the command line, it overrides each guess.
4856     test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4857     test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4858     # Update the cache value to reflect the command line values.
4859 ayin 1.104 ac_cv_have_x="have_x=yes \
4860     ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4861     echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4862     echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
4863 pcg 1.1 fi
4864    
4865     if test "$no_x" = yes; then
4866     # Not all programs may use this symbol, but it does not hurt to define it.
4867 pcg 1.11
4868     cat >>confdefs.h <<\_ACEOF
4869 pcg 1.1 #define X_DISPLAY_MISSING 1
4870 pcg 1.11 _ACEOF
4871 pcg 1.1
4872     X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4873     else
4874     if test -n "$x_includes"; then
4875     X_CFLAGS="$X_CFLAGS -I$x_includes"
4876     fi
4877    
4878     # It would also be nice to do this for all -L options, not just this one.
4879     if test -n "$x_libraries"; then
4880     X_LIBS="$X_LIBS -L$x_libraries"
4881     # For Solaris; some versions of Sun CC require a space after -R and
4882     # others require no space. Words are not sufficient . . . .
4883 ayin 1.104 case `(uname -sr) 2>/dev/null` in
4884     "SunOS 5"*)
4885     echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4886     echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
4887     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4888     cat >conftest.$ac_ext <<_ACEOF
4889 pcg 1.11 /* confdefs.h. */
4890     _ACEOF
4891     cat confdefs.h >>conftest.$ac_ext
4892     cat >>conftest.$ac_ext <<_ACEOF
4893     /* end confdefs.h. */
4894 pcg 1.1
4895 pcg 1.11 int
4896     main ()
4897     {
4898 pcg 1.1
4899 pcg 1.11 ;
4900     return 0;
4901     }
4902     _ACEOF
4903     rm -f conftest.$ac_objext conftest$ac_exeext
4904 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4905     (eval $ac_link) 2>conftest.er1
4906 pcg 1.11 ac_status=$?
4907     grep -v '^ *+' conftest.er1 >conftest.err
4908     rm -f conftest.er1
4909     cat conftest.err >&5
4910     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 ayin 1.104 (exit $ac_status); } &&
4912     { ac_try='test -z "$ac_cxx_werror_flag"
4913     || test ! -s conftest.err'
4914     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4915     (eval $ac_try) 2>&5
4916     ac_status=$?
4917     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918     (exit $ac_status); }; } &&
4919     { ac_try='test -s conftest$ac_exeext'
4920     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4921     (eval $ac_try) 2>&5
4922     ac_status=$?
4923     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924     (exit $ac_status); }; }; then
4925     ac_R_nospace=yes
4926 pcg 1.1 else
4927 pcg 1.11 echo "$as_me: failed program was:" >&5
4928     sed 's/^/| /' conftest.$ac_ext >&5
4929    
4930 ayin 1.104 ac_R_nospace=no
4931     fi
4932     rm -f conftest.err conftest.$ac_objext \
4933     conftest$ac_exeext conftest.$ac_ext
4934     if test $ac_R_nospace = yes; then
4935     echo "$as_me:$LINENO: result: no" >&5
4936     echo "${ECHO_T}no" >&6
4937     X_LIBS="$X_LIBS -R$x_libraries"
4938     else
4939 pcg 1.1 LIBS="$ac_xsave_LIBS -R $x_libraries"
4940 ayin 1.104 cat >conftest.$ac_ext <<_ACEOF
4941 pcg 1.11 /* confdefs.h. */
4942     _ACEOF
4943     cat confdefs.h >>conftest.$ac_ext
4944     cat >>conftest.$ac_ext <<_ACEOF
4945     /* end confdefs.h. */
4946 pcg 1.1
4947 pcg 1.11 int
4948     main ()
4949     {
4950 pcg 1.1
4951 pcg 1.11 ;
4952     return 0;
4953     }
4954     _ACEOF
4955     rm -f conftest.$ac_objext conftest$ac_exeext
4956 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4957     (eval $ac_link) 2>conftest.er1
4958 pcg 1.11 ac_status=$?
4959     grep -v '^ *+' conftest.er1 >conftest.err
4960     rm -f conftest.er1
4961     cat conftest.err >&5
4962     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963 ayin 1.104 (exit $ac_status); } &&
4964     { ac_try='test -z "$ac_cxx_werror_flag"
4965     || test ! -s conftest.err'
4966     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4967     (eval $ac_try) 2>&5
4968     ac_status=$?
4969     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970     (exit $ac_status); }; } &&
4971     { ac_try='test -s conftest$ac_exeext'
4972     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4973     (eval $ac_try) 2>&5
4974     ac_status=$?
4975     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976     (exit $ac_status); }; }; then
4977     ac_R_space=yes
4978 pcg 1.1 else
4979 pcg 1.11 echo "$as_me: failed program was:" >&5
4980     sed 's/^/| /' conftest.$ac_ext >&5
4981    
4982 ayin 1.104 ac_R_space=no
4983 ayin 1.102 fi
4984 ayin 1.104 rm -f conftest.err conftest.$ac_objext \
4985 ayin 1.102 conftest$ac_exeext conftest.$ac_ext
4986 ayin 1.104 if test $ac_R_space = yes; then
4987     echo "$as_me:$LINENO: result: yes" >&5
4988     echo "${ECHO_T}yes" >&6
4989     X_LIBS="$X_LIBS -R $x_libraries"
4990     else
4991     echo "$as_me:$LINENO: result: neither works" >&5
4992     echo "${ECHO_T}neither works" >&6
4993     fi
4994     fi
4995     LIBS=$ac_xsave_LIBS
4996     esac
4997 pcg 1.1 fi
4998    
4999     # Check for system-dependent libraries X programs must link with.
5000     # Do this before checking for the system-independent R6 libraries
5001     # (-lICE), since we may need -lsocket or whatever for X linking.
5002    
5003     if test "$ISC" = yes; then
5004     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5005     else
5006 pcg 1.11 # Martyn Johnson says this is needed for Ultrix, if the X
5007     # libraries were built with DECnet support. And Karl Berry says
5008 pcg 1.1 # the Alpha needs dnet_stub (dnet does not exist).
5009 pcg 1.11 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5010     cat >conftest.$ac_ext <<_ACEOF
5011     /* confdefs.h. */
5012     _ACEOF
5013     cat confdefs.h >>conftest.$ac_ext
5014     cat >>conftest.$ac_ext <<_ACEOF
5015     /* end confdefs.h. */
5016    
5017 ayin 1.104 /* Override any gcc2 internal prototype to avoid an error. */
5018 pcg 1.11 #ifdef __cplusplus
5019     extern "C"
5020     #endif
5021 ayin 1.104 /* We use char because int might match the return type of a gcc2
5022     builtin and then its argument prototype would still apply. */
5023 pcg 1.11 char XOpenDisplay ();
5024     int
5025     main ()
5026     {
5027 ayin 1.104 XOpenDisplay ();
5028 pcg 1.11 ;
5029     return 0;
5030     }
5031     _ACEOF
5032     rm -f conftest.$ac_objext conftest$ac_exeext
5033 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5034     (eval $ac_link) 2>conftest.er1
5035 pcg 1.11 ac_status=$?
5036     grep -v '^ *+' conftest.er1 >conftest.err
5037     rm -f conftest.er1
5038     cat conftest.err >&5
5039     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 ayin 1.104 (exit $ac_status); } &&
5041     { ac_try='test -z "$ac_cxx_werror_flag"
5042     || test ! -s conftest.err'
5043     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5044     (eval $ac_try) 2>&5
5045     ac_status=$?
5046     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047     (exit $ac_status); }; } &&
5048     { ac_try='test -s conftest$ac_exeext'
5049     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5050     (eval $ac_try) 2>&5
5051     ac_status=$?
5052     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053     (exit $ac_status); }; }; then
5054 pcg 1.11 :
5055     else
5056     echo "$as_me: failed program was:" >&5
5057     sed 's/^/| /' conftest.$ac_ext >&5
5058 pcg 1.1
5059 ayin 1.104 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5060     echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5061 pcg 1.11 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5062     echo $ECHO_N "(cached) $ECHO_C" >&6
5063 pcg 1.1 else
5064 pcg 1.11 ac_check_lib_save_LIBS=$LIBS
5065     LIBS="-ldnet $LIBS"
5066     cat >conftest.$ac_ext <<_ACEOF
5067     /* confdefs.h. */
5068     _ACEOF
5069     cat confdefs.h >>conftest.$ac_ext
5070     cat >>conftest.$ac_ext <<_ACEOF
5071     /* end confdefs.h. */
5072 pcg 1.1
5073 ayin 1.104 /* Override any gcc2 internal prototype to avoid an error. */
5074 pcg 1.11 #ifdef __cplusplus
5075     extern "C"
5076     #endif
5077 ayin 1.104 /* We use char because int might match the return type of a gcc2
5078     builtin and then its argument prototype would still apply. */
5079 pcg 1.11 char dnet_ntoa ();
5080     int
5081     main ()
5082     {
5083 ayin 1.104 dnet_ntoa ();
5084 pcg 1.11 ;
5085     return 0;
5086     }
5087     _ACEOF
5088     rm -f conftest.$ac_objext conftest$ac_exeext
5089 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5090     (eval $ac_link) 2>conftest.er1
5091 pcg 1.11 ac_status=$?
5092     grep -v '^ *+' conftest.er1 >conftest.err
5093     rm -f conftest.er1
5094     cat conftest.err >&5
5095     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 ayin 1.104 (exit $ac_status); } &&
5097     { ac_try='test -z "$ac_cxx_werror_flag"
5098     || test ! -s conftest.err'
5099     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5100     (eval $ac_try) 2>&5
5101     ac_status=$?
5102     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103     (exit $ac_status); }; } &&
5104     { ac_try='test -s conftest$ac_exeext'
5105     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5106     (eval $ac_try) 2>&5
5107     ac_status=$?
5108     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109     (exit $ac_status); }; }; then
5110 pcg 1.11 ac_cv_lib_dnet_dnet_ntoa=yes
5111     else
5112     echo "$as_me: failed program was:" >&5
5113     sed 's/^/| /' conftest.$ac_ext >&5
5114    
5115 ayin 1.104 ac_cv_lib_dnet_dnet_ntoa=no
5116 pcg 1.11 fi
5117 ayin 1.104 rm -f conftest.err conftest.$ac_objext \
5118 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
5119     LIBS=$ac_check_lib_save_LIBS
5120     fi
5121 ayin 1.104 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5122     echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5123 pcg 1.11 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5124 pcg 1.1 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5125     fi
5126    
5127     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5128 ayin 1.104 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5129     echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5130 pcg 1.11 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5131     echo $ECHO_N "(cached) $ECHO_C" >&6
5132 pcg 1.1 else
5133 pcg 1.11 ac_check_lib_save_LIBS=$LIBS
5134 pcg 1.1 LIBS="-ldnet_stub $LIBS"
5135 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
5136     /* confdefs.h. */
5137     _ACEOF
5138     cat confdefs.h >>conftest.$ac_ext
5139     cat >>conftest.$ac_ext <<_ACEOF
5140     /* end confdefs.h. */
5141    
5142 ayin 1.104 /* Override any gcc2 internal prototype to avoid an error. */
5143 pcg 1.11 #ifdef __cplusplus
5144     extern "C"
5145     #endif
5146 ayin 1.104 /* We use char because int might match the return type of a gcc2
5147     builtin and then its argument prototype would still apply. */
5148 pcg 1.11 char dnet_ntoa ();
5149     int
5150     main ()
5151     {
5152 ayin 1.104 dnet_ntoa ();
5153 pcg 1.11 ;
5154     return 0;
5155     }
5156     _ACEOF
5157     rm -f conftest.$ac_objext conftest$ac_exeext
5158 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5159     (eval $ac_link) 2>conftest.er1
5160 pcg 1.11 ac_status=$?
5161     grep -v '^ *+' conftest.er1 >conftest.err
5162     rm -f conftest.er1
5163     cat conftest.err >&5
5164     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 ayin 1.104 (exit $ac_status); } &&
5166     { ac_try='test -z "$ac_cxx_werror_flag"
5167     || test ! -s conftest.err'
5168     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5169     (eval $ac_try) 2>&5
5170     ac_status=$?
5171     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172     (exit $ac_status); }; } &&
5173     { ac_try='test -s conftest$ac_exeext'
5174     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5175     (eval $ac_try) 2>&5
5176     ac_status=$?
5177     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178     (exit $ac_status); }; }; then
5179 pcg 1.11 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5180     else
5181     echo "$as_me: failed program was:" >&5
5182     sed 's/^/| /' conftest.$ac_ext >&5
5183    
5184 ayin 1.104 ac_cv_lib_dnet_stub_dnet_ntoa=no
5185 pcg 1.11 fi
5186 ayin 1.104 rm -f conftest.err conftest.$ac_objext \
5187 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
5188     LIBS=$ac_check_lib_save_LIBS
5189     fi
5190 ayin 1.104 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5191     echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5192 pcg 1.11 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5193 pcg 1.1 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5194     fi
5195    
5196     fi
5197 pcg 1.11 fi
5198 ayin 1.104 rm -f conftest.err conftest.$ac_objext \
5199 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
5200     LIBS="$ac_xsave_LIBS"
5201 pcg 1.1
5202     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5203     # to get the SysV transport functions.
5204 pcg 1.11 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5205 pcg 1.1 # needs -lnsl.
5206     # The nsl library prevents programs from opening the X display
5207 pcg 1.11 # on Irix 5.2, according to T.E. Dickey.
5208     # The functions gethostbyname, getservbyname, and inet_addr are
5209     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5210 ayin 1.104 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5211     echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5212 pcg 1.11 if test "${ac_cv_func_gethostbyname+set}" = set; then
5213     echo $ECHO_N "(cached) $ECHO_C" >&6
5214     else
5215     cat >conftest.$ac_ext <<_ACEOF
5216     /* confdefs.h. */
5217     _ACEOF
5218     cat confdefs.h >>conftest.$ac_ext
5219     cat >>conftest.$ac_ext <<_ACEOF
5220     /* end confdefs.h. */
5221     /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5222     For example, HP-UX 11i <limits.h> declares gettimeofday. */
5223     #define gethostbyname innocuous_gethostbyname
5224    
5225 pcg 1.1 /* System header to define __stub macros and hopefully few prototypes,
5226 pcg 1.11 which can conflict with char gethostbyname (); below.
5227     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5228     <limits.h> exists even on freestanding compilers. */
5229    
5230     #ifdef __STDC__
5231     # include <limits.h>
5232     #else
5233     # include <assert.h>
5234     #endif
5235    
5236     #undef gethostbyname
5237    
5238 ayin 1.104 /* Override any gcc2 internal prototype to avoid an error. */
5239 pcg 1.11 #ifdef __cplusplus
5240     extern "C"
5241 ayin 1.104 {
5242 pcg 1.11 #endif
5243 ayin 1.104 /* We use char because int might match the return type of a gcc2
5244     builtin and then its argument prototype would still apply. */
5245 pcg 1.11 char gethostbyname ();
5246 pcg 1.1 /* The GNU C library defines this for functions which it implements
5247     to always fail with ENOSYS. Some functions are actually named
5248     something starting with __ and the normal name is an alias. */
5249 ayin 1.104 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5250 pcg 1.1 choke me
5251 ayin 1.104 #else
5252     char (*f) () = gethostbyname;
5253     #endif
5254     #ifdef __cplusplus
5255     }
5256 pcg 1.1 #endif
5257    
5258 pcg 1.11 int
5259     main ()
5260     {
5261 ayin 1.104 return f != gethostbyname;
5262 pcg 1.11 ;
5263     return 0;
5264     }
5265     _ACEOF
5266     rm -f conftest.$ac_objext conftest$ac_exeext
5267 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5268     (eval $ac_link) 2>conftest.er1
5269 pcg 1.11 ac_status=$?
5270     grep -v '^ *+' conftest.er1 >conftest.err
5271     rm -f conftest.er1
5272     cat conftest.err >&5
5273     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 ayin 1.104 (exit $ac_status); } &&
5275     { ac_try='test -z "$ac_cxx_werror_flag"
5276     || test ! -s conftest.err'
5277     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5278     (eval $ac_try) 2>&5
5279     ac_status=$?
5280     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281     (exit $ac_status); }; } &&
5282     { ac_try='test -s conftest$ac_exeext'
5283     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5284     (eval $ac_try) 2>&5
5285     ac_status=$?
5286     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287     (exit $ac_status); }; }; then
5288 pcg 1.11 ac_cv_func_gethostbyname=yes
5289     else
5290     echo "$as_me: failed program was:" >&5
5291     sed 's/^/| /' conftest.$ac_ext >&5
5292    
5293 ayin 1.104 ac_cv_func_gethostbyname=no
5294 pcg 1.11 fi
5295 ayin 1.104 rm -f conftest.err conftest.$ac_objext \
5296 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
5297     fi
5298 ayin 1.104 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5299     echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5300 pcg 1.11
5301 pcg 1.1 if test $ac_cv_func_gethostbyname = no; then
5302 ayin 1.104 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5303     echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5304 pcg 1.11 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5305     echo $ECHO_N "(cached) $ECHO_C" >&6
5306 pcg 1.1 else
5307 pcg 1.11 ac_check_lib_save_LIBS=$LIBS
5308 pcg 1.1 LIBS="-lnsl $LIBS"
5309 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
5310     /* confdefs.h. */
5311     _ACEOF
5312     cat confdefs.h >>conftest.$ac_ext
5313     cat >>conftest.$ac_ext <<_ACEOF
5314     /* end confdefs.h. */
5315    
5316 ayin 1.104 /* Override any gcc2 internal prototype to avoid an error. */
5317 pcg 1.11 #ifdef __cplusplus
5318     extern "C"
5319     #endif
5320 ayin 1.104 /* We use char because int might match the return type of a gcc2
5321     builtin and then its argument prototype would still apply. */
5322 pcg 1.11 char gethostbyname ();
5323     int
5324     main ()
5325     {
5326 ayin 1.104 gethostbyname ();
5327 pcg 1.11 ;
5328     return 0;
5329     }
5330     _ACEOF
5331     rm -f conftest.$ac_objext conftest$ac_exeext
5332 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5333     (eval $ac_link) 2>conftest.er1
5334 pcg 1.11 ac_status=$?
5335     grep -v '^ *+' conftest.er1 >conftest.err
5336     rm -f conftest.er1
5337     cat conftest.err >&5
5338     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 ayin 1.104 (exit $ac_status); } &&
5340     { ac_try='test -z "$ac_cxx_werror_flag"
5341     || test ! -s conftest.err'
5342     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5343     (eval $ac_try) 2>&5
5344     ac_status=$?
5345     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346     (exit $ac_status); }; } &&
5347     { ac_try='test -s conftest$ac_exeext'
5348     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5349     (eval $ac_try) 2>&5
5350     ac_status=$?
5351     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352     (exit $ac_status); }; }; then
5353 pcg 1.11 ac_cv_lib_nsl_gethostbyname=yes
5354     else
5355     echo "$as_me: failed program was:" >&5
5356     sed 's/^/| /' conftest.$ac_ext >&5
5357    
5358 ayin 1.104 ac_cv_lib_nsl_gethostbyname=no
5359 pcg 1.11 fi
5360 ayin 1.104 rm -f conftest.err conftest.$ac_objext \
5361 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
5362     LIBS=$ac_check_lib_save_LIBS
5363     fi
5364 ayin 1.104 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5365     echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5366 pcg 1.11 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5367     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5368     fi
5369 pcg 1.1
5370 pcg 1.11 if test $ac_cv_lib_nsl_gethostbyname = no; then
5371 ayin 1.104 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5372     echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5373 pcg 1.11 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5374     echo $ECHO_N "(cached) $ECHO_C" >&6
5375     else
5376     ac_check_lib_save_LIBS=$LIBS
5377     LIBS="-lbsd $LIBS"
5378     cat >conftest.$ac_ext <<_ACEOF
5379     /* confdefs.h. */
5380     _ACEOF
5381     cat confdefs.h >>conftest.$ac_ext
5382     cat >>conftest.$ac_ext <<_ACEOF
5383     /* end confdefs.h. */
5384 pcg 1.1
5385 ayin 1.104 /* Override any gcc2 internal prototype to avoid an error. */
5386 pcg 1.11 #ifdef __cplusplus
5387     extern "C"
5388     #endif
5389 ayin 1.104 /* We use char because int might match the return type of a gcc2
5390     builtin and then its argument prototype would still apply. */
5391 pcg 1.11 char gethostbyname ();
5392     int
5393     main ()
5394     {
5395 ayin 1.104 gethostbyname ();
5396 pcg 1.11 ;
5397     return 0;
5398     }
5399     _ACEOF
5400     rm -f conftest.$ac_objext conftest$ac_exeext
5401 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5402     (eval $ac_link) 2>conftest.er1
5403 pcg 1.11 ac_status=$?
5404     grep -v '^ *+' conftest.er1 >conftest.err
5405     rm -f conftest.er1
5406     cat conftest.err >&5
5407     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 ayin 1.104 (exit $ac_status); } &&
5409     { ac_try='test -z "$ac_cxx_werror_flag"
5410     || test ! -s conftest.err'
5411     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5412     (eval $ac_try) 2>&5
5413     ac_status=$?
5414     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415     (exit $ac_status); }; } &&
5416     { ac_try='test -s conftest$ac_exeext'
5417     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5418     (eval $ac_try) 2>&5
5419     ac_status=$?
5420     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421     (exit $ac_status); }; }; then
5422 pcg 1.11 ac_cv_lib_bsd_gethostbyname=yes
5423     else
5424     echo "$as_me: failed program was:" >&5
5425     sed 's/^/| /' conftest.$ac_ext >&5
5426    
5427 ayin 1.104 ac_cv_lib_bsd_gethostbyname=no
5428 pcg 1.11 fi
5429 ayin 1.104 rm -f conftest.err conftest.$ac_objext \
5430 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
5431     LIBS=$ac_check_lib_save_LIBS
5432     fi
5433 ayin 1.104 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5434     echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
5435 pcg 1.11 if test $ac_cv_lib_bsd_gethostbyname = yes; then
5436     X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5437 pcg 1.1 fi
5438    
5439 pcg 1.11 fi
5440 pcg 1.1 fi
5441    
5442     # lieder@skyler.mavd.honeywell.com says without -lsocket,
5443     # socket/setsockopt and other routines are undefined under SCO ODT
5444     # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5445 pcg 1.11 # on later versions), says Simon Leinen: it contains gethostby*
5446     # variants that don't use the name server (or something). -lsocket
5447     # must be given before -lnsl if both are needed. We assume that
5448     # if connect needs -lnsl, so does gethostbyname.
5449 ayin 1.104 echo "$as_me:$LINENO: checking for connect" >&5
5450     echo $ECHO_N "checking for connect... $ECHO_C" >&6
5451 pcg 1.11 if test "${ac_cv_func_connect+set}" = set; then
5452     echo $ECHO_N "(cached) $ECHO_C" >&6
5453     else
5454     cat >conftest.$ac_ext <<_ACEOF
5455     /* confdefs.h. */
5456     _ACEOF
5457     cat confdefs.h >>conftest.$ac_ext
5458     cat >>conftest.$ac_ext <<_ACEOF
5459     /* end confdefs.h. */
5460     /* Define connect to an innocuous variant, in case <limits.h> declares connect.
5461     For example, HP-UX 11i <limits.h> declares gettimeofday. */
5462     #define connect innocuous_connect
5463    
5464 pcg 1.1 /* System header to define __stub macros and hopefully few prototypes,
5465 pcg 1.11 which can conflict with char connect (); below.
5466     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5467     <limits.h> exists even on freestanding compilers. */
5468    
5469     #ifdef __STDC__
5470     # include <limits.h>
5471     #else
5472     # include <assert.h>
5473     #endif
5474    
5475     #undef connect
5476    
5477 ayin 1.104 /* Override any gcc2 internal prototype to avoid an error. */
5478 pcg 1.11 #ifdef __cplusplus
5479     extern "C"
5480 ayin 1.104 {
5481 pcg 1.11 #endif
5482 ayin 1.104 /* We use char because int might match the return type of a gcc2
5483     builtin and then its argument prototype would still apply. */
5484 pcg 1.11 char connect ();
5485 pcg 1.1 /* The GNU C library defines this for functions which it implements
5486     to always fail with ENOSYS. Some functions are actually named
5487     something starting with __ and the normal name is an alias. */
5488 ayin 1.104 #if defined (__stub_connect) || defined (__stub___connect)
5489 pcg 1.1 choke me
5490 ayin 1.104 #else
5491     char (*f) () = connect;
5492     #endif
5493     #ifdef __cplusplus
5494     }
5495 pcg 1.1 #endif
5496    
5497 pcg 1.11 int
5498     main ()
5499     {
5500 ayin 1.104 return f != connect;
5501 pcg 1.11 ;
5502     return 0;
5503     }
5504     _ACEOF
5505     rm -f conftest.$ac_objext conftest$ac_exeext
5506 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5507     (eval $ac_link) 2>conftest.er1
5508 pcg 1.11 ac_status=$?
5509     grep -v '^ *+' conftest.er1 >conftest.err
5510     rm -f conftest.er1
5511     cat conftest.err >&5
5512     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513 ayin 1.104 (exit $ac_status); } &&
5514     { ac_try='test -z "$ac_cxx_werror_flag"
5515     || test ! -s conftest.err'
5516     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5517     (eval $ac_try) 2>&5
5518     ac_status=$?
5519     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520     (exit $ac_status); }; } &&
5521     { ac_try='test -s conftest$ac_exeext'
5522     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5523     (eval $ac_try) 2>&5
5524     ac_status=$?
5525     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526     (exit $ac_status); }; }; then
5527 pcg 1.11 ac_cv_func_connect=yes
5528     else
5529     echo "$as_me: failed program was:" >&5
5530     sed 's/^/| /' conftest.$ac_ext >&5
5531    
5532 ayin 1.104 ac_cv_func_connect=no
5533 pcg 1.1 fi
5534 ayin 1.104 rm -f conftest.err conftest.$ac_objext \
5535 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
5536 pcg 1.1 fi
5537 ayin 1.104 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5538     echo "${ECHO_T}$ac_cv_func_connect" >&6
5539 pcg 1.1
5540     if test $ac_cv_func_connect = no; then
5541 ayin 1.104 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5542     echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5543 pcg 1.11 if test "${ac_cv_lib_socket_connect+set}" = set; then
5544     echo $ECHO_N "(cached) $ECHO_C" >&6
5545 pcg 1.1 else
5546 pcg 1.11 ac_check_lib_save_LIBS=$LIBS
5547 pcg 1.1 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5548 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
5549     /* confdefs.h. */
5550     _ACEOF
5551     cat confdefs.h >>conftest.$ac_ext
5552     cat >>conftest.$ac_ext <<_ACEOF
5553     /* end confdefs.h. */
5554    
5555 ayin 1.104 /* Override any gcc2 internal prototype to avoid an error. */
5556 pcg 1.11 #ifdef __cplusplus
5557     extern "C"
5558     #endif
5559 ayin 1.104 /* We use char because int might match the return type of a gcc2
5560     builtin and then its argument prototype would still apply. */
5561 pcg 1.11 char connect ();
5562     int
5563     main ()
5564     {
5565 ayin 1.104 connect ();
5566 pcg 1.11 ;
5567     return 0;
5568     }
5569     _ACEOF
5570     rm -f conftest.$ac_objext conftest$ac_exeext
5571 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5572     (eval $ac_link) 2>conftest.er1
5573 pcg 1.11 ac_status=$?
5574     grep -v '^ *+' conftest.er1 >conftest.err
5575     rm -f conftest.er1
5576     cat conftest.err >&5
5577     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 ayin 1.104 (exit $ac_status); } &&
5579     { ac_try='test -z "$ac_cxx_werror_flag"
5580     || test ! -s conftest.err'
5581     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5582     (eval $ac_try) 2>&5
5583     ac_status=$?
5584     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585     (exit $ac_status); }; } &&
5586     { ac_try='test -s conftest$ac_exeext'
5587     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5588     (eval $ac_try) 2>&5
5589     ac_status=$?
5590     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591     (exit $ac_status); }; }; then
5592 pcg 1.11 ac_cv_lib_socket_connect=yes
5593     else
5594     echo "$as_me: failed program was:" >&5
5595     sed 's/^/| /' conftest.$ac_ext >&5
5596    
5597 ayin 1.104 ac_cv_lib_socket_connect=no
5598 pcg 1.11 fi
5599 ayin 1.104 rm -f conftest.err conftest.$ac_objext \
5600 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
5601     LIBS=$ac_check_lib_save_LIBS
5602     fi
5603 ayin 1.104 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5604     echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5605 pcg 1.11 if test $ac_cv_lib_socket_connect = yes; then
5606 pcg 1.1 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5607     fi
5608    
5609     fi
5610    
5611 pcg 1.11 # Guillermo Gomez says -lposix is necessary on A/UX.
5612 ayin 1.104 echo "$as_me:$LINENO: checking for remove" >&5
5613     echo $ECHO_N "checking for remove... $ECHO_C" >&6
5614 pcg 1.11 if test "${ac_cv_func_remove+set}" = set; then
5615     echo $ECHO_N "(cached) $ECHO_C" >&6
5616     else
5617     cat >conftest.$ac_ext <<_ACEOF
5618     /* confdefs.h. */
5619     _ACEOF
5620     cat confdefs.h >>conftest.$ac_ext
5621     cat >>conftest.$ac_ext <<_ACEOF
5622     /* end confdefs.h. */
5623     /* Define remove to an innocuous variant, in case <limits.h> declares remove.
5624     For example, HP-UX 11i <limits.h> declares gettimeofday. */
5625     #define remove innocuous_remove
5626    
5627 pcg 1.1 /* System header to define __stub macros and hopefully few prototypes,
5628 pcg 1.11 which can conflict with char remove (); below.
5629     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5630     <limits.h> exists even on freestanding compilers. */
5631    
5632     #ifdef __STDC__
5633     # include <limits.h>
5634     #else
5635     # include <assert.h>
5636     #endif
5637    
5638     #undef remove
5639    
5640 ayin 1.104 /* Override any gcc2 internal prototype to avoid an error. */
5641 pcg 1.11 #ifdef __cplusplus
5642     extern "C"
5643 ayin 1.104 {
5644 pcg 1.11 #endif
5645 ayin 1.104 /* We use char because int might match the return type of a gcc2
5646     builtin and then its argument prototype would still apply. */
5647 pcg 1.11 char remove ();
5648 pcg 1.1 /* The GNU C library defines this for functions which it implements
5649     to always fail with ENOSYS. Some functions are actually named
5650     something starting with __ and the normal name is an alias. */
5651 ayin 1.104 #if defined (__stub_remove) || defined (__stub___remove)
5652 pcg 1.1 choke me
5653 ayin 1.104 #else
5654     char (*f) () = remove;
5655     #endif
5656     #ifdef __cplusplus
5657     }
5658 pcg 1.1 #endif
5659    
5660 pcg 1.11 int
5661     main ()
5662     {
5663 ayin 1.104 return f != remove;
5664 pcg 1.11 ;
5665     return 0;
5666     }
5667     _ACEOF
5668     rm -f conftest.$ac_objext conftest$ac_exeext
5669 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5670     (eval $ac_link) 2>conftest.er1
5671 pcg 1.11 ac_status=$?
5672     grep -v '^ *+' conftest.er1 >conftest.err
5673     rm -f conftest.er1
5674     cat conftest.err >&5
5675     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 ayin 1.104 (exit $ac_status); } &&
5677     { ac_try='test -z "$ac_cxx_werror_flag"
5678     || test ! -s conftest.err'
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); }; } &&
5684     { ac_try='test -s conftest$ac_exeext'
5685     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5686     (eval $ac_try) 2>&5
5687     ac_status=$?
5688     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689     (exit $ac_status); }; }; then
5690 pcg 1.11 ac_cv_func_remove=yes
5691     else
5692     echo "$as_me: failed program was:" >&5
5693     sed 's/^/| /' conftest.$ac_ext >&5
5694    
5695 ayin 1.104 ac_cv_func_remove=no
5696 pcg 1.1 fi
5697 ayin 1.104 rm -f conftest.err conftest.$ac_objext \
5698 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
5699 pcg 1.1 fi
5700 ayin 1.104 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5701     echo "${ECHO_T}$ac_cv_func_remove" >&6
5702 pcg 1.1
5703     if test $ac_cv_func_remove = no; then
5704 ayin 1.104 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5705     echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
5706 pcg 1.11 if test "${ac_cv_lib_posix_remove+set}" = set; then
5707     echo $ECHO_N "(cached) $ECHO_C" >&6
5708 pcg 1.1 else
5709 pcg 1.11 ac_check_lib_save_LIBS=$LIBS
5710 pcg 1.1 LIBS="-lposix $LIBS"
5711 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
5712     /* confdefs.h. */
5713     _ACEOF
5714     cat confdefs.h >>conftest.$ac_ext
5715     cat >>conftest.$ac_ext <<_ACEOF
5716     /* end confdefs.h. */
5717    
5718 ayin 1.104 /* Override any gcc2 internal prototype to avoid an error. */
5719 pcg 1.11 #ifdef __cplusplus
5720     extern "C"
5721     #endif
5722 ayin 1.104 /* We use char because int might match the return type of a gcc2
5723     builtin and then its argument prototype would still apply. */
5724 pcg 1.11 char remove ();
5725     int
5726     main ()
5727     {
5728 ayin 1.104 remove ();
5729 pcg 1.11 ;
5730     return 0;
5731     }
5732     _ACEOF
5733     rm -f conftest.$ac_objext conftest$ac_exeext
5734 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5735     (eval $ac_link) 2>conftest.er1
5736 pcg 1.11 ac_status=$?
5737     grep -v '^ *+' conftest.er1 >conftest.err
5738     rm -f conftest.er1
5739     cat conftest.err >&5
5740     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 ayin 1.104 (exit $ac_status); } &&
5742     { ac_try='test -z "$ac_cxx_werror_flag"
5743     || test ! -s conftest.err'
5744     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5745     (eval $ac_try) 2>&5
5746     ac_status=$?
5747     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748     (exit $ac_status); }; } &&
5749     { ac_try='test -s conftest$ac_exeext'
5750     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5751     (eval $ac_try) 2>&5
5752     ac_status=$?
5753     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754     (exit $ac_status); }; }; then
5755 pcg 1.11 ac_cv_lib_posix_remove=yes
5756     else
5757     echo "$as_me: failed program was:" >&5
5758     sed 's/^/| /' conftest.$ac_ext >&5
5759    
5760 ayin 1.104 ac_cv_lib_posix_remove=no
5761 pcg 1.11 fi
5762 ayin 1.104 rm -f conftest.err conftest.$ac_objext \
5763 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
5764     LIBS=$ac_check_lib_save_LIBS
5765     fi
5766 ayin 1.104 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5767     echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
5768 pcg 1.11 if test $ac_cv_lib_posix_remove = yes; then
5769 pcg 1.1 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5770     fi
5771    
5772     fi
5773    
5774     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5775 ayin 1.104 echo "$as_me:$LINENO: checking for shmat" >&5
5776     echo $ECHO_N "checking for shmat... $ECHO_C" >&6
5777 pcg 1.11 if test "${ac_cv_func_shmat+set}" = set; then
5778     echo $ECHO_N "(cached) $ECHO_C" >&6
5779     else
5780     cat >conftest.$ac_ext <<_ACEOF
5781     /* confdefs.h. */
5782     _ACEOF
5783     cat confdefs.h >>conftest.$ac_ext
5784     cat >>conftest.$ac_ext <<_ACEOF
5785     /* end confdefs.h. */
5786     /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5787     For example, HP-UX 11i <limits.h> declares gettimeofday. */
5788     #define shmat innocuous_shmat
5789    
5790 pcg 1.1 /* System header to define __stub macros and hopefully few prototypes,
5791 pcg 1.11 which can conflict with char shmat (); below.
5792     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5793     <limits.h> exists even on freestanding compilers. */
5794    
5795     #ifdef __STDC__
5796     # include <limits.h>
5797     #else
5798     # include <assert.h>
5799     #endif
5800    
5801     #undef shmat
5802    
5803 ayin 1.104 /* Override any gcc2 internal prototype to avoid an error. */
5804 pcg 1.11 #ifdef __cplusplus
5805     extern "C"
5806 ayin 1.104 {
5807 pcg 1.11 #endif
5808 ayin 1.104 /* We use char because int might match the return type of a gcc2
5809     builtin and then its argument prototype would still apply. */
5810 pcg 1.11 char shmat ();
5811 pcg 1.1 /* The GNU C library defines this for functions which it implements
5812     to always fail with ENOSYS. Some functions are actually named
5813     something starting with __ and the normal name is an alias. */
5814 ayin 1.104 #if defined (__stub_shmat) || defined (__stub___shmat)
5815 pcg 1.1 choke me
5816 ayin 1.104 #else
5817     char (*f) () = shmat;
5818     #endif
5819     #ifdef __cplusplus
5820     }
5821 pcg 1.11 #endif
5822    
5823     int
5824     main ()
5825     {
5826 ayin 1.104 return f != shmat;
5827 pcg 1.11 ;
5828     return 0;
5829     }
5830     _ACEOF
5831     rm -f conftest.$ac_objext conftest$ac_exeext
5832 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5833     (eval $ac_link) 2>conftest.er1
5834 pcg 1.11 ac_status=$?
5835     grep -v '^ *+' conftest.er1 >conftest.err
5836     rm -f conftest.er1
5837     cat conftest.err >&5
5838     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 ayin 1.104 (exit $ac_status); } &&
5840     { ac_try='test -z "$ac_cxx_werror_flag"
5841     || test ! -s conftest.err'
5842     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5843     (eval $ac_try) 2>&5
5844     ac_status=$?
5845     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846     (exit $ac_status); }; } &&
5847     { ac_try='test -s conftest$ac_exeext'
5848     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5849     (eval $ac_try) 2>&5
5850     ac_status=$?
5851     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852     (exit $ac_status); }; }; then
5853 pcg 1.11 ac_cv_func_shmat=yes
5854     else
5855     echo "$as_me: failed program was:" >&5
5856     sed 's/^/| /' conftest.$ac_ext >&5
5857 pcg 1.1
5858 ayin 1.104 ac_cv_func_shmat=no
5859 pcg 1.1 fi
5860 ayin 1.104 rm -f conftest.err conftest.$ac_objext \
5861 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
5862 pcg 1.1 fi
5863 ayin 1.104 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5864     echo "${ECHO_T}$ac_cv_func_shmat" >&6
5865 pcg 1.1
5866     if test $ac_cv_func_shmat = no; then
5867 ayin 1.104 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5868     echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
5869 pcg 1.11 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5870     echo $ECHO_N "(cached) $ECHO_C" >&6
5871 pcg 1.1 else
5872 pcg 1.11 ac_check_lib_save_LIBS=$LIBS
5873 pcg 1.1 LIBS="-lipc $LIBS"
5874 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
5875     /* confdefs.h. */
5876     _ACEOF
5877     cat confdefs.h >>conftest.$ac_ext
5878     cat >>conftest.$ac_ext <<_ACEOF
5879     /* end confdefs.h. */
5880    
5881 ayin 1.104 /* Override any gcc2 internal prototype to avoid an error. */
5882 pcg 1.11 #ifdef __cplusplus
5883     extern "C"
5884     #endif
5885 ayin 1.104 /* We use char because int might match the return type of a gcc2
5886     builtin and then its argument prototype would still apply. */
5887 pcg 1.11 char shmat ();
5888     int
5889     main ()
5890     {
5891 ayin 1.104 shmat ();
5892 pcg 1.11 ;
5893     return 0;
5894     }
5895     _ACEOF
5896     rm -f conftest.$ac_objext conftest$ac_exeext
5897 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5898     (eval $ac_link) 2>conftest.er1
5899 pcg 1.11 ac_status=$?
5900     grep -v '^ *+' conftest.er1 >conftest.err
5901     rm -f conftest.er1
5902     cat conftest.err >&5
5903     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 ayin 1.104 (exit $ac_status); } &&
5905     { ac_try='test -z "$ac_cxx_werror_flag"
5906     || test ! -s conftest.err'
5907     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5908     (eval $ac_try) 2>&5
5909     ac_status=$?
5910     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911     (exit $ac_status); }; } &&
5912     { ac_try='test -s conftest$ac_exeext'
5913     { (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); }; }; then
5918 pcg 1.11 ac_cv_lib_ipc_shmat=yes
5919     else
5920     echo "$as_me: failed program was:" >&5
5921     sed 's/^/| /' conftest.$ac_ext >&5
5922    
5923 ayin 1.104 ac_cv_lib_ipc_shmat=no
5924 pcg 1.11 fi
5925 ayin 1.104 rm -f conftest.err conftest.$ac_objext \
5926 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
5927     LIBS=$ac_check_lib_save_LIBS
5928     fi
5929 ayin 1.104 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5930     echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
5931 pcg 1.11 if test $ac_cv_lib_ipc_shmat = yes; then
5932 pcg 1.1 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5933     fi
5934    
5935     fi
5936     fi
5937    
5938     # Check for libraries that X11R6 Xt/Xaw programs need.
5939 pcg 1.11 ac_save_LDFLAGS=$LDFLAGS
5940 pcg 1.1 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5941     # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5942     # check for ICE first), but we must link in the order -lSM -lICE or
5943     # we get undefined symbols. So assume we have SM if we have ICE.
5944     # These have to be linked with before -lX11, unlike the other
5945     # libraries we check for below, so use a different variable.
5946 pcg 1.11 # John Interrante, Karl Berry
5947 ayin 1.104 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5948     echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
5949 pcg 1.11 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5950     echo $ECHO_N "(cached) $ECHO_C" >&6
5951 pcg 1.1 else
5952 pcg 1.11 ac_check_lib_save_LIBS=$LIBS
5953 pcg 1.1 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5954 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
5955     /* confdefs.h. */
5956     _ACEOF
5957     cat confdefs.h >>conftest.$ac_ext
5958     cat >>conftest.$ac_ext <<_ACEOF
5959     /* end confdefs.h. */
5960    
5961 ayin 1.104 /* Override any gcc2 internal prototype to avoid an error. */
5962 pcg 1.11 #ifdef __cplusplus
5963     extern "C"
5964     #endif
5965 ayin 1.104 /* We use char because int might match the return type of a gcc2
5966     builtin and then its argument prototype would still apply. */
5967 pcg 1.11 char IceConnectionNumber ();
5968     int
5969     main ()
5970     {
5971 ayin 1.104 IceConnectionNumber ();
5972 pcg 1.11 ;
5973     return 0;
5974     }
5975     _ACEOF
5976     rm -f conftest.$ac_objext conftest$ac_exeext
5977 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5978     (eval $ac_link) 2>conftest.er1
5979 pcg 1.11 ac_status=$?
5980     grep -v '^ *+' conftest.er1 >conftest.err
5981     rm -f conftest.er1
5982     cat conftest.err >&5
5983     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 ayin 1.104 (exit $ac_status); } &&
5985     { ac_try='test -z "$ac_cxx_werror_flag"
5986     || test ! -s conftest.err'
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); }; } &&
5992     { ac_try='test -s conftest$ac_exeext'
5993     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5994     (eval $ac_try) 2>&5
5995     ac_status=$?
5996     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997     (exit $ac_status); }; }; then
5998 pcg 1.11 ac_cv_lib_ICE_IceConnectionNumber=yes
5999     else
6000     echo "$as_me: failed program was:" >&5
6001     sed 's/^/| /' conftest.$ac_ext >&5
6002    
6003 ayin 1.104 ac_cv_lib_ICE_IceConnectionNumber=no
6004 pcg 1.11 fi
6005 ayin 1.104 rm -f conftest.err conftest.$ac_objext \
6006 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
6007     LIBS=$ac_check_lib_save_LIBS
6008     fi
6009 ayin 1.104 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6010     echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6011 pcg 1.11 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6012 pcg 1.1 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6013     fi
6014    
6015 pcg 1.11 LDFLAGS=$ac_save_LDFLAGS
6016 pcg 1.1
6017     fi
6018    
6019    
6020    
6021 root 1.103 LIBAFTERIMAGE_CFLAGS=
6022     AFTERIMAGE_LIBS=
6023     have_afterimage=
6024    
6025     if test x$support_afterimage = xyes; then
6026     support_afterimage=no
6027    
6028 ayin 1.104 if test "x$afterimage_config" = "x" ; then
6029 root 1.103 # Extract the first word of "afterimage-config", so it can be a program name with args.
6030     set dummy afterimage-config; ac_word=$2
6031 ayin 1.104 echo "$as_me:$LINENO: checking for $ac_word" >&5
6032     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6033 root 1.103 if test "${ac_cv_path_afterimage_config+set}" = set; then
6034     echo $ECHO_N "(cached) $ECHO_C" >&6
6035     else
6036     case $afterimage_config in
6037     [\\/]* | ?:[\\/]*)
6038     ac_cv_path_afterimage_config="$afterimage_config" # Let the user override the test with a path.
6039     ;;
6040     *)
6041     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042     for as_dir in $PATH
6043     do
6044     IFS=$as_save_IFS
6045     test -z "$as_dir" && as_dir=.
6046     for ac_exec_ext in '' $ac_executable_extensions; do
6047 ayin 1.104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6048 root 1.103 ac_cv_path_afterimage_config="$as_dir/$ac_word$ac_exec_ext"
6049     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6050     break 2
6051     fi
6052     done
6053     done
6054    
6055     test -z "$ac_cv_path_afterimage_config" && ac_cv_path_afterimage_config="no"
6056     ;;
6057     esac
6058     fi
6059     afterimage_config=$ac_cv_path_afterimage_config
6060 ayin 1.104
6061 root 1.103 if test -n "$afterimage_config"; then
6062 ayin 1.104 echo "$as_me:$LINENO: result: $afterimage_config" >&5
6063     echo "${ECHO_T}$afterimage_config" >&6
6064 root 1.103 else
6065 ayin 1.104 echo "$as_me:$LINENO: result: no" >&5
6066     echo "${ECHO_T}no" >&6
6067 root 1.103 fi
6068    
6069     fi
6070    
6071 ayin 1.104 echo "$as_me:$LINENO: checking for libAfterImage" >&5
6072     echo $ECHO_N "checking for libAfterImage... $ECHO_C" >&6
6073 root 1.103 if $afterimage_config --version >/dev/null 2>&1 ; then
6074     LIBAFTERIMAGE_CFLAGS=`$afterimage_config --cflags`
6075     AFTERIMAGE_LIBS=`$afterimage_config --libs`
6076     if test "x$AFTERIMAGE_LIBS" != "x"; then
6077     support_afterimage=yes
6078     fi
6079     fi
6080    
6081     if test "x$support_afterimage" = "xyes"; then
6082 ayin 1.104 echo "$as_me:$LINENO: result: $AFTERIMAGE_LIBS" >&5
6083     echo "${ECHO_T}$AFTERIMAGE_LIBS" >&6
6084 root 1.103 else
6085 ayin 1.104 echo "$as_me:$LINENO: result: no" >&5
6086     echo "${ECHO_T}no" >&6
6087 root 1.103 fi
6088     fi
6089    
6090     if test x$support_afterimage != xyes -a x$support_xpm = xyes ; then
6091 pcg 1.11
6092 pcg 1.1
6093    
6094     # Initialize some more variables set by options.
6095     # The variables have the same names as the options, with
6096     # dashes changed to underlines.
6097    
6098     # If we find XPM, set shell vars xpm_includes and xpm_libraries to the
6099     # paths, otherwise set no_xpm=yes.
6100     # Uses ac_ vars as temps to allow command line to override cache and checks.
6101 ayin 1.104 echo "$as_me:$LINENO: checking for libXpm" >&5
6102     echo $ECHO_N "checking for libXpm... $ECHO_C" >&6
6103 pcg 1.11
6104 pcg 1.1
6105 ayin 1.104 # Check whether --with-xpm_includes or --without-xpm_includes was given.
6106 pcg 1.1 if test "${with_xpm_includes+set}" = set; then
6107 ayin 1.104 withval="$with_xpm_includes"
6108     xpm_includes="$withval"
6109 pcg 1.1 else
6110     xpm_includes=NO
6111 ayin 1.104 fi;
6112 ayin 1.102
6113 ayin 1.104 # Check whether --with-xpm_library or --without-xpm_library was given.
6114 pcg 1.1 if test "${with_xpm_library+set}" = set; then
6115 ayin 1.104 withval="$with_xpm_library"
6116     xpm_libraries="$withval"
6117 pcg 1.1 else
6118     xpm_libraries=NO
6119 ayin 1.104 fi;
6120 pcg 1.1
6121 pcg 1.11 # --without-xpm overrides everything else, but does not touch the cache.
6122 pcg 1.1
6123 ayin 1.104 # Check whether --with-xpm or --without-xpm was given.
6124 pcg 1.1 if test "${with_xpm+set}" = set; then
6125 ayin 1.104 withval="$with_xpm"
6126 pcg 1.1
6127 ayin 1.104 fi;
6128 pcg 1.1 if test "$with_xpm" = no; then
6129     have_xpm=disabled
6130     else
6131 pcg 1.11 if test "${ac_cv_have_xpm+set}" = set; then
6132     echo $ECHO_N "(cached) $ECHO_C" >&6
6133 pcg 1.1 else
6134 pcg 1.11
6135 pcg 1.1 vt_xpm_include_X11=no
6136     if test -n "$xpm_includes"; then
6137     vt_xpm_includes=$xpm_includes
6138     else
6139     vt_xpm_includes=NO
6140     fi
6141     if test -n "$xpm_libraries"; then
6142     vt_xpm_libraries=$xpm_libraries
6143     else
6144     vt_xpm_libraries=NO
6145     fi
6146    
6147     if test "$vt_xpm_includes" = NO; then
6148     # Guess where to find xpm.h
6149    
6150     ac_save_CPPFLAGS="$CPPFLAGS"
6151     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6152    
6153     # First, try using that file with no special directory specified.
6154 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
6155     /* confdefs.h. */
6156     _ACEOF
6157     cat confdefs.h >>conftest.$ac_ext
6158     cat >>conftest.$ac_ext <<_ACEOF
6159     /* end confdefs.h. */
6160 pcg 1.1 #include <X11/xpm.h>
6161 pcg 1.11 _ACEOF
6162 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6163     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6164 pcg 1.11 ac_status=$?
6165     grep -v '^ *+' conftest.er1 >conftest.err
6166     rm -f conftest.er1
6167     cat conftest.err >&5
6168     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 ayin 1.104 (exit $ac_status); } >/dev/null; then
6170     if test -s conftest.err; then
6171     ac_cpp_err=$ac_cxx_preproc_warn_flag
6172     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6173     else
6174     ac_cpp_err=
6175     fi
6176     else
6177     ac_cpp_err=yes
6178     fi
6179     if test -z "$ac_cpp_err"; then
6180 pcg 1.1 # We can compile using X headers with no special include directory.
6181     vt_xpm_includes=
6182     vt_xpm_include_X11=yes
6183     else
6184 pcg 1.11 echo "$as_me: failed program was:" >&5
6185     sed 's/^/| /' conftest.$ac_ext >&5
6186    
6187 pcg 1.1 CPPFLAGS="$ac_save_CPPFLAGS"
6188     # Look for the header file in a standard set of common directories.
6189     for ac_dir in \
6190     /usr/X11/include \
6191     /usr/X11R6/include \
6192     /usr/X11R5/include \
6193     /usr/X11R4/include \
6194     \
6195     /usr/include/X11 \
6196     /usr/include/X11R6 \
6197     /usr/include/X11R5 \
6198     /usr/include/X11R4 \
6199     \
6200     /usr/local/X11/include \
6201     /usr/local/X11R6/include \
6202     /usr/local/X11R5/include \
6203     /usr/local/X11R4/include \
6204     \
6205     /usr/local/include/X11 \
6206     /usr/local/include/X11R6 \
6207     /usr/local/include/X11R5 \
6208     /usr/local/include/X11R4 \
6209     \
6210     /usr/X386/include \
6211     /usr/x386/include \
6212     /usr/XFree86/include/X11 \
6213     \
6214     /usr/include \
6215     /usr/local/include \
6216     /usr/unsupported/include \
6217     /usr/athena/include \
6218     /usr/local/x11r5/include \
6219     /usr/lpp/Xamples/include \
6220     \
6221     /usr/openwin/include \
6222     /usr/openwin/share/include \
6223     ; \
6224     do
6225     if test -r "$ac_dir/X11/xpm.h"; then
6226     vt_xpm_includes="$ac_dir"
6227     vt_xpm_include_X11=yes
6228     break
6229     else
6230     if test -r "$ac_dir/xpm.h"; then
6231     vt_xpm_includes=$ac_dir
6232     break
6233     fi
6234     fi
6235     done
6236     fi
6237 pcg 1.11 rm -f conftest.err conftest.$ac_ext
6238 pcg 1.1 fi
6239    
6240     if test "$vt_xpm_libraries" = NO; then
6241     # Check for the libraries.
6242    
6243     # See if we find them without any special options.
6244     # Don't add to $LIBS permanently.
6245     ac_save_LIBS="$LIBS"
6246     LIBS="$LIBS $X_LIBS -lXpm -lX11"
6247 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
6248     /* confdefs.h. */
6249     _ACEOF
6250     cat confdefs.h >>conftest.$ac_ext
6251     cat >>conftest.$ac_ext <<_ACEOF
6252     /* end confdefs.h. */
6253 pcg 1.1
6254 pcg 1.11 int
6255     main ()
6256     {
6257 pcg 1.1 XpmReadFileToPixmap()
6258 pcg 1.11 ;
6259     return 0;
6260     }
6261     _ACEOF
6262     rm -f conftest.$ac_objext conftest$ac_exeext
6263 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6264     (eval $ac_link) 2>conftest.er1
6265 pcg 1.11 ac_status=$?
6266     grep -v '^ *+' conftest.er1 >conftest.err
6267     rm -f conftest.er1
6268     cat conftest.err >&5
6269     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 ayin 1.104 (exit $ac_status); } &&
6271     { ac_try='test -z "$ac_cxx_werror_flag"
6272     || test ! -s conftest.err'
6273     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6274     (eval $ac_try) 2>&5
6275     ac_status=$?
6276     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277     (exit $ac_status); }; } &&
6278     { ac_try='test -s conftest$ac_exeext'
6279     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6280     (eval $ac_try) 2>&5
6281     ac_status=$?
6282     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283     (exit $ac_status); }; }; then
6284 pcg 1.1 LIBS="$ac_save_LIBS"
6285     # We can link libXpm with no special library path.
6286     vt_xpm_libraries=
6287     else
6288 pcg 1.11 echo "$as_me: failed program was:" >&5
6289     sed 's/^/| /' conftest.$ac_ext >&5
6290    
6291 ayin 1.104 LIBS="$ac_save_LIBS"
6292 pcg 1.1 # First see if replacing the include by lib works.
6293     for ac_dir in \
6294     `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \
6295     /usr/X11/lib \
6296     /usr/X11R6/lib \
6297     /usr/X11R5/lib \
6298     /usr/X11R4/lib \
6299     \
6300     /usr/lib/X11 \
6301     /usr/lib/X11R6 \
6302     /usr/lib/X11R5 \
6303     /usr/lib/X11R4 \
6304     \
6305     /usr/local/X11/lib \
6306     /usr/local/X11R6/lib \
6307     /usr/local/X11R5/lib \
6308     /usr/local/X11R4/lib \
6309     \
6310     /usr/local/lib/X11 \
6311     /usr/local/lib/X11R6 \
6312     /usr/local/lib/X11R5 \
6313     /usr/local/lib/X11R4 \
6314     \
6315     /usr/X386/lib \
6316     /usr/x386/lib \
6317     /usr/XFree86/lib/X11 \
6318     \
6319     /usr/lib \
6320     /usr/local/lib \
6321     /usr/unsupported/lib \
6322     /usr/athena/lib \
6323     /usr/local/x11r5/lib \
6324     /usr/lpp/Xamples/lib \
6325     \
6326     /usr/openwin/lib \
6327     /usr/openwin/share/lib \
6328     ; \
6329     do
6330     for ac_extension in a so sl; do
6331     if test -r $ac_dir/libXpm.$ac_extension; then
6332     vt_xpm_libraries=$ac_dir
6333     break 2
6334     fi
6335     done
6336     done
6337     fi
6338 ayin 1.104 rm -f conftest.err conftest.$ac_objext \
6339 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
6340 pcg 1.1 fi
6341    
6342    
6343     if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then
6344     ac_cv_have_xpm="have_xpm=no"
6345     else
6346     ac_cv_have_xpm="have_xpm=yes \
6347     vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
6348     vt_xpm_include_X11=$vt_xpm_include_X11"
6349     fi
6350     fi
6351     eval "$ac_cv_have_xpm"
6352     fi
6353    
6354     if test "$have_xpm" != yes; then
6355 ayin 1.104 echo "$as_me:$LINENO: result: $have_xpm" >&5
6356     echo "${ECHO_T}$have_xpm" >&6
6357 pcg 1.1 no_xpm=yes
6358     else
6359     if test "$xpm_includes" != NO; then
6360     if test "$xpm_includes" = "$vt_xpm_includes"; then
6361     if test -r "$xpm_includes/X11/xpm.h"; then
6362     vt_xpm_include_X11=yes
6363     fi
6364     else
6365     vt_xpm_include_X11=no
6366     if test -z "$xpm_includes"; then
6367 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
6368     /* confdefs.h. */
6369     _ACEOF
6370     cat confdefs.h >>conftest.$ac_ext
6371     cat >>conftest.$ac_ext <<_ACEOF
6372     /* end confdefs.h. */
6373 pcg 1.1 #include <X11/xpm.h>
6374 pcg 1.11 _ACEOF
6375 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6376     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6377 pcg 1.11 ac_status=$?
6378     grep -v '^ *+' conftest.er1 >conftest.err
6379     rm -f conftest.er1
6380     cat conftest.err >&5
6381     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382 ayin 1.104 (exit $ac_status); } >/dev/null; then
6383     if test -s conftest.err; then
6384     ac_cpp_err=$ac_cxx_preproc_warn_flag
6385     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6386     else
6387     ac_cpp_err=
6388     fi
6389     else
6390     ac_cpp_err=yes
6391     fi
6392     if test -z "$ac_cpp_err"; then
6393 pcg 1.1 vt_xpm_include_X11=yes
6394     else
6395 pcg 1.11 echo "$as_me: failed program was:" >&5
6396     sed 's/^/| /' conftest.$ac_ext >&5
6397    
6398    
6399 pcg 1.1 fi
6400 pcg 1.11 rm -f conftest.err conftest.$ac_ext
6401 pcg 1.1 else
6402     if test -r "$xpm_includes/X11/xpm.h"; then
6403     vt_xpm_include_X11=yes
6404     fi
6405     fi
6406     fi
6407     vt_xpm_includes=$xpm_includes
6408     fi
6409     if test "x$xpm_libraries" != xNO; then
6410     vt_xpm_libraries=$xpm_libraries
6411     fi
6412     # Update the cache value to reflect the command line values.
6413     ac_cv_have_xpm="have_xpm=yes \
6414     vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
6415     vt_xpm_include_X11=$vt_xpm_include_X11"
6416     eval "$ac_cv_have_xpm"
6417 ayin 1.104 echo "$as_me:$LINENO: result: -I$vt_xpm_includes, -L$vt_xpm_libraries" >&5
6418     echo "${ECHO_T}-I$vt_xpm_includes, -L$vt_xpm_libraries" >&6
6419 pcg 1.1 if test -n "$vt_xpm_includes"; then
6420     XPM_CPPFLAGS="-DHAVE_LIBXPM"
6421     fi
6422     if test -n "$vt_xpm_includes"; then
6423     XPM_CFLAGS="-I$vt_xpm_includes"
6424     fi
6425     XPM_LIBS="-lXpm"
6426     if test -n "$vt_xpm_libraries"; then
6427     XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS"
6428     fi
6429     if test "x$vt_xpm_include_X11" = xyes; then
6430 pcg 1.11
6431     cat >>confdefs.h <<\_ACEOF
6432 pcg 1.1 #define XPM_INC_X11 1
6433 pcg 1.11 _ACEOF
6434 pcg 1.1
6435     fi
6436     fi
6437    
6438    
6439    
6440    
6441    
6442     if test x$no_xpm = xyes; then
6443     support_xpm=needsmanualspecification
6444     fi
6445     fi
6446    
6447 ayin 1.104 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6448     echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6449 pcg 1.11 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6450     echo $ECHO_N "(cached) $ECHO_C" >&6
6451     else
6452     cat >conftest.$ac_ext <<_ACEOF
6453     /* confdefs.h. */
6454     _ACEOF
6455     cat confdefs.h >>conftest.$ac_ext
6456     cat >>conftest.$ac_ext <<_ACEOF
6457     /* end confdefs.h. */
6458 pcg 1.1 #include <sys/types.h>
6459     #include <sys/wait.h>
6460     #ifndef WEXITSTATUS
6461 ayin 1.104 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6462 pcg 1.1 #endif
6463     #ifndef WIFEXITED
6464 pcg 1.11 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6465 pcg 1.1 #endif
6466 pcg 1.11
6467     int
6468     main ()
6469     {
6470     int s;
6471     wait (&s);
6472     s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6473     ;
6474     return 0;
6475     }
6476     _ACEOF
6477     rm -f conftest.$ac_objext
6478 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6479     (eval $ac_compile) 2>conftest.er1
6480 pcg 1.11 ac_status=$?
6481     grep -v '^ *+' conftest.er1 >conftest.err
6482     rm -f conftest.er1
6483     cat conftest.err >&5
6484     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 ayin 1.104 (exit $ac_status); } &&
6486     { ac_try='test -z "$ac_cxx_werror_flag"
6487     || test ! -s conftest.err'
6488     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6489     (eval $ac_try) 2>&5
6490     ac_status=$?
6491     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492     (exit $ac_status); }; } &&
6493     { ac_try='test -s conftest.$ac_objext'
6494     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6495     (eval $ac_try) 2>&5
6496     ac_status=$?
6497     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498     (exit $ac_status); }; }; then
6499 pcg 1.11 ac_cv_header_sys_wait_h=yes
6500 pcg 1.1 else
6501 pcg 1.11 echo "$as_me: failed program was:" >&5
6502     sed 's/^/| /' conftest.$ac_ext >&5
6503    
6504 ayin 1.104 ac_cv_header_sys_wait_h=no
6505 pcg 1.1 fi
6506 ayin 1.104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6507 pcg 1.1 fi
6508 ayin 1.104 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6509     echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6510 pcg 1.11 if test $ac_cv_header_sys_wait_h = yes; then
6511 pcg 1.1
6512 pcg 1.11 cat >>confdefs.h <<\_ACEOF
6513 pcg 1.1 #define HAVE_SYS_WAIT_H 1
6514 pcg 1.11 _ACEOF
6515 pcg 1.1
6516     fi
6517    
6518 ayin 1.104 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6519     echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6520 root 1.51 if test "${ac_cv_header_stdc+set}" = set; then
6521     echo $ECHO_N "(cached) $ECHO_C" >&6
6522     else
6523     cat >conftest.$ac_ext <<_ACEOF
6524     /* confdefs.h. */
6525     _ACEOF
6526     cat confdefs.h >>conftest.$ac_ext
6527     cat >>conftest.$ac_ext <<_ACEOF
6528     /* end confdefs.h. */
6529     #include <stdlib.h>
6530     #include <stdarg.h>
6531     #include <string.h>
6532     #include <float.h>
6533    
6534     int
6535     main ()
6536     {
6537    
6538     ;
6539     return 0;
6540     }
6541     _ACEOF
6542     rm -f conftest.$ac_objext
6543 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6544     (eval $ac_compile) 2>conftest.er1
6545 root 1.51 ac_status=$?
6546     grep -v '^ *+' conftest.er1 >conftest.err
6547     rm -f conftest.er1
6548     cat conftest.err >&5
6549     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 ayin 1.104 (exit $ac_status); } &&
6551     { ac_try='test -z "$ac_cxx_werror_flag"
6552     || test ! -s conftest.err'
6553     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6554     (eval $ac_try) 2>&5
6555     ac_status=$?
6556     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557     (exit $ac_status); }; } &&
6558     { ac_try='test -s conftest.$ac_objext'
6559     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6560     (eval $ac_try) 2>&5
6561     ac_status=$?
6562     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563     (exit $ac_status); }; }; then
6564 root 1.51 ac_cv_header_stdc=yes
6565     else
6566     echo "$as_me: failed program was:" >&5
6567     sed 's/^/| /' conftest.$ac_ext >&5
6568    
6569 ayin 1.104 ac_cv_header_stdc=no
6570 root 1.51 fi
6571 ayin 1.104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6572 root 1.51
6573     if test $ac_cv_header_stdc = yes; then
6574     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6575     cat >conftest.$ac_ext <<_ACEOF
6576     /* confdefs.h. */
6577     _ACEOF
6578     cat confdefs.h >>conftest.$ac_ext
6579     cat >>conftest.$ac_ext <<_ACEOF
6580     /* end confdefs.h. */
6581     #include <string.h>
6582    
6583     _ACEOF
6584     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6585     $EGREP "memchr" >/dev/null 2>&1; then
6586     :
6587     else
6588     ac_cv_header_stdc=no
6589     fi
6590     rm -f conftest*
6591    
6592     fi
6593    
6594     if test $ac_cv_header_stdc = yes; then
6595     # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6596     cat >conftest.$ac_ext <<_ACEOF
6597     /* confdefs.h. */
6598     _ACEOF
6599     cat confdefs.h >>conftest.$ac_ext
6600     cat >>conftest.$ac_ext <<_ACEOF
6601     /* end confdefs.h. */
6602     #include <stdlib.h>
6603    
6604     _ACEOF
6605     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6606     $EGREP "free" >/dev/null 2>&1; then
6607     :
6608     else
6609     ac_cv_header_stdc=no
6610     fi
6611     rm -f conftest*
6612    
6613     fi
6614    
6615     if test $ac_cv_header_stdc = yes; then
6616     # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6617     if test "$cross_compiling" = yes; then
6618     :
6619     else
6620     cat >conftest.$ac_ext <<_ACEOF
6621     /* confdefs.h. */
6622     _ACEOF
6623     cat confdefs.h >>conftest.$ac_ext
6624     cat >>conftest.$ac_ext <<_ACEOF
6625     /* end confdefs.h. */
6626     #include <ctype.h>
6627     #if ((' ' & 0x0FF) == 0x020)
6628     # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6629     # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6630     #else
6631     # define ISLOWER(c) \
6632     (('a' <= (c) && (c) <= 'i') \
6633     || ('j' <= (c) && (c) <= 'r') \
6634     || ('s' <= (c) && (c) <= 'z'))
6635     # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6636     #endif
6637    
6638     #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6639     int
6640     main ()
6641     {
6642     int i;
6643     for (i = 0; i < 256; i++)
6644     if (XOR (islower (i), ISLOWER (i))
6645     || toupper (i) != TOUPPER (i))
6646 ayin 1.104 exit(2);
6647     exit (0);
6648 root 1.51 }
6649     _ACEOF
6650     rm -f conftest$ac_exeext
6651 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6652     (eval $ac_link) 2>&5
6653 root 1.51 ac_status=$?
6654     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6656 ayin 1.104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6657     (eval $ac_try) 2>&5
6658 root 1.51 ac_status=$?
6659     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660     (exit $ac_status); }; }; then
6661     :
6662     else
6663     echo "$as_me: program exited with status $ac_status" >&5
6664     echo "$as_me: failed program was:" >&5
6665     sed 's/^/| /' conftest.$ac_ext >&5
6666    
6667     ( exit $ac_status )
6668     ac_cv_header_stdc=no
6669     fi
6670 ayin 1.104 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6671 root 1.51 fi
6672     fi
6673     fi
6674 ayin 1.104 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6675     echo "${ECHO_T}$ac_cv_header_stdc" >&6
6676 root 1.51 if test $ac_cv_header_stdc = yes; then
6677    
6678     cat >>confdefs.h <<\_ACEOF
6679     #define STDC_HEADERS 1
6680     _ACEOF
6681    
6682     fi
6683    
6684     # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6685    
6686    
6687    
6688    
6689    
6690    
6691    
6692    
6693    
6694     for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6695     inttypes.h stdint.h unistd.h
6696     do
6697     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6698 ayin 1.104 echo "$as_me:$LINENO: checking for $ac_header" >&5
6699     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6700     if eval "test \"\${$as_ac_Header+set}\" = set"; then
6701 root 1.51 echo $ECHO_N "(cached) $ECHO_C" >&6
6702     else
6703     cat >conftest.$ac_ext <<_ACEOF
6704     /* confdefs.h. */
6705     _ACEOF
6706     cat confdefs.h >>conftest.$ac_ext
6707     cat >>conftest.$ac_ext <<_ACEOF
6708     /* end confdefs.h. */
6709     $ac_includes_default
6710    
6711     #include <$ac_header>
6712     _ACEOF
6713     rm -f conftest.$ac_objext
6714 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6715     (eval $ac_compile) 2>conftest.er1
6716 root 1.51 ac_status=$?
6717     grep -v '^ *+' conftest.er1 >conftest.err
6718     rm -f conftest.er1
6719     cat conftest.err >&5
6720     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721 ayin 1.104 (exit $ac_status); } &&
6722     { ac_try='test -z "$ac_cxx_werror_flag"
6723     || test ! -s conftest.err'
6724     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6725     (eval $ac_try) 2>&5
6726     ac_status=$?
6727     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728     (exit $ac_status); }; } &&
6729     { ac_try='test -s conftest.$ac_objext'
6730     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6731     (eval $ac_try) 2>&5
6732     ac_status=$?
6733     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734     (exit $ac_status); }; }; then
6735 root 1.51 eval "$as_ac_Header=yes"
6736     else
6737     echo "$as_me: failed program was:" >&5
6738     sed 's/^/| /' conftest.$ac_ext >&5
6739    
6740 ayin 1.104 eval "$as_ac_Header=no"
6741 root 1.51 fi
6742 ayin 1.104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6743 root 1.51 fi
6744 ayin 1.104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6745     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6746 root 1.51 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6747     cat >>confdefs.h <<_ACEOF
6748     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6749     _ACEOF
6750    
6751     fi
6752    
6753     done
6754    
6755    
6756 pcg 1.11
6757    
6758    
6759    
6760    
6761    
6762    
6763    
6764    
6765    
6766    
6767    
6768    
6769    
6770    
6771    
6772    
6773     for ac_header in \
6774 pcg 1.1 assert.h \
6775     fcntl.h \
6776     stdarg.h \
6777     stdlib.h \
6778     string.h \
6779     termios.h \
6780     unistd.h \
6781     sys/byteorder.h \
6782     sys/ioctl.h \
6783     sys/select.h \
6784     sys/sockio.h \
6785     sys/strredir.h \
6786     sys/time.h \
6787 root 1.83 stdint.h \
6788     wchar.h \
6789     cwchar \
6790     clocale \
6791 pcg 1.1
6792     do
6793 pcg 1.11 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6794 ayin 1.104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6795     echo "$as_me:$LINENO: checking for $ac_header" >&5
6796     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6797     if eval "test \"\${$as_ac_Header+set}\" = set"; then
6798 pcg 1.11 echo $ECHO_N "(cached) $ECHO_C" >&6
6799     fi
6800 ayin 1.104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6801     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6802 pcg 1.11 else
6803     # Is the header compilable?
6804 ayin 1.104 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6805     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6806 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
6807     /* confdefs.h. */
6808     _ACEOF
6809     cat confdefs.h >>conftest.$ac_ext
6810     cat >>conftest.$ac_ext <<_ACEOF
6811     /* end confdefs.h. */
6812     $ac_includes_default
6813     #include <$ac_header>
6814     _ACEOF
6815     rm -f conftest.$ac_objext
6816 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6817     (eval $ac_compile) 2>conftest.er1
6818 pcg 1.11 ac_status=$?
6819     grep -v '^ *+' conftest.er1 >conftest.err
6820     rm -f conftest.er1
6821     cat conftest.err >&5
6822     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 ayin 1.104 (exit $ac_status); } &&
6824     { ac_try='test -z "$ac_cxx_werror_flag"
6825     || test ! -s conftest.err'
6826     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6827     (eval $ac_try) 2>&5
6828     ac_status=$?
6829     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830     (exit $ac_status); }; } &&
6831     { ac_try='test -s conftest.$ac_objext'
6832     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6833     (eval $ac_try) 2>&5
6834     ac_status=$?
6835     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836     (exit $ac_status); }; }; then
6837 pcg 1.11 ac_header_compiler=yes
6838     else
6839     echo "$as_me: failed program was:" >&5
6840     sed 's/^/| /' conftest.$ac_ext >&5
6841    
6842 ayin 1.104 ac_header_compiler=no
6843 pcg 1.11 fi
6844 ayin 1.104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6845     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6846     echo "${ECHO_T}$ac_header_compiler" >&6
6847 pcg 1.11
6848     # Is the header present?
6849 ayin 1.104 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6850     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6851 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
6852     /* confdefs.h. */
6853     _ACEOF
6854     cat confdefs.h >>conftest.$ac_ext
6855     cat >>conftest.$ac_ext <<_ACEOF
6856     /* end confdefs.h. */
6857     #include <$ac_header>
6858     _ACEOF
6859 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6860     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6861 pcg 1.11 ac_status=$?
6862     grep -v '^ *+' conftest.er1 >conftest.err
6863     rm -f conftest.er1
6864     cat conftest.err >&5
6865     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866 ayin 1.104 (exit $ac_status); } >/dev/null; then
6867     if test -s conftest.err; then
6868     ac_cpp_err=$ac_cxx_preproc_warn_flag
6869     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6870     else
6871     ac_cpp_err=
6872     fi
6873     else
6874     ac_cpp_err=yes
6875     fi
6876     if test -z "$ac_cpp_err"; then
6877 pcg 1.11 ac_header_preproc=yes
6878 pcg 1.1 else
6879 pcg 1.11 echo "$as_me: failed program was:" >&5
6880     sed 's/^/| /' conftest.$ac_ext >&5
6881    
6882     ac_header_preproc=no
6883     fi
6884     rm -f conftest.err conftest.$ac_ext
6885 ayin 1.104 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6886     echo "${ECHO_T}$ac_header_preproc" >&6
6887 pcg 1.11
6888     # So? What about this header?
6889 pcg 1.13 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6890 pcg 1.11 yes:no: )
6891     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6892     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6893     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6894     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6895     ac_header_preproc=yes
6896     ;;
6897     no:yes:* )
6898     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6899     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6900     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6901     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6902     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6903     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6904     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6905     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6906     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6907     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6908     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6909     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6910 ayin 1.104 (
6911     cat <<\_ASBOX
6912     ## ------------------------------------------ ##
6913     ## Report this to the AC_PACKAGE_NAME lists. ##
6914     ## ------------------------------------------ ##
6915     _ASBOX
6916     ) |
6917     sed "s/^/$as_me: WARNING: /" >&2
6918 pcg 1.11 ;;
6919     esac
6920 ayin 1.104 echo "$as_me:$LINENO: checking for $ac_header" >&5
6921     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6922     if eval "test \"\${$as_ac_Header+set}\" = set"; then
6923 pcg 1.11 echo $ECHO_N "(cached) $ECHO_C" >&6
6924 pcg 1.1 else
6925 pcg 1.11 eval "$as_ac_Header=\$ac_header_preproc"
6926 pcg 1.1 fi
6927 ayin 1.104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6928     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6929 pcg 1.11
6930 pcg 1.1 fi
6931 pcg 1.11 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6932     cat >>confdefs.h <<_ACEOF
6933     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6934     _ACEOF
6935    
6936 pcg 1.1 fi
6937 pcg 1.11
6938 pcg 1.1 done
6939    
6940    
6941 ayin 1.104 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6942     echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6943 pcg 1.11 if test "${ac_cv_header_time+set}" = set; then
6944     echo $ECHO_N "(cached) $ECHO_C" >&6
6945     else
6946     cat >conftest.$ac_ext <<_ACEOF
6947     /* confdefs.h. */
6948     _ACEOF
6949     cat confdefs.h >>conftest.$ac_ext
6950     cat >>conftest.$ac_ext <<_ACEOF
6951     /* end confdefs.h. */
6952 pcg 1.1 #include <sys/types.h>
6953     #include <sys/time.h>
6954     #include <time.h>
6955 pcg 1.11
6956     int
6957     main ()
6958     {
6959     if ((struct tm *) 0)
6960     return 0;
6961     ;
6962     return 0;
6963     }
6964     _ACEOF
6965     rm -f conftest.$ac_objext
6966 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6967     (eval $ac_compile) 2>conftest.er1
6968 pcg 1.11 ac_status=$?
6969     grep -v '^ *+' conftest.er1 >conftest.err
6970     rm -f conftest.er1
6971     cat conftest.err >&5
6972     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 ayin 1.104 (exit $ac_status); } &&
6974     { ac_try='test -z "$ac_cxx_werror_flag"
6975     || test ! -s conftest.err'
6976     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6977     (eval $ac_try) 2>&5
6978     ac_status=$?
6979     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980     (exit $ac_status); }; } &&
6981     { ac_try='test -s conftest.$ac_objext'
6982     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6983     (eval $ac_try) 2>&5
6984     ac_status=$?
6985     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986     (exit $ac_status); }; }; then
6987 pcg 1.1 ac_cv_header_time=yes
6988     else
6989 pcg 1.11 echo "$as_me: failed program was:" >&5
6990     sed 's/^/| /' conftest.$ac_ext >&5
6991    
6992 ayin 1.104 ac_cv_header_time=no
6993 pcg 1.1 fi
6994 ayin 1.104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6995 pcg 1.1 fi
6996 ayin 1.104 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6997     echo "${ECHO_T}$ac_cv_header_time" >&6
6998 pcg 1.11 if test $ac_cv_header_time = yes; then
6999 pcg 1.1
7000 pcg 1.11 cat >>confdefs.h <<\_ACEOF
7001 pcg 1.1 #define TIME_WITH_SYS_TIME 1
7002 pcg 1.11 _ACEOF
7003 pcg 1.1
7004     fi
7005    
7006    
7007 ayin 1.104 echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5
7008     echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6
7009 pcg 1.11 if test "${rxvt_cv_header_sysioctl+set}" = set; then
7010     echo $ECHO_N "(cached) $ECHO_C" >&6
7011 pcg 1.1 else
7012 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
7013     /* confdefs.h. */
7014     _ACEOF
7015     cat confdefs.h >>conftest.$ac_ext
7016     cat >>conftest.$ac_ext <<_ACEOF
7017     /* end confdefs.h. */
7018 pcg 1.1 #include <stdio.h>
7019     #include <sys/ioctl.h>
7020     #ifdef HAVE_TERMIOS_H
7021     #include <termios.h>
7022     #endif
7023 pcg 1.11 int
7024     main ()
7025     {
7026 pcg 1.1 int a = ECHO;
7027 pcg 1.11 ;
7028     return 0;
7029     }
7030     _ACEOF
7031     rm -f conftest.$ac_objext
7032 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7033     (eval $ac_compile) 2>conftest.er1
7034 pcg 1.11 ac_status=$?
7035     grep -v '^ *+' conftest.er1 >conftest.err
7036     rm -f conftest.er1
7037     cat conftest.err >&5
7038     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039 ayin 1.104 (exit $ac_status); } &&
7040     { ac_try='test -z "$ac_cxx_werror_flag"
7041     || test ! -s conftest.err'
7042     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7043     (eval $ac_try) 2>&5
7044     ac_status=$?
7045     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046     (exit $ac_status); }; } &&
7047     { ac_try='test -s conftest.$ac_objext'
7048     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7049     (eval $ac_try) 2>&5
7050     ac_status=$?
7051     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052     (exit $ac_status); }; }; then
7053 pcg 1.1 rxvt_cv_header_sysioctl=yes
7054     else
7055 pcg 1.11 echo "$as_me: failed program was:" >&5
7056     sed 's/^/| /' conftest.$ac_ext >&5
7057    
7058 ayin 1.104 rxvt_cv_header_sysioctl=no
7059 pcg 1.1 fi
7060 ayin 1.104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7061 pcg 1.1 fi
7062 ayin 1.104 echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5
7063     echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6
7064 pcg 1.1
7065     if test -n "$GCC"; then
7066     LDARG="-Wl,"
7067     else
7068     LDARG=""
7069     fi
7070     R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-rpath '$LDARG'\1/g'
7071    
7072     ac_save_CFLAGS=$CFLAGS
7073     ac_save_LIBS=$LIBS
7074     CFLAGS="$CFLAGS $X_CFLAGS"
7075     LIBS=`echo "$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
7076 ayin 1.104 echo "$as_me:$LINENO: checking for -rpath dynamic library path recording" >&5
7077     echo $ECHO_N "checking for -rpath dynamic library path recording... $ECHO_C" >&6
7078 pcg 1.11 if test "${rxvt_cv_rpath+set}" = set; then
7079     echo $ECHO_N "(cached) $ECHO_C" >&6
7080 pcg 1.1 else
7081     if test "$cross_compiling" = yes; then
7082 pcg 1.11 { echo "$as_me:$LINENO: WARNING: You may need to check the LIBS line" >&5
7083     echo "$as_me: WARNING: You may need to check the LIBS line" >&2;}
7084 pcg 1.1 else
7085 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
7086     /* confdefs.h. */
7087     _ACEOF
7088     cat confdefs.h >>conftest.$ac_ext
7089     cat >>conftest.$ac_ext <<_ACEOF
7090     /* end confdefs.h. */
7091 ayin 1.102 #include <X11/Xlib.h>
7092     #include <stdlib.h>
7093 pcg 1.1 main()
7094     {
7095     exit(0);
7096     (void) XOpenDisplay("foobar");
7097     }
7098 pcg 1.11 _ACEOF
7099     rm -f conftest$ac_exeext
7100 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7101     (eval $ac_link) 2>&5
7102 pcg 1.11 ac_status=$?
7103     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7105 ayin 1.104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7106     (eval $ac_try) 2>&5
7107 pcg 1.11 ac_status=$?
7108     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7109     (exit $ac_status); }; }; then
7110 pcg 1.1 rxvt_cv_rpath=yes
7111     else
7112 pcg 1.11 echo "$as_me: program exited with status $ac_status" >&5
7113     echo "$as_me: failed program was:" >&5
7114     sed 's/^/| /' conftest.$ac_ext >&5
7115    
7116     ( exit $ac_status )
7117     rxvt_cv_rpath=no
7118 pcg 1.1 fi
7119 ayin 1.104 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7120 pcg 1.1 fi
7121     fi
7122 ayin 1.104 echo "$as_me:$LINENO: result: $rxvt_cv_rpath" >&5
7123     echo "${ECHO_T}$rxvt_cv_rpath" >&6
7124 pcg 1.1 if test x$rxvt_cv_rpath != xyes; then
7125     R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-R\1/g'
7126     LIBS=`echo "$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
7127 ayin 1.104 echo "$as_me:$LINENO: checking for -R dynamic library path recording" >&5
7128     echo $ECHO_N "checking for -R dynamic library path recording... $ECHO_C" >&6
7129 pcg 1.11 if test "${rxvt_cv_R+set}" = set; then
7130     echo $ECHO_N "(cached) $ECHO_C" >&6
7131 pcg 1.1 else
7132     if test "$cross_compiling" = yes; then
7133     rxvt_cv_R=no
7134     else
7135 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
7136     /* confdefs.h. */
7137     _ACEOF
7138     cat confdefs.h >>conftest.$ac_ext
7139     cat >>conftest.$ac_ext <<_ACEOF
7140     /* end confdefs.h. */
7141 ayin 1.102 #include <X11/Xlib.h>
7142     #include <stdlib.h>
7143 pcg 1.1 main()
7144     {
7145     exit(0);
7146     (void) XOpenDisplay("foobar");
7147     }
7148 pcg 1.11 _ACEOF
7149     rm -f conftest$ac_exeext
7150 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7151     (eval $ac_link) 2>&5
7152 pcg 1.11 ac_status=$?
7153     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7155 ayin 1.104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7156     (eval $ac_try) 2>&5
7157 pcg 1.11 ac_status=$?
7158     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159     (exit $ac_status); }; }; then
7160 pcg 1.1 rxvt_cv_R=yes
7161     else
7162 pcg 1.11 echo "$as_me: program exited with status $ac_status" >&5
7163     echo "$as_me: failed program was:" >&5
7164     sed 's/^/| /' conftest.$ac_ext >&5
7165    
7166     ( exit $ac_status )
7167     rxvt_cv_R=no
7168 pcg 1.1 fi
7169 ayin 1.104 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7170 pcg 1.1 fi
7171     fi
7172 ayin 1.104 echo "$as_me:$LINENO: result: $rxvt_cv_R" >&5
7173     echo "${ECHO_T}$rxvt_cv_R" >&6
7174 pcg 1.1 if test x$rxvt_cv_R != xyes; then
7175     LIBS="$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
7176     fi
7177     fi
7178    
7179 ayin 1.104 echo "$as_me:$LINENO: checking for XPointer" >&5
7180     echo $ECHO_N "checking for XPointer... $ECHO_C" >&6
7181 pcg 1.11 if test "${rxvt_cv_xpointer+set}" = set; then
7182     echo $ECHO_N "(cached) $ECHO_C" >&6
7183     else
7184     cat >conftest.$ac_ext <<_ACEOF
7185     /* confdefs.h. */
7186     _ACEOF
7187     cat confdefs.h >>conftest.$ac_ext
7188     cat >>conftest.$ac_ext <<_ACEOF
7189     /* end confdefs.h. */
7190 pcg 1.1 #include <X11/Xlib.h>
7191 pcg 1.11 int
7192     main ()
7193     {
7194 pcg 1.1 XPointer dummy;
7195 pcg 1.11 ;
7196     return 0;
7197     }
7198     _ACEOF
7199     rm -f conftest.$ac_objext
7200 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7201     (eval $ac_compile) 2>conftest.er1
7202 pcg 1.11 ac_status=$?
7203     grep -v '^ *+' conftest.er1 >conftest.err
7204     rm -f conftest.er1
7205     cat conftest.err >&5
7206     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207 ayin 1.104 (exit $ac_status); } &&
7208     { ac_try='test -z "$ac_cxx_werror_flag"
7209     || test ! -s conftest.err'
7210     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7211     (eval $ac_try) 2>&5
7212     ac_status=$?
7213     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214     (exit $ac_status); }; } &&
7215     { ac_try='test -s conftest.$ac_objext'
7216     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7217     (eval $ac_try) 2>&5
7218     ac_status=$?
7219     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220     (exit $ac_status); }; }; then
7221 pcg 1.1 rxvt_cv_xpointer=yes
7222     else
7223 pcg 1.11 echo "$as_me: failed program was:" >&5
7224     sed 's/^/| /' conftest.$ac_ext >&5
7225    
7226 ayin 1.104 rxvt_cv_xpointer=no
7227 pcg 1.1 fi
7228 ayin 1.104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7229 pcg 1.1 fi
7230 ayin 1.104 echo "$as_me:$LINENO: result: $rxvt_cv_xpointer" >&5
7231     echo "${ECHO_T}$rxvt_cv_xpointer" >&6
7232 pcg 1.11 if test x$rxvt_cv_xpointer = xyes; then
7233 pcg 1.1
7234 pcg 1.11 cat >>confdefs.h <<\_ACEOF
7235 pcg 1.1 #define HAVE_XPOINTER 1
7236 pcg 1.11 _ACEOF
7237 pcg 1.1
7238     fi
7239     LIBS=$ac_save_LIBS
7240     CFLAGS=$ac_save_CFLAGS
7241    
7242 ayin 1.104 echo "$as_me:$LINENO: checking for XLIB_ILLEGAL_ACCESS" >&5
7243     echo $ECHO_N "checking for XLIB_ILLEGAL_ACCESS... $ECHO_C" >&6
7244 root 1.99 if test "${rxvt_xlib_illegal_access+set}" = set; then
7245     echo $ECHO_N "(cached) $ECHO_C" >&6
7246     else
7247     cat >conftest.$ac_ext <<_ACEOF
7248     /* confdefs.h. */
7249     _ACEOF
7250     cat confdefs.h >>conftest.$ac_ext
7251     cat >>conftest.$ac_ext <<_ACEOF
7252     /* end confdefs.h. */
7253    
7254     #define XLIB_ILLEGAL_ACCESS
7255     #include <X11/Xlib.h>
7256    
7257     int
7258     main ()
7259     {
7260    
7261     Display *dpy;
7262     dpy->xdefaults = (char *)0;
7263    
7264     ;
7265     return 0;
7266     }
7267     _ACEOF
7268     rm -f conftest.$ac_objext
7269 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7270     (eval $ac_compile) 2>conftest.er1
7271 root 1.99 ac_status=$?
7272     grep -v '^ *+' conftest.er1 >conftest.err
7273     rm -f conftest.er1
7274     cat conftest.err >&5
7275     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 ayin 1.104 (exit $ac_status); } &&
7277     { ac_try='test -z "$ac_cxx_werror_flag"
7278     || test ! -s conftest.err'
7279     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7280     (eval $ac_try) 2>&5
7281     ac_status=$?
7282     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283     (exit $ac_status); }; } &&
7284     { ac_try='test -s conftest.$ac_objext'
7285     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7286     (eval $ac_try) 2>&5
7287     ac_status=$?
7288     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289     (exit $ac_status); }; }; then
7290 root 1.99 rxvt_xlib_illegal_access=yes
7291     else
7292     echo "$as_me: failed program was:" >&5
7293     sed 's/^/| /' conftest.$ac_ext >&5
7294    
7295 ayin 1.104 rxvt_xlib_illegal_access=no
7296 root 1.99
7297     fi
7298 ayin 1.104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7299 root 1.99 fi
7300 ayin 1.104 echo "$as_me:$LINENO: result: $rxvt_xlib_illegal_access" >&5
7301     echo "${ECHO_T}$rxvt_xlib_illegal_access" >&6
7302 root 1.99 if test x$rxvt_xlib_illegal_access = xyes; then
7303    
7304     cat >>confdefs.h <<\_ACEOF
7305     #define XLIB_ILLEGAL_ACCESS 1
7306     _ACEOF
7307    
7308     fi
7309 pcg 1.1
7310 ayin 1.104 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7311     echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7312 pcg 1.11 if test "${ac_cv_c_const+set}" = set; then
7313     echo $ECHO_N "(cached) $ECHO_C" >&6
7314     else
7315     cat >conftest.$ac_ext <<_ACEOF
7316     /* confdefs.h. */
7317     _ACEOF
7318     cat confdefs.h >>conftest.$ac_ext
7319     cat >>conftest.$ac_ext <<_ACEOF
7320     /* end confdefs.h. */
7321 pcg 1.1
7322 pcg 1.11 int
7323     main ()
7324     {
7325     /* FIXME: Include the comments suggested by Paul. */
7326     #ifndef __cplusplus
7327     /* Ultrix mips cc rejects this. */
7328     typedef int charset[2];
7329 ayin 1.104 const charset x;
7330 pcg 1.11 /* SunOS 4.1.1 cc rejects this. */
7331 ayin 1.104 char const *const *ccp;
7332     char **p;
7333 pcg 1.11 /* NEC SVR4.0.2 mips cc rejects this. */
7334     struct point {int x, y;};
7335     static struct point const zero = {0,0};
7336     /* AIX XL C 1.02.0.0 rejects this.
7337     It does not let you subtract one const X* pointer from another in
7338     an arm of an if-expression whose if-part is not a constant
7339     expression */
7340     const char *g = "string";
7341 ayin 1.104 ccp = &g + (g ? g-g : 0);
7342 pcg 1.11 /* HPUX 7.0 cc rejects these. */
7343 ayin 1.104 ++ccp;
7344     p = (char**) ccp;
7345     ccp = (char const *const *) p;
7346 pcg 1.11 { /* SCO 3.2v4 cc rejects this. */
7347     char *t;
7348     char const *s = 0 ? (char *) 0 : (char const *) 0;
7349    
7350     *t++ = 0;
7351     }
7352     { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7353     int x[] = {25, 17};
7354     const int *foo = &x[0];
7355     ++foo;
7356     }
7357     { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7358     typedef const int *iptr;
7359     iptr p = 0;
7360     ++p;
7361     }
7362     { /* AIX XL C 1.02.0.0 rejects this saying
7363     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7364     struct s { int j; const int *ap[3]; };
7365     struct s *b; b->j = 5;
7366     }
7367     { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7368     const int foo = 10;
7369     }
7370     #endif
7371 pcg 1.1
7372 pcg 1.11 ;
7373     return 0;
7374 pcg 1.1 }
7375 pcg 1.11 _ACEOF
7376     rm -f conftest.$ac_objext
7377 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7378     (eval $ac_compile) 2>conftest.er1
7379 pcg 1.11 ac_status=$?
7380     grep -v '^ *+' conftest.er1 >conftest.err
7381     rm -f conftest.er1
7382     cat conftest.err >&5
7383     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384 ayin 1.104 (exit $ac_status); } &&
7385     { ac_try='test -z "$ac_cxx_werror_flag"
7386     || test ! -s conftest.err'
7387     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7388     (eval $ac_try) 2>&5
7389     ac_status=$?
7390     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7391     (exit $ac_status); }; } &&
7392     { ac_try='test -s conftest.$ac_objext'
7393     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7394     (eval $ac_try) 2>&5
7395     ac_status=$?
7396     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7397     (exit $ac_status); }; }; then
7398 pcg 1.1 ac_cv_c_const=yes
7399     else
7400 pcg 1.11 echo "$as_me: failed program was:" >&5
7401     sed 's/^/| /' conftest.$ac_ext >&5
7402    
7403 ayin 1.104 ac_cv_c_const=no
7404 pcg 1.1 fi
7405 ayin 1.104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7406 pcg 1.1 fi
7407 ayin 1.104 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7408     echo "${ECHO_T}$ac_cv_c_const" >&6
7409 pcg 1.11 if test $ac_cv_c_const = no; then
7410 pcg 1.1
7411 pcg 1.11 cat >>confdefs.h <<\_ACEOF
7412     #define const
7413     _ACEOF
7414 pcg 1.1
7415     fi
7416    
7417 ayin 1.104 echo "$as_me:$LINENO: checking for inline" >&5
7418     echo $ECHO_N "checking for inline... $ECHO_C" >&6
7419 pcg 1.11 if test "${ac_cv_c_inline+set}" = set; then
7420     echo $ECHO_N "(cached) $ECHO_C" >&6
7421 pcg 1.1 else
7422     ac_cv_c_inline=no
7423     for ac_kw in inline __inline__ __inline; do
7424 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
7425     /* confdefs.h. */
7426     _ACEOF
7427     cat confdefs.h >>conftest.$ac_ext
7428     cat >>conftest.$ac_ext <<_ACEOF
7429     /* end confdefs.h. */
7430     #ifndef __cplusplus
7431     typedef int foo_t;
7432     static $ac_kw foo_t static_foo () {return 0; }
7433     $ac_kw foo_t foo () {return 0; }
7434     #endif
7435 pcg 1.1
7436 pcg 1.11 _ACEOF
7437     rm -f conftest.$ac_objext
7438 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7439     (eval $ac_compile) 2>conftest.er1
7440 pcg 1.11 ac_status=$?
7441     grep -v '^ *+' conftest.er1 >conftest.err
7442     rm -f conftest.er1
7443     cat conftest.err >&5
7444     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 ayin 1.104 (exit $ac_status); } &&
7446     { ac_try='test -z "$ac_cxx_werror_flag"
7447     || test ! -s conftest.err'
7448     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7449     (eval $ac_try) 2>&5
7450     ac_status=$?
7451     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452     (exit $ac_status); }; } &&
7453     { ac_try='test -s conftest.$ac_objext'
7454     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7455     (eval $ac_try) 2>&5
7456     ac_status=$?
7457     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458     (exit $ac_status); }; }; then
7459     ac_cv_c_inline=$ac_kw; break
7460 pcg 1.1 else
7461 pcg 1.11 echo "$as_me: failed program was:" >&5
7462     sed 's/^/| /' conftest.$ac_ext >&5
7463    
7464 pcg 1.1 fi
7465 ayin 1.104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7466 pcg 1.1 done
7467    
7468     fi
7469 ayin 1.104 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7470     echo "${ECHO_T}$ac_cv_c_inline" >&6
7471 pcg 1.11
7472 pcg 1.1
7473 pcg 1.11 case $ac_cv_c_inline in
7474 pcg 1.1 inline | yes) ;;
7475 pcg 1.11 *)
7476     case $ac_cv_c_inline in
7477     no) ac_val=;;
7478     *) ac_val=$ac_cv_c_inline;;
7479     esac
7480     cat >>confdefs.h <<_ACEOF
7481     #ifndef __cplusplus
7482     #define inline $ac_val
7483     #endif
7484     _ACEOF
7485     ;;
7486 pcg 1.1 esac
7487    
7488    
7489    
7490 ayin 1.104 echo "$as_me:$LINENO: checking for mode_t" >&5
7491     echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
7492 pcg 1.11 if test "${ac_cv_type_mode_t+set}" = set; then
7493     echo $ECHO_N "(cached) $ECHO_C" >&6
7494     else
7495     cat >conftest.$ac_ext <<_ACEOF
7496     /* confdefs.h. */
7497     _ACEOF
7498     cat confdefs.h >>conftest.$ac_ext
7499     cat >>conftest.$ac_ext <<_ACEOF
7500     /* end confdefs.h. */
7501     $ac_includes_default
7502     int
7503     main ()
7504     {
7505 ayin 1.104 if ((mode_t *) 0)
7506 pcg 1.11 return 0;
7507 ayin 1.104 if (sizeof (mode_t))
7508 pcg 1.11 return 0;
7509     ;
7510     return 0;
7511     }
7512     _ACEOF
7513     rm -f conftest.$ac_objext
7514 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7515     (eval $ac_compile) 2>conftest.er1
7516 pcg 1.11 ac_status=$?
7517     grep -v '^ *+' conftest.er1 >conftest.err
7518     rm -f conftest.er1
7519     cat conftest.err >&5
7520     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521 ayin 1.104 (exit $ac_status); } &&
7522     { ac_try='test -z "$ac_cxx_werror_flag"
7523     || test ! -s conftest.err'
7524     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7525     (eval $ac_try) 2>&5
7526     ac_status=$?
7527     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528     (exit $ac_status); }; } &&
7529     { ac_try='test -s conftest.$ac_objext'
7530     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7531     (eval $ac_try) 2>&5
7532     ac_status=$?
7533     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534     (exit $ac_status); }; }; then
7535 pcg 1.11 ac_cv_type_mode_t=yes
7536 pcg 1.1 else
7537 pcg 1.11 echo "$as_me: failed program was:" >&5
7538     sed 's/^/| /' conftest.$ac_ext >&5
7539 pcg 1.1
7540 ayin 1.104 ac_cv_type_mode_t=no
7541 pcg 1.1 fi
7542 ayin 1.104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7543 pcg 1.1 fi
7544 ayin 1.104 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
7545     echo "${ECHO_T}$ac_cv_type_mode_t" >&6
7546 pcg 1.11 if test $ac_cv_type_mode_t = yes; then
7547 pcg 1.1 :
7548     else
7549    
7550 pcg 1.11 cat >>confdefs.h <<_ACEOF
7551     #define mode_t int
7552     _ACEOF
7553 pcg 1.1
7554     fi
7555    
7556 ayin 1.104 echo "$as_me:$LINENO: checking for pid_t" >&5
7557     echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7558 pcg 1.11 if test "${ac_cv_type_pid_t+set}" = set; then
7559     echo $ECHO_N "(cached) $ECHO_C" >&6
7560     else
7561     cat >conftest.$ac_ext <<_ACEOF
7562     /* confdefs.h. */
7563     _ACEOF
7564     cat confdefs.h >>conftest.$ac_ext
7565     cat >>conftest.$ac_ext <<_ACEOF
7566     /* end confdefs.h. */
7567     $ac_includes_default
7568     int
7569     main ()
7570     {
7571 ayin 1.104 if ((pid_t *) 0)
7572 pcg 1.11 return 0;
7573 ayin 1.104 if (sizeof (pid_t))
7574 pcg 1.11 return 0;
7575     ;
7576     return 0;
7577     }
7578     _ACEOF
7579     rm -f conftest.$ac_objext
7580 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7581     (eval $ac_compile) 2>conftest.er1
7582 pcg 1.11 ac_status=$?
7583     grep -v '^ *+' conftest.er1 >conftest.err
7584     rm -f conftest.er1
7585     cat conftest.err >&5
7586     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 ayin 1.104 (exit $ac_status); } &&
7588     { ac_try='test -z "$ac_cxx_werror_flag"
7589     || test ! -s conftest.err'
7590     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7591     (eval $ac_try) 2>&5
7592     ac_status=$?
7593     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594     (exit $ac_status); }; } &&
7595     { ac_try='test -s conftest.$ac_objext'
7596     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7597     (eval $ac_try) 2>&5
7598     ac_status=$?
7599     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7600     (exit $ac_status); }; }; then
7601 pcg 1.11 ac_cv_type_pid_t=yes
7602 pcg 1.1 else
7603 pcg 1.11 echo "$as_me: failed program was:" >&5
7604     sed 's/^/| /' conftest.$ac_ext >&5
7605 pcg 1.1
7606 ayin 1.104 ac_cv_type_pid_t=no
7607 pcg 1.1 fi
7608 ayin 1.104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7609 pcg 1.1 fi
7610 ayin 1.104 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7611     echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7612 pcg 1.11 if test $ac_cv_type_pid_t = yes; then
7613     :
7614 pcg 1.1 else
7615    
7616 pcg 1.11 cat >>confdefs.h <<_ACEOF
7617 pcg 1.1 #define pid_t int
7618 pcg 1.11 _ACEOF
7619 pcg 1.1
7620     fi
7621    
7622 ayin 1.104 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7623     echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7624 pcg 1.11 if test "${ac_cv_type_uid_t+set}" = set; then
7625     echo $ECHO_N "(cached) $ECHO_C" >&6
7626 pcg 1.1 else
7627 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
7628     /* confdefs.h. */
7629     _ACEOF
7630     cat confdefs.h >>conftest.$ac_ext
7631     cat >>conftest.$ac_ext <<_ACEOF
7632     /* end confdefs.h. */
7633 pcg 1.1 #include <sys/types.h>
7634 pcg 1.11
7635     _ACEOF
7636 pcg 1.1 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7637 pcg 1.11 $EGREP "uid_t" >/dev/null 2>&1; then
7638 pcg 1.1 ac_cv_type_uid_t=yes
7639     else
7640     ac_cv_type_uid_t=no
7641     fi
7642     rm -f conftest*
7643    
7644     fi
7645 ayin 1.104 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7646     echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7647 pcg 1.11 if test $ac_cv_type_uid_t = no; then
7648 pcg 1.1
7649 pcg 1.11 cat >>confdefs.h <<\_ACEOF
7650 pcg 1.1 #define uid_t int
7651 pcg 1.11 _ACEOF
7652    
7653 pcg 1.1
7654 pcg 1.11 cat >>confdefs.h <<\_ACEOF
7655 pcg 1.1 #define gid_t int
7656 pcg 1.11 _ACEOF
7657 pcg 1.1
7658     fi
7659    
7660    
7661 ayin 1.104 echo "$as_me:$LINENO: checking for short" >&5
7662     echo $ECHO_N "checking for short... $ECHO_C" >&6
7663 pcg 1.11 if test "${ac_cv_type_short+set}" = set; then
7664     echo $ECHO_N "(cached) $ECHO_C" >&6
7665     else
7666     cat >conftest.$ac_ext <<_ACEOF
7667     /* confdefs.h. */
7668     _ACEOF
7669     cat confdefs.h >>conftest.$ac_ext
7670     cat >>conftest.$ac_ext <<_ACEOF
7671     /* end confdefs.h. */
7672     $ac_includes_default
7673     int
7674     main ()
7675     {
7676 ayin 1.104 if ((short *) 0)
7677 pcg 1.11 return 0;
7678 ayin 1.104 if (sizeof (short))
7679 pcg 1.11 return 0;
7680     ;
7681     return 0;
7682     }
7683     _ACEOF
7684     rm -f conftest.$ac_objext
7685 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7686     (eval $ac_compile) 2>conftest.er1
7687 pcg 1.11 ac_status=$?
7688     grep -v '^ *+' conftest.er1 >conftest.err
7689     rm -f conftest.er1
7690     cat conftest.err >&5
7691     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692 ayin 1.104 (exit $ac_status); } &&
7693     { ac_try='test -z "$ac_cxx_werror_flag"
7694     || test ! -s conftest.err'
7695     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7696     (eval $ac_try) 2>&5
7697     ac_status=$?
7698     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699     (exit $ac_status); }; } &&
7700     { ac_try='test -s conftest.$ac_objext'
7701     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7702     (eval $ac_try) 2>&5
7703     ac_status=$?
7704     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705     (exit $ac_status); }; }; then
7706 root 1.42 ac_cv_type_short=yes
7707 pcg 1.11 else
7708     echo "$as_me: failed program was:" >&5
7709     sed 's/^/| /' conftest.$ac_ext >&5
7710    
7711 ayin 1.104 ac_cv_type_short=no
7712 pcg 1.11 fi
7713 ayin 1.104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7714 pcg 1.11 fi
7715 ayin 1.104 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7716     echo "${ECHO_T}$ac_cv_type_short" >&6
7717 pcg 1.11
7718 ayin 1.104 echo "$as_me:$LINENO: checking size of short" >&5
7719     echo $ECHO_N "checking size of short... $ECHO_C" >&6
7720 root 1.42 if test "${ac_cv_sizeof_short+set}" = set; then
7721 pcg 1.11 echo $ECHO_N "(cached) $ECHO_C" >&6
7722     else
7723 ayin 1.104 if test "$ac_cv_type_short" = yes; then
7724     # The cast to unsigned long works around a bug in the HP C Compiler
7725     # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7726     # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7727     # This bug is HP SR number 8606223364.
7728 pcg 1.11 if test "$cross_compiling" = yes; then
7729     # Depending upon the size, compute the lo and hi bounds.
7730     cat >conftest.$ac_ext <<_ACEOF
7731     /* confdefs.h. */
7732     _ACEOF
7733     cat confdefs.h >>conftest.$ac_ext
7734     cat >>conftest.$ac_ext <<_ACEOF
7735     /* end confdefs.h. */
7736     $ac_includes_default
7737     int
7738     main ()
7739     {
7740 ayin 1.104 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7741 pcg 1.11 test_array [0] = 0
7742    
7743     ;
7744     return 0;
7745     }
7746     _ACEOF
7747     rm -f conftest.$ac_objext
7748 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7749     (eval $ac_compile) 2>conftest.er1
7750 pcg 1.11 ac_status=$?
7751     grep -v '^ *+' conftest.er1 >conftest.err
7752     rm -f conftest.er1
7753     cat conftest.err >&5
7754     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 ayin 1.104 (exit $ac_status); } &&
7756     { ac_try='test -z "$ac_cxx_werror_flag"
7757     || test ! -s conftest.err'
7758     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7759     (eval $ac_try) 2>&5
7760     ac_status=$?
7761     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762     (exit $ac_status); }; } &&
7763     { ac_try='test -s conftest.$ac_objext'
7764     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7765     (eval $ac_try) 2>&5
7766     ac_status=$?
7767     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768     (exit $ac_status); }; }; then
7769 pcg 1.11 ac_lo=0 ac_mid=0
7770     while :; do
7771     cat >conftest.$ac_ext <<_ACEOF
7772     /* confdefs.h. */
7773     _ACEOF
7774     cat confdefs.h >>conftest.$ac_ext
7775     cat >>conftest.$ac_ext <<_ACEOF
7776     /* end confdefs.h. */
7777     $ac_includes_default
7778     int
7779     main ()
7780     {
7781 ayin 1.104 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7782 pcg 1.11 test_array [0] = 0
7783    
7784     ;
7785     return 0;
7786     }
7787     _ACEOF
7788     rm -f conftest.$ac_objext
7789 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7790     (eval $ac_compile) 2>conftest.er1
7791 pcg 1.11 ac_status=$?
7792     grep -v '^ *+' conftest.er1 >conftest.err
7793     rm -f conftest.er1
7794     cat conftest.err >&5
7795     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796 ayin 1.104 (exit $ac_status); } &&
7797     { ac_try='test -z "$ac_cxx_werror_flag"
7798     || test ! -s conftest.err'
7799     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7800     (eval $ac_try) 2>&5
7801     ac_status=$?
7802     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803     (exit $ac_status); }; } &&
7804     { ac_try='test -s conftest.$ac_objext'
7805     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7806     (eval $ac_try) 2>&5
7807     ac_status=$?
7808     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7809     (exit $ac_status); }; }; then
7810 pcg 1.11 ac_hi=$ac_mid; break
7811     else
7812     echo "$as_me: failed program was:" >&5
7813     sed 's/^/| /' conftest.$ac_ext >&5
7814    
7815 ayin 1.104 ac_lo=`expr $ac_mid + 1`
7816     if test $ac_lo -le $ac_mid; then
7817     ac_lo= ac_hi=
7818     break
7819     fi
7820     ac_mid=`expr 2 '*' $ac_mid + 1`
7821 pcg 1.11 fi
7822 ayin 1.104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7823 pcg 1.11 done
7824     else
7825     echo "$as_me: failed program was:" >&5
7826     sed 's/^/| /' conftest.$ac_ext >&5
7827    
7828 ayin 1.104 cat >conftest.$ac_ext <<_ACEOF
7829 pcg 1.11 /* confdefs.h. */
7830     _ACEOF
7831     cat confdefs.h >>conftest.$ac_ext
7832     cat >>conftest.$ac_ext <<_ACEOF
7833     /* end confdefs.h. */
7834     $ac_includes_default
7835     int
7836     main ()
7837     {
7838 ayin 1.104 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7839 pcg 1.11 test_array [0] = 0
7840    
7841     ;
7842     return 0;
7843     }
7844     _ACEOF
7845     rm -f conftest.$ac_objext
7846 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7847     (eval $ac_compile) 2>conftest.er1
7848 pcg 1.11 ac_status=$?
7849     grep -v '^ *+' conftest.er1 >conftest.err
7850     rm -f conftest.er1
7851     cat conftest.err >&5
7852     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853 ayin 1.104 (exit $ac_status); } &&
7854     { ac_try='test -z "$ac_cxx_werror_flag"
7855     || test ! -s conftest.err'
7856     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7857     (eval $ac_try) 2>&5
7858     ac_status=$?
7859     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860     (exit $ac_status); }; } &&
7861     { ac_try='test -s conftest.$ac_objext'
7862     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7863     (eval $ac_try) 2>&5
7864     ac_status=$?
7865     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866     (exit $ac_status); }; }; then
7867 pcg 1.11 ac_hi=-1 ac_mid=-1
7868     while :; do
7869     cat >conftest.$ac_ext <<_ACEOF
7870     /* confdefs.h. */
7871     _ACEOF
7872     cat confdefs.h >>conftest.$ac_ext
7873     cat >>conftest.$ac_ext <<_ACEOF
7874     /* end confdefs.h. */
7875     $ac_includes_default
7876     int
7877     main ()
7878     {
7879 ayin 1.104 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7880 pcg 1.11 test_array [0] = 0
7881    
7882     ;
7883     return 0;
7884     }
7885     _ACEOF
7886     rm -f conftest.$ac_objext
7887 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7888     (eval $ac_compile) 2>conftest.er1
7889 pcg 1.11 ac_status=$?
7890     grep -v '^ *+' conftest.er1 >conftest.err
7891     rm -f conftest.er1
7892     cat conftest.err >&5
7893     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 ayin 1.104 (exit $ac_status); } &&
7895     { ac_try='test -z "$ac_cxx_werror_flag"
7896     || test ! -s conftest.err'
7897     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7898     (eval $ac_try) 2>&5
7899     ac_status=$?
7900     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901     (exit $ac_status); }; } &&
7902     { ac_try='test -s conftest.$ac_objext'
7903     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7904     (eval $ac_try) 2>&5
7905     ac_status=$?
7906     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907     (exit $ac_status); }; }; then
7908 pcg 1.11 ac_lo=$ac_mid; break
7909     else
7910     echo "$as_me: failed program was:" >&5
7911     sed 's/^/| /' conftest.$ac_ext >&5
7912    
7913 ayin 1.104 ac_hi=`expr '(' $ac_mid ')' - 1`
7914     if test $ac_mid -le $ac_hi; then
7915     ac_lo= ac_hi=
7916     break
7917     fi
7918     ac_mid=`expr 2 '*' $ac_mid`
7919 pcg 1.11 fi
7920 ayin 1.104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7921 pcg 1.11 done
7922     else
7923     echo "$as_me: failed program was:" >&5
7924     sed 's/^/| /' conftest.$ac_ext >&5
7925 pcg 1.1
7926 ayin 1.104 ac_lo= ac_hi=
7927 pcg 1.1 fi
7928 ayin 1.104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7929 pcg 1.11 fi
7930 ayin 1.104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7931 pcg 1.11 # Binary search between lo and hi bounds.
7932     while test "x$ac_lo" != "x$ac_hi"; do
7933     ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7934     cat >conftest.$ac_ext <<_ACEOF
7935     /* confdefs.h. */
7936     _ACEOF
7937     cat confdefs.h >>conftest.$ac_ext
7938     cat >>conftest.$ac_ext <<_ACEOF
7939     /* end confdefs.h. */
7940     $ac_includes_default
7941     int
7942     main ()
7943     {
7944 ayin 1.104 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7945 pcg 1.11 test_array [0] = 0
7946 pcg 1.1
7947 pcg 1.11 ;
7948     return 0;
7949     }
7950     _ACEOF
7951     rm -f conftest.$ac_objext
7952 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7953     (eval $ac_compile) 2>conftest.er1
7954 pcg 1.11 ac_status=$?
7955     grep -v '^ *+' conftest.er1 >conftest.err
7956     rm -f conftest.er1
7957     cat conftest.err >&5
7958     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 ayin 1.104 (exit $ac_status); } &&
7960     { ac_try='test -z "$ac_cxx_werror_flag"
7961     || test ! -s conftest.err'
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); }; } &&
7967     { ac_try='test -s conftest.$ac_objext'
7968     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7969     (eval $ac_try) 2>&5
7970     ac_status=$?
7971     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972     (exit $ac_status); }; }; then
7973 pcg 1.11 ac_hi=$ac_mid
7974     else
7975     echo "$as_me: failed program was:" >&5
7976     sed 's/^/| /' conftest.$ac_ext >&5
7977 pcg 1.1
7978 ayin 1.104 ac_lo=`expr '(' $ac_mid ')' + 1`
7979 pcg 1.11 fi
7980 ayin 1.104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7981 pcg 1.11 done
7982     case $ac_lo in
7983 root 1.42 ?*) ac_cv_sizeof_short=$ac_lo;;
7984 ayin 1.104 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7985 pcg 1.11 See \`config.log' for more details." >&5
7986 ayin 1.104 echo "$as_me: error: cannot compute sizeof (short), 77
7987 pcg 1.11 See \`config.log' for more details." >&2;}
7988 ayin 1.104 { (exit 1); exit 1; }; } ;;
7989 pcg 1.11 esac
7990 pcg 1.1 else
7991 ayin 1.104 if test "$cross_compiling" = yes; then
7992     { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7993     See \`config.log' for more details." >&5
7994     echo "$as_me: error: cannot run test program while cross compiling
7995     See \`config.log' for more details." >&2;}
7996     { (exit 1); exit 1; }; }
7997     else
7998 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
7999     /* confdefs.h. */
8000     _ACEOF
8001     cat confdefs.h >>conftest.$ac_ext
8002     cat >>conftest.$ac_ext <<_ACEOF
8003     /* end confdefs.h. */
8004     $ac_includes_default
8005 ayin 1.104 long longval () { return (long) (sizeof (short)); }
8006     unsigned long ulongval () { return (long) (sizeof (short)); }
8007 pcg 1.1 #include <stdio.h>
8008 pcg 1.11 #include <stdlib.h>
8009     int
8010     main ()
8011 pcg 1.1 {
8012 pcg 1.11
8013     FILE *f = fopen ("conftest.val", "w");
8014     if (! f)
8015 ayin 1.104 exit (1);
8016     if (((long) (sizeof (short))) < 0)
8017 pcg 1.11 {
8018 ayin 1.104 long i = longval ();
8019     if (i != ((long) (sizeof (short))))
8020     exit (1);
8021 pcg 1.11 fprintf (f, "%ld\n", i);
8022     }
8023     else
8024     {
8025 ayin 1.104 unsigned long i = ulongval ();
8026     if (i != ((long) (sizeof (short))))
8027     exit (1);
8028 pcg 1.11 fprintf (f, "%lu\n", i);
8029     }
8030 ayin 1.104 exit (ferror (f) || fclose (f) != 0);
8031 pcg 1.11
8032     ;
8033     return 0;
8034 pcg 1.1 }
8035 pcg 1.11 _ACEOF
8036     rm -f conftest$ac_exeext
8037 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8038     (eval $ac_link) 2>&5
8039 pcg 1.11 ac_status=$?
8040     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8042 ayin 1.104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8043     (eval $ac_try) 2>&5
8044 pcg 1.11 ac_status=$?
8045     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046     (exit $ac_status); }; }; then
8047 root 1.42 ac_cv_sizeof_short=`cat conftest.val`
8048 pcg 1.11 else
8049     echo "$as_me: program exited with status $ac_status" >&5
8050     echo "$as_me: failed program was:" >&5
8051     sed 's/^/| /' conftest.$ac_ext >&5
8052    
8053     ( exit $ac_status )
8054 ayin 1.104 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
8055 pcg 1.11 See \`config.log' for more details." >&5
8056 ayin 1.104 echo "$as_me: error: cannot compute sizeof (short), 77
8057 pcg 1.11 See \`config.log' for more details." >&2;}
8058 ayin 1.104 { (exit 1); exit 1; }; }
8059     fi
8060     rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8061 pcg 1.11 fi
8062     fi
8063     rm -f conftest.val
8064 ayin 1.104 else
8065     ac_cv_sizeof_short=0
8066     fi
8067 pcg 1.1 fi
8068 ayin 1.104 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8069     echo "${ECHO_T}$ac_cv_sizeof_short" >&6
8070 pcg 1.11 cat >>confdefs.h <<_ACEOF
8071 root 1.42 #define SIZEOF_SHORT $ac_cv_sizeof_short
8072 pcg 1.11 _ACEOF
8073    
8074    
8075 ayin 1.104 echo "$as_me:$LINENO: checking for int" >&5
8076     echo $ECHO_N "checking for int... $ECHO_C" >&6
8077 root 1.42 if test "${ac_cv_type_int+set}" = set; then
8078 pcg 1.11 echo $ECHO_N "(cached) $ECHO_C" >&6
8079     else
8080     cat >conftest.$ac_ext <<_ACEOF
8081     /* confdefs.h. */
8082     _ACEOF
8083     cat confdefs.h >>conftest.$ac_ext
8084     cat >>conftest.$ac_ext <<_ACEOF
8085     /* end confdefs.h. */
8086     $ac_includes_default
8087     int
8088     main ()
8089     {
8090 ayin 1.104 if ((int *) 0)
8091 pcg 1.11 return 0;
8092 ayin 1.104 if (sizeof (int))
8093 pcg 1.11 return 0;
8094     ;
8095     return 0;
8096     }
8097     _ACEOF
8098     rm -f conftest.$ac_objext
8099 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8100     (eval $ac_compile) 2>conftest.er1
8101 pcg 1.11 ac_status=$?
8102     grep -v '^ *+' conftest.er1 >conftest.err
8103     rm -f conftest.er1
8104     cat conftest.err >&5
8105     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106 ayin 1.104 (exit $ac_status); } &&
8107     { ac_try='test -z "$ac_cxx_werror_flag"
8108     || test ! -s conftest.err'
8109     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8110     (eval $ac_try) 2>&5
8111     ac_status=$?
8112     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113     (exit $ac_status); }; } &&
8114     { ac_try='test -s conftest.$ac_objext'
8115     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8116     (eval $ac_try) 2>&5
8117     ac_status=$?
8118     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119     (exit $ac_status); }; }; then
8120 root 1.42 ac_cv_type_int=yes
8121 pcg 1.11 else
8122     echo "$as_me: failed program was:" >&5
8123     sed 's/^/| /' conftest.$ac_ext >&5
8124    
8125 ayin 1.104 ac_cv_type_int=no
8126 pcg 1.11 fi
8127 ayin 1.104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8128 pcg 1.11 fi
8129 ayin 1.104 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
8130     echo "${ECHO_T}$ac_cv_type_int" >&6
8131 pcg 1.11
8132 ayin 1.104 echo "$as_me:$LINENO: checking size of int" >&5
8133     echo $ECHO_N "checking size of int... $ECHO_C" >&6
8134 root 1.42 if test "${ac_cv_sizeof_int+set}" = set; then
8135 pcg 1.11 echo $ECHO_N "(cached) $ECHO_C" >&6
8136     else
8137 ayin 1.104 if test "$ac_cv_type_int" = yes; then
8138     # The cast to unsigned long works around a bug in the HP C Compiler
8139     # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8140     # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8141     # This bug is HP SR number 8606223364.
8142 pcg 1.11 if test "$cross_compiling" = yes; then
8143     # Depending upon the size, compute the lo and hi bounds.
8144     cat >conftest.$ac_ext <<_ACEOF
8145     /* confdefs.h. */
8146     _ACEOF
8147     cat confdefs.h >>conftest.$ac_ext
8148     cat >>conftest.$ac_ext <<_ACEOF
8149     /* end confdefs.h. */
8150     $ac_includes_default
8151     int
8152     main ()
8153     {
8154 ayin 1.104 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
8155 pcg 1.11 test_array [0] = 0
8156    
8157     ;
8158     return 0;
8159     }
8160     _ACEOF
8161     rm -f conftest.$ac_objext
8162 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8163     (eval $ac_compile) 2>conftest.er1
8164 pcg 1.11 ac_status=$?
8165     grep -v '^ *+' conftest.er1 >conftest.err
8166     rm -f conftest.er1
8167     cat conftest.err >&5
8168     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169 ayin 1.104 (exit $ac_status); } &&
8170     { ac_try='test -z "$ac_cxx_werror_flag"
8171     || test ! -s conftest.err'
8172     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8173     (eval $ac_try) 2>&5
8174     ac_status=$?
8175     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176     (exit $ac_status); }; } &&
8177     { ac_try='test -s conftest.$ac_objext'
8178     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8179     (eval $ac_try) 2>&5
8180     ac_status=$?
8181     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182     (exit $ac_status); }; }; then
8183 pcg 1.11 ac_lo=0 ac_mid=0
8184     while :; do
8185     cat >conftest.$ac_ext <<_ACEOF
8186     /* confdefs.h. */
8187     _ACEOF
8188     cat confdefs.h >>conftest.$ac_ext
8189     cat >>conftest.$ac_ext <<_ACEOF
8190     /* end confdefs.h. */
8191     $ac_includes_default
8192     int
8193     main ()
8194     {
8195 ayin 1.104 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
8196 pcg 1.11 test_array [0] = 0
8197    
8198     ;
8199     return 0;
8200     }
8201     _ACEOF
8202     rm -f conftest.$ac_objext
8203 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8204     (eval $ac_compile) 2>conftest.er1
8205 pcg 1.11 ac_status=$?
8206     grep -v '^ *+' conftest.er1 >conftest.err
8207     rm -f conftest.er1
8208     cat conftest.err >&5
8209     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 ayin 1.104 (exit $ac_status); } &&
8211     { ac_try='test -z "$ac_cxx_werror_flag"
8212     || test ! -s conftest.err'
8213     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8214     (eval $ac_try) 2>&5
8215     ac_status=$?
8216     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217     (exit $ac_status); }; } &&
8218     { ac_try='test -s conftest.$ac_objext'
8219     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8220     (eval $ac_try) 2>&5
8221     ac_status=$?
8222     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223     (exit $ac_status); }; }; then
8224 pcg 1.11 ac_hi=$ac_mid; break
8225     else
8226     echo "$as_me: failed program was:" >&5
8227     sed 's/^/| /' conftest.$ac_ext >&5
8228    
8229 ayin 1.104 ac_lo=`expr $ac_mid + 1`
8230     if test $ac_lo -le $ac_mid; then
8231     ac_lo= ac_hi=
8232     break
8233     fi
8234     ac_mid=`expr 2 '*' $ac_mid + 1`
8235 pcg 1.11 fi
8236 ayin 1.104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8237 pcg 1.11 done
8238     else
8239     echo "$as_me: failed program was:" >&5
8240     sed 's/^/| /' conftest.$ac_ext >&5
8241    
8242 ayin 1.104 cat >conftest.$ac_ext <<_ACEOF
8243 pcg 1.11 /* confdefs.h. */
8244     _ACEOF
8245     cat confdefs.h >>conftest.$ac_ext
8246     cat >>conftest.$ac_ext <<_ACEOF
8247     /* end confdefs.h. */
8248     $ac_includes_default
8249     int
8250     main ()
8251     {
8252 ayin 1.104 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
8253 pcg 1.11 test_array [0] = 0
8254    
8255     ;
8256     return 0;
8257     }
8258     _ACEOF
8259     rm -f conftest.$ac_objext
8260 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8261     (eval $ac_compile) 2>conftest.er1
8262 pcg 1.11 ac_status=$?
8263     grep -v '^ *+' conftest.er1 >conftest.err
8264     rm -f conftest.er1
8265     cat conftest.err >&5
8266     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 ayin 1.104 (exit $ac_status); } &&
8268     { ac_try='test -z "$ac_cxx_werror_flag"
8269     || test ! -s conftest.err'
8270     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8271     (eval $ac_try) 2>&5
8272     ac_status=$?
8273     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274     (exit $ac_status); }; } &&
8275     { ac_try='test -s conftest.$ac_objext'
8276     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8277     (eval $ac_try) 2>&5
8278     ac_status=$?
8279     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280     (exit $ac_status); }; }; then
8281 pcg 1.11 ac_hi=-1 ac_mid=-1
8282     while :; do
8283     cat >conftest.$ac_ext <<_ACEOF
8284     /* confdefs.h. */
8285     _ACEOF
8286     cat confdefs.h >>conftest.$ac_ext
8287     cat >>conftest.$ac_ext <<_ACEOF
8288     /* end confdefs.h. */
8289     $ac_includes_default
8290     int
8291     main ()
8292     {
8293 ayin 1.104 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
8294 pcg 1.11 test_array [0] = 0
8295    
8296     ;
8297     return 0;
8298     }
8299     _ACEOF
8300     rm -f conftest.$ac_objext
8301 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8302     (eval $ac_compile) 2>conftest.er1
8303 pcg 1.11 ac_status=$?
8304     grep -v '^ *+' conftest.er1 >conftest.err
8305     rm -f conftest.er1
8306     cat conftest.err >&5
8307     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 ayin 1.104 (exit $ac_status); } &&
8309     { ac_try='test -z "$ac_cxx_werror_flag"
8310     || test ! -s conftest.err'
8311     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8312     (eval $ac_try) 2>&5
8313     ac_status=$?
8314     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315     (exit $ac_status); }; } &&
8316     { ac_try='test -s conftest.$ac_objext'
8317     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8318     (eval $ac_try) 2>&5
8319     ac_status=$?
8320     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321     (exit $ac_status); }; }; then
8322 pcg 1.11 ac_lo=$ac_mid; break
8323     else
8324     echo "$as_me: failed program was:" >&5
8325     sed 's/^/| /' conftest.$ac_ext >&5
8326    
8327 ayin 1.104 ac_hi=`expr '(' $ac_mid ')' - 1`
8328     if test $ac_mid -le $ac_hi; then
8329     ac_lo= ac_hi=
8330     break
8331     fi
8332     ac_mid=`expr 2 '*' $ac_mid`
8333 pcg 1.11 fi
8334 ayin 1.104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8335 pcg 1.11 done
8336     else
8337     echo "$as_me: failed program was:" >&5
8338     sed 's/^/| /' conftest.$ac_ext >&5
8339 pcg 1.1
8340 ayin 1.104 ac_lo= ac_hi=
8341 pcg 1.11 fi
8342 ayin 1.104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8343 pcg 1.1 fi
8344 ayin 1.104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8345 pcg 1.11 # Binary search between lo and hi bounds.
8346     while test "x$ac_lo" != "x$ac_hi"; do
8347     ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8348     cat >conftest.$ac_ext <<_ACEOF
8349     /* confdefs.h. */
8350     _ACEOF
8351     cat confdefs.h >>conftest.$ac_ext
8352     cat >>conftest.$ac_ext <<_ACEOF
8353     /* end confdefs.h. */
8354     $ac_includes_default
8355     int
8356     main ()
8357     {
8358 ayin 1.104 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
8359 pcg 1.11 test_array [0] = 0
8360 pcg 1.1
8361 pcg 1.11 ;
8362     return 0;
8363     }
8364     _ACEOF
8365     rm -f conftest.$ac_objext
8366 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8367     (eval $ac_compile) 2>conftest.er1
8368 pcg 1.11 ac_status=$?
8369     grep -v '^ *+' conftest.er1 >conftest.err
8370     rm -f conftest.er1
8371     cat conftest.err >&5
8372     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 ayin 1.104 (exit $ac_status); } &&
8374     { ac_try='test -z "$ac_cxx_werror_flag"
8375     || test ! -s conftest.err'
8376     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8377     (eval $ac_try) 2>&5
8378     ac_status=$?
8379     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380     (exit $ac_status); }; } &&
8381     { ac_try='test -s conftest.$ac_objext'
8382     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8383     (eval $ac_try) 2>&5
8384     ac_status=$?
8385     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386     (exit $ac_status); }; }; then
8387 pcg 1.11 ac_hi=$ac_mid
8388     else
8389     echo "$as_me: failed program was:" >&5
8390     sed 's/^/| /' conftest.$ac_ext >&5
8391 pcg 1.1
8392 ayin 1.104 ac_lo=`expr '(' $ac_mid ')' + 1`
8393 pcg 1.11 fi
8394 ayin 1.104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8395 pcg 1.11 done
8396     case $ac_lo in
8397 root 1.42 ?*) ac_cv_sizeof_int=$ac_lo;;
8398 ayin 1.104 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
8399 pcg 1.11 See \`config.log' for more details." >&5
8400 ayin 1.104 echo "$as_me: error: cannot compute sizeof (int), 77
8401 pcg 1.11 See \`config.log' for more details." >&2;}
8402 ayin 1.104 { (exit 1); exit 1; }; } ;;
8403 pcg 1.11 esac
8404 pcg 1.1 else
8405 ayin 1.104 if test "$cross_compiling" = yes; then
8406     { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8407     See \`config.log' for more details." >&5
8408     echo "$as_me: error: cannot run test program while cross compiling
8409     See \`config.log' for more details." >&2;}
8410     { (exit 1); exit 1; }; }
8411     else
8412 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
8413     /* confdefs.h. */
8414     _ACEOF
8415     cat confdefs.h >>conftest.$ac_ext
8416     cat >>conftest.$ac_ext <<_ACEOF
8417     /* end confdefs.h. */
8418     $ac_includes_default
8419 ayin 1.104 long longval () { return (long) (sizeof (int)); }
8420     unsigned long ulongval () { return (long) (sizeof (int)); }
8421 pcg 1.1 #include <stdio.h>
8422 pcg 1.11 #include <stdlib.h>
8423     int
8424     main ()
8425 pcg 1.1 {
8426 pcg 1.11
8427     FILE *f = fopen ("conftest.val", "w");
8428     if (! f)
8429 ayin 1.104 exit (1);
8430     if (((long) (sizeof (int))) < 0)
8431 pcg 1.11 {
8432 ayin 1.104 long i = longval ();
8433     if (i != ((long) (sizeof (int))))
8434     exit (1);
8435 pcg 1.11 fprintf (f, "%ld\n", i);
8436     }
8437     else
8438     {
8439 ayin 1.104 unsigned long i = ulongval ();
8440     if (i != ((long) (sizeof (int))))
8441     exit (1);
8442 pcg 1.11 fprintf (f, "%lu\n", i);
8443     }
8444 ayin 1.104 exit (ferror (f) || fclose (f) != 0);
8445 pcg 1.11
8446     ;
8447     return 0;
8448 pcg 1.1 }
8449 pcg 1.11 _ACEOF
8450     rm -f conftest$ac_exeext
8451 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8452     (eval $ac_link) 2>&5
8453 pcg 1.11 ac_status=$?
8454     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8456 ayin 1.104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8457     (eval $ac_try) 2>&5
8458 pcg 1.11 ac_status=$?
8459     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460     (exit $ac_status); }; }; then
8461 root 1.42 ac_cv_sizeof_int=`cat conftest.val`
8462 pcg 1.11 else
8463     echo "$as_me: program exited with status $ac_status" >&5
8464     echo "$as_me: failed program was:" >&5
8465     sed 's/^/| /' conftest.$ac_ext >&5
8466    
8467     ( exit $ac_status )
8468 ayin 1.104 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
8469 pcg 1.11 See \`config.log' for more details." >&5
8470 ayin 1.104 echo "$as_me: error: cannot compute sizeof (int), 77
8471 pcg 1.11 See \`config.log' for more details." >&2;}
8472 ayin 1.104 { (exit 1); exit 1; }; }
8473     fi
8474     rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8475 pcg 1.11 fi
8476     fi
8477     rm -f conftest.val
8478 ayin 1.104 else
8479     ac_cv_sizeof_int=0
8480     fi
8481 pcg 1.1 fi
8482 ayin 1.104 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
8483     echo "${ECHO_T}$ac_cv_sizeof_int" >&6
8484 pcg 1.11 cat >>confdefs.h <<_ACEOF
8485 root 1.42 #define SIZEOF_INT $ac_cv_sizeof_int
8486 pcg 1.11 _ACEOF
8487    
8488    
8489 ayin 1.104 echo "$as_me:$LINENO: checking for long long" >&5
8490     echo $ECHO_N "checking for long long... $ECHO_C" >&6
8491 pcg 1.11 if test "${ac_cv_type_long_long+set}" = set; then
8492     echo $ECHO_N "(cached) $ECHO_C" >&6
8493     else
8494     cat >conftest.$ac_ext <<_ACEOF
8495     /* confdefs.h. */
8496     _ACEOF
8497     cat confdefs.h >>conftest.$ac_ext
8498     cat >>conftest.$ac_ext <<_ACEOF
8499     /* end confdefs.h. */
8500     $ac_includes_default
8501     int
8502     main ()
8503     {
8504 ayin 1.104 if ((long long *) 0)
8505 pcg 1.11 return 0;
8506 ayin 1.104 if (sizeof (long long))
8507 pcg 1.11 return 0;
8508     ;
8509     return 0;
8510     }
8511     _ACEOF
8512     rm -f conftest.$ac_objext
8513 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8514     (eval $ac_compile) 2>conftest.er1
8515 pcg 1.11 ac_status=$?
8516     grep -v '^ *+' conftest.er1 >conftest.err
8517     rm -f conftest.er1
8518     cat conftest.err >&5
8519     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520 ayin 1.104 (exit $ac_status); } &&
8521     { ac_try='test -z "$ac_cxx_werror_flag"
8522     || test ! -s conftest.err'
8523     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8524     (eval $ac_try) 2>&5
8525     ac_status=$?
8526     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527     (exit $ac_status); }; } &&
8528     { ac_try='test -s conftest.$ac_objext'
8529     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8530     (eval $ac_try) 2>&5
8531     ac_status=$?
8532     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533     (exit $ac_status); }; }; then
8534 pcg 1.11 ac_cv_type_long_long=yes
8535     else
8536     echo "$as_me: failed program was:" >&5
8537     sed 's/^/| /' conftest.$ac_ext >&5
8538    
8539 ayin 1.104 ac_cv_type_long_long=no
8540 pcg 1.11 fi
8541 ayin 1.104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8542 pcg 1.11 fi
8543 ayin 1.104 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8544     echo "${ECHO_T}$ac_cv_type_long_long" >&6
8545 pcg 1.11
8546 ayin 1.104 echo "$as_me:$LINENO: checking size of long long" >&5
8547     echo $ECHO_N "checking size of long long... $ECHO_C" >&6
8548 pcg 1.11 if test "${ac_cv_sizeof_long_long+set}" = set; then
8549     echo $ECHO_N "(cached) $ECHO_C" >&6
8550     else
8551 ayin 1.104 if test "$ac_cv_type_long_long" = yes; then
8552     # The cast to unsigned long works around a bug in the HP C Compiler
8553     # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8554     # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8555     # This bug is HP SR number 8606223364.
8556 pcg 1.11 if test "$cross_compiling" = yes; then
8557     # Depending upon the size, compute the lo and hi bounds.
8558     cat >conftest.$ac_ext <<_ACEOF
8559     /* confdefs.h. */
8560     _ACEOF
8561     cat confdefs.h >>conftest.$ac_ext
8562     cat >>conftest.$ac_ext <<_ACEOF
8563     /* end confdefs.h. */
8564     $ac_includes_default
8565     int
8566     main ()
8567     {
8568 ayin 1.104 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
8569 pcg 1.11 test_array [0] = 0
8570    
8571     ;
8572     return 0;
8573     }
8574     _ACEOF
8575     rm -f conftest.$ac_objext
8576 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8577     (eval $ac_compile) 2>conftest.er1
8578 pcg 1.11 ac_status=$?
8579     grep -v '^ *+' conftest.er1 >conftest.err
8580     rm -f conftest.er1
8581     cat conftest.err >&5
8582     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 ayin 1.104 (exit $ac_status); } &&
8584     { ac_try='test -z "$ac_cxx_werror_flag"
8585     || test ! -s conftest.err'
8586     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8587     (eval $ac_try) 2>&5
8588     ac_status=$?
8589     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590     (exit $ac_status); }; } &&
8591     { ac_try='test -s conftest.$ac_objext'
8592     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8593     (eval $ac_try) 2>&5
8594     ac_status=$?
8595     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596     (exit $ac_status); }; }; then
8597 pcg 1.11 ac_lo=0 ac_mid=0
8598     while :; do
8599     cat >conftest.$ac_ext <<_ACEOF
8600     /* confdefs.h. */
8601     _ACEOF
8602     cat confdefs.h >>conftest.$ac_ext
8603     cat >>conftest.$ac_ext <<_ACEOF
8604     /* end confdefs.h. */
8605     $ac_includes_default
8606     int
8607     main ()
8608     {
8609 ayin 1.104 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
8610 pcg 1.11 test_array [0] = 0
8611    
8612     ;
8613     return 0;
8614     }
8615     _ACEOF
8616     rm -f conftest.$ac_objext
8617 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8618     (eval $ac_compile) 2>conftest.er1
8619 pcg 1.11 ac_status=$?
8620     grep -v '^ *+' conftest.er1 >conftest.err
8621     rm -f conftest.er1
8622     cat conftest.err >&5
8623     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 ayin 1.104 (exit $ac_status); } &&
8625     { ac_try='test -z "$ac_cxx_werror_flag"
8626     || test ! -s conftest.err'
8627     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8628     (eval $ac_try) 2>&5
8629     ac_status=$?
8630     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631     (exit $ac_status); }; } &&
8632     { ac_try='test -s conftest.$ac_objext'
8633     { (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); }; }; then
8638 pcg 1.11 ac_hi=$ac_mid; break
8639     else
8640     echo "$as_me: failed program was:" >&5
8641     sed 's/^/| /' conftest.$ac_ext >&5
8642    
8643 ayin 1.104 ac_lo=`expr $ac_mid + 1`
8644     if test $ac_lo -le $ac_mid; then
8645     ac_lo= ac_hi=
8646     break
8647     fi
8648     ac_mid=`expr 2 '*' $ac_mid + 1`
8649 pcg 1.11 fi
8650 ayin 1.104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8651 pcg 1.11 done
8652     else
8653     echo "$as_me: failed program was:" >&5
8654     sed 's/^/| /' conftest.$ac_ext >&5
8655    
8656 ayin 1.104 cat >conftest.$ac_ext <<_ACEOF
8657 pcg 1.11 /* confdefs.h. */
8658     _ACEOF
8659     cat confdefs.h >>conftest.$ac_ext
8660     cat >>conftest.$ac_ext <<_ACEOF
8661     /* end confdefs.h. */
8662     $ac_includes_default
8663     int
8664     main ()
8665     {
8666 ayin 1.104 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
8667 pcg 1.11 test_array [0] = 0
8668    
8669     ;
8670     return 0;
8671     }
8672     _ACEOF
8673     rm -f conftest.$ac_objext
8674 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8675     (eval $ac_compile) 2>conftest.er1
8676 pcg 1.11 ac_status=$?
8677     grep -v '^ *+' conftest.er1 >conftest.err
8678     rm -f conftest.er1
8679     cat conftest.err >&5
8680     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681 ayin 1.104 (exit $ac_status); } &&
8682     { ac_try='test -z "$ac_cxx_werror_flag"
8683     || test ! -s conftest.err'
8684     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8685     (eval $ac_try) 2>&5
8686     ac_status=$?
8687     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688     (exit $ac_status); }; } &&
8689     { ac_try='test -s conftest.$ac_objext'
8690     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8691     (eval $ac_try) 2>&5
8692     ac_status=$?
8693     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694     (exit $ac_status); }; }; then
8695 pcg 1.11 ac_hi=-1 ac_mid=-1
8696     while :; do
8697     cat >conftest.$ac_ext <<_ACEOF
8698     /* confdefs.h. */
8699     _ACEOF
8700     cat confdefs.h >>conftest.$ac_ext
8701     cat >>conftest.$ac_ext <<_ACEOF
8702     /* end confdefs.h. */
8703     $ac_includes_default
8704     int
8705     main ()
8706     {
8707 ayin 1.104 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
8708 pcg 1.11 test_array [0] = 0
8709    
8710     ;
8711     return 0;
8712     }
8713     _ACEOF
8714     rm -f conftest.$ac_objext
8715 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8716     (eval $ac_compile) 2>conftest.er1
8717 pcg 1.11 ac_status=$?
8718     grep -v '^ *+' conftest.er1 >conftest.err
8719     rm -f conftest.er1
8720     cat conftest.err >&5
8721     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 ayin 1.104 (exit $ac_status); } &&
8723     { ac_try='test -z "$ac_cxx_werror_flag"
8724     || test ! -s conftest.err'
8725     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8726     (eval $ac_try) 2>&5
8727     ac_status=$?
8728     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729     (exit $ac_status); }; } &&
8730     { ac_try='test -s conftest.$ac_objext'
8731     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8732     (eval $ac_try) 2>&5
8733     ac_status=$?
8734     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735     (exit $ac_status); }; }; then
8736 pcg 1.11 ac_lo=$ac_mid; break
8737     else
8738     echo "$as_me: failed program was:" >&5
8739     sed 's/^/| /' conftest.$ac_ext >&5
8740    
8741 ayin 1.104 ac_hi=`expr '(' $ac_mid ')' - 1`
8742     if test $ac_mid -le $ac_hi; then
8743     ac_lo= ac_hi=
8744     break
8745     fi
8746     ac_mid=`expr 2 '*' $ac_mid`
8747 pcg 1.11 fi
8748 ayin 1.104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8749 pcg 1.11 done
8750     else
8751     echo "$as_me: failed program was:" >&5
8752     sed 's/^/| /' conftest.$ac_ext >&5
8753 pcg 1.1
8754 ayin 1.104 ac_lo= ac_hi=
8755 pcg 1.11 fi
8756 ayin 1.104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8757 pcg 1.1 fi
8758 ayin 1.104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8759 pcg 1.11 # Binary search between lo and hi bounds.
8760     while test "x$ac_lo" != "x$ac_hi"; do
8761     ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8762     cat >conftest.$ac_ext <<_ACEOF
8763     /* confdefs.h. */
8764     _ACEOF
8765     cat confdefs.h >>conftest.$ac_ext
8766     cat >>conftest.$ac_ext <<_ACEOF
8767     /* end confdefs.h. */
8768     $ac_includes_default
8769     int
8770     main ()
8771     {
8772 ayin 1.104 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
8773 pcg 1.11 test_array [0] = 0
8774 pcg 1.1
8775 pcg 1.11 ;
8776     return 0;
8777     }
8778     _ACEOF
8779     rm -f conftest.$ac_objext
8780 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8781     (eval $ac_compile) 2>conftest.er1
8782 pcg 1.11 ac_status=$?
8783     grep -v '^ *+' conftest.er1 >conftest.err
8784     rm -f conftest.er1
8785     cat conftest.err >&5
8786     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787 ayin 1.104 (exit $ac_status); } &&
8788     { ac_try='test -z "$ac_cxx_werror_flag"
8789     || test ! -s conftest.err'
8790     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8791     (eval $ac_try) 2>&5
8792     ac_status=$?
8793     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794     (exit $ac_status); }; } &&
8795     { ac_try='test -s conftest.$ac_objext'
8796     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8797     (eval $ac_try) 2>&5
8798     ac_status=$?
8799     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800     (exit $ac_status); }; }; then
8801 pcg 1.11 ac_hi=$ac_mid
8802     else
8803     echo "$as_me: failed program was:" >&5
8804     sed 's/^/| /' conftest.$ac_ext >&5
8805 pcg 1.1
8806 ayin 1.104 ac_lo=`expr '(' $ac_mid ')' + 1`
8807 pcg 1.11 fi
8808 ayin 1.104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8809 pcg 1.11 done
8810     case $ac_lo in
8811     ?*) ac_cv_sizeof_long_long=$ac_lo;;
8812 ayin 1.104 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
8813 pcg 1.11 See \`config.log' for more details." >&5
8814 ayin 1.104 echo "$as_me: error: cannot compute sizeof (long long), 77
8815 pcg 1.11 See \`config.log' for more details." >&2;}
8816 ayin 1.104 { (exit 1); exit 1; }; } ;;
8817 pcg 1.11 esac
8818 pcg 1.1 else
8819 ayin 1.104 if test "$cross_compiling" = yes; then
8820     { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8821     See \`config.log' for more details." >&5
8822     echo "$as_me: error: cannot run test program while cross compiling
8823     See \`config.log' for more details." >&2;}
8824     { (exit 1); exit 1; }; }
8825     else
8826 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
8827     /* confdefs.h. */
8828     _ACEOF
8829     cat confdefs.h >>conftest.$ac_ext
8830     cat >>conftest.$ac_ext <<_ACEOF
8831     /* end confdefs.h. */
8832     $ac_includes_default
8833 ayin 1.104 long longval () { return (long) (sizeof (long long)); }
8834     unsigned long ulongval () { return (long) (sizeof (long long)); }
8835 pcg 1.1 #include <stdio.h>
8836 pcg 1.11 #include <stdlib.h>
8837     int
8838     main ()
8839 pcg 1.1 {
8840 pcg 1.11
8841     FILE *f = fopen ("conftest.val", "w");
8842     if (! f)
8843 ayin 1.104 exit (1);
8844     if (((long) (sizeof (long long))) < 0)
8845 pcg 1.11 {
8846 ayin 1.104 long i = longval ();
8847     if (i != ((long) (sizeof (long long))))
8848     exit (1);
8849 pcg 1.11 fprintf (f, "%ld\n", i);
8850     }
8851     else
8852     {
8853 ayin 1.104 unsigned long i = ulongval ();
8854     if (i != ((long) (sizeof (long long))))
8855     exit (1);
8856 pcg 1.11 fprintf (f, "%lu\n", i);
8857     }
8858 ayin 1.104 exit (ferror (f) || fclose (f) != 0);
8859 pcg 1.11
8860     ;
8861     return 0;
8862 pcg 1.1 }
8863 pcg 1.11 _ACEOF
8864     rm -f conftest$ac_exeext
8865 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8866     (eval $ac_link) 2>&5
8867 pcg 1.11 ac_status=$?
8868     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8870 ayin 1.104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8871     (eval $ac_try) 2>&5
8872 pcg 1.11 ac_status=$?
8873     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874     (exit $ac_status); }; }; then
8875     ac_cv_sizeof_long_long=`cat conftest.val`
8876     else
8877     echo "$as_me: program exited with status $ac_status" >&5
8878     echo "$as_me: failed program was:" >&5
8879     sed 's/^/| /' conftest.$ac_ext >&5
8880    
8881     ( exit $ac_status )
8882 ayin 1.104 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
8883 pcg 1.11 See \`config.log' for more details." >&5
8884 ayin 1.104 echo "$as_me: error: cannot compute sizeof (long long), 77
8885 pcg 1.11 See \`config.log' for more details." >&2;}
8886 ayin 1.104 { (exit 1); exit 1; }; }
8887     fi
8888     rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8889 pcg 1.11 fi
8890     fi
8891     rm -f conftest.val
8892 ayin 1.104 else
8893     ac_cv_sizeof_long_long=0
8894     fi
8895 pcg 1.1 fi
8896 ayin 1.104 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
8897     echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
8898 pcg 1.11 cat >>confdefs.h <<_ACEOF
8899     #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8900     _ACEOF
8901    
8902    
8903 ayin 1.104 echo "$as_me:$LINENO: checking for int *" >&5
8904     echo $ECHO_N "checking for int *... $ECHO_C" >&6
8905 pcg 1.11 if test "${ac_cv_type_int_p+set}" = set; then
8906     echo $ECHO_N "(cached) $ECHO_C" >&6
8907     else
8908     cat >conftest.$ac_ext <<_ACEOF
8909     /* confdefs.h. */
8910     _ACEOF
8911     cat confdefs.h >>conftest.$ac_ext
8912     cat >>conftest.$ac_ext <<_ACEOF
8913     /* end confdefs.h. */
8914     $ac_includes_default
8915     int
8916     main ()
8917     {
8918 ayin 1.104 if ((int * *) 0)
8919 pcg 1.11 return 0;
8920 ayin 1.104 if (sizeof (int *))
8921 pcg 1.11 return 0;
8922     ;
8923     return 0;
8924     }
8925     _ACEOF
8926     rm -f conftest.$ac_objext
8927 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8928     (eval $ac_compile) 2>conftest.er1
8929 pcg 1.11 ac_status=$?
8930     grep -v '^ *+' conftest.er1 >conftest.err
8931     rm -f conftest.er1
8932     cat conftest.err >&5
8933     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934 ayin 1.104 (exit $ac_status); } &&
8935     { ac_try='test -z "$ac_cxx_werror_flag"
8936     || test ! -s conftest.err'
8937     { (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 pcg 1.11 ac_cv_type_int_p=yes
8949     else
8950     echo "$as_me: failed program was:" >&5
8951     sed 's/^/| /' conftest.$ac_ext >&5
8952    
8953 ayin 1.104 ac_cv_type_int_p=no
8954 pcg 1.11 fi
8955 ayin 1.104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8956 pcg 1.11 fi
8957 ayin 1.104 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
8958     echo "${ECHO_T}$ac_cv_type_int_p" >&6
8959 pcg 1.11
8960 ayin 1.104 echo "$as_me:$LINENO: checking size of int *" >&5
8961     echo $ECHO_N "checking size of int *... $ECHO_C" >&6
8962 pcg 1.11 if test "${ac_cv_sizeof_int_p+set}" = set; then
8963     echo $ECHO_N "(cached) $ECHO_C" >&6
8964     else
8965 ayin 1.104 if test "$ac_cv_type_int_p" = 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 pcg 1.11 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 ayin 1.104 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
8983 pcg 1.11 test_array [0] = 0
8984    
8985     ;
8986     return 0;
8987     }
8988     _ACEOF
8989     rm -f conftest.$ac_objext
8990 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8991     (eval $ac_compile) 2>conftest.er1
8992 pcg 1.11 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 ayin 1.104 (exit $ac_status); } &&
8998     { ac_try='test -z "$ac_cxx_werror_flag"
8999     || test ! -s conftest.err'
9000     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9001     (eval $ac_try) 2>&5
9002     ac_status=$?
9003     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004     (exit $ac_status); }; } &&
9005     { ac_try='test -s conftest.$ac_objext'
9006     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9007     (eval $ac_try) 2>&5
9008     ac_status=$?
9009     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010     (exit $ac_status); }; }; then
9011 pcg 1.11 ac_lo=0 ac_mid=0
9012     while :; do
9013     cat >conftest.$ac_ext <<_ACEOF
9014     /* confdefs.h. */
9015     _ACEOF
9016     cat confdefs.h >>conftest.$ac_ext
9017     cat >>conftest.$ac_ext <<_ACEOF
9018     /* end confdefs.h. */
9019     $ac_includes_default
9020     int
9021     main ()
9022     {
9023 ayin 1.104 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
9024 pcg 1.11 test_array [0] = 0
9025    
9026     ;
9027     return 0;
9028     }
9029     _ACEOF
9030     rm -f conftest.$ac_objext
9031 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9032     (eval $ac_compile) 2>conftest.er1
9033 pcg 1.11 ac_status=$?
9034     grep -v '^ *+' conftest.er1 >conftest.err
9035     rm -f conftest.er1
9036     cat conftest.err >&5
9037     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 ayin 1.104 (exit $ac_status); } &&
9039     { ac_try='test -z "$ac_cxx_werror_flag"
9040     || test ! -s conftest.err'
9041     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9042     (eval $ac_try) 2>&5
9043     ac_status=$?
9044     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045     (exit $ac_status); }; } &&
9046     { ac_try='test -s conftest.$ac_objext'
9047     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9048     (eval $ac_try) 2>&5
9049     ac_status=$?
9050     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051     (exit $ac_status); }; }; then
9052 pcg 1.11 ac_hi=$ac_mid; break
9053     else
9054     echo "$as_me: failed program was:" >&5
9055     sed 's/^/| /' conftest.$ac_ext >&5
9056    
9057 ayin 1.104 ac_lo=`expr $ac_mid + 1`
9058     if test $ac_lo -le $ac_mid; then
9059     ac_lo= ac_hi=
9060     break
9061     fi
9062     ac_mid=`expr 2 '*' $ac_mid + 1`
9063 pcg 1.11 fi
9064 ayin 1.104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9065 pcg 1.11 done
9066     else
9067     echo "$as_me: failed program was:" >&5
9068     sed 's/^/| /' conftest.$ac_ext >&5
9069    
9070 ayin 1.104 cat >conftest.$ac_ext <<_ACEOF
9071 pcg 1.11 /* confdefs.h. */
9072     _ACEOF
9073     cat confdefs.h >>conftest.$ac_ext
9074     cat >>conftest.$ac_ext <<_ACEOF
9075     /* end confdefs.h. */
9076     $ac_includes_default
9077     int
9078     main ()
9079     {
9080 ayin 1.104 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
9081 pcg 1.11 test_array [0] = 0
9082    
9083     ;
9084     return 0;
9085     }
9086     _ACEOF
9087     rm -f conftest.$ac_objext
9088 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9089     (eval $ac_compile) 2>conftest.er1
9090 pcg 1.11 ac_status=$?
9091     grep -v '^ *+' conftest.er1 >conftest.err
9092     rm -f conftest.er1
9093     cat conftest.err >&5
9094     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 ayin 1.104 (exit $ac_status); } &&
9096     { ac_try='test -z "$ac_cxx_werror_flag"
9097     || test ! -s conftest.err'
9098     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9099     (eval $ac_try) 2>&5
9100     ac_status=$?
9101     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102     (exit $ac_status); }; } &&
9103     { ac_try='test -s conftest.$ac_objext'
9104     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9105     (eval $ac_try) 2>&5
9106     ac_status=$?
9107     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108     (exit $ac_status); }; }; then
9109 pcg 1.11 ac_hi=-1 ac_mid=-1
9110     while :; do
9111     cat >conftest.$ac_ext <<_ACEOF
9112     /* confdefs.h. */
9113     _ACEOF
9114     cat confdefs.h >>conftest.$ac_ext
9115     cat >>conftest.$ac_ext <<_ACEOF
9116     /* end confdefs.h. */
9117     $ac_includes_default
9118     int
9119     main ()
9120     {
9121 ayin 1.104 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
9122 pcg 1.11 test_array [0] = 0
9123    
9124     ;
9125     return 0;
9126     }
9127     _ACEOF
9128     rm -f conftest.$ac_objext
9129 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9130     (eval $ac_compile) 2>conftest.er1
9131 pcg 1.11 ac_status=$?
9132     grep -v '^ *+' conftest.er1 >conftest.err
9133     rm -f conftest.er1
9134     cat conftest.err >&5
9135     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 ayin 1.104 (exit $ac_status); } &&
9137     { ac_try='test -z "$ac_cxx_werror_flag"
9138     || test ! -s conftest.err'
9139     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9140     (eval $ac_try) 2>&5
9141     ac_status=$?
9142     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143     (exit $ac_status); }; } &&
9144     { ac_try='test -s conftest.$ac_objext'
9145     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9146     (eval $ac_try) 2>&5
9147     ac_status=$?
9148     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149     (exit $ac_status); }; }; then
9150 pcg 1.11 ac_lo=$ac_mid; break
9151     else
9152     echo "$as_me: failed program was:" >&5
9153     sed 's/^/| /' conftest.$ac_ext >&5
9154    
9155 ayin 1.104 ac_hi=`expr '(' $ac_mid ')' - 1`
9156     if test $ac_mid -le $ac_hi; then
9157     ac_lo= ac_hi=
9158     break
9159     fi
9160     ac_mid=`expr 2 '*' $ac_mid`
9161 pcg 1.11 fi
9162 ayin 1.104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9163 pcg 1.11 done
9164     else
9165     echo "$as_me: failed program was:" >&5
9166     sed 's/^/| /' conftest.$ac_ext >&5
9167    
9168 ayin 1.104 ac_lo= ac_hi=
9169 pcg 1.11 fi
9170 ayin 1.104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9171 pcg 1.11 fi
9172 ayin 1.104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9173 pcg 1.11 # Binary search between lo and hi bounds.
9174     while test "x$ac_lo" != "x$ac_hi"; do
9175     ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9176     cat >conftest.$ac_ext <<_ACEOF
9177     /* confdefs.h. */
9178     _ACEOF
9179     cat confdefs.h >>conftest.$ac_ext
9180     cat >>conftest.$ac_ext <<_ACEOF
9181     /* end confdefs.h. */
9182     $ac_includes_default
9183     int
9184     main ()
9185     {
9186 ayin 1.104 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
9187 pcg 1.11 test_array [0] = 0
9188    
9189     ;
9190     return 0;
9191     }
9192     _ACEOF
9193     rm -f conftest.$ac_objext
9194 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9195     (eval $ac_compile) 2>conftest.er1
9196 pcg 1.11 ac_status=$?
9197     grep -v '^ *+' conftest.er1 >conftest.err
9198     rm -f conftest.er1
9199     cat conftest.err >&5
9200     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201 ayin 1.104 (exit $ac_status); } &&
9202     { ac_try='test -z "$ac_cxx_werror_flag"
9203     || test ! -s conftest.err'
9204     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9205     (eval $ac_try) 2>&5
9206     ac_status=$?
9207     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208     (exit $ac_status); }; } &&
9209     { ac_try='test -s conftest.$ac_objext'
9210     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9211     (eval $ac_try) 2>&5
9212     ac_status=$?
9213     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214     (exit $ac_status); }; }; then
9215 pcg 1.11 ac_hi=$ac_mid
9216     else
9217     echo "$as_me: failed program was:" >&5
9218     sed 's/^/| /' conftest.$ac_ext >&5
9219 pcg 1.1
9220 ayin 1.104 ac_lo=`expr '(' $ac_mid ')' + 1`
9221 pcg 1.1 fi
9222 ayin 1.104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9223 pcg 1.11 done
9224     case $ac_lo in
9225     ?*) ac_cv_sizeof_int_p=$ac_lo;;
9226 ayin 1.104 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
9227 pcg 1.11 See \`config.log' for more details." >&5
9228 ayin 1.104 echo "$as_me: error: cannot compute sizeof (int *), 77
9229 pcg 1.11 See \`config.log' for more details." >&2;}
9230 ayin 1.104 { (exit 1); exit 1; }; } ;;
9231 pcg 1.11 esac
9232 pcg 1.1 else
9233 ayin 1.104 if test "$cross_compiling" = yes; then
9234     { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9235     See \`config.log' for more details." >&5
9236     echo "$as_me: error: cannot run test program while cross compiling
9237     See \`config.log' for more details." >&2;}
9238     { (exit 1); exit 1; }; }
9239     else
9240 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
9241     /* confdefs.h. */
9242     _ACEOF
9243     cat confdefs.h >>conftest.$ac_ext
9244     cat >>conftest.$ac_ext <<_ACEOF
9245     /* end confdefs.h. */
9246     $ac_includes_default
9247 ayin 1.104 long longval () { return (long) (sizeof (int *)); }
9248     unsigned long ulongval () { return (long) (sizeof (int *)); }
9249 pcg 1.1 #include <stdio.h>
9250 pcg 1.11 #include <stdlib.h>
9251     int
9252     main ()
9253 pcg 1.1 {
9254 pcg 1.11
9255     FILE *f = fopen ("conftest.val", "w");
9256     if (! f)
9257 ayin 1.104 exit (1);
9258     if (((long) (sizeof (int *))) < 0)
9259 pcg 1.11 {
9260 ayin 1.104 long i = longval ();
9261     if (i != ((long) (sizeof (int *))))
9262     exit (1);
9263 pcg 1.11 fprintf (f, "%ld\n", i);
9264     }
9265     else
9266     {
9267 ayin 1.104 unsigned long i = ulongval ();
9268     if (i != ((long) (sizeof (int *))))
9269     exit (1);
9270 pcg 1.11 fprintf (f, "%lu\n", i);
9271     }
9272 ayin 1.104 exit (ferror (f) || fclose (f) != 0);
9273 pcg 1.11
9274     ;
9275     return 0;
9276 pcg 1.1 }
9277 pcg 1.11 _ACEOF
9278     rm -f conftest$ac_exeext
9279 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9280     (eval $ac_link) 2>&5
9281 pcg 1.11 ac_status=$?
9282     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9284 ayin 1.104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9285     (eval $ac_try) 2>&5
9286 pcg 1.11 ac_status=$?
9287     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288     (exit $ac_status); }; }; then
9289     ac_cv_sizeof_int_p=`cat conftest.val`
9290     else
9291     echo "$as_me: program exited with status $ac_status" >&5
9292     echo "$as_me: failed program was:" >&5
9293     sed 's/^/| /' conftest.$ac_ext >&5
9294    
9295     ( exit $ac_status )
9296 ayin 1.104 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
9297 pcg 1.11 See \`config.log' for more details." >&5
9298 ayin 1.104 echo "$as_me: error: cannot compute sizeof (int *), 77
9299 pcg 1.11 See \`config.log' for more details." >&2;}
9300 ayin 1.104 { (exit 1); exit 1; }; }
9301     fi
9302     rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9303 pcg 1.11 fi
9304     fi
9305     rm -f conftest.val
9306 ayin 1.104 else
9307     ac_cv_sizeof_int_p=0
9308     fi
9309 pcg 1.1 fi
9310 ayin 1.104 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
9311     echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
9312 pcg 1.11 cat >>confdefs.h <<_ACEOF
9313 pcg 1.1 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
9314 pcg 1.11 _ACEOF
9315 pcg 1.1
9316    
9317    
9318    
9319 ayin 1.104 echo "$as_me:$LINENO: checking for int16_t" >&5
9320     echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
9321 pcg 1.11 if test "${rxvt_cv_int16_t+set}" = set; then
9322     echo $ECHO_N "(cached) $ECHO_C" >&6
9323 pcg 1.1 else
9324 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
9325     /* confdefs.h. */
9326     _ACEOF
9327     cat confdefs.h >>conftest.$ac_ext
9328     cat >>conftest.$ac_ext <<_ACEOF
9329     /* end confdefs.h. */
9330 pcg 1.1 #include <stdint.h>
9331 pcg 1.11 int
9332     main ()
9333     {
9334 pcg 1.1 int16_t dummy;
9335 pcg 1.11 ;
9336     return 0;
9337     }
9338     _ACEOF
9339     rm -f conftest.$ac_objext
9340 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9341     (eval $ac_compile) 2>conftest.er1
9342 pcg 1.11 ac_status=$?
9343     grep -v '^ *+' conftest.er1 >conftest.err
9344     rm -f conftest.er1
9345     cat conftest.err >&5
9346     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 ayin 1.104 (exit $ac_status); } &&
9348     { ac_try='test -z "$ac_cxx_werror_flag"
9349     || test ! -s conftest.err'
9350     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9351     (eval $ac_try) 2>&5
9352     ac_status=$?
9353     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354     (exit $ac_status); }; } &&
9355     { ac_try='test -s conftest.$ac_objext'
9356     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9357     (eval $ac_try) 2>&5
9358     ac_status=$?
9359     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360     (exit $ac_status); }; }; then
9361 pcg 1.1 rxvt_cv_int16_t=yes
9362     else
9363 pcg 1.11 echo "$as_me: failed program was:" >&5
9364     sed 's/^/| /' conftest.$ac_ext >&5
9365    
9366 ayin 1.104 if test "$ac_cv_sizeof_char" -ge 2; then
9367 pcg 1.1 rxvt_cv_int16_t=" char"
9368     else
9369 root 1.50 if test "$ac_cv_sizeof_short" -ge 2; then
9370 pcg 1.1 rxvt_cv_int16_t=" short"
9371     else
9372 root 1.50 if test "$ac_cv_sizeof_int" -ge 2; then
9373 pcg 1.1 rxvt_cv_int16_t=" int"
9374     else
9375 root 1.50 if test "$ac_cv_sizeof_long" -ge 2; then
9376 pcg 1.1 rxvt_cv_int16_t=" long"
9377     else
9378 root 1.50 if test "$ac_cv_sizeof_long_long" -ge 2; then
9379 pcg 1.1 rxvt_cv_int16_t=" long long"
9380     else
9381     rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
9382     fi
9383     fi
9384     fi
9385     fi
9386     fi
9387     fi
9388 ayin 1.104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9389 pcg 1.1 fi
9390 ayin 1.104 echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5
9391     echo "${ECHO_T}$rxvt_cv_int16_t" >&6
9392 pcg 1.1 if test x"$rxvt_cv_int16_t" != xyes; then
9393     rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;"
9394     else
9395     if test x"" = x; then
9396     rxvt_int16_typedef="/* typedef short int16_t; */"
9397     else
9398     rxvt_int16_typedef="/* typedef short int16_t; */"
9399     fi
9400 pcg 1.11 fi
9401 pcg 1.1
9402 ayin 1.104 echo "$as_me:$LINENO: checking for uint16_t" >&5
9403     echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
9404 pcg 1.11 if test "${rxvt_cv_uint16_t+set}" = set; then
9405     echo $ECHO_N "(cached) $ECHO_C" >&6
9406     else
9407     cat >conftest.$ac_ext <<_ACEOF
9408     /* confdefs.h. */
9409     _ACEOF
9410     cat confdefs.h >>conftest.$ac_ext
9411     cat >>conftest.$ac_ext <<_ACEOF
9412     /* end confdefs.h. */
9413 pcg 1.1 #include <stdint.h>
9414 pcg 1.11 int
9415     main ()
9416     {
9417 pcg 1.1 uint16_t dummy;
9418 pcg 1.11 ;
9419     return 0;
9420     }
9421     _ACEOF
9422     rm -f conftest.$ac_objext
9423 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9424     (eval $ac_compile) 2>conftest.er1
9425 pcg 1.11 ac_status=$?
9426     grep -v '^ *+' conftest.er1 >conftest.err
9427     rm -f conftest.er1
9428     cat conftest.err >&5
9429     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430 ayin 1.104 (exit $ac_status); } &&
9431     { ac_try='test -z "$ac_cxx_werror_flag"
9432     || test ! -s conftest.err'
9433     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9434     (eval $ac_try) 2>&5
9435     ac_status=$?
9436     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437     (exit $ac_status); }; } &&
9438     { ac_try='test -s conftest.$ac_objext'
9439     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9440     (eval $ac_try) 2>&5
9441     ac_status=$?
9442     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443     (exit $ac_status); }; }; then
9444 pcg 1.1 rxvt_cv_uint16_t=yes
9445     else
9446 pcg 1.11 echo "$as_me: failed program was:" >&5
9447     sed 's/^/| /' conftest.$ac_ext >&5
9448    
9449 ayin 1.104 if test "$ac_cv_sizeof_char" -ge 2; then
9450 pcg 1.1 rxvt_cv_uint16_t="unsigned char"
9451     else
9452 root 1.50 if test "$ac_cv_sizeof_short" -ge 2; then
9453 pcg 1.1 rxvt_cv_uint16_t="unsigned short"
9454     else
9455 root 1.50 if test "$ac_cv_sizeof_int" -ge 2; then
9456 pcg 1.1 rxvt_cv_uint16_t="unsigned int"
9457     else
9458 root 1.50 if test "$ac_cv_sizeof_long" -ge 2; then
9459 pcg 1.1 rxvt_cv_uint16_t="unsigned long"
9460     else
9461 root 1.50 if test "$ac_cv_sizeof_long_long" -ge 2; then
9462 pcg 1.1 rxvt_cv_uint16_t="unsigned long long"
9463     else
9464     rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default
9465     fi
9466     fi
9467     fi
9468     fi
9469     fi
9470     fi
9471 ayin 1.104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9472 pcg 1.1 fi
9473 ayin 1.104 echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5
9474     echo "${ECHO_T}$rxvt_cv_uint16_t" >&6
9475 pcg 1.1 if test x"$rxvt_cv_uint16_t" != xyes; then
9476     rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;"
9477     else
9478     if test x"unsigned" = x; then
9479     rxvt_uint16_typedef="/* typedef short uint16_t; */"
9480     else
9481     rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */"
9482     fi
9483 pcg 1.11 fi
9484 pcg 1.1
9485 ayin 1.104 echo "$as_me:$LINENO: checking for int32_t" >&5
9486     echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
9487 pcg 1.11 if test "${rxvt_cv_int32_t+set}" = set; then
9488     echo $ECHO_N "(cached) $ECHO_C" >&6
9489     else
9490     cat >conftest.$ac_ext <<_ACEOF
9491     /* confdefs.h. */
9492     _ACEOF
9493     cat confdefs.h >>conftest.$ac_ext
9494     cat >>conftest.$ac_ext <<_ACEOF
9495     /* end confdefs.h. */
9496 pcg 1.1 #include <stdint.h>
9497 pcg 1.11 int
9498     main ()
9499     {
9500 pcg 1.1 int32_t dummy;
9501 pcg 1.11 ;
9502     return 0;
9503     }
9504     _ACEOF
9505     rm -f conftest.$ac_objext
9506 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9507     (eval $ac_compile) 2>conftest.er1
9508 pcg 1.11 ac_status=$?
9509     grep -v '^ *+' conftest.er1 >conftest.err
9510     rm -f conftest.er1
9511     cat conftest.err >&5
9512     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513 ayin 1.104 (exit $ac_status); } &&
9514     { ac_try='test -z "$ac_cxx_werror_flag"
9515     || test ! -s conftest.err'
9516     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9517     (eval $ac_try) 2>&5
9518     ac_status=$?
9519     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520     (exit $ac_status); }; } &&
9521     { ac_try='test -s conftest.$ac_objext'
9522     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9523     (eval $ac_try) 2>&5
9524     ac_status=$?
9525     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526     (exit $ac_status); }; }; then
9527 pcg 1.1 rxvt_cv_int32_t=yes
9528     else
9529 pcg 1.11 echo "$as_me: failed program was:" >&5
9530     sed 's/^/| /' conftest.$ac_ext >&5
9531    
9532 ayin 1.104 if test "$ac_cv_sizeof_char" -ge 4; then
9533 pcg 1.1 rxvt_cv_int32_t=" char"
9534     else
9535 root 1.50 if test "$ac_cv_sizeof_short" -ge 4; then
9536 pcg 1.1 rxvt_cv_int32_t=" short"
9537     else
9538 root 1.50 if test "$ac_cv_sizeof_int" -ge 4; then
9539 pcg 1.1 rxvt_cv_int32_t=" int"
9540     else
9541 root 1.50 if test "$ac_cv_sizeof_long" -ge 4; then
9542 pcg 1.1 rxvt_cv_int32_t=" long"
9543     else
9544 root 1.50 if test "$ac_cv_sizeof_long_long" -ge 4; then
9545 pcg 1.1 rxvt_cv_int32_t=" long long"
9546     else
9547     rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
9548     fi
9549     fi
9550     fi
9551     fi
9552     fi
9553     fi
9554 ayin 1.104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9555 pcg 1.1 fi
9556 ayin 1.104 echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5
9557     echo "${ECHO_T}$rxvt_cv_int32_t" >&6
9558 pcg 1.1 if test x"$rxvt_cv_int32_t" != xyes; then
9559     rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;"
9560     else
9561     if test x"" = x; then
9562     rxvt_int32_typedef="/* typedef int int32_t; */"
9563     else
9564     rxvt_int32_typedef="/* typedef int int32_t; */"
9565     fi
9566 pcg 1.11 fi
9567 pcg 1.1
9568 ayin 1.104 echo "$as_me:$LINENO: checking for uint32_t" >&5
9569     echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
9570 pcg 1.11 if test "${rxvt_cv_uint32_t+set}" = set; then
9571     echo $ECHO_N "(cached) $ECHO_C" >&6
9572     else
9573     cat >conftest.$ac_ext <<_ACEOF
9574     /* confdefs.h. */
9575     _ACEOF
9576     cat confdefs.h >>conftest.$ac_ext
9577     cat >>conftest.$ac_ext <<_ACEOF
9578     /* end confdefs.h. */
9579 pcg 1.1 #include <stdint.h>
9580 pcg 1.11 int
9581     main ()
9582     {
9583 pcg 1.1 uint32_t dummy;
9584 pcg 1.11 ;
9585     return 0;
9586     }
9587     _ACEOF
9588     rm -f conftest.$ac_objext
9589 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9590     (eval $ac_compile) 2>conftest.er1
9591 pcg 1.11 ac_status=$?
9592     grep -v '^ *+' conftest.er1 >conftest.err
9593     rm -f conftest.er1
9594     cat conftest.err >&5
9595     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596 ayin 1.104 (exit $ac_status); } &&
9597     { ac_try='test -z "$ac_cxx_werror_flag"
9598     || test ! -s conftest.err'
9599     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9600     (eval $ac_try) 2>&5
9601     ac_status=$?
9602     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603     (exit $ac_status); }; } &&
9604     { ac_try='test -s conftest.$ac_objext'
9605     { (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); }; }; then
9610 pcg 1.1 rxvt_cv_uint32_t=yes
9611     else
9612 pcg 1.11 echo "$as_me: failed program was:" >&5
9613     sed 's/^/| /' conftest.$ac_ext >&5
9614    
9615 ayin 1.104 if test "$ac_cv_sizeof_char" -ge 4; then
9616 pcg 1.1 rxvt_cv_uint32_t="unsigned char"
9617     else
9618 root 1.50 if test "$ac_cv_sizeof_short" -ge 4; then
9619 pcg 1.1 rxvt_cv_uint32_t="unsigned short"
9620     else
9621 root 1.50 if test "$ac_cv_sizeof_int" -ge 4; then
9622 pcg 1.1 rxvt_cv_uint32_t="unsigned int"
9623     else
9624 root 1.50 if test "$ac_cv_sizeof_long" -ge 4; then
9625 pcg 1.1 rxvt_cv_uint32_t="unsigned long"
9626     else
9627 root 1.50 if test "$ac_cv_sizeof_long_long" -ge 4; then
9628 pcg 1.1 rxvt_cv_uint32_t="unsigned long long"
9629     else
9630     rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default
9631     fi
9632     fi
9633     fi
9634     fi
9635     fi
9636     fi
9637 ayin 1.104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9638 pcg 1.1 fi
9639 ayin 1.104 echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5
9640     echo "${ECHO_T}$rxvt_cv_uint32_t" >&6
9641 pcg 1.1 if test x"$rxvt_cv_uint32_t" != xyes; then
9642     rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;"
9643     else
9644     if test x"unsigned" = x; then
9645     rxvt_uint32_typedef="/* typedef int uint32_t; */"
9646     else
9647     rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
9648     fi
9649 pcg 1.11 fi
9650 pcg 1.1
9651 root 1.50 if test "$ac_cv_sizeof_int_p" -eq 8; then
9652 pcg 1.1 rxvt_intp_define="#define intp_t int64_t"
9653     rxvt_u_intp_define="#define u_intp_t u_int64_t"
9654     else
9655 root 1.50 if test "$ac_cv_sizeof_int_p" -eq 4; then
9656 pcg 1.1 rxvt_intp_define="#define intp_t int32_t"
9657     rxvt_u_intp_define="#define u_intp_t u_int32_t"
9658     else
9659 root 1.50 if test "$ac_cv_sizeof_int_p" -eq 2; then
9660 pcg 1.1 rxvt_intp_define="#define intp_t int16_t"
9661     rxvt_u_intp_define="#define u_intp_t u_int16_t"
9662     else
9663     rxvt_intp_define="#error set intp_t"
9664     rxvt_u_intp_define="#error set u_intp_t"
9665     fi
9666     fi
9667     fi
9668    
9669    
9670    
9671 ayin 1.104 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
9672     echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
9673 pcg 1.11 if test "${ac_cv_type_signal+set}" = set; then
9674     echo $ECHO_N "(cached) $ECHO_C" >&6
9675     else
9676     cat >conftest.$ac_ext <<_ACEOF
9677     /* confdefs.h. */
9678     _ACEOF
9679     cat confdefs.h >>conftest.$ac_ext
9680     cat >>conftest.$ac_ext <<_ACEOF
9681     /* end confdefs.h. */
9682 pcg 1.1 #include <sys/types.h>
9683     #include <signal.h>
9684 ayin 1.104 #ifdef signal
9685     # undef signal
9686     #endif
9687     #ifdef __cplusplus
9688     extern "C" void (*signal (int, void (*)(int)))(int);
9689     #else
9690     void (*signal ()) ();
9691     #endif
9692 pcg 1.1
9693 pcg 1.11 int
9694     main ()
9695     {
9696 ayin 1.104 int i;
9697 pcg 1.11 ;
9698     return 0;
9699     }
9700     _ACEOF
9701     rm -f conftest.$ac_objext
9702 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9703     (eval $ac_compile) 2>conftest.er1
9704 pcg 1.11 ac_status=$?
9705     grep -v '^ *+' conftest.er1 >conftest.err
9706     rm -f conftest.er1
9707     cat conftest.err >&5
9708     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709 ayin 1.104 (exit $ac_status); } &&
9710     { ac_try='test -z "$ac_cxx_werror_flag"
9711     || test ! -s conftest.err'
9712     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9713     (eval $ac_try) 2>&5
9714     ac_status=$?
9715     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716     (exit $ac_status); }; } &&
9717     { ac_try='test -s conftest.$ac_objext'
9718     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9719     (eval $ac_try) 2>&5
9720     ac_status=$?
9721     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722     (exit $ac_status); }; }; then
9723     ac_cv_type_signal=void
9724 pcg 1.1 else
9725 pcg 1.11 echo "$as_me: failed program was:" >&5
9726     sed 's/^/| /' conftest.$ac_ext >&5
9727    
9728 ayin 1.104 ac_cv_type_signal=int
9729 pcg 1.1 fi
9730 ayin 1.104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9731 pcg 1.1 fi
9732 ayin 1.104 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9733     echo "${ECHO_T}$ac_cv_type_signal" >&6
9734 pcg 1.1
9735 pcg 1.11 cat >>confdefs.h <<_ACEOF
9736 pcg 1.1 #define RETSIGTYPE $ac_cv_type_signal
9737 pcg 1.11 _ACEOF
9738 pcg 1.1
9739    
9740    
9741 root 1.76
9742 pcg 1.11
9743    
9744 root 1.83 for ac_func in \
9745     unsetenv \
9746     setutent \
9747     on_exit \
9748    
9749     do
9750     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9751 ayin 1.104 echo "$as_me:$LINENO: checking for $ac_func" >&5
9752     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9753     if eval "test \"\${$as_ac_var+set}\" = set"; then
9754 root 1.83 echo $ECHO_N "(cached) $ECHO_C" >&6
9755     else
9756     cat >conftest.$ac_ext <<_ACEOF
9757     /* confdefs.h. */
9758     _ACEOF
9759     cat confdefs.h >>conftest.$ac_ext
9760     cat >>conftest.$ac_ext <<_ACEOF
9761     /* end confdefs.h. */
9762     /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9763     For example, HP-UX 11i <limits.h> declares gettimeofday. */
9764     #define $ac_func innocuous_$ac_func
9765    
9766     /* System header to define __stub macros and hopefully few prototypes,
9767     which can conflict with char $ac_func (); below.
9768     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9769     <limits.h> exists even on freestanding compilers. */
9770    
9771     #ifdef __STDC__
9772     # include <limits.h>
9773     #else
9774     # include <assert.h>
9775     #endif
9776    
9777     #undef $ac_func
9778 pcg 1.11
9779 ayin 1.104 /* Override any gcc2 internal prototype to avoid an error. */
9780 root 1.83 #ifdef __cplusplus
9781     extern "C"
9782 ayin 1.104 {
9783 root 1.83 #endif
9784 ayin 1.104 /* We use char because int might match the return type of a gcc2
9785     builtin and then its argument prototype would still apply. */
9786 root 1.83 char $ac_func ();
9787     /* The GNU C library defines this for functions which it implements
9788     to always fail with ENOSYS. Some functions are actually named
9789     something starting with __ and the normal name is an alias. */
9790 ayin 1.104 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9791 root 1.83 choke me
9792 ayin 1.104 #else
9793     char (*f) () = $ac_func;
9794     #endif
9795     #ifdef __cplusplus
9796     }
9797 root 1.83 #endif
9798 pcg 1.11
9799 root 1.83 int
9800     main ()
9801     {
9802 ayin 1.104 return f != $ac_func;
9803 root 1.83 ;
9804     return 0;
9805     }
9806     _ACEOF
9807     rm -f conftest.$ac_objext conftest$ac_exeext
9808 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9809     (eval $ac_link) 2>conftest.er1
9810 root 1.83 ac_status=$?
9811     grep -v '^ *+' conftest.er1 >conftest.err
9812     rm -f conftest.er1
9813     cat conftest.err >&5
9814     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 ayin 1.104 (exit $ac_status); } &&
9816     { ac_try='test -z "$ac_cxx_werror_flag"
9817     || test ! -s conftest.err'
9818     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9819     (eval $ac_try) 2>&5
9820     ac_status=$?
9821     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822     (exit $ac_status); }; } &&
9823     { ac_try='test -s conftest$ac_exeext'
9824     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9825     (eval $ac_try) 2>&5
9826     ac_status=$?
9827     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828     (exit $ac_status); }; }; then
9829 root 1.83 eval "$as_ac_var=yes"
9830     else
9831     echo "$as_me: failed program was:" >&5
9832     sed 's/^/| /' conftest.$ac_ext >&5
9833 pcg 1.11
9834 ayin 1.104 eval "$as_ac_var=no"
9835 root 1.83 fi
9836 ayin 1.104 rm -f conftest.err conftest.$ac_objext \
9837 root 1.83 conftest$ac_exeext conftest.$ac_ext
9838     fi
9839 ayin 1.104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9840     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9841 root 1.83 if test `eval echo '${'$as_ac_var'}'` = yes; then
9842     cat >>confdefs.h <<_ACEOF
9843     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9844     _ACEOF
9845 pcg 1.11
9846 root 1.83 fi
9847     done
9848 pcg 1.11
9849    
9850    
9851 root 1.92 support_utmp=yes
9852     support_wtmp=yes
9853     support_lastlog=yes
9854    
9855 ayin 1.104 # Check whether --enable-utmp or --disable-utmp was given.
9856 root 1.92 if test "${enable_utmp+set}" = set; then
9857 ayin 1.104 enableval="$enable_utmp"
9858     if test x$enableval = xyes -o x$enableval = xno; then
9859 root 1.92 support_utmp=$enableval
9860     fi
9861 ayin 1.104 fi;
9862 ayin 1.102
9863 ayin 1.104 # Check whether --enable-wtmp or --disable-wtmp was given.
9864 root 1.92 if test "${enable_wtmp+set}" = set; then
9865 ayin 1.104 enableval="$enable_wtmp"
9866     if test x$enableval = xyes -o x$enableval = xno; then
9867 root 1.92 support_wtmp=$enableval
9868     fi
9869 ayin 1.104 fi;
9870 ayin 1.102
9871 ayin 1.104 # Check whether --enable-lastlog or --disable-lastlog was given.
9872 root 1.92 if test "${enable_lastlog+set}" = set; then
9873 ayin 1.104 enableval="$enable_lastlog"
9874     if test x$enableval = xyes -o x$enableval = xno; then
9875 root 1.92 support_lastlog=$enableval
9876     fi
9877 ayin 1.104 fi;
9878 root 1.92
9879     if test x$support_utmp = xyes; then
9880    
9881     cat >>confdefs.h <<\_ACEOF
9882     #define UTMP_SUPPORT 1
9883     _ACEOF
9884    
9885     fi
9886     if test x$support_wtmp = xyes; then
9887    
9888     cat >>confdefs.h <<\_ACEOF
9889     #define WTMP_SUPPORT 1
9890     _ACEOF
9891    
9892     fi
9893     if test x$support_lastlog = xyes; then
9894    
9895     cat >>confdefs.h <<\_ACEOF
9896     #define LASTLOG_SUPPORT 1
9897     _ACEOF
9898    
9899     fi
9900    
9901 pcg 1.11
9902 root 1.88
9903    
9904     for ac_func in \
9905     ttyslot \
9906     updwtmp \
9907     updwtmpx \
9908    
9909     do
9910     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9911 ayin 1.104 echo "$as_me:$LINENO: checking for $ac_func" >&5
9912     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9913     if eval "test \"\${$as_ac_var+set}\" = set"; then
9914 root 1.88 echo $ECHO_N "(cached) $ECHO_C" >&6
9915     else
9916     cat >conftest.$ac_ext <<_ACEOF
9917     /* confdefs.h. */
9918     _ACEOF
9919     cat confdefs.h >>conftest.$ac_ext
9920     cat >>conftest.$ac_ext <<_ACEOF
9921     /* end confdefs.h. */
9922     /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9923     For example, HP-UX 11i <limits.h> declares gettimeofday. */
9924     #define $ac_func innocuous_$ac_func
9925    
9926     /* System header to define __stub macros and hopefully few prototypes,
9927     which can conflict with char $ac_func (); below.
9928     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9929     <limits.h> exists even on freestanding compilers. */
9930    
9931     #ifdef __STDC__
9932     # include <limits.h>
9933     #else
9934     # include <assert.h>
9935     #endif
9936    
9937     #undef $ac_func
9938    
9939 ayin 1.104 /* Override any gcc2 internal prototype to avoid an error. */
9940 root 1.88 #ifdef __cplusplus
9941     extern "C"
9942 ayin 1.104 {
9943 root 1.88 #endif
9944 ayin 1.104 /* We use char because int might match the return type of a gcc2
9945     builtin and then its argument prototype would still apply. */
9946 root 1.88 char $ac_func ();
9947     /* The GNU C library defines this for functions which it implements
9948     to always fail with ENOSYS. Some functions are actually named
9949     something starting with __ and the normal name is an alias. */
9950 ayin 1.104 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9951 root 1.88 choke me
9952 ayin 1.104 #else
9953     char (*f) () = $ac_func;
9954     #endif
9955     #ifdef __cplusplus
9956     }
9957 root 1.88 #endif
9958    
9959     int
9960     main ()
9961     {
9962 ayin 1.104 return f != $ac_func;
9963 root 1.88 ;
9964     return 0;
9965     }
9966     _ACEOF
9967     rm -f conftest.$ac_objext conftest$ac_exeext
9968 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9969     (eval $ac_link) 2>conftest.er1
9970 root 1.88 ac_status=$?
9971     grep -v '^ *+' conftest.er1 >conftest.err
9972     rm -f conftest.er1
9973     cat conftest.err >&5
9974     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 ayin 1.104 (exit $ac_status); } &&
9976     { ac_try='test -z "$ac_cxx_werror_flag"
9977     || test ! -s conftest.err'
9978     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9979     (eval $ac_try) 2>&5
9980     ac_status=$?
9981     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982     (exit $ac_status); }; } &&
9983     { ac_try='test -s conftest$ac_exeext'
9984     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9985     (eval $ac_try) 2>&5
9986     ac_status=$?
9987     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988     (exit $ac_status); }; }; then
9989 root 1.88 eval "$as_ac_var=yes"
9990     else
9991     echo "$as_me: failed program was:" >&5
9992     sed 's/^/| /' conftest.$ac_ext >&5
9993    
9994 ayin 1.104 eval "$as_ac_var=no"
9995 root 1.88 fi
9996 ayin 1.104 rm -f conftest.err conftest.$ac_objext \
9997 root 1.88 conftest$ac_exeext conftest.$ac_ext
9998     fi
9999 ayin 1.104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10000     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10001 root 1.88 if test `eval echo '${'$as_ac_var'}'` = yes; then
10002     cat >>confdefs.h <<_ACEOF
10003     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10004     _ACEOF
10005    
10006     fi
10007     done
10008    
10009    
10010    
10011    
10012    
10013     for ac_header in \
10014     utmp.h \
10015     utmpx.h \
10016     lastlog.h \
10017    
10018     do
10019     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10020 ayin 1.104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10021     echo "$as_me:$LINENO: checking for $ac_header" >&5
10022     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10023     if eval "test \"\${$as_ac_Header+set}\" = set"; then
10024 root 1.88 echo $ECHO_N "(cached) $ECHO_C" >&6
10025     fi
10026 ayin 1.104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10027     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10028 root 1.88 else
10029     # Is the header compilable?
10030 ayin 1.104 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10031     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10032 root 1.88 cat >conftest.$ac_ext <<_ACEOF
10033     /* confdefs.h. */
10034     _ACEOF
10035     cat confdefs.h >>conftest.$ac_ext
10036     cat >>conftest.$ac_ext <<_ACEOF
10037     /* end confdefs.h. */
10038     $ac_includes_default
10039     #include <$ac_header>
10040     _ACEOF
10041     rm -f conftest.$ac_objext
10042 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10043     (eval $ac_compile) 2>conftest.er1
10044 root 1.88 ac_status=$?
10045     grep -v '^ *+' conftest.er1 >conftest.err
10046     rm -f conftest.er1
10047     cat conftest.err >&5
10048     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 ayin 1.104 (exit $ac_status); } &&
10050     { ac_try='test -z "$ac_cxx_werror_flag"
10051     || test ! -s conftest.err'
10052     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10053     (eval $ac_try) 2>&5
10054     ac_status=$?
10055     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056     (exit $ac_status); }; } &&
10057     { ac_try='test -s conftest.$ac_objext'
10058     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10059     (eval $ac_try) 2>&5
10060     ac_status=$?
10061     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062     (exit $ac_status); }; }; then
10063 root 1.88 ac_header_compiler=yes
10064     else
10065     echo "$as_me: failed program was:" >&5
10066     sed 's/^/| /' conftest.$ac_ext >&5
10067    
10068 ayin 1.104 ac_header_compiler=no
10069 root 1.88 fi
10070 ayin 1.104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10071     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10072     echo "${ECHO_T}$ac_header_compiler" >&6
10073 root 1.88
10074     # Is the header present?
10075 ayin 1.104 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10076     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10077 root 1.88 cat >conftest.$ac_ext <<_ACEOF
10078     /* confdefs.h. */
10079     _ACEOF
10080     cat confdefs.h >>conftest.$ac_ext
10081     cat >>conftest.$ac_ext <<_ACEOF
10082     /* end confdefs.h. */
10083     #include <$ac_header>
10084     _ACEOF
10085 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10086     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10087 root 1.88 ac_status=$?
10088     grep -v '^ *+' conftest.er1 >conftest.err
10089     rm -f conftest.er1
10090     cat conftest.err >&5
10091     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 ayin 1.104 (exit $ac_status); } >/dev/null; then
10093     if test -s conftest.err; then
10094     ac_cpp_err=$ac_cxx_preproc_warn_flag
10095     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10096     else
10097     ac_cpp_err=
10098     fi
10099     else
10100     ac_cpp_err=yes
10101     fi
10102     if test -z "$ac_cpp_err"; then
10103 root 1.88 ac_header_preproc=yes
10104     else
10105     echo "$as_me: failed program was:" >&5
10106     sed 's/^/| /' conftest.$ac_ext >&5
10107    
10108     ac_header_preproc=no
10109     fi
10110     rm -f conftest.err conftest.$ac_ext
10111 ayin 1.104 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10112     echo "${ECHO_T}$ac_header_preproc" >&6
10113 root 1.88
10114     # So? What about this header?
10115     case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10116     yes:no: )
10117     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10118     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10119     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10120     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10121     ac_header_preproc=yes
10122     ;;
10123     no:yes:* )
10124     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10125     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10126     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10127     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10128     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10129     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10130     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10131     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10132     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10133     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10134     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10135     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10136 ayin 1.104 (
10137     cat <<\_ASBOX
10138     ## ------------------------------------------ ##
10139     ## Report this to the AC_PACKAGE_NAME lists. ##
10140     ## ------------------------------------------ ##
10141     _ASBOX
10142     ) |
10143     sed "s/^/$as_me: WARNING: /" >&2
10144 root 1.88 ;;
10145     esac
10146 ayin 1.104 echo "$as_me:$LINENO: checking for $ac_header" >&5
10147     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10148     if eval "test \"\${$as_ac_Header+set}\" = set"; then
10149 root 1.88 echo $ECHO_N "(cached) $ECHO_C" >&6
10150     else
10151     eval "$as_ac_Header=\$ac_header_preproc"
10152     fi
10153 ayin 1.104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10154     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10155 root 1.88
10156     fi
10157     if test `eval echo '${'$as_ac_Header'}'` = yes; then
10158     cat >>confdefs.h <<_ACEOF
10159     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10160     _ACEOF
10161    
10162     fi
10163    
10164     done
10165    
10166    
10167    
10168     if test "${ac_cv_header_utmp_h+set}" = set; then
10169 ayin 1.104 echo "$as_me:$LINENO: checking for utmp.h" >&5
10170     echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
10171 root 1.88 if test "${ac_cv_header_utmp_h+set}" = set; then
10172     echo $ECHO_N "(cached) $ECHO_C" >&6
10173     fi
10174 ayin 1.104 echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
10175     echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
10176 root 1.88 else
10177     # Is the header compilable?
10178 ayin 1.104 echo "$as_me:$LINENO: checking utmp.h usability" >&5
10179     echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6
10180 root 1.88 cat >conftest.$ac_ext <<_ACEOF
10181     /* confdefs.h. */
10182     _ACEOF
10183     cat confdefs.h >>conftest.$ac_ext
10184     cat >>conftest.$ac_ext <<_ACEOF
10185     /* end confdefs.h. */
10186     $ac_includes_default
10187     #include <utmp.h>
10188     _ACEOF
10189     rm -f conftest.$ac_objext
10190 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10191     (eval $ac_compile) 2>conftest.er1
10192 root 1.88 ac_status=$?
10193     grep -v '^ *+' conftest.er1 >conftest.err
10194     rm -f conftest.er1
10195     cat conftest.err >&5
10196     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197 ayin 1.104 (exit $ac_status); } &&
10198     { ac_try='test -z "$ac_cxx_werror_flag"
10199     || test ! -s conftest.err'
10200     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10201     (eval $ac_try) 2>&5
10202     ac_status=$?
10203     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204     (exit $ac_status); }; } &&
10205     { ac_try='test -s conftest.$ac_objext'
10206     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10207     (eval $ac_try) 2>&5
10208     ac_status=$?
10209     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210     (exit $ac_status); }; }; then
10211 root 1.88 ac_header_compiler=yes
10212     else
10213     echo "$as_me: failed program was:" >&5
10214     sed 's/^/| /' conftest.$ac_ext >&5
10215    
10216 ayin 1.104 ac_header_compiler=no
10217 root 1.88 fi
10218 ayin 1.104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10219     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10220     echo "${ECHO_T}$ac_header_compiler" >&6
10221 root 1.88
10222     # Is the header present?
10223 ayin 1.104 echo "$as_me:$LINENO: checking utmp.h presence" >&5
10224     echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6
10225 root 1.88 cat >conftest.$ac_ext <<_ACEOF
10226     /* confdefs.h. */
10227     _ACEOF
10228     cat confdefs.h >>conftest.$ac_ext
10229     cat >>conftest.$ac_ext <<_ACEOF
10230     /* end confdefs.h. */
10231     #include <utmp.h>
10232     _ACEOF
10233 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10234     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10235 root 1.88 ac_status=$?
10236     grep -v '^ *+' conftest.er1 >conftest.err
10237     rm -f conftest.er1
10238     cat conftest.err >&5
10239     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 ayin 1.104 (exit $ac_status); } >/dev/null; then
10241     if test -s conftest.err; then
10242     ac_cpp_err=$ac_cxx_preproc_warn_flag
10243     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10244     else
10245     ac_cpp_err=
10246     fi
10247     else
10248     ac_cpp_err=yes
10249     fi
10250     if test -z "$ac_cpp_err"; then
10251 root 1.88 ac_header_preproc=yes
10252     else
10253     echo "$as_me: failed program was:" >&5
10254     sed 's/^/| /' conftest.$ac_ext >&5
10255    
10256     ac_header_preproc=no
10257     fi
10258     rm -f conftest.err conftest.$ac_ext
10259 ayin 1.104 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10260     echo "${ECHO_T}$ac_header_preproc" >&6
10261 root 1.88
10262     # So? What about this header?
10263     case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10264     yes:no: )
10265     { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
10266     echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10267     { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5
10268     echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;}
10269     ac_header_preproc=yes
10270     ;;
10271     no:yes:* )
10272     { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5
10273     echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;}
10274     { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5
10275     echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;}
10276     { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5
10277     echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;}
10278     { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5
10279     echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
10280     { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5
10281     echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;}
10282     { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5
10283     echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;}
10284 ayin 1.104 (
10285     cat <<\_ASBOX
10286     ## ------------------------------------------ ##
10287     ## Report this to the AC_PACKAGE_NAME lists. ##
10288     ## ------------------------------------------ ##
10289     _ASBOX
10290     ) |
10291     sed "s/^/$as_me: WARNING: /" >&2
10292 root 1.88 ;;
10293     esac
10294 ayin 1.104 echo "$as_me:$LINENO: checking for utmp.h" >&5
10295     echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
10296 root 1.88 if test "${ac_cv_header_utmp_h+set}" = set; then
10297     echo $ECHO_N "(cached) $ECHO_C" >&6
10298     else
10299     ac_cv_header_utmp_h=$ac_header_preproc
10300     fi
10301 ayin 1.104 echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
10302     echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
10303 root 1.88
10304     fi
10305     if test $ac_cv_header_utmp_h = yes; then
10306 ayin 1.104 echo "$as_me:$LINENO: checking for struct utmp" >&5
10307     echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6
10308 root 1.88 if test "${struct_utmp+set}" = set; then
10309     echo $ECHO_N "(cached) $ECHO_C" >&6
10310     else
10311     cat >conftest.$ac_ext <<_ACEOF
10312     /* confdefs.h. */
10313     _ACEOF
10314     cat confdefs.h >>conftest.$ac_ext
10315     cat >>conftest.$ac_ext <<_ACEOF
10316     /* end confdefs.h. */
10317     #include <sys/types.h>
10318     #include <utmp.h>
10319     int
10320     main ()
10321     {
10322     struct utmp ut;
10323     ;
10324     return 0;
10325     }
10326     _ACEOF
10327     rm -f conftest.$ac_objext
10328 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10329     (eval $ac_compile) 2>conftest.er1
10330 root 1.88 ac_status=$?
10331     grep -v '^ *+' conftest.er1 >conftest.err
10332     rm -f conftest.er1
10333     cat conftest.err >&5
10334     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335 ayin 1.104 (exit $ac_status); } &&
10336     { ac_try='test -z "$ac_cxx_werror_flag"
10337     || test ! -s conftest.err'
10338     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10339     (eval $ac_try) 2>&5
10340     ac_status=$?
10341     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342     (exit $ac_status); }; } &&
10343     { ac_try='test -s conftest.$ac_objext'
10344     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10345     (eval $ac_try) 2>&5
10346     ac_status=$?
10347     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348     (exit $ac_status); }; }; then
10349 root 1.88 struct_utmp=yes
10350     else
10351     echo "$as_me: failed program was:" >&5
10352     sed 's/^/| /' conftest.$ac_ext >&5
10353    
10354 ayin 1.104 struct_utmp=no
10355 root 1.88 fi
10356 ayin 1.104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10357 root 1.88 fi
10358 ayin 1.104 echo "$as_me:$LINENO: result: $struct_utmp" >&5
10359     echo "${ECHO_T}$struct_utmp" >&6
10360 root 1.88 if test x$struct_utmp = xyes; then
10361    
10362     cat >>confdefs.h <<\_ACEOF
10363     #define HAVE_STRUCT_UTMP 1
10364     _ACEOF
10365    
10366     fi
10367    
10368    
10369 ayin 1.104 echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5
10370     echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6
10371 root 1.88 if test "${struct_utmp_host+set}" = set; then
10372     echo $ECHO_N "(cached) $ECHO_C" >&6
10373     else
10374     cat >conftest.$ac_ext <<_ACEOF
10375     /* confdefs.h. */
10376     _ACEOF
10377     cat confdefs.h >>conftest.$ac_ext
10378     cat >>conftest.$ac_ext <<_ACEOF
10379     /* end confdefs.h. */
10380     #include <sys/types.h>
10381     #include <utmp.h>
10382     int
10383     main ()
10384     {
10385     struct utmp ut; ut.ut_host;
10386     ;
10387     return 0;
10388     }
10389     _ACEOF
10390     rm -f conftest.$ac_objext
10391 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10392     (eval $ac_compile) 2>conftest.er1
10393 root 1.88 ac_status=$?
10394     grep -v '^ *+' conftest.er1 >conftest.err
10395     rm -f conftest.er1
10396     cat conftest.err >&5
10397     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 ayin 1.104 (exit $ac_status); } &&
10399     { ac_try='test -z "$ac_cxx_werror_flag"
10400     || test ! -s conftest.err'
10401     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10402     (eval $ac_try) 2>&5
10403     ac_status=$?
10404     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405     (exit $ac_status); }; } &&
10406     { ac_try='test -s conftest.$ac_objext'
10407     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10408     (eval $ac_try) 2>&5
10409     ac_status=$?
10410     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411     (exit $ac_status); }; }; then
10412 root 1.88 struct_utmp_host=yes
10413     else
10414     echo "$as_me: failed program was:" >&5
10415     sed 's/^/| /' conftest.$ac_ext >&5
10416    
10417 ayin 1.104 struct_utmp_host=no
10418 root 1.88 fi
10419 ayin 1.104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10420 root 1.88 fi
10421 ayin 1.104 echo "$as_me:$LINENO: result: $struct_utmp_host" >&5
10422     echo "${ECHO_T}$struct_utmp_host" >&6
10423 root 1.88 if test x$struct_utmp_host = xyes; then
10424    
10425     cat >>confdefs.h <<\_ACEOF
10426     #define HAVE_UTMP_HOST 1
10427     _ACEOF
10428    
10429     fi
10430    
10431 ayin 1.104 echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5
10432     echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6
10433 root 1.88 if test "${struct_utmp_pid+set}" = set; then
10434     echo $ECHO_N "(cached) $ECHO_C" >&6
10435     else
10436     cat >conftest.$ac_ext <<_ACEOF
10437     /* confdefs.h. */
10438     _ACEOF
10439     cat confdefs.h >>conftest.$ac_ext
10440     cat >>conftest.$ac_ext <<_ACEOF
10441     /* end confdefs.h. */
10442     #include <sys/types.h>
10443     #include <utmp.h>
10444     int
10445     main ()
10446     {
10447     struct utmp ut; ut.ut_pid;
10448     ;
10449     return 0;
10450     }
10451     _ACEOF
10452     rm -f conftest.$ac_objext
10453 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10454     (eval $ac_compile) 2>conftest.er1
10455 root 1.88 ac_status=$?
10456     grep -v '^ *+' conftest.er1 >conftest.err
10457     rm -f conftest.er1
10458     cat conftest.err >&5
10459     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460 ayin 1.104 (exit $ac_status); } &&
10461     { ac_try='test -z "$ac_cxx_werror_flag"
10462     || test ! -s conftest.err'
10463     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10464     (eval $ac_try) 2>&5
10465     ac_status=$?
10466     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467     (exit $ac_status); }; } &&
10468     { ac_try='test -s conftest.$ac_objext'
10469     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10470     (eval $ac_try) 2>&5
10471     ac_status=$?
10472     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473     (exit $ac_status); }; }; then
10474 root 1.88 struct_utmp_pid=yes
10475     else
10476     echo "$as_me: failed program was:" >&5
10477     sed 's/^/| /' conftest.$ac_ext >&5
10478    
10479 ayin 1.104 struct_utmp_pid=no
10480 root 1.88 fi
10481 ayin 1.104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10482 root 1.88 fi
10483 ayin 1.104 echo "$as_me:$LINENO: result: $struct_utmp_pid" >&5
10484     echo "${ECHO_T}$struct_utmp_pid" >&6
10485 root 1.88 if test x$struct_utmp_pid = xyes; then
10486    
10487     cat >>confdefs.h <<\_ACEOF
10488     #define HAVE_UTMP_PID 1
10489     _ACEOF
10490    
10491     fi
10492    
10493     fi
10494    
10495    
10496    
10497     if test "${ac_cv_header_utmpx_h+set}" = set; then
10498 ayin 1.104 echo "$as_me:$LINENO: checking for utmpx.h" >&5
10499     echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
10500 root 1.88 if test "${ac_cv_header_utmpx_h+set}" = set; then
10501     echo $ECHO_N "(cached) $ECHO_C" >&6
10502     fi
10503 ayin 1.104 echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
10504     echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
10505 root 1.88 else
10506     # Is the header compilable?
10507 ayin 1.104 echo "$as_me:$LINENO: checking utmpx.h usability" >&5
10508     echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6
10509 root 1.88 cat >conftest.$ac_ext <<_ACEOF
10510     /* confdefs.h. */
10511     _ACEOF
10512     cat confdefs.h >>conftest.$ac_ext
10513     cat >>conftest.$ac_ext <<_ACEOF
10514     /* end confdefs.h. */
10515     $ac_includes_default
10516     #include <utmpx.h>
10517     _ACEOF
10518     rm -f conftest.$ac_objext
10519 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10520     (eval $ac_compile) 2>conftest.er1
10521 root 1.88 ac_status=$?
10522     grep -v '^ *+' conftest.er1 >conftest.err
10523     rm -f conftest.er1
10524     cat conftest.err >&5
10525     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526 ayin 1.104 (exit $ac_status); } &&
10527     { ac_try='test -z "$ac_cxx_werror_flag"
10528     || test ! -s conftest.err'
10529     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10530     (eval $ac_try) 2>&5
10531     ac_status=$?
10532     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533     (exit $ac_status); }; } &&
10534     { ac_try='test -s conftest.$ac_objext'
10535     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10536     (eval $ac_try) 2>&5
10537     ac_status=$?
10538     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539     (exit $ac_status); }; }; then
10540 root 1.88 ac_header_compiler=yes
10541     else
10542     echo "$as_me: failed program was:" >&5
10543     sed 's/^/| /' conftest.$ac_ext >&5
10544    
10545 ayin 1.104 ac_header_compiler=no
10546 root 1.88 fi
10547 ayin 1.104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10548     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10549     echo "${ECHO_T}$ac_header_compiler" >&6
10550 root 1.88
10551     # Is the header present?
10552 ayin 1.104 echo "$as_me:$LINENO: checking utmpx.h presence" >&5
10553     echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6
10554 root 1.88 cat >conftest.$ac_ext <<_ACEOF
10555     /* confdefs.h. */
10556     _ACEOF
10557     cat confdefs.h >>conftest.$ac_ext
10558     cat >>conftest.$ac_ext <<_ACEOF
10559     /* end confdefs.h. */
10560     #include <utmpx.h>
10561     _ACEOF
10562 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10563     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10564 root 1.88 ac_status=$?
10565     grep -v '^ *+' conftest.er1 >conftest.err
10566     rm -f conftest.er1
10567     cat conftest.err >&5
10568     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569 ayin 1.104 (exit $ac_status); } >/dev/null; then
10570     if test -s conftest.err; then
10571     ac_cpp_err=$ac_cxx_preproc_warn_flag
10572     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10573     else
10574     ac_cpp_err=
10575     fi
10576     else
10577     ac_cpp_err=yes
10578     fi
10579     if test -z "$ac_cpp_err"; then
10580 root 1.88 ac_header_preproc=yes
10581     else
10582     echo "$as_me: failed program was:" >&5
10583     sed 's/^/| /' conftest.$ac_ext >&5
10584    
10585     ac_header_preproc=no
10586     fi
10587     rm -f conftest.err conftest.$ac_ext
10588 ayin 1.104 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10589     echo "${ECHO_T}$ac_header_preproc" >&6
10590 root 1.88
10591     # So? What about this header?
10592     case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10593     yes:no: )
10594     { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5
10595     echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10596     { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5
10597     echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;}
10598     ac_header_preproc=yes
10599     ;;
10600     no:yes:* )
10601     { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5
10602     echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;}
10603     { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5
10604     echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;}
10605     { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5
10606     echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;}
10607     { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5
10608     echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;}
10609     { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5
10610     echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;}
10611     { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5
10612     echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;}
10613 ayin 1.104 (
10614     cat <<\_ASBOX
10615     ## ------------------------------------------ ##
10616     ## Report this to the AC_PACKAGE_NAME lists. ##
10617     ## ------------------------------------------ ##
10618     _ASBOX
10619     ) |
10620     sed "s/^/$as_me: WARNING: /" >&2
10621 root 1.88 ;;
10622     esac
10623 ayin 1.104 echo "$as_me:$LINENO: checking for utmpx.h" >&5
10624     echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
10625 root 1.88 if test "${ac_cv_header_utmpx_h+set}" = set; then
10626     echo $ECHO_N "(cached) $ECHO_C" >&6
10627     else
10628     ac_cv_header_utmpx_h=$ac_header_preproc
10629     fi
10630 ayin 1.104 echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
10631     echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
10632 root 1.88
10633     fi
10634     if test $ac_cv_header_utmpx_h = yes; then
10635 ayin 1.104 echo "$as_me:$LINENO: checking for struct utmpx" >&5
10636     echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6
10637 root 1.88 if test "${struct_utmpx+set}" = set; then
10638     echo $ECHO_N "(cached) $ECHO_C" >&6
10639     else
10640     cat >conftest.$ac_ext <<_ACEOF
10641     /* confdefs.h. */
10642     _ACEOF
10643     cat confdefs.h >>conftest.$ac_ext
10644     cat >>conftest.$ac_ext <<_ACEOF
10645     /* end confdefs.h. */
10646     #include <sys/types.h>
10647     #include <utmpx.h>
10648     int
10649     main ()
10650     {
10651     struct utmpx ut;
10652     ;
10653     return 0;
10654     }
10655     _ACEOF
10656     rm -f conftest.$ac_objext
10657 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10658     (eval $ac_compile) 2>conftest.er1
10659 root 1.88 ac_status=$?
10660     grep -v '^ *+' conftest.er1 >conftest.err
10661     rm -f conftest.er1
10662     cat conftest.err >&5
10663     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664 ayin 1.104 (exit $ac_status); } &&
10665     { ac_try='test -z "$ac_cxx_werror_flag"
10666     || test ! -s conftest.err'
10667     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10668     (eval $ac_try) 2>&5
10669     ac_status=$?
10670     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671     (exit $ac_status); }; } &&
10672     { ac_try='test -s conftest.$ac_objext'
10673     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10674     (eval $ac_try) 2>&5
10675     ac_status=$?
10676     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677     (exit $ac_status); }; }; then
10678 root 1.88 struct_utmpx=yes
10679     else
10680     echo "$as_me: failed program was:" >&5
10681     sed 's/^/| /' conftest.$ac_ext >&5
10682    
10683 ayin 1.104 struct_utmpx=no
10684 root 1.88 fi
10685 ayin 1.104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10686 root 1.88 fi
10687 ayin 1.104 echo "$as_me:$LINENO: result: $struct_utmpx" >&5
10688     echo "${ECHO_T}$struct_utmpx" >&6
10689 root 1.88 if test x$struct_utmpx = xyes; then
10690    
10691     cat >>confdefs.h <<\_ACEOF
10692     #define HAVE_STRUCT_UTMPX 1
10693     _ACEOF
10694    
10695     fi
10696    
10697    
10698 ayin 1.104 echo "$as_me:$LINENO: checking for host in utmpx struct" >&5
10699     echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6
10700 root 1.88 if test "${struct_utmpx_host+set}" = set; then
10701     echo $ECHO_N "(cached) $ECHO_C" >&6
10702     else
10703     cat >conftest.$ac_ext <<_ACEOF
10704     /* confdefs.h. */
10705     _ACEOF
10706     cat confdefs.h >>conftest.$ac_ext
10707     cat >>conftest.$ac_ext <<_ACEOF
10708     /* end confdefs.h. */
10709     #include <sys/types.h>
10710     #include <utmpx.h>
10711     int
10712     main ()
10713     {
10714     struct utmpx utx; utx.ut_host;
10715     ;
10716     return 0;
10717     }
10718     _ACEOF
10719     rm -f conftest.$ac_objext
10720 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10721     (eval $ac_compile) 2>conftest.er1
10722 root 1.88 ac_status=$?
10723     grep -v '^ *+' conftest.er1 >conftest.err
10724     rm -f conftest.er1
10725     cat conftest.err >&5
10726     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727 ayin 1.104 (exit $ac_status); } &&
10728     { ac_try='test -z "$ac_cxx_werror_flag"
10729     || test ! -s conftest.err'
10730     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10731     (eval $ac_try) 2>&5
10732     ac_status=$?
10733     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734     (exit $ac_status); }; } &&
10735     { ac_try='test -s conftest.$ac_objext'
10736     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10737     (eval $ac_try) 2>&5
10738     ac_status=$?
10739     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740     (exit $ac_status); }; }; then
10741 root 1.88 struct_utmpx_host=yes
10742     else
10743     echo "$as_me: failed program was:" >&5
10744     sed 's/^/| /' conftest.$ac_ext >&5
10745    
10746 ayin 1.104 struct_utmpx_host=no
10747 root 1.88 fi
10748 ayin 1.104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10749 root 1.88 fi
10750 ayin 1.104 echo "$as_me:$LINENO: result: $struct_utmpx_host" >&5
10751     echo "${ECHO_T}$struct_utmpx_host" >&6
10752 root 1.88 if test x$struct_utmpx_host = xyes; then
10753    
10754     cat >>confdefs.h <<\_ACEOF
10755     #define HAVE_UTMPX_HOST 1
10756     _ACEOF
10757    
10758     fi
10759    
10760 ayin 1.104 echo "$as_me:$LINENO: checking for session in utmpx struct" >&5
10761     echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6
10762 root 1.88 if test "${struct_utmpx_session+set}" = set; then
10763     echo $ECHO_N "(cached) $ECHO_C" >&6
10764     else
10765     cat >conftest.$ac_ext <<_ACEOF
10766     /* confdefs.h. */
10767     _ACEOF
10768     cat confdefs.h >>conftest.$ac_ext
10769     cat >>conftest.$ac_ext <<_ACEOF
10770     /* end confdefs.h. */
10771     #include <sys/types.h>
10772     #include <utmpx.h>
10773     int
10774     main ()
10775     {
10776     struct utmpx utx; utx.ut_session;
10777     ;
10778     return 0;
10779     }
10780     _ACEOF
10781     rm -f conftest.$ac_objext
10782 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10783     (eval $ac_compile) 2>conftest.er1
10784 root 1.88 ac_status=$?
10785     grep -v '^ *+' conftest.er1 >conftest.err
10786     rm -f conftest.er1
10787     cat conftest.err >&5
10788     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789 ayin 1.104 (exit $ac_status); } &&
10790     { ac_try='test -z "$ac_cxx_werror_flag"
10791     || test ! -s conftest.err'
10792     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10793     (eval $ac_try) 2>&5
10794     ac_status=$?
10795     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796     (exit $ac_status); }; } &&
10797     { ac_try='test -s conftest.$ac_objext'
10798     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10799     (eval $ac_try) 2>&5
10800     ac_status=$?
10801     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802     (exit $ac_status); }; }; then
10803 ayin 1.102 struct_utmpx_session=yes
10804 root 1.88 else
10805     echo "$as_me: failed program was:" >&5
10806     sed 's/^/| /' conftest.$ac_ext >&5
10807    
10808 ayin 1.104 struct_utmpx_session=no
10809 root 1.88 fi
10810 ayin 1.104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10811 root 1.88 fi
10812 ayin 1.104 echo "$as_me:$LINENO: result: $struct_utmpx_session" >&5
10813     echo "${ECHO_T}$struct_utmpx_session" >&6
10814 root 1.88 if test x$struct_utmpx_session = xyes; then
10815    
10816     cat >>confdefs.h <<\_ACEOF
10817     #define HAVE_UTMPX_SESSION 1
10818     _ACEOF
10819    
10820     fi
10821    
10822     fi
10823    
10824    
10825 ayin 1.104 echo "$as_me:$LINENO: checking for struct lastlog" >&5
10826     echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6
10827 root 1.88 if test "${struct_lastlog+set}" = set; then
10828     echo $ECHO_N "(cached) $ECHO_C" >&6
10829     else
10830     cat >conftest.$ac_ext <<_ACEOF
10831     /* confdefs.h. */
10832     _ACEOF
10833     cat confdefs.h >>conftest.$ac_ext
10834     cat >>conftest.$ac_ext <<_ACEOF
10835     /* end confdefs.h. */
10836     #include <sys/types.h>
10837     #include <utmp.h>
10838     #ifdef HAVE_LASTLOG_H
10839     #include <lastlog.h>
10840     #endif
10841    
10842     int
10843     main ()
10844     {
10845     struct lastlog ll;
10846     ;
10847     return 0;
10848     }
10849     _ACEOF
10850     rm -f conftest.$ac_objext
10851 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10852     (eval $ac_compile) 2>conftest.er1
10853 root 1.88 ac_status=$?
10854     grep -v '^ *+' conftest.er1 >conftest.err
10855     rm -f conftest.er1
10856     cat conftest.err >&5
10857     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10858 ayin 1.104 (exit $ac_status); } &&
10859     { ac_try='test -z "$ac_cxx_werror_flag"
10860     || test ! -s conftest.err'
10861     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10862     (eval $ac_try) 2>&5
10863     ac_status=$?
10864     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865     (exit $ac_status); }; } &&
10866     { ac_try='test -s conftest.$ac_objext'
10867     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10868     (eval $ac_try) 2>&5
10869     ac_status=$?
10870     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871     (exit $ac_status); }; }; then
10872 root 1.88 struct_lastlog=yes
10873     else
10874     echo "$as_me: failed program was:" >&5
10875     sed 's/^/| /' conftest.$ac_ext >&5
10876    
10877 ayin 1.104 struct_lastlog=no
10878 root 1.88 fi
10879 ayin 1.104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10880 root 1.88 fi
10881 ayin 1.104 echo "$as_me:$LINENO: result: $struct_lastlog" >&5
10882     echo "${ECHO_T}$struct_lastlog" >&6
10883 root 1.88 if test x$struct_lastlog = xyes; then
10884    
10885     cat >>confdefs.h <<\_ACEOF
10886     #define HAVE_STRUCT_LASTLOG 1
10887     _ACEOF
10888    
10889     fi
10890    
10891 ayin 1.104 echo "$as_me:$LINENO: checking for struct lastlogx" >&5
10892     echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6
10893 root 1.88 if test "${struct_lastlogx+set}" = set; then
10894     echo $ECHO_N "(cached) $ECHO_C" >&6
10895     else
10896     cat >conftest.$ac_ext <<_ACEOF
10897     /* confdefs.h. */
10898     _ACEOF
10899     cat confdefs.h >>conftest.$ac_ext
10900     cat >>conftest.$ac_ext <<_ACEOF
10901     /* end confdefs.h. */
10902     #include <sys/types.h>
10903     #include <utmpx.h>
10904     #ifdef HAVE_LASTLOG_H
10905     #include <lastlog.h>
10906     #endif
10907    
10908     int
10909     main ()
10910     {
10911     struct lastlogx ll;
10912     ;
10913     return 0;
10914     }
10915     _ACEOF
10916     rm -f conftest.$ac_objext
10917 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10918     (eval $ac_compile) 2>conftest.er1
10919 root 1.88 ac_status=$?
10920     grep -v '^ *+' conftest.er1 >conftest.err
10921     rm -f conftest.er1
10922     cat conftest.err >&5
10923     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 ayin 1.104 (exit $ac_status); } &&
10925     { ac_try='test -z "$ac_cxx_werror_flag"
10926     || test ! -s conftest.err'
10927     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10928     (eval $ac_try) 2>&5
10929     ac_status=$?
10930     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931     (exit $ac_status); }; } &&
10932     { ac_try='test -s conftest.$ac_objext'
10933     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10934     (eval $ac_try) 2>&5
10935     ac_status=$?
10936     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937     (exit $ac_status); }; }; then
10938 root 1.88 struct_lastlogx=yes
10939     else
10940     echo "$as_me: failed program was:" >&5
10941     sed 's/^/| /' conftest.$ac_ext >&5
10942    
10943 ayin 1.104 struct_lastlogx=no
10944 root 1.88 fi
10945 ayin 1.104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10946 root 1.88 fi
10947 ayin 1.104 echo "$as_me:$LINENO: result: $struct_lastlogx" >&5
10948     echo "${ECHO_T}$struct_lastlogx" >&6
10949 root 1.88 if test x$struct_lastlogx = xyes; then
10950    
10951     cat >>confdefs.h <<\_ACEOF
10952     #define HAVE_STRUCT_LASTLOGX 1
10953     _ACEOF
10954    
10955     fi
10956    
10957    
10958 ayin 1.104 echo "$as_me:$LINENO: checking where utmp is located" >&5
10959     echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6
10960 root 1.88 if test "${path_utmp+set}" = set; then
10961     echo $ECHO_N "(cached) $ECHO_C" >&6
10962     else
10963     if test "$cross_compiling" = yes; then
10964     { echo "$as_me:$LINENO: WARNING: Define UTMP_FILE in config.h manually" >&5
10965     echo "$as_me: WARNING: Define UTMP_FILE in config.h manually" >&2;}
10966     else
10967     cat >conftest.$ac_ext <<_ACEOF
10968     /* confdefs.h. */
10969     _ACEOF
10970     cat confdefs.h >>conftest.$ac_ext
10971     cat >>conftest.$ac_ext <<_ACEOF
10972     /* end confdefs.h. */
10973     #include <stdio.h>
10974 ayin 1.102 #include <stdlib.h>
10975 root 1.88 #include <sys/types.h>
10976     #include <utmp.h>
10977     #include <errno.h>
10978     main()
10979     {
10980     char **u, *utmplist[] = {
10981     "/var/run/utmp", "/var/adm/utmp", "/etc/utmp", "/usr/etc/utmp", "/usr/adm/utmp", NULL };
10982     FILE *a, *f=fopen("conftestval", "w");
10983     if (!f) exit(1);
10984     #ifdef UTMP_FILE
10985     fprintf(f, "%s\n", UTMP_FILE);
10986     exit(0);
10987     #endif
10988     #ifdef _PATH_UTMP
10989     fprintf(f, "%s\n", _PATH_UTMP);
10990     exit(0);
10991     #endif
10992     for (u = utmplist; *u; u++) {
10993     if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
10994     fprintf(f, "%s\n", *u);
10995     exit(0);
10996     }
10997     }
10998     exit(0);
10999     }
11000     _ACEOF
11001     rm -f conftest$ac_exeext
11002 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11003     (eval $ac_link) 2>&5
11004 root 1.88 ac_status=$?
11005     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11007 ayin 1.104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11008     (eval $ac_try) 2>&5
11009 root 1.88 ac_status=$?
11010     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011     (exit $ac_status); }; }; then
11012     path_utmp=`cat conftestval`
11013     else
11014     echo "$as_me: program exited with status $ac_status" >&5
11015     echo "$as_me: failed program was:" >&5
11016     sed 's/^/| /' conftest.$ac_ext >&5
11017    
11018     ( exit $ac_status )
11019     path_utmp=
11020     fi
11021 ayin 1.104 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11022 root 1.88 fi
11023     fi
11024 ayin 1.104 echo "$as_me:$LINENO: result: $path_utmp" >&5
11025     echo "${ECHO_T}$path_utmp" >&6
11026 root 1.88 if test x$path_utmp != x; then
11027    
11028     cat >>confdefs.h <<_ACEOF
11029     #define UTMP_FILE "$path_utmp"
11030     _ACEOF
11031    
11032     fi
11033    
11034    
11035 ayin 1.104 echo "$as_me:$LINENO: checking where utmpx is located" >&5
11036     echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6
11037 root 1.88 if test "${path_utmpx+set}" = set; then
11038     echo $ECHO_N "(cached) $ECHO_C" >&6
11039     else
11040     if test "$cross_compiling" = yes; then
11041     { echo "$as_me:$LINENO: WARNING: Define UTMPX_FILE in config.h manually" >&5
11042     echo "$as_me: WARNING: Define UTMPX_FILE in config.h manually" >&2;}
11043     else
11044     cat >conftest.$ac_ext <<_ACEOF
11045     /* confdefs.h. */
11046     _ACEOF
11047     cat confdefs.h >>conftest.$ac_ext
11048     cat >>conftest.$ac_ext <<_ACEOF
11049     /* end confdefs.h. */
11050     #include <stdio.h>
11051 ayin 1.102 #include <stdlib.h>
11052 root 1.88 #include <sys/types.h>
11053     #include <utmpx.h>
11054     #include <errno.h>
11055     #include <sys/stat.h>
11056     #ifdef HAVE_STRING_H
11057     #include <string.h>
11058     #endif
11059     main()
11060     {
11061     char **u, *p, *utmplist[] = {
11062     #ifdef UTMPX_FILE
11063     UTMPX_FILE,
11064     #endif
11065     #ifdef _PATH_UTMPX
11066     _PATH_UTMPX,
11067     #endif
11068     "/var/adm/utmpx", "/etc/utmpx", NULL };
11069     FILE *a, *f=fopen("conftestval", "w");
11070     struct stat statu, statux;
11071     if (!f) exit(1);
11072     for (u = utmplist; *u; u++) {
11073     if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
11074     if (stat(*u, &statux) < 0)
11075     continue;
11076     p = strdup(*u);
11077     p[strlen(p) - 1] = '\0';
11078     if (stat(p, &statu) >= 0
11079     && (statu.st_mtime - statux.st_mtime > 86400))
11080     continue;
11081     fprintf(f, "%s\n", *u);
11082     exit(0);
11083     }
11084     }
11085     exit(0);
11086     }
11087     _ACEOF
11088     rm -f conftest$ac_exeext
11089 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11090     (eval $ac_link) 2>&5
11091 root 1.88 ac_status=$?
11092     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11094 ayin 1.104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11095     (eval $ac_try) 2>&5
11096 root 1.88 ac_status=$?
11097     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098     (exit $ac_status); }; }; then
11099     path_utmpx=`cat conftestval`
11100     else
11101     echo "$as_me: program exited with status $ac_status" >&5
11102     echo "$as_me: failed program was:" >&5
11103     sed 's/^/| /' conftest.$ac_ext >&5
11104    
11105     ( exit $ac_status )
11106     path_utmpx=
11107     fi
11108 ayin 1.104 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11109 root 1.88 fi
11110     fi
11111 ayin 1.104 echo "$as_me:$LINENO: result: $path_utmpx" >&5
11112     echo "${ECHO_T}$path_utmpx" >&6
11113 root 1.88 if test x$path_utmpx != x; then
11114    
11115     cat >>confdefs.h <<_ACEOF
11116     #define UTMPX_FILE "$path_utmpx"
11117     _ACEOF
11118    
11119     fi
11120    
11121    
11122 ayin 1.104 echo "$as_me:$LINENO: checking where wtmp is located" >&5
11123     echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6
11124 root 1.88 if test "${path_wtmp+set}" = set; then
11125     echo $ECHO_N "(cached) $ECHO_C" >&6
11126     else
11127     if test "$cross_compiling" = yes; then
11128     { echo "$as_me:$LINENO: WARNING: Define WTMP_FILE in config.h manually" >&5
11129     echo "$as_me: WARNING: Define WTMP_FILE in config.h manually" >&2;}
11130     else
11131     cat >conftest.$ac_ext <<_ACEOF
11132     /* confdefs.h. */
11133     _ACEOF
11134     cat confdefs.h >>conftest.$ac_ext
11135     cat >>conftest.$ac_ext <<_ACEOF
11136     /* end confdefs.h. */
11137     #include <stdio.h>
11138 ayin 1.102 #include <stdlib.h>
11139 root 1.88 #include <sys/types.h>
11140     #ifdef HAVE_UTMP_H
11141     #include <utmp.h>
11142     #endif
11143     #include <errno.h>
11144     main()
11145     {
11146     char **w, *wtmplist[] = {
11147     "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL };
11148     FILE *a, *f=fopen("conftestval", "w");
11149     if (!f) exit(1);
11150     #ifdef WTMP_FILE
11151     fprintf(f, "%s\n", WTMP_FILE);
11152     exit(0);
11153     #endif
11154     #ifdef _PATH_WTMP
11155     fprintf(f, "%s\n", _PATH_WTMP);
11156     exit(0);
11157     #endif
11158     for (w = wtmplist; *w; w++) {
11159     if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11160     fprintf(f, "%s\n", *w);
11161     exit(0);
11162     }
11163     }
11164     exit(0);
11165     }
11166     _ACEOF
11167     rm -f conftest$ac_exeext
11168 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11169     (eval $ac_link) 2>&5
11170 root 1.88 ac_status=$?
11171     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11173 ayin 1.104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11174     (eval $ac_try) 2>&5
11175 root 1.88 ac_status=$?
11176     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177     (exit $ac_status); }; }; then
11178     path_wtmp=`cat conftestval`
11179     else
11180     echo "$as_me: program exited with status $ac_status" >&5
11181     echo "$as_me: failed program was:" >&5
11182     sed 's/^/| /' conftest.$ac_ext >&5
11183    
11184     ( exit $ac_status )
11185     path_wtmp=
11186     fi
11187 ayin 1.104 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11188 root 1.88 fi
11189     fi
11190 ayin 1.104 echo "$as_me:$LINENO: result: $path_wtmp" >&5
11191     echo "${ECHO_T}$path_wtmp" >&6
11192 root 1.88 if test x$path_wtmp != x; then
11193    
11194     cat >>confdefs.h <<_ACEOF
11195     #define WTMP_FILE "$path_wtmp"
11196     _ACEOF
11197    
11198     fi
11199    
11200 ayin 1.104 echo "$as_me:$LINENO: checking where wtmpx is located" >&5
11201     echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6
11202 root 1.88 if test "${path_wtmpx+set}" = set; then
11203     echo $ECHO_N "(cached) $ECHO_C" >&6
11204     else
11205     if test "$cross_compiling" = yes; then
11206     { echo "$as_me:$LINENO: WARNING: Define WTMPX_FILE in config.h manually" >&5
11207     echo "$as_me: WARNING: Define WTMPX_FILE in config.h manually" >&2;}
11208     else
11209     cat >conftest.$ac_ext <<_ACEOF
11210     /* confdefs.h. */
11211     _ACEOF
11212     cat confdefs.h >>conftest.$ac_ext
11213     cat >>conftest.$ac_ext <<_ACEOF
11214     /* end confdefs.h. */
11215     #include <stdio.h>
11216 ayin 1.102 #include <stdlib.h>
11217 root 1.88 #ifdef HAVE_UTMPX_H
11218     #include <utmpx.h>
11219     #endif
11220     #include <errno.h>
11221     main()
11222     {
11223     char **w, *wtmplist[] = {
11224     "/var/log/wtmpx", "/var/adm/wtmpx", NULL };
11225     FILE *a, *f=fopen("conftestval", "w");
11226     if (!f) exit(1);
11227     #ifdef WTMPX_FILE
11228     fprintf(f, "%s\n", WTMPX_FILE);
11229     exit(0);
11230     #endif
11231     #ifdef _PATH_WTMPX
11232     fprintf(f, "%s\n", _PATH_WTMPX);
11233     exit(0);
11234     #endif
11235     for (w = wtmplist; *w; w++) {
11236     if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11237     fprintf(f, "%s\n", *w);
11238     exit(0);
11239     }
11240     }
11241     exit(0);
11242     }
11243     _ACEOF
11244     rm -f conftest$ac_exeext
11245 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11246     (eval $ac_link) 2>&5
11247 root 1.88 ac_status=$?
11248     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11250 ayin 1.104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11251     (eval $ac_try) 2>&5
11252 root 1.88 ac_status=$?
11253     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254     (exit $ac_status); }; }; then
11255     path_wtmpx=`cat conftestval`
11256     else
11257     echo "$as_me: program exited with status $ac_status" >&5
11258     echo "$as_me: failed program was:" >&5
11259     sed 's/^/| /' conftest.$ac_ext >&5
11260    
11261     ( exit $ac_status )
11262     path_wtmpx=
11263     fi
11264 ayin 1.104 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11265 root 1.88 fi
11266     fi
11267 ayin 1.104 echo "$as_me:$LINENO: result: $path_wtmpx" >&5
11268     echo "${ECHO_T}$path_wtmpx" >&6
11269 root 1.88 if test x$path_wtmpx != x; then
11270    
11271     cat >>confdefs.h <<_ACEOF
11272     #define WTMPX_FILE "$path_wtmpx"
11273     _ACEOF
11274    
11275     fi
11276    
11277 ayin 1.104 echo "$as_me:$LINENO: checking where lastlog is located" >&5
11278     echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6
11279 root 1.88 if test "${path_lastlog+set}" = set; then
11280     echo $ECHO_N "(cached) $ECHO_C" >&6
11281     else
11282     if test "$cross_compiling" = yes; then
11283     { echo "$as_me:$LINENO: WARNING: Define LASTLOG_FILE in config.h manually" >&5
11284     echo "$as_me: WARNING: Define LASTLOG_FILE in config.h manually" >&2;}
11285     else
11286     cat >conftest.$ac_ext <<_ACEOF
11287     /* confdefs.h. */
11288     _ACEOF
11289     cat confdefs.h >>conftest.$ac_ext
11290     cat >>conftest.$ac_ext <<_ACEOF
11291     /* end confdefs.h. */
11292     #include <stdio.h>
11293 ayin 1.102 #include <stdlib.h>
11294 root 1.88 #include <sys/types.h>
11295     #ifdef HAVE_UTMPX_H
11296     #include <utmpx.h>
11297     #elif defined(HAVE_UTMP_H)
11298     #include <utmp.h>
11299     #endif
11300     #ifdef HAVE_LASTLOG_H
11301     #include <lastlog.h>
11302     #endif
11303     #include <errno.h>
11304     main()
11305     {
11306     char **w, *lastloglist[] = { "/var/log/lastlog", NULL };
11307     FILE *a, *f=fopen("conftestval", "w");
11308     if (!f) exit(1);
11309     #ifdef LASTLOG_FILE
11310     fprintf(f, "%s\n", LASTLOG_FILE);
11311     exit(0);
11312     #endif
11313     #ifdef _PATH_LASTLOG
11314     fprintf(f, "%s\n", _PATH_LASTLOG);
11315     exit(0);
11316     #endif
11317     for (w = lastloglist; *w; w++) {
11318     if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11319     fprintf(f, "%s\n", *w);
11320     exit(0);
11321     }
11322     }
11323     exit(0);
11324     }
11325     _ACEOF
11326     rm -f conftest$ac_exeext
11327 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11328     (eval $ac_link) 2>&5
11329 root 1.88 ac_status=$?
11330     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11332 ayin 1.104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11333     (eval $ac_try) 2>&5
11334 root 1.88 ac_status=$?
11335     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336     (exit $ac_status); }; }; then
11337     path_lastlog=`cat conftestval`
11338     else
11339     echo "$as_me: program exited with status $ac_status" >&5
11340     echo "$as_me: failed program was:" >&5
11341     sed 's/^/| /' conftest.$ac_ext >&5
11342    
11343     ( exit $ac_status )
11344     path_lastlog=
11345     fi
11346 ayin 1.104 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11347 root 1.88 fi
11348     fi
11349 ayin 1.104 echo "$as_me:$LINENO: result: $path_lastlog" >&5
11350     echo "${ECHO_T}$path_lastlog" >&6
11351 root 1.88 if test x$path_lastlog != x; then
11352    
11353     cat >>confdefs.h <<_ACEOF
11354     #define LASTLOG_FILE "$path_lastlog"
11355     _ACEOF
11356    
11357     if test -d "$path_lastlog"; then
11358    
11359     cat >>confdefs.h <<\_ACEOF
11360     #define LASTLOG_IS_DIR 1
11361     _ACEOF
11362    
11363     fi
11364     fi
11365    
11366 ayin 1.104 echo "$as_me:$LINENO: checking where lastlogx is located" >&5
11367     echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6
11368 root 1.88 if test "${path_lastlogx+set}" = set; then
11369     echo $ECHO_N "(cached) $ECHO_C" >&6
11370     else
11371     if test "$cross_compiling" = yes; then
11372     { echo "$as_me:$LINENO: WARNING: Define LASTLOGX_FILE in config.h manually" >&5
11373     echo "$as_me: WARNING: Define LASTLOGX_FILE in config.h manually" >&2;}
11374     else
11375     cat >conftest.$ac_ext <<_ACEOF
11376     /* confdefs.h. */
11377     _ACEOF
11378     cat confdefs.h >>conftest.$ac_ext
11379     cat >>conftest.$ac_ext <<_ACEOF
11380     /* end confdefs.h. */
11381     #include <stdio.h>
11382 ayin 1.102 #include <stdlib.h>
11383 root 1.88 #ifdef HAVE_UTMPX_H
11384     #include <utmpx.h>
11385     #endif
11386     #include <errno.h>
11387     main()
11388     {
11389     char **w, *wtmplist[] = { "/var/log/lastlogx", "/var/adm/lastlogx", NULL };
11390     FILE *a, *f=fopen("conftestval", "w");
11391     if (!f) exit(1);
11392     #ifdef LASTLOGX_FILE
11393     fprintf(f, "%s\n", LASTLOGX_FILE);
11394     exit(0);
11395     #endif
11396     #ifdef _PATH_LASTLOGX
11397     fprintf(f, "%s\n", _PATH_LASTLOGX);
11398     exit(0);
11399     #endif
11400     for (w = wtmplist; *w; w++) {
11401     if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11402     fprintf(f, "%s\n", *w);
11403     exit(0);
11404     }
11405     }
11406     exit(0);
11407     }
11408     _ACEOF
11409     rm -f conftest$ac_exeext
11410 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11411     (eval $ac_link) 2>&5
11412 root 1.88 ac_status=$?
11413     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11415 ayin 1.104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11416     (eval $ac_try) 2>&5
11417 root 1.88 ac_status=$?
11418     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419     (exit $ac_status); }; }; then
11420     path_lastlogx=`cat conftestval`
11421     else
11422     echo "$as_me: program exited with status $ac_status" >&5
11423     echo "$as_me: failed program was:" >&5
11424     sed 's/^/| /' conftest.$ac_ext >&5
11425    
11426     ( exit $ac_status )
11427     path_lastlogx=
11428     fi
11429 ayin 1.104 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11430 root 1.88 fi
11431     fi
11432 ayin 1.104 echo "$as_me:$LINENO: result: $path_lastlogx" >&5
11433     echo "${ECHO_T}$path_lastlogx" >&6
11434 root 1.88 if test x$path_lastlogx != x; then
11435    
11436     cat >>confdefs.h <<_ACEOF
11437     #define LASTLOGX_FILE "$path_lastlogx"
11438     _ACEOF
11439    
11440     fi
11441    
11442    
11443    
11444 ayin 1.104 echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
11445     echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6
11446 root 1.88 if test "${rxvt_cv_path_ttytab+set}" = set; then
11447     echo $ECHO_N "(cached) $ECHO_C" >&6
11448     else
11449     for ttys_file in /etc/ttys /etc/ttytab;
11450     do
11451     if test -f "$ttys_file" ; then
11452     rxvt_cv_path_ttytab=$ttys_file
11453     break
11454     fi
11455     done
11456    
11457     fi
11458 ayin 1.104 echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5
11459     echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6
11460 root 1.88 if test x$rxvt_cv_path_ttytab != x; then
11461    
11462     cat >>confdefs.h <<_ACEOF
11463     #define TTYTAB_FILENAME "$rxvt_cv_path_ttytab"
11464     _ACEOF
11465    
11466     fi
11467    
11468    
11469     ac_save_LIBS=$LIBS
11470     ac_save_CFLAGS=$CFLAGS
11471     CFLAGS="$CFLAGS $X_CFLAGS"
11472     LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
11473     if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
11474     LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
11475     fi
11476 ayin 1.104 echo "$as_me:$LINENO: checking for working Xlocale" >&5
11477     echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6
11478 root 1.88 if test "${rxvt_cv_func_xlocale+set}" = set; then
11479     echo $ECHO_N "(cached) $ECHO_C" >&6
11480     else
11481     if test "$cross_compiling" = yes; then
11482     { echo "$as_me:$LINENO: WARNING: Define NO_XLOCALE in config.h manually" >&5
11483     echo "$as_me: WARNING: Define NO_XLOCALE in config.h manually" >&2;}
11484     else
11485     cat >conftest.$ac_ext <<_ACEOF
11486     /* confdefs.h. */
11487     _ACEOF
11488     cat confdefs.h >>conftest.$ac_ext
11489     cat >>conftest.$ac_ext <<_ACEOF
11490     /* end confdefs.h. */
11491     #include <X11/Xlib.h>
11492 ayin 1.102 #include <stdlib.h>
11493 root 1.88 main() {
11494     char *p;
11495     if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
11496     exit (XSupportsLocale() ? 0 : 1);
11497     else
11498     exit (1);}
11499     _ACEOF
11500     rm -f conftest$ac_exeext
11501 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11502     (eval $ac_link) 2>&5
11503 root 1.88 ac_status=$?
11504     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11506 ayin 1.104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11507     (eval $ac_try) 2>&5
11508 root 1.88 ac_status=$?
11509     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510     (exit $ac_status); }; }; then
11511     rxvt_cv_func_xlocale=yes
11512     else
11513     echo "$as_me: program exited with status $ac_status" >&5
11514     echo "$as_me: failed program was:" >&5
11515     sed 's/^/| /' conftest.$ac_ext >&5
11516    
11517     ( exit $ac_status )
11518     rxvt_cv_func_xlocale=no
11519     fi
11520 ayin 1.104 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11521 root 1.88 fi
11522     fi
11523 ayin 1.104 echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5
11524     echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6
11525 root 1.88 if test x$rxvt_cv_func_xlocale = xyes; then
11526    
11527     cat >>confdefs.h <<\_ACEOF
11528     #define HAVE_XLOCALE 1
11529     _ACEOF
11530    
11531     fi
11532    
11533 ayin 1.104 echo "$as_me:$LINENO: checking for working X setlocale" >&5
11534     echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6
11535 root 1.88 if test "${rxvt_cv_func_xsetlocale+set}" = set; then
11536     echo $ECHO_N "(cached) $ECHO_C" >&6
11537     else
11538     cat >conftest.$ac_ext <<_ACEOF
11539     /* confdefs.h. */
11540     _ACEOF
11541     cat confdefs.h >>conftest.$ac_ext
11542     cat >>conftest.$ac_ext <<_ACEOF
11543     /* end confdefs.h. */
11544     #define X_LOCALE 1
11545     #include <X11/Xlocale.h>
11546     int
11547     main ()
11548     {
11549     setlocale(LC_CTYPE, "");
11550     ;
11551     return 0;
11552     }
11553     _ACEOF
11554     rm -f conftest.$ac_objext conftest$ac_exeext
11555 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11556     (eval $ac_link) 2>conftest.er1
11557 root 1.88 ac_status=$?
11558     grep -v '^ *+' conftest.er1 >conftest.err
11559     rm -f conftest.er1
11560     cat conftest.err >&5
11561     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 ayin 1.104 (exit $ac_status); } &&
11563     { ac_try='test -z "$ac_cxx_werror_flag"
11564     || test ! -s conftest.err'
11565     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11566     (eval $ac_try) 2>&5
11567     ac_status=$?
11568     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569     (exit $ac_status); }; } &&
11570     { ac_try='test -s conftest$ac_exeext'
11571     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11572     (eval $ac_try) 2>&5
11573     ac_status=$?
11574     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575     (exit $ac_status); }; }; then
11576 root 1.88 rxvt_cv_func_xsetlocale=yes
11577     else
11578     echo "$as_me: failed program was:" >&5
11579     sed 's/^/| /' conftest.$ac_ext >&5
11580    
11581 ayin 1.104 rxvt_cv_func_xsetlocale=no
11582 root 1.88 fi
11583 ayin 1.104 rm -f conftest.err conftest.$ac_objext \
11584 root 1.88 conftest$ac_exeext conftest.$ac_ext
11585     fi
11586 ayin 1.104 echo "$as_me:$LINENO: result: $rxvt_cv_func_xsetlocale" >&5
11587     echo "${ECHO_T}$rxvt_cv_func_xsetlocale" >&6
11588 root 1.88 if test x$rxvt_cv_func_xsetlocale = xyes; then
11589    
11590     cat >>confdefs.h <<\_ACEOF
11591     #define HAVE_XSETLOCALE 1
11592     _ACEOF
11593    
11594     fi
11595     LIBS=$ac_save_LIBS
11596     CFLAGS=$ac_save_CFLAGS
11597    
11598 ayin 1.104 echo "$as_me:$LINENO: checking for working plain setlocale" >&5
11599     echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6
11600 root 1.88 if test "${rxvt_cv_func_setlocale+set}" = set; then
11601     echo $ECHO_N "(cached) $ECHO_C" >&6
11602     else
11603     cat >conftest.$ac_ext <<_ACEOF
11604     /* confdefs.h. */
11605     _ACEOF
11606     cat confdefs.h >>conftest.$ac_ext
11607     cat >>conftest.$ac_ext <<_ACEOF
11608     /* end confdefs.h. */
11609     #include <clocale>
11610     int
11611     main ()
11612     {
11613     setlocale(LC_CTYPE, "");
11614     ;
11615     return 0;
11616     }
11617     _ACEOF
11618     rm -f conftest.$ac_objext conftest$ac_exeext
11619 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11620     (eval $ac_link) 2>conftest.er1
11621 root 1.88 ac_status=$?
11622     grep -v '^ *+' conftest.er1 >conftest.err
11623     rm -f conftest.er1
11624     cat conftest.err >&5
11625     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 ayin 1.104 (exit $ac_status); } &&
11627     { ac_try='test -z "$ac_cxx_werror_flag"
11628     || test ! -s conftest.err'
11629     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11630     (eval $ac_try) 2>&5
11631     ac_status=$?
11632     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633     (exit $ac_status); }; } &&
11634     { ac_try='test -s conftest$ac_exeext'
11635     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11636     (eval $ac_try) 2>&5
11637     ac_status=$?
11638     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11639     (exit $ac_status); }; }; then
11640 root 1.88 rxvt_cv_func_setlocale=yes
11641     else
11642     echo "$as_me: failed program was:" >&5
11643     sed 's/^/| /' conftest.$ac_ext >&5
11644    
11645 ayin 1.104 rxvt_cv_func_setlocale=no
11646 root 1.88 fi
11647 ayin 1.104 rm -f conftest.err conftest.$ac_objext \
11648 root 1.88 conftest$ac_exeext conftest.$ac_ext
11649     fi
11650 ayin 1.104 echo "$as_me:$LINENO: result: $rxvt_cv_func_setlocale" >&5
11651     echo "${ECHO_T}$rxvt_cv_func_setlocale" >&6
11652 root 1.88 if test x$rxvt_cv_func_setlocale = xyes; then
11653    
11654     cat >>confdefs.h <<\_ACEOF
11655     #define HAVE_SETLOCALE 1
11656     _ACEOF
11657    
11658     fi
11659    
11660 ayin 1.104 echo "$as_me:$LINENO: checking for working nl_langinfo" >&5
11661     echo $ECHO_N "checking for working nl_langinfo... $ECHO_C" >&6
11662 root 1.88 if test "${rxvt_cv_func_nl_langinfo+set}" = set; then
11663     echo $ECHO_N "(cached) $ECHO_C" >&6
11664     else
11665     cat >conftest.$ac_ext <<_ACEOF
11666     /* confdefs.h. */
11667     _ACEOF
11668     cat confdefs.h >>conftest.$ac_ext
11669     cat >>conftest.$ac_ext <<_ACEOF
11670     /* end confdefs.h. */
11671     #include <langinfo.h>
11672     int
11673     main ()
11674     {
11675     nl_langinfo(CODESET);
11676     ;
11677     return 0;
11678     }
11679     _ACEOF
11680     rm -f conftest.$ac_objext conftest$ac_exeext
11681 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11682     (eval $ac_link) 2>conftest.er1
11683 root 1.88 ac_status=$?
11684     grep -v '^ *+' conftest.er1 >conftest.err
11685     rm -f conftest.er1
11686     cat conftest.err >&5
11687     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688 ayin 1.104 (exit $ac_status); } &&
11689     { ac_try='test -z "$ac_cxx_werror_flag"
11690     || test ! -s conftest.err'
11691     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11692     (eval $ac_try) 2>&5
11693     ac_status=$?
11694     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695     (exit $ac_status); }; } &&
11696     { ac_try='test -s conftest$ac_exeext'
11697     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11698     (eval $ac_try) 2>&5
11699     ac_status=$?
11700     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701     (exit $ac_status); }; }; then
11702 root 1.88 rxvt_cv_func_nl_langinfo=yes
11703     else
11704     echo "$as_me: failed program was:" >&5
11705     sed 's/^/| /' conftest.$ac_ext >&5
11706    
11707 ayin 1.104 rxvt_cv_func_nl_langinfo=no
11708 root 1.88 fi
11709 ayin 1.104 rm -f conftest.err conftest.$ac_objext \
11710 root 1.88 conftest$ac_exeext conftest.$ac_ext
11711     fi
11712 ayin 1.104 echo "$as_me:$LINENO: result: $rxvt_cv_func_nl_langinfo" >&5
11713     echo "${ECHO_T}$rxvt_cv_func_nl_langinfo" >&6
11714 root 1.88 if test x$rxvt_cv_func_nl_langinfo = xyes; then
11715    
11716     cat >>confdefs.h <<\_ACEOF
11717     #define HAVE_NL_LANGINFO 1
11718     _ACEOF
11719    
11720     fi
11721    
11722    
11723 ayin 1.104 echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5
11724     echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6
11725 root 1.88 if test "${can_pass_fds+set}" = set; then
11726     echo $ECHO_N "(cached) $ECHO_C" >&6
11727     else
11728     cat >conftest.$ac_ext <<_ACEOF
11729     /* confdefs.h. */
11730     _ACEOF
11731     cat confdefs.h >>conftest.$ac_ext
11732     cat >>conftest.$ac_ext <<_ACEOF
11733     /* end confdefs.h. */
11734    
11735 root 1.93 #include <cstddef> // broken bsds (is that redundant?) need this
11736 root 1.88 #include <sys/types.h>
11737     #include <sys/socket.h>
11738     #include <sys/uio.h>
11739    
11740     int
11741     main ()
11742     {
11743    
11744     {
11745     msghdr msg;
11746     iovec iov;
11747     char buf [100];
11748     char data = 0;
11749    
11750     iov.iov_base = &data;
11751     iov.iov_len = 1;
11752    
11753     msg.msg_iov = &iov;
11754     msg.msg_iovlen = 1;
11755     msg.msg_control = buf;
11756     msg.msg_controllen = sizeof buf;
11757    
11758     cmsghdr *cmsg = CMSG_FIRSTHDR (&msg);
11759     cmsg->cmsg_level = SOL_SOCKET;
11760     cmsg->cmsg_type = SCM_RIGHTS;
11761     cmsg->cmsg_len = 100;
11762    
11763     *(int *)CMSG_DATA (cmsg) = 5;
11764    
11765     return sendmsg (3, &msg, 0);
11766     }
11767    
11768     ;
11769     return 0;
11770     }
11771     _ACEOF
11772     rm -f conftest.$ac_objext conftest$ac_exeext
11773 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11774     (eval $ac_link) 2>conftest.er1
11775 root 1.88 ac_status=$?
11776     grep -v '^ *+' conftest.er1 >conftest.err
11777     rm -f conftest.er1
11778     cat conftest.err >&5
11779     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780 ayin 1.104 (exit $ac_status); } &&
11781     { ac_try='test -z "$ac_cxx_werror_flag"
11782     || test ! -s conftest.err'
11783     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11784     (eval $ac_try) 2>&5
11785     ac_status=$?
11786     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787     (exit $ac_status); }; } &&
11788     { ac_try='test -s conftest$ac_exeext'
11789     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11790     (eval $ac_try) 2>&5
11791     ac_status=$?
11792     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793     (exit $ac_status); }; }; then
11794 root 1.88 can_pass_fds=yes
11795     else
11796     echo "$as_me: failed program was:" >&5
11797     sed 's/^/| /' conftest.$ac_ext >&5
11798    
11799 ayin 1.104 can_pass_fds=no
11800 root 1.88 fi
11801 ayin 1.104 rm -f conftest.err conftest.$ac_objext \
11802 root 1.88 conftest$ac_exeext conftest.$ac_ext
11803     fi
11804 ayin 1.104 echo "$as_me:$LINENO: result: $can_pass_fds" >&5
11805     echo "${ECHO_T}$can_pass_fds" >&6
11806 root 1.88 if test x$can_pass_fds = xyes; then
11807    
11808     cat >>confdefs.h <<\_ACEOF
11809     #define HAVE_UNIX_FDPASS 1
11810     _ACEOF
11811    
11812     else
11813     { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5
11814     echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;}
11815     { (exit 1); exit 1; }; }
11816     fi
11817    
11818    
11819 ayin 1.104 echo "$as_me:$LINENO: checking for broken XIM callback" >&5
11820     echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6
11821 root 1.88 if test "${rxvt_broken_ximcb+set}" = set; then
11822 pcg 1.11 echo $ECHO_N "(cached) $ECHO_C" >&6
11823     else
11824 root 1.88 cat >conftest.$ac_ext <<_ACEOF
11825    
11826     #include <X11/Xlib.h>
11827    
11828     void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
11829    
11830     void f() {
11831     XIMCallback cb;
11832     cb.callback = im_destroy_cb;
11833     }
11834    
11835     _ACEOF
11836     rm -f conftest.$ac_objext
11837 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11838     (eval $ac_compile) 2>conftest.er1
11839 root 1.88 ac_status=$?
11840     grep -v '^ *+' conftest.er1 >conftest.err
11841     rm -f conftest.er1
11842     cat conftest.err >&5
11843     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844 ayin 1.104 (exit $ac_status); } &&
11845     { ac_try='test -z "$ac_cxx_werror_flag"
11846     || test ! -s conftest.err'
11847     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11848     (eval $ac_try) 2>&5
11849     ac_status=$?
11850     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851     (exit $ac_status); }; } &&
11852     { ac_try='test -s conftest.$ac_objext'
11853     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11854     (eval $ac_try) 2>&5
11855     ac_status=$?
11856     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857     (exit $ac_status); }; }; then
11858 root 1.88 rxvt_broken_ximcb=yes
11859     else
11860     echo "$as_me: failed program was:" >&5
11861     sed 's/^/| /' conftest.$ac_ext >&5
11862    
11863 ayin 1.104 rxvt_broken_ximcb=no
11864 root 1.88 fi
11865 ayin 1.104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11866 root 1.88 fi
11867 ayin 1.104 echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
11868     echo "${ECHO_T}$rxvt_broken_ximcb" >&6
11869 root 1.88
11870     if test x$rxvt_broken_ximcb = xyes; then
11871    
11872     cat >>confdefs.h <<\_ACEOF
11873     #define XIMCB_PROTO_BROKEN 1
11874     _ACEOF
11875    
11876     fi
11877    
11878    
11879    
11880    
11881    
11882    
11883    
11884     for ac_header in \
11885     pty.h \
11886     util.h \
11887     libutil.h \
11888     sys/ioctl.h \
11889     sys/stropts.h \
11890    
11891 root 1.83 do
11892 root 1.88 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11893 ayin 1.104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11894     echo "$as_me:$LINENO: checking for $ac_header" >&5
11895     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11896     if eval "test \"\${$as_ac_Header+set}\" = set"; then
11897 root 1.88 echo $ECHO_N "(cached) $ECHO_C" >&6
11898     fi
11899 ayin 1.104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11900     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11901 root 1.88 else
11902     # Is the header compilable?
11903 ayin 1.104 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11904     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11905 root 1.88 cat >conftest.$ac_ext <<_ACEOF
11906     /* confdefs.h. */
11907     _ACEOF
11908     cat confdefs.h >>conftest.$ac_ext
11909     cat >>conftest.$ac_ext <<_ACEOF
11910     /* end confdefs.h. */
11911     $ac_includes_default
11912     #include <$ac_header>
11913     _ACEOF
11914     rm -f conftest.$ac_objext
11915 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11916     (eval $ac_compile) 2>conftest.er1
11917 root 1.88 ac_status=$?
11918     grep -v '^ *+' conftest.er1 >conftest.err
11919     rm -f conftest.er1
11920     cat conftest.err >&5
11921     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922 ayin 1.104 (exit $ac_status); } &&
11923     { ac_try='test -z "$ac_cxx_werror_flag"
11924     || test ! -s conftest.err'
11925     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11926     (eval $ac_try) 2>&5
11927     ac_status=$?
11928     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929     (exit $ac_status); }; } &&
11930     { ac_try='test -s conftest.$ac_objext'
11931     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11932     (eval $ac_try) 2>&5
11933     ac_status=$?
11934     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935     (exit $ac_status); }; }; then
11936 root 1.88 ac_header_compiler=yes
11937     else
11938     echo "$as_me: failed program was:" >&5
11939     sed 's/^/| /' conftest.$ac_ext >&5
11940    
11941 ayin 1.104 ac_header_compiler=no
11942 root 1.88 fi
11943 ayin 1.104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11944     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11945     echo "${ECHO_T}$ac_header_compiler" >&6
11946 root 1.88
11947     # Is the header present?
11948 ayin 1.104 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11949     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11950 root 1.88 cat >conftest.$ac_ext <<_ACEOF
11951     /* confdefs.h. */
11952     _ACEOF
11953     cat confdefs.h >>conftest.$ac_ext
11954     cat >>conftest.$ac_ext <<_ACEOF
11955     /* end confdefs.h. */
11956     #include <$ac_header>
11957     _ACEOF
11958 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11959     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11960 root 1.88 ac_status=$?
11961     grep -v '^ *+' conftest.er1 >conftest.err
11962     rm -f conftest.er1
11963     cat conftest.err >&5
11964     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 ayin 1.104 (exit $ac_status); } >/dev/null; then
11966     if test -s conftest.err; then
11967     ac_cpp_err=$ac_cxx_preproc_warn_flag
11968     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11969     else
11970     ac_cpp_err=
11971     fi
11972     else
11973     ac_cpp_err=yes
11974     fi
11975     if test -z "$ac_cpp_err"; then
11976 root 1.88 ac_header_preproc=yes
11977     else
11978     echo "$as_me: failed program was:" >&5
11979     sed 's/^/| /' conftest.$ac_ext >&5
11980    
11981     ac_header_preproc=no
11982     fi
11983     rm -f conftest.err conftest.$ac_ext
11984 ayin 1.104 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11985     echo "${ECHO_T}$ac_header_preproc" >&6
11986 root 1.88
11987     # So? What about this header?
11988     case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11989     yes:no: )
11990     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11991     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11992     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11993     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11994     ac_header_preproc=yes
11995     ;;
11996     no:yes:* )
11997     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11998     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11999     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12000     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12001     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12002     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12003     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12004     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12005     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12006     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12007     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12008     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12009 ayin 1.104 (
12010     cat <<\_ASBOX
12011     ## ------------------------------------------ ##
12012     ## Report this to the AC_PACKAGE_NAME lists. ##
12013     ## ------------------------------------------ ##
12014     _ASBOX
12015     ) |
12016     sed "s/^/$as_me: WARNING: /" >&2
12017 root 1.88 ;;
12018     esac
12019 ayin 1.104 echo "$as_me:$LINENO: checking for $ac_header" >&5
12020     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12021     if eval "test \"\${$as_ac_Header+set}\" = set"; then
12022 root 1.88 echo $ECHO_N "(cached) $ECHO_C" >&6
12023     else
12024     eval "$as_ac_Header=\$ac_header_preproc"
12025     fi
12026 ayin 1.104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12027     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12028 root 1.88
12029     fi
12030     if test `eval echo '${'$as_ac_Header'}'` = yes; then
12031     cat >>confdefs.h <<_ACEOF
12032     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12033     _ACEOF
12034 root 1.83
12035 pcg 1.11 fi
12036 root 1.83
12037 root 1.88 done
12038    
12039 root 1.83
12040    
12041    
12042    
12043    
12044    
12045 root 1.94
12046    
12047    
12048    
12049 root 1.88 for ac_func in \
12050     revoke \
12051     _getpty \
12052     getpt \
12053     posix_openpt \
12054     isastream \
12055 root 1.94 setuid \
12056     seteuid \
12057     setreuid \
12058     setresuid \
12059 root 1.83
12060 root 1.88 do
12061     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12062 ayin 1.104 echo "$as_me:$LINENO: checking for $ac_func" >&5
12063     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12064     if eval "test \"\${$as_ac_var+set}\" = set"; then
12065 root 1.83 echo $ECHO_N "(cached) $ECHO_C" >&6
12066     else
12067     cat >conftest.$ac_ext <<_ACEOF
12068     /* confdefs.h. */
12069     _ACEOF
12070     cat confdefs.h >>conftest.$ac_ext
12071     cat >>conftest.$ac_ext <<_ACEOF
12072     /* end confdefs.h. */
12073 root 1.88 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12074     For example, HP-UX 11i <limits.h> declares gettimeofday. */
12075     #define $ac_func innocuous_$ac_func
12076    
12077     /* System header to define __stub macros and hopefully few prototypes,
12078     which can conflict with char $ac_func (); below.
12079     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12080     <limits.h> exists even on freestanding compilers. */
12081    
12082     #ifdef __STDC__
12083     # include <limits.h>
12084     #else
12085     # include <assert.h>
12086     #endif
12087    
12088     #undef $ac_func
12089    
12090 ayin 1.104 /* Override any gcc2 internal prototype to avoid an error. */
12091 root 1.88 #ifdef __cplusplus
12092     extern "C"
12093 ayin 1.104 {
12094 root 1.88 #endif
12095 ayin 1.104 /* We use char because int might match the return type of a gcc2
12096     builtin and then its argument prototype would still apply. */
12097 root 1.88 char $ac_func ();
12098     /* The GNU C library defines this for functions which it implements
12099     to always fail with ENOSYS. Some functions are actually named
12100     something starting with __ and the normal name is an alias. */
12101 ayin 1.104 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12102 root 1.88 choke me
12103 ayin 1.104 #else
12104     char (*f) () = $ac_func;
12105     #endif
12106     #ifdef __cplusplus
12107     }
12108 root 1.88 #endif
12109    
12110 root 1.83 int
12111     main ()
12112     {
12113 ayin 1.104 return f != $ac_func;
12114 root 1.56 ;
12115     return 0;
12116     }
12117     _ACEOF
12118     rm -f conftest.$ac_objext conftest$ac_exeext
12119 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12120     (eval $ac_link) 2>conftest.er1
12121 root 1.56 ac_status=$?
12122     grep -v '^ *+' conftest.er1 >conftest.err
12123     rm -f conftest.er1
12124     cat conftest.err >&5
12125     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126 ayin 1.104 (exit $ac_status); } &&
12127     { ac_try='test -z "$ac_cxx_werror_flag"
12128     || test ! -s conftest.err'
12129     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12130     (eval $ac_try) 2>&5
12131     ac_status=$?
12132     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133     (exit $ac_status); }; } &&
12134     { ac_try='test -s conftest$ac_exeext'
12135     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12136     (eval $ac_try) 2>&5
12137     ac_status=$?
12138     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139     (exit $ac_status); }; }; then
12140 root 1.88 eval "$as_ac_var=yes"
12141 root 1.56 else
12142     echo "$as_me: failed program was:" >&5
12143     sed 's/^/| /' conftest.$ac_ext >&5
12144    
12145 ayin 1.104 eval "$as_ac_var=no"
12146 root 1.56 fi
12147 ayin 1.104 rm -f conftest.err conftest.$ac_objext \
12148 root 1.56 conftest$ac_exeext conftest.$ac_ext
12149     fi
12150 ayin 1.104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12151     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12152 root 1.88 if test `eval echo '${'$as_ac_var'}'` = yes; then
12153     cat >>confdefs.h <<_ACEOF
12154     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12155     _ACEOF
12156    
12157     fi
12158     done
12159    
12160    
12161     have_clone=no
12162    
12163 ayin 1.104 echo "$as_me:$LINENO: checking for /dev/ptym/clone" >&5
12164     echo $ECHO_N "checking for /dev/ptym/clone... $ECHO_C" >&6
12165 root 1.88 if test -e /dev/ptym/clone; then
12166 ayin 1.104 echo "$as_me:$LINENO: result: yes" >&5
12167     echo "${ECHO_T}yes" >&6
12168 root 1.88
12169     cat >>confdefs.h <<\_ACEOF
12170     #define HAVE_DEV_CLONE 1
12171     _ACEOF
12172    
12173 root 1.83
12174     cat >>confdefs.h <<\_ACEOF
12175 root 1.88 #define CLONE_DEVICE "/dev/ptym/clone"
12176 root 1.56 _ACEOF
12177    
12178 root 1.88 have_clone=yes
12179     else
12180 ayin 1.104 echo "$as_me:$LINENO: result: no" >&5
12181     echo "${ECHO_T}no" >&6
12182 root 1.56 fi
12183    
12184 ayin 1.104 echo "$as_me:$LINENO: checking for /dev/ptc" >&5
12185     echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
12186 root 1.88 if test -e /dev/ptc; then
12187 ayin 1.104 echo "$as_me:$LINENO: result: yes" >&5
12188     echo "${ECHO_T}yes" >&6
12189 root 1.88
12190     cat >>confdefs.h <<\_ACEOF
12191     #define HAVE_DEV_PTC 1
12192     _ACEOF
12193    
12194    
12195     cat >>confdefs.h <<\_ACEOF
12196     #define CLONE_DEVICE "/dev/ptc"
12197     _ACEOF
12198    
12199     have_clone=yes
12200 root 1.31 else
12201 ayin 1.104 echo "$as_me:$LINENO: result: no" >&5
12202     echo "${ECHO_T}no" >&6
12203 root 1.88 fi
12204    
12205     case $host in
12206     *-*-cygwin*)
12207     have_clone=yes
12208    
12209     cat >>confdefs.h <<\_ACEOF
12210     #define CLONE_DEVICE "/dev/ptmx"
12211     _ACEOF
12212    
12213     ;;
12214     *)
12215 ayin 1.104 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
12216     echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
12217 root 1.88 if test -e /dev/ptmx; then
12218 ayin 1.104 echo "$as_me:$LINENO: result: yes" >&5
12219     echo "${ECHO_T}yes" >&6
12220 root 1.88
12221     cat >>confdefs.h <<\_ACEOF
12222     #define HAVE_DEV_PTMX 1
12223     _ACEOF
12224    
12225    
12226     cat >>confdefs.h <<\_ACEOF
12227     #define CLONE_DEVICE "/dev/ptmx"
12228     _ACEOF
12229    
12230     have_clone=yes
12231     else
12232 ayin 1.104 echo "$as_me:$LINENO: result: no" >&5
12233     echo "${ECHO_T}no" >&6
12234 root 1.88 fi
12235     ;;
12236     esac
12237    
12238     if test x$ac_cv_func_getpt = xyes -o x$ac_cv_func_posix_openpt = xyes -o x$have_clone = xyes; then
12239 ayin 1.104 echo "$as_me:$LINENO: checking for UNIX98 ptys" >&5
12240     echo $ECHO_N "checking for UNIX98 ptys... $ECHO_C" >&6
12241 root 1.83 cat >conftest.$ac_ext <<_ACEOF
12242     /* confdefs.h. */
12243     _ACEOF
12244     cat confdefs.h >>conftest.$ac_ext
12245     cat >>conftest.$ac_ext <<_ACEOF
12246     /* end confdefs.h. */
12247 root 1.88 #include <stdlib.h>
12248 root 1.83 int
12249     main ()
12250     {
12251 root 1.88 grantpt(0);unlockpt(0);ptsname(0);
12252 root 1.83 ;
12253     return 0;
12254 root 1.31 }
12255     _ACEOF
12256 root 1.83 rm -f conftest.$ac_objext conftest$ac_exeext
12257 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12258     (eval $ac_link) 2>conftest.er1
12259 root 1.31 ac_status=$?
12260     grep -v '^ *+' conftest.er1 >conftest.err
12261     rm -f conftest.er1
12262     cat conftest.err >&5
12263     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 ayin 1.104 (exit $ac_status); } &&
12265     { ac_try='test -z "$ac_cxx_werror_flag"
12266     || test ! -s conftest.err'
12267     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12268     (eval $ac_try) 2>&5
12269     ac_status=$?
12270     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271     (exit $ac_status); }; } &&
12272     { ac_try='test -s conftest$ac_exeext'
12273     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12274     (eval $ac_try) 2>&5
12275     ac_status=$?
12276     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277     (exit $ac_status); }; }; then
12278 root 1.88 unix98_pty=yes
12279    
12280     cat >>confdefs.h <<\_ACEOF
12281     #define UNIX98_PTY 1
12282     _ACEOF
12283    
12284 ayin 1.104 echo "$as_me:$LINENO: result: yes" >&5
12285     echo "${ECHO_T}yes" >&6
12286 root 1.31 else
12287     echo "$as_me: failed program was:" >&5
12288     sed 's/^/| /' conftest.$ac_ext >&5
12289    
12290 ayin 1.104 echo "$as_me:$LINENO: result: no" >&5
12291     echo "${ECHO_T}no" >&6
12292 root 1.31 fi
12293 ayin 1.104 rm -f conftest.err conftest.$ac_objext \
12294 root 1.83 conftest$ac_exeext conftest.$ac_ext
12295 root 1.31 fi
12296    
12297 root 1.88 if test -z "$unix98_pty"; then
12298 root 1.31
12299 root 1.88 for ac_func in openpty
12300     do
12301     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12302 ayin 1.104 echo "$as_me:$LINENO: checking for $ac_func" >&5
12303     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12304     if eval "test \"\${$as_ac_var+set}\" = set"; then
12305 root 1.66 echo $ECHO_N "(cached) $ECHO_C" >&6
12306     else
12307     cat >conftest.$ac_ext <<_ACEOF
12308     /* confdefs.h. */
12309     _ACEOF
12310     cat confdefs.h >>conftest.$ac_ext
12311     cat >>conftest.$ac_ext <<_ACEOF
12312     /* end confdefs.h. */
12313 root 1.88 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12314     For example, HP-UX 11i <limits.h> declares gettimeofday. */
12315     #define $ac_func innocuous_$ac_func
12316    
12317     /* System header to define __stub macros and hopefully few prototypes,
12318     which can conflict with char $ac_func (); below.
12319     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12320     <limits.h> exists even on freestanding compilers. */
12321    
12322     #ifdef __STDC__
12323     # include <limits.h>
12324     #else
12325     # include <assert.h>
12326     #endif
12327    
12328     #undef $ac_func
12329    
12330 ayin 1.104 /* Override any gcc2 internal prototype to avoid an error. */
12331 root 1.88 #ifdef __cplusplus
12332     extern "C"
12333 ayin 1.104 {
12334 root 1.88 #endif
12335 ayin 1.104 /* We use char because int might match the return type of a gcc2
12336     builtin and then its argument prototype would still apply. */
12337 root 1.88 char $ac_func ();
12338     /* The GNU C library defines this for functions which it implements
12339     to always fail with ENOSYS. Some functions are actually named
12340     something starting with __ and the normal name is an alias. */
12341 ayin 1.104 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12342 root 1.88 choke me
12343 ayin 1.104 #else
12344     char (*f) () = $ac_func;
12345     #endif
12346     #ifdef __cplusplus
12347     }
12348 root 1.88 #endif
12349    
12350 root 1.66 int
12351     main ()
12352     {
12353 ayin 1.104 return f != $ac_func;
12354 root 1.66 ;
12355     return 0;
12356     }
12357     _ACEOF
12358     rm -f conftest.$ac_objext conftest$ac_exeext
12359 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12360     (eval $ac_link) 2>conftest.er1
12361 root 1.66 ac_status=$?
12362     grep -v '^ *+' conftest.er1 >conftest.err
12363     rm -f conftest.er1
12364     cat conftest.err >&5
12365     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 ayin 1.104 (exit $ac_status); } &&
12367     { ac_try='test -z "$ac_cxx_werror_flag"
12368     || test ! -s conftest.err'
12369     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12370     (eval $ac_try) 2>&5
12371     ac_status=$?
12372     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373     (exit $ac_status); }; } &&
12374     { ac_try='test -s conftest$ac_exeext'
12375     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12376     (eval $ac_try) 2>&5
12377     ac_status=$?
12378     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379     (exit $ac_status); }; }; then
12380 root 1.88 eval "$as_ac_var=yes"
12381 root 1.66 else
12382     echo "$as_me: failed program was:" >&5
12383     sed 's/^/| /' conftest.$ac_ext >&5
12384    
12385 ayin 1.104 eval "$as_ac_var=no"
12386 root 1.66 fi
12387 ayin 1.104 rm -f conftest.err conftest.$ac_objext \
12388 root 1.66 conftest$ac_exeext conftest.$ac_ext
12389     fi
12390 ayin 1.104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12391     echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12392 root 1.88 if test `eval echo '${'$as_ac_var'}'` = yes; then
12393     cat >>confdefs.h <<_ACEOF
12394     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12395 root 1.83 _ACEOF
12396    
12397 root 1.88 else
12398 ayin 1.104 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
12399     echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
12400 root 1.88 if test "${ac_cv_lib_util_openpty+set}" = set; then
12401 root 1.66 echo $ECHO_N "(cached) $ECHO_C" >&6
12402     else
12403 root 1.88 ac_check_lib_save_LIBS=$LIBS
12404     LIBS="-lutil $LIBS"
12405     cat >conftest.$ac_ext <<_ACEOF
12406     /* confdefs.h. */
12407     _ACEOF
12408     cat confdefs.h >>conftest.$ac_ext
12409     cat >>conftest.$ac_ext <<_ACEOF
12410     /* end confdefs.h. */
12411 root 1.87
12412 ayin 1.104 /* Override any gcc2 internal prototype to avoid an error. */
12413 root 1.88 #ifdef __cplusplus
12414     extern "C"
12415     #endif
12416 ayin 1.104 /* We use char because int might match the return type of a gcc2
12417     builtin and then its argument prototype would still apply. */
12418 root 1.88 char openpty ();
12419     int
12420     main ()
12421     {
12422 ayin 1.104 openpty ();
12423 root 1.88 ;
12424     return 0;
12425 root 1.66 }
12426     _ACEOF
12427 root 1.88 rm -f conftest.$ac_objext conftest$ac_exeext
12428 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12429     (eval $ac_link) 2>conftest.er1
12430 root 1.66 ac_status=$?
12431     grep -v '^ *+' conftest.er1 >conftest.err
12432     rm -f conftest.er1
12433     cat conftest.err >&5
12434     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 ayin 1.104 (exit $ac_status); } &&
12436     { ac_try='test -z "$ac_cxx_werror_flag"
12437     || test ! -s conftest.err'
12438     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12439     (eval $ac_try) 2>&5
12440     ac_status=$?
12441     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442     (exit $ac_status); }; } &&
12443     { ac_try='test -s conftest$ac_exeext'
12444     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12445     (eval $ac_try) 2>&5
12446     ac_status=$?
12447     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448     (exit $ac_status); }; }; then
12449 root 1.88 ac_cv_lib_util_openpty=yes
12450 root 1.66 else
12451     echo "$as_me: failed program was:" >&5
12452     sed 's/^/| /' conftest.$ac_ext >&5
12453    
12454 ayin 1.104 ac_cv_lib_util_openpty=no
12455 root 1.88 fi
12456 ayin 1.104 rm -f conftest.err conftest.$ac_objext \
12457 root 1.88 conftest$ac_exeext conftest.$ac_ext
12458     LIBS=$ac_check_lib_save_LIBS
12459 root 1.66 fi
12460 ayin 1.104 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
12461     echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
12462 root 1.88 if test $ac_cv_lib_util_openpty = yes; then
12463     cat >>confdefs.h <<\_ACEOF
12464     #define HAVE_OPENPTY 1
12465     _ACEOF
12466     LIBS="$LIBS -lutil"
12467 root 1.66 fi
12468 root 1.87
12469 root 1.88 fi
12470     done
12471 pcg 1.1
12472     fi
12473    
12474    
12475 root 1.90
12476 ayin 1.104 echo "$as_me:$LINENO: checking for tty group" >&5
12477     echo $ECHO_N "checking for tty group... $ECHO_C" >&6
12478 root 1.90 if test "${tty_group+set}" = set; then
12479     echo $ECHO_N "(cached) $ECHO_C" >&6
12480     else
12481     if test "$cross_compiling" = yes; then
12482     tty_group=no
12483     else
12484     cat >conftest.$ac_ext <<_ACEOF
12485     /* confdefs.h. */
12486     _ACEOF
12487     cat confdefs.h >>conftest.$ac_ext
12488     cat >>conftest.$ac_ext <<_ACEOF
12489     /* end confdefs.h. */
12490    
12491     #include <sys/types.h>
12492     #include <sys/stat.h>
12493     #include <unistd.h>
12494     #include <grp.h>
12495    
12496     main()
12497     {
12498     struct stat st;
12499     struct group *gr;
12500     char *tty;
12501     gr = getgrnam("tty");
12502     tty = ttyname(0);
12503     if (gr != 0
12504     && tty != 0
12505     && (stat(tty, &st)) == 0
12506     && st.st_gid == gr->gr_gid)
12507     return 0;
12508     else
12509     return 1;
12510     }
12511     _ACEOF
12512     rm -f conftest$ac_exeext
12513 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12514     (eval $ac_link) 2>&5
12515 root 1.90 ac_status=$?
12516     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12518 ayin 1.104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12519     (eval $ac_try) 2>&5
12520 root 1.90 ac_status=$?
12521     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522     (exit $ac_status); }; }; then
12523     tty_group=yes
12524     else
12525     echo "$as_me: program exited with status $ac_status" >&5
12526     echo "$as_me: failed program was:" >&5
12527     sed 's/^/| /' conftest.$ac_ext >&5
12528    
12529     ( exit $ac_status )
12530     tty_group=no
12531     fi
12532 ayin 1.104 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12533 root 1.90 fi
12534     fi
12535 ayin 1.104 echo "$as_me:$LINENO: result: $tty_group" >&5
12536     echo "${ECHO_T}$tty_group" >&6
12537 root 1.90 if test x$tty_group = xyes; then
12538    
12539     cat >>confdefs.h <<\_ACEOF
12540     #define TTY_GID_SUPPORT 1
12541     _ACEOF
12542    
12543     fi
12544    
12545 root 1.39 if test x$support_xft = xyes; then
12546 root 1.86 # Extract the first word of "pkg-config", so it can be a program name with args.
12547     set dummy pkg-config; ac_word=$2
12548 ayin 1.104 echo "$as_me:$LINENO: checking for $ac_word" >&5
12549     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12550 root 1.86 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12551     echo $ECHO_N "(cached) $ECHO_C" >&6
12552     else
12553     case $PKG_CONFIG in
12554     [\\/]* | ?:[\\/]*)
12555     ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12556     ;;
12557     *)
12558     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12559     for as_dir in $PATH
12560     do
12561     IFS=$as_save_IFS
12562     test -z "$as_dir" && as_dir=.
12563     for ac_exec_ext in '' $ac_executable_extensions; do
12564 ayin 1.104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12565 root 1.86 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12566     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12567     break 2
12568     fi
12569     done
12570     done
12571    
12572     test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12573     ;;
12574     esac
12575     fi
12576     PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12577 ayin 1.104
12578 root 1.86 if test -n "$PKG_CONFIG"; then
12579 ayin 1.104 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12580     echo "${ECHO_T}$PKG_CONFIG" >&6
12581 root 1.86 else
12582 ayin 1.104 echo "$as_me:$LINENO: result: no" >&5
12583     echo "${ECHO_T}no" >&6
12584 root 1.86 fi
12585    
12586 root 1.90 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
12587     LIBS="$LIBS `$PKG_CONFIG xft --libs`"
12588     CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
12589     else
12590     # Extract the first word of "xft-config", so it can be a program name with args.
12591 root 1.86 set dummy xft-config; ac_word=$2
12592 ayin 1.104 echo "$as_me:$LINENO: checking for $ac_word" >&5
12593     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12594 root 1.86 if test "${ac_cv_path_XFT_CONFIG+set}" = set; then
12595     echo $ECHO_N "(cached) $ECHO_C" >&6
12596     else
12597     case $XFT_CONFIG in
12598     [\\/]* | ?:[\\/]*)
12599     ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path.
12600     ;;
12601     *)
12602     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12603     for as_dir in $PATH
12604     do
12605     IFS=$as_save_IFS
12606     test -z "$as_dir" && as_dir=.
12607     for ac_exec_ext in '' $ac_executable_extensions; do
12608 ayin 1.104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12609 root 1.86 ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12610     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12611     break 2
12612     fi
12613     done
12614     done
12615    
12616     test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no"
12617     ;;
12618     esac
12619     fi
12620     XFT_CONFIG=$ac_cv_path_XFT_CONFIG
12621 ayin 1.104
12622 root 1.86 if test -n "$XFT_CONFIG"; then
12623 ayin 1.104 echo "$as_me:$LINENO: result: $XFT_CONFIG" >&5
12624     echo "${ECHO_T}$XFT_CONFIG" >&6
12625 root 1.86 else
12626 ayin 1.104 echo "$as_me:$LINENO: result: no" >&5
12627     echo "${ECHO_T}no" >&6
12628 root 1.86 fi
12629    
12630     if test $XFT_CONFIG != no; then
12631     LIBS="$LIBS `$XFT_CONFIG --libs`"
12632     CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
12633     fi
12634     fi
12635 root 1.34
12636    
12637 root 1.39 for ac_header in X11/Xft/Xft.h
12638     do
12639     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12640 ayin 1.104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12641     echo "$as_me:$LINENO: checking for $ac_header" >&5
12642     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12643     if eval "test \"\${$as_ac_Header+set}\" = set"; then
12644 root 1.39 echo $ECHO_N "(cached) $ECHO_C" >&6
12645 root 1.34 fi
12646 ayin 1.104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12647     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12648 root 1.39 else
12649     # Is the header compilable?
12650 ayin 1.104 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12651     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12652 root 1.39 cat >conftest.$ac_ext <<_ACEOF
12653     /* confdefs.h. */
12654 root 1.26 _ACEOF
12655 root 1.39 cat confdefs.h >>conftest.$ac_ext
12656     cat >>conftest.$ac_ext <<_ACEOF
12657     /* end confdefs.h. */
12658     $ac_includes_default
12659     #include <$ac_header>
12660 root 1.31 _ACEOF
12661 root 1.39 rm -f conftest.$ac_objext
12662 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12663     (eval $ac_compile) 2>conftest.er1
12664 root 1.39 ac_status=$?
12665     grep -v '^ *+' conftest.er1 >conftest.err
12666     rm -f conftest.er1
12667     cat conftest.err >&5
12668     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669 ayin 1.104 (exit $ac_status); } &&
12670     { ac_try='test -z "$ac_cxx_werror_flag"
12671     || test ! -s conftest.err'
12672     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12673     (eval $ac_try) 2>&5
12674     ac_status=$?
12675     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676     (exit $ac_status); }; } &&
12677     { ac_try='test -s conftest.$ac_objext'
12678     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12679     (eval $ac_try) 2>&5
12680     ac_status=$?
12681     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682     (exit $ac_status); }; }; then
12683 root 1.39 ac_header_compiler=yes
12684     else
12685     echo "$as_me: failed program was:" >&5
12686     sed 's/^/| /' conftest.$ac_ext >&5
12687 root 1.31
12688 ayin 1.104 ac_header_compiler=no
12689 root 1.31 fi
12690 ayin 1.104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12691     echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12692     echo "${ECHO_T}$ac_header_compiler" >&6
12693 pcg 1.24
12694 root 1.39 # Is the header present?
12695 ayin 1.104 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12696     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12697 root 1.39 cat >conftest.$ac_ext <<_ACEOF
12698     /* confdefs.h. */
12699 pcg 1.24 _ACEOF
12700 root 1.39 cat confdefs.h >>conftest.$ac_ext
12701     cat >>conftest.$ac_ext <<_ACEOF
12702     /* end confdefs.h. */
12703     #include <$ac_header>
12704 pcg 1.11 _ACEOF
12705 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12706     (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12707 root 1.39 ac_status=$?
12708     grep -v '^ *+' conftest.er1 >conftest.err
12709     rm -f conftest.er1
12710     cat conftest.err >&5
12711     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 ayin 1.104 (exit $ac_status); } >/dev/null; then
12713     if test -s conftest.err; then
12714     ac_cpp_err=$ac_cxx_preproc_warn_flag
12715     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12716     else
12717     ac_cpp_err=
12718     fi
12719     else
12720     ac_cpp_err=yes
12721     fi
12722     if test -z "$ac_cpp_err"; then
12723 root 1.39 ac_header_preproc=yes
12724     else
12725     echo "$as_me: failed program was:" >&5
12726     sed 's/^/| /' conftest.$ac_ext >&5
12727 pcg 1.1
12728 root 1.39 ac_header_preproc=no
12729 pcg 1.1 fi
12730 root 1.39 rm -f conftest.err conftest.$ac_ext
12731 ayin 1.104 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12732     echo "${ECHO_T}$ac_header_preproc" >&6
12733 pcg 1.1
12734 root 1.39 # So? What about this header?
12735     case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
12736     yes:no: )
12737     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12738     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12739     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12740     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12741     ac_header_preproc=yes
12742     ;;
12743     no:yes:* )
12744     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12745     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12746     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12747     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12748     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12749     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12750     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12751     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12752     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12753     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12754     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12755     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12756 ayin 1.104 (
12757     cat <<\_ASBOX
12758     ## ------------------------------------------ ##
12759     ## Report this to the AC_PACKAGE_NAME lists. ##
12760     ## ------------------------------------------ ##
12761     _ASBOX
12762     ) |
12763     sed "s/^/$as_me: WARNING: /" >&2
12764 root 1.39 ;;
12765     esac
12766 ayin 1.104 echo "$as_me:$LINENO: checking for $ac_header" >&5
12767     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12768     if eval "test \"\${$as_ac_Header+set}\" = set"; then
12769 root 1.39 echo $ECHO_N "(cached) $ECHO_C" >&6
12770     else
12771     eval "$as_ac_Header=\$ac_header_preproc"
12772 pcg 1.1 fi
12773 ayin 1.104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12774     echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12775 pcg 1.1
12776     fi
12777 root 1.39 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12778     cat >>confdefs.h <<_ACEOF
12779     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12780 pcg 1.11 _ACEOF
12781 pcg 1.1
12782 root 1.39 else
12783     support_xft=no
12784 pcg 1.1 fi
12785 pcg 1.11
12786 root 1.39 done
12787 pcg 1.1
12788 pcg 1.11
12789 ayin 1.104 echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5
12790     echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6
12791 root 1.39 if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then
12792     echo $ECHO_N "(cached) $ECHO_C" >&6
12793     else
12794     ac_check_lib_save_LIBS=$LIBS
12795     LIBS="-lXft $LIBS"
12796     cat >conftest.$ac_ext <<_ACEOF
12797     /* confdefs.h. */
12798     _ACEOF
12799     cat confdefs.h >>conftest.$ac_ext
12800     cat >>conftest.$ac_ext <<_ACEOF
12801     /* end confdefs.h. */
12802    
12803 ayin 1.104 /* Override any gcc2 internal prototype to avoid an error. */
12804 root 1.39 #ifdef __cplusplus
12805     extern "C"
12806     #endif
12807 ayin 1.104 /* We use char because int might match the return type of a gcc2
12808     builtin and then its argument prototype would still apply. */
12809 root 1.39 char XftDrawString32 ();
12810     int
12811     main ()
12812     {
12813 ayin 1.104 XftDrawString32 ();
12814 root 1.39 ;
12815     return 0;
12816     }
12817     _ACEOF
12818     rm -f conftest.$ac_objext conftest$ac_exeext
12819 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12820     (eval $ac_link) 2>conftest.er1
12821 root 1.39 ac_status=$?
12822     grep -v '^ *+' conftest.er1 >conftest.err
12823     rm -f conftest.er1
12824     cat conftest.err >&5
12825     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 ayin 1.104 (exit $ac_status); } &&
12827     { ac_try='test -z "$ac_cxx_werror_flag"
12828     || test ! -s conftest.err'
12829     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12830     (eval $ac_try) 2>&5
12831     ac_status=$?
12832     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833     (exit $ac_status); }; } &&
12834     { ac_try='test -s conftest$ac_exeext'
12835     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12836     (eval $ac_try) 2>&5
12837     ac_status=$?
12838     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839     (exit $ac_status); }; }; then
12840 root 1.39 ac_cv_lib_Xft_XftDrawString32=yes
12841     else
12842     echo "$as_me: failed program was:" >&5
12843     sed 's/^/| /' conftest.$ac_ext >&5
12844    
12845 ayin 1.104 ac_cv_lib_Xft_XftDrawString32=no
12846 root 1.39 fi
12847 ayin 1.104 rm -f conftest.err conftest.$ac_objext \
12848 root 1.39 conftest$ac_exeext conftest.$ac_ext
12849     LIBS=$ac_check_lib_save_LIBS
12850     fi
12851 ayin 1.104 echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5
12852     echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6
12853 root 1.39 if test $ac_cv_lib_Xft_XftDrawString32 = yes; then
12854     cat >>confdefs.h <<_ACEOF
12855     #define HAVE_LIBXFT 1
12856     _ACEOF
12857    
12858     LIBS="-lXft $LIBS"
12859    
12860     else
12861     support_xft=no
12862     fi
12863    
12864    
12865     if test x$support_xft = xyes; then
12866    
12867     cat >>confdefs.h <<\_ACEOF
12868     #define XFT 1
12869     _ACEOF
12870    
12871     fi
12872     fi
12873     if test x$support_styles = xyes; then
12874    
12875     cat >>confdefs.h <<\_ACEOF
12876     #define ENABLE_STYLES 1
12877     _ACEOF
12878    
12879     fi
12880     if test x$support_iso14755 = xyes; then
12881    
12882     cat >>confdefs.h <<\_ACEOF
12883     #define ISO_14755 1
12884     _ACEOF
12885    
12886     fi
12887     if test x$support_8bitctrls = xyes; then
12888    
12889     cat >>confdefs.h <<\_ACEOF
12890     #define EIGHT_BIT_CONTROLS 1
12891     _ACEOF
12892    
12893     fi
12894     if test x$support_fading = xyes; then
12895    
12896     cat >>confdefs.h <<\_ACEOF
12897     #define OFF_FOCUS_FADING 1
12898     _ACEOF
12899    
12900     fi
12901     if test x$support_tinting = xyes; then
12902    
12903     cat >>confdefs.h <<\_ACEOF
12904     #define TINTING 1
12905     _ACEOF
12906    
12907     fi
12908     if test x$support_inheritpixmap = xyes; then
12909    
12910     cat >>confdefs.h <<\_ACEOF
12911     #define TRANSPARENT 1
12912     _ACEOF
12913    
12914     fi
12915     if test x$support_keepscrolling = xno; then
12916    
12917     cat >>confdefs.h <<\_ACEOF
12918     #define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
12919     _ACEOF
12920    
12921     fi
12922     if test x$support_selectionscrolling = xyes; then
12923    
12924     cat >>confdefs.h <<\_ACEOF
12925     #define SELECTION_SCROLLING 1
12926     _ACEOF
12927    
12928     fi
12929     if test x$support_frills = xyes; then
12930    
12931     cat >>confdefs.h <<\_ACEOF
12932     #define ENABLE_FRILLS 1
12933     _ACEOF
12934    
12935     fi
12936 pcg 1.1 if test x$support_mousewheel = xyes; then
12937 pcg 1.11
12938     cat >>confdefs.h <<\_ACEOF
12939 pcg 1.1 #define MOUSE_WHEEL 1
12940 pcg 1.11 _ACEOF
12941 pcg 1.1
12942     fi
12943     if test x$support_mouseslipwheel = xyes; then
12944 pcg 1.11
12945     cat >>confdefs.h <<\_ACEOF
12946 pcg 1.1 #define MOUSE_SLIP_WHEELING 1
12947 pcg 1.11 _ACEOF
12948 pcg 1.1
12949     fi
12950     if test x$support_xim = xyes -o x$multichar_set = xyes; then
12951     if test x$rxvt_cv_func_xlocale = xyes; then
12952 pcg 1.11
12953     cat >>confdefs.h <<\_ACEOF
12954 pcg 1.1 #define USE_XIM 1
12955 pcg 1.11 _ACEOF
12956 pcg 1.1
12957     fi
12958     fi
12959 root 1.103 if test x$support_xpm = xyes -o x$support_afterimage = xyes ; then
12960 pcg 1.11
12961     cat >>confdefs.h <<\_ACEOF
12962 pcg 1.1 #define XPM_BACKGROUND 1
12963 pcg 1.11 _ACEOF
12964 pcg 1.1
12965     fi
12966 root 1.103
12967     if test x$support_afterimage = xyes; then
12968    
12969     cat >>confdefs.h <<\_ACEOF
12970     #define HAVE_AFTERIMAGE 1
12971     _ACEOF
12972    
12973     fi
12974    
12975     if test x$support_afterstep = xyes; then
12976    
12977     cat >>confdefs.h <<\_ACEOF
12978     #define AFTERSTEP_INTEGRATION 1
12979     _ACEOF
12980    
12981     fi
12982    
12983 pcg 1.1 if test x$support_scroll_rxvt = xyes; then
12984 pcg 1.11
12985     cat >>confdefs.h <<\_ACEOF
12986 pcg 1.1 #define RXVT_SCROLLBAR 1
12987 pcg 1.11 _ACEOF
12988 pcg 1.1
12989     scrolltypes="rxvt"
12990     fi
12991     if test x$support_scroll_next = xyes; then
12992 pcg 1.11
12993     cat >>confdefs.h <<\_ACEOF
12994 pcg 1.1 #define NEXT_SCROLLBAR 1
12995 pcg 1.11 _ACEOF
12996 pcg 1.1
12997     scrolltypes="$scrolltypes next"
12998     fi
12999     if test x$support_scroll_xterm = xyes; then
13000 pcg 1.11
13001     cat >>confdefs.h <<\_ACEOF
13002 pcg 1.1 #define XTERM_SCROLLBAR 1
13003 pcg 1.11 _ACEOF
13004 pcg 1.1
13005     scrolltypes="$scrolltypes xterm"
13006     fi
13007 pcg 1.11 if test x$support_scroll_plain = xyes; then
13008    
13009     cat >>confdefs.h <<\_ACEOF
13010     #define PLAIN_SCROLLBAR 1
13011     _ACEOF
13012    
13013     scrolltypes="$scrolltypes plain"
13014     fi
13015 pcg 1.1 if test x$support_pointer_blank = xyes; then
13016 pcg 1.11
13017     cat >>confdefs.h <<\_ACEOF
13018 pcg 1.1 #define POINTER_BLANK 1
13019 pcg 1.11 _ACEOF
13020 pcg 1.1
13021     fi
13022 pcg 1.11 if test x$support_text_blink = xyes; then
13023    
13024     cat >>confdefs.h <<\_ACEOF
13025     #define TEXT_BLINK 1
13026     _ACEOF
13027 pcg 1.1
13028     fi
13029     if test x$support_unicode3 = xyes; then
13030 pcg 1.11
13031     cat >>confdefs.h <<\_ACEOF
13032 pcg 1.1 #define UNICODE_3 1
13033 pcg 1.11 _ACEOF
13034 pcg 1.1
13035     fi
13036 pcg 1.18 if test x$support_combining = xyes; then
13037    
13038     cat >>confdefs.h <<\_ACEOF
13039 pcg 1.20 #define ENABLE_COMBINING 1
13040 pcg 1.18 _ACEOF
13041    
13042     fi
13043 pcg 1.1 if test x$codesets = xall; then
13044 root 1.40 codesets=jp,jp-ext,kr,zh,zh-ext
13045 pcg 1.1 fi
13046 pcg 1.11
13047     cat >>confdefs.h <<\_ACEOF
13048 pcg 1.1 #define ENCODING_EU 1
13049 pcg 1.11 _ACEOF
13050 pcg 1.1
13051 pcg 1.13
13052 pcg 1.11 cat >>confdefs.h <<\_ACEOF
13053 pcg 1.1 #define ENCODING_VN 1
13054 pcg 1.11 _ACEOF
13055 pcg 1.13
13056 root 1.34 for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
13057 pcg 1.13 case "$codeset" in
13058 pcg 1.11 JP )
13059     cat >>confdefs.h <<\_ACEOF
13060 pcg 1.1 #define ENCODING_JP 1
13061 pcg 1.11 _ACEOF
13062 pcg 1.1 ;;
13063 pcg 1.11 JP_EXT )
13064     cat >>confdefs.h <<\_ACEOF
13065 pcg 1.1 #define ENCODING_JP_EXT 1
13066 pcg 1.11 _ACEOF
13067 pcg 1.1 ;;
13068 pcg 1.11 KR )
13069     cat >>confdefs.h <<\_ACEOF
13070 pcg 1.1 #define ENCODING_KR 1
13071 pcg 1.11 _ACEOF
13072 pcg 1.1 ;;
13073 root 1.40 ZH )
13074 pcg 1.11 cat >>confdefs.h <<\_ACEOF
13075 root 1.40 #define ENCODING_ZH 1
13076 pcg 1.11 _ACEOF
13077 pcg 1.1 ;;
13078 root 1.40 ZH_EXT )
13079 pcg 1.11 cat >>confdefs.h <<\_ACEOF
13080 root 1.40 #define ENCODING_ZH_EXT 1
13081 pcg 1.11 _ACEOF
13082 pcg 1.1 ;;
13083     esac
13084     done
13085    
13086 root 1.60 IF_PERL=\#
13087     if test x$support_perl = xyes; then
13088     # Extract the first word of "perl5", so it can be a program name with args.
13089     set dummy perl5; ac_word=$2
13090 ayin 1.104 echo "$as_me:$LINENO: checking for $ac_word" >&5
13091     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13092 root 1.60 if test "${ac_cv_path_PERL+set}" = set; then
13093     echo $ECHO_N "(cached) $ECHO_C" >&6
13094     else
13095     case $PERL in
13096     [\\/]* | ?:[\\/]*)
13097     ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
13098     ;;
13099     *)
13100     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13101     for as_dir in $PATH
13102     do
13103     IFS=$as_save_IFS
13104     test -z "$as_dir" && as_dir=.
13105     for ac_exec_ext in '' $ac_executable_extensions; do
13106 ayin 1.104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13107 root 1.60 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
13108     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13109     break 2
13110     fi
13111     done
13112     done
13113    
13114     ;;
13115     esac
13116     fi
13117     PERL=$ac_cv_path_PERL
13118 ayin 1.104
13119 root 1.60 if test -n "$PERL"; then
13120 ayin 1.104 echo "$as_me:$LINENO: result: $PERL" >&5
13121     echo "${ECHO_T}$PERL" >&6
13122 root 1.60 else
13123 ayin 1.104 echo "$as_me:$LINENO: result: no" >&5
13124     echo "${ECHO_T}no" >&6
13125 root 1.60 fi
13126    
13127     # Extract the first word of "perl", so it can be a program name with args.
13128     set dummy perl; ac_word=$2
13129 ayin 1.104 echo "$as_me:$LINENO: checking for $ac_word" >&5
13130     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13131 root 1.60 if test "${ac_cv_path_PERL+set}" = set; then
13132     echo $ECHO_N "(cached) $ECHO_C" >&6
13133     else
13134     case $PERL in
13135     [\\/]* | ?:[\\/]*)
13136     ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
13137     ;;
13138     *)
13139     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13140     for as_dir in $PATH
13141     do
13142     IFS=$as_save_IFS
13143     test -z "$as_dir" && as_dir=.
13144     for ac_exec_ext in '' $ac_executable_extensions; do
13145 ayin 1.104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13146 root 1.60 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
13147     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13148     break 2
13149     fi
13150     done
13151     done
13152    
13153     ;;
13154     esac
13155     fi
13156     PERL=$ac_cv_path_PERL
13157 ayin 1.104
13158 root 1.60 if test -n "$PERL"; then
13159 ayin 1.104 echo "$as_me:$LINENO: result: $PERL" >&5
13160     echo "${ECHO_T}$PERL" >&6
13161 root 1.60 else
13162 ayin 1.104 echo "$as_me:$LINENO: result: no" >&5
13163     echo "${ECHO_T}no" >&6
13164 root 1.60 fi
13165    
13166    
13167 ayin 1.104 echo "$as_me:$LINENO: checking for $PERL suitability" >&5
13168     echo $ECHO_N "checking for $PERL suitability... $ECHO_C" >&6
13169 root 1.60 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then
13170    
13171 root 1.62 save_CXXFLAGS="$CXXFLAGS"
13172     save_LIBS="$LIBS"
13173     CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`"
13174     LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`"
13175     cat >conftest.$ac_ext <<_ACEOF
13176     /* confdefs.h. */
13177     _ACEOF
13178     cat confdefs.h >>conftest.$ac_ext
13179     cat >>conftest.$ac_ext <<_ACEOF
13180     /* end confdefs.h. */
13181    
13182     #include <EXTERN.h>
13183     #include <perl.h>
13184     #include <XSUB.h>
13185    
13186     int
13187     main ()
13188     {
13189    
13190     PerlInterpreter *perl = perl_alloc ();
13191    
13192     ;
13193     return 0;
13194     }
13195     _ACEOF
13196     rm -f conftest.$ac_objext conftest$ac_exeext
13197 ayin 1.104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13198     (eval $ac_link) 2>conftest.er1
13199 root 1.62 ac_status=$?
13200     grep -v '^ *+' conftest.er1 >conftest.err
13201     rm -f conftest.er1
13202     cat conftest.err >&5
13203     echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 ayin 1.104 (exit $ac_status); } &&
13205     { ac_try='test -z "$ac_cxx_werror_flag"
13206     || test ! -s conftest.err'
13207     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13208     (eval $ac_try) 2>&5
13209     ac_status=$?
13210     echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211     (exit $ac_status); }; } &&
13212     { ac_try='test -s conftest$ac_exeext'
13213     { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13214     (eval $ac_try) 2>&5
13215     ac_status=$?
13216     echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217     (exit $ac_status); }; }; then
13218 root 1.62 rxvt_perl_link=yes
13219     else
13220     echo "$as_me: failed program was:" >&5
13221     sed 's/^/| /' conftest.$ac_ext >&5
13222    
13223 ayin 1.104 rxvt_perl_link=no
13224 root 1.62 fi
13225 ayin 1.104 rm -f conftest.err conftest.$ac_objext \
13226 root 1.62 conftest$ac_exeext conftest.$ac_ext
13227     CXXFLAGS="$save_CXXFLAGS"
13228     LIBS="$save_LIBS"
13229    
13230     if test x$rxvt_perl_link = xyes; then
13231 ayin 1.104 echo "$as_me:$LINENO: result: ok" >&5
13232     echo "${ECHO_T}ok" >&6
13233 root 1.62
13234 root 1.60 cat >>confdefs.h <<\_ACEOF
13235     #define ENABLE_PERL 1
13236     _ACEOF
13237    
13238 root 1.62 IF_PERL=
13239     PERL_O=rxvtperl.o
13240     PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
13241     PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
13242     PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`"
13243     else
13244 root 1.77 { { echo "$as_me:$LINENO: error: no, unable to link" >&5
13245     echo "$as_me: error: no, unable to link" >&2;}
13246     { (exit 1); exit 1; }; }
13247 root 1.62 fi
13248 root 1.60 else
13249 root 1.77 { { echo "$as_me:$LINENO: error: no working perl found, or perl not version >= 5.8" >&5
13250     echo "$as_me: error: no working perl found, or perl not version >= 5.8" >&2;}
13251     { (exit 1); exit 1; }; }
13252 root 1.60 fi
13253     fi
13254    
13255    
13256    
13257    
13258    
13259    
13260    
13261 root 1.66 if test x$support_perl = xyes; then
13262 root 1.64 support_frills=yes
13263     fi
13264    
13265 pcg 1.1
13266    
13267    
13268    
13269    
13270     if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
13271     LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
13272     X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
13273     X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
13274     XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
13275     fi
13276    
13277    
13278    
13279    
13280    
13281 root 1.103
13282    
13283 pcg 1.1 test "$program_prefix" != NONE &&
13284 ayin 1.104 program_transform_name="s,^,$program_prefix,;$program_transform_name"
13285 pcg 1.1 # Use a double $ so make ignores it.
13286     test "$program_suffix" != NONE &&
13287 ayin 1.104 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
13288 pcg 1.11 # Double any \ or $. echo might interpret backslashes.
13289     # By default was `s,x,x', remove it if useless.
13290     cat <<\_ACEOF >conftest.sed
13291     s/[\\$]/&&/g;s/;s,x,x,$//
13292     _ACEOF
13293     program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
13294 ayin 1.104 rm conftest.sed
13295 pcg 1.1
13296    
13297    
13298    
13299    
13300     if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
13301     include_stdint_h="#include <stdint.h>"
13302     else
13303     include_stdint_h="/* #include <stdint.h> */"
13304 pcg 1.11 fi
13305 pcg 1.1 if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
13306 pcg 1.18 include_stdarg_h="#include <cstdarg>"
13307 pcg 1.1 else
13308 pcg 1.18 include_stdarg_h="/* #include <cstdarg> */"
13309 pcg 1.11 fi
13310 pcg 1.1 if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
13311 pcg 1.18 include_stdlib_h="#include <cstdlib>"
13312 pcg 1.1 else
13313 pcg 1.18 include_stdlib_h="/* #include <cstdlib> */"
13314 pcg 1.11 fi
13315 pcg 1.1 if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
13316     include_unistd_h="#include <unistd.h>"
13317     else
13318     include_unistd_h="/* #include <unistd.h> */"
13319 pcg 1.11 fi
13320 pcg 1.1 if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
13321 pcg 1.18 include_string_h="#include <cstring>"
13322 pcg 1.1 else
13323 pcg 1.18 include_string_h="/* #include <cstring> */"
13324 pcg 1.11 fi
13325 pcg 1.1 if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
13326     include_fcntl_h="#include <fcntl.h>"
13327     else
13328     include_fcntl_h="/* #include <fcntl.h> */"
13329 pcg 1.11 fi
13330 pcg 1.1 if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
13331     include_util_h="#include <util.h>"
13332     else
13333     include_util_h="/* #include <util.h> */"
13334 pcg 1.11 fi
13335 pcg 1.1 if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
13336     include_assert_h="#include <assert.h>"
13337     else
13338     include_assert_h="/* #include <assert.h> */"
13339 pcg 1.11 fi
13340 pcg 1.1 if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
13341     include_sys_ioctl_h="#include <sys/ioctl.h>"
13342     else
13343     include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
13344 pcg 1.11 fi
13345 pcg 1.1 if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
13346     include_sys_select_h="#include <sys/select.h>"
13347     else
13348     include_sys_select_h="/* #include <sys/select.h> */"
13349 pcg 1.11 fi
13350 pcg 1.1 if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
13351     include_sys_strredir_h="#include <sys/strredir.h>"
13352     else
13353     include_sys_strredir_h="/* #include <sys/strredir.h> */"
13354 pcg 1.11 fi
13355 pcg 1.1 if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
13356     include_sys_time_h="#include <sys/time.h>"
13357     else
13358     include_sys_time_h="/* #include <sys/time.h> */"
13359 pcg 1.11 fi
13360 pcg 1.1 if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
13361     include_time_h="#include <time.h>"
13362     else
13363     include_time_h="/* #include <time.h> */"
13364 pcg 1.11 fi
13365 pcg 1.1
13366 ayin 1.104 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h"
13367 root 1.32
13368 pcg 1.11 cat >confcache <<\_ACEOF
13369 pcg 1.1 # This file is a shell script that caches the results of configure
13370     # tests run on this system so they can be shared between configure
13371 pcg 1.11 # scripts and configure runs, see configure's option --config-cache.
13372     # It is not useful on other systems. If it contains results you don't
13373     # want to keep, you may remove or edit it.
13374 pcg 1.1 #
13375 pcg 1.11 # config.status only pays attention to the cache file if you give it
13376     # the --recheck option to rerun configure.
13377 pcg 1.1 #
13378 pcg 1.11 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13379     # loading this file, other *unset* `ac_cv_foo' will be assigned the
13380     # following values.
13381    
13382     _ACEOF
13383    
13384 pcg 1.1 # The following way of writing the cache mishandles newlines in values,
13385     # but we know of no workaround that is simple, portable, and efficient.
13386 ayin 1.104 # So, don't put newlines in cache variables' values.
13387 pcg 1.1 # Ultrix sh set writes to stderr and can't be redirected directly,
13388     # and sets the high bit in the cache file unless we assign to the vars.
13389 ayin 1.104 {
13390 pcg 1.11 (set) 2>&1 |
13391 ayin 1.104 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13392     *ac_space=\ *)
13393 pcg 1.11 # `set' does not quote correctly, so add quotes (double-quote
13394     # substitution turns \\\\ into \\, and sed turns \\ into \).
13395     sed -n \
13396     "s/'/'\\\\''/g;
13397     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13398 ayin 1.104 ;;
13399 pcg 1.11 *)
13400     # `set' quotes correctly as required by POSIX, so do not add quotes.
13401 ayin 1.104 sed -n \
13402     "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13403 pcg 1.11 ;;
13404 ayin 1.104 esac;
13405     } |
13406 pcg 1.11 sed '
13407     t clear
13408 ayin 1.104 : clear
13409 pcg 1.11 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13410     t end
13411 ayin 1.104 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13412     : end' >>confcache
13413     if diff $cache_file confcache >/dev/null 2>&1; then :; else
13414     if test -w $cache_file; then
13415     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13416 pcg 1.11 cat confcache >$cache_file
13417 pcg 1.1 else
13418 ayin 1.104 echo "not updating unwritable cache $cache_file"
13419 pcg 1.1 fi
13420     fi
13421     rm -f confcache
13422    
13423     test "x$prefix" = xNONE && prefix=$ac_default_prefix
13424     # Let make expand exec_prefix.
13425     test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13426    
13427 ayin 1.104 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13428     # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13429     # trailing colons and then remove the whole line if VPATH becomes empty
13430     # (actually we leave an empty line to preserve line numbers).
13431     if test "x$srcdir" = x.; then
13432     ac_vpsub='/^[ ]*VPATH[ ]*=/{
13433     s/:*\$(srcdir):*/:/;
13434     s/:*\${srcdir}:*/:/;
13435     s/:*@srcdir@:*/:/;
13436     s/^\([^=]*=[ ]*\):*/\1/;
13437     s/:*$//;
13438     s/^[^=]*=[ ]*$//;
13439     }'
13440     fi
13441    
13442 pcg 1.11 DEFS=-DHAVE_CONFIG_H
13443    
13444     ac_libobjs=
13445     ac_ltlibobjs=
13446     for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13447     # 1. Remove the extension, and $U if already installed.
13448 ayin 1.104 ac_i=`echo "$ac_i" |
13449     sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13450     # 2. Add them.
13451     ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13452     ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13453 pcg 1.11 done
13454     LIBOBJS=$ac_libobjs
13455    
13456     LTLIBOBJS=$ac_ltlibobjs
13457    
13458 pcg 1.1
13459    
13460     : ${CONFIG_STATUS=./config.status}
13461 pcg 1.11 ac_clean_files_save=$ac_clean_files
13462     ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13463     { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13464     echo "$as_me: creating $CONFIG_STATUS" >&6;}
13465     cat >$CONFIG_STATUS <<_ACEOF
13466     #! $SHELL
13467     # Generated by $as_me.
13468 pcg 1.1 # Run this file to recreate the current configuration.
13469     # Compiler output produced by configure, useful for debugging
13470 pcg 1.11 # configure, is in config.log if it exists.
13471    
13472     debug=false
13473     ac_cs_recheck=false
13474     ac_cs_silent=false
13475     SHELL=\${CONFIG_SHELL-$SHELL}
13476     _ACEOF
13477    
13478     cat >>$CONFIG_STATUS <<\_ACEOF
13479     ## --------------------- ##
13480     ## M4sh Initialization. ##
13481     ## --------------------- ##
13482    
13483 ayin 1.104 # Be Bourne compatible
13484 pcg 1.11 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13485     emulate sh
13486     NULLCMD=:
13487     # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13488     # is contrary to our usage. Disable this feature.
13489     alias -g '${1+"$@"}'='"$@"'
13490 ayin 1.104 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13491     set -o posix
13492 pcg 1.11 fi
13493 ayin 1.104 DUALCASE=1; export DUALCASE # for MKS sh
13494 pcg 1.11
13495     # Support unset when possible.
13496     if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13497     as_unset=unset
13498     else
13499     as_unset=false
13500     fi
13501    
13502    
13503     # Work around bugs in pre-3.0 UWIN ksh.
13504 ayin 1.104 $as_unset ENV MAIL MAILPATH
13505 pcg 1.11 PS1='$ '
13506     PS2='> '
13507     PS4='+ '
13508    
13509     # NLS nuisances.
13510     for as_var in \
13511     LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13512     LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13513     LC_TELEPHONE LC_TIME
13514     do
13515     if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13516     eval $as_var=C; export $as_var
13517     else
13518 ayin 1.104 $as_unset $as_var
13519 pcg 1.11 fi
13520     done
13521    
13522     # Required to use basename.
13523 ayin 1.104 if expr a : '\(a\)' >/dev/null 2>&1; then
13524 pcg 1.11 as_expr=expr
13525     else
13526     as_expr=false
13527     fi
13528    
13529 ayin 1.104 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13530 pcg 1.11 as_basename=basename
13531     else
13532     as_basename=false
13533     fi
13534    
13535    
13536     # Name of the executable.
13537 ayin 1.104 as_me=`$as_basename "$0" ||
13538 pcg 1.11 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13539     X"$0" : 'X\(//\)$' \| \
13540 ayin 1.104 X"$0" : 'X\(/\)$' \| \
13541     . : '\(.\)' 2>/dev/null ||
13542 pcg 1.11 echo X/"$0" |
13543 ayin 1.104 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13544     /^X\/\(\/\/\)$/{ s//\1/; q; }
13545     /^X\/\(\/\).*/{ s//\1/; q; }
13546     s/.*/./; q'`
13547    
13548 pcg 1.11
13549 ayin 1.104 # PATH needs CR, and LINENO needs CR and PATH.
13550     # Avoid depending upon Character Ranges.
13551     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13552     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13553     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13554     as_cr_digits='0123456789'
13555     as_cr_alnum=$as_cr_Letters$as_cr_digits
13556    
13557     # The user is always right.
13558     if test "${PATH_SEPARATOR+set}" != set; then
13559     echo "#! /bin/sh" >conf$$.sh
13560     echo "exit 0" >>conf$$.sh
13561     chmod +x conf$$.sh
13562     if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13563     PATH_SEPARATOR=';'
13564     else
13565     PATH_SEPARATOR=:
13566     fi
13567     rm -f conf$$.sh
13568     fi
13569 pcg 1.11
13570    
13571 ayin 1.104 as_lineno_1=$LINENO
13572     as_lineno_2=$LINENO
13573     as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13574     test "x$as_lineno_1" != "x$as_lineno_2" &&
13575     test "x$as_lineno_3" = "x$as_lineno_2" || {
13576     # Find who we are. Look in the path if we contain no path at all
13577     # relative or not.
13578     case $0 in
13579     *[\\/]* ) as_myself=$0 ;;
13580     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13581     for as_dir in $PATH
13582     do
13583     IFS=$as_save_IFS
13584     test -z "$as_dir" && as_dir=.
13585     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13586     done
13587 pcg 1.11
13588 ayin 1.104 ;;
13589     esac
13590     # We did not find ourselves, most probably we were run as `sh COMMAND'
13591     # in which case we are not to be found in the path.
13592     if test "x$as_myself" = x; then
13593     as_myself=$0
13594     fi
13595     if test ! -f "$as_myself"; then
13596     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13597     echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13598     { (exit 1); exit 1; }; }
13599     fi
13600     case $CONFIG_SHELL in
13601     '')
13602     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13603     for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13604     do
13605     IFS=$as_save_IFS
13606     test -z "$as_dir" && as_dir=.
13607     for as_base in sh bash ksh sh5; do
13608     case $as_dir in
13609     /*)
13610     if ("$as_dir/$as_base" -c '
13611 pcg 1.11 as_lineno_1=$LINENO
13612     as_lineno_2=$LINENO
13613 ayin 1.104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13614 pcg 1.11 test "x$as_lineno_1" != "x$as_lineno_2" &&
13615 ayin 1.104 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13616     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13617     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13618     CONFIG_SHELL=$as_dir/$as_base
13619     export CONFIG_SHELL
13620     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13621     fi;;
13622     esac
13623     done
13624     done
13625     ;;
13626     esac
13627 pcg 1.11
13628     # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13629     # uniformly replaced by the line number. The first 'sed' inserts a
13630 ayin 1.104 # line-number line before each line; the second 'sed' does the real
13631     # work. The second script uses 'N' to pair each line-number line
13632     # with the numbered line, and appends trailing '-' during
13633     # substitution so that $LINENO is not a special case at line end.
13634 pcg 1.11 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13635 ayin 1.104 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13636     sed '=' <$as_myself |
13637 pcg 1.11 sed '
13638     N
13639 ayin 1.104 s,$,-,
13640     : loop
13641     s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13642 pcg 1.11 t loop
13643 ayin 1.104 s,-$,,
13644     s,^['$as_cr_digits']*\n,,
13645 pcg 1.11 ' >$as_me.lineno &&
13646 ayin 1.104 chmod +x $as_me.lineno ||
13647     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13648     echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13649 pcg 1.11 { (exit 1); exit 1; }; }
13650    
13651     # Don't try to exec as it changes $[0], causing all sort of problems
13652     # (the dirname of $[0] is not the place where we might find the
13653 ayin 1.104 # original and so on. Autoconf is especially sensible to this).
13654     . ./$as_me.lineno
13655 pcg 1.11 # Exit status is that of the last command.
13656     exit
13657     }
13658    
13659    
13660 ayin 1.104 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13661     *c*,-n*) ECHO_N= ECHO_C='
13662     ' ECHO_T=' ' ;;
13663     *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13664     *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13665 pcg 1.11 esac
13666    
13667 ayin 1.104 if expr a : '\(a\)' >/dev/null 2>&1; then
13668 pcg 1.11 as_expr=expr
13669     else
13670     as_expr=false
13671     fi
13672    
13673     rm -f conf$$ conf$$.exe conf$$.file
13674     echo >conf$$.file
13675     if ln -s conf$$.file conf$$ 2>/dev/null; then
13676 ayin 1.104 # We could just check for DJGPP; but this test a) works b) is more generic
13677     # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13678     if test -f conf$$.exe; then
13679     # Don't use ln at all; we don't have any links
13680 pcg 1.11 as_ln_s='cp -p'
13681 ayin 1.104 else
13682     as_ln_s='ln -s'
13683     fi
13684 pcg 1.11 elif ln conf$$.file conf$$ 2>/dev/null; then
13685     as_ln_s=ln
13686     else
13687     as_ln_s='cp -p'
13688     fi
13689 ayin 1.104 rm -f conf$$ conf$$.exe conf$$.file
13690 pcg 1.11
13691     if mkdir -p . 2>/dev/null; then
13692     as_mkdir_p=:
13693     else
13694     test -d ./-p && rmdir ./-p
13695     as_mkdir_p=false
13696     fi
13697    
13698 ayin 1.104 as_executable_p="test -f"
13699 pcg 1.11
13700     # Sed expression to map a string onto a valid CPP name.
13701     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13702    
13703     # Sed expression to map a string onto a valid variable name.
13704     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13705    
13706    
13707 ayin 1.104 # IFS
13708     # We need space, tab and new line, in precisely that order.
13709     as_nl='
13710     '
13711     IFS=" $as_nl"
13712    
13713     # CDPATH.
13714     $as_unset CDPATH
13715    
13716 pcg 1.11 exec 6>&1
13717    
13718 ayin 1.104 # Open the log real soon, to keep \$[0] and so on meaningful, and to
13719 pcg 1.11 # report actual input values of CONFIG_FILES etc. instead of their
13720 ayin 1.104 # values after options handling. Logging --version etc. is OK.
13721     exec 5>>config.log
13722     {
13723     echo
13724     sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13725     ## Running $as_me. ##
13726     _ASBOX
13727     } >&5
13728     cat >&5 <<_CSEOF
13729    
13730 pcg 1.11 This file was extended by $as_me, which was
13731 ayin 1.104 generated by GNU Autoconf 2.59. Invocation command line was
13732 pcg 1.11
13733     CONFIG_FILES = $CONFIG_FILES
13734     CONFIG_HEADERS = $CONFIG_HEADERS
13735     CONFIG_LINKS = $CONFIG_LINKS
13736     CONFIG_COMMANDS = $CONFIG_COMMANDS
13737     $ $0 $@
13738    
13739 ayin 1.104 _CSEOF
13740     echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13741     echo >&5
13742 pcg 1.11 _ACEOF
13743    
13744     # Files that config.status was made for.
13745 ayin 1.104 if test -n "$ac_config_files"; then
13746     echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13747     fi
13748    
13749     if test -n "$ac_config_headers"; then
13750     echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13751     fi
13752    
13753     if test -n "$ac_config_links"; then
13754     echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13755     fi
13756 pcg 1.11
13757 ayin 1.104 if test -n "$ac_config_commands"; then
13758     echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13759     fi
13760 pcg 1.11
13761     cat >>$CONFIG_STATUS <<\_ACEOF
13762 ayin 1.104
13763 pcg 1.11 ac_cs_usage="\
13764     \`$as_me' instantiates files from templates according to the
13765     current configuration.
13766    
13767     Usage: $0 [OPTIONS] [FILE]...
13768    
13769     -h, --help print this help, then exit
13770 ayin 1.104 -V, --version print version number, then exit
13771 pcg 1.11 -q, --quiet do not print progress messages
13772     -d, --debug don't remove temporary files
13773     --recheck update $as_me by reconfiguring in the same conditions
13774     --file=FILE[:TEMPLATE]
13775     instantiate the configuration file FILE
13776     --header=FILE[:TEMPLATE]
13777     instantiate the configuration header FILE
13778    
13779     Configuration files:
13780     $config_files
13781    
13782     Configuration headers:
13783     $config_headers
13784    
13785     Report bugs to <bug-autoconf@gnu.org>."
13786 ayin 1.104 _ACEOF
13787 ayin 1.102
13788 pcg 1.11 cat >>$CONFIG_STATUS <<_ACEOF
13789     ac_cs_version="\\
13790     config.status
13791 ayin 1.104 configured by $0, generated by GNU Autoconf 2.59,
13792     with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13793 pcg 1.11
13794 ayin 1.104 Copyright (C) 2003 Free Software Foundation, Inc.
13795 pcg 1.11 This config.status script is free software; the Free Software Foundation
13796     gives unlimited permission to copy, distribute and modify it."
13797 ayin 1.104 srcdir=$srcdir
13798     INSTALL="$INSTALL"
13799 pcg 1.11 _ACEOF
13800    
13801     cat >>$CONFIG_STATUS <<\_ACEOF
13802     # If no file are specified by the user, then we need to provide default
13803     # value. By we need to know if files were specified by the user.
13804     ac_need_defaults=:
13805     while test $# != 0
13806 pcg 1.1 do
13807 pcg 1.11 case $1 in
13808     --*=*)
13809 ayin 1.104 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13810     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13811 pcg 1.11 ac_shift=:
13812     ;;
13813 ayin 1.104 -*)
13814 pcg 1.11 ac_option=$1
13815     ac_optarg=$2
13816     ac_shift=shift
13817     ;;
13818 ayin 1.104 *) # This is not an option, so the user has probably given explicit
13819     # arguments.
13820     ac_option=$1
13821     ac_need_defaults=false;;
13822 pcg 1.11 esac
13823    
13824     case $ac_option in
13825     # Handling of the options.
13826 ayin 1.104 _ACEOF
13827     cat >>$CONFIG_STATUS <<\_ACEOF
13828 pcg 1.1 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13829 pcg 1.11 ac_cs_recheck=: ;;
13830 ayin 1.104 --version | --vers* | -V )
13831     echo "$ac_cs_version"; exit 0 ;;
13832     --he | --h)
13833     # Conflict between --help and --header
13834     { { echo "$as_me:$LINENO: error: ambiguous option: $1
13835     Try \`$0 --help' for more information." >&5
13836     echo "$as_me: error: ambiguous option: $1
13837     Try \`$0 --help' for more information." >&2;}
13838     { (exit 1); exit 1; }; };;
13839     --help | --hel | -h )
13840     echo "$ac_cs_usage"; exit 0 ;;
13841     --debug | --d* | -d )
13842 pcg 1.11 debug=: ;;
13843     --file | --fil | --fi | --f )
13844     $ac_shift
13845     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13846     ac_need_defaults=false;;
13847     --header | --heade | --head | --hea )
13848     $ac_shift
13849     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13850     ac_need_defaults=false;;
13851     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13852     | -silent | --silent | --silen | --sile | --sil | --si | --s)
13853     ac_cs_silent=: ;;
13854    
13855     # This is an error.
13856 ayin 1.104 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13857     Try \`$0 --help' for more information." >&5
13858     echo "$as_me: error: unrecognized option: $1
13859     Try \`$0 --help' for more information." >&2;}
13860 pcg 1.11 { (exit 1); exit 1; }; } ;;
13861    
13862 ayin 1.104 *) ac_config_targets="$ac_config_targets $1" ;;
13863 pcg 1.11
13864     esac
13865     shift
13866     done
13867    
13868     ac_configure_extra_args=
13869    
13870     if $ac_cs_silent; then
13871     exec 6>/dev/null
13872     ac_configure_extra_args="$ac_configure_extra_args --silent"
13873     fi
13874    
13875     _ACEOF
13876     cat >>$CONFIG_STATUS <<_ACEOF
13877     if \$ac_cs_recheck; then
13878 ayin 1.104 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13879     exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13880 pcg 1.11 fi
13881    
13882     _ACEOF
13883    
13884 ayin 1.104
13885    
13886    
13887 pcg 1.11
13888 ayin 1.102 cat >>$CONFIG_STATUS <<\_ACEOF
13889 pcg 1.11 for ac_config_target in $ac_config_targets
13890     do
13891 ayin 1.104 case "$ac_config_target" in
13892     # Handling of arguments.
13893     "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13894     "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13895     "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13896     "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
13897     "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
13898 pcg 1.11 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13899     echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13900     { (exit 1); exit 1; }; };;
13901 pcg 1.1 esac
13902     done
13903    
13904 pcg 1.11 # If the user did not use the arguments to specify the items to instantiate,
13905     # then the envvar interface is used. Set only those that are not.
13906     # We use the long form for the default assignment because of an extremely
13907     # bizarre bug on SunOS 4.1.3.
13908     if $ac_need_defaults; then
13909     test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13910     test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13911     fi
13912    
13913     # Have a temporary directory for convenience. Make it in the build tree
13914 ayin 1.104 # simply because there is no reason to put it here, and in addition,
13915 pcg 1.11 # creating and moving files from /tmp can sometimes cause problems.
13916 ayin 1.104 # Create a temporary directory, and hook for its removal unless debugging.
13917 pcg 1.11 $debug ||
13918     {
13919 ayin 1.104 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13920 pcg 1.11 trap '{ (exit 1); exit 1; }' 1 2 13 15
13921     }
13922 ayin 1.104
13923 pcg 1.11 # Create a (secure) tmp directory for tmp files.
13924    
13925     {
13926 ayin 1.104 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13927 pcg 1.11 test -n "$tmp" && test -d "$tmp"
13928     } ||
13929     {
13930 ayin 1.104 tmp=./confstat$$-$RANDOM
13931     (umask 077 && mkdir $tmp)
13932 pcg 1.11 } ||
13933     {
13934     echo "$me: cannot create a temporary directory in ." >&2
13935     { (exit 1); exit 1; }
13936     }
13937    
13938 ayin 1.104 _ACEOF
13939    
13940     cat >>$CONFIG_STATUS <<_ACEOF
13941    
13942 ayin 1.102 #
13943 ayin 1.104 # CONFIG_FILES section.
13944 ayin 1.102 #
13945    
13946     # No need to generate the scripts if there are no CONFIG_FILES.
13947     # This happens for instance when ./config.status config.h
13948 ayin 1.104 if test -n "\$CONFIG_FILES"; then
13949     # Protect against being on the right side of a sed subst in config.status.
13950     sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13951     s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13952     s,@SHELL@,$SHELL,;t t
13953     s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13954     s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13955     s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13956     s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13957     s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13958     s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13959     s,@exec_prefix@,$exec_prefix,;t t
13960     s,@prefix@,$prefix,;t t
13961     s,@program_transform_name@,$program_transform_name,;t t
13962     s,@bindir@,$bindir,;t t
13963     s,@sbindir@,$sbindir,;t t
13964     s,@libexecdir@,$libexecdir,;t t
13965     s,@datadir@,$datadir,;t t
13966     s,@sysconfdir@,$sysconfdir,;t t
13967     s,@sharedstatedir@,$sharedstatedir,;t t
13968     s,@localstatedir@,$localstatedir,;t t
13969     s,@libdir@,$libdir,;t t
13970     s,@includedir@,$includedir,;t t
13971     s,@oldincludedir@,$oldincludedir,;t t
13972     s,@infodir@,$infodir,;t t
13973     s,@mandir@,$mandir,;t t
13974     s,@build_alias@,$build_alias,;t t
13975     s,@host_alias@,$host_alias,;t t
13976     s,@target_alias@,$target_alias,;t t
13977     s,@DEFS@,$DEFS,;t t
13978     s,@ECHO_C@,$ECHO_C,;t t
13979     s,@ECHO_N@,$ECHO_N,;t t
13980     s,@ECHO_T@,$ECHO_T,;t t
13981     s,@LIBS@,$LIBS,;t t
13982     s,@build@,$build,;t t
13983     s,@build_cpu@,$build_cpu,;t t
13984     s,@build_vendor@,$build_vendor,;t t
13985     s,@build_os@,$build_os,;t t
13986     s,@host@,$host,;t t
13987     s,@host_cpu@,$host_cpu,;t t
13988     s,@host_vendor@,$host_vendor,;t t
13989     s,@host_os@,$host_os,;t t
13990     s,@VERSION@,$VERSION,;t t
13991     s,@DATE@,$DATE,;t t
13992     s,@LSMDATE@,$LSMDATE,;t t
13993     s,@LIBVERSION@,$LIBVERSION,;t t
13994     s,@CC@,$CC,;t t
13995     s,@CFLAGS@,$CFLAGS,;t t
13996     s,@LDFLAGS@,$LDFLAGS,;t t
13997     s,@CPPFLAGS@,$CPPFLAGS,;t t
13998     s,@ac_ct_CC@,$ac_ct_CC,;t t
13999     s,@EXEEXT@,$EXEEXT,;t t
14000     s,@OBJEXT@,$OBJEXT,;t t
14001     s,@CXX@,$CXX,;t t
14002     s,@CXXFLAGS@,$CXXFLAGS,;t t
14003     s,@ac_ct_CXX@,$ac_ct_CXX,;t t
14004     s,@CPP@,$CPP,;t t
14005     s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14006     s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14007     s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14008     s,@EGREP@,$EGREP,;t t
14009     s,@LINKER@,$LINKER,;t t
14010     s,@CXXLIB@,$CXXLIB,;t t
14011     s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t
14012     s,@RXVTNAME@,$RXVTNAME,;t t
14013     s,@TIC@,$TIC,;t t
14014     s,@CXXCPP@,$CXXCPP,;t t
14015     s,@X_CFLAGS@,$X_CFLAGS,;t t
14016     s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
14017     s,@X_LIBS@,$X_LIBS,;t t
14018     s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
14019     s,@afterimage_config@,$afterimage_config,;t t
14020     s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t
14021     s,@XPM_CFLAGS@,$XPM_CFLAGS,;t t
14022     s,@XPM_LIBS@,$XPM_LIBS,;t t
14023     s,@rxvt_int16_typedef@,$rxvt_int16_typedef,;t t
14024     s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t
14025     s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t
14026     s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t
14027     s,@rxvt_intp_define@,$rxvt_intp_define,;t t
14028     s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t
14029     s,@PKG_CONFIG@,$PKG_CONFIG,;t t
14030     s,@XFT_CONFIG@,$XFT_CONFIG,;t t
14031     s,@PERL@,$PERL,;t t
14032     s,@PERLLIB@,$PERLLIB,;t t
14033     s,@PERLFLAGS@,$PERLFLAGS,;t t
14034     s,@PERLPRIVLIBEXP@,$PERLPRIVLIBEXP,;t t
14035     s,@IF_PERL@,$IF_PERL,;t t
14036     s,@PERL_O@,$PERL_O,;t t
14037     s,@LIBAFTERIMAGE_CFLAGS@,$LIBAFTERIMAGE_CFLAGS,;t t
14038     s,@AFTERIMAGE_LIBS@,$AFTERIMAGE_LIBS,;t t
14039     s,@include_stdint_h@,$include_stdint_h,;t t
14040     s,@include_stdarg_h@,$include_stdarg_h,;t t
14041     s,@include_stdlib_h@,$include_stdlib_h,;t t
14042     s,@include_unistd_h@,$include_unistd_h,;t t
14043     s,@include_string_h@,$include_string_h,;t t
14044     s,@include_fcntl_h@,$include_fcntl_h,;t t
14045     s,@include_util_h@,$include_util_h,;t t
14046     s,@include_assert_h@,$include_assert_h,;t t
14047     s,@include_sys_ioctl_h@,$include_sys_ioctl_h,;t t
14048     s,@include_sys_select_h@,$include_sys_select_h,;t t
14049     s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t
14050     s,@include_sys_time_h@,$include_sys_time_h,;t t
14051     s,@include_time_h@,$include_time_h,;t t
14052     s,@LIBOBJS@,$LIBOBJS,;t t
14053     s,@LTLIBOBJS@,$LTLIBOBJS,;t t
14054     CEOF
14055    
14056     _ACEOF
14057    
14058     cat >>$CONFIG_STATUS <<\_ACEOF
14059     # Split the substitutions into bite-sized pieces for seds with
14060     # small command number limits, like on Digital OSF/1 and HP-UX.
14061     ac_max_sed_lines=48
14062     ac_sed_frag=1 # Number of current file.
14063     ac_beg=1 # First line for current file.
14064     ac_end=$ac_max_sed_lines # Line after last line for current file.
14065     ac_more_lines=:
14066     ac_sed_cmds=
14067     while $ac_more_lines; do
14068     if test $ac_beg -gt 1; then
14069     sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14070     else
14071     sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14072     fi
14073     if test ! -s $tmp/subs.frag; then
14074     ac_more_lines=false
14075     else
14076     # The purpose of the label and of the branching condition is to
14077     # speed up the sed processing (if there are no `@' at all, there
14078     # is no need to browse any of the substitutions).
14079     # These are the two extra sed commands mentioned above.
14080     (echo ':t
14081     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14082     if test -z "$ac_sed_cmds"; then
14083     ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14084     else
14085     ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14086     fi
14087     ac_sed_frag=`expr $ac_sed_frag + 1`
14088     ac_beg=$ac_end
14089     ac_end=`expr $ac_end + $ac_max_sed_lines`
14090     fi
14091     done
14092     if test -z "$ac_sed_cmds"; then
14093     ac_sed_cmds=cat
14094 ayin 1.102 fi
14095 ayin 1.104 fi # test -n "$CONFIG_FILES"
14096 ayin 1.102
14097     _ACEOF
14098 pcg 1.11 cat >>$CONFIG_STATUS <<\_ACEOF
14099 ayin 1.104 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
14100     # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14101     case $ac_file in
14102     - | *:- | *:-:* ) # input from stdin
14103     cat >$tmp/stdin
14104     ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14105     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14106     *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14107     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14108     * ) ac_file_in=$ac_file.in ;;
14109 ayin 1.102 esac
14110    
14111 ayin 1.104 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14112     ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14113 pcg 1.11 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14114     X"$ac_file" : 'X\(//\)[^/]' \| \
14115     X"$ac_file" : 'X\(//\)$' \| \
14116 ayin 1.104 X"$ac_file" : 'X\(/\)' \| \
14117     . : '\(.\)' 2>/dev/null ||
14118 pcg 1.11 echo X"$ac_file" |
14119 ayin 1.104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14120     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14121     /^X\(\/\/\)$/{ s//\1/; q; }
14122     /^X\(\/\).*/{ s//\1/; q; }
14123     s/.*/./; q'`
14124     { if $as_mkdir_p; then
14125     mkdir -p "$ac_dir"
14126     else
14127     as_dir="$ac_dir"
14128 pcg 1.11 as_dirs=
14129 ayin 1.104 while test ! -d "$as_dir"; do
14130     as_dirs="$as_dir $as_dirs"
14131     as_dir=`(dirname "$as_dir") 2>/dev/null ||
14132 pcg 1.11 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14133     X"$as_dir" : 'X\(//\)[^/]' \| \
14134     X"$as_dir" : 'X\(//\)$' \| \
14135 ayin 1.104 X"$as_dir" : 'X\(/\)' \| \
14136     . : '\(.\)' 2>/dev/null ||
14137 pcg 1.11 echo X"$as_dir" |
14138 ayin 1.104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14139     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14140     /^X\(\/\/\)$/{ s//\1/; q; }
14141     /^X\(\/\).*/{ s//\1/; q; }
14142     s/.*/./; q'`
14143 pcg 1.11 done
14144 ayin 1.104 test ! -n "$as_dirs" || mkdir $as_dirs
14145     fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14146     echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14147 pcg 1.11 { (exit 1); exit 1; }; }; }
14148 ayin 1.104
14149 pcg 1.11 ac_builddir=.
14150    
14151 ayin 1.104 if test "$ac_dir" != .; then
14152 pcg 1.11 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14153 ayin 1.104 # A "../" for each directory in $ac_dir_suffix.
14154     ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14155     else
14156     ac_dir_suffix= ac_top_builddir=
14157     fi
14158 pcg 1.11
14159     case $srcdir in
14160 ayin 1.104 .) # No --srcdir option. We are building in place.
14161 pcg 1.11 ac_srcdir=.
14162 ayin 1.104 if test -z "$ac_top_builddir"; then
14163     ac_top_srcdir=.
14164     else
14165     ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14166     fi ;;
14167     [\\/]* | ?:[\\/]* ) # Absolute path.
14168 pcg 1.11 ac_srcdir=$srcdir$ac_dir_suffix;
14169 ayin 1.104 ac_top_srcdir=$srcdir ;;
14170     *) # Relative path.
14171     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14172     ac_top_srcdir=$ac_top_builddir$srcdir ;;
14173 pcg 1.11 esac
14174    
14175 ayin 1.104 # Do not use `cd foo && pwd` to compute absolute paths, because
14176     # the directories may not exist.
14177     case `pwd` in
14178     .) ac_abs_builddir="$ac_dir";;
14179     *)
14180     case "$ac_dir" in
14181     .) ac_abs_builddir=`pwd`;;
14182     [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14183     *) ac_abs_builddir=`pwd`/"$ac_dir";;
14184     esac;;
14185     esac
14186     case $ac_abs_builddir in
14187     .) ac_abs_top_builddir=${ac_top_builddir}.;;
14188     *)
14189     case ${ac_top_builddir}. in
14190     .) ac_abs_top_builddir=$ac_abs_builddir;;
14191     [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14192     *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14193     esac;;
14194     esac
14195     case $ac_abs_builddir in
14196     .) ac_abs_srcdir=$ac_srcdir;;
14197     *)
14198     case $ac_srcdir in
14199     .) ac_abs_srcdir=$ac_abs_builddir;;
14200     [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14201     *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14202     esac;;
14203     esac
14204     case $ac_abs_builddir in
14205     .) ac_abs_top_srcdir=$ac_top_srcdir;;
14206     *)
14207     case $ac_top_srcdir in
14208     .) ac_abs_top_srcdir=$ac_abs_builddir;;
14209     [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14210     *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14211     esac;;
14212     esac
14213 pcg 1.11
14214 pcg 1.1
14215 pcg 1.11 case $INSTALL in
14216     [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14217 ayin 1.104 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
14218 pcg 1.1 esac
14219    
14220 ayin 1.104 if test x"$ac_file" != x-; then
14221     { echo "$as_me:$LINENO: creating $ac_file" >&5
14222     echo "$as_me: creating $ac_file" >&6;}
14223     rm -f "$ac_file"
14224     fi
14225     # Let's still pretend it is `configure' which instantiates (i.e., don't
14226     # use $as_me), people would be surprised to read:
14227     # /* config.h. Generated by config.status. */
14228     if test x"$ac_file" = x-; then
14229     configure_input=
14230     else
14231     configure_input="$ac_file. "
14232     fi
14233     configure_input=$configure_input"Generated from `echo $ac_file_in |
14234     sed 's,.*/,,'` by configure."
14235    
14236     # First look for the input files in the build tree, otherwise in the
14237     # src tree.
14238     ac_file_inputs=`IFS=:
14239     for f in $ac_file_in; do
14240     case $f in
14241     -) echo $tmp/stdin ;;
14242     [\\/$]*)
14243     # Absolute (can't be DOS-style, as IFS=:)
14244     test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14245     echo "$as_me: error: cannot find input file: $f" >&2;}
14246     { (exit 1); exit 1; }; }
14247     echo "$f";;
14248     *) # Relative
14249     if test -f "$f"; then
14250     # Build tree
14251     echo "$f"
14252     elif test -f "$srcdir/$f"; then
14253     # Source tree
14254     echo "$srcdir/$f"
14255     else
14256     # /dev/null tree
14257     { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14258     echo "$as_me: error: cannot find input file: $f" >&2;}
14259     { (exit 1); exit 1; }; }
14260     fi;;
14261     esac
14262     done` || { (exit 1); exit 1; }
14263 ayin 1.102 _ACEOF
14264     cat >>$CONFIG_STATUS <<_ACEOF
14265 pcg 1.11 sed "$ac_vpsub
14266     $extrasub
14267     _ACEOF
14268     cat >>$CONFIG_STATUS <<\_ACEOF
14269     :t
14270     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14271 ayin 1.104 s,@configure_input@,$configure_input,;t t
14272     s,@srcdir@,$ac_srcdir,;t t
14273     s,@abs_srcdir@,$ac_abs_srcdir,;t t
14274     s,@top_srcdir@,$ac_top_srcdir,;t t
14275     s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14276     s,@builddir@,$ac_builddir,;t t
14277     s,@abs_builddir@,$ac_abs_builddir,;t t
14278     s,@top_builddir@,$ac_top_builddir,;t t
14279     s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14280     s,@INSTALL@,$ac_INSTALL,;t t
14281     " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14282     rm -f $tmp/stdin
14283     if test x"$ac_file" != x-; then
14284     mv $tmp/out $ac_file
14285     else
14286     cat $tmp/out
14287     rm -f $tmp/out
14288     fi
14289    
14290     done
14291     _ACEOF
14292     cat >>$CONFIG_STATUS <<\_ACEOF
14293    
14294     #
14295     # CONFIG_HEADER section.
14296     #
14297    
14298     # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14299     # NAME is the cpp macro being defined and VALUE is the value it is being given.
14300     #
14301     # ac_d sets the value in "#define NAME VALUE" lines.
14302     ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14303     ac_dB='[ ].*$,\1#\2'
14304     ac_dC=' '
14305     ac_dD=',;t'
14306     # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14307     ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14308     ac_uB='$,\1#\2define\3'
14309     ac_uC=' '
14310     ac_uD=',;t'
14311 pcg 1.1
14312 ayin 1.104 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14313     # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14314 pcg 1.11 case $ac_file in
14315 ayin 1.104 - | *:- | *:-:* ) # input from stdin
14316     cat >$tmp/stdin
14317     ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14318     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14319     *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14320     ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14321     * ) ac_file_in=$ac_file.in ;;
14322 pcg 1.1 esac
14323    
14324 ayin 1.104 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14325     echo "$as_me: creating $ac_file" >&6;}
14326    
14327     # First look for the input files in the build tree, otherwise in the
14328     # src tree.
14329     ac_file_inputs=`IFS=:
14330     for f in $ac_file_in; do
14331     case $f in
14332     -) echo $tmp/stdin ;;
14333     [\\/$]*)
14334     # Absolute (can't be DOS-style, as IFS=:)
14335     test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14336     echo "$as_me: error: cannot find input file: $f" >&2;}
14337     { (exit 1); exit 1; }; }
14338     # Do quote $f, to prevent DOS paths from being IFS'd.
14339     echo "$f";;
14340     *) # Relative
14341     if test -f "$f"; then
14342     # Build tree
14343     echo "$f"
14344     elif test -f "$srcdir/$f"; then
14345     # Source tree
14346     echo "$srcdir/$f"
14347     else
14348     # /dev/null tree
14349     { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14350     echo "$as_me: error: cannot find input file: $f" >&2;}
14351     { (exit 1); exit 1; }; }
14352     fi;;
14353     esac
14354     done` || { (exit 1); exit 1; }
14355     # Remove the trailing spaces.
14356     sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14357    
14358     _ACEOF
14359    
14360     # Transform confdefs.h into two sed scripts, `conftest.defines' and
14361     # `conftest.undefs', that substitutes the proper values into
14362     # config.h.in to produce config.h. The first handles `#define'
14363     # templates, and the second `#undef' templates.
14364     # And first: Protect against being on the right side of a sed subst in
14365     # config.status. Protect against being in an unquoted here document
14366     # in config.status.
14367     rm -f conftest.defines conftest.undefs
14368     # Using a here document instead of a string reduces the quoting nightmare.
14369     # Putting comments in sed scripts is not portable.
14370     #
14371     # `end' is used to avoid that the second main sed command (meant for
14372     # 0-ary CPP macros) applies to n-ary macro definitions.
14373     # See the Autoconf documentation for `clear'.
14374     cat >confdef2sed.sed <<\_ACEOF
14375     s/[\\&,]/\\&/g
14376     s,[\\$`],\\&,g
14377     t clear
14378     : clear
14379     s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14380     t end
14381     s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14382     : end
14383     _ACEOF
14384     # If some macros were called several times there might be several times
14385     # the same #defines, which is useless. Nevertheless, we may not want to
14386     # sort them, since we want the *last* AC-DEFINE to be honored.
14387     uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14388     sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14389     rm -f confdef2sed.sed
14390 pcg 1.1
14391 ayin 1.104 # This sed command replaces #undef with comments. This is necessary, for
14392 pcg 1.1 # example, in the case of _POSIX_SOURCE, which is predefined and required
14393     # on some systems where configure will not decide to define it.
14394 ayin 1.104 cat >>conftest.undefs <<\_ACEOF
14395     s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14396 pcg 1.11 _ACEOF
14397 ayin 1.104
14398     # Break up conftest.defines because some shells have a limit on the size
14399     # of here documents, and old seds have small limits too (100 cmds).
14400     echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14401     echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14402     echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14403     echo ' :' >>$CONFIG_STATUS
14404     rm -f conftest.tail
14405     while grep . conftest.defines >/dev/null
14406     do
14407     # Write a limited-size here document to $tmp/defines.sed.
14408     echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14409     # Speed up: don't consider the non `#define' lines.
14410     echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14411     # Work around the forget-to-reset-the-flag bug.
14412     echo 't clr' >>$CONFIG_STATUS
14413     echo ': clr' >>$CONFIG_STATUS
14414     sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14415 pcg 1.11 echo 'CEOF
14416 ayin 1.104 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14417     rm -f $tmp/in
14418     mv $tmp/out $tmp/in
14419     ' >>$CONFIG_STATUS
14420     sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14421 pcg 1.11 rm -f conftest.defines
14422     mv conftest.tail conftest.defines
14423     done
14424 ayin 1.104 rm -f conftest.defines
14425     echo ' fi # grep' >>$CONFIG_STATUS
14426     echo >>$CONFIG_STATUS
14427    
14428     # Break up conftest.undefs because some shells have a limit on the size
14429     # of here documents, and old seds have small limits too (100 cmds).
14430     echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
14431     rm -f conftest.tail
14432     while grep . conftest.undefs >/dev/null
14433     do
14434     # Write a limited-size here document to $tmp/undefs.sed.
14435     echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14436     # Speed up: don't consider the non `#undef'
14437     echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14438     # Work around the forget-to-reset-the-flag bug.
14439     echo 't clr' >>$CONFIG_STATUS
14440     echo ': clr' >>$CONFIG_STATUS
14441     sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14442     echo 'CEOF
14443     sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14444     rm -f $tmp/in
14445     mv $tmp/out $tmp/in
14446     ' >>$CONFIG_STATUS
14447     sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14448     rm -f conftest.undefs
14449     mv conftest.tail conftest.undefs
14450     done
14451     rm -f conftest.undefs
14452 pcg 1.11
14453     cat >>$CONFIG_STATUS <<\_ACEOF
14454 ayin 1.104 # Let's still pretend it is `configure' which instantiates (i.e., don't
14455     # use $as_me), people would be surprised to read:
14456     # /* config.h. Generated by config.status. */
14457     if test x"$ac_file" = x-; then
14458     echo "/* Generated by configure. */" >$tmp/config.h
14459     else
14460     echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
14461     fi
14462     cat $tmp/in >>$tmp/config.h
14463     rm -f $tmp/in
14464 pcg 1.11 if test x"$ac_file" != x-; then
14465 ayin 1.104 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
14466 pcg 1.11 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14467     echo "$as_me: $ac_file is unchanged" >&6;}
14468     else
14469 ayin 1.104 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14470     $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14471     X"$ac_file" : 'X\(//\)[^/]' \| \
14472     X"$ac_file" : 'X\(//\)$' \| \
14473     X"$ac_file" : 'X\(/\)' \| \
14474     . : '\(.\)' 2>/dev/null ||
14475     echo X"$ac_file" |
14476     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14477     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14478     /^X\(\/\/\)$/{ s//\1/; q; }
14479     /^X\(\/\).*/{ s//\1/; q; }
14480     s/.*/./; q'`
14481     { if $as_mkdir_p; then
14482     mkdir -p "$ac_dir"
14483     else
14484     as_dir="$ac_dir"
14485     as_dirs=
14486     while test ! -d "$as_dir"; do
14487     as_dirs="$as_dir $as_dirs"
14488     as_dir=`(dirname "$as_dir") 2>/dev/null ||
14489     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14490     X"$as_dir" : 'X\(//\)[^/]' \| \
14491     X"$as_dir" : 'X\(//\)$' \| \
14492     X"$as_dir" : 'X\(/\)' \| \
14493     . : '\(.\)' 2>/dev/null ||
14494     echo X"$as_dir" |
14495     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14496     /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14497     /^X\(\/\/\)$/{ s//\1/; q; }
14498     /^X\(\/\).*/{ s//\1/; q; }
14499     s/.*/./; q'`
14500     done
14501     test ! -n "$as_dirs" || mkdir $as_dirs
14502     fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14503     echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14504     { (exit 1); exit 1; }; }; }
14505    
14506 pcg 1.11 rm -f $ac_file
14507 ayin 1.104 mv $tmp/config.h $ac_file
14508 pcg 1.1 fi
14509 pcg 1.11 else
14510 ayin 1.104 cat $tmp/config.h
14511     rm -f $tmp/config.h
14512 pcg 1.1 fi
14513 ayin 1.104 done
14514     _ACEOF
14515 pcg 1.11
14516 ayin 1.104 cat >>$CONFIG_STATUS <<\_ACEOF
14517 pcg 1.1
14518 pcg 1.11 { (exit 0); exit 0; }
14519     _ACEOF
14520     chmod +x $CONFIG_STATUS
14521     ac_clean_files=$ac_clean_files_save
14522 pcg 1.1
14523    
14524 pcg 1.11 # configure is writing to config.log, and then calls config.status.
14525     # config.status does its own redirection, appending to config.log.
14526     # Unfortunately, on DOS this fails, as config.log is still kept open
14527     # by configure, so config.status won't be able to write to it; its
14528     # output is simply discarded. So we exec the FD to /dev/null,
14529     # effectively closing config.log, so it can be properly (re)opened and
14530     # appended to by config.status. When coming back to configure, we
14531     # need to make the FD available again.
14532     if test "$no_create" != yes; then
14533     ac_cs_success=:
14534     ac_config_status_args=
14535     test "$silent" = yes &&
14536     ac_config_status_args="$ac_config_status_args --quiet"
14537     exec 5>/dev/null
14538     $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14539     exec 5>>config.log
14540     # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14541     # would make configure fail if this is the last instruction.
14542     $ac_cs_success || { (exit 1); exit 1; }
14543     fi
14544 pcg 1.1
14545    
14546     echo "Configuration:
14547    
14548     Rxvt version: $VERSION : $DATE
14549     Source code location: $srcdir
14550     Install path: ${prefix}/bin
14551 pcg 1.13 Compiler: $CXX
14552 root 1.100 Compiler flags: $CXXFLAGS
14553 pcg 1.13 Linker: $LINKER"
14554 pcg 1.1
14555     if test x$support_xpm = xyes; then
14556     echo " Xpm library: $XPM_LIBS"
14557     fi
14558    
14559 root 1.103 if test x$support_afterimage = xyes; then
14560     echo " AfterImage support: yes"
14561     fi
14562    
14563     if test x$support_afterstep = xyes; then
14564 ayin 1.104 echo " AfterStep integration: yes"
14565 root 1.103 fi
14566    
14567 pcg 1.1 if test x$term != x; then
14568 pcg 1.18 echo " set TERM to: $term"
14569 pcg 1.1 fi
14570     if test x$terminfo != x; then
14571 pcg 1.18 echo " set TERMINFO to: $terminfo"
14572     fi
14573     echo " default resource name: $RESNAME"
14574     echo " resource class: $RESCLASS"
14575     if test x$RESFALLBACK != x; then
14576     echo " resource class fallback: $RESFALLBACK"
14577 pcg 1.1 fi
14578 pcg 1.18 echo
14579 root 1.89 echo " embedded perl: $support_perl"
14580     echo
14581 pcg 1.1 if test x$support_xpm = xneedsmanualspecification; then
14582     echo ".----------------------------------------------------------------."
14583     echo ". WARNING: --enable-xpm-background was specified however the ."
14584     echo ". XPM includes files and libraries could not be found. ."
14585     echo ". XPM backgrounds are now being DISABLED! If you want ."
14586     echo ". to use them you should rerun configure with the ."
14587     echo ". appropriate --with-xpm-includes=/path/to/xpm/includes ."
14588     echo ". and --with-xpm-library=/path/to/xpm/library lines. ."
14589     echo ".----------------------------------------------------------------."
14590     fi
14591     if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then
14592     echo ".----------------------------------------------------------------."
14593     echo ". WARNING: --enable-xim was specified however the locale support ."
14594     echo ". functions could not be found. ."
14595     echo ". XIM is now being DISABLED! ."
14596     echo ".----------------------------------------------------------------."
14597     fi
14598 pcg 1.20
14599 root 1.96 echo "*** Optionally check src/feature.h for further, rarely used options ***"
14600 pcg 1.20 echo
14601