ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/configure
Revision: 1.108
Committed: Fri Jul 27 10:09:39 2007 UTC (16 years, 10 months ago) by ayin
Branch: MAIN
Changes since 1.107: +5366 -5039 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.108 # Generated by GNU Autoconf 2.61.
4 pcg 1.1 #
5 ayin 1.108 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6     # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 pcg 1.1 # This configure script is free software; the Free Software Foundation
8     # gives unlimited permission to copy, distribute and modify it.
9 pcg 1.11 ## --------------------- ##
10     ## M4sh Initialization. ##
11     ## --------------------- ##
12    
13 ayin 1.108 # Be more Bourne compatible
14     DUALCASE=1; export DUALCASE # for MKS sh
15 pcg 1.11 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16     emulate sh
17     NULLCMD=:
18     # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19     # is contrary to our usage. Disable this feature.
20     alias -g '${1+"$@"}'='"$@"'
21 ayin 1.108 setopt NO_GLOB_SUBST
22     else
23     case `(set -o) 2>/dev/null` in
24     *posix*) set -o posix ;;
25     esac
26    
27     fi
28    
29    
30    
31    
32     # PATH needs CR
33     # Avoid depending upon Character Ranges.
34     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37     as_cr_digits='0123456789'
38     as_cr_alnum=$as_cr_Letters$as_cr_digits
39    
40     # The user is always right.
41     if test "${PATH_SEPARATOR+set}" != set; then
42     echo "#! /bin/sh" >conf$$.sh
43     echo "exit 0" >>conf$$.sh
44     chmod +x conf$$.sh
45     if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47     else
48     PATH_SEPARATOR=:
49     fi
50     rm -f conf$$.sh
51 pcg 1.11 fi
52    
53     # Support unset when possible.
54     if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55     as_unset=unset
56     else
57     as_unset=false
58     fi
59    
60    
61 ayin 1.108 # IFS
62     # We need space, tab and new line, in precisely that order. Quoting is
63     # there to prevent editors from complaining about space-tab.
64     # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65     # splitting by setting IFS to empty value.)
66     as_nl='
67     '
68     IFS=" "" $as_nl"
69    
70     # Find who we are. Look in the path if we contain no directory separator.
71     case $0 in
72     *[\\/]* ) as_myself=$0 ;;
73     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74     for as_dir in $PATH
75     do
76     IFS=$as_save_IFS
77     test -z "$as_dir" && as_dir=.
78     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79     done
80     IFS=$as_save_IFS
81    
82     ;;
83     esac
84     # We did not find ourselves, most probably we were run as `sh COMMAND'
85     # in which case we are not to be found in the path.
86     if test "x$as_myself" = x; then
87     as_myself=$0
88     fi
89     if test ! -f "$as_myself"; then
90     echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91     { (exit 1); exit 1; }
92     fi
93    
94 pcg 1.11 # Work around bugs in pre-3.0 UWIN ksh.
95 ayin 1.108 for as_var in ENV MAIL MAILPATH
96     do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97     done
98 pcg 1.11 PS1='$ '
99     PS2='> '
100     PS4='+ '
101    
102     # NLS nuisances.
103     for as_var in \
104     LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105     LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106     LC_TELEPHONE LC_TIME
107     do
108     if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110     else
111 ayin 1.108 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 pcg 1.11 fi
113     done
114    
115     # Required to use basename.
116 ayin 1.108 if expr a : '\(a\)' >/dev/null 2>&1 &&
117     test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 pcg 1.11 as_expr=expr
119     else
120     as_expr=false
121     fi
122    
123 ayin 1.108 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 pcg 1.11 as_basename=basename
125     else
126     as_basename=false
127     fi
128    
129    
130     # Name of the executable.
131 ayin 1.108 as_me=`$as_basename -- "$0" ||
132 pcg 1.11 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133     X"$0" : 'X\(//\)$' \| \
134 ayin 1.108 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 pcg 1.11 echo X/"$0" |
136 ayin 1.108 sed '/^.*\/\([^/][^/]*\)\/*$/{
137     s//\1/
138     q
139     }
140     /^X\/\(\/\/\)$/{
141     s//\1/
142     q
143     }
144     /^X\/\(\/\).*/{
145     s//\1/
146     q
147     }
148     s/.*/./; q'`
149    
150     # CDPATH.
151     $as_unset CDPATH
152    
153    
154     if test "x$CONFIG_SHELL" = x; then
155     if (eval ":") 2>/dev/null; then
156     as_have_required=yes
157     else
158     as_have_required=no
159     fi
160    
161     if test $as_have_required = yes && (eval ":
162     (as_func_return () {
163     (exit \$1)
164     }
165     as_func_success () {
166     as_func_return 0
167     }
168     as_func_failure () {
169     as_func_return 1
170     }
171     as_func_ret_success () {
172     return 0
173     }
174     as_func_ret_failure () {
175     return 1
176     }
177 root 1.105
178 ayin 1.108 exitcode=0
179     if as_func_success; then
180     :
181     else
182     exitcode=1
183     echo as_func_success failed.
184     fi
185    
186     if as_func_failure; then
187     exitcode=1
188     echo as_func_failure succeeded.
189     fi
190 root 1.105
191 ayin 1.108 if as_func_ret_success; then
192     :
193     else
194     exitcode=1
195     echo as_func_ret_success failed.
196     fi
197 root 1.105
198 ayin 1.108 if as_func_ret_failure; then
199     exitcode=1
200     echo as_func_ret_failure succeeded.
201 root 1.105 fi
202    
203 ayin 1.108 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204     :
205     else
206     exitcode=1
207     echo positional parameters were not saved.
208     fi
209 ayin 1.102
210 ayin 1.108 test \$exitcode = 0) || { (exit 1); exit 1; }
211 ayin 1.102
212 ayin 1.108 (
213     as_lineno_1=\$LINENO
214     as_lineno_2=\$LINENO
215     test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216     test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217     ") 2> /dev/null; then
218     :
219     else
220     as_candidate_shells=
221 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222     for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223     do
224     IFS=$as_save_IFS
225     test -z "$as_dir" && as_dir=.
226 ayin 1.108 case $as_dir in
227 pcg 1.11 /*)
228 ayin 1.108 for as_base in sh bash ksh sh5; do
229     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230     done;;
231     esac
232     done
233     IFS=$as_save_IFS
234    
235    
236     for as_shell in $as_candidate_shells $SHELL; do
237     # Try only shells that exist, to save several forks.
238     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239     { ("$as_shell") 2> /dev/null <<\_ASEOF
240     if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241     emulate sh
242     NULLCMD=:
243     # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244     # is contrary to our usage. Disable this feature.
245     alias -g '${1+"$@"}'='"$@"'
246     setopt NO_GLOB_SUBST
247     else
248     case `(set -o) 2>/dev/null` in
249     *posix*) set -o posix ;;
250     esac
251    
252     fi
253    
254    
255     :
256     _ASEOF
257     }; then
258     CONFIG_SHELL=$as_shell
259     as_have_required=yes
260     if { "$as_shell" 2> /dev/null <<\_ASEOF
261     if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262     emulate sh
263     NULLCMD=:
264     # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265     # is contrary to our usage. Disable this feature.
266     alias -g '${1+"$@"}'='"$@"'
267     setopt NO_GLOB_SUBST
268     else
269     case `(set -o) 2>/dev/null` in
270     *posix*) set -o posix ;;
271     esac
272    
273     fi
274    
275    
276     :
277     (as_func_return () {
278     (exit $1)
279     }
280     as_func_success () {
281     as_func_return 0
282     }
283     as_func_failure () {
284     as_func_return 1
285     }
286     as_func_ret_success () {
287     return 0
288     }
289     as_func_ret_failure () {
290     return 1
291     }
292    
293     exitcode=0
294     if as_func_success; then
295     :
296     else
297     exitcode=1
298     echo as_func_success failed.
299     fi
300    
301     if as_func_failure; then
302     exitcode=1
303     echo as_func_failure succeeded.
304     fi
305    
306     if as_func_ret_success; then
307     :
308     else
309     exitcode=1
310     echo as_func_ret_success failed.
311     fi
312    
313     if as_func_ret_failure; then
314     exitcode=1
315     echo as_func_ret_failure succeeded.
316     fi
317    
318     if ( set x; as_func_ret_success y && test x = "$1" ); then
319     :
320     else
321     exitcode=1
322     echo positional parameters were not saved.
323     fi
324    
325     test $exitcode = 0) || { (exit 1); exit 1; }
326    
327     (
328     as_lineno_1=$LINENO
329     as_lineno_2=$LINENO
330     test "x$as_lineno_1" != "x$as_lineno_2" &&
331     test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332    
333     _ASEOF
334     }; then
335     break
336     fi
337    
338     fi
339    
340     done
341    
342     if test "x$CONFIG_SHELL" != x; then
343     for as_var in BASH_ENV ENV
344     do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345     done
346     export CONFIG_SHELL
347     exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348     fi
349    
350    
351     if test $as_have_required = no; then
352     echo This script requires a shell more modern than all the
353     echo shells that I found on your system. Please install a
354     echo modern shell, or manually run the script under such a
355     echo shell if you do have one.
356     { (exit 1); exit 1; }
357     fi
358    
359    
360     fi
361    
362     fi
363    
364    
365    
366     (eval "as_func_return () {
367     (exit \$1)
368     }
369     as_func_success () {
370     as_func_return 0
371     }
372     as_func_failure () {
373     as_func_return 1
374     }
375     as_func_ret_success () {
376     return 0
377     }
378     as_func_ret_failure () {
379     return 1
380     }
381    
382     exitcode=0
383     if as_func_success; then
384     :
385     else
386     exitcode=1
387     echo as_func_success failed.
388     fi
389    
390     if as_func_failure; then
391     exitcode=1
392     echo as_func_failure succeeded.
393     fi
394    
395     if as_func_ret_success; then
396     :
397     else
398     exitcode=1
399     echo as_func_ret_success failed.
400     fi
401    
402     if as_func_ret_failure; then
403     exitcode=1
404     echo as_func_ret_failure succeeded.
405     fi
406    
407     if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408     :
409     else
410     exitcode=1
411     echo positional parameters were not saved.
412     fi
413    
414     test \$exitcode = 0") || {
415     echo No shell found that supports shell functions.
416     echo Please tell autoconf@gnu.org about your system,
417     echo including any error possibly output before this
418     echo message
419     }
420    
421    
422    
423 root 1.105 as_lineno_1=$LINENO
424     as_lineno_2=$LINENO
425     test "x$as_lineno_1" != "x$as_lineno_2" &&
426 ayin 1.108 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427 pcg 1.11
428     # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429     # uniformly replaced by the line number. The first 'sed' inserts a
430 ayin 1.108 # line-number line after each line using $LINENO; the second 'sed'
431     # does the real work. The second script uses 'N' to pair each
432     # line-number line with the line containing $LINENO, and appends
433     # trailing '-' during substitution so that $LINENO is not a special
434     # case at line end.
435 pcg 1.11 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 ayin 1.108 # scripts with optimization help from Paolo Bonzini. Blame Lee
437     # E. McMahon (1931-1989) for sed's syntax. :-)
438     sed -n '
439     p
440     /[$]LINENO/=
441     ' <$as_myself |
442 pcg 1.11 sed '
443 ayin 1.108 s/[$]LINENO.*/&-/
444     t lineno
445     b
446     :lineno
447 pcg 1.11 N
448 ayin 1.108 :loop
449     s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 pcg 1.11 t loop
451 ayin 1.108 s/-\n.*//
452 pcg 1.11 ' >$as_me.lineno &&
453 ayin 1.108 chmod +x "$as_me.lineno" ||
454 pcg 1.11 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455     { (exit 1); exit 1; }; }
456    
457     # Don't try to exec as it changes $[0], causing all sort of problems
458     # (the dirname of $[0] is not the place where we might find the
459 ayin 1.108 # original and so on. Autoconf is especially sensitive to this).
460     . "./$as_me.lineno"
461 pcg 1.11 # Exit status is that of the last command.
462     exit
463     }
464    
465    
466 ayin 1.108 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467     as_dirname=dirname
468     else
469     as_dirname=false
470     fi
471    
472     ECHO_C= ECHO_N= ECHO_T=
473     case `echo -n x` in
474     -n*)
475     case `echo 'x\c'` in
476     *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477     *) ECHO_C='\c';;
478     esac;;
479     *)
480     ECHO_N='-n';;
481 pcg 1.11 esac
482    
483 ayin 1.108 if expr a : '\(a\)' >/dev/null 2>&1 &&
484     test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 pcg 1.11 as_expr=expr
486     else
487     as_expr=false
488     fi
489    
490     rm -f conf$$ conf$$.exe conf$$.file
491 ayin 1.108 if test -d conf$$.dir; then
492     rm -f conf$$.dir/conf$$.file
493     else
494     rm -f conf$$.dir
495     mkdir conf$$.dir
496     fi
497 pcg 1.11 echo >conf$$.file
498     if ln -s conf$$.file conf$$ 2>/dev/null; then
499 ayin 1.108 as_ln_s='ln -s'
500     # ... but there are two gotchas:
501     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503     # In both cases, we have to default to `cp -p'.
504     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 pcg 1.11 as_ln_s='cp -p'
506     elif ln conf$$.file conf$$ 2>/dev/null; then
507     as_ln_s=ln
508     else
509     as_ln_s='cp -p'
510     fi
511 ayin 1.108 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512     rmdir conf$$.dir 2>/dev/null
513 pcg 1.11
514     if mkdir -p . 2>/dev/null; then
515     as_mkdir_p=:
516     else
517     test -d ./-p && rmdir ./-p
518     as_mkdir_p=false
519     fi
520    
521 ayin 1.108 if test -x / >/dev/null 2>&1; then
522     as_test_x='test -x'
523     else
524     if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526     else
527     as_ls_L_option=
528     fi
529     as_test_x='
530     eval sh -c '\''
531     if test -d "$1"; then
532     test -d "$1/.";
533     else
534     case $1 in
535     -*)set "./$1";;
536     esac;
537     case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538     ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540     '
541     fi
542     as_executable_p=$as_test_x
543 pcg 1.11
544     # Sed expression to map a string onto a valid CPP name.
545     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546    
547     # Sed expression to map a string onto a valid variable name.
548     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549    
550    
551 pcg 1.1
552 ayin 1.108 exec 7<&0 </dev/null 6>&1
553 pcg 1.1
554 pcg 1.11 # Name of the host.
555     # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556     # so uname gets run too.
557     ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558    
559     #
560     # Initializations.
561     #
562     ac_default_prefix=/usr/local
563 ayin 1.108 ac_clean_files=
564 pcg 1.11 ac_config_libobj_dir=.
565 ayin 1.108 LIBOBJS=
566 pcg 1.11 cross_compiling=no
567     subdirs=
568     MFLAGS=
569     MAKEFLAGS=
570     SHELL=${CONFIG_SHELL-/bin/sh}
571    
572     # Identity of this package.
573     PACKAGE_NAME=
574     PACKAGE_TARNAME=
575     PACKAGE_VERSION=
576     PACKAGE_STRING=
577     PACKAGE_BUGREPORT=
578    
579     ac_unique_file="src/feature.h"
580     # Factoring default headers for most tests.
581     ac_includes_default="\
582     #include <stdio.h>
583 ayin 1.108 #ifdef HAVE_SYS_TYPES_H
584 pcg 1.11 # include <sys/types.h>
585     #endif
586 ayin 1.108 #ifdef HAVE_SYS_STAT_H
587 pcg 1.11 # include <sys/stat.h>
588     #endif
589 ayin 1.108 #ifdef STDC_HEADERS
590 pcg 1.11 # include <stdlib.h>
591     # include <stddef.h>
592     #else
593 ayin 1.108 # ifdef HAVE_STDLIB_H
594 pcg 1.11 # include <stdlib.h>
595     # endif
596     #endif
597 ayin 1.108 #ifdef HAVE_STRING_H
598     # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 pcg 1.11 # include <memory.h>
600     # endif
601     # include <string.h>
602     #endif
603 ayin 1.108 #ifdef HAVE_STRINGS_H
604 pcg 1.11 # include <strings.h>
605     #endif
606 ayin 1.108 #ifdef HAVE_INTTYPES_H
607 pcg 1.11 # include <inttypes.h>
608     #endif
609 ayin 1.108 #ifdef HAVE_STDINT_H
610     # include <stdint.h>
611     #endif
612     #ifdef HAVE_UNISTD_H
613 pcg 1.11 # include <unistd.h>
614     #endif"
615    
616 ayin 1.108 ac_subst_vars='SHELL
617     PATH_SEPARATOR
618     PACKAGE_NAME
619     PACKAGE_TARNAME
620     PACKAGE_VERSION
621     PACKAGE_STRING
622     PACKAGE_BUGREPORT
623     exec_prefix
624     prefix
625     program_transform_name
626     bindir
627     sbindir
628     libexecdir
629     datarootdir
630     datadir
631     sysconfdir
632     sharedstatedir
633     localstatedir
634     includedir
635     oldincludedir
636     docdir
637     infodir
638     htmldir
639     dvidir
640     pdfdir
641     psdir
642     libdir
643     localedir
644     mandir
645     DEFS
646     ECHO_C
647     ECHO_N
648     ECHO_T
649     LIBS
650     build_alias
651     host_alias
652     target_alias
653     build
654     build_cpu
655     build_vendor
656     build_os
657     host
658     host_cpu
659     host_vendor
660     host_os
661     VERSION
662     DATE
663     LSMDATE
664     LIBVERSION
665     CC
666     CFLAGS
667     LDFLAGS
668     CPPFLAGS
669     ac_ct_CC
670     EXEEXT
671     OBJEXT
672     CXX
673     CXXFLAGS
674     ac_ct_CXX
675     CPP
676     INSTALL_PROGRAM
677     INSTALL_SCRIPT
678     INSTALL_DATA
679     GREP
680     EGREP
681     LINKER
682     INSTALL_LIBRXVT
683     RXVTNAME
684     TIC
685     XMKMF
686     CXXCPP
687     X_CFLAGS
688     X_PRE_LIBS
689     X_LIBS
690     X_EXTRA_LIBS
691     afterimage_config
692     XPM_CPPFLAGS
693     XPM_CFLAGS
694     XPM_LIBS
695     rxvt_int16_typedef
696     rxvt_uint16_typedef
697     rxvt_int32_typedef
698     rxvt_uint32_typedef
699     rxvt_intp_define
700     rxvt_u_intp_define
701     PKG_CONFIG
702     XFT_CONFIG
703     PERL
704     PERLLIB
705     PERLFLAGS
706     PERLPRIVLIBEXP
707     IF_PERL
708     PERL_O
709     AFTERIMAGE_CFLAGS
710     AFTERIMAGE_LIBS
711     include_stdint_h
712     include_stdarg_h
713     include_stdlib_h
714     include_unistd_h
715     include_string_h
716     include_fcntl_h
717     include_util_h
718     include_assert_h
719     include_sys_ioctl_h
720     include_sys_select_h
721     include_sys_strredir_h
722     include_sys_time_h
723     include_time_h
724     LIBOBJS
725     LTLIBOBJS'
726 root 1.73 ac_subst_files=''
727 ayin 1.108 ac_precious_vars='build_alias
728     host_alias
729     target_alias
730     CC
731     CFLAGS
732     LDFLAGS
733     LIBS
734     CPPFLAGS
735     CXX
736     CXXFLAGS
737     CCC
738     CPP
739     XMKMF
740     CXXCPP'
741    
742 pcg 1.1
743     # Initialize some variables set by options.
744 pcg 1.11 ac_init_help=
745     ac_init_version=false
746 pcg 1.1 # The variables have the same names as the options, with
747     # dashes changed to underlines.
748 pcg 1.11 cache_file=/dev/null
749 pcg 1.1 exec_prefix=NONE
750     no_create=
751     no_recursion=
752     prefix=NONE
753     program_prefix=NONE
754     program_suffix=NONE
755     program_transform_name=s,x,x,
756     silent=
757     site=
758     srcdir=
759     verbose=
760     x_includes=NONE
761     x_libraries=NONE
762 pcg 1.11
763     # Installation directory options.
764     # These are left unexpanded so users can "make install exec_prefix=/foo"
765     # and all the variables that are supposed to be based on exec_prefix
766     # by default will actually change.
767     # Use braces instead of parens because sh, perl, etc. also accept them.
768 ayin 1.108 # (The list follows the same order as the GNU Coding Standards.)
769 pcg 1.1 bindir='${exec_prefix}/bin'
770     sbindir='${exec_prefix}/sbin'
771     libexecdir='${exec_prefix}/libexec'
772 ayin 1.108 datarootdir='${prefix}/share'
773     datadir='${datarootdir}'
774 pcg 1.1 sysconfdir='${prefix}/etc'
775     sharedstatedir='${prefix}/com'
776     localstatedir='${prefix}/var'
777     includedir='${prefix}/include'
778     oldincludedir='/usr/include'
779 ayin 1.108 docdir='${datarootdir}/doc/${PACKAGE}'
780     infodir='${datarootdir}/info'
781     htmldir='${docdir}'
782     dvidir='${docdir}'
783     pdfdir='${docdir}'
784     psdir='${docdir}'
785     libdir='${exec_prefix}/lib'
786     localedir='${datarootdir}/locale'
787     mandir='${datarootdir}/man'
788 pcg 1.1
789     ac_prev=
790 ayin 1.108 ac_dashdash=
791 pcg 1.1 for ac_option
792     do
793     # If the previous option needs an argument, assign it.
794     if test -n "$ac_prev"; then
795 ayin 1.108 eval $ac_prev=\$ac_option
796 pcg 1.1 ac_prev=
797     continue
798     fi
799    
800 ayin 1.108 case $ac_option in
801     *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
802     *) ac_optarg=yes ;;
803     esac
804 pcg 1.1
805     # Accept the important Cygnus configure options, so we can diagnose typos.
806    
807 ayin 1.108 case $ac_dashdash$ac_option in
808     --)
809     ac_dashdash=yes ;;
810 pcg 1.1
811     -bindir | --bindir | --bindi | --bind | --bin | --bi)
812     ac_prev=bindir ;;
813     -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
814 pcg 1.11 bindir=$ac_optarg ;;
815 pcg 1.1
816     -build | --build | --buil | --bui | --bu)
817 pcg 1.11 ac_prev=build_alias ;;
818 pcg 1.1 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
819 pcg 1.11 build_alias=$ac_optarg ;;
820 pcg 1.1
821     -cache-file | --cache-file | --cache-fil | --cache-fi \
822     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
823     ac_prev=cache_file ;;
824     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
825     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
826 pcg 1.11 cache_file=$ac_optarg ;;
827    
828     --config-cache | -C)
829     cache_file=config.cache ;;
830 pcg 1.1
831 ayin 1.108 -datadir | --datadir | --datadi | --datad)
832 pcg 1.1 ac_prev=datadir ;;
833 ayin 1.108 -datadir=* | --datadir=* | --datadi=* | --datad=*)
834 pcg 1.11 datadir=$ac_optarg ;;
835 pcg 1.1
836 ayin 1.108 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
837     | --dataroo | --dataro | --datar)
838     ac_prev=datarootdir ;;
839     -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
840     | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
841     datarootdir=$ac_optarg ;;
842    
843 pcg 1.1 -disable-* | --disable-*)
844 pcg 1.11 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
845 pcg 1.1 # Reject names that are not valid shell variable names.
846 ayin 1.108 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
847 pcg 1.11 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
848     { (exit 1); exit 1; }; }
849 ayin 1.108 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
850     eval enable_$ac_feature=no ;;
851    
852     -docdir | --docdir | --docdi | --doc | --do)
853     ac_prev=docdir ;;
854     -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
855     docdir=$ac_optarg ;;
856    
857     -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
858     ac_prev=dvidir ;;
859     -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
860     dvidir=$ac_optarg ;;
861 pcg 1.1
862     -enable-* | --enable-*)
863 pcg 1.11 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
864 pcg 1.1 # Reject names that are not valid shell variable names.
865 ayin 1.108 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
866 pcg 1.11 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
867     { (exit 1); exit 1; }; }
868 ayin 1.108 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
869     eval enable_$ac_feature=\$ac_optarg ;;
870 pcg 1.1
871     -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
872     | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
873     | --exec | --exe | --ex)
874     ac_prev=exec_prefix ;;
875     -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
876     | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
877     | --exec=* | --exe=* | --ex=*)
878 pcg 1.11 exec_prefix=$ac_optarg ;;
879 pcg 1.1
880     -gas | --gas | --ga | --g)
881     # Obsolete; use --with-gas.
882     with_gas=yes ;;
883    
884 pcg 1.11 -help | --help | --hel | --he | -h)
885     ac_init_help=long ;;
886     -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
887     ac_init_help=recursive ;;
888     -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
889     ac_init_help=short ;;
890 pcg 1.1
891     -host | --host | --hos | --ho)
892 pcg 1.11 ac_prev=host_alias ;;
893 pcg 1.1 -host=* | --host=* | --hos=* | --ho=*)
894 pcg 1.11 host_alias=$ac_optarg ;;
895 pcg 1.1
896 ayin 1.108 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
897     ac_prev=htmldir ;;
898     -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
899     | --ht=*)
900     htmldir=$ac_optarg ;;
901    
902 pcg 1.1 -includedir | --includedir | --includedi | --included | --include \
903     | --includ | --inclu | --incl | --inc)
904     ac_prev=includedir ;;
905     -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
906     | --includ=* | --inclu=* | --incl=* | --inc=*)
907 pcg 1.11 includedir=$ac_optarg ;;
908 pcg 1.1
909     -infodir | --infodir | --infodi | --infod | --info | --inf)
910     ac_prev=infodir ;;
911     -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
912 pcg 1.11 infodir=$ac_optarg ;;
913 pcg 1.1
914     -libdir | --libdir | --libdi | --libd)
915     ac_prev=libdir ;;
916     -libdir=* | --libdir=* | --libdi=* | --libd=*)
917 pcg 1.11 libdir=$ac_optarg ;;
918 pcg 1.1
919     -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
920     | --libexe | --libex | --libe)
921     ac_prev=libexecdir ;;
922     -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
923     | --libexe=* | --libex=* | --libe=*)
924 pcg 1.11 libexecdir=$ac_optarg ;;
925 pcg 1.1
926 ayin 1.108 -localedir | --localedir | --localedi | --localed | --locale)
927     ac_prev=localedir ;;
928     -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
929     localedir=$ac_optarg ;;
930    
931 pcg 1.1 -localstatedir | --localstatedir | --localstatedi | --localstated \
932 ayin 1.108 | --localstate | --localstat | --localsta | --localst | --locals)
933 pcg 1.1 ac_prev=localstatedir ;;
934     -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
935 ayin 1.108 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
936 pcg 1.11 localstatedir=$ac_optarg ;;
937 pcg 1.1
938     -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
939     ac_prev=mandir ;;
940     -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
941 pcg 1.11 mandir=$ac_optarg ;;
942 pcg 1.1
943     -nfp | --nfp | --nf)
944     # Obsolete; use --without-fp.
945     with_fp=no ;;
946    
947     -no-create | --no-create | --no-creat | --no-crea | --no-cre \
948 pcg 1.11 | --no-cr | --no-c | -n)
949 pcg 1.1 no_create=yes ;;
950    
951     -no-recursion | --no-recursion | --no-recursio | --no-recursi \
952     | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
953     no_recursion=yes ;;
954    
955     -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
956     | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
957     | --oldin | --oldi | --old | --ol | --o)
958     ac_prev=oldincludedir ;;
959     -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
960     | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
961     | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
962 pcg 1.11 oldincludedir=$ac_optarg ;;
963 pcg 1.1
964     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
965     ac_prev=prefix ;;
966     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
967 pcg 1.11 prefix=$ac_optarg ;;
968 pcg 1.1
969     -program-prefix | --program-prefix | --program-prefi | --program-pref \
970     | --program-pre | --program-pr | --program-p)
971     ac_prev=program_prefix ;;
972     -program-prefix=* | --program-prefix=* | --program-prefi=* \
973     | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
974 pcg 1.11 program_prefix=$ac_optarg ;;
975 pcg 1.1
976     -program-suffix | --program-suffix | --program-suffi | --program-suff \
977     | --program-suf | --program-su | --program-s)
978     ac_prev=program_suffix ;;
979     -program-suffix=* | --program-suffix=* | --program-suffi=* \
980     | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
981 pcg 1.11 program_suffix=$ac_optarg ;;
982 pcg 1.1
983     -program-transform-name | --program-transform-name \
984     | --program-transform-nam | --program-transform-na \
985     | --program-transform-n | --program-transform- \
986     | --program-transform | --program-transfor \
987     | --program-transfo | --program-transf \
988     | --program-trans | --program-tran \
989     | --progr-tra | --program-tr | --program-t)
990     ac_prev=program_transform_name ;;
991     -program-transform-name=* | --program-transform-name=* \
992     | --program-transform-nam=* | --program-transform-na=* \
993     | --program-transform-n=* | --program-transform-=* \
994     | --program-transform=* | --program-transfor=* \
995     | --program-transfo=* | --program-transf=* \
996     | --program-trans=* | --program-tran=* \
997     | --progr-tra=* | --program-tr=* | --program-t=*)
998 pcg 1.11 program_transform_name=$ac_optarg ;;
999 pcg 1.1
1000 ayin 1.108 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1001     ac_prev=pdfdir ;;
1002     -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1003     pdfdir=$ac_optarg ;;
1004    
1005     -psdir | --psdir | --psdi | --psd | --ps)
1006     ac_prev=psdir ;;
1007     -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1008     psdir=$ac_optarg ;;
1009    
1010 pcg 1.1 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1011     | -silent | --silent | --silen | --sile | --sil)
1012     silent=yes ;;
1013    
1014     -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1015     ac_prev=sbindir ;;
1016     -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1017     | --sbi=* | --sb=*)
1018 pcg 1.11 sbindir=$ac_optarg ;;
1019 pcg 1.1
1020     -sharedstatedir | --sharedstatedir | --sharedstatedi \
1021     | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1022     | --sharedst | --shareds | --shared | --share | --shar \
1023     | --sha | --sh)
1024     ac_prev=sharedstatedir ;;
1025     -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1026     | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1027     | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1028     | --sha=* | --sh=*)
1029 pcg 1.11 sharedstatedir=$ac_optarg ;;
1030 pcg 1.1
1031     -site | --site | --sit)
1032     ac_prev=site ;;
1033     -site=* | --site=* | --sit=*)
1034 pcg 1.11 site=$ac_optarg ;;
1035 pcg 1.1
1036     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1037     ac_prev=srcdir ;;
1038     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1039 pcg 1.11 srcdir=$ac_optarg ;;
1040 pcg 1.1
1041     -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1042     | --syscon | --sysco | --sysc | --sys | --sy)
1043     ac_prev=sysconfdir ;;
1044     -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1045     | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1046 pcg 1.11 sysconfdir=$ac_optarg ;;
1047 pcg 1.1
1048     -target | --target | --targe | --targ | --tar | --ta | --t)
1049 pcg 1.11 ac_prev=target_alias ;;
1050 pcg 1.1 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1051 pcg 1.11 target_alias=$ac_optarg ;;
1052 pcg 1.1
1053     -v | -verbose | --verbose | --verbos | --verbo | --verb)
1054     verbose=yes ;;
1055    
1056 pcg 1.11 -version | --version | --versio | --versi | --vers | -V)
1057     ac_init_version=: ;;
1058 pcg 1.1
1059     -with-* | --with-*)
1060 pcg 1.11 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1061 pcg 1.1 # Reject names that are not valid shell variable names.
1062 ayin 1.108 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1063 pcg 1.11 { echo "$as_me: error: invalid package name: $ac_package" >&2
1064     { (exit 1); exit 1; }; }
1065 ayin 1.108 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1066     eval with_$ac_package=\$ac_optarg ;;
1067 pcg 1.1
1068     -without-* | --without-*)
1069 pcg 1.11 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1070 pcg 1.1 # Reject names that are not valid shell variable names.
1071 ayin 1.108 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1072 pcg 1.11 { echo "$as_me: error: invalid package name: $ac_package" >&2
1073     { (exit 1); exit 1; }; }
1074 ayin 1.108 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1075     eval with_$ac_package=no ;;
1076 pcg 1.1
1077     --x)
1078     # Obsolete; use --with-x.
1079     with_x=yes ;;
1080    
1081     -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1082     | --x-incl | --x-inc | --x-in | --x-i)
1083     ac_prev=x_includes ;;
1084     -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1085     | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1086 pcg 1.11 x_includes=$ac_optarg ;;
1087 pcg 1.1
1088     -x-libraries | --x-libraries | --x-librarie | --x-librari \
1089     | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1090     ac_prev=x_libraries ;;
1091     -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1092     | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1093 pcg 1.11 x_libraries=$ac_optarg ;;
1094 pcg 1.1
1095 pcg 1.11 -*) { echo "$as_me: error: unrecognized option: $ac_option
1096     Try \`$0 --help' for more information." >&2
1097     { (exit 1); exit 1; }; }
1098 pcg 1.1 ;;
1099    
1100 pcg 1.11 *=*)
1101     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1102     # Reject names that are not valid shell variable names.
1103     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1104     { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1105     { (exit 1); exit 1; }; }
1106 ayin 1.108 eval $ac_envvar=\$ac_optarg
1107 pcg 1.11 export $ac_envvar ;;
1108    
1109 pcg 1.1 *)
1110 pcg 1.11 # FIXME: should be removed in autoconf 3.0.
1111     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1112     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1113     echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1114     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1115 pcg 1.1 ;;
1116    
1117     esac
1118     done
1119    
1120     if test -n "$ac_prev"; then
1121 pcg 1.11 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1122     { echo "$as_me: error: missing argument to $ac_option" >&2
1123     { (exit 1); exit 1; }; }
1124 pcg 1.1 fi
1125    
1126 ayin 1.108 # Be sure to have absolute directory names.
1127     for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1128     datadir sysconfdir sharedstatedir localstatedir includedir \
1129     oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1130     libdir localedir mandir
1131 pcg 1.11 do
1132 ayin 1.108 eval ac_val=\$$ac_var
1133 pcg 1.11 case $ac_val in
1134 ayin 1.108 [\\/$]* | ?:[\\/]* ) continue;;
1135     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1136 pcg 1.1 esac
1137 ayin 1.108 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1138     { (exit 1); exit 1; }; }
1139 pcg 1.1 done
1140    
1141 pcg 1.11 # There might be people who depend on the old broken behavior: `$host'
1142     # used to hold the argument of --host etc.
1143     # FIXME: To remove some day.
1144     build=$build_alias
1145     host=$host_alias
1146     target=$target_alias
1147    
1148     # FIXME: To remove some day.
1149     if test "x$host_alias" != x; then
1150     if test "x$build_alias" = x; then
1151     cross_compiling=maybe
1152     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1153     If a cross compiler is detected then cross compile mode will be used." >&2
1154     elif test "x$build_alias" != "x$host_alias"; then
1155     cross_compiling=yes
1156     fi
1157     fi
1158    
1159     ac_tool_prefix=
1160     test -n "$host_alias" && ac_tool_prefix=$host_alias-
1161 pcg 1.1
1162 pcg 1.11 test "$silent" = yes && exec 6>/dev/null
1163 pcg 1.1
1164    
1165 ayin 1.108 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1166     ac_ls_di=`ls -di .` &&
1167     ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1168     { echo "$as_me: error: Working directory cannot be determined" >&2
1169     { (exit 1); exit 1; }; }
1170     test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1171     { echo "$as_me: error: pwd does not report name of working directory" >&2
1172     { (exit 1); exit 1; }; }
1173    
1174    
1175 pcg 1.1 # Find the source files, if location was not specified.
1176     if test -z "$srcdir"; then
1177     ac_srcdir_defaulted=yes
1178 ayin 1.108 # Try the directory containing this script, then the parent directory.
1179     ac_confdir=`$as_dirname -- "$0" ||
1180 pcg 1.11 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1181     X"$0" : 'X\(//\)[^/]' \| \
1182     X"$0" : 'X\(//\)$' \| \
1183 ayin 1.108 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1184 pcg 1.11 echo X"$0" |
1185 ayin 1.108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1186     s//\1/
1187     q
1188     }
1189     /^X\(\/\/\)[^/].*/{
1190     s//\1/
1191     q
1192     }
1193     /^X\(\/\/\)$/{
1194     s//\1/
1195     q
1196     }
1197     /^X\(\/\).*/{
1198     s//\1/
1199     q
1200     }
1201     s/.*/./; q'`
1202 pcg 1.1 srcdir=$ac_confdir
1203 ayin 1.108 if test ! -r "$srcdir/$ac_unique_file"; then
1204 pcg 1.1 srcdir=..
1205     fi
1206     else
1207     ac_srcdir_defaulted=no
1208     fi
1209 ayin 1.108 if test ! -r "$srcdir/$ac_unique_file"; then
1210     test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1211     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1212     { (exit 1); exit 1; }; }
1213     fi
1214     ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1215     ac_abs_confdir=`(
1216     cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1217     { (exit 1); exit 1; }; }
1218     pwd)`
1219     # When building in place, set srcdir=.
1220     if test "$ac_abs_confdir" = "$ac_pwd"; then
1221     srcdir=.
1222     fi
1223     # Remove unnecessary trailing slashes from srcdir.
1224     # Double slashes in file names in object file debugging info
1225     # mess up M-x gdb in Emacs.
1226     case $srcdir in
1227     */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1228     esac
1229     for ac_var in $ac_precious_vars; do
1230     eval ac_env_${ac_var}_set=\${${ac_var}+set}
1231     eval ac_env_${ac_var}_value=\$${ac_var}
1232     eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1233     eval ac_cv_env_${ac_var}_value=\$${ac_var}
1234     done
1235    
1236 pcg 1.11 #
1237     # Report the --help message.
1238     #
1239     if test "$ac_init_help" = "long"; then
1240     # Omit some internal or obsolete options to make the list less imposing.
1241     # This message is too long to be a string in the A/UX 3.1 sh.
1242     cat <<_ACEOF
1243     \`configure' configures this package to adapt to many kinds of systems.
1244    
1245     Usage: $0 [OPTION]... [VAR=VALUE]...
1246    
1247     To assign environment variables (e.g., CC, CFLAGS...), specify them as
1248     VAR=VALUE. See below for descriptions of some of the useful variables.
1249    
1250     Defaults for the options are specified in brackets.
1251    
1252     Configuration:
1253     -h, --help display this help and exit
1254     --help=short display options specific to this package
1255     --help=recursive display the short help of all the included packages
1256     -V, --version display version information and exit
1257     -q, --quiet, --silent do not print \`checking...' messages
1258     --cache-file=FILE cache test results in FILE [disabled]
1259     -C, --config-cache alias for \`--cache-file=config.cache'
1260     -n, --no-create do not create output files
1261     --srcdir=DIR find the sources in DIR [configure dir or \`..']
1262    
1263     Installation directories:
1264     --prefix=PREFIX install architecture-independent files in PREFIX
1265     [$ac_default_prefix]
1266     --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1267     [PREFIX]
1268    
1269     By default, \`make install' will install all the files in
1270     \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1271     an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1272     for instance \`--prefix=\$HOME'.
1273    
1274     For better control, use the options below.
1275    
1276     Fine tuning of the installation directories:
1277     --bindir=DIR user executables [EPREFIX/bin]
1278     --sbindir=DIR system admin executables [EPREFIX/sbin]
1279     --libexecdir=DIR program executables [EPREFIX/libexec]
1280     --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1281     --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1282     --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1283     --libdir=DIR object code libraries [EPREFIX/lib]
1284     --includedir=DIR C header files [PREFIX/include]
1285     --oldincludedir=DIR C header files for non-gcc [/usr/include]
1286 ayin 1.108 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1287     --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1288     --infodir=DIR info documentation [DATAROOTDIR/info]
1289     --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1290     --mandir=DIR man documentation [DATAROOTDIR/man]
1291     --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1292     --htmldir=DIR html documentation [DOCDIR]
1293     --dvidir=DIR dvi documentation [DOCDIR]
1294     --pdfdir=DIR pdf documentation [DOCDIR]
1295     --psdir=DIR ps documentation [DOCDIR]
1296 pcg 1.11 _ACEOF
1297    
1298     cat <<\_ACEOF
1299    
1300     X features:
1301     --x-includes=DIR X include files are in DIR
1302     --x-libraries=DIR X library files are in DIR
1303    
1304     Program names:
1305     --program-prefix=PREFIX prepend PREFIX to installed program names
1306     --program-suffix=SUFFIX append SUFFIX to installed program names
1307     --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1308    
1309     System types:
1310     --build=BUILD configure for building on BUILD [guessed]
1311     --host=HOST cross-compile to build programs to run on HOST [BUILD]
1312     _ACEOF
1313     fi
1314    
1315     if test -n "$ac_init_help"; then
1316    
1317     cat <<\_ACEOF
1318    
1319     Optional Features:
1320     --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1321     --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1322 pcg 1.13 --enable-everything enable standard non-multichoice features
1323 pcg 1.11 NOTE: this option is order dependent
1324     NOTE: automatically enabled with --enable-shared
1325     --enable-unicode3 use 21 instead of 16 bits to represent unicode characters
1326 pcg 1.18 --enable-combining enable composition of base and combining characters
1327 pcg 1.15 --enable-xft enable xft support on systems that have it
1328 root 1.39 --enable-font-styles enable bold and italic support
1329 root 1.103 --enable-xpm-background enable background pixmaps
1330     --enable-afterimage enable integration with libAfterImage for background images
1331     --enable-afterstep enable integration with AfterStep window manager
1332 pcg 1.11 --enable-transparency enable transparent backgrounds
1333 pcg 1.24 --enable-tinting enable tinting of transparent bg
1334 root 1.31 --enable-fading enable colors fading when off focus
1335 pcg 1.11 --enable-rxvt-scroll enable rxvt style scrollbar
1336     --enable-next-scroll enable NeXT style scrollbar
1337     --enable-xterm-scroll enable Xterm style scrollbar
1338 root 1.60 --enable-perl enable embedded perl interpreter
1339 pcg 1.11 --enable-plain-scroll enable plain style scrollbar
1340     --enable-xim XIM (X Input Method) protocol support
1341     --disable-backspace-key disable handling of the backspace key
1342     --disable-delete-key disable handling of the delete key
1343     --disable-resources disable all resource checking
1344 root 1.26 --enable-8bitctrls enable 8 bit control sequences (not recommended)
1345 pcg 1.15 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
1346 pcg 1.11 --disable-swapscreen disable swap screen support
1347 root 1.34 --enable-iso14755 enable support for extended ISO 14755 modes
1348 pcg 1.11 --enable-frills enable support for rarely used features
1349     --enable-keepscrolling enable continual scrolling on scrollbar arrow press
1350     --enable-selectionscrolling enable scrolling during selections
1351     --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1352     --enable-slipwheeling enable slip wheel scrolling (requires previous)
1353     --enable-smart-resize enable smart growth/shrink behaviour
1354     --enable-text-blink enable blinking text
1355     --enable-pointer-blank enable pointer blank when typing or inactive pointer
1356 root 1.92 --enable-utmp enable utmp (utmpx) support
1357     --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
1358     --enable-lastlog enable lastlog support (requires --enable-utmp)
1359 pcg 1.11
1360     Optional Packages:
1361     --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1362     --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1363 root 1.103 --with-afterimage-config=DIR use libAfterImage config script in DIR
1364 root 1.41 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)
1365 pcg 1.15 --with-res-name=NAME use this as default resource name (default: urxvt)
1366 pcg 1.18 --with-res-class=CLASS use this as the resource class (default: URxvt)
1367 pcg 1.15 --with-name=NAME set the basename for the installed binaries (default: urxvt)
1368     --with-term=NAME set the terminal to NAME (default: rxvt)
1369 pcg 1.11 --with-terminfo=PATH set the path to the terminfo tree to PATH
1370     --with-x use the X Window System
1371     --with-xpm-includes=DIR use XPM includes in DIR
1372     --with-xpm-library=DIR use XPM library in DIR
1373     --with-xpm use XPM
1374    
1375     Some influential environment variables:
1376     CC C compiler command
1377     CFLAGS C compiler flags
1378     LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1379     nonstandard directory <lib dir>
1380 ayin 1.108 LIBS libraries to pass to the linker, e.g. -l<library>
1381     CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1382     you have headers in a nonstandard directory <include dir>
1383 pcg 1.11 CXX C++ compiler command
1384     CXXFLAGS C++ compiler flags
1385     CPP C preprocessor
1386 ayin 1.108 XMKMF Path to xmkmf, Makefile generator for X Window System
1387 pcg 1.13 CXXCPP C++ preprocessor
1388 pcg 1.11
1389     Use these variables to override the choices made by `configure' or to help
1390     it to find libraries and programs with nonstandard names/locations.
1391    
1392     _ACEOF
1393 ayin 1.108 ac_status=$?
1394 pcg 1.11 fi
1395    
1396     if test "$ac_init_help" = "recursive"; then
1397     # If there are subdirs, report their specific --help.
1398     for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1399 ayin 1.108 test -d "$ac_dir" || continue
1400 pcg 1.11 ac_builddir=.
1401    
1402 ayin 1.108 case "$ac_dir" in
1403     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1404     *)
1405 pcg 1.11 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1406 ayin 1.108 # A ".." for each directory in $ac_dir_suffix.
1407     ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1408     case $ac_top_builddir_sub in
1409     "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1410     *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1411     esac ;;
1412     esac
1413     ac_abs_top_builddir=$ac_pwd
1414     ac_abs_builddir=$ac_pwd$ac_dir_suffix
1415     # for backward compatibility:
1416     ac_top_builddir=$ac_top_build_prefix
1417 pcg 1.11
1418     case $srcdir in
1419 ayin 1.108 .) # We are building in place.
1420 pcg 1.11 ac_srcdir=.
1421 ayin 1.108 ac_top_srcdir=$ac_top_builddir_sub
1422     ac_abs_top_srcdir=$ac_pwd ;;
1423     [\\/]* | ?:[\\/]* ) # Absolute name.
1424 pcg 1.11 ac_srcdir=$srcdir$ac_dir_suffix;
1425 ayin 1.108 ac_top_srcdir=$srcdir
1426     ac_abs_top_srcdir=$srcdir ;;
1427     *) # Relative name.
1428     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1429     ac_top_srcdir=$ac_top_build_prefix$srcdir
1430     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1431 pcg 1.11 esac
1432 ayin 1.108 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1433 pcg 1.11
1434 ayin 1.108 cd "$ac_dir" || { ac_status=$?; continue; }
1435     # Check for guested configure.
1436     if test -f "$ac_srcdir/configure.gnu"; then
1437     echo &&
1438     $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1439     elif test -f "$ac_srcdir/configure"; then
1440     echo &&
1441     $SHELL "$ac_srcdir/configure" --help=recursive
1442 pcg 1.11 else
1443     echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1444 ayin 1.108 fi || ac_status=$?
1445     cd "$ac_pwd" || { ac_status=$?; break; }
1446 pcg 1.11 done
1447     fi
1448    
1449 ayin 1.108 test -n "$ac_init_help" && exit $ac_status
1450 pcg 1.11 if $ac_init_version; then
1451     cat <<\_ACEOF
1452 ayin 1.108 configure
1453     generated by GNU Autoconf 2.61
1454 pcg 1.11
1455 ayin 1.108 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1456     2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1457 pcg 1.11 This configure script is free software; the Free Software Foundation
1458     gives unlimited permission to copy, distribute and modify it.
1459     _ACEOF
1460 ayin 1.108 exit
1461 pcg 1.11 fi
1462 ayin 1.108 cat >config.log <<_ACEOF
1463 pcg 1.11 This file contains any messages produced by compilers while
1464     running configure, to aid debugging if configure makes a mistake.
1465    
1466     It was created by $as_me, which was
1467 ayin 1.108 generated by GNU Autoconf 2.61. Invocation command line was
1468 pcg 1.11
1469     $ $0 $@
1470    
1471     _ACEOF
1472 ayin 1.108 exec 5>>config.log
1473 pcg 1.11 {
1474     cat <<_ASUNAME
1475     ## --------- ##
1476     ## Platform. ##
1477     ## --------- ##
1478    
1479     hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1480     uname -m = `(uname -m) 2>/dev/null || echo unknown`
1481     uname -r = `(uname -r) 2>/dev/null || echo unknown`
1482     uname -s = `(uname -s) 2>/dev/null || echo unknown`
1483     uname -v = `(uname -v) 2>/dev/null || echo unknown`
1484    
1485     /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1486     /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1487    
1488     /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1489     /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1490     /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1491 ayin 1.108 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1492 pcg 1.11 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1493     /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1494     /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1495    
1496     _ASUNAME
1497    
1498     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1499     for as_dir in $PATH
1500     do
1501     IFS=$as_save_IFS
1502     test -z "$as_dir" && as_dir=.
1503     echo "PATH: $as_dir"
1504     done
1505 ayin 1.108 IFS=$as_save_IFS
1506 pcg 1.11
1507     } >&5
1508    
1509     cat >&5 <<_ACEOF
1510    
1511    
1512     ## ----------- ##
1513     ## Core tests. ##
1514     ## ----------- ##
1515    
1516     _ACEOF
1517    
1518    
1519     # Keep a trace of the command line.
1520     # Strip out --no-create and --no-recursion so they do not pile up.
1521     # Strip out --silent because we don't want to record it for future runs.
1522     # Also quote any args containing shell meta-characters.
1523     # Make two passes to allow for proper duplicate-argument suppression.
1524     ac_configure_args=
1525     ac_configure_args0=
1526     ac_configure_args1=
1527     ac_must_keep_next=false
1528     for ac_pass in 1 2
1529     do
1530     for ac_arg
1531     do
1532     case $ac_arg in
1533     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1534     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1535     | -silent | --silent | --silen | --sile | --sil)
1536     continue ;;
1537 ayin 1.108 *\'*)
1538 pcg 1.11 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1539     esac
1540     case $ac_pass in
1541     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1542     2)
1543     ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1544     if test $ac_must_keep_next = true; then
1545     ac_must_keep_next=false # Got value, back to normal.
1546     else
1547     case $ac_arg in
1548     *=* | --config-cache | -C | -disable-* | --disable-* \
1549     | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1550     | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1551     | -with-* | --with-* | -without-* | --without-* | --x)
1552     case "$ac_configure_args0 " in
1553     "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1554     esac
1555     ;;
1556     -* ) ac_must_keep_next=true ;;
1557     esac
1558     fi
1559 ayin 1.108 ac_configure_args="$ac_configure_args '$ac_arg'"
1560 pcg 1.11 ;;
1561     esac
1562     done
1563     done
1564     $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1565     $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1566    
1567     # When interrupted or exit'd, cleanup temporary files, and complete
1568     # config.log. We remove comments because anyway the quotes in there
1569     # would cause problems or look ugly.
1570 ayin 1.108 # WARNING: Use '\'' to represent an apostrophe within the trap.
1571     # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1572 pcg 1.11 trap 'exit_status=$?
1573     # Save into config.log some information that might help in debugging.
1574     {
1575     echo
1576    
1577     cat <<\_ASBOX
1578     ## ---------------- ##
1579     ## Cache variables. ##
1580     ## ---------------- ##
1581     _ASBOX
1582     echo
1583     # The following way of writing the cache mishandles newlines in values,
1584 ayin 1.108 (
1585     for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1586     eval ac_val=\$$ac_var
1587     case $ac_val in #(
1588     *${as_nl}*)
1589     case $ac_var in #(
1590     *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1591     echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1592     esac
1593     case $ac_var in #(
1594     _ | IFS | as_nl) ;; #(
1595     *) $as_unset $ac_var ;;
1596     esac ;;
1597     esac
1598     done
1599 pcg 1.11 (set) 2>&1 |
1600 ayin 1.108 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1601     *${as_nl}ac_space=\ *)
1602 pcg 1.11 sed -n \
1603 ayin 1.108 "s/'\''/'\''\\\\'\'''\''/g;
1604     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1605     ;; #(
1606 pcg 1.11 *)
1607 ayin 1.108 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1608 pcg 1.11 ;;
1609 ayin 1.108 esac |
1610     sort
1611     )
1612 pcg 1.11 echo
1613    
1614     cat <<\_ASBOX
1615     ## ----------------- ##
1616     ## Output variables. ##
1617     ## ----------------- ##
1618     _ASBOX
1619     echo
1620     for ac_var in $ac_subst_vars
1621     do
1622 ayin 1.108 eval ac_val=\$$ac_var
1623     case $ac_val in
1624     *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1625     esac
1626     echo "$ac_var='\''$ac_val'\''"
1627 pcg 1.11 done | sort
1628     echo
1629    
1630     if test -n "$ac_subst_files"; then
1631     cat <<\_ASBOX
1632 ayin 1.108 ## ------------------- ##
1633     ## File substitutions. ##
1634     ## ------------------- ##
1635 pcg 1.11 _ASBOX
1636     echo
1637     for ac_var in $ac_subst_files
1638     do
1639 ayin 1.108 eval ac_val=\$$ac_var
1640     case $ac_val in
1641     *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1642     esac
1643     echo "$ac_var='\''$ac_val'\''"
1644 pcg 1.11 done | sort
1645     echo
1646     fi
1647    
1648     if test -s confdefs.h; then
1649     cat <<\_ASBOX
1650     ## ----------- ##
1651     ## confdefs.h. ##
1652     ## ----------- ##
1653     _ASBOX
1654     echo
1655 ayin 1.108 cat confdefs.h
1656 pcg 1.11 echo
1657     fi
1658     test "$ac_signal" != 0 &&
1659     echo "$as_me: caught signal $ac_signal"
1660     echo "$as_me: exit $exit_status"
1661     } >&5
1662 ayin 1.108 rm -f core *.core core.conftest.* &&
1663     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1664 pcg 1.11 exit $exit_status
1665 ayin 1.108 ' 0
1666 pcg 1.11 for ac_signal in 1 2 13 15; do
1667     trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1668     done
1669     ac_signal=0
1670    
1671     # confdefs.h avoids OS command line length limits that DEFS can exceed.
1672 ayin 1.108 rm -f -r conftest* confdefs.h
1673 pcg 1.11
1674     # Predefined preprocessor variables.
1675    
1676     cat >>confdefs.h <<_ACEOF
1677     #define PACKAGE_NAME "$PACKAGE_NAME"
1678     _ACEOF
1679    
1680    
1681     cat >>confdefs.h <<_ACEOF
1682     #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1683     _ACEOF
1684    
1685    
1686     cat >>confdefs.h <<_ACEOF
1687     #define PACKAGE_VERSION "$PACKAGE_VERSION"
1688     _ACEOF
1689    
1690    
1691     cat >>confdefs.h <<_ACEOF
1692     #define PACKAGE_STRING "$PACKAGE_STRING"
1693     _ACEOF
1694    
1695    
1696     cat >>confdefs.h <<_ACEOF
1697     #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1698     _ACEOF
1699 pcg 1.1
1700 pcg 1.11
1701     # Let the site file select an alternate cache file if it wants to.
1702 pcg 1.1 # Prefer explicitly selected file to automatically selected ones.
1703 ayin 1.108 if test -n "$CONFIG_SITE"; then
1704     set x "$CONFIG_SITE"
1705     elif test "x$prefix" != xNONE; then
1706     set x "$prefix/share/config.site" "$prefix/etc/config.site"
1707     else
1708     set x "$ac_default_prefix/share/config.site" \
1709     "$ac_default_prefix/etc/config.site"
1710 pcg 1.1 fi
1711 ayin 1.108 shift
1712     for ac_site_file
1713     do
1714 pcg 1.1 if test -r "$ac_site_file"; then
1715 pcg 1.11 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1716     echo "$as_me: loading site script $ac_site_file" >&6;}
1717     sed 's/^/| /' "$ac_site_file" >&5
1718 pcg 1.1 . "$ac_site_file"
1719     fi
1720     done
1721    
1722     if test -r "$cache_file"; then
1723 pcg 1.11 # Some versions of bash will fail to source /dev/null (special
1724     # files actually), so we avoid doing that.
1725     if test -f "$cache_file"; then
1726     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1727     echo "$as_me: loading cache $cache_file" >&6;}
1728     case $cache_file in
1729 ayin 1.108 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1730     *) . "./$cache_file";;
1731 pcg 1.11 esac
1732     fi
1733 pcg 1.1 else
1734 pcg 1.11 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1735     echo "$as_me: creating cache $cache_file" >&6;}
1736     >$cache_file
1737     fi
1738    
1739     # Check that the precious variables saved in the cache have kept the same
1740     # value.
1741     ac_cache_corrupted=false
1742 ayin 1.108 for ac_var in $ac_precious_vars; do
1743 pcg 1.11 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1744     eval ac_new_set=\$ac_env_${ac_var}_set
1745 ayin 1.108 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1746     eval ac_new_val=\$ac_env_${ac_var}_value
1747 pcg 1.11 case $ac_old_set,$ac_new_set in
1748     set,)
1749     { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1750     echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1751     ac_cache_corrupted=: ;;
1752     ,set)
1753     { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1754     echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1755     ac_cache_corrupted=: ;;
1756     ,);;
1757     *)
1758     if test "x$ac_old_val" != "x$ac_new_val"; then
1759     { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1760     echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1761     { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1762     echo "$as_me: former value: $ac_old_val" >&2;}
1763     { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1764     echo "$as_me: current value: $ac_new_val" >&2;}
1765     ac_cache_corrupted=:
1766     fi;;
1767     esac
1768     # Pass precious variables to config.status.
1769     if test "$ac_new_set" = set; then
1770     case $ac_new_val in
1771 ayin 1.108 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1772 pcg 1.11 *) ac_arg=$ac_var=$ac_new_val ;;
1773     esac
1774     case " $ac_configure_args " in
1775     *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1776     *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1777     esac
1778     fi
1779     done
1780     if $ac_cache_corrupted; then
1781     { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1782     echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1783     { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1784     echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1785     { (exit 1); exit 1; }; }
1786 pcg 1.1 fi
1787    
1788 ayin 1.106
1789 ayin 1.104
1790 pcg 1.11
1791    
1792    
1793    
1794    
1795    
1796    
1797    
1798    
1799    
1800    
1801    
1802    
1803    
1804 ayin 1.108 ac_ext=c
1805     ac_cpp='$CPP $CPPFLAGS'
1806     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1807     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1808     ac_compiler_gnu=$ac_cv_c_compiler_gnu
1809 pcg 1.11
1810    
1811    
1812 pcg 1.1
1813 ayin 1.108 ac_config_headers="$ac_config_headers config.h:config.h.in"
1814 root 1.76
1815    
1816 pcg 1.1 ac_aux_dir=
1817 ayin 1.108 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1818     if test -f "$ac_dir/install-sh"; then
1819 pcg 1.1 ac_aux_dir=$ac_dir
1820     ac_install_sh="$ac_aux_dir/install-sh -c"
1821     break
1822 ayin 1.108 elif test -f "$ac_dir/install.sh"; then
1823 pcg 1.1 ac_aux_dir=$ac_dir
1824     ac_install_sh="$ac_aux_dir/install.sh -c"
1825     break
1826 ayin 1.108 elif test -f "$ac_dir/shtool"; then
1827 pcg 1.11 ac_aux_dir=$ac_dir
1828     ac_install_sh="$ac_aux_dir/shtool install -c"
1829     break
1830 pcg 1.1 fi
1831     done
1832     if test -z "$ac_aux_dir"; then
1833 ayin 1.108 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1834     echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1835 pcg 1.11 { (exit 1); exit 1; }; }
1836     fi
1837 ayin 1.108
1838     # These three variables are undocumented and unsupported,
1839     # and are intended to be withdrawn in a future Autoconf release.
1840     # They can cause serious problems if a builder's source tree is in a directory
1841     # whose full name contains unusual characters.
1842     ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1843     ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1844     ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1845    
1846 pcg 1.1
1847 root 1.48 # Make sure we can run config.sub.
1848 ayin 1.108 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1849     { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1850     echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1851 root 1.48 { (exit 1); exit 1; }; }
1852    
1853 ayin 1.108 { echo "$as_me:$LINENO: checking build system type" >&5
1854     echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1855 root 1.48 if test "${ac_cv_build+set}" = set; then
1856     echo $ECHO_N "(cached) $ECHO_C" >&6
1857     else
1858 ayin 1.108 ac_build_alias=$build_alias
1859     test "x$ac_build_alias" = x &&
1860     ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1861     test "x$ac_build_alias" = x &&
1862 root 1.48 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1863     echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1864     { (exit 1); exit 1; }; }
1865 ayin 1.108 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1866     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1867     echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1868 root 1.48 { (exit 1); exit 1; }; }
1869    
1870     fi
1871 ayin 1.108 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1872     echo "${ECHO_T}$ac_cv_build" >&6; }
1873     case $ac_cv_build in
1874     *-*-*) ;;
1875     *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1876     echo "$as_me: error: invalid value of canonical build" >&2;}
1877     { (exit 1); exit 1; }; };;
1878     esac
1879 root 1.48 build=$ac_cv_build
1880 ayin 1.108 ac_save_IFS=$IFS; IFS='-'
1881     set x $ac_cv_build
1882     shift
1883     build_cpu=$1
1884     build_vendor=$2
1885     shift; shift
1886     # Remember, the first character of IFS is used to create $*,
1887     # except with old shells:
1888     build_os=$*
1889     IFS=$ac_save_IFS
1890     case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1891 root 1.48
1892    
1893 ayin 1.108 { echo "$as_me:$LINENO: checking host system type" >&5
1894     echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1895 root 1.48 if test "${ac_cv_host+set}" = set; then
1896     echo $ECHO_N "(cached) $ECHO_C" >&6
1897     else
1898 ayin 1.108 if test "x$host_alias" = x; then
1899     ac_cv_host=$ac_cv_build
1900     else
1901     ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1902     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1903     echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1904 root 1.48 { (exit 1); exit 1; }; }
1905 ayin 1.108 fi
1906 root 1.48
1907     fi
1908 ayin 1.108 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1909     echo "${ECHO_T}$ac_cv_host" >&6; }
1910     case $ac_cv_host in
1911     *-*-*) ;;
1912     *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1913     echo "$as_me: error: invalid value of canonical host" >&2;}
1914     { (exit 1); exit 1; }; };;
1915     esac
1916 root 1.48 host=$ac_cv_host
1917 ayin 1.108 ac_save_IFS=$IFS; IFS='-'
1918     set x $ac_cv_host
1919     shift
1920     host_cpu=$1
1921     host_vendor=$2
1922     shift; shift
1923     # Remember, the first character of IFS is used to create $*,
1924     # except with old shells:
1925     host_os=$*
1926     IFS=$ac_save_IFS
1927     case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1928 root 1.48
1929    
1930    
1931 pcg 1.1 VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1932     DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1933     echo ""
1934     echo "configuring for rxvt $VERSION"
1935     echo ""
1936    
1937 root 1.72 orig_CXXFLAGS="$CXXFLAGS"
1938    
1939 pcg 1.1
1940 pcg 1.11 ac_ext=c
1941     ac_cpp='$CPP $CPPFLAGS'
1942     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1943     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1944     ac_compiler_gnu=$ac_cv_c_compiler_gnu
1945     if test -n "$ac_tool_prefix"; then
1946     # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1947     set dummy ${ac_tool_prefix}gcc; ac_word=$2
1948 ayin 1.108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1949     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1950 pcg 1.11 if test "${ac_cv_prog_CC+set}" = set; then
1951     echo $ECHO_N "(cached) $ECHO_C" >&6
1952     else
1953     if test -n "$CC"; then
1954     ac_cv_prog_CC="$CC" # Let the user override the test.
1955     else
1956     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1957     for as_dir in $PATH
1958     do
1959     IFS=$as_save_IFS
1960     test -z "$as_dir" && as_dir=.
1961     for ac_exec_ext in '' $ac_executable_extensions; do
1962 ayin 1.108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1963 pcg 1.11 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1964     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1965     break 2
1966     fi
1967     done
1968     done
1969 ayin 1.108 IFS=$as_save_IFS
1970 pcg 1.11
1971     fi
1972     fi
1973     CC=$ac_cv_prog_CC
1974     if test -n "$CC"; then
1975 ayin 1.108 { echo "$as_me:$LINENO: result: $CC" >&5
1976     echo "${ECHO_T}$CC" >&6; }
1977 pcg 1.11 else
1978 ayin 1.108 { echo "$as_me:$LINENO: result: no" >&5
1979     echo "${ECHO_T}no" >&6; }
1980 pcg 1.11 fi
1981    
1982 ayin 1.108
1983 pcg 1.11 fi
1984     if test -z "$ac_cv_prog_CC"; then
1985     ac_ct_CC=$CC
1986     # Extract the first word of "gcc", so it can be a program name with args.
1987 pcg 1.1 set dummy gcc; ac_word=$2
1988 ayin 1.108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1989     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1990 pcg 1.11 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1991     echo $ECHO_N "(cached) $ECHO_C" >&6
1992     else
1993     if test -n "$ac_ct_CC"; then
1994     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1995     else
1996     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1997     for as_dir in $PATH
1998     do
1999     IFS=$as_save_IFS
2000     test -z "$as_dir" && as_dir=.
2001     for ac_exec_ext in '' $ac_executable_extensions; do
2002 ayin 1.108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2003 pcg 1.11 ac_cv_prog_ac_ct_CC="gcc"
2004     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2005     break 2
2006     fi
2007     done
2008     done
2009 ayin 1.108 IFS=$as_save_IFS
2010 pcg 1.11
2011     fi
2012     fi
2013     ac_ct_CC=$ac_cv_prog_ac_ct_CC
2014     if test -n "$ac_ct_CC"; then
2015 ayin 1.108 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2016     echo "${ECHO_T}$ac_ct_CC" >&6; }
2017 pcg 1.11 else
2018 ayin 1.108 { echo "$as_me:$LINENO: result: no" >&5
2019     echo "${ECHO_T}no" >&6; }
2020 pcg 1.11 fi
2021    
2022 ayin 1.108 if test "x$ac_ct_CC" = x; then
2023     CC=""
2024     else
2025     case $cross_compiling:$ac_tool_warned in
2026     yes:)
2027     { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2028     whose name does not start with the host triplet. If you think this
2029     configuration is useful to you, please write to autoconf@gnu.org." >&5
2030     echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2031     whose name does not start with the host triplet. If you think this
2032     configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2033     ac_tool_warned=yes ;;
2034     esac
2035     CC=$ac_ct_CC
2036     fi
2037 pcg 1.11 else
2038     CC="$ac_cv_prog_CC"
2039     fi
2040    
2041     if test -z "$CC"; then
2042 ayin 1.108 if test -n "$ac_tool_prefix"; then
2043     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2044 pcg 1.11 set dummy ${ac_tool_prefix}cc; ac_word=$2
2045 ayin 1.108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2046     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2047 pcg 1.11 if test "${ac_cv_prog_CC+set}" = set; then
2048     echo $ECHO_N "(cached) $ECHO_C" >&6
2049 pcg 1.1 else
2050     if test -n "$CC"; then
2051     ac_cv_prog_CC="$CC" # Let the user override the test.
2052     else
2053 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2054     for as_dir in $PATH
2055     do
2056     IFS=$as_save_IFS
2057     test -z "$as_dir" && as_dir=.
2058     for ac_exec_ext in '' $ac_executable_extensions; do
2059 ayin 1.108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2060 pcg 1.11 ac_cv_prog_CC="${ac_tool_prefix}cc"
2061     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2062     break 2
2063     fi
2064     done
2065     done
2066 ayin 1.108 IFS=$as_save_IFS
2067 pcg 1.11
2068 pcg 1.1 fi
2069     fi
2070 pcg 1.11 CC=$ac_cv_prog_CC
2071 pcg 1.1 if test -n "$CC"; then
2072 ayin 1.108 { echo "$as_me:$LINENO: result: $CC" >&5
2073     echo "${ECHO_T}$CC" >&6; }
2074 ayin 1.106 else
2075 ayin 1.108 { echo "$as_me:$LINENO: result: no" >&5
2076     echo "${ECHO_T}no" >&6; }
2077 ayin 1.106 fi
2078    
2079 ayin 1.108
2080 ayin 1.106 fi
2081 pcg 1.11 fi
2082 pcg 1.1 if test -z "$CC"; then
2083     # Extract the first word of "cc", so it can be a program name with args.
2084     set dummy cc; ac_word=$2
2085 ayin 1.108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2086     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2087 pcg 1.11 if test "${ac_cv_prog_CC+set}" = set; then
2088     echo $ECHO_N "(cached) $ECHO_C" >&6
2089 pcg 1.1 else
2090     if test -n "$CC"; then
2091     ac_cv_prog_CC="$CC" # Let the user override the test.
2092     else
2093     ac_prog_rejected=no
2094 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2095     for as_dir in $PATH
2096     do
2097     IFS=$as_save_IFS
2098     test -z "$as_dir" && as_dir=.
2099     for ac_exec_ext in '' $ac_executable_extensions; do
2100 ayin 1.108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2101 pcg 1.11 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2102     ac_prog_rejected=yes
2103     continue
2104     fi
2105     ac_cv_prog_CC="cc"
2106     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2107     break 2
2108     fi
2109     done
2110     done
2111 ayin 1.108 IFS=$as_save_IFS
2112 pcg 1.11
2113 pcg 1.1 if test $ac_prog_rejected = yes; then
2114     # We found a bogon in the path, so make sure we never use it.
2115     set dummy $ac_cv_prog_CC
2116     shift
2117 pcg 1.11 if test $# != 0; then
2118 pcg 1.1 # We chose a different compiler from the bogus one.
2119     # However, it has the same basename, so the bogon will be chosen
2120     # first if we set CC to just the basename; use the full file name.
2121     shift
2122 pcg 1.11 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2123 pcg 1.1 fi
2124     fi
2125     fi
2126     fi
2127 pcg 1.11 CC=$ac_cv_prog_CC
2128 pcg 1.1 if test -n "$CC"; then
2129 ayin 1.108 { echo "$as_me:$LINENO: result: $CC" >&5
2130     echo "${ECHO_T}$CC" >&6; }
2131 pcg 1.1 else
2132 ayin 1.108 { echo "$as_me:$LINENO: result: no" >&5
2133     echo "${ECHO_T}no" >&6; }
2134 pcg 1.1 fi
2135    
2136 ayin 1.108
2137 pcg 1.11 fi
2138     if test -z "$CC"; then
2139     if test -n "$ac_tool_prefix"; then
2140 ayin 1.108 for ac_prog in cl.exe
2141 pcg 1.11 do
2142     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2143     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2144 ayin 1.108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2145     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2146 pcg 1.11 if test "${ac_cv_prog_CC+set}" = set; then
2147     echo $ECHO_N "(cached) $ECHO_C" >&6
2148 pcg 1.1 else
2149     if test -n "$CC"; then
2150     ac_cv_prog_CC="$CC" # Let the user override the test.
2151     else
2152 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2153     for as_dir in $PATH
2154     do
2155     IFS=$as_save_IFS
2156     test -z "$as_dir" && as_dir=.
2157     for ac_exec_ext in '' $ac_executable_extensions; do
2158 ayin 1.108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2159 pcg 1.11 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2160     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2161     break 2
2162     fi
2163     done
2164     done
2165 ayin 1.108 IFS=$as_save_IFS
2166 pcg 1.11
2167 pcg 1.1 fi
2168     fi
2169 pcg 1.11 CC=$ac_cv_prog_CC
2170 pcg 1.1 if test -n "$CC"; then
2171 ayin 1.108 { echo "$as_me:$LINENO: result: $CC" >&5
2172     echo "${ECHO_T}$CC" >&6; }
2173 pcg 1.1 else
2174 ayin 1.108 { echo "$as_me:$LINENO: result: no" >&5
2175     echo "${ECHO_T}no" >&6; }
2176 pcg 1.11 fi
2177    
2178 ayin 1.108
2179 pcg 1.11 test -n "$CC" && break
2180     done
2181 pcg 1.1 fi
2182 pcg 1.11 if test -z "$CC"; then
2183     ac_ct_CC=$CC
2184 ayin 1.108 for ac_prog in cl.exe
2185 pcg 1.11 do
2186     # Extract the first word of "$ac_prog", so it can be a program name with args.
2187     set dummy $ac_prog; ac_word=$2
2188 ayin 1.108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2189     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2190 pcg 1.11 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2191     echo $ECHO_N "(cached) $ECHO_C" >&6
2192     else
2193     if test -n "$ac_ct_CC"; then
2194     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2195     else
2196     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2197     for as_dir in $PATH
2198     do
2199     IFS=$as_save_IFS
2200     test -z "$as_dir" && as_dir=.
2201     for ac_exec_ext in '' $ac_executable_extensions; do
2202 ayin 1.108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2203 pcg 1.11 ac_cv_prog_ac_ct_CC="$ac_prog"
2204     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2205     break 2
2206 pcg 1.1 fi
2207 pcg 1.11 done
2208     done
2209 ayin 1.108 IFS=$as_save_IFS
2210 pcg 1.11
2211     fi
2212     fi
2213     ac_ct_CC=$ac_cv_prog_ac_ct_CC
2214     if test -n "$ac_ct_CC"; then
2215 ayin 1.108 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2216     echo "${ECHO_T}$ac_ct_CC" >&6; }
2217 pcg 1.11 else
2218 ayin 1.108 { echo "$as_me:$LINENO: result: no" >&5
2219     echo "${ECHO_T}no" >&6; }
2220 pcg 1.11 fi
2221    
2222 ayin 1.108
2223 pcg 1.11 test -n "$ac_ct_CC" && break
2224     done
2225    
2226 ayin 1.108 if test "x$ac_ct_CC" = x; then
2227     CC=""
2228     else
2229     case $cross_compiling:$ac_tool_warned in
2230     yes:)
2231     { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2232     whose name does not start with the host triplet. If you think this
2233     configuration is useful to you, please write to autoconf@gnu.org." >&5
2234     echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2235     whose name does not start with the host triplet. If you think this
2236     configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2237     ac_tool_warned=yes ;;
2238     esac
2239     CC=$ac_ct_CC
2240     fi
2241 pcg 1.11 fi
2242    
2243 pcg 1.1 fi
2244    
2245    
2246 pcg 1.11 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2247     See \`config.log' for more details." >&5
2248     echo "$as_me: error: no acceptable C compiler found in \$PATH
2249     See \`config.log' for more details." >&2;}
2250     { (exit 1); exit 1; }; }
2251    
2252     # Provide some information about the compiler.
2253 ayin 1.108 echo "$as_me:$LINENO: checking for C compiler version" >&5
2254 pcg 1.11 ac_compiler=`set X $ac_compile; echo $2`
2255 ayin 1.108 { (ac_try="$ac_compiler --version >&5"
2256     case "(($ac_try" in
2257     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2258     *) ac_try_echo=$ac_try;;
2259     esac
2260     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2261     (eval "$ac_compiler --version >&5") 2>&5
2262 pcg 1.11 ac_status=$?
2263     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264     (exit $ac_status); }
2265 ayin 1.108 { (ac_try="$ac_compiler -v >&5"
2266     case "(($ac_try" in
2267     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2268     *) ac_try_echo=$ac_try;;
2269     esac
2270     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2271     (eval "$ac_compiler -v >&5") 2>&5
2272 pcg 1.11 ac_status=$?
2273     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274     (exit $ac_status); }
2275 ayin 1.108 { (ac_try="$ac_compiler -V >&5"
2276     case "(($ac_try" in
2277     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2278     *) ac_try_echo=$ac_try;;
2279     esac
2280     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2281     (eval "$ac_compiler -V >&5") 2>&5
2282 pcg 1.11 ac_status=$?
2283     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284     (exit $ac_status); }
2285    
2286     cat >conftest.$ac_ext <<_ACEOF
2287     /* confdefs.h. */
2288     _ACEOF
2289     cat confdefs.h >>conftest.$ac_ext
2290     cat >>conftest.$ac_ext <<_ACEOF
2291     /* end confdefs.h. */
2292 pcg 1.1
2293 pcg 1.11 int
2294     main ()
2295     {
2296 pcg 1.1
2297 pcg 1.11 ;
2298     return 0;
2299     }
2300     _ACEOF
2301     ac_clean_files_save=$ac_clean_files
2302     ac_clean_files="$ac_clean_files a.out a.exe b.out"
2303     # Try to create an executable without -o first, disregard a.out.
2304     # It will help us diagnose broken compilers, and finding out an intuition
2305     # of exeext.
2306 ayin 1.108 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2307     echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2308 pcg 1.11 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2309 ayin 1.108 #
2310     # List of possible output files, starting from the most likely.
2311     # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2312     # only as a last resort. b.out is created by i960 compilers.
2313     ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2314     #
2315     # The IRIX 6 linker writes into existing files which may not be
2316     # executable, retaining their permissions. Remove them first so a
2317     # subsequent execution test works.
2318     ac_rmfiles=
2319     for ac_file in $ac_files
2320     do
2321     case $ac_file in
2322     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2323     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2324     esac
2325     done
2326     rm -f $ac_rmfiles
2327    
2328     if { (ac_try="$ac_link_default"
2329     case "(($ac_try" in
2330     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2331     *) ac_try_echo=$ac_try;;
2332     esac
2333     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2334     (eval "$ac_link_default") 2>&5
2335 pcg 1.11 ac_status=$?
2336     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337     (exit $ac_status); }; then
2338 ayin 1.108 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2339     # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2340     # in a Makefile. We should not override ac_cv_exeext if it was cached,
2341     # so that the user can short-circuit this test for compilers unknown to
2342     # Autoconf.
2343     for ac_file in $ac_files ''
2344 pcg 1.11 do
2345     test -f "$ac_file" || continue
2346     case $ac_file in
2347 ayin 1.108 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2348 pcg 1.11 ;;
2349     [ab].out )
2350     # We found the default executable, but exeext='' is most
2351     # certainly right.
2352     break;;
2353     *.* )
2354 ayin 1.108 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2355     then :; else
2356     ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2357     fi
2358     # We set ac_cv_exeext here because the later test for it is not
2359     # safe: cross compilers may not add the suffix if given an `-o'
2360     # argument, so we may need to know it at that point already.
2361     # Even if this section looks crufty: it has the advantage of
2362     # actually working.
2363 pcg 1.11 break;;
2364     * )
2365     break;;
2366     esac
2367     done
2368 ayin 1.108 test "$ac_cv_exeext" = no && ac_cv_exeext=
2369    
2370 pcg 1.11 else
2371 ayin 1.108 ac_file=''
2372     fi
2373    
2374     { echo "$as_me:$LINENO: result: $ac_file" >&5
2375     echo "${ECHO_T}$ac_file" >&6; }
2376     if test -z "$ac_file"; then
2377 pcg 1.11 echo "$as_me: failed program was:" >&5
2378     sed 's/^/| /' conftest.$ac_ext >&5
2379 pcg 1.1
2380 pcg 1.11 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2381     See \`config.log' for more details." >&5
2382     echo "$as_me: error: C compiler cannot create executables
2383     See \`config.log' for more details." >&2;}
2384     { (exit 77); exit 77; }; }
2385     fi
2386    
2387     ac_exeext=$ac_cv_exeext
2388    
2389 ayin 1.108 # Check that the compiler produces executables we can run. If not, either
2390 pcg 1.11 # the compiler is broken, or we cross compile.
2391 ayin 1.108 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2392     echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2393 pcg 1.11 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2394     # If not cross compiling, check that we can run a simple program.
2395     if test "$cross_compiling" != yes; then
2396     if { ac_try='./$ac_file'
2397 ayin 1.108 { (case "(($ac_try" in
2398     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2399     *) ac_try_echo=$ac_try;;
2400     esac
2401     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2402     (eval "$ac_try") 2>&5
2403 pcg 1.11 ac_status=$?
2404     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405     (exit $ac_status); }; }; then
2406     cross_compiling=no
2407     else
2408     if test "$cross_compiling" = maybe; then
2409     cross_compiling=yes
2410     else
2411     { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2412     If you meant to cross compile, use \`--host'.
2413     See \`config.log' for more details." >&5
2414     echo "$as_me: error: cannot run C compiled programs.
2415     If you meant to cross compile, use \`--host'.
2416     See \`config.log' for more details." >&2;}
2417     { (exit 1); exit 1; }; }
2418     fi
2419 pcg 1.1 fi
2420 pcg 1.11 fi
2421 ayin 1.108 { echo "$as_me:$LINENO: result: yes" >&5
2422     echo "${ECHO_T}yes" >&6; }
2423 pcg 1.11
2424     rm -f a.out a.exe conftest$ac_cv_exeext b.out
2425     ac_clean_files=$ac_clean_files_save
2426 ayin 1.108 # Check that the compiler produces executables we can run. If not, either
2427 pcg 1.11 # the compiler is broken, or we cross compile.
2428 ayin 1.108 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2429     echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2430     { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2431     echo "${ECHO_T}$cross_compiling" >&6; }
2432    
2433     { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2434     echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2435     if { (ac_try="$ac_link"
2436     case "(($ac_try" in
2437     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2438     *) ac_try_echo=$ac_try;;
2439     esac
2440     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2441     (eval "$ac_link") 2>&5
2442 pcg 1.11 ac_status=$?
2443     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444     (exit $ac_status); }; then
2445     # If both `conftest.exe' and `conftest' are `present' (well, observable)
2446     # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2447     # work properly (i.e., refer to `conftest.exe'), while it won't with
2448     # `rm'.
2449     for ac_file in conftest.exe conftest conftest.*; do
2450     test -f "$ac_file" || continue
2451     case $ac_file in
2452 ayin 1.108 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2453 pcg 1.11 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2454     break;;
2455     * ) break;;
2456     esac
2457     done
2458 pcg 1.1 else
2459 pcg 1.11 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2460     See \`config.log' for more details." >&5
2461     echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2462     See \`config.log' for more details." >&2;}
2463     { (exit 1); exit 1; }; }
2464 pcg 1.1 fi
2465 pcg 1.11
2466     rm -f conftest$ac_cv_exeext
2467 ayin 1.108 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2468     echo "${ECHO_T}$ac_cv_exeext" >&6; }
2469 pcg 1.11
2470     rm -f conftest.$ac_ext
2471     EXEEXT=$ac_cv_exeext
2472     ac_exeext=$EXEEXT
2473 ayin 1.108 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2474     echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2475 pcg 1.11 if test "${ac_cv_objext+set}" = set; then
2476     echo $ECHO_N "(cached) $ECHO_C" >&6
2477     else
2478     cat >conftest.$ac_ext <<_ACEOF
2479     /* confdefs.h. */
2480     _ACEOF
2481     cat confdefs.h >>conftest.$ac_ext
2482     cat >>conftest.$ac_ext <<_ACEOF
2483     /* end confdefs.h. */
2484    
2485     int
2486     main ()
2487     {
2488    
2489     ;
2490     return 0;
2491     }
2492     _ACEOF
2493     rm -f conftest.o conftest.obj
2494 ayin 1.108 if { (ac_try="$ac_compile"
2495     case "(($ac_try" in
2496     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2497     *) ac_try_echo=$ac_try;;
2498     esac
2499     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2500     (eval "$ac_compile") 2>&5
2501 pcg 1.11 ac_status=$?
2502     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503     (exit $ac_status); }; then
2504 ayin 1.108 for ac_file in conftest.o conftest.obj conftest.*; do
2505     test -f "$ac_file" || continue;
2506 pcg 1.11 case $ac_file in
2507 ayin 1.108 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2508 pcg 1.11 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2509     break;;
2510     esac
2511     done
2512 pcg 1.1 else
2513 pcg 1.11 echo "$as_me: failed program was:" >&5
2514     sed 's/^/| /' conftest.$ac_ext >&5
2515    
2516     { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2517     See \`config.log' for more details." >&5
2518     echo "$as_me: error: cannot compute suffix of object files: cannot compile
2519     See \`config.log' for more details." >&2;}
2520     { (exit 1); exit 1; }; }
2521 pcg 1.1 fi
2522 pcg 1.11
2523     rm -f conftest.$ac_cv_objext conftest.$ac_ext
2524 pcg 1.1 fi
2525 ayin 1.108 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2526     echo "${ECHO_T}$ac_cv_objext" >&6; }
2527 pcg 1.11 OBJEXT=$ac_cv_objext
2528     ac_objext=$OBJEXT
2529 ayin 1.108 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2530     echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2531 pcg 1.11 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2532     echo $ECHO_N "(cached) $ECHO_C" >&6
2533     else
2534     cat >conftest.$ac_ext <<_ACEOF
2535     /* confdefs.h. */
2536     _ACEOF
2537     cat confdefs.h >>conftest.$ac_ext
2538     cat >>conftest.$ac_ext <<_ACEOF
2539     /* end confdefs.h. */
2540    
2541     int
2542     main ()
2543     {
2544     #ifndef __GNUC__
2545     choke me
2546     #endif
2547 pcg 1.1
2548 pcg 1.11 ;
2549     return 0;
2550     }
2551     _ACEOF
2552     rm -f conftest.$ac_objext
2553 ayin 1.108 if { (ac_try="$ac_compile"
2554     case "(($ac_try" in
2555     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2556     *) ac_try_echo=$ac_try;;
2557     esac
2558     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2559     (eval "$ac_compile") 2>conftest.er1
2560 pcg 1.11 ac_status=$?
2561     grep -v '^ *+' conftest.er1 >conftest.err
2562     rm -f conftest.er1
2563     cat conftest.err >&5
2564     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 ayin 1.108 (exit $ac_status); } && {
2566     test -z "$ac_c_werror_flag" ||
2567     test ! -s conftest.err
2568     } && test -s conftest.$ac_objext; then
2569 pcg 1.11 ac_compiler_gnu=yes
2570     else
2571     echo "$as_me: failed program was:" >&5
2572     sed 's/^/| /' conftest.$ac_ext >&5
2573    
2574 ayin 1.108 ac_compiler_gnu=no
2575 pcg 1.11 fi
2576 ayin 1.108
2577     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2578 pcg 1.11 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2579    
2580     fi
2581 ayin 1.108 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2582     echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2583 pcg 1.11 GCC=`test $ac_compiler_gnu = yes && echo yes`
2584     ac_test_CFLAGS=${CFLAGS+set}
2585     ac_save_CFLAGS=$CFLAGS
2586 ayin 1.108 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2587     echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2588 pcg 1.11 if test "${ac_cv_prog_cc_g+set}" = set; then
2589     echo $ECHO_N "(cached) $ECHO_C" >&6
2590     else
2591 ayin 1.108 ac_save_c_werror_flag=$ac_c_werror_flag
2592     ac_c_werror_flag=yes
2593     ac_cv_prog_cc_g=no
2594     CFLAGS="-g"
2595     cat >conftest.$ac_ext <<_ACEOF
2596 pcg 1.11 /* confdefs.h. */
2597     _ACEOF
2598     cat confdefs.h >>conftest.$ac_ext
2599     cat >>conftest.$ac_ext <<_ACEOF
2600     /* end confdefs.h. */
2601 pcg 1.1
2602 pcg 1.11 int
2603     main ()
2604     {
2605 pcg 1.1
2606 pcg 1.11 ;
2607     return 0;
2608     }
2609     _ACEOF
2610     rm -f conftest.$ac_objext
2611 ayin 1.108 if { (ac_try="$ac_compile"
2612     case "(($ac_try" in
2613     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2614     *) ac_try_echo=$ac_try;;
2615     esac
2616     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2617     (eval "$ac_compile") 2>conftest.er1
2618 pcg 1.11 ac_status=$?
2619     grep -v '^ *+' conftest.er1 >conftest.err
2620     rm -f conftest.er1
2621     cat conftest.err >&5
2622     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 ayin 1.108 (exit $ac_status); } && {
2624     test -z "$ac_c_werror_flag" ||
2625     test ! -s conftest.err
2626     } && test -s conftest.$ac_objext; then
2627     ac_cv_prog_cc_g=yes
2628     else
2629     echo "$as_me: failed program was:" >&5
2630     sed 's/^/| /' conftest.$ac_ext >&5
2631    
2632     CFLAGS=""
2633     cat >conftest.$ac_ext <<_ACEOF
2634     /* confdefs.h. */
2635     _ACEOF
2636     cat confdefs.h >>conftest.$ac_ext
2637     cat >>conftest.$ac_ext <<_ACEOF
2638     /* end confdefs.h. */
2639    
2640     int
2641     main ()
2642     {
2643    
2644     ;
2645     return 0;
2646     }
2647     _ACEOF
2648     rm -f conftest.$ac_objext
2649     if { (ac_try="$ac_compile"
2650     case "(($ac_try" in
2651     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2652     *) ac_try_echo=$ac_try;;
2653     esac
2654     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2655     (eval "$ac_compile") 2>conftest.er1
2656 pcg 1.11 ac_status=$?
2657 ayin 1.108 grep -v '^ *+' conftest.er1 >conftest.err
2658     rm -f conftest.er1
2659     cat conftest.err >&5
2660 pcg 1.11 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 ayin 1.108 (exit $ac_status); } && {
2662     test -z "$ac_c_werror_flag" ||
2663     test ! -s conftest.err
2664     } && test -s conftest.$ac_objext; then
2665     :
2666     else
2667     echo "$as_me: failed program was:" >&5
2668     sed 's/^/| /' conftest.$ac_ext >&5
2669    
2670     ac_c_werror_flag=$ac_save_c_werror_flag
2671     CFLAGS="-g"
2672     cat >conftest.$ac_ext <<_ACEOF
2673     /* confdefs.h. */
2674     _ACEOF
2675     cat confdefs.h >>conftest.$ac_ext
2676     cat >>conftest.$ac_ext <<_ACEOF
2677     /* end confdefs.h. */
2678    
2679     int
2680     main ()
2681     {
2682    
2683     ;
2684     return 0;
2685     }
2686     _ACEOF
2687     rm -f conftest.$ac_objext
2688     if { (ac_try="$ac_compile"
2689     case "(($ac_try" in
2690     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2691     *) ac_try_echo=$ac_try;;
2692     esac
2693     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2694     (eval "$ac_compile") 2>conftest.er1
2695 pcg 1.11 ac_status=$?
2696 ayin 1.108 grep -v '^ *+' conftest.er1 >conftest.err
2697     rm -f conftest.er1
2698     cat conftest.err >&5
2699 pcg 1.11 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 ayin 1.108 (exit $ac_status); } && {
2701     test -z "$ac_c_werror_flag" ||
2702     test ! -s conftest.err
2703     } && test -s conftest.$ac_objext; then
2704 pcg 1.1 ac_cv_prog_cc_g=yes
2705     else
2706 pcg 1.11 echo "$as_me: failed program was:" >&5
2707     sed 's/^/| /' conftest.$ac_ext >&5
2708    
2709 ayin 1.108
2710     fi
2711    
2712     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2713 root 1.105 fi
2714 ayin 1.108
2715     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2716     fi
2717    
2718     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2719     ac_c_werror_flag=$ac_save_c_werror_flag
2720 pcg 1.1 fi
2721 ayin 1.108 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2722     echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2723 pcg 1.1 if test "$ac_test_CFLAGS" = set; then
2724 pcg 1.11 CFLAGS=$ac_save_CFLAGS
2725 pcg 1.1 elif test $ac_cv_prog_cc_g = yes; then
2726     if test "$GCC" = yes; then
2727     CFLAGS="-g -O2"
2728     else
2729     CFLAGS="-g"
2730     fi
2731     else
2732     if test "$GCC" = yes; then
2733     CFLAGS="-O2"
2734     else
2735     CFLAGS=
2736     fi
2737     fi
2738 ayin 1.108 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2739     echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2740     if test "${ac_cv_prog_cc_c89+set}" = set; then
2741 pcg 1.11 echo $ECHO_N "(cached) $ECHO_C" >&6
2742     else
2743 ayin 1.108 ac_cv_prog_cc_c89=no
2744 pcg 1.11 ac_save_CC=$CC
2745     cat >conftest.$ac_ext <<_ACEOF
2746     /* confdefs.h. */
2747     _ACEOF
2748     cat confdefs.h >>conftest.$ac_ext
2749     cat >>conftest.$ac_ext <<_ACEOF
2750     /* end confdefs.h. */
2751     #include <stdarg.h>
2752     #include <stdio.h>
2753     #include <sys/types.h>
2754     #include <sys/stat.h>
2755     /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2756     struct buf { int x; };
2757     FILE * (*rcsopen) (struct buf *, struct stat *, int);
2758     static char *e (p, i)
2759     char **p;
2760     int i;
2761     {
2762     return p[i];
2763     }
2764     static char *f (char * (*g) (char **, int), char **p, ...)
2765     {
2766     char *s;
2767     va_list v;
2768     va_start (v,p);
2769     s = g (p, va_arg (v,int));
2770     va_end (v);
2771     return s;
2772     }
2773 pcg 1.1
2774 pcg 1.11 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2775     function prototypes and stuff, but not '\xHH' hex character constants.
2776     These don't provoke an error unfortunately, instead are silently treated
2777 ayin 1.108 as 'x'. The following induces an error, until -std is added to get
2778 pcg 1.11 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2779     array size at least. It's necessary to write '\x00'==0 to get something
2780 ayin 1.108 that's true only with -std. */
2781 pcg 1.11 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2782    
2783 ayin 1.108 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2784     inside strings and character constants. */
2785     #define FOO(x) 'x'
2786     int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2787    
2788 pcg 1.11 int test (int i, double x);
2789     struct s1 {int (*f) (int a);};
2790     struct s2 {int (*f) (double a);};
2791     int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2792     int argc;
2793     char **argv;
2794     int
2795     main ()
2796     {
2797     return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2798     ;
2799     return 0;
2800     }
2801     _ACEOF
2802 ayin 1.108 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2803     -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2804 pcg 1.1 do
2805 pcg 1.11 CC="$ac_save_CC $ac_arg"
2806     rm -f conftest.$ac_objext
2807 ayin 1.108 if { (ac_try="$ac_compile"
2808     case "(($ac_try" in
2809     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2810     *) ac_try_echo=$ac_try;;
2811     esac
2812     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2813     (eval "$ac_compile") 2>conftest.er1
2814 pcg 1.11 ac_status=$?
2815     grep -v '^ *+' conftest.er1 >conftest.err
2816     rm -f conftest.er1
2817     cat conftest.err >&5
2818     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819 ayin 1.108 (exit $ac_status); } && {
2820     test -z "$ac_c_werror_flag" ||
2821     test ! -s conftest.err
2822     } && test -s conftest.$ac_objext; then
2823     ac_cv_prog_cc_c89=$ac_arg
2824 pcg 1.1 else
2825 pcg 1.11 echo "$as_me: failed program was:" >&5
2826     sed 's/^/| /' conftest.$ac_ext >&5
2827    
2828 ayin 1.108
2829 pcg 1.1 fi
2830 ayin 1.108
2831     rm -f core conftest.err conftest.$ac_objext
2832     test "x$ac_cv_prog_cc_c89" != "xno" && break
2833 pcg 1.1 done
2834 ayin 1.108 rm -f conftest.$ac_ext
2835 pcg 1.11 CC=$ac_save_CC
2836 pcg 1.1
2837 pcg 1.11 fi
2838 ayin 1.108 # AC_CACHE_VAL
2839     case "x$ac_cv_prog_cc_c89" in
2840     x)
2841     { echo "$as_me:$LINENO: result: none needed" >&5
2842     echo "${ECHO_T}none needed" >&6; } ;;
2843     xno)
2844     { echo "$as_me:$LINENO: result: unsupported" >&5
2845     echo "${ECHO_T}unsupported" >&6; } ;;
2846 pcg 1.11 *)
2847 ayin 1.108 CC="$CC $ac_cv_prog_cc_c89"
2848     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2849     echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2850 pcg 1.11 esac
2851 pcg 1.1
2852 ayin 1.108
2853     ac_ext=c
2854     ac_cpp='$CPP $CPPFLAGS'
2855     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2856     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2857     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2858    
2859     ac_ext=cpp
2860     ac_cpp='$CXXCPP $CPPFLAGS'
2861     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2862     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2863     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2864     if test -z "$CXX"; then
2865     if test -n "$CCC"; then
2866     CXX=$CCC
2867     else
2868     if test -n "$ac_tool_prefix"; then
2869     for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2870     do
2871     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2872     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2873     { echo "$as_me:$LINENO: checking for $ac_word" >&5
2874     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2875     if test "${ac_cv_prog_CXX+set}" = set; then
2876     echo $ECHO_N "(cached) $ECHO_C" >&6
2877     else
2878     if test -n "$CXX"; then
2879     ac_cv_prog_CXX="$CXX" # Let the user override the test.
2880     else
2881     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882     for as_dir in $PATH
2883 ayin 1.106 do
2884 ayin 1.108 IFS=$as_save_IFS
2885     test -z "$as_dir" && as_dir=.
2886     for ac_exec_ext in '' $ac_executable_extensions; do
2887     if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2888     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2889     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2890     break 2
2891     fi
2892     done
2893     done
2894     IFS=$as_save_IFS
2895    
2896 pcg 1.1 fi
2897     fi
2898 pcg 1.11 CXX=$ac_cv_prog_CXX
2899     if test -n "$CXX"; then
2900 ayin 1.108 { echo "$as_me:$LINENO: result: $CXX" >&5
2901     echo "${ECHO_T}$CXX" >&6; }
2902 pcg 1.1 else
2903 ayin 1.108 { echo "$as_me:$LINENO: result: no" >&5
2904     echo "${ECHO_T}no" >&6; }
2905 pcg 1.1 fi
2906    
2907 ayin 1.108
2908 pcg 1.11 test -n "$CXX" && break
2909     done
2910     fi
2911     if test -z "$CXX"; then
2912     ac_ct_CXX=$CXX
2913 ayin 1.108 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2914 pcg 1.11 do
2915     # Extract the first word of "$ac_prog", so it can be a program name with args.
2916     set dummy $ac_prog; ac_word=$2
2917 ayin 1.108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2918     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2919 pcg 1.11 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2920     echo $ECHO_N "(cached) $ECHO_C" >&6
2921 pcg 1.1 else
2922 pcg 1.11 if test -n "$ac_ct_CXX"; then
2923     ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2924 pcg 1.1 else
2925 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926     for as_dir in $PATH
2927     do
2928     IFS=$as_save_IFS
2929     test -z "$as_dir" && as_dir=.
2930     for ac_exec_ext in '' $ac_executable_extensions; do
2931 ayin 1.108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2932 pcg 1.11 ac_cv_prog_ac_ct_CXX="$ac_prog"
2933     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2934     break 2
2935     fi
2936     done
2937     done
2938 ayin 1.108 IFS=$as_save_IFS
2939 pcg 1.11
2940 pcg 1.1 fi
2941 pcg 1.11 fi
2942     ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2943     if test -n "$ac_ct_CXX"; then
2944 ayin 1.108 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2945     echo "${ECHO_T}$ac_ct_CXX" >&6; }
2946 pcg 1.11 else
2947 ayin 1.108 { echo "$as_me:$LINENO: result: no" >&5
2948     echo "${ECHO_T}no" >&6; }
2949 pcg 1.1 fi
2950    
2951 ayin 1.108
2952 pcg 1.11 test -n "$ac_ct_CXX" && break
2953     done
2954    
2955 ayin 1.108 if test "x$ac_ct_CXX" = x; then
2956     CXX="g++"
2957     else
2958     case $cross_compiling:$ac_tool_warned in
2959     yes:)
2960     { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2961     whose name does not start with the host triplet. If you think this
2962     configuration is useful to you, please write to autoconf@gnu.org." >&5
2963     echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2964     whose name does not start with the host triplet. If you think this
2965     configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2966     ac_tool_warned=yes ;;
2967     esac
2968     CXX=$ac_ct_CXX
2969     fi
2970 pcg 1.11 fi
2971    
2972 ayin 1.108 fi
2973     fi
2974 pcg 1.11 # Provide some information about the compiler.
2975 ayin 1.108 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2976 pcg 1.11 ac_compiler=`set X $ac_compile; echo $2`
2977 ayin 1.108 { (ac_try="$ac_compiler --version >&5"
2978     case "(($ac_try" in
2979     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980     *) ac_try_echo=$ac_try;;
2981     esac
2982     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2983     (eval "$ac_compiler --version >&5") 2>&5
2984 pcg 1.11 ac_status=$?
2985     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986     (exit $ac_status); }
2987 ayin 1.108 { (ac_try="$ac_compiler -v >&5"
2988     case "(($ac_try" in
2989     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990     *) ac_try_echo=$ac_try;;
2991     esac
2992     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2993     (eval "$ac_compiler -v >&5") 2>&5
2994 pcg 1.11 ac_status=$?
2995     echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996     (exit $ac_status); }
2997 ayin 1.108 { (ac_try="$ac_compiler -V >&5"
2998     case "(($ac_try" in
2999     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3000     *) ac_try_echo=$ac_try;;
3001     esac
3002     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3003     (eval "$ac_compiler -V >&5") 2>&5
3004 pcg 1.11 ac_status=$?
3005     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006     (exit $ac_status); }
3007    
3008 ayin 1.108 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3009     echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3010 pcg 1.11 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3011     echo $ECHO_N "(cached) $ECHO_C" >&6
3012     else
3013     cat >conftest.$ac_ext <<_ACEOF
3014     /* confdefs.h. */
3015     _ACEOF
3016     cat confdefs.h >>conftest.$ac_ext
3017     cat >>conftest.$ac_ext <<_ACEOF
3018     /* end confdefs.h. */
3019    
3020     int
3021     main ()
3022     {
3023     #ifndef __GNUC__
3024     choke me
3025     #endif
3026    
3027     ;
3028     return 0;
3029     }
3030     _ACEOF
3031     rm -f conftest.$ac_objext
3032 ayin 1.108 if { (ac_try="$ac_compile"
3033     case "(($ac_try" in
3034     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3035     *) ac_try_echo=$ac_try;;
3036     esac
3037     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3038     (eval "$ac_compile") 2>conftest.er1
3039 pcg 1.11 ac_status=$?
3040     grep -v '^ *+' conftest.er1 >conftest.err
3041     rm -f conftest.er1
3042     cat conftest.err >&5
3043     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 ayin 1.108 (exit $ac_status); } && {
3045     test -z "$ac_cxx_werror_flag" ||
3046     test ! -s conftest.err
3047     } && test -s conftest.$ac_objext; then
3048 pcg 1.11 ac_compiler_gnu=yes
3049     else
3050     echo "$as_me: failed program was:" >&5
3051     sed 's/^/| /' conftest.$ac_ext >&5
3052    
3053 ayin 1.108 ac_compiler_gnu=no
3054 pcg 1.11 fi
3055 ayin 1.108
3056     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3057 pcg 1.11 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3058    
3059     fi
3060 ayin 1.108 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3061     echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3062 pcg 1.11 GXX=`test $ac_compiler_gnu = yes && echo yes`
3063     ac_test_CXXFLAGS=${CXXFLAGS+set}
3064     ac_save_CXXFLAGS=$CXXFLAGS
3065 ayin 1.108 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3066     echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3067 pcg 1.11 if test "${ac_cv_prog_cxx_g+set}" = set; then
3068     echo $ECHO_N "(cached) $ECHO_C" >&6
3069     else
3070 ayin 1.108 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3071     ac_cxx_werror_flag=yes
3072     ac_cv_prog_cxx_g=no
3073     CXXFLAGS="-g"
3074     cat >conftest.$ac_ext <<_ACEOF
3075 pcg 1.11 /* confdefs.h. */
3076     _ACEOF
3077     cat confdefs.h >>conftest.$ac_ext
3078     cat >>conftest.$ac_ext <<_ACEOF
3079     /* end confdefs.h. */
3080    
3081     int
3082     main ()
3083     {
3084    
3085     ;
3086     return 0;
3087     }
3088     _ACEOF
3089     rm -f conftest.$ac_objext
3090 ayin 1.108 if { (ac_try="$ac_compile"
3091     case "(($ac_try" in
3092     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093     *) ac_try_echo=$ac_try;;
3094     esac
3095     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096     (eval "$ac_compile") 2>conftest.er1
3097 pcg 1.11 ac_status=$?
3098     grep -v '^ *+' conftest.er1 >conftest.err
3099     rm -f conftest.er1
3100     cat conftest.err >&5
3101     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 ayin 1.108 (exit $ac_status); } && {
3103     test -z "$ac_cxx_werror_flag" ||
3104     test ! -s conftest.err
3105     } && test -s conftest.$ac_objext; then
3106 pcg 1.11 ac_cv_prog_cxx_g=yes
3107     else
3108     echo "$as_me: failed program was:" >&5
3109     sed 's/^/| /' conftest.$ac_ext >&5
3110    
3111 ayin 1.108 CXXFLAGS=""
3112     cat >conftest.$ac_ext <<_ACEOF
3113 pcg 1.11 /* confdefs.h. */
3114     _ACEOF
3115     cat confdefs.h >>conftest.$ac_ext
3116     cat >>conftest.$ac_ext <<_ACEOF
3117     /* end confdefs.h. */
3118 ayin 1.108
3119 pcg 1.11 int
3120     main ()
3121     {
3122 ayin 1.108
3123 pcg 1.11 ;
3124     return 0;
3125     }
3126     _ACEOF
3127     rm -f conftest.$ac_objext
3128 ayin 1.108 if { (ac_try="$ac_compile"
3129     case "(($ac_try" in
3130     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131     *) ac_try_echo=$ac_try;;
3132     esac
3133     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134     (eval "$ac_compile") 2>conftest.er1
3135 pcg 1.11 ac_status=$?
3136     grep -v '^ *+' conftest.er1 >conftest.err
3137     rm -f conftest.er1
3138     cat conftest.err >&5
3139     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 ayin 1.108 (exit $ac_status); } && {
3141     test -z "$ac_cxx_werror_flag" ||
3142     test ! -s conftest.err
3143     } && test -s conftest.$ac_objext; then
3144 pcg 1.11 :
3145     else
3146     echo "$as_me: failed program was:" >&5
3147     sed 's/^/| /' conftest.$ac_ext >&5
3148    
3149 ayin 1.108 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3150     CXXFLAGS="-g"
3151     cat >conftest.$ac_ext <<_ACEOF
3152 pcg 1.11 /* confdefs.h. */
3153     _ACEOF
3154     cat confdefs.h >>conftest.$ac_ext
3155     cat >>conftest.$ac_ext <<_ACEOF
3156     /* end confdefs.h. */
3157 ayin 1.108
3158 pcg 1.11 int
3159     main ()
3160     {
3161 ayin 1.108
3162 pcg 1.11 ;
3163     return 0;
3164     }
3165     _ACEOF
3166     rm -f conftest.$ac_objext
3167 ayin 1.108 if { (ac_try="$ac_compile"
3168     case "(($ac_try" in
3169     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3170     *) ac_try_echo=$ac_try;;
3171     esac
3172     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3173     (eval "$ac_compile") 2>conftest.er1
3174 pcg 1.11 ac_status=$?
3175     grep -v '^ *+' conftest.er1 >conftest.err
3176     rm -f conftest.er1
3177     cat conftest.err >&5
3178     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 ayin 1.108 (exit $ac_status); } && {
3180     test -z "$ac_cxx_werror_flag" ||
3181     test ! -s conftest.err
3182     } && test -s conftest.$ac_objext; then
3183     ac_cv_prog_cxx_g=yes
3184 pcg 1.11 else
3185     echo "$as_me: failed program was:" >&5
3186     sed 's/^/| /' conftest.$ac_ext >&5
3187    
3188 ayin 1.108
3189 pcg 1.11 fi
3190 ayin 1.108
3191     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3192     fi
3193    
3194     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3195 pcg 1.11 fi
3196    
3197 ayin 1.108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3198     ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3199     fi
3200     { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3201     echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3202     if test "$ac_test_CXXFLAGS" = set; then
3203     CXXFLAGS=$ac_save_CXXFLAGS
3204     elif test $ac_cv_prog_cxx_g = yes; then
3205     if test "$GXX" = yes; then
3206     CXXFLAGS="-g -O2"
3207     else
3208     CXXFLAGS="-g"
3209     fi
3210     else
3211     if test "$GXX" = yes; then
3212     CXXFLAGS="-O2"
3213     else
3214     CXXFLAGS=
3215     fi
3216     fi
3217 pcg 1.11 ac_ext=c
3218     ac_cpp='$CPP $CPPFLAGS'
3219     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3220     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3221     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3222 pcg 1.1
3223 pcg 1.11 ac_ext=c
3224     ac_cpp='$CPP $CPPFLAGS'
3225     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3226     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3227     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3228 ayin 1.108 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3229     echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3230 pcg 1.1 # On Suns, sometimes $CPP names a directory.
3231     if test -n "$CPP" && test -d "$CPP"; then
3232     CPP=
3233     fi
3234     if test -z "$CPP"; then
3235 pcg 1.11 if test "${ac_cv_prog_CPP+set}" = set; then
3236     echo $ECHO_N "(cached) $ECHO_C" >&6
3237 pcg 1.1 else
3238 pcg 1.11 # Double quotes because CPP needs to be expanded
3239     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3240     do
3241     ac_preproc_ok=false
3242     for ac_c_preproc_warn_flag in '' yes
3243     do
3244     # Use a header file that comes with gcc, so configuring glibc
3245     # with a fresh cross-compiler works.
3246     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3247     # <limits.h> exists even on freestanding compilers.
3248 pcg 1.1 # On the NeXT, cc -E runs the code through the compiler's parser,
3249 pcg 1.11 # not just through cpp. "Syntax error" is here to catch this case.
3250     cat >conftest.$ac_ext <<_ACEOF
3251     /* confdefs.h. */
3252     _ACEOF
3253     cat confdefs.h >>conftest.$ac_ext
3254     cat >>conftest.$ac_ext <<_ACEOF
3255     /* end confdefs.h. */
3256     #ifdef __STDC__
3257     # include <limits.h>
3258     #else
3259     # include <assert.h>
3260     #endif
3261     Syntax error
3262     _ACEOF
3263 ayin 1.108 if { (ac_try="$ac_cpp conftest.$ac_ext"
3264     case "(($ac_try" in
3265     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266     *) ac_try_echo=$ac_try;;
3267     esac
3268     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3269     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3270 pcg 1.11 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.108 (exit $ac_status); } >/dev/null && {
3276     test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3277     test ! -s conftest.err
3278     }; then
3279 pcg 1.1 :
3280     else
3281 pcg 1.11 echo "$as_me: failed program was:" >&5
3282     sed 's/^/| /' conftest.$ac_ext >&5
3283    
3284     # Broken: fails on valid input.
3285     continue
3286     fi
3287 ayin 1.108
3288 pcg 1.11 rm -f conftest.err conftest.$ac_ext
3289    
3290 ayin 1.108 # OK, works on sane cases. Now check whether nonexistent headers
3291 pcg 1.11 # can be detected and how.
3292     cat >conftest.$ac_ext <<_ACEOF
3293     /* confdefs.h. */
3294     _ACEOF
3295     cat confdefs.h >>conftest.$ac_ext
3296     cat >>conftest.$ac_ext <<_ACEOF
3297     /* end confdefs.h. */
3298     #include <ac_nonexistent.h>
3299     _ACEOF
3300 ayin 1.108 if { (ac_try="$ac_cpp conftest.$ac_ext"
3301     case "(($ac_try" in
3302     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303     *) ac_try_echo=$ac_try;;
3304     esac
3305     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3306     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3307 pcg 1.11 ac_status=$?
3308     grep -v '^ *+' conftest.er1 >conftest.err
3309     rm -f conftest.er1
3310     cat conftest.err >&5
3311     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 ayin 1.108 (exit $ac_status); } >/dev/null && {
3313     test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3314     test ! -s conftest.err
3315     }; then
3316 pcg 1.11 # Broken: success on invalid input.
3317     continue
3318     else
3319     echo "$as_me: failed program was:" >&5
3320     sed 's/^/| /' conftest.$ac_ext >&5
3321    
3322     # Passes both tests.
3323     ac_preproc_ok=:
3324     break
3325     fi
3326 ayin 1.108
3327 pcg 1.11 rm -f conftest.err conftest.$ac_ext
3328    
3329     done
3330     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3331     rm -f conftest.err conftest.$ac_ext
3332     if $ac_preproc_ok; then
3333     break
3334     fi
3335    
3336     done
3337     ac_cv_prog_CPP=$CPP
3338    
3339     fi
3340     CPP=$ac_cv_prog_CPP
3341     else
3342     ac_cv_prog_CPP=$CPP
3343     fi
3344 ayin 1.108 { echo "$as_me:$LINENO: result: $CPP" >&5
3345     echo "${ECHO_T}$CPP" >&6; }
3346 pcg 1.11 ac_preproc_ok=false
3347     for ac_c_preproc_warn_flag in '' yes
3348     do
3349     # Use a header file that comes with gcc, so configuring glibc
3350     # with a fresh cross-compiler works.
3351     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3352     # <limits.h> exists even on freestanding compilers.
3353     # On the NeXT, cc -E runs the code through the compiler's parser,
3354     # not just through cpp. "Syntax error" is here to catch this case.
3355     cat >conftest.$ac_ext <<_ACEOF
3356     /* confdefs.h. */
3357     _ACEOF
3358     cat confdefs.h >>conftest.$ac_ext
3359     cat >>conftest.$ac_ext <<_ACEOF
3360     /* end confdefs.h. */
3361     #ifdef __STDC__
3362     # include <limits.h>
3363     #else
3364     # include <assert.h>
3365     #endif
3366     Syntax error
3367     _ACEOF
3368 ayin 1.108 if { (ac_try="$ac_cpp conftest.$ac_ext"
3369     case "(($ac_try" in
3370     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371     *) ac_try_echo=$ac_try;;
3372     esac
3373     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3374     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3375 pcg 1.11 ac_status=$?
3376     grep -v '^ *+' conftest.er1 >conftest.err
3377     rm -f conftest.er1
3378     cat conftest.err >&5
3379     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 ayin 1.108 (exit $ac_status); } >/dev/null && {
3381     test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3382     test ! -s conftest.err
3383     }; then
3384 pcg 1.1 :
3385     else
3386 pcg 1.11 echo "$as_me: failed program was:" >&5
3387     sed 's/^/| /' conftest.$ac_ext >&5
3388    
3389     # Broken: fails on valid input.
3390     continue
3391 pcg 1.1 fi
3392 ayin 1.108
3393 pcg 1.11 rm -f conftest.err conftest.$ac_ext
3394    
3395 ayin 1.108 # OK, works on sane cases. Now check whether nonexistent headers
3396 pcg 1.11 # can be detected and how.
3397     cat >conftest.$ac_ext <<_ACEOF
3398     /* confdefs.h. */
3399     _ACEOF
3400     cat confdefs.h >>conftest.$ac_ext
3401     cat >>conftest.$ac_ext <<_ACEOF
3402     /* end confdefs.h. */
3403     #include <ac_nonexistent.h>
3404     _ACEOF
3405 ayin 1.108 if { (ac_try="$ac_cpp conftest.$ac_ext"
3406     case "(($ac_try" in
3407     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408     *) ac_try_echo=$ac_try;;
3409     esac
3410     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3411     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3412 pcg 1.11 ac_status=$?
3413     grep -v '^ *+' conftest.er1 >conftest.err
3414     rm -f conftest.er1
3415     cat conftest.err >&5
3416     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 ayin 1.108 (exit $ac_status); } >/dev/null && {
3418     test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3419     test ! -s conftest.err
3420     }; then
3421 pcg 1.11 # Broken: success on invalid input.
3422     continue
3423     else
3424     echo "$as_me: failed program was:" >&5
3425     sed 's/^/| /' conftest.$ac_ext >&5
3426    
3427     # Passes both tests.
3428     ac_preproc_ok=:
3429     break
3430 pcg 1.1 fi
3431 ayin 1.108
3432 pcg 1.11 rm -f conftest.err conftest.$ac_ext
3433    
3434     done
3435     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3436     rm -f conftest.err conftest.$ac_ext
3437     if $ac_preproc_ok; then
3438     :
3439 pcg 1.1 else
3440 pcg 1.11 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3441     See \`config.log' for more details." >&5
3442     echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3443     See \`config.log' for more details." >&2;}
3444     { (exit 1); exit 1; }; }
3445 pcg 1.1 fi
3446 pcg 1.11
3447     ac_ext=c
3448     ac_cpp='$CPP $CPPFLAGS'
3449     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3450     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3451     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3452 pcg 1.1
3453     # Find a good install program. We prefer a C program (faster),
3454     # so one script is as good as another. But avoid the broken or
3455     # incompatible versions:
3456     # SysV /etc/install, /usr/sbin/install
3457     # SunOS /usr/etc/install
3458     # IRIX /sbin/install
3459     # AIX /bin/install
3460 pcg 1.11 # AmigaOS /C/install, which installs bootblocks on floppy discs
3461 pcg 1.1 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3462     # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3463     # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3464 pcg 1.11 # OS/2's system install, which has a completely different semantic
3465 pcg 1.1 # ./install, which can be erroneously created by make from ./install.sh.
3466 ayin 1.108 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3467     echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3468 pcg 1.1 if test -z "$INSTALL"; then
3469 pcg 1.11 if test "${ac_cv_path_install+set}" = set; then
3470     echo $ECHO_N "(cached) $ECHO_C" >&6
3471 pcg 1.1 else
3472 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473     for as_dir in $PATH
3474     do
3475     IFS=$as_save_IFS
3476     test -z "$as_dir" && as_dir=.
3477     # Account for people who put trailing slashes in PATH elements.
3478     case $as_dir/ in
3479     ./ | .// | /cC/* | \
3480     /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3481     ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3482     /usr/ucb/* ) ;;
3483     *)
3484     # OSF1 and SCO ODT 3.0 have their own names for install.
3485     # Don't use installbsd from OSF since it installs stuff as root
3486     # by default.
3487     for ac_prog in ginstall scoinst install; do
3488     for ac_exec_ext in '' $ac_executable_extensions; do
3489 ayin 1.108 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3490 pcg 1.1 if test $ac_prog = install &&
3491 pcg 1.11 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3492 pcg 1.1 # AIX install. It has an incompatible calling convention.
3493     :
3494 pcg 1.11 elif test $ac_prog = install &&
3495     grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3496     # program-specific install script used by HP pwplus--don't use.
3497     :
3498 pcg 1.1 else
3499 pcg 1.11 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3500     break 3
3501 pcg 1.1 fi
3502     fi
3503     done
3504 pcg 1.11 done
3505     ;;
3506     esac
3507     done
3508 ayin 1.108 IFS=$as_save_IFS
3509 pcg 1.11
3510 pcg 1.1
3511     fi
3512     if test "${ac_cv_path_install+set}" = set; then
3513 pcg 1.11 INSTALL=$ac_cv_path_install
3514 pcg 1.1 else
3515 ayin 1.108 # As a last resort, use the slow shell script. Don't cache a
3516     # value for INSTALL within a source directory, because that will
3517 pcg 1.1 # break other packages using the cache if that directory is
3518 ayin 1.108 # removed, or if the value is a relative name.
3519 pcg 1.11 INSTALL=$ac_install_sh
3520 pcg 1.1 fi
3521     fi
3522 ayin 1.108 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3523     echo "${ECHO_T}$INSTALL" >&6; }
3524 pcg 1.1
3525     # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3526     # It thinks the first close brace ends the variable substitution.
3527     test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3528    
3529 pcg 1.11 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3530 pcg 1.1
3531     test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3532    
3533    
3534 pcg 1.11
3535    
3536 ayin 1.108 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3537     echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3538     if test "${ac_cv_path_GREP+set}" = set; then
3539     echo $ECHO_N "(cached) $ECHO_C" >&6
3540     else
3541     # Extract the first word of "grep ggrep" to use in msg output
3542     if test -z "$GREP"; then
3543     set dummy grep ggrep; ac_prog_name=$2
3544     if test "${ac_cv_path_GREP+set}" = set; then
3545 ayin 1.102 echo $ECHO_N "(cached) $ECHO_C" >&6
3546     else
3547 ayin 1.108 ac_path_GREP_found=false
3548     # Loop through the user's path and test for each of PROGNAME-LIST
3549     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550     for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3551     do
3552     IFS=$as_save_IFS
3553     test -z "$as_dir" && as_dir=.
3554     for ac_prog in grep ggrep; do
3555     for ac_exec_ext in '' $ac_executable_extensions; do
3556     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3557     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3558     # Check for GNU ac_path_GREP and select it if it is found.
3559     # Check for GNU $ac_path_GREP
3560     case `"$ac_path_GREP" --version 2>&1` in
3561     *GNU*)
3562     ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3563     *)
3564     ac_count=0
3565     echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3566     while :
3567     do
3568     cat "conftest.in" "conftest.in" >"conftest.tmp"
3569     mv "conftest.tmp" "conftest.in"
3570     cp "conftest.in" "conftest.nl"
3571     echo 'GREP' >> "conftest.nl"
3572     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3573     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3574     ac_count=`expr $ac_count + 1`
3575     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3576     # Best one so far, save it but keep looking for a better one
3577     ac_cv_path_GREP="$ac_path_GREP"
3578     ac_path_GREP_max=$ac_count
3579 root 1.105 fi
3580 ayin 1.108 # 10*(2^10) chars as input seems more than enough
3581     test $ac_count -gt 10 && break
3582     done
3583     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3584     esac
3585    
3586    
3587     $ac_path_GREP_found && break 3
3588     done
3589     done
3590 root 1.105
3591 ayin 1.108 done
3592     IFS=$as_save_IFS
3593 root 1.105
3594    
3595 ayin 1.108 fi
3596 pcg 1.1
3597 ayin 1.108 GREP="$ac_cv_path_GREP"
3598     if test -z "$GREP"; then
3599     { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3600     echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3601     { (exit 1); exit 1; }; }
3602     fi
3603 root 1.105
3604 root 1.80 else
3605 ayin 1.108 ac_cv_path_GREP=$GREP
3606 root 1.105 fi
3607    
3608 root 1.80
3609 ayin 1.108 fi
3610     { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3611     echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3612     GREP="$ac_cv_path_GREP"
3613    
3614    
3615     { echo "$as_me:$LINENO: checking for egrep" >&5
3616     echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3617     if test "${ac_cv_path_EGREP+set}" = set; then
3618     echo $ECHO_N "(cached) $ECHO_C" >&6
3619     else
3620     if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3621     then ac_cv_path_EGREP="$GREP -E"
3622     else
3623     # Extract the first word of "egrep" to use in msg output
3624     if test -z "$EGREP"; then
3625     set dummy egrep; ac_prog_name=$2
3626     if test "${ac_cv_path_EGREP+set}" = set; then
3627 root 1.105 echo $ECHO_N "(cached) $ECHO_C" >&6
3628     else
3629 ayin 1.108 ac_path_EGREP_found=false
3630     # Loop through the user's path and test for each of PROGNAME-LIST
3631     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3632     for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3633     do
3634     IFS=$as_save_IFS
3635     test -z "$as_dir" && as_dir=.
3636     for ac_prog in egrep; do
3637     for ac_exec_ext in '' $ac_executable_extensions; do
3638     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3639     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3640     # Check for GNU ac_path_EGREP and select it if it is found.
3641     # Check for GNU $ac_path_EGREP
3642     case `"$ac_path_EGREP" --version 2>&1` in
3643     *GNU*)
3644     ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3645     *)
3646     ac_count=0
3647     echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3648     while :
3649     do
3650     cat "conftest.in" "conftest.in" >"conftest.tmp"
3651     mv "conftest.tmp" "conftest.in"
3652     cp "conftest.in" "conftest.nl"
3653     echo 'EGREP' >> "conftest.nl"
3654     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3655     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3656     ac_count=`expr $ac_count + 1`
3657     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3658     # Best one so far, save it but keep looking for a better one
3659     ac_cv_path_EGREP="$ac_path_EGREP"
3660     ac_path_EGREP_max=$ac_count
3661     fi
3662     # 10*(2^10) chars as input seems more than enough
3663     test $ac_count -gt 10 && break
3664     done
3665     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3666     esac
3667    
3668    
3669     $ac_path_EGREP_found && break 3
3670     done
3671     done
3672    
3673     done
3674     IFS=$as_save_IFS
3675    
3676    
3677     fi
3678    
3679     EGREP="$ac_cv_path_EGREP"
3680     if test -z "$EGREP"; then
3681     { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3682     echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3683     { (exit 1); exit 1; }; }
3684     fi
3685    
3686     else
3687     ac_cv_path_EGREP=$EGREP
3688     fi
3689    
3690    
3691     fi
3692     fi
3693     { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3694     echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3695     EGREP="$ac_cv_path_EGREP"
3696    
3697    
3698    
3699     { echo "$as_me:$LINENO: checking for AIX" >&5
3700     echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3701 root 1.105 cat >conftest.$ac_ext <<_ACEOF
3702 ayin 1.104 /* confdefs.h. */
3703     _ACEOF
3704     cat confdefs.h >>conftest.$ac_ext
3705     cat >>conftest.$ac_ext <<_ACEOF
3706     /* end confdefs.h. */
3707 ayin 1.108 #ifdef _AIX
3708     yes
3709     #endif
3710 ayin 1.104
3711     _ACEOF
3712 ayin 1.108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3713     $EGREP "yes" >/dev/null 2>&1; then
3714     { echo "$as_me:$LINENO: result: yes" >&5
3715     echo "${ECHO_T}yes" >&6; }
3716     cat >>confdefs.h <<\_ACEOF
3717     #define _ALL_SOURCE 1
3718     _ACEOF
3719    
3720 ayin 1.104 else
3721 ayin 1.108 { echo "$as_me:$LINENO: result: no" >&5
3722     echo "${ECHO_T}no" >&6; }
3723     fi
3724     rm -f conftest*
3725    
3726 ayin 1.104
3727 ayin 1.108 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
3728     echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3729     if test "${ac_cv_search_strerror+set}" = set; then
3730     echo $ECHO_N "(cached) $ECHO_C" >&6
3731     else
3732     ac_func_search_save_LIBS=$LIBS
3733     cat >conftest.$ac_ext <<_ACEOF
3734 ayin 1.106 /* confdefs.h. */
3735     _ACEOF
3736     cat confdefs.h >>conftest.$ac_ext
3737     cat >>conftest.$ac_ext <<_ACEOF
3738     /* end confdefs.h. */
3739    
3740 ayin 1.108 /* Override any GCC internal prototype to avoid an error.
3741     Use char because int might match the return type of a GCC
3742     builtin and then its argument prototype would still apply. */
3743 ayin 1.106 #ifdef __cplusplus
3744     extern "C"
3745     #endif
3746     char strerror ();
3747     int
3748     main ()
3749     {
3750 ayin 1.108 return strerror ();
3751 ayin 1.106 ;
3752     return 0;
3753     }
3754     _ACEOF
3755 ayin 1.108 for ac_lib in '' cposix; do
3756     if test -z "$ac_lib"; then
3757     ac_res="none required"
3758     else
3759     ac_res=-l$ac_lib
3760     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3761     fi
3762     rm -f conftest.$ac_objext conftest$ac_exeext
3763     if { (ac_try="$ac_link"
3764     case "(($ac_try" in
3765     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3766     *) ac_try_echo=$ac_try;;
3767     esac
3768     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3769     (eval "$ac_link") 2>conftest.er1
3770 ayin 1.106 ac_status=$?
3771     grep -v '^ *+' conftest.er1 >conftest.err
3772     rm -f conftest.er1
3773     cat conftest.err >&5
3774     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775 ayin 1.108 (exit $ac_status); } && {
3776     test -z "$ac_c_werror_flag" ||
3777     test ! -s conftest.err
3778     } && test -s conftest$ac_exeext &&
3779     $as_test_x conftest$ac_exeext; then
3780     ac_cv_search_strerror=$ac_res
3781 ayin 1.106 else
3782     echo "$as_me: failed program was:" >&5
3783     sed 's/^/| /' conftest.$ac_ext >&5
3784    
3785 ayin 1.108
3786     fi
3787    
3788     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3789     conftest$ac_exeext
3790     if test "${ac_cv_search_strerror+set}" = set; then
3791     break
3792 ayin 1.106 fi
3793 ayin 1.108 done
3794     if test "${ac_cv_search_strerror+set}" = set; then
3795     :
3796     else
3797     ac_cv_search_strerror=no
3798 ayin 1.106 fi
3799 ayin 1.108 rm conftest.$ac_ext
3800 ayin 1.106 LIBS=$ac_func_search_save_LIBS
3801     fi
3802 ayin 1.108 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3803     echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3804     ac_res=$ac_cv_search_strerror
3805     if test "$ac_res" != no; then
3806     test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3807 ayin 1.106
3808     fi
3809    
3810 ayin 1.108 ac_ext=cpp
3811 ayin 1.106 ac_cpp='$CXXCPP $CPPFLAGS'
3812     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3813     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3814     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3815    
3816    
3817     if test x$GCC = xyes && test x$GXX = xyes; then
3818 ayin 1.108 { echo "$as_me:$LINENO: checking for working libsupc++" >&5
3819     echo $ECHO_N "checking for working libsupc++... $ECHO_C" >&6; }
3820 ayin 1.106 save_CXX="$CXX"
3821     save_LIBS="$LIBS"
3822     CXX="$CC"
3823     LIBS="$LIBS -lsupc++"
3824     LINKER="$CC"
3825    
3826     cat >conftest.$ac_ext <<_ACEOF
3827 root 1.80 /* confdefs.h. */
3828     _ACEOF
3829     cat confdefs.h >>conftest.$ac_ext
3830     cat >>conftest.$ac_ext <<_ACEOF
3831     /* end confdefs.h. */
3832 root 1.84 struct test { }; void f() try { throw new test; } catch (...) { throw; }
3833 root 1.80 int
3834     main ()
3835     {
3836 root 1.84
3837 root 1.80 ;
3838     return 0;
3839     }
3840     _ACEOF
3841     rm -f conftest.$ac_objext conftest$ac_exeext
3842 ayin 1.108 if { (ac_try="$ac_link"
3843     case "(($ac_try" in
3844     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3845     *) ac_try_echo=$ac_try;;
3846     esac
3847     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3848     (eval "$ac_link") 2>conftest.er1
3849 root 1.80 ac_status=$?
3850     grep -v '^ *+' conftest.er1 >conftest.err
3851     rm -f conftest.er1
3852     cat conftest.err >&5
3853     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854 ayin 1.108 (exit $ac_status); } && {
3855     test -z "$ac_cxx_werror_flag" ||
3856     test ! -s conftest.err
3857     } && test -s conftest$ac_exeext &&
3858     $as_test_x conftest$ac_exeext; then
3859     { echo "$as_me:$LINENO: result: ok" >&5
3860     echo "${ECHO_T}ok" >&6; }
3861 root 1.80 else
3862     echo "$as_me: failed program was:" >&5
3863     sed 's/^/| /' conftest.$ac_ext >&5
3864    
3865 root 1.84
3866 ayin 1.108 { echo "$as_me:$LINENO: result: no, making everything bigger and slower" >&5
3867     echo "${ECHO_T}no, making everything bigger and slower" >&6; }
3868 root 1.84 LIBS="$save_LIBS"
3869 root 1.85 LINKER="$save_CXX"
3870 root 1.84
3871    
3872 root 1.80 fi
3873 ayin 1.108
3874     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3875 root 1.80 conftest$ac_exeext conftest.$ac_ext
3876 root 1.85 CXX="$save_CXX"
3877 root 1.80 fi
3878     LINKER=$LINKER
3879    
3880    
3881     if test -z "$orig_CXXFLAGS"; then
3882     if test x$GCC = xyes && test "x$GXX" = xyes; then
3883 root 1.91 CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs"
3884 root 1.84 cat >conftest.$ac_ext <<_ACEOF
3885 root 1.83 /* confdefs.h. */
3886     _ACEOF
3887     cat confdefs.h >>conftest.$ac_ext
3888     cat >>conftest.$ac_ext <<_ACEOF
3889     /* end confdefs.h. */
3890    
3891     int
3892     main ()
3893     {
3894    
3895     ;
3896     return 0;
3897     }
3898 root 1.80 _ACEOF
3899     rm -f conftest.$ac_objext
3900 ayin 1.108 if { (ac_try="$ac_compile"
3901     case "(($ac_try" in
3902     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903     *) ac_try_echo=$ac_try;;
3904     esac
3905     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3906     (eval "$ac_compile") 2>conftest.er1
3907 root 1.80 ac_status=$?
3908     grep -v '^ *+' conftest.er1 >conftest.err
3909     rm -f conftest.er1
3910     cat conftest.err >&5
3911     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 ayin 1.108 (exit $ac_status); } && {
3913     test -z "$ac_cxx_werror_flag" ||
3914     test ! -s conftest.err
3915     } && test -s conftest.$ac_objext; then
3916 root 1.82 :
3917 root 1.80 else
3918     echo "$as_me: failed program was:" >&5
3919     sed 's/^/| /' conftest.$ac_ext >&5
3920    
3921 ayin 1.108 CXXFLAGS="-g -O3"
3922 root 1.80 fi
3923 ayin 1.108
3924     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3925 root 1.80 else
3926     CXXFLAGS="-O"
3927     fi
3928     CFLAGS="$CXXFLAGS"
3929     fi
3930    
3931    
3932     cat >>confdefs.h <<\_ACEOF
3933     #define _GNU_SOURCE 1
3934     _ACEOF
3935    
3936    
3937     case $host in
3938     *-*-solaris* )
3939    
3940     cat >>confdefs.h <<\_ACEOF
3941 root 1.105 #define _XOPEN_SOURCE 500
3942 root 1.80 _ACEOF
3943 pcg 1.11
3944 root 1.80 ;;
3945     esac
3946 pcg 1.1
3947    
3948 ayin 1.108 { echo "$as_me:$LINENO: checking for setlocale" >&5
3949     echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; }
3950 root 1.57 if test "${ac_cv_func_setlocale+set}" = set; then
3951     echo $ECHO_N "(cached) $ECHO_C" >&6
3952     else
3953     cat >conftest.$ac_ext <<_ACEOF
3954     /* confdefs.h. */
3955     _ACEOF
3956     cat confdefs.h >>conftest.$ac_ext
3957     cat >>conftest.$ac_ext <<_ACEOF
3958     /* end confdefs.h. */
3959     /* Define setlocale to an innocuous variant, in case <limits.h> declares setlocale.
3960     For example, HP-UX 11i <limits.h> declares gettimeofday. */
3961     #define setlocale innocuous_setlocale
3962    
3963     /* System header to define __stub macros and hopefully few prototypes,
3964     which can conflict with char setlocale (); below.
3965     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3966     <limits.h> exists even on freestanding compilers. */
3967    
3968     #ifdef __STDC__
3969     # include <limits.h>
3970     #else
3971     # include <assert.h>
3972     #endif
3973    
3974     #undef setlocale
3975    
3976 ayin 1.108 /* Override any GCC internal prototype to avoid an error.
3977     Use char because int might match the return type of a GCC
3978     builtin and then its argument prototype would still apply. */
3979 root 1.57 #ifdef __cplusplus
3980     extern "C"
3981     #endif
3982     char setlocale ();
3983     /* The GNU C library defines this for functions which it implements
3984     to always fail with ENOSYS. Some functions are actually named
3985     something starting with __ and the normal name is an alias. */
3986 ayin 1.108 #if defined __stub_setlocale || defined __stub___setlocale
3987 root 1.57 choke me
3988     #endif
3989    
3990     int
3991     main ()
3992     {
3993 ayin 1.108 return setlocale ();
3994 root 1.57 ;
3995     return 0;
3996     }
3997     _ACEOF
3998     rm -f conftest.$ac_objext conftest$ac_exeext
3999 ayin 1.108 if { (ac_try="$ac_link"
4000     case "(($ac_try" in
4001     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002     *) ac_try_echo=$ac_try;;
4003     esac
4004     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4005     (eval "$ac_link") 2>conftest.er1
4006 root 1.57 ac_status=$?
4007     grep -v '^ *+' conftest.er1 >conftest.err
4008     rm -f conftest.er1
4009     cat conftest.err >&5
4010     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011 ayin 1.108 (exit $ac_status); } && {
4012     test -z "$ac_cxx_werror_flag" ||
4013     test ! -s conftest.err
4014     } && test -s conftest$ac_exeext &&
4015     $as_test_x conftest$ac_exeext; then
4016 root 1.57 ac_cv_func_setlocale=yes
4017     else
4018     echo "$as_me: failed program was:" >&5
4019     sed 's/^/| /' conftest.$ac_ext >&5
4020    
4021 ayin 1.108 ac_cv_func_setlocale=no
4022 root 1.57 fi
4023 ayin 1.108
4024     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4025 root 1.57 conftest$ac_exeext conftest.$ac_ext
4026     fi
4027 ayin 1.108 { echo "$as_me:$LINENO: result: $ac_cv_func_setlocale" >&5
4028     echo "${ECHO_T}$ac_cv_func_setlocale" >&6; }
4029 root 1.57 if test $ac_cv_func_setlocale = yes; then
4030     :
4031     else
4032 ayin 1.108 { echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
4033     echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6; }
4034 pcg 1.25 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
4035     echo $ECHO_N "(cached) $ECHO_C" >&6
4036     else
4037     ac_check_lib_save_LIBS=$LIBS
4038     LIBS="-lxpg4 $LIBS"
4039     cat >conftest.$ac_ext <<_ACEOF
4040     /* confdefs.h. */
4041     _ACEOF
4042     cat confdefs.h >>conftest.$ac_ext
4043     cat >>conftest.$ac_ext <<_ACEOF
4044     /* end confdefs.h. */
4045    
4046 ayin 1.108 /* Override any GCC internal prototype to avoid an error.
4047     Use char because int might match the return type of a GCC
4048     builtin and then its argument prototype would still apply. */
4049 pcg 1.25 #ifdef __cplusplus
4050     extern "C"
4051     #endif
4052     char setlocale ();
4053     int
4054     main ()
4055     {
4056 ayin 1.108 return setlocale ();
4057 pcg 1.25 ;
4058     return 0;
4059     }
4060     _ACEOF
4061     rm -f conftest.$ac_objext conftest$ac_exeext
4062 ayin 1.108 if { (ac_try="$ac_link"
4063     case "(($ac_try" in
4064     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4065     *) ac_try_echo=$ac_try;;
4066     esac
4067     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4068     (eval "$ac_link") 2>conftest.er1
4069 pcg 1.25 ac_status=$?
4070     grep -v '^ *+' conftest.er1 >conftest.err
4071     rm -f conftest.er1
4072     cat conftest.err >&5
4073     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 ayin 1.108 (exit $ac_status); } && {
4075     test -z "$ac_cxx_werror_flag" ||
4076     test ! -s conftest.err
4077     } && test -s conftest$ac_exeext &&
4078     $as_test_x conftest$ac_exeext; then
4079 pcg 1.25 ac_cv_lib_xpg4_setlocale=yes
4080     else
4081     echo "$as_me: failed program was:" >&5
4082     sed 's/^/| /' conftest.$ac_ext >&5
4083    
4084 ayin 1.108 ac_cv_lib_xpg4_setlocale=no
4085 pcg 1.25 fi
4086 ayin 1.108
4087     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4088 pcg 1.25 conftest$ac_exeext conftest.$ac_ext
4089     LIBS=$ac_check_lib_save_LIBS
4090     fi
4091 ayin 1.108 { echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
4092     echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6; }
4093 pcg 1.25 if test $ac_cv_lib_xpg4_setlocale = yes; then
4094     LIBS="$LIBS -lxpg4"
4095     fi
4096    
4097 root 1.57 fi
4098    
4099    
4100 ayin 1.108 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
4101     echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
4102 root 1.57 if test "${ac_cv_func_gethostbyname+set}" = set; then
4103     echo $ECHO_N "(cached) $ECHO_C" >&6
4104     else
4105     cat >conftest.$ac_ext <<_ACEOF
4106     /* confdefs.h. */
4107     _ACEOF
4108     cat confdefs.h >>conftest.$ac_ext
4109     cat >>conftest.$ac_ext <<_ACEOF
4110     /* end confdefs.h. */
4111     /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4112     For example, HP-UX 11i <limits.h> declares gettimeofday. */
4113     #define gethostbyname innocuous_gethostbyname
4114    
4115     /* System header to define __stub macros and hopefully few prototypes,
4116     which can conflict with char gethostbyname (); below.
4117     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4118     <limits.h> exists even on freestanding compilers. */
4119    
4120     #ifdef __STDC__
4121     # include <limits.h>
4122     #else
4123     # include <assert.h>
4124     #endif
4125    
4126     #undef gethostbyname
4127    
4128 ayin 1.108 /* Override any GCC internal prototype to avoid an error.
4129     Use char because int might match the return type of a GCC
4130     builtin and then its argument prototype would still apply. */
4131 root 1.57 #ifdef __cplusplus
4132     extern "C"
4133     #endif
4134     char gethostbyname ();
4135     /* The GNU C library defines this for functions which it implements
4136     to always fail with ENOSYS. Some functions are actually named
4137     something starting with __ and the normal name is an alias. */
4138 ayin 1.108 #if defined __stub_gethostbyname || defined __stub___gethostbyname
4139 root 1.57 choke me
4140     #endif
4141    
4142     int
4143     main ()
4144     {
4145 ayin 1.108 return gethostbyname ();
4146 root 1.57 ;
4147     return 0;
4148     }
4149     _ACEOF
4150     rm -f conftest.$ac_objext conftest$ac_exeext
4151 ayin 1.108 if { (ac_try="$ac_link"
4152     case "(($ac_try" in
4153     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4154     *) ac_try_echo=$ac_try;;
4155     esac
4156     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4157     (eval "$ac_link") 2>conftest.er1
4158 root 1.57 ac_status=$?
4159     grep -v '^ *+' conftest.er1 >conftest.err
4160     rm -f conftest.er1
4161     cat conftest.err >&5
4162     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 ayin 1.108 (exit $ac_status); } && {
4164     test -z "$ac_cxx_werror_flag" ||
4165     test ! -s conftest.err
4166     } && test -s conftest$ac_exeext &&
4167     $as_test_x conftest$ac_exeext; then
4168 root 1.57 ac_cv_func_gethostbyname=yes
4169     else
4170     echo "$as_me: failed program was:" >&5
4171     sed 's/^/| /' conftest.$ac_ext >&5
4172 pcg 1.25
4173 ayin 1.108 ac_cv_func_gethostbyname=no
4174 root 1.57 fi
4175 ayin 1.108
4176     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4177 root 1.57 conftest$ac_exeext conftest.$ac_ext
4178     fi
4179 ayin 1.108 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4180     echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
4181 root 1.57 if test $ac_cv_func_gethostbyname = yes; then
4182     :
4183     else
4184 ayin 1.108 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4185     echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
4186 pcg 1.25 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4187     echo $ECHO_N "(cached) $ECHO_C" >&6
4188     else
4189     ac_check_lib_save_LIBS=$LIBS
4190     LIBS="-lnsl $LIBS"
4191     cat >conftest.$ac_ext <<_ACEOF
4192     /* confdefs.h. */
4193     _ACEOF
4194     cat confdefs.h >>conftest.$ac_ext
4195     cat >>conftest.$ac_ext <<_ACEOF
4196     /* end confdefs.h. */
4197    
4198 ayin 1.108 /* Override any GCC internal prototype to avoid an error.
4199     Use char because int might match the return type of a GCC
4200     builtin and then its argument prototype would still apply. */
4201 pcg 1.25 #ifdef __cplusplus
4202     extern "C"
4203     #endif
4204     char gethostbyname ();
4205     int
4206     main ()
4207     {
4208 ayin 1.108 return gethostbyname ();
4209 pcg 1.25 ;
4210     return 0;
4211     }
4212     _ACEOF
4213     rm -f conftest.$ac_objext conftest$ac_exeext
4214 ayin 1.108 if { (ac_try="$ac_link"
4215     case "(($ac_try" in
4216     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4217     *) ac_try_echo=$ac_try;;
4218     esac
4219     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4220     (eval "$ac_link") 2>conftest.er1
4221 pcg 1.25 ac_status=$?
4222     grep -v '^ *+' conftest.er1 >conftest.err
4223     rm -f conftest.er1
4224     cat conftest.err >&5
4225     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 ayin 1.108 (exit $ac_status); } && {
4227     test -z "$ac_cxx_werror_flag" ||
4228     test ! -s conftest.err
4229     } && test -s conftest$ac_exeext &&
4230     $as_test_x conftest$ac_exeext; then
4231 pcg 1.25 ac_cv_lib_nsl_gethostbyname=yes
4232     else
4233     echo "$as_me: failed program was:" >&5
4234     sed 's/^/| /' conftest.$ac_ext >&5
4235    
4236 ayin 1.108 ac_cv_lib_nsl_gethostbyname=no
4237 pcg 1.25 fi
4238 ayin 1.108
4239     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4240 pcg 1.25 conftest$ac_exeext conftest.$ac_ext
4241     LIBS=$ac_check_lib_save_LIBS
4242     fi
4243 ayin 1.108 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4244     echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
4245 pcg 1.25 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4246     LIBS="$LIBS -lnsl"
4247     fi
4248    
4249 root 1.57 fi
4250    
4251 ayin 1.108 { echo "$as_me:$LINENO: checking for socket" >&5
4252     echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
4253 root 1.57 if test "${ac_cv_func_socket+set}" = set; then
4254     echo $ECHO_N "(cached) $ECHO_C" >&6
4255     else
4256     cat >conftest.$ac_ext <<_ACEOF
4257     /* confdefs.h. */
4258     _ACEOF
4259     cat confdefs.h >>conftest.$ac_ext
4260     cat >>conftest.$ac_ext <<_ACEOF
4261     /* end confdefs.h. */
4262     /* Define socket to an innocuous variant, in case <limits.h> declares socket.
4263     For example, HP-UX 11i <limits.h> declares gettimeofday. */
4264     #define socket innocuous_socket
4265    
4266     /* System header to define __stub macros and hopefully few prototypes,
4267     which can conflict with char socket (); below.
4268     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4269     <limits.h> exists even on freestanding compilers. */
4270    
4271     #ifdef __STDC__
4272     # include <limits.h>
4273     #else
4274     # include <assert.h>
4275     #endif
4276    
4277     #undef socket
4278    
4279 ayin 1.108 /* Override any GCC internal prototype to avoid an error.
4280     Use char because int might match the return type of a GCC
4281     builtin and then its argument prototype would still apply. */
4282 root 1.57 #ifdef __cplusplus
4283     extern "C"
4284     #endif
4285     char socket ();
4286     /* The GNU C library defines this for functions which it implements
4287     to always fail with ENOSYS. Some functions are actually named
4288     something starting with __ and the normal name is an alias. */
4289 ayin 1.108 #if defined __stub_socket || defined __stub___socket
4290 root 1.57 choke me
4291     #endif
4292    
4293     int
4294     main ()
4295     {
4296 ayin 1.108 return socket ();
4297 root 1.57 ;
4298     return 0;
4299     }
4300     _ACEOF
4301     rm -f conftest.$ac_objext conftest$ac_exeext
4302 ayin 1.108 if { (ac_try="$ac_link"
4303     case "(($ac_try" in
4304     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4305     *) ac_try_echo=$ac_try;;
4306     esac
4307     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4308     (eval "$ac_link") 2>conftest.er1
4309 root 1.57 ac_status=$?
4310     grep -v '^ *+' conftest.er1 >conftest.err
4311     rm -f conftest.er1
4312     cat conftest.err >&5
4313     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314 ayin 1.108 (exit $ac_status); } && {
4315     test -z "$ac_cxx_werror_flag" ||
4316     test ! -s conftest.err
4317     } && test -s conftest$ac_exeext &&
4318     $as_test_x conftest$ac_exeext; then
4319 root 1.57 ac_cv_func_socket=yes
4320     else
4321     echo "$as_me: failed program was:" >&5
4322     sed 's/^/| /' conftest.$ac_ext >&5
4323    
4324 ayin 1.108 ac_cv_func_socket=no
4325 root 1.57 fi
4326 ayin 1.108
4327     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4328 root 1.57 conftest$ac_exeext conftest.$ac_ext
4329     fi
4330 ayin 1.108 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
4331     echo "${ECHO_T}$ac_cv_func_socket" >&6; }
4332 root 1.57 if test $ac_cv_func_socket = yes; then
4333     :
4334     else
4335 ayin 1.108 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4336     echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
4337 pcg 1.25 if test "${ac_cv_lib_socket_socket+set}" = set; then
4338     echo $ECHO_N "(cached) $ECHO_C" >&6
4339     else
4340     ac_check_lib_save_LIBS=$LIBS
4341     LIBS="-lsocket $LIBS"
4342     cat >conftest.$ac_ext <<_ACEOF
4343     /* confdefs.h. */
4344     _ACEOF
4345     cat confdefs.h >>conftest.$ac_ext
4346     cat >>conftest.$ac_ext <<_ACEOF
4347     /* end confdefs.h. */
4348    
4349 ayin 1.108 /* Override any GCC internal prototype to avoid an error.
4350     Use char because int might match the return type of a GCC
4351     builtin and then its argument prototype would still apply. */
4352 pcg 1.25 #ifdef __cplusplus
4353     extern "C"
4354     #endif
4355     char socket ();
4356     int
4357     main ()
4358     {
4359 ayin 1.108 return socket ();
4360 pcg 1.25 ;
4361     return 0;
4362     }
4363     _ACEOF
4364     rm -f conftest.$ac_objext conftest$ac_exeext
4365 ayin 1.108 if { (ac_try="$ac_link"
4366     case "(($ac_try" in
4367     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4368     *) ac_try_echo=$ac_try;;
4369     esac
4370     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4371     (eval "$ac_link") 2>conftest.er1
4372 pcg 1.25 ac_status=$?
4373     grep -v '^ *+' conftest.er1 >conftest.err
4374     rm -f conftest.er1
4375     cat conftest.err >&5
4376     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 ayin 1.108 (exit $ac_status); } && {
4378     test -z "$ac_cxx_werror_flag" ||
4379     test ! -s conftest.err
4380     } && test -s conftest$ac_exeext &&
4381     $as_test_x conftest$ac_exeext; then
4382 pcg 1.25 ac_cv_lib_socket_socket=yes
4383     else
4384     echo "$as_me: failed program was:" >&5
4385     sed 's/^/| /' conftest.$ac_ext >&5
4386    
4387 ayin 1.108 ac_cv_lib_socket_socket=no
4388 root 1.51 fi
4389 ayin 1.108
4390     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4391 root 1.51 conftest$ac_exeext conftest.$ac_ext
4392     LIBS=$ac_check_lib_save_LIBS
4393     fi
4394 ayin 1.108 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4395     echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
4396 root 1.51 if test $ac_cv_lib_socket_socket = yes; then
4397     LIBS="$LIBS -lsocket"
4398 pcg 1.1 fi
4399    
4400 root 1.57 fi
4401    
4402 pcg 1.1
4403    
4404 root 1.54 support_frills=yes
4405 root 1.62 support_inheritpixmap=yes
4406 root 1.54 support_tinting=yes
4407     support_fading=yes
4408     support_keepscrolling=yes
4409     support_selectionscrolling=yes
4410     support_mousewheel=yes
4411     support_mouseslipwheel=yes
4412     support_text_blink=yes
4413     support_pointer_blank=yes
4414     support_scroll_rxvt=yes
4415     support_scroll_next=yes
4416     support_scroll_xterm=yes
4417     support_scroll_plain=yes
4418     support_xim=yes
4419 root 1.62 support_xpm=yes
4420 root 1.103 support_afterimage=yes
4421     support_afterstep=yes
4422 root 1.54 support_xft=yes
4423 pcg 1.1 support_unicode3=no
4424 root 1.54 support_combining=yes
4425 root 1.26 support_8bitctrls=no
4426 root 1.54 support_iso14755=yes
4427     support_styles=yes
4428 root 1.62 support_perl=yes
4429 root 1.54 codesets=all
4430 pcg 1.1
4431    
4432     if test "x$enable_shared" = xyes; then
4433 pcg 1.11
4434     cat >>confdefs.h <<\_ACEOF
4435 pcg 1.1 #define LIBRXVT 1
4436 pcg 1.11 _ACEOF
4437 pcg 1.1
4438     INSTALL_LIBRXVT=yes
4439     fi
4440    
4441    
4442 ayin 1.108 # Check whether --enable-everything was given.
4443 pcg 1.1 if test "${enable_everything+set}" = set; then
4444 ayin 1.108 enableval=$enable_everything;
4445 root 1.54 if test x$enableval = xno; then
4446     support_frills=no
4447     support_inheritpixmap=no
4448     support_tinting=no
4449     support_fading=no
4450     support_keepscrolling=no
4451     support_selectionscrolling=no
4452     support_lastlog=no
4453     support_mousewheel=no
4454     support_mouseslipwheel=no
4455     support_text_blink=no
4456     support_pointer_blank=no
4457     support_scroll_rxvt=no
4458     support_scroll_next=no
4459     support_scroll_xterm=no
4460     support_scroll_plain=no
4461     support_utmp=no
4462     support_wtmp=no
4463     support_xim=no
4464     support_xpm=no
4465 root 1.103 support_afterimage=no
4466     support_afterstep=no
4467 root 1.54 support_xft=no
4468     support_unicode3=no
4469     support_combining=no
4470     support_8bitctrls=no
4471     support_iso14755=no
4472     support_styles=no
4473 root 1.60 support_perl=no
4474 root 1.54 codesets=
4475     fi
4476     if test x$enableval = xyes; then
4477     support_frills=yes
4478     support_inheritpixmap=yes
4479     support_tinting=yes
4480     support_fading=yes
4481     support_keepscrolling=yes
4482     support_selectionscrolling=yes
4483     support_lastlog=yes
4484     support_mousewheel=yes
4485     support_mouseslipwheel=yes
4486     support_text_blink=yes
4487     support_pointer_blank=yes
4488     support_scroll_rxvt=yes
4489     support_scroll_next=yes
4490     support_scroll_xterm=yes
4491     support_scroll_plain=yes
4492     support_utmp=yes
4493     support_wtmp=yes
4494     support_xim=yes
4495     support_xpm=yes
4496 root 1.103 support_afterimage=yes
4497     support_afterstep=yes
4498 root 1.54 support_xft=yes
4499     support_unicode3=yes
4500     support_combining=yes
4501     #support_8bitctrls=yes
4502     support_iso14755=yes
4503     support_styles=yes
4504 root 1.60 support_perl=yes
4505 root 1.54 codesets=all
4506     fi
4507    
4508 ayin 1.108 fi
4509    
4510 pcg 1.4
4511 ayin 1.108 # Check whether --enable-unicode3 was given.
4512 pcg 1.1 if test "${enable_unicode3+set}" = set; then
4513 ayin 1.108 enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then
4514 root 1.39 support_unicode3=$enableval
4515 pcg 1.1 fi
4516 ayin 1.108 fi
4517 root 1.105
4518 ayin 1.108
4519     # Check whether --enable-combining was given.
4520 pcg 1.18 if test "${enable_combining+set}" = set; then
4521 ayin 1.108 enableval=$enable_combining; if test x$enableval = xyes -o x$enableval = xno; then
4522 root 1.39 support_combining=$enableval
4523 pcg 1.18 fi
4524 ayin 1.108 fi
4525 root 1.105
4526 ayin 1.108
4527     # Check whether --enable-xft was given.
4528 pcg 1.1 if test "${enable_xft+set}" = set; then
4529 ayin 1.108 enableval=$enable_xft; if test x$enableval = xyes -o x$enableval = xno; then
4530 root 1.39 support_xft=$enableval
4531     fi
4532 ayin 1.108 fi
4533 root 1.105
4534 ayin 1.108
4535     # Check whether --enable-font-styles was given.
4536 root 1.39 if test "${enable_font_styles+set}" = set; then
4537 ayin 1.108 enableval=$enable_font_styles; if test x$enableval = xyes -o x$enableval = xno; then
4538 root 1.39 support_styles=$enableval
4539 pcg 1.1 fi
4540 ayin 1.108 fi
4541 root 1.105
4542 ayin 1.108
4543     # Check whether --enable-xpm-background was given.
4544 pcg 1.1 if test "${enable_xpm_background+set}" = set; then
4545 ayin 1.108 enableval=$enable_xpm_background; if test x$enableval = xyes -o x$enableval = xno; then
4546 pcg 1.1 support_xpm=$enableval
4547     fi
4548 ayin 1.108 fi
4549 root 1.105
4550 ayin 1.108
4551     # Check whether --enable-afterimage was given.
4552 root 1.103 if test "${enable_afterimage+set}" = set; then
4553 ayin 1.108 enableval=$enable_afterimage; if test x$enableval = xyes -o x$enableval = xno; then
4554 root 1.103 support_afterimage=$enableval
4555     fi
4556 ayin 1.108 fi
4557 root 1.103
4558 root 1.105
4559 ayin 1.108
4560     # Check whether --with-afterimage_config was given.
4561 root 1.103 if test "${with_afterimage_config+set}" = set; then
4562 ayin 1.108 withval=$with_afterimage_config; if test "x$withval" != x; then
4563 ayin 1.104 afterimage_config=$withval/afterimage-config
4564     fi
4565 ayin 1.108 fi
4566 root 1.105
4567 ayin 1.108
4568     # Check whether --enable-afterstep was given.
4569 root 1.103 if test "${enable_afterstep+set}" = set; then
4570 ayin 1.108 enableval=$enable_afterstep; if test x$enableval = xyes -o x$enableval = xno; then
4571 root 1.103 support_afterstep=$enableval
4572     fi
4573 ayin 1.108 fi
4574 root 1.105
4575 ayin 1.108
4576     # Check whether --enable-transparency was given.
4577 pcg 1.1 if test "${enable_transparency+set}" = set; then
4578 ayin 1.108 enableval=$enable_transparency; if test x$enableval = xyes -o x$enableval = xno; then
4579 pcg 1.1 support_inheritpixmap=$enableval
4580     fi
4581 ayin 1.108 fi
4582 root 1.105
4583 ayin 1.108
4584     # Check whether --enable-tinting was given.
4585 pcg 1.24 if test "${enable_tinting+set}" = set; then
4586 ayin 1.108 enableval=$enable_tinting; if test x$enableval = xyes -o x$enableval = xno; then
4587 pcg 1.24 support_tinting=$enableval
4588     fi
4589 ayin 1.108 fi
4590 root 1.105
4591 ayin 1.108
4592     # Check whether --enable-fading was given.
4593 root 1.31 if test "${enable_fading+set}" = set; then
4594 ayin 1.108 enableval=$enable_fading; if test x$enableval = xyes -o x$enableval = xno; then
4595 root 1.31 support_fading=$enableval
4596     fi
4597 ayin 1.108 fi
4598 root 1.105
4599 ayin 1.108
4600     # Check whether --enable-rxvt-scroll was given.
4601 pcg 1.1 if test "${enable_rxvt_scroll+set}" = set; then
4602 ayin 1.108 enableval=$enable_rxvt_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4603 pcg 1.1 support_scroll_rxvt=$enableval
4604     fi
4605 ayin 1.108 fi
4606 root 1.105
4607 ayin 1.108
4608     # Check whether --enable-next-scroll was given.
4609 pcg 1.1 if test "${enable_next_scroll+set}" = set; then
4610 ayin 1.108 enableval=$enable_next_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4611 pcg 1.1 support_scroll_next=$enableval
4612     fi
4613 ayin 1.108 fi
4614 root 1.105
4615 ayin 1.108
4616     # Check whether --enable-xterm-scroll was given.
4617 pcg 1.1 if test "${enable_xterm_scroll+set}" = set; then
4618 ayin 1.108 enableval=$enable_xterm_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4619 pcg 1.1 support_scroll_xterm=$enableval
4620     fi
4621 ayin 1.108 fi
4622 root 1.105
4623 ayin 1.108
4624     # Check whether --enable-perl was given.
4625 root 1.60 if test "${enable_perl+set}" = set; then
4626 ayin 1.108 enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then
4627 root 1.60 support_perl=$enableval
4628     fi
4629 ayin 1.108 fi
4630 root 1.105
4631 ayin 1.108
4632     # Check whether --enable-plain-scroll was given.
4633 pcg 1.11 if test "${enable_plain_scroll+set}" = set; then
4634 ayin 1.108 enableval=$enable_plain_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4635 pcg 1.11 support_scroll_plain=$enableval
4636     fi
4637 ayin 1.108 fi
4638 pcg 1.1
4639 root 1.105
4640 ayin 1.108
4641     # Check whether --with-codesets was given.
4642 pcg 1.15 if test "${with_codesets+set}" = set; then
4643 ayin 1.108 withval=$with_codesets; codesets="$withval"
4644     fi
4645 root 1.105
4646 ayin 1.108
4647     # Check whether --enable-xim was given.
4648 pcg 1.1 if test "${enable_xim+set}" = set; then
4649 ayin 1.108 enableval=$enable_xim; if test x$enableval = xyes -o x$enableval = xno; then
4650 pcg 1.1 support_xim=$enableval
4651     fi
4652 ayin 1.108 fi
4653 root 1.105
4654 ayin 1.108
4655     # Check whether --enable-backspace-key was given.
4656 pcg 1.1 if test "${enable_backspace_key+set}" = set; then
4657 ayin 1.108 enableval=$enable_backspace_key; if test x$enableval = xno; then
4658 pcg 1.11
4659     cat >>confdefs.h <<\_ACEOF
4660 pcg 1.1 #define NO_BACKSPACE_KEY 1
4661 pcg 1.11 _ACEOF
4662 pcg 1.1
4663     fi
4664 ayin 1.108 fi
4665 root 1.105
4666 ayin 1.108
4667     # Check whether --enable-delete-key was given.
4668 pcg 1.1 if test "${enable_delete_key+set}" = set; then
4669 ayin 1.108 enableval=$enable_delete_key; if test x$enableval = xno; then
4670 pcg 1.11
4671     cat >>confdefs.h <<\_ACEOF
4672 pcg 1.1 #define NO_DELETE_KEY 1
4673 pcg 1.11 _ACEOF
4674 pcg 1.1
4675     fi
4676 ayin 1.108 fi
4677 root 1.105
4678 ayin 1.108
4679     # Check whether --enable-resources was given.
4680 pcg 1.1 if test "${enable_resources+set}" = set; then
4681 ayin 1.108 enableval=$enable_resources; if test x$enableval = xno; then
4682 pcg 1.11
4683     cat >>confdefs.h <<\_ACEOF
4684 pcg 1.1 #define NO_RESOURCES 1
4685 pcg 1.11 _ACEOF
4686 pcg 1.1
4687     fi
4688 ayin 1.108 fi
4689 root 1.105
4690 ayin 1.108
4691     # Check whether --enable-8bitctrls was given.
4692 root 1.26 if test "${enable_8bitctrls+set}" = set; then
4693 ayin 1.108 enableval=$enable_8bitctrls; if test x$enableval = xyes -o x$enableval = xno; then
4694 root 1.39 support_8bitctrls=$enableval
4695 root 1.26 fi
4696 ayin 1.108 fi
4697    
4698 root 1.26
4699 pcg 1.15 RESFALLBACK=Rxvt
4700 ayin 1.108 # Check whether --enable-fallback was given.
4701 pcg 1.15 if test "${enable_fallback+set}" = set; then
4702 ayin 1.108 enableval=$enable_fallback;
4703 pcg 1.15 test x$enableval = xyes && enableval=Rxvt
4704     test x$enableval = xno && enableval=
4705     RESFALLBACK="$enableval"
4706    
4707 ayin 1.108 fi
4708    
4709 pcg 1.15
4710     if test x$RESFALLBACK != x; then
4711    
4712     cat >>confdefs.h <<_ACEOF
4713     #define RESFALLBACK "$RESFALLBACK"
4714     _ACEOF
4715    
4716     fi
4717    
4718     RESNAME=urxvt
4719    
4720 ayin 1.108 # Check whether --with-res-name was given.
4721 pcg 1.15 if test "${with_res_name+set}" = set; then
4722 ayin 1.108 withval=$with_res_name; RESNAME="$withval"
4723     fi
4724    
4725 pcg 1.15
4726     cat >>confdefs.h <<_ACEOF
4727     #define RESNAME "$RESNAME"
4728     _ACEOF
4729    
4730    
4731     RESCLASS=URxvt
4732    
4733 ayin 1.108 # Check whether --with-res-class was given.
4734 pcg 1.15 if test "${with_res_class+set}" = set; then
4735 ayin 1.108 withval=$with_res_class; RESCLASS="$withval"
4736     fi
4737    
4738 pcg 1.15
4739     cat >>confdefs.h <<_ACEOF
4740     #define RESCLASS "$RESCLASS"
4741     _ACEOF
4742    
4743    
4744     RXVTNAME=urxvt
4745    
4746 ayin 1.108 # Check whether --with-name was given.
4747 pcg 1.15 if test "${with_name+set}" = set; then
4748 ayin 1.108 withval=$with_name; RXVTNAME="$withval"
4749     fi
4750    
4751 pcg 1.15
4752 root 1.39 cat >>confdefs.h <<_ACEOF
4753     #define RXVTNAME "$RXVTNAME"
4754     _ACEOF
4755    
4756    
4757 pcg 1.15 RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
4758    
4759    
4760 ayin 1.108 # Check whether --enable-swapscreen was given.
4761 pcg 1.1 if test "${enable_swapscreen+set}" = set; then
4762 ayin 1.108 enableval=$enable_swapscreen; if test x$enableval = xno; then
4763 pcg 1.11
4764     cat >>confdefs.h <<\_ACEOF
4765 pcg 1.1 #define NO_SECONDARY_SCREEN 1
4766 pcg 1.11 _ACEOF
4767 pcg 1.1
4768     fi
4769 ayin 1.108 fi
4770    
4771 root 1.105
4772 ayin 1.108 # Check whether --enable-iso14755 was given.
4773 root 1.34 if test "${enable_iso14755+set}" = set; then
4774 ayin 1.108 enableval=$enable_iso14755; if test x$enableval = xyes -o x$enableval = xno; then
4775 root 1.34 support_iso14755=$enableval
4776     fi
4777 ayin 1.108 fi
4778    
4779 root 1.105
4780 ayin 1.108 # Check whether --enable-frills was given.
4781 pcg 1.1 if test "${enable_frills+set}" = set; then
4782 ayin 1.108 enableval=$enable_frills; if test x$enableval = xyes -o x$enableval = xno; then
4783 pcg 1.1 support_frills=$enableval
4784     fi
4785 ayin 1.108 fi
4786    
4787 root 1.105
4788 ayin 1.108 # Check whether --enable-keepscrolling was given.
4789 pcg 1.1 if test "${enable_keepscrolling+set}" = set; then
4790 ayin 1.108 enableval=$enable_keepscrolling; if test x$enableval = xyes -o x$enableval = xno; then
4791 pcg 1.1 support_keepscrolling=$enableval
4792     fi
4793 ayin 1.108 fi
4794    
4795 root 1.105
4796 ayin 1.108 # Check whether --enable-selectionscrolling was given.
4797 pcg 1.1 if test "${enable_selectionscrolling+set}" = set; then
4798 ayin 1.108 enableval=$enable_selectionscrolling; if test x$enableval = xyes -o x$enableval = xno; then
4799 pcg 1.1 support_selectionscrolling=$enableval
4800     fi
4801 ayin 1.108 fi
4802    
4803 root 1.105
4804 ayin 1.108 # Check whether --enable-mousewheel was given.
4805 pcg 1.1 if test "${enable_mousewheel+set}" = set; then
4806 ayin 1.108 enableval=$enable_mousewheel; if test x$enableval = xyes -o x$enableval = xno; then
4807 pcg 1.1 support_mousewheel=$enableval
4808     fi
4809 ayin 1.108 fi
4810    
4811 root 1.105
4812 ayin 1.108 # Check whether --enable-slipwheeling was given.
4813 pcg 1.1 if test "${enable_slipwheeling+set}" = set; then
4814 ayin 1.108 enableval=$enable_slipwheeling; if test x$enableval = xyes -o x$enableval = xno; then
4815 pcg 1.1 support_mouseslipwheel=$enableval
4816     fi
4817 ayin 1.108 fi
4818    
4819 root 1.105
4820 ayin 1.108 # Check whether --enable-smart-resize was given.
4821 pcg 1.1 if test "${enable_smart_resize+set}" = set; then
4822 ayin 1.108 enableval=$enable_smart_resize; if test x$enableval = xyes; then
4823 pcg 1.11
4824     cat >>confdefs.h <<\_ACEOF
4825 pcg 1.1 #define SMART_RESIZE 1
4826 pcg 1.11 _ACEOF
4827 pcg 1.1
4828     fi
4829 ayin 1.108 fi
4830    
4831 root 1.105
4832 ayin 1.108 # Check whether --enable-text-blink was given.
4833 pcg 1.11 if test "${enable_text_blink+set}" = set; then
4834 ayin 1.108 enableval=$enable_text_blink; if test x$enableval = xyes -o x$enableval = xno; then
4835 pcg 1.11 support_text_blink=$enableval
4836     fi
4837 ayin 1.108 fi
4838    
4839 root 1.105
4840 ayin 1.108 # Check whether --enable-pointer-blank was given.
4841 pcg 1.1 if test "${enable_pointer_blank+set}" = set; then
4842 ayin 1.108 enableval=$enable_pointer_blank; if test x$enableval = xyes -o x$enableval = xno; then
4843 pcg 1.1 support_pointer_blank=$enableval
4844     fi
4845 ayin 1.108 fi
4846    
4847 root 1.105
4848 pcg 1.1
4849 ayin 1.108 # Check whether --with-term was given.
4850 pcg 1.1 if test "${with_term+set}" = set; then
4851 ayin 1.108 withval=$with_term; if test x$withval != x; then
4852 pcg 1.11
4853     cat >>confdefs.h <<_ACEOF
4854 pcg 1.1 #define TERMENV "$withval"
4855 pcg 1.11 _ACEOF
4856 pcg 1.1 term="$withval"
4857     fi
4858 ayin 1.108 fi
4859    
4860 root 1.105
4861 pcg 1.1
4862 ayin 1.108 # Check whether --with-terminfo was given.
4863 pcg 1.1 if test "${with_terminfo+set}" = set; then
4864 ayin 1.108 withval=$with_terminfo; if test x$withval != x; then
4865 pcg 1.11
4866     cat >>confdefs.h <<_ACEOF
4867 pcg 1.1 #define RXVT_TERMINFO "$withval"
4868 pcg 1.11 _ACEOF
4869 pcg 1.1 terminfo="$withval"
4870     fi
4871 ayin 1.108 fi
4872    
4873 ayin 1.102
4874 pcg 1.1
4875 ayin 1.104 # Extract the first word of "tic", so it can be a program name with args.
4876     set dummy tic; ac_word=$2
4877 ayin 1.108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4878     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4879 ayin 1.104 if test "${ac_cv_path_TIC+set}" = set; then
4880 pcg 1.11 echo $ECHO_N "(cached) $ECHO_C" >&6
4881 pcg 1.1 else
4882 ayin 1.104 case $TIC in
4883 pcg 1.11 [\\/]* | ?:[\\/]*)
4884 ayin 1.104 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
4885 pcg 1.1 ;;
4886     *)
4887 pcg 1.11 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4888     for as_dir in $PATH
4889     do
4890     IFS=$as_save_IFS
4891     test -z "$as_dir" && as_dir=.
4892     for ac_exec_ext in '' $ac_executable_extensions; do
4893 ayin 1.108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4894 ayin 1.104 ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext"
4895 pcg 1.11 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4896     break 2
4897     fi
4898     done
4899     done
4900 ayin 1.108 IFS=$as_save_IFS
4901 pcg 1.11
4902 pcg 1.1 ;;
4903     esac
4904     fi
4905 ayin 1.104 TIC=$ac_cv_path_TIC
4906     if test -n "$TIC"; then
4907 ayin 1.108 { echo "$as_me:$LINENO: result: $TIC" >&5
4908     echo "${ECHO_T}$TIC" >&6; }
4909 pcg 1.1 else
4910 ayin 1.108 { echo "$as_me:$LINENO: result: no" >&5
4911     echo "${ECHO_T}no" >&6; }
4912 pcg 1.1 fi
4913    
4914 ayin 1.102
4915 ayin 1.104
4916    
4917 ayin 1.108
4918     ac_ext=cpp
4919 ayin 1.104 ac_cpp='$CXXCPP $CPPFLAGS'
4920     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4921     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4922     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4923 ayin 1.108 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4924     echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4925 ayin 1.104 if test -z "$CXXCPP"; then
4926     if test "${ac_cv_prog_CXXCPP+set}" = set; then
4927 pcg 1.11 echo $ECHO_N "(cached) $ECHO_C" >&6
4928 pcg 1.1 else
4929 ayin 1.104 # Double quotes because CXXCPP needs to be expanded
4930     for CXXCPP in "$CXX -E" "/lib/cpp"
4931     do
4932     ac_preproc_ok=false
4933     for ac_cxx_preproc_warn_flag in '' yes
4934 pcg 1.11 do
4935 ayin 1.104 # Use a header file that comes with gcc, so configuring glibc
4936     # with a fresh cross-compiler works.
4937     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4938     # <limits.h> exists even on freestanding compilers.
4939     # On the NeXT, cc -E runs the code through the compiler's parser,
4940 root 1.80 # not just through cpp. "Syntax error" is here to catch this case.
4941     cat >conftest.$ac_ext <<_ACEOF
4942     /* confdefs.h. */
4943     _ACEOF
4944     cat confdefs.h >>conftest.$ac_ext
4945     cat >>conftest.$ac_ext <<_ACEOF
4946     /* end confdefs.h. */
4947     #ifdef __STDC__
4948     # include <limits.h>
4949     #else
4950     # include <assert.h>
4951     #endif
4952     Syntax error
4953     _ACEOF
4954 ayin 1.108 if { (ac_try="$ac_cpp conftest.$ac_ext"
4955     case "(($ac_try" in
4956     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4957     *) ac_try_echo=$ac_try;;
4958     esac
4959     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4960     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4961 root 1.80 ac_status=$?
4962     grep -v '^ *+' conftest.er1 >conftest.err
4963     rm -f conftest.er1
4964     cat conftest.err >&5
4965     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 ayin 1.108 (exit $ac_status); } >/dev/null && {
4967     test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4968     test ! -s conftest.err
4969     }; then
4970 root 1.80 :
4971     else
4972     echo "$as_me: failed program was:" >&5
4973     sed 's/^/| /' conftest.$ac_ext >&5
4974    
4975     # Broken: fails on valid input.
4976     continue
4977     fi
4978 ayin 1.108
4979 root 1.80 rm -f conftest.err conftest.$ac_ext
4980    
4981 ayin 1.108 # OK, works on sane cases. Now check whether nonexistent headers
4982 root 1.80 # can be detected and how.
4983     cat >conftest.$ac_ext <<_ACEOF
4984     /* confdefs.h. */
4985     _ACEOF
4986     cat confdefs.h >>conftest.$ac_ext
4987     cat >>conftest.$ac_ext <<_ACEOF
4988     /* end confdefs.h. */
4989     #include <ac_nonexistent.h>
4990     _ACEOF
4991 ayin 1.108 if { (ac_try="$ac_cpp conftest.$ac_ext"
4992     case "(($ac_try" in
4993     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4994     *) ac_try_echo=$ac_try;;
4995     esac
4996     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4997     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4998 root 1.80 ac_status=$?
4999     grep -v '^ *+' conftest.er1 >conftest.err
5000     rm -f conftest.er1
5001     cat conftest.err >&5
5002     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 ayin 1.108 (exit $ac_status); } >/dev/null && {
5004     test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5005     test ! -s conftest.err
5006     }; then
5007 root 1.80 # Broken: success on invalid input.
5008     continue
5009     else
5010     echo "$as_me: failed program was:" >&5
5011     sed 's/^/| /' conftest.$ac_ext >&5
5012    
5013     # Passes both tests.
5014     ac_preproc_ok=:
5015     break
5016     fi
5017 ayin 1.108
5018 root 1.80 rm -f conftest.err conftest.$ac_ext
5019    
5020     done
5021     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5022     rm -f conftest.err conftest.$ac_ext
5023     if $ac_preproc_ok; then
5024     break
5025     fi
5026    
5027     done
5028     ac_cv_prog_CXXCPP=$CXXCPP
5029    
5030     fi
5031     CXXCPP=$ac_cv_prog_CXXCPP
5032     else
5033     ac_cv_prog_CXXCPP=$CXXCPP
5034     fi
5035 ayin 1.108 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5036     echo "${ECHO_T}$CXXCPP" >&6; }
5037 root 1.80 ac_preproc_ok=false
5038     for ac_cxx_preproc_warn_flag in '' yes
5039     do
5040     # Use a header file that comes with gcc, so configuring glibc
5041     # with a fresh cross-compiler works.
5042     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5043     # <limits.h> exists even on freestanding compilers.
5044     # On the NeXT, cc -E runs the code through the compiler's parser,
5045     # not just through cpp. "Syntax error" is here to catch this case.
5046     cat >conftest.$ac_ext <<_ACEOF
5047     /* confdefs.h. */
5048     _ACEOF
5049     cat confdefs.h >>conftest.$ac_ext
5050     cat >>conftest.$ac_ext <<_ACEOF
5051     /* end confdefs.h. */
5052     #ifdef __STDC__
5053     # include <limits.h>
5054     #else
5055     # include <assert.h>
5056     #endif
5057     Syntax error
5058     _ACEOF
5059 ayin 1.108 if { (ac_try="$ac_cpp conftest.$ac_ext"
5060     case "(($ac_try" in
5061     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5062     *) ac_try_echo=$ac_try;;
5063     esac
5064     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5065     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5066 root 1.80 ac_status=$?
5067     grep -v '^ *+' conftest.er1 >conftest.err
5068     rm -f conftest.er1
5069     cat conftest.err >&5
5070     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 ayin 1.108 (exit $ac_status); } >/dev/null && {
5072     test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5073     test ! -s conftest.err
5074     }; then
5075 root 1.80 :
5076     else
5077     echo "$as_me: failed program was:" >&5
5078     sed 's/^/| /' conftest.$ac_ext >&5
5079    
5080     # Broken: fails on valid input.
5081     continue
5082     fi
5083 ayin 1.108
5084 root 1.80 rm -f conftest.err conftest.$ac_ext
5085    
5086 ayin 1.108 # OK, works on sane cases. Now check whether nonexistent headers
5087 root 1.80 # can be detected and how.
5088     cat >conftest.$ac_ext <<_ACEOF
5089     /* confdefs.h. */
5090     _ACEOF
5091     cat confdefs.h >>conftest.$ac_ext
5092     cat >>conftest.$ac_ext <<_ACEOF
5093     /* end confdefs.h. */
5094     #include <ac_nonexistent.h>
5095     _ACEOF
5096 ayin 1.108 if { (ac_try="$ac_cpp conftest.$ac_ext"
5097     case "(($ac_try" in
5098     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5099     *) ac_try_echo=$ac_try;;
5100     esac
5101     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5102     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5103 root 1.80 ac_status=$?
5104     grep -v '^ *+' conftest.er1 >conftest.err
5105     rm -f conftest.er1
5106     cat conftest.err >&5
5107     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 ayin 1.108 (exit $ac_status); } >/dev/null && {
5109     test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5110     test ! -s conftest.err
5111     }; then
5112 root 1.80 # Broken: success on invalid input.
5113     continue
5114     else
5115     echo "$as_me: failed program was:" >&5
5116     sed 's/^/| /' conftest.$ac_ext >&5
5117    
5118     # Passes both tests.
5119     ac_preproc_ok=:
5120     break
5121     fi
5122 ayin 1.108
5123 root 1.80 rm -f conftest.err conftest.$ac_ext
5124    
5125     done
5126     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5127     rm -f conftest.err conftest.$ac_ext
5128     if $ac_preproc_ok; then
5129     :
5130     else
5131     { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5132     See \`config.log' for more details." >&5
5133     echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5134     See \`config.log' for more details." >&2;}
5135     { (exit 1); exit 1; }; }
5136     fi
5137    
5138 ayin 1.108 ac_ext=cpp
5139 root 1.80 ac_cpp='$CXXCPP $CPPFLAGS'
5140     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5141     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5142     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5143    
5144    
5145 ayin 1.108 { echo "$as_me:$LINENO: checking for X" >&5
5146     echo $ECHO_N "checking for X... $ECHO_C" >&6; }
5147 pcg 1.24
5148 pcg 1.11
5149 ayin 1.108 # Check whether --with-x was given.
5150 pcg 1.1 if test "${with_x+set}" = set; then
5151 ayin 1.108 withval=$with_x;
5152     fi
5153 pcg 1.1
5154     # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5155     if test "x$with_x" = xno; then
5156     # The user explicitly disabled X.
5157     have_x=disabled
5158     else
5159 ayin 1.108 case $x_includes,$x_libraries in #(
5160     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
5161     echo "$as_me: error: Cannot use X directory names containing '" >&2;}
5162     { (exit 1); exit 1; }; };; #(
5163     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
5164 pcg 1.11 echo $ECHO_N "(cached) $ECHO_C" >&6
5165 pcg 1.1 else
5166     # One or both of the vars are not set, and there is no cached value.
5167 pcg 1.11 ac_x_includes=no ac_x_libraries=no
5168 ayin 1.108 rm -f -r conftest.dir
5169 pcg 1.11 if mkdir conftest.dir; then
5170     cd conftest.dir
5171     cat >Imakefile <<'_ACEOF'
5172 ayin 1.108 incroot:
5173     @echo incroot='${INCROOT}'
5174     usrlibdir:
5175     @echo usrlibdir='${USRLIBDIR}'
5176     libdir:
5177     @echo libdir='${LIBDIR}'
5178 pcg 1.11 _ACEOF
5179 ayin 1.108 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
5180 pcg 1.1 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5181 ayin 1.108 for ac_var in incroot usrlibdir libdir; do
5182     eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5183     done
5184 pcg 1.1 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5185     for ac_extension in a so sl; do
5186 ayin 1.108 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5187     test -f "$ac_im_libdir/libX11.$ac_extension"; then
5188 pcg 1.11 ac_im_usrlibdir=$ac_im_libdir; break
5189 pcg 1.1 fi
5190     done
5191     # Screen out bogus values from the imake configuration. They are
5192     # bogus both because they are the default anyway, and because
5193     # using them would break gcc on systems where it needs fixed includes.
5194 pcg 1.11 case $ac_im_incroot in
5195 ayin 1.108 /usr/include) ac_x_includes= ;;
5196 pcg 1.11 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5197 pcg 1.1 esac
5198 pcg 1.11 case $ac_im_usrlibdir in
5199 pcg 1.1 /usr/lib | /lib) ;;
5200 pcg 1.11 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5201 pcg 1.1 esac
5202     fi
5203     cd ..
5204 ayin 1.108 rm -f -r conftest.dir
5205 pcg 1.1 fi
5206    
5207 pcg 1.11 # Standard set of common directories for X headers.
5208     # Check X11 before X11Rn because it is often a symlink to the current release.
5209     ac_x_header_dirs='
5210     /usr/X11/include
5211     /usr/X11R6/include
5212     /usr/X11R5/include
5213     /usr/X11R4/include
5214    
5215     /usr/include/X11
5216     /usr/include/X11R6
5217     /usr/include/X11R5
5218     /usr/include/X11R4
5219    
5220     /usr/local/X11/include
5221     /usr/local/X11R6/include
5222     /usr/local/X11R5/include
5223     /usr/local/X11R4/include
5224    
5225     /usr/local/include/X11
5226     /usr/local/include/X11R6
5227     /usr/local/include/X11R5
5228     /usr/local/include/X11R4
5229    
5230     /usr/X386/include
5231     /usr/x386/include
5232     /usr/XFree86/include/X11
5233    
5234     /usr/include
5235     /usr/local/include
5236     /usr/unsupported/include
5237     /usr/athena/include
5238     /usr/local/x11r5/include
5239     /usr/lpp/Xamples/include
5240    
5241     /usr/openwin/include
5242     /usr/openwin/share/include'
5243 pcg 1.1
5244 pcg 1.11 if test "$ac_x_includes" = no; then
5245 ayin 1.108 # Guess where to find include files, by looking for Xlib.h.
5246 pcg 1.1 # First, try using that file with no special directory specified.
5247 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
5248     /* confdefs.h. */
5249     _ACEOF
5250     cat confdefs.h >>conftest.$ac_ext
5251     cat >>conftest.$ac_ext <<_ACEOF
5252     /* end confdefs.h. */
5253 ayin 1.108 #include <X11/Xlib.h>
5254 pcg 1.11 _ACEOF
5255 ayin 1.108 if { (ac_try="$ac_cpp conftest.$ac_ext"
5256     case "(($ac_try" in
5257     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5258     *) ac_try_echo=$ac_try;;
5259     esac
5260     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5261     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5262 pcg 1.11 ac_status=$?
5263     grep -v '^ *+' conftest.er1 >conftest.err
5264     rm -f conftest.er1
5265     cat conftest.err >&5
5266     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267 ayin 1.108 (exit $ac_status); } >/dev/null && {
5268     test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5269     test ! -s conftest.err
5270     }; then
5271 pcg 1.1 # We can compile using X headers with no special include directory.
5272     ac_x_includes=
5273     else
5274 pcg 1.11 echo "$as_me: failed program was:" >&5
5275     sed 's/^/| /' conftest.$ac_ext >&5
5276    
5277     for ac_dir in $ac_x_header_dirs; do
5278 ayin 1.108 if test -r "$ac_dir/X11/Xlib.h"; then
5279 pcg 1.11 ac_x_includes=$ac_dir
5280     break
5281     fi
5282     done
5283 pcg 1.1 fi
5284 ayin 1.108
5285 pcg 1.11 rm -f conftest.err conftest.$ac_ext
5286     fi # $ac_x_includes = no
5287 pcg 1.1
5288 pcg 1.11 if test "$ac_x_libraries" = no; then
5289 pcg 1.1 # Check for the libraries.
5290     # See if we find them without any special options.
5291     # Don't add to $LIBS permanently.
5292 pcg 1.11 ac_save_LIBS=$LIBS
5293 ayin 1.108 LIBS="-lX11 $LIBS"
5294 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
5295     /* confdefs.h. */
5296     _ACEOF
5297     cat confdefs.h >>conftest.$ac_ext
5298     cat >>conftest.$ac_ext <<_ACEOF
5299     /* end confdefs.h. */
5300 ayin 1.108 #include <X11/Xlib.h>
5301 pcg 1.11 int
5302     main ()
5303     {
5304 ayin 1.108 XrmInitialize ()
5305 pcg 1.11 ;
5306     return 0;
5307     }
5308     _ACEOF
5309     rm -f conftest.$ac_objext conftest$ac_exeext
5310 ayin 1.108 if { (ac_try="$ac_link"
5311     case "(($ac_try" in
5312     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5313     *) ac_try_echo=$ac_try;;
5314     esac
5315     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5316     (eval "$ac_link") 2>conftest.er1
5317 pcg 1.11 ac_status=$?
5318     grep -v '^ *+' conftest.er1 >conftest.err
5319     rm -f conftest.er1
5320     cat conftest.err >&5
5321     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 ayin 1.108 (exit $ac_status); } && {
5323     test -z "$ac_cxx_werror_flag" ||
5324     test ! -s conftest.err
5325     } && test -s conftest$ac_exeext &&
5326     $as_test_x conftest$ac_exeext; then
5327 pcg 1.11 LIBS=$ac_save_LIBS
5328 pcg 1.1 # We can link X programs with no special library path.
5329     ac_x_libraries=
5330     else
5331 pcg 1.11 echo "$as_me: failed program was:" >&5
5332     sed 's/^/| /' conftest.$ac_ext >&5
5333    
5334 ayin 1.108 LIBS=$ac_save_LIBS
5335 pcg 1.11 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5336 pcg 1.1 do
5337 pcg 1.11 # Don't even attempt the hair of trying to link an X program!
5338 pcg 1.1 for ac_extension in a so sl; do
5339 ayin 1.108 if test -r "$ac_dir/libX11.$ac_extension"; then
5340 pcg 1.1 ac_x_libraries=$ac_dir
5341     break 2
5342     fi
5343     done
5344     done
5345     fi
5346 ayin 1.108
5347     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5348 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
5349     fi # $ac_x_libraries = no
5350 pcg 1.1
5351 ayin 1.108 case $ac_x_includes,$ac_x_libraries in #(
5352     no,* | *,no | *\'*)
5353     # Didn't find X, or a directory has "'" in its name.
5354     ac_cv_have_x="have_x=no";; #(
5355     *)
5356     # Record where we found X for the cache.
5357     ac_cv_have_x="have_x=yes\
5358     ac_x_includes='$ac_x_includes'\
5359     ac_x_libraries='$ac_x_libraries'"
5360     esac
5361 ayin 1.106 fi
5362 ayin 1.108 ;; #(
5363     *) have_x=yes;;
5364     esac
5365 pcg 1.1 eval "$ac_cv_have_x"
5366     fi # $with_x != no
5367    
5368     if test "$have_x" != yes; then
5369 ayin 1.108 { echo "$as_me:$LINENO: result: $have_x" >&5
5370     echo "${ECHO_T}$have_x" >&6; }
5371 pcg 1.1 no_x=yes
5372     else
5373     # If each of the values was on the command line, it overrides each guess.
5374     test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5375     test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5376     # Update the cache value to reflect the command line values.
5377 ayin 1.108 ac_cv_have_x="have_x=yes\
5378     ac_x_includes='$x_includes'\
5379     ac_x_libraries='$x_libraries'"
5380     { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5381     echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
5382 pcg 1.1 fi
5383    
5384     if test "$no_x" = yes; then
5385     # Not all programs may use this symbol, but it does not hurt to define it.
5386 pcg 1.11
5387     cat >>confdefs.h <<\_ACEOF
5388 pcg 1.1 #define X_DISPLAY_MISSING 1
5389 pcg 1.11 _ACEOF
5390 pcg 1.1
5391     X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5392     else
5393     if test -n "$x_includes"; then
5394     X_CFLAGS="$X_CFLAGS -I$x_includes"
5395     fi
5396    
5397     # It would also be nice to do this for all -L options, not just this one.
5398     if test -n "$x_libraries"; then
5399     X_LIBS="$X_LIBS -L$x_libraries"
5400     # For Solaris; some versions of Sun CC require a space after -R and
5401     # others require no space. Words are not sufficient . . . .
5402 ayin 1.108 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5403     echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
5404     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5405     ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
5406     ac_cxx_werror_flag=yes
5407     cat >conftest.$ac_ext <<_ACEOF
5408 pcg 1.11 /* confdefs.h. */
5409     _ACEOF
5410     cat confdefs.h >>conftest.$ac_ext
5411     cat >>conftest.$ac_ext <<_ACEOF
5412     /* end confdefs.h. */
5413 pcg 1.1
5414 pcg 1.11 int
5415     main ()
5416     {
5417 pcg 1.1
5418 pcg 1.11 ;
5419     return 0;
5420     }
5421     _ACEOF
5422     rm -f conftest.$ac_objext conftest$ac_exeext
5423 ayin 1.108 if { (ac_try="$ac_link"
5424     case "(($ac_try" in
5425     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5426     *) ac_try_echo=$ac_try;;
5427     esac
5428     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5429     (eval "$ac_link") 2>conftest.er1
5430 pcg 1.11 ac_status=$?
5431     grep -v '^ *+' conftest.er1 >conftest.err
5432     rm -f conftest.er1
5433     cat conftest.err >&5
5434     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435 ayin 1.108 (exit $ac_status); } && {
5436     test -z "$ac_cxx_werror_flag" ||
5437     test ! -s conftest.err
5438     } && test -s conftest$ac_exeext &&
5439     $as_test_x conftest$ac_exeext; then
5440     { echo "$as_me:$LINENO: result: no" >&5
5441     echo "${ECHO_T}no" >&6; }
5442     X_LIBS="$X_LIBS -R$x_libraries"
5443 pcg 1.1 else
5444 pcg 1.11 echo "$as_me: failed program was:" >&5
5445     sed 's/^/| /' conftest.$ac_ext >&5
5446    
5447 pcg 1.1 LIBS="$ac_xsave_LIBS -R $x_libraries"
5448 ayin 1.108 cat >conftest.$ac_ext <<_ACEOF
5449 pcg 1.11 /* confdefs.h. */
5450     _ACEOF
5451     cat confdefs.h >>conftest.$ac_ext
5452     cat >>conftest.$ac_ext <<_ACEOF
5453     /* end confdefs.h. */
5454 pcg 1.1
5455 pcg 1.11 int
5456     main ()
5457     {
5458 pcg 1.1
5459 pcg 1.11 ;
5460     return 0;
5461     }
5462     _ACEOF
5463     rm -f conftest.$ac_objext conftest$ac_exeext
5464 ayin 1.108 if { (ac_try="$ac_link"
5465     case "(($ac_try" in
5466     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5467     *) ac_try_echo=$ac_try;;
5468     esac
5469     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5470     (eval "$ac_link") 2>conftest.er1
5471 pcg 1.11 ac_status=$?
5472     grep -v '^ *+' conftest.er1 >conftest.err
5473     rm -f conftest.er1
5474     cat conftest.err >&5
5475     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476 ayin 1.108 (exit $ac_status); } && {
5477     test -z "$ac_cxx_werror_flag" ||
5478     test ! -s conftest.err
5479     } && test -s conftest$ac_exeext &&
5480     $as_test_x conftest$ac_exeext; then
5481     { echo "$as_me:$LINENO: result: yes" >&5
5482     echo "${ECHO_T}yes" >&6; }
5483     X_LIBS="$X_LIBS -R $x_libraries"
5484 pcg 1.1 else
5485 pcg 1.11 echo "$as_me: failed program was:" >&5
5486     sed 's/^/| /' conftest.$ac_ext >&5
5487    
5488 ayin 1.108 { echo "$as_me:$LINENO: result: neither works" >&5
5489     echo "${ECHO_T}neither works" >&6; }
5490 ayin 1.102 fi
5491 ayin 1.108
5492     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5493     conftest$ac_exeext conftest.$ac_ext
5494     fi
5495    
5496     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5497 root 1.105 conftest$ac_exeext conftest.$ac_ext
5498 ayin 1.108 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
5499     LIBS=$ac_xsave_LIBS
5500 pcg 1.1 fi
5501    
5502     # Check for system-dependent libraries X programs must link with.
5503     # Do this before checking for the system-independent R6 libraries
5504     # (-lICE), since we may need -lsocket or whatever for X linking.
5505    
5506     if test "$ISC" = yes; then
5507     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5508     else
5509 pcg 1.11 # Martyn Johnson says this is needed for Ultrix, if the X
5510     # libraries were built with DECnet support. And Karl Berry says
5511 pcg 1.1 # the Alpha needs dnet_stub (dnet does not exist).
5512 pcg 1.11 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5513     cat >conftest.$ac_ext <<_ACEOF
5514     /* confdefs.h. */
5515     _ACEOF
5516     cat confdefs.h >>conftest.$ac_ext
5517     cat >>conftest.$ac_ext <<_ACEOF
5518     /* end confdefs.h. */
5519    
5520 ayin 1.108 /* Override any GCC internal prototype to avoid an error.
5521     Use char because int might match the return type of a GCC
5522     builtin and then its argument prototype would still apply. */
5523 pcg 1.11 #ifdef __cplusplus
5524     extern "C"
5525     #endif
5526     char XOpenDisplay ();
5527     int
5528     main ()
5529     {
5530 ayin 1.108 return XOpenDisplay ();
5531 pcg 1.11 ;
5532     return 0;
5533     }
5534     _ACEOF
5535     rm -f conftest.$ac_objext conftest$ac_exeext
5536 ayin 1.108 if { (ac_try="$ac_link"
5537     case "(($ac_try" in
5538     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5539     *) ac_try_echo=$ac_try;;
5540     esac
5541     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5542     (eval "$ac_link") 2>conftest.er1
5543 pcg 1.11 ac_status=$?
5544     grep -v '^ *+' conftest.er1 >conftest.err
5545     rm -f conftest.er1
5546     cat conftest.err >&5
5547     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 ayin 1.108 (exit $ac_status); } && {
5549     test -z "$ac_cxx_werror_flag" ||
5550     test ! -s conftest.err
5551     } && test -s conftest$ac_exeext &&
5552     $as_test_x conftest$ac_exeext; then
5553 pcg 1.11 :
5554     else
5555     echo "$as_me: failed program was:" >&5
5556     sed 's/^/| /' conftest.$ac_ext >&5
5557 pcg 1.1
5558 ayin 1.108 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5559     echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
5560 pcg 1.11 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5561     echo $ECHO_N "(cached) $ECHO_C" >&6
5562 pcg 1.1 else
5563 pcg 1.11 ac_check_lib_save_LIBS=$LIBS
5564     LIBS="-ldnet $LIBS"
5565     cat >conftest.$ac_ext <<_ACEOF
5566     /* confdefs.h. */
5567     _ACEOF
5568     cat confdefs.h >>conftest.$ac_ext
5569     cat >>conftest.$ac_ext <<_ACEOF
5570     /* end confdefs.h. */
5571 pcg 1.1
5572 ayin 1.108 /* Override any GCC internal prototype to avoid an error.
5573     Use char because int might match the return type of a GCC
5574     builtin and then its argument prototype would still apply. */
5575 pcg 1.11 #ifdef __cplusplus
5576     extern "C"
5577     #endif
5578     char dnet_ntoa ();
5579     int
5580     main ()
5581     {
5582 ayin 1.108 return dnet_ntoa ();
5583 pcg 1.11 ;
5584     return 0;
5585     }
5586     _ACEOF
5587     rm -f conftest.$ac_objext conftest$ac_exeext
5588 ayin 1.108 if { (ac_try="$ac_link"
5589     case "(($ac_try" in
5590     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5591     *) ac_try_echo=$ac_try;;
5592     esac
5593     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5594     (eval "$ac_link") 2>conftest.er1
5595 pcg 1.11 ac_status=$?
5596     grep -v '^ *+' conftest.er1 >conftest.err
5597     rm -f conftest.er1
5598     cat conftest.err >&5
5599     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 ayin 1.108 (exit $ac_status); } && {
5601     test -z "$ac_cxx_werror_flag" ||
5602     test ! -s conftest.err
5603     } && test -s conftest$ac_exeext &&
5604     $as_test_x conftest$ac_exeext; then
5605 pcg 1.11 ac_cv_lib_dnet_dnet_ntoa=yes
5606     else
5607     echo "$as_me: failed program was:" >&5
5608     sed 's/^/| /' conftest.$ac_ext >&5
5609    
5610 ayin 1.108 ac_cv_lib_dnet_dnet_ntoa=no
5611 pcg 1.11 fi
5612 ayin 1.108
5613     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5614 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
5615     LIBS=$ac_check_lib_save_LIBS
5616     fi
5617 ayin 1.108 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5618     echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
5619 pcg 1.11 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5620 pcg 1.1 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5621     fi
5622    
5623     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5624 ayin 1.108 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5625     echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
5626 pcg 1.11 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5627     echo $ECHO_N "(cached) $ECHO_C" >&6
5628 pcg 1.1 else
5629 pcg 1.11 ac_check_lib_save_LIBS=$LIBS
5630 pcg 1.1 LIBS="-ldnet_stub $LIBS"
5631 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
5632     /* confdefs.h. */
5633     _ACEOF
5634     cat confdefs.h >>conftest.$ac_ext
5635     cat >>conftest.$ac_ext <<_ACEOF
5636     /* end confdefs.h. */
5637    
5638 ayin 1.108 /* Override any GCC internal prototype to avoid an error.
5639     Use char because int might match the return type of a GCC
5640     builtin and then its argument prototype would still apply. */
5641 pcg 1.11 #ifdef __cplusplus
5642     extern "C"
5643     #endif
5644     char dnet_ntoa ();
5645     int
5646     main ()
5647     {
5648 ayin 1.108 return dnet_ntoa ();
5649 pcg 1.11 ;
5650     return 0;
5651     }
5652     _ACEOF
5653     rm -f conftest.$ac_objext conftest$ac_exeext
5654 ayin 1.108 if { (ac_try="$ac_link"
5655     case "(($ac_try" in
5656     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5657     *) ac_try_echo=$ac_try;;
5658     esac
5659     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5660     (eval "$ac_link") 2>conftest.er1
5661 pcg 1.11 ac_status=$?
5662     grep -v '^ *+' conftest.er1 >conftest.err
5663     rm -f conftest.er1
5664     cat conftest.err >&5
5665     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 ayin 1.108 (exit $ac_status); } && {
5667     test -z "$ac_cxx_werror_flag" ||
5668     test ! -s conftest.err
5669     } && test -s conftest$ac_exeext &&
5670     $as_test_x conftest$ac_exeext; then
5671 pcg 1.11 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5672     else
5673     echo "$as_me: failed program was:" >&5
5674     sed 's/^/| /' conftest.$ac_ext >&5
5675    
5676 ayin 1.108 ac_cv_lib_dnet_stub_dnet_ntoa=no
5677 pcg 1.11 fi
5678 ayin 1.108
5679     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5680 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
5681     LIBS=$ac_check_lib_save_LIBS
5682     fi
5683 ayin 1.108 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5684     echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
5685 pcg 1.11 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5686 pcg 1.1 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5687     fi
5688    
5689     fi
5690 pcg 1.11 fi
5691 ayin 1.108
5692     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5693 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
5694     LIBS="$ac_xsave_LIBS"
5695 pcg 1.1
5696     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5697     # to get the SysV transport functions.
5698 pcg 1.11 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5699 pcg 1.1 # needs -lnsl.
5700     # The nsl library prevents programs from opening the X display
5701 pcg 1.11 # on Irix 5.2, according to T.E. Dickey.
5702     # The functions gethostbyname, getservbyname, and inet_addr are
5703     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5704 ayin 1.108 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
5705     echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
5706 pcg 1.11 if test "${ac_cv_func_gethostbyname+set}" = set; then
5707     echo $ECHO_N "(cached) $ECHO_C" >&6
5708     else
5709     cat >conftest.$ac_ext <<_ACEOF
5710     /* confdefs.h. */
5711     _ACEOF
5712     cat confdefs.h >>conftest.$ac_ext
5713     cat >>conftest.$ac_ext <<_ACEOF
5714     /* end confdefs.h. */
5715     /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5716     For example, HP-UX 11i <limits.h> declares gettimeofday. */
5717     #define gethostbyname innocuous_gethostbyname
5718    
5719 pcg 1.1 /* System header to define __stub macros and hopefully few prototypes,
5720 pcg 1.11 which can conflict with char gethostbyname (); below.
5721     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5722     <limits.h> exists even on freestanding compilers. */
5723    
5724     #ifdef __STDC__
5725     # include <limits.h>
5726     #else
5727     # include <assert.h>
5728     #endif
5729    
5730     #undef gethostbyname
5731    
5732 ayin 1.108 /* Override any GCC internal prototype to avoid an error.
5733     Use char because int might match the return type of a GCC
5734     builtin and then its argument prototype would still apply. */
5735 pcg 1.11 #ifdef __cplusplus
5736     extern "C"
5737     #endif
5738     char gethostbyname ();
5739 pcg 1.1 /* The GNU C library defines this for functions which it implements
5740     to always fail with ENOSYS. Some functions are actually named
5741     something starting with __ and the normal name is an alias. */
5742 ayin 1.108 #if defined __stub_gethostbyname || defined __stub___gethostbyname
5743 pcg 1.1 choke me
5744     #endif
5745    
5746 pcg 1.11 int
5747     main ()
5748     {
5749 ayin 1.108 return gethostbyname ();
5750 pcg 1.11 ;
5751     return 0;
5752     }
5753     _ACEOF
5754     rm -f conftest.$ac_objext conftest$ac_exeext
5755 ayin 1.108 if { (ac_try="$ac_link"
5756     case "(($ac_try" in
5757     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5758     *) ac_try_echo=$ac_try;;
5759     esac
5760     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5761     (eval "$ac_link") 2>conftest.er1
5762 pcg 1.11 ac_status=$?
5763     grep -v '^ *+' conftest.er1 >conftest.err
5764     rm -f conftest.er1
5765     cat conftest.err >&5
5766     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 ayin 1.108 (exit $ac_status); } && {
5768     test -z "$ac_cxx_werror_flag" ||
5769     test ! -s conftest.err
5770     } && test -s conftest$ac_exeext &&
5771     $as_test_x conftest$ac_exeext; then
5772 pcg 1.11 ac_cv_func_gethostbyname=yes
5773     else
5774     echo "$as_me: failed program was:" >&5
5775     sed 's/^/| /' conftest.$ac_ext >&5
5776    
5777 ayin 1.108 ac_cv_func_gethostbyname=no
5778 pcg 1.11 fi
5779 ayin 1.108
5780     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5781 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
5782     fi
5783 ayin 1.108 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5784     echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
5785 pcg 1.11
5786 pcg 1.1 if test $ac_cv_func_gethostbyname = no; then
5787 ayin 1.108 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5788     echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
5789 pcg 1.11 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5790     echo $ECHO_N "(cached) $ECHO_C" >&6
5791 pcg 1.1 else
5792 pcg 1.11 ac_check_lib_save_LIBS=$LIBS
5793 pcg 1.1 LIBS="-lnsl $LIBS"
5794 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
5795     /* confdefs.h. */
5796     _ACEOF
5797     cat confdefs.h >>conftest.$ac_ext
5798     cat >>conftest.$ac_ext <<_ACEOF
5799     /* end confdefs.h. */
5800    
5801 ayin 1.108 /* Override any GCC internal prototype to avoid an error.
5802     Use char because int might match the return type of a GCC
5803     builtin and then its argument prototype would still apply. */
5804 pcg 1.11 #ifdef __cplusplus
5805     extern "C"
5806     #endif
5807     char gethostbyname ();
5808     int
5809     main ()
5810     {
5811 ayin 1.108 return gethostbyname ();
5812 pcg 1.11 ;
5813     return 0;
5814     }
5815     _ACEOF
5816     rm -f conftest.$ac_objext conftest$ac_exeext
5817 ayin 1.108 if { (ac_try="$ac_link"
5818     case "(($ac_try" in
5819     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5820     *) ac_try_echo=$ac_try;;
5821     esac
5822     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5823     (eval "$ac_link") 2>conftest.er1
5824 pcg 1.11 ac_status=$?
5825     grep -v '^ *+' conftest.er1 >conftest.err
5826     rm -f conftest.er1
5827     cat conftest.err >&5
5828     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 ayin 1.108 (exit $ac_status); } && {
5830     test -z "$ac_cxx_werror_flag" ||
5831     test ! -s conftest.err
5832     } && test -s conftest$ac_exeext &&
5833     $as_test_x conftest$ac_exeext; then
5834 pcg 1.11 ac_cv_lib_nsl_gethostbyname=yes
5835     else
5836     echo "$as_me: failed program was:" >&5
5837     sed 's/^/| /' conftest.$ac_ext >&5
5838    
5839 ayin 1.108 ac_cv_lib_nsl_gethostbyname=no
5840 pcg 1.11 fi
5841 ayin 1.108
5842     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5843 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
5844     LIBS=$ac_check_lib_save_LIBS
5845     fi
5846 ayin 1.108 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5847     echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
5848 pcg 1.11 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5849     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5850     fi
5851 pcg 1.1
5852 pcg 1.11 if test $ac_cv_lib_nsl_gethostbyname = no; then
5853 ayin 1.108 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5854     echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
5855 pcg 1.11 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5856     echo $ECHO_N "(cached) $ECHO_C" >&6
5857     else
5858     ac_check_lib_save_LIBS=$LIBS
5859     LIBS="-lbsd $LIBS"
5860     cat >conftest.$ac_ext <<_ACEOF
5861     /* confdefs.h. */
5862     _ACEOF
5863     cat confdefs.h >>conftest.$ac_ext
5864     cat >>conftest.$ac_ext <<_ACEOF
5865     /* end confdefs.h. */
5866 pcg 1.1
5867 ayin 1.108 /* Override any GCC internal prototype to avoid an error.
5868     Use char because int might match the return type of a GCC
5869     builtin and then its argument prototype would still apply. */
5870 pcg 1.11 #ifdef __cplusplus
5871     extern "C"
5872     #endif
5873     char gethostbyname ();
5874     int
5875     main ()
5876     {
5877 ayin 1.108 return gethostbyname ();
5878 pcg 1.11 ;
5879     return 0;
5880     }
5881     _ACEOF
5882     rm -f conftest.$ac_objext conftest$ac_exeext
5883 ayin 1.108 if { (ac_try="$ac_link"
5884     case "(($ac_try" in
5885     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5886     *) ac_try_echo=$ac_try;;
5887     esac
5888     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5889     (eval "$ac_link") 2>conftest.er1
5890 pcg 1.11 ac_status=$?
5891     grep -v '^ *+' conftest.er1 >conftest.err
5892     rm -f conftest.er1
5893     cat conftest.err >&5
5894     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 ayin 1.108 (exit $ac_status); } && {
5896     test -z "$ac_cxx_werror_flag" ||
5897     test ! -s conftest.err
5898     } && test -s conftest$ac_exeext &&
5899     $as_test_x conftest$ac_exeext; then
5900 pcg 1.11 ac_cv_lib_bsd_gethostbyname=yes
5901     else
5902     echo "$as_me: failed program was:" >&5
5903     sed 's/^/| /' conftest.$ac_ext >&5
5904    
5905 ayin 1.108 ac_cv_lib_bsd_gethostbyname=no
5906 pcg 1.11 fi
5907 ayin 1.108
5908     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5909 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
5910     LIBS=$ac_check_lib_save_LIBS
5911     fi
5912 ayin 1.108 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5913     echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
5914 pcg 1.11 if test $ac_cv_lib_bsd_gethostbyname = yes; then
5915     X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5916 pcg 1.1 fi
5917    
5918 pcg 1.11 fi
5919 pcg 1.1 fi
5920    
5921     # lieder@skyler.mavd.honeywell.com says without -lsocket,
5922     # socket/setsockopt and other routines are undefined under SCO ODT
5923     # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5924 pcg 1.11 # on later versions), says Simon Leinen: it contains gethostby*
5925     # variants that don't use the name server (or something). -lsocket
5926     # must be given before -lnsl if both are needed. We assume that
5927     # if connect needs -lnsl, so does gethostbyname.
5928 ayin 1.108 { echo "$as_me:$LINENO: checking for connect" >&5
5929     echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
5930 pcg 1.11 if test "${ac_cv_func_connect+set}" = set; then
5931     echo $ECHO_N "(cached) $ECHO_C" >&6
5932     else
5933     cat >conftest.$ac_ext <<_ACEOF
5934     /* confdefs.h. */
5935     _ACEOF
5936     cat confdefs.h >>conftest.$ac_ext
5937     cat >>conftest.$ac_ext <<_ACEOF
5938     /* end confdefs.h. */
5939     /* Define connect to an innocuous variant, in case <limits.h> declares connect.
5940     For example, HP-UX 11i <limits.h> declares gettimeofday. */
5941     #define connect innocuous_connect
5942    
5943 pcg 1.1 /* System header to define __stub macros and hopefully few prototypes,
5944 pcg 1.11 which can conflict with char connect (); below.
5945     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5946     <limits.h> exists even on freestanding compilers. */
5947    
5948     #ifdef __STDC__
5949     # include <limits.h>
5950     #else
5951     # include <assert.h>
5952     #endif
5953    
5954     #undef connect
5955    
5956 ayin 1.108 /* Override any GCC internal prototype to avoid an error.
5957     Use char because int might match the return type of a GCC
5958     builtin and then its argument prototype would still apply. */
5959 pcg 1.11 #ifdef __cplusplus
5960     extern "C"
5961     #endif
5962     char connect ();
5963 pcg 1.1 /* The GNU C library defines this for functions which it implements
5964     to always fail with ENOSYS. Some functions are actually named
5965     something starting with __ and the normal name is an alias. */
5966 ayin 1.108 #if defined __stub_connect || defined __stub___connect
5967 pcg 1.1 choke me
5968     #endif
5969    
5970 pcg 1.11 int
5971     main ()
5972     {
5973 ayin 1.108 return connect ();
5974 pcg 1.11 ;
5975     return 0;
5976     }
5977     _ACEOF
5978     rm -f conftest.$ac_objext conftest$ac_exeext
5979 ayin 1.108 if { (ac_try="$ac_link"
5980     case "(($ac_try" in
5981     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5982     *) ac_try_echo=$ac_try;;
5983     esac
5984     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5985     (eval "$ac_link") 2>conftest.er1
5986 pcg 1.11 ac_status=$?
5987     grep -v '^ *+' conftest.er1 >conftest.err
5988     rm -f conftest.er1
5989     cat conftest.err >&5
5990     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 ayin 1.108 (exit $ac_status); } && {
5992     test -z "$ac_cxx_werror_flag" ||
5993     test ! -s conftest.err
5994     } && test -s conftest$ac_exeext &&
5995     $as_test_x conftest$ac_exeext; then
5996 pcg 1.11 ac_cv_func_connect=yes
5997     else
5998     echo "$as_me: failed program was:" >&5
5999     sed 's/^/| /' conftest.$ac_ext >&5
6000    
6001 ayin 1.108 ac_cv_func_connect=no
6002 pcg 1.1 fi
6003 ayin 1.108
6004     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6005 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
6006 pcg 1.1 fi
6007 ayin 1.108 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6008     echo "${ECHO_T}$ac_cv_func_connect" >&6; }
6009 pcg 1.1
6010     if test $ac_cv_func_connect = no; then
6011 ayin 1.108 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6012     echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
6013 pcg 1.11 if test "${ac_cv_lib_socket_connect+set}" = set; then
6014     echo $ECHO_N "(cached) $ECHO_C" >&6
6015 pcg 1.1 else
6016 pcg 1.11 ac_check_lib_save_LIBS=$LIBS
6017 pcg 1.1 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6018 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
6019     /* confdefs.h. */
6020     _ACEOF
6021     cat confdefs.h >>conftest.$ac_ext
6022     cat >>conftest.$ac_ext <<_ACEOF
6023     /* end confdefs.h. */
6024    
6025 ayin 1.108 /* Override any GCC internal prototype to avoid an error.
6026     Use char because int might match the return type of a GCC
6027     builtin and then its argument prototype would still apply. */
6028 pcg 1.11 #ifdef __cplusplus
6029     extern "C"
6030     #endif
6031     char connect ();
6032     int
6033     main ()
6034     {
6035 ayin 1.108 return connect ();
6036 pcg 1.11 ;
6037     return 0;
6038     }
6039     _ACEOF
6040     rm -f conftest.$ac_objext conftest$ac_exeext
6041 ayin 1.108 if { (ac_try="$ac_link"
6042     case "(($ac_try" in
6043     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6044     *) ac_try_echo=$ac_try;;
6045     esac
6046     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6047     (eval "$ac_link") 2>conftest.er1
6048 pcg 1.11 ac_status=$?
6049     grep -v '^ *+' conftest.er1 >conftest.err
6050     rm -f conftest.er1
6051     cat conftest.err >&5
6052     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 ayin 1.108 (exit $ac_status); } && {
6054     test -z "$ac_cxx_werror_flag" ||
6055     test ! -s conftest.err
6056     } && test -s conftest$ac_exeext &&
6057     $as_test_x conftest$ac_exeext; then
6058 pcg 1.11 ac_cv_lib_socket_connect=yes
6059     else
6060     echo "$as_me: failed program was:" >&5
6061     sed 's/^/| /' conftest.$ac_ext >&5
6062    
6063 ayin 1.108 ac_cv_lib_socket_connect=no
6064 pcg 1.11 fi
6065 ayin 1.108
6066     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6067 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
6068     LIBS=$ac_check_lib_save_LIBS
6069     fi
6070 ayin 1.108 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6071     echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
6072 pcg 1.11 if test $ac_cv_lib_socket_connect = yes; then
6073 pcg 1.1 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6074     fi
6075    
6076     fi
6077    
6078 pcg 1.11 # Guillermo Gomez says -lposix is necessary on A/UX.
6079 ayin 1.108 { echo "$as_me:$LINENO: checking for remove" >&5
6080     echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
6081 pcg 1.11 if test "${ac_cv_func_remove+set}" = set; then
6082     echo $ECHO_N "(cached) $ECHO_C" >&6
6083     else
6084     cat >conftest.$ac_ext <<_ACEOF
6085     /* confdefs.h. */
6086     _ACEOF
6087     cat confdefs.h >>conftest.$ac_ext
6088     cat >>conftest.$ac_ext <<_ACEOF
6089     /* end confdefs.h. */
6090     /* Define remove to an innocuous variant, in case <limits.h> declares remove.
6091     For example, HP-UX 11i <limits.h> declares gettimeofday. */
6092     #define remove innocuous_remove
6093    
6094 pcg 1.1 /* System header to define __stub macros and hopefully few prototypes,
6095 pcg 1.11 which can conflict with char remove (); below.
6096     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6097     <limits.h> exists even on freestanding compilers. */
6098    
6099     #ifdef __STDC__
6100     # include <limits.h>
6101     #else
6102     # include <assert.h>
6103     #endif
6104    
6105     #undef remove
6106    
6107 ayin 1.108 /* Override any GCC internal prototype to avoid an error.
6108     Use char because int might match the return type of a GCC
6109     builtin and then its argument prototype would still apply. */
6110 pcg 1.11 #ifdef __cplusplus
6111     extern "C"
6112     #endif
6113     char remove ();
6114 pcg 1.1 /* The GNU C library defines this for functions which it implements
6115     to always fail with ENOSYS. Some functions are actually named
6116     something starting with __ and the normal name is an alias. */
6117 ayin 1.108 #if defined __stub_remove || defined __stub___remove
6118 pcg 1.1 choke me
6119     #endif
6120    
6121 pcg 1.11 int
6122     main ()
6123     {
6124 ayin 1.108 return remove ();
6125 pcg 1.11 ;
6126     return 0;
6127     }
6128     _ACEOF
6129     rm -f conftest.$ac_objext conftest$ac_exeext
6130 ayin 1.108 if { (ac_try="$ac_link"
6131     case "(($ac_try" in
6132     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6133     *) ac_try_echo=$ac_try;;
6134     esac
6135     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6136     (eval "$ac_link") 2>conftest.er1
6137 pcg 1.11 ac_status=$?
6138     grep -v '^ *+' conftest.er1 >conftest.err
6139     rm -f conftest.er1
6140     cat conftest.err >&5
6141     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 ayin 1.108 (exit $ac_status); } && {
6143     test -z "$ac_cxx_werror_flag" ||
6144     test ! -s conftest.err
6145     } && test -s conftest$ac_exeext &&
6146     $as_test_x conftest$ac_exeext; then
6147 pcg 1.11 ac_cv_func_remove=yes
6148     else
6149     echo "$as_me: failed program was:" >&5
6150     sed 's/^/| /' conftest.$ac_ext >&5
6151    
6152 ayin 1.108 ac_cv_func_remove=no
6153 pcg 1.1 fi
6154 ayin 1.108
6155     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6156 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
6157 pcg 1.1 fi
6158 ayin 1.108 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6159     echo "${ECHO_T}$ac_cv_func_remove" >&6; }
6160 pcg 1.1
6161     if test $ac_cv_func_remove = no; then
6162 ayin 1.108 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6163     echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
6164 pcg 1.11 if test "${ac_cv_lib_posix_remove+set}" = set; then
6165     echo $ECHO_N "(cached) $ECHO_C" >&6
6166 pcg 1.1 else
6167 pcg 1.11 ac_check_lib_save_LIBS=$LIBS
6168 pcg 1.1 LIBS="-lposix $LIBS"
6169 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
6170     /* confdefs.h. */
6171     _ACEOF
6172     cat confdefs.h >>conftest.$ac_ext
6173     cat >>conftest.$ac_ext <<_ACEOF
6174     /* end confdefs.h. */
6175    
6176 ayin 1.108 /* Override any GCC internal prototype to avoid an error.
6177     Use char because int might match the return type of a GCC
6178     builtin and then its argument prototype would still apply. */
6179 pcg 1.11 #ifdef __cplusplus
6180     extern "C"
6181     #endif
6182     char remove ();
6183     int
6184     main ()
6185     {
6186 ayin 1.108 return remove ();
6187 pcg 1.11 ;
6188     return 0;
6189     }
6190     _ACEOF
6191     rm -f conftest.$ac_objext conftest$ac_exeext
6192 ayin 1.108 if { (ac_try="$ac_link"
6193     case "(($ac_try" in
6194     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6195     *) ac_try_echo=$ac_try;;
6196     esac
6197     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6198     (eval "$ac_link") 2>conftest.er1
6199 pcg 1.11 ac_status=$?
6200     grep -v '^ *+' conftest.er1 >conftest.err
6201     rm -f conftest.er1
6202     cat conftest.err >&5
6203     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 ayin 1.108 (exit $ac_status); } && {
6205     test -z "$ac_cxx_werror_flag" ||
6206     test ! -s conftest.err
6207     } && test -s conftest$ac_exeext &&
6208     $as_test_x conftest$ac_exeext; then
6209 pcg 1.11 ac_cv_lib_posix_remove=yes
6210     else
6211     echo "$as_me: failed program was:" >&5
6212     sed 's/^/| /' conftest.$ac_ext >&5
6213    
6214 ayin 1.108 ac_cv_lib_posix_remove=no
6215 pcg 1.11 fi
6216 ayin 1.108
6217     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6218 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
6219     LIBS=$ac_check_lib_save_LIBS
6220     fi
6221 ayin 1.108 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6222     echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
6223 pcg 1.11 if test $ac_cv_lib_posix_remove = yes; then
6224 pcg 1.1 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6225     fi
6226    
6227     fi
6228    
6229     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6230 ayin 1.108 { echo "$as_me:$LINENO: checking for shmat" >&5
6231     echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
6232 pcg 1.11 if test "${ac_cv_func_shmat+set}" = set; then
6233     echo $ECHO_N "(cached) $ECHO_C" >&6
6234     else
6235     cat >conftest.$ac_ext <<_ACEOF
6236     /* confdefs.h. */
6237     _ACEOF
6238     cat confdefs.h >>conftest.$ac_ext
6239     cat >>conftest.$ac_ext <<_ACEOF
6240     /* end confdefs.h. */
6241     /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6242     For example, HP-UX 11i <limits.h> declares gettimeofday. */
6243     #define shmat innocuous_shmat
6244    
6245 pcg 1.1 /* System header to define __stub macros and hopefully few prototypes,
6246 pcg 1.11 which can conflict with char shmat (); below.
6247     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6248     <limits.h> exists even on freestanding compilers. */
6249    
6250     #ifdef __STDC__
6251     # include <limits.h>
6252     #else
6253     # include <assert.h>
6254     #endif
6255    
6256     #undef shmat
6257    
6258 ayin 1.108 /* Override any GCC internal prototype to avoid an error.
6259     Use char because int might match the return type of a GCC
6260     builtin and then its argument prototype would still apply. */
6261 pcg 1.11 #ifdef __cplusplus
6262     extern "C"
6263     #endif
6264     char shmat ();
6265 pcg 1.1 /* The GNU C library defines this for functions which it implements
6266     to always fail with ENOSYS. Some functions are actually named
6267     something starting with __ and the normal name is an alias. */
6268 ayin 1.108 #if defined __stub_shmat || defined __stub___shmat
6269 pcg 1.1 choke me
6270 pcg 1.11 #endif
6271    
6272     int
6273     main ()
6274     {
6275 ayin 1.108 return shmat ();
6276 pcg 1.11 ;
6277     return 0;
6278     }
6279     _ACEOF
6280     rm -f conftest.$ac_objext conftest$ac_exeext
6281 ayin 1.108 if { (ac_try="$ac_link"
6282     case "(($ac_try" in
6283     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6284     *) ac_try_echo=$ac_try;;
6285     esac
6286     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6287     (eval "$ac_link") 2>conftest.er1
6288 pcg 1.11 ac_status=$?
6289     grep -v '^ *+' conftest.er1 >conftest.err
6290     rm -f conftest.er1
6291     cat conftest.err >&5
6292     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 ayin 1.108 (exit $ac_status); } && {
6294     test -z "$ac_cxx_werror_flag" ||
6295     test ! -s conftest.err
6296     } && test -s conftest$ac_exeext &&
6297     $as_test_x conftest$ac_exeext; then
6298 pcg 1.11 ac_cv_func_shmat=yes
6299     else
6300     echo "$as_me: failed program was:" >&5
6301     sed 's/^/| /' conftest.$ac_ext >&5
6302 pcg 1.1
6303 ayin 1.108 ac_cv_func_shmat=no
6304 pcg 1.1 fi
6305 ayin 1.108
6306     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6307 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
6308 pcg 1.1 fi
6309 ayin 1.108 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6310     echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
6311 pcg 1.1
6312     if test $ac_cv_func_shmat = no; then
6313 ayin 1.108 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6314     echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
6315 pcg 1.11 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6316     echo $ECHO_N "(cached) $ECHO_C" >&6
6317 pcg 1.1 else
6318 pcg 1.11 ac_check_lib_save_LIBS=$LIBS
6319 pcg 1.1 LIBS="-lipc $LIBS"
6320 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
6321     /* confdefs.h. */
6322     _ACEOF
6323     cat confdefs.h >>conftest.$ac_ext
6324     cat >>conftest.$ac_ext <<_ACEOF
6325     /* end confdefs.h. */
6326    
6327 ayin 1.108 /* Override any GCC internal prototype to avoid an error.
6328     Use char because int might match the return type of a GCC
6329     builtin and then its argument prototype would still apply. */
6330 pcg 1.11 #ifdef __cplusplus
6331     extern "C"
6332     #endif
6333     char shmat ();
6334     int
6335     main ()
6336     {
6337 ayin 1.108 return shmat ();
6338 pcg 1.11 ;
6339     return 0;
6340     }
6341     _ACEOF
6342     rm -f conftest.$ac_objext conftest$ac_exeext
6343 ayin 1.108 if { (ac_try="$ac_link"
6344     case "(($ac_try" in
6345     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6346     *) ac_try_echo=$ac_try;;
6347     esac
6348     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6349     (eval "$ac_link") 2>conftest.er1
6350 pcg 1.11 ac_status=$?
6351     grep -v '^ *+' conftest.er1 >conftest.err
6352     rm -f conftest.er1
6353     cat conftest.err >&5
6354     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 ayin 1.108 (exit $ac_status); } && {
6356     test -z "$ac_cxx_werror_flag" ||
6357     test ! -s conftest.err
6358     } && test -s conftest$ac_exeext &&
6359     $as_test_x conftest$ac_exeext; then
6360 pcg 1.11 ac_cv_lib_ipc_shmat=yes
6361     else
6362     echo "$as_me: failed program was:" >&5
6363     sed 's/^/| /' conftest.$ac_ext >&5
6364    
6365 ayin 1.108 ac_cv_lib_ipc_shmat=no
6366 pcg 1.11 fi
6367 ayin 1.108
6368     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6369 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
6370     LIBS=$ac_check_lib_save_LIBS
6371     fi
6372 ayin 1.108 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6373     echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
6374 pcg 1.11 if test $ac_cv_lib_ipc_shmat = yes; then
6375 pcg 1.1 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6376     fi
6377    
6378     fi
6379     fi
6380    
6381     # Check for libraries that X11R6 Xt/Xaw programs need.
6382 pcg 1.11 ac_save_LDFLAGS=$LDFLAGS
6383 pcg 1.1 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6384     # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6385     # check for ICE first), but we must link in the order -lSM -lICE or
6386     # we get undefined symbols. So assume we have SM if we have ICE.
6387     # These have to be linked with before -lX11, unlike the other
6388     # libraries we check for below, so use a different variable.
6389 pcg 1.11 # John Interrante, Karl Berry
6390 ayin 1.108 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6391     echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
6392 pcg 1.11 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6393     echo $ECHO_N "(cached) $ECHO_C" >&6
6394 pcg 1.1 else
6395 pcg 1.11 ac_check_lib_save_LIBS=$LIBS
6396 pcg 1.1 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6397 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
6398     /* confdefs.h. */
6399     _ACEOF
6400     cat confdefs.h >>conftest.$ac_ext
6401     cat >>conftest.$ac_ext <<_ACEOF
6402     /* end confdefs.h. */
6403    
6404 ayin 1.108 /* Override any GCC internal prototype to avoid an error.
6405     Use char because int might match the return type of a GCC
6406     builtin and then its argument prototype would still apply. */
6407 pcg 1.11 #ifdef __cplusplus
6408     extern "C"
6409     #endif
6410     char IceConnectionNumber ();
6411     int
6412     main ()
6413     {
6414 ayin 1.108 return IceConnectionNumber ();
6415 pcg 1.11 ;
6416     return 0;
6417     }
6418     _ACEOF
6419     rm -f conftest.$ac_objext conftest$ac_exeext
6420 ayin 1.108 if { (ac_try="$ac_link"
6421     case "(($ac_try" in
6422     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6423     *) ac_try_echo=$ac_try;;
6424     esac
6425     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6426     (eval "$ac_link") 2>conftest.er1
6427 pcg 1.11 ac_status=$?
6428     grep -v '^ *+' conftest.er1 >conftest.err
6429     rm -f conftest.er1
6430     cat conftest.err >&5
6431     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 ayin 1.108 (exit $ac_status); } && {
6433     test -z "$ac_cxx_werror_flag" ||
6434     test ! -s conftest.err
6435     } && test -s conftest$ac_exeext &&
6436     $as_test_x conftest$ac_exeext; then
6437 pcg 1.11 ac_cv_lib_ICE_IceConnectionNumber=yes
6438     else
6439     echo "$as_me: failed program was:" >&5
6440     sed 's/^/| /' conftest.$ac_ext >&5
6441    
6442 ayin 1.108 ac_cv_lib_ICE_IceConnectionNumber=no
6443 pcg 1.11 fi
6444 ayin 1.108
6445     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6446 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
6447     LIBS=$ac_check_lib_save_LIBS
6448     fi
6449 ayin 1.108 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6450     echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
6451 pcg 1.11 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6452 pcg 1.1 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6453     fi
6454    
6455 pcg 1.11 LDFLAGS=$ac_save_LDFLAGS
6456 pcg 1.1
6457     fi
6458    
6459    
6460    
6461 ayin 1.108 AFTERIMAGE_CFLAGS=
6462 root 1.103 AFTERIMAGE_LIBS=
6463 ayin 1.108 AFTERIMAGE_VERSION=
6464 root 1.103
6465     if test x$support_afterimage = xyes; then
6466     support_afterimage=no
6467    
6468 ayin 1.104 if test "x$afterimage_config" = "x" ; then
6469 root 1.103 # Extract the first word of "afterimage-config", so it can be a program name with args.
6470     set dummy afterimage-config; ac_word=$2
6471 ayin 1.108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6472     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6473 root 1.103 if test "${ac_cv_path_afterimage_config+set}" = set; then
6474     echo $ECHO_N "(cached) $ECHO_C" >&6
6475     else
6476     case $afterimage_config in
6477     [\\/]* | ?:[\\/]*)
6478     ac_cv_path_afterimage_config="$afterimage_config" # Let the user override the test with a path.
6479     ;;
6480     *)
6481     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482     for as_dir in $PATH
6483     do
6484     IFS=$as_save_IFS
6485     test -z "$as_dir" && as_dir=.
6486     for ac_exec_ext in '' $ac_executable_extensions; do
6487 ayin 1.108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6488 root 1.103 ac_cv_path_afterimage_config="$as_dir/$ac_word$ac_exec_ext"
6489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6490     break 2
6491     fi
6492     done
6493     done
6494 ayin 1.108 IFS=$as_save_IFS
6495 root 1.103
6496     test -z "$ac_cv_path_afterimage_config" && ac_cv_path_afterimage_config="no"
6497     ;;
6498     esac
6499     fi
6500     afterimage_config=$ac_cv_path_afterimage_config
6501     if test -n "$afterimage_config"; then
6502 ayin 1.108 { echo "$as_me:$LINENO: result: $afterimage_config" >&5
6503     echo "${ECHO_T}$afterimage_config" >&6; }
6504 root 1.103 else
6505 ayin 1.108 { echo "$as_me:$LINENO: result: no" >&5
6506     echo "${ECHO_T}no" >&6; }
6507 root 1.103 fi
6508    
6509 ayin 1.108
6510 root 1.103 fi
6511 ayin 1.108 { echo "$as_me:$LINENO: checking for libAfterImage version >= 1.15" >&5
6512     echo $ECHO_N "checking for libAfterImage version >= 1.15... $ECHO_C" >&6; }
6513     AFTERIMAGE_VERSION=`$afterimage_config --version`
6514     if test -n $AFTERIMAGE_VERSION ; then
6515     AFTERIMAGE_CFLAGS=`$afterimage_config --cflags`
6516 root 1.103 AFTERIMAGE_LIBS=`$afterimage_config --libs`
6517     if test "x$AFTERIMAGE_LIBS" != "x"; then
6518 ayin 1.108 libai_ver_major=`echo $AFTERIMAGE_VERSION | cut -f 1 -d .`
6519     libai_ver_minor=`echo $AFTERIMAGE_VERSION | cut -f 2 -d .`
6520     if test $libai_ver_major -gt 1 -o \( $libai_ver_major -eq 1 -a $libai_ver_minor -ge 15 \); then
6521     support_afterimage=yes
6522     fi
6523 root 1.103 fi
6524     fi
6525    
6526     if test "x$support_afterimage" = "xyes"; then
6527 ayin 1.108 { echo "$as_me:$LINENO: result: $AFTERIMAGE_LIBS" >&5
6528     echo "${ECHO_T}$AFTERIMAGE_LIBS" >&6; }
6529 root 1.103 else
6530 ayin 1.108 { echo "$as_me:$LINENO: result: no" >&5
6531     echo "${ECHO_T}no" >&6; }
6532 root 1.103 fi
6533     fi
6534    
6535     if test x$support_afterimage != xyes -a x$support_xpm = xyes ; then
6536 pcg 1.11
6537 pcg 1.1
6538    
6539     # Initialize some more variables set by options.
6540     # The variables have the same names as the options, with
6541     # dashes changed to underlines.
6542    
6543     # If we find XPM, set shell vars xpm_includes and xpm_libraries to the
6544     # paths, otherwise set no_xpm=yes.
6545     # Uses ac_ vars as temps to allow command line to override cache and checks.
6546 ayin 1.108 { echo "$as_me:$LINENO: checking for libXpm" >&5
6547     echo $ECHO_N "checking for libXpm... $ECHO_C" >&6; }
6548 pcg 1.11
6549 pcg 1.1
6550 ayin 1.108 # Check whether --with-xpm_includes was given.
6551 pcg 1.1 if test "${with_xpm_includes+set}" = set; then
6552 ayin 1.108 withval=$with_xpm_includes; xpm_includes="$withval"
6553 pcg 1.1 else
6554     xpm_includes=NO
6555 ayin 1.108 fi
6556 root 1.105
6557 ayin 1.108
6558     # Check whether --with-xpm_library was given.
6559 pcg 1.1 if test "${with_xpm_library+set}" = set; then
6560 ayin 1.108 withval=$with_xpm_library; xpm_libraries="$withval"
6561 pcg 1.1 else
6562     xpm_libraries=NO
6563 ayin 1.108 fi
6564    
6565 pcg 1.1
6566 pcg 1.11 # --without-xpm overrides everything else, but does not touch the cache.
6567 pcg 1.1
6568 ayin 1.108 # Check whether --with-xpm was given.
6569 pcg 1.1 if test "${with_xpm+set}" = set; then
6570 ayin 1.108 withval=$with_xpm;
6571     fi
6572 pcg 1.1
6573     if test "$with_xpm" = no; then
6574     have_xpm=disabled
6575     else
6576 pcg 1.11 if test "${ac_cv_have_xpm+set}" = set; then
6577     echo $ECHO_N "(cached) $ECHO_C" >&6
6578 pcg 1.1 else
6579 pcg 1.11
6580 pcg 1.1 vt_xpm_include_X11=no
6581     if test -n "$xpm_includes"; then
6582     vt_xpm_includes=$xpm_includes
6583     else
6584     vt_xpm_includes=NO
6585     fi
6586     if test -n "$xpm_libraries"; then
6587     vt_xpm_libraries=$xpm_libraries
6588     else
6589     vt_xpm_libraries=NO
6590     fi
6591    
6592     if test "$vt_xpm_includes" = NO; then
6593     # Guess where to find xpm.h
6594    
6595     ac_save_CPPFLAGS="$CPPFLAGS"
6596     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6597    
6598     # First, try using that file with no special directory specified.
6599 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
6600     /* confdefs.h. */
6601     _ACEOF
6602     cat confdefs.h >>conftest.$ac_ext
6603     cat >>conftest.$ac_ext <<_ACEOF
6604     /* end confdefs.h. */
6605 pcg 1.1 #include <X11/xpm.h>
6606 pcg 1.11 _ACEOF
6607 ayin 1.108 if { (ac_try="$ac_cpp conftest.$ac_ext"
6608     case "(($ac_try" in
6609     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6610     *) ac_try_echo=$ac_try;;
6611     esac
6612     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6613     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6614 pcg 1.11 ac_status=$?
6615     grep -v '^ *+' conftest.er1 >conftest.err
6616     rm -f conftest.er1
6617     cat conftest.err >&5
6618     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 ayin 1.108 (exit $ac_status); } >/dev/null && {
6620     test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6621     test ! -s conftest.err
6622     }; then
6623 pcg 1.1 # We can compile using X headers with no special include directory.
6624     vt_xpm_includes=
6625     vt_xpm_include_X11=yes
6626     else
6627 pcg 1.11 echo "$as_me: failed program was:" >&5
6628     sed 's/^/| /' conftest.$ac_ext >&5
6629    
6630 pcg 1.1 CPPFLAGS="$ac_save_CPPFLAGS"
6631     # Look for the header file in a standard set of common directories.
6632     for ac_dir in \
6633     /usr/X11/include \
6634     /usr/X11R6/include \
6635     /usr/X11R5/include \
6636     /usr/X11R4/include \
6637     \
6638     /usr/include/X11 \
6639     /usr/include/X11R6 \
6640     /usr/include/X11R5 \
6641     /usr/include/X11R4 \
6642     \
6643     /usr/local/X11/include \
6644     /usr/local/X11R6/include \
6645     /usr/local/X11R5/include \
6646     /usr/local/X11R4/include \
6647     \
6648     /usr/local/include/X11 \
6649     /usr/local/include/X11R6 \
6650     /usr/local/include/X11R5 \
6651     /usr/local/include/X11R4 \
6652     \
6653     /usr/X386/include \
6654     /usr/x386/include \
6655     /usr/XFree86/include/X11 \
6656     \
6657     /usr/include \
6658     /usr/local/include \
6659     /usr/unsupported/include \
6660     /usr/athena/include \
6661     /usr/local/x11r5/include \
6662     /usr/lpp/Xamples/include \
6663     \
6664     /usr/openwin/include \
6665     /usr/openwin/share/include \
6666     ; \
6667     do
6668     if test -r "$ac_dir/X11/xpm.h"; then
6669     vt_xpm_includes="$ac_dir"
6670     vt_xpm_include_X11=yes
6671     break
6672     else
6673     if test -r "$ac_dir/xpm.h"; then
6674     vt_xpm_includes=$ac_dir
6675     break
6676     fi
6677     fi
6678     done
6679     fi
6680 ayin 1.108
6681 pcg 1.11 rm -f conftest.err conftest.$ac_ext
6682 pcg 1.1 fi
6683    
6684     if test "$vt_xpm_libraries" = NO; then
6685     # Check for the libraries.
6686    
6687     # See if we find them without any special options.
6688     # Don't add to $LIBS permanently.
6689     ac_save_LIBS="$LIBS"
6690     LIBS="$LIBS $X_LIBS -lXpm -lX11"
6691 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
6692     /* confdefs.h. */
6693     _ACEOF
6694     cat confdefs.h >>conftest.$ac_ext
6695     cat >>conftest.$ac_ext <<_ACEOF
6696     /* end confdefs.h. */
6697 pcg 1.1
6698 pcg 1.11 int
6699     main ()
6700     {
6701 pcg 1.1 XpmReadFileToPixmap()
6702 pcg 1.11 ;
6703     return 0;
6704     }
6705     _ACEOF
6706     rm -f conftest.$ac_objext conftest$ac_exeext
6707 ayin 1.108 if { (ac_try="$ac_link"
6708     case "(($ac_try" in
6709     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6710     *) ac_try_echo=$ac_try;;
6711     esac
6712     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6713     (eval "$ac_link") 2>conftest.er1
6714 pcg 1.11 ac_status=$?
6715     grep -v '^ *+' conftest.er1 >conftest.err
6716     rm -f conftest.er1
6717     cat conftest.err >&5
6718     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719 ayin 1.108 (exit $ac_status); } && {
6720     test -z "$ac_cxx_werror_flag" ||
6721     test ! -s conftest.err
6722     } && test -s conftest$ac_exeext &&
6723     $as_test_x conftest$ac_exeext; then
6724 pcg 1.1 LIBS="$ac_save_LIBS"
6725     # We can link libXpm with no special library path.
6726     vt_xpm_libraries=
6727     else
6728 pcg 1.11 echo "$as_me: failed program was:" >&5
6729     sed 's/^/| /' conftest.$ac_ext >&5
6730    
6731 ayin 1.108 LIBS="$ac_save_LIBS"
6732 pcg 1.1 # First see if replacing the include by lib works.
6733     for ac_dir in \
6734     `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \
6735     /usr/X11/lib \
6736     /usr/X11R6/lib \
6737     /usr/X11R5/lib \
6738     /usr/X11R4/lib \
6739     \
6740     /usr/lib/X11 \
6741     /usr/lib/X11R6 \
6742     /usr/lib/X11R5 \
6743     /usr/lib/X11R4 \
6744     \
6745     /usr/local/X11/lib \
6746     /usr/local/X11R6/lib \
6747     /usr/local/X11R5/lib \
6748     /usr/local/X11R4/lib \
6749     \
6750     /usr/local/lib/X11 \
6751     /usr/local/lib/X11R6 \
6752     /usr/local/lib/X11R5 \
6753     /usr/local/lib/X11R4 \
6754     \
6755     /usr/X386/lib \
6756     /usr/x386/lib \
6757     /usr/XFree86/lib/X11 \
6758     \
6759     /usr/lib \
6760     /usr/local/lib \
6761     /usr/unsupported/lib \
6762     /usr/athena/lib \
6763     /usr/local/x11r5/lib \
6764     /usr/lpp/Xamples/lib \
6765     \
6766     /usr/openwin/lib \
6767     /usr/openwin/share/lib \
6768     ; \
6769     do
6770     for ac_extension in a so sl; do
6771     if test -r $ac_dir/libXpm.$ac_extension; then
6772     vt_xpm_libraries=$ac_dir
6773     break 2
6774     fi
6775     done
6776     done
6777     fi
6778 ayin 1.108
6779     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6780 pcg 1.11 conftest$ac_exeext conftest.$ac_ext
6781 pcg 1.1 fi
6782    
6783    
6784     if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then
6785     ac_cv_have_xpm="have_xpm=no"
6786     else
6787     ac_cv_have_xpm="have_xpm=yes \
6788     vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
6789     vt_xpm_include_X11=$vt_xpm_include_X11"
6790     fi
6791     fi
6792     eval "$ac_cv_have_xpm"
6793     fi
6794    
6795     if test "$have_xpm" != yes; then
6796 ayin 1.108 { echo "$as_me:$LINENO: result: $have_xpm" >&5
6797     echo "${ECHO_T}$have_xpm" >&6; }
6798 pcg 1.1 no_xpm=yes
6799     else
6800     if test "$xpm_includes" != NO; then
6801     if test "$xpm_includes" = "$vt_xpm_includes"; then
6802     if test -r "$xpm_includes/X11/xpm.h"; then
6803     vt_xpm_include_X11=yes
6804     fi
6805     else
6806     vt_xpm_include_X11=no
6807     if test -z "$xpm_includes"; then
6808 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
6809     /* confdefs.h. */
6810     _ACEOF
6811     cat confdefs.h >>conftest.$ac_ext
6812     cat >>conftest.$ac_ext <<_ACEOF
6813     /* end confdefs.h. */
6814 pcg 1.1 #include <X11/xpm.h>
6815 pcg 1.11 _ACEOF
6816 ayin 1.108 if { (ac_try="$ac_cpp conftest.$ac_ext"
6817     case "(($ac_try" in
6818     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6819     *) ac_try_echo=$ac_try;;
6820     esac
6821     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6822     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6823 pcg 1.11 ac_status=$?
6824     grep -v '^ *+' conftest.er1 >conftest.err
6825     rm -f conftest.er1
6826     cat conftest.err >&5
6827     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828 ayin 1.108 (exit $ac_status); } >/dev/null && {
6829     test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6830     test ! -s conftest.err
6831     }; then
6832 root 1.105 vt_xpm_include_X11=yes
6833     else
6834 pcg 1.11 echo "$as_me: failed program was:" >&5
6835     sed 's/^/| /' conftest.$ac_ext >&5
6836    
6837    
6838 pcg 1.1 fi
6839 ayin 1.108
6840 pcg 1.11 rm -f conftest.err conftest.$ac_ext
6841 pcg 1.1 else
6842     if test -r "$xpm_includes/X11/xpm.h"; then
6843     vt_xpm_include_X11=yes
6844     fi
6845     fi
6846     fi
6847     vt_xpm_includes=$xpm_includes
6848     fi
6849     if test "x$xpm_libraries" != xNO; then
6850     vt_xpm_libraries=$xpm_libraries
6851     fi
6852     # Update the cache value to reflect the command line values.
6853     ac_cv_have_xpm="have_xpm=yes \
6854     vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
6855     vt_xpm_include_X11=$vt_xpm_include_X11"
6856     eval "$ac_cv_have_xpm"
6857 ayin 1.108 { echo "$as_me:$LINENO: result: -I$vt_xpm_includes, -L$vt_xpm_libraries" >&5
6858     echo "${ECHO_T}-I$vt_xpm_includes, -L$vt_xpm_libraries" >&6; }
6859 pcg 1.1 if test -n "$vt_xpm_includes"; then
6860     XPM_CPPFLAGS="-DHAVE_LIBXPM"
6861     fi
6862     if test -n "$vt_xpm_includes"; then
6863     XPM_CFLAGS="-I$vt_xpm_includes"
6864     fi
6865     XPM_LIBS="-lXpm"
6866     if test -n "$vt_xpm_libraries"; then
6867     XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS"
6868     fi
6869     if test "x$vt_xpm_include_X11" = xyes; then
6870 pcg 1.11
6871     cat >>confdefs.h <<\_ACEOF
6872 pcg 1.1 #define XPM_INC_X11 1
6873 pcg 1.11 _ACEOF
6874 pcg 1.1
6875     fi
6876     fi
6877    
6878    
6879    
6880    
6881    
6882     if test x$no_xpm = xyes; then
6883     support_xpm=needsmanualspecification
6884     fi
6885     fi
6886    
6887 ayin 1.108 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6888     echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6889 pcg 1.11 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6890     echo $ECHO_N "(cached) $ECHO_C" >&6
6891     else
6892     cat >conftest.$ac_ext <<_ACEOF
6893     /* confdefs.h. */
6894     _ACEOF
6895     cat confdefs.h >>conftest.$ac_ext
6896     cat >>conftest.$ac_ext <<_ACEOF
6897     /* end confdefs.h. */
6898 pcg 1.1 #include <sys/types.h>
6899     #include <sys/wait.h>
6900     #ifndef WEXITSTATUS
6901 ayin 1.108 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6902 pcg 1.1 #endif
6903     #ifndef WIFEXITED
6904 pcg 1.11 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6905 pcg 1.1 #endif
6906 pcg 1.11
6907     int
6908     main ()
6909     {
6910     int s;
6911     wait (&s);
6912     s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6913     ;
6914     return 0;
6915     }
6916     _ACEOF
6917     rm -f conftest.$ac_objext
6918 ayin 1.108 if { (ac_try="$ac_compile"
6919     case "(($ac_try" in
6920     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6921     *) ac_try_echo=$ac_try;;
6922     esac
6923     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6924     (eval "$ac_compile") 2>conftest.er1
6925 pcg 1.11 ac_status=$?
6926     grep -v '^ *+' conftest.er1 >conftest.err
6927     rm -f conftest.er1
6928     cat conftest.err >&5
6929     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930 ayin 1.108 (exit $ac_status); } && {
6931     test -z "$ac_cxx_werror_flag" ||
6932     test ! -s conftest.err
6933     } && test -s conftest.$ac_objext; then
6934     ac_cv_header_sys_wait_h=yes
6935     else
6936 pcg 1.11 echo "$as_me: failed program was:" >&5
6937     sed 's/^/| /' conftest.$ac_ext >&5
6938    
6939 ayin 1.108 ac_cv_header_sys_wait_h=no
6940 pcg 1.1 fi
6941 ayin 1.108
6942     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6943 pcg 1.1 fi
6944 ayin 1.108 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6945     echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6946 pcg 1.11 if test $ac_cv_header_sys_wait_h = yes; then
6947 pcg 1.1
6948 pcg 1.11 cat >>confdefs.h <<\_ACEOF
6949 pcg 1.1 #define HAVE_SYS_WAIT_H 1
6950 pcg 1.11 _ACEOF
6951 pcg 1.1
6952     fi
6953    
6954 ayin 1.108 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6955     echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6956 root 1.51 if test "${ac_cv_header_stdc+set}" = set; then
6957     echo $ECHO_N "(cached) $ECHO_C" >&6
6958     else
6959     cat >conftest.$ac_ext <<_ACEOF
6960     /* confdefs.h. */
6961     _ACEOF
6962     cat confdefs.h >>conftest.$ac_ext
6963     cat >>conftest.$ac_ext <<_ACEOF
6964     /* end confdefs.h. */
6965     #include <stdlib.h>
6966     #include <stdarg.h>
6967     #include <string.h>
6968     #include <float.h>
6969    
6970     int
6971     main ()
6972     {
6973    
6974     ;
6975     return 0;
6976     }
6977     _ACEOF
6978     rm -f conftest.$ac_objext
6979 ayin 1.108 if { (ac_try="$ac_compile"
6980     case "(($ac_try" in
6981     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6982     *) ac_try_echo=$ac_try;;
6983     esac
6984     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6985     (eval "$ac_compile") 2>conftest.er1
6986 root 1.51 ac_status=$?
6987     grep -v '^ *+' conftest.er1 >conftest.err
6988     rm -f conftest.er1
6989     cat conftest.err >&5
6990     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 ayin 1.108 (exit $ac_status); } && {
6992     test -z "$ac_cxx_werror_flag" ||
6993     test ! -s conftest.err
6994     } && test -s conftest.$ac_objext; then
6995 root 1.51 ac_cv_header_stdc=yes
6996     else
6997     echo "$as_me: failed program was:" >&5
6998     sed 's/^/| /' conftest.$ac_ext >&5
6999    
7000 ayin 1.108 ac_cv_header_stdc=no
7001 root 1.51 fi
7002 ayin 1.108
7003     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7004 root 1.51
7005     if test $ac_cv_header_stdc = yes; then
7006     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7007     cat >conftest.$ac_ext <<_ACEOF
7008     /* confdefs.h. */
7009     _ACEOF
7010     cat confdefs.h >>conftest.$ac_ext
7011     cat >>conftest.$ac_ext <<_ACEOF
7012     /* end confdefs.h. */
7013     #include <string.h>
7014    
7015     _ACEOF
7016     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7017     $EGREP "memchr" >/dev/null 2>&1; then
7018     :
7019     else
7020     ac_cv_header_stdc=no
7021     fi
7022     rm -f conftest*
7023    
7024     fi
7025    
7026     if test $ac_cv_header_stdc = yes; then
7027     # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7028     cat >conftest.$ac_ext <<_ACEOF
7029     /* confdefs.h. */
7030     _ACEOF
7031     cat confdefs.h >>conftest.$ac_ext
7032     cat >>conftest.$ac_ext <<_ACEOF
7033     /* end confdefs.h. */
7034     #include <stdlib.h>
7035    
7036     _ACEOF
7037     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7038     $EGREP "free" >/dev/null 2>&1; then
7039     :
7040     else
7041     ac_cv_header_stdc=no
7042     fi
7043     rm -f conftest*
7044    
7045     fi
7046    
7047     if test $ac_cv_header_stdc = yes; then
7048     # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7049     if test "$cross_compiling" = yes; then
7050     :
7051     else
7052     cat >conftest.$ac_ext <<_ACEOF
7053     /* confdefs.h. */
7054     _ACEOF
7055     cat confdefs.h >>conftest.$ac_ext
7056     cat >>conftest.$ac_ext <<_ACEOF
7057     /* end confdefs.h. */
7058     #include <ctype.h>
7059 ayin 1.108 #include <stdlib.h>
7060 root 1.51 #if ((' ' & 0x0FF) == 0x020)
7061     # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7062     # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7063     #else
7064     # define ISLOWER(c) \
7065     (('a' <= (c) && (c) <= 'i') \
7066     || ('j' <= (c) && (c) <= 'r') \
7067     || ('s' <= (c) && (c) <= 'z'))
7068     # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7069     #endif
7070    
7071     #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7072     int
7073     main ()
7074     {
7075     int i;
7076     for (i = 0; i < 256; i++)
7077     if (XOR (islower (i), ISLOWER (i))
7078     || toupper (i) != TOUPPER (i))
7079 ayin 1.108 return 2;
7080     return 0;
7081 root 1.51 }
7082     _ACEOF
7083     rm -f conftest$ac_exeext
7084 ayin 1.108 if { (ac_try="$ac_link"
7085     case "(($ac_try" in
7086     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7087     *) ac_try_echo=$ac_try;;
7088     esac
7089     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7090     (eval "$ac_link") 2>&5
7091 root 1.51 ac_status=$?
7092     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7094 ayin 1.108 { (case "(($ac_try" in
7095     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7096     *) ac_try_echo=$ac_try;;
7097     esac
7098     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7099     (eval "$ac_try") 2>&5
7100 root 1.51 ac_status=$?
7101     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7102     (exit $ac_status); }; }; then
7103     :
7104     else
7105     echo "$as_me: program exited with status $ac_status" >&5
7106     echo "$as_me: failed program was:" >&5
7107     sed 's/^/| /' conftest.$ac_ext >&5
7108    
7109     ( exit $ac_status )
7110     ac_cv_header_stdc=no
7111     fi
7112 ayin 1.108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7113 root 1.51 fi
7114 ayin 1.108
7115    
7116 root 1.51 fi
7117     fi
7118 ayin 1.108 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7119     echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7120 root 1.51 if test $ac_cv_header_stdc = yes; then
7121    
7122     cat >>confdefs.h <<\_ACEOF
7123     #define STDC_HEADERS 1
7124     _ACEOF
7125    
7126     fi
7127    
7128     # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7129    
7130    
7131    
7132    
7133    
7134    
7135    
7136    
7137    
7138     for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7139     inttypes.h stdint.h unistd.h
7140     do
7141     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7142 ayin 1.108 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7143     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7144     if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7145 root 1.51 echo $ECHO_N "(cached) $ECHO_C" >&6
7146     else
7147     cat >conftest.$ac_ext <<_ACEOF
7148     /* confdefs.h. */
7149     _ACEOF
7150     cat confdefs.h >>conftest.$ac_ext
7151     cat >>conftest.$ac_ext <<_ACEOF
7152     /* end confdefs.h. */
7153     $ac_includes_default
7154    
7155     #include <$ac_header>
7156     _ACEOF
7157     rm -f conftest.$ac_objext
7158 ayin 1.108 if { (ac_try="$ac_compile"
7159     case "(($ac_try" in
7160     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7161     *) ac_try_echo=$ac_try;;
7162     esac
7163     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7164     (eval "$ac_compile") 2>conftest.er1
7165 root 1.51 ac_status=$?
7166     grep -v '^ *+' conftest.er1 >conftest.err
7167     rm -f conftest.er1
7168     cat conftest.err >&5
7169     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170 ayin 1.108 (exit $ac_status); } && {
7171     test -z "$ac_cxx_werror_flag" ||
7172     test ! -s conftest.err
7173     } && test -s conftest.$ac_objext; then
7174 root 1.51 eval "$as_ac_Header=yes"
7175     else
7176     echo "$as_me: failed program was:" >&5
7177     sed 's/^/| /' conftest.$ac_ext >&5
7178    
7179 ayin 1.108 eval "$as_ac_Header=no"
7180 root 1.51 fi
7181 ayin 1.108
7182     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7183 root 1.51 fi
7184 ayin 1.108 ac_res=`eval echo '${'$as_ac_Header'}'`
7185     { echo "$as_me:$LINENO: result: $ac_res" >&5
7186     echo "${ECHO_T}$ac_res" >&6; }
7187 root 1.51 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7188     cat >>confdefs.h <<_ACEOF
7189     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7190     _ACEOF
7191    
7192     fi
7193    
7194     done
7195    
7196    
7197 pcg 1.11
7198    
7199    
7200    
7201    
7202    
7203    
7204    
7205    
7206    
7207    
7208    
7209    
7210    
7211    
7212    
7213    
7214     for ac_header in \
7215 pcg 1.1 assert.h \
7216     fcntl.h \
7217     stdarg.h \
7218     stdlib.h \
7219     string.h \
7220     termios.h \
7221     unistd.h \
7222     sys/byteorder.h \
7223     sys/ioctl.h \
7224     sys/select.h \
7225     sys/sockio.h \
7226     sys/strredir.h \
7227     sys/time.h \
7228 root 1.83 stdint.h \
7229     wchar.h \
7230     cwchar \
7231     clocale \
7232 pcg 1.1
7233     do
7234 pcg 1.11 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7235 ayin 1.108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7236     { echo "$as_me:$LINENO: checking for $ac_header" >&5
7237     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7238     if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7239 pcg 1.11 echo $ECHO_N "(cached) $ECHO_C" >&6
7240     fi
7241 ayin 1.108 ac_res=`eval echo '${'$as_ac_Header'}'`
7242     { echo "$as_me:$LINENO: result: $ac_res" >&5
7243     echo "${ECHO_T}$ac_res" >&6; }
7244 pcg 1.11 else
7245     # Is the header compilable?
7246 ayin 1.108 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7247     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7248 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
7249     /* confdefs.h. */
7250     _ACEOF
7251     cat confdefs.h >>conftest.$ac_ext
7252     cat >>conftest.$ac_ext <<_ACEOF
7253     /* end confdefs.h. */
7254     $ac_includes_default
7255     #include <$ac_header>
7256     _ACEOF
7257     rm -f conftest.$ac_objext
7258 ayin 1.108 if { (ac_try="$ac_compile"
7259     case "(($ac_try" in
7260     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7261     *) ac_try_echo=$ac_try;;
7262     esac
7263     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7264     (eval "$ac_compile") 2>conftest.er1
7265 pcg 1.11 ac_status=$?
7266     grep -v '^ *+' conftest.er1 >conftest.err
7267     rm -f conftest.er1
7268     cat conftest.err >&5
7269     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270 ayin 1.108 (exit $ac_status); } && {
7271     test -z "$ac_cxx_werror_flag" ||
7272     test ! -s conftest.err
7273     } && test -s conftest.$ac_objext; then
7274 pcg 1.11 ac_header_compiler=yes
7275     else
7276     echo "$as_me: failed program was:" >&5
7277     sed 's/^/| /' conftest.$ac_ext >&5
7278    
7279 ayin 1.108 ac_header_compiler=no
7280 pcg 1.11 fi
7281 ayin 1.108
7282     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7283     { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7284     echo "${ECHO_T}$ac_header_compiler" >&6; }
7285 pcg 1.11
7286     # Is the header present?
7287 ayin 1.108 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7288     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7289 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
7290     /* confdefs.h. */
7291     _ACEOF
7292     cat confdefs.h >>conftest.$ac_ext
7293     cat >>conftest.$ac_ext <<_ACEOF
7294     /* end confdefs.h. */
7295     #include <$ac_header>
7296     _ACEOF
7297 ayin 1.108 if { (ac_try="$ac_cpp conftest.$ac_ext"
7298     case "(($ac_try" in
7299     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7300     *) ac_try_echo=$ac_try;;
7301     esac
7302     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7303     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7304 pcg 1.11 ac_status=$?
7305     grep -v '^ *+' conftest.er1 >conftest.err
7306     rm -f conftest.er1
7307     cat conftest.err >&5
7308     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309 ayin 1.108 (exit $ac_status); } >/dev/null && {
7310     test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7311     test ! -s conftest.err
7312     }; then
7313 pcg 1.11 ac_header_preproc=yes
7314 pcg 1.1 else
7315 pcg 1.11 echo "$as_me: failed program was:" >&5
7316     sed 's/^/| /' conftest.$ac_ext >&5
7317    
7318     ac_header_preproc=no
7319     fi
7320 ayin 1.108
7321 pcg 1.11 rm -f conftest.err conftest.$ac_ext
7322 ayin 1.108 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7323     echo "${ECHO_T}$ac_header_preproc" >&6; }
7324 pcg 1.11
7325     # So? What about this header?
7326 pcg 1.13 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7327 pcg 1.11 yes:no: )
7328     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7329     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7330     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7331     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7332     ac_header_preproc=yes
7333     ;;
7334     no:yes:* )
7335     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7336     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7337     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7338     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7339     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7340     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7341     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7342     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7343     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7344     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7345     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7346     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7347 ayin 1.108
7348 pcg 1.11 ;;
7349     esac
7350 ayin 1.108 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7351     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7352     if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7353 pcg 1.11 echo $ECHO_N "(cached) $ECHO_C" >&6
7354 pcg 1.1 else
7355 pcg 1.11 eval "$as_ac_Header=\$ac_header_preproc"
7356 pcg 1.1 fi
7357 ayin 1.108 ac_res=`eval echo '${'$as_ac_Header'}'`
7358     { echo "$as_me:$LINENO: result: $ac_res" >&5
7359     echo "${ECHO_T}$ac_res" >&6; }
7360 pcg 1.11
7361 pcg 1.1 fi
7362 pcg 1.11 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7363     cat >>confdefs.h <<_ACEOF
7364     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7365     _ACEOF
7366    
7367 pcg 1.1 fi
7368 pcg 1.11
7369 pcg 1.1 done
7370    
7371    
7372 ayin 1.108 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7373     echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
7374 pcg 1.11 if test "${ac_cv_header_time+set}" = set; then
7375     echo $ECHO_N "(cached) $ECHO_C" >&6
7376     else
7377     cat >conftest.$ac_ext <<_ACEOF
7378     /* confdefs.h. */
7379     _ACEOF
7380     cat confdefs.h >>conftest.$ac_ext
7381     cat >>conftest.$ac_ext <<_ACEOF
7382     /* end confdefs.h. */
7383 pcg 1.1 #include <sys/types.h>
7384     #include <sys/time.h>
7385     #include <time.h>
7386 pcg 1.11
7387     int
7388     main ()
7389     {
7390     if ((struct tm *) 0)
7391     return 0;
7392     ;
7393     return 0;
7394     }
7395     _ACEOF
7396     rm -f conftest.$ac_objext
7397 ayin 1.108 if { (ac_try="$ac_compile"
7398     case "(($ac_try" in
7399     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7400     *) ac_try_echo=$ac_try;;
7401     esac
7402     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7403     (eval "$ac_compile") 2>conftest.er1
7404 pcg 1.11 ac_status=$?
7405     grep -v '^ *+' conftest.er1 >conftest.err
7406     rm -f conftest.er1
7407     cat conftest.err >&5
7408     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409 ayin 1.108 (exit $ac_status); } && {
7410     test -z "$ac_cxx_werror_flag" ||
7411     test ! -s conftest.err
7412     } && test -s conftest.$ac_objext; then
7413 pcg 1.1 ac_cv_header_time=yes
7414     else
7415 pcg 1.11 echo "$as_me: failed program was:" >&5
7416     sed 's/^/| /' conftest.$ac_ext >&5
7417    
7418 ayin 1.108 ac_cv_header_time=no
7419 pcg 1.1 fi
7420 ayin 1.108
7421     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7422 pcg 1.1 fi
7423 ayin 1.108 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7424     echo "${ECHO_T}$ac_cv_header_time" >&6; }
7425 pcg 1.11 if test $ac_cv_header_time = yes; then
7426 pcg 1.1
7427 pcg 1.11 cat >>confdefs.h <<\_ACEOF
7428 pcg 1.1 #define TIME_WITH_SYS_TIME 1
7429 pcg 1.11 _ACEOF
7430 pcg 1.1
7431     fi
7432    
7433    
7434 ayin 1.108 { echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5
7435     echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6; }
7436 pcg 1.11 if test "${rxvt_cv_header_sysioctl+set}" = set; then
7437     echo $ECHO_N "(cached) $ECHO_C" >&6
7438 pcg 1.1 else
7439 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
7440     /* confdefs.h. */
7441     _ACEOF
7442     cat confdefs.h >>conftest.$ac_ext
7443     cat >>conftest.$ac_ext <<_ACEOF
7444     /* end confdefs.h. */
7445 pcg 1.1 #include <stdio.h>
7446     #include <sys/ioctl.h>
7447     #ifdef HAVE_TERMIOS_H
7448     #include <termios.h>
7449     #endif
7450 pcg 1.11 int
7451     main ()
7452     {
7453 pcg 1.1 int a = ECHO;
7454 pcg 1.11 ;
7455     return 0;
7456     }
7457     _ACEOF
7458     rm -f conftest.$ac_objext
7459 ayin 1.108 if { (ac_try="$ac_compile"
7460     case "(($ac_try" in
7461     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7462     *) ac_try_echo=$ac_try;;
7463     esac
7464     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7465     (eval "$ac_compile") 2>conftest.er1
7466 pcg 1.11 ac_status=$?
7467     grep -v '^ *+' conftest.er1 >conftest.err
7468     rm -f conftest.er1
7469     cat conftest.err >&5
7470     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471 ayin 1.108 (exit $ac_status); } && {
7472     test -z "$ac_cxx_werror_flag" ||
7473     test ! -s conftest.err
7474     } && test -s conftest.$ac_objext; then
7475 ayin 1.106 rxvt_cv_header_sysioctl=yes
7476 pcg 1.1 else
7477 ayin 1.106 echo "$as_me: failed program was:" >&5
7478 pcg 1.11 sed 's/^/| /' conftest.$ac_ext >&5
7479    
7480 ayin 1.108 rxvt_cv_header_sysioctl=no
7481 pcg 1.1 fi
7482 ayin 1.108
7483     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7484 pcg 1.1 fi
7485 ayin 1.108 { echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5
7486     echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6; }
7487 pcg 1.1
7488 ayin 1.108 { echo "$as_me:$LINENO: checking for XPointer" >&5
7489     echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; }
7490 pcg 1.11 if test "${rxvt_cv_xpointer+set}" = set; then
7491     echo $ECHO_N "(cached) $ECHO_C" >&6
7492     else
7493     cat >conftest.$ac_ext <<_ACEOF
7494     /* confdefs.h. */
7495     _ACEOF
7496     cat confdefs.h >>conftest.$ac_ext
7497     cat >>conftest.$ac_ext <<_ACEOF
7498     /* end confdefs.h. */
7499 pcg 1.1 #include <X11/Xlib.h>
7500 pcg 1.11 int
7501     main ()
7502     {
7503 pcg 1.1 XPointer dummy;
7504 pcg 1.11 ;
7505     return 0;
7506     }
7507     _ACEOF
7508     rm -f conftest.$ac_objext
7509 ayin 1.108 if { (ac_try="$ac_compile"
7510     case "(($ac_try" in
7511     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7512     *) ac_try_echo=$ac_try;;
7513     esac
7514     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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.108 (exit $ac_status); } && {
7522     test -z "$ac_cxx_werror_flag" ||
7523     test ! -s conftest.err
7524     } && test -s conftest.$ac_objext; then
7525 pcg 1.1 rxvt_cv_xpointer=yes
7526     else
7527 pcg 1.11 echo "$as_me: failed program was:" >&5
7528     sed 's/^/| /' conftest.$ac_ext >&5
7529    
7530 ayin 1.108 rxvt_cv_xpointer=no
7531 pcg 1.1 fi
7532 ayin 1.108
7533     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7534 pcg 1.1 fi
7535 ayin 1.108 { echo "$as_me:$LINENO: result: $rxvt_cv_xpointer" >&5
7536     echo "${ECHO_T}$rxvt_cv_xpointer" >&6; }
7537 pcg 1.11 if test x$rxvt_cv_xpointer = xyes; then
7538 pcg 1.1
7539 pcg 1.11 cat >>confdefs.h <<\_ACEOF
7540 pcg 1.1 #define HAVE_XPOINTER 1
7541 pcg 1.11 _ACEOF
7542 pcg 1.1
7543     fi
7544    
7545 ayin 1.108 { echo "$as_me:$LINENO: checking for XLIB_ILLEGAL_ACCESS" >&5
7546     echo $ECHO_N "checking for XLIB_ILLEGAL_ACCESS... $ECHO_C" >&6; }
7547 root 1.99 if test "${rxvt_xlib_illegal_access+set}" = set; then
7548     echo $ECHO_N "(cached) $ECHO_C" >&6
7549     else
7550     cat >conftest.$ac_ext <<_ACEOF
7551     /* confdefs.h. */
7552     _ACEOF
7553     cat confdefs.h >>conftest.$ac_ext
7554     cat >>conftest.$ac_ext <<_ACEOF
7555     /* end confdefs.h. */
7556    
7557     #define XLIB_ILLEGAL_ACCESS
7558     #include <X11/Xlib.h>
7559    
7560     int
7561     main ()
7562     {
7563    
7564     Display *dpy;
7565     dpy->xdefaults = (char *)0;
7566    
7567     ;
7568     return 0;
7569     }
7570     _ACEOF
7571     rm -f conftest.$ac_objext
7572 ayin 1.108 if { (ac_try="$ac_compile"
7573     case "(($ac_try" in
7574     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7575     *) ac_try_echo=$ac_try;;
7576     esac
7577     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7578     (eval "$ac_compile") 2>conftest.er1
7579 root 1.99 ac_status=$?
7580     grep -v '^ *+' conftest.er1 >conftest.err
7581     rm -f conftest.er1
7582     cat conftest.err >&5
7583     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584 ayin 1.108 (exit $ac_status); } && {
7585     test -z "$ac_cxx_werror_flag" ||
7586     test ! -s conftest.err
7587     } && test -s conftest.$ac_objext; then
7588 root 1.99 rxvt_xlib_illegal_access=yes
7589     else
7590     echo "$as_me: failed program was:" >&5
7591     sed 's/^/| /' conftest.$ac_ext >&5
7592    
7593 ayin 1.108 rxvt_xlib_illegal_access=no
7594 root 1.99
7595     fi
7596 ayin 1.108
7597     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7598 root 1.99 fi
7599 ayin 1.108 { echo "$as_me:$LINENO: result: $rxvt_xlib_illegal_access" >&5
7600     echo "${ECHO_T}$rxvt_xlib_illegal_access" >&6; }
7601 root 1.99 if test x$rxvt_xlib_illegal_access = xyes; then
7602    
7603     cat >>confdefs.h <<\_ACEOF
7604     #define XLIB_ILLEGAL_ACCESS 1
7605     _ACEOF
7606    
7607     fi
7608 pcg 1.1
7609 ayin 1.108 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7610     echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7611 pcg 1.11 if test "${ac_cv_c_const+set}" = set; then
7612     echo $ECHO_N "(cached) $ECHO_C" >&6
7613     else
7614     cat >conftest.$ac_ext <<_ACEOF
7615     /* confdefs.h. */
7616     _ACEOF
7617     cat confdefs.h >>conftest.$ac_ext
7618     cat >>conftest.$ac_ext <<_ACEOF
7619     /* end confdefs.h. */
7620 pcg 1.1
7621 pcg 1.11 int
7622     main ()
7623     {
7624     /* FIXME: Include the comments suggested by Paul. */
7625     #ifndef __cplusplus
7626     /* Ultrix mips cc rejects this. */
7627     typedef int charset[2];
7628 ayin 1.108 const charset cs;
7629 pcg 1.11 /* SunOS 4.1.1 cc rejects this. */
7630 ayin 1.108 char const *const *pcpcc;
7631     char **ppc;
7632 pcg 1.11 /* NEC SVR4.0.2 mips cc rejects this. */
7633     struct point {int x, y;};
7634     static struct point const zero = {0,0};
7635     /* AIX XL C 1.02.0.0 rejects this.
7636     It does not let you subtract one const X* pointer from another in
7637     an arm of an if-expression whose if-part is not a constant
7638     expression */
7639     const char *g = "string";
7640 ayin 1.108 pcpcc = &g + (g ? g-g : 0);
7641 pcg 1.11 /* HPUX 7.0 cc rejects these. */
7642 ayin 1.108 ++pcpcc;
7643     ppc = (char**) pcpcc;
7644     pcpcc = (char const *const *) ppc;
7645 pcg 1.11 { /* SCO 3.2v4 cc rejects this. */
7646     char *t;
7647     char const *s = 0 ? (char *) 0 : (char const *) 0;
7648    
7649     *t++ = 0;
7650 ayin 1.108 if (s) return 0;
7651 pcg 1.11 }
7652     { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7653     int x[] = {25, 17};
7654     const int *foo = &x[0];
7655     ++foo;
7656     }
7657     { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7658     typedef const int *iptr;
7659     iptr p = 0;
7660     ++p;
7661     }
7662     { /* AIX XL C 1.02.0.0 rejects this saying
7663     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7664     struct s { int j; const int *ap[3]; };
7665     struct s *b; b->j = 5;
7666     }
7667     { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7668     const int foo = 10;
7669 ayin 1.108 if (!foo) return 0;
7670 pcg 1.11 }
7671 ayin 1.108 return !cs[0] && !zero.x;
7672 pcg 1.11 #endif
7673 pcg 1.1
7674 pcg 1.11 ;
7675     return 0;
7676 pcg 1.1 }
7677 pcg 1.11 _ACEOF
7678     rm -f conftest.$ac_objext
7679 ayin 1.108 if { (ac_try="$ac_compile"
7680     case "(($ac_try" in
7681     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7682     *) ac_try_echo=$ac_try;;
7683     esac
7684     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7685     (eval "$ac_compile") 2>conftest.er1
7686 pcg 1.11 ac_status=$?
7687     grep -v '^ *+' conftest.er1 >conftest.err
7688     rm -f conftest.er1
7689     cat conftest.err >&5
7690     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691 ayin 1.108 (exit $ac_status); } && {
7692     test -z "$ac_cxx_werror_flag" ||
7693     test ! -s conftest.err
7694     } && test -s conftest.$ac_objext; then
7695 pcg 1.1 ac_cv_c_const=yes
7696     else
7697 pcg 1.11 echo "$as_me: failed program was:" >&5
7698     sed 's/^/| /' conftest.$ac_ext >&5
7699    
7700 ayin 1.108 ac_cv_c_const=no
7701 pcg 1.1 fi
7702 ayin 1.108
7703     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7704 pcg 1.1 fi
7705 ayin 1.108 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7706     echo "${ECHO_T}$ac_cv_c_const" >&6; }
7707 pcg 1.11 if test $ac_cv_c_const = no; then
7708 pcg 1.1
7709 pcg 1.11 cat >>confdefs.h <<\_ACEOF
7710     #define const
7711     _ACEOF
7712 pcg 1.1
7713     fi
7714    
7715 ayin 1.108 { echo "$as_me:$LINENO: checking for inline" >&5
7716     echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
7717 pcg 1.11 if test "${ac_cv_c_inline+set}" = set; then
7718     echo $ECHO_N "(cached) $ECHO_C" >&6
7719 pcg 1.1 else
7720     ac_cv_c_inline=no
7721     for ac_kw in inline __inline__ __inline; do
7722 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
7723     /* confdefs.h. */
7724     _ACEOF
7725     cat confdefs.h >>conftest.$ac_ext
7726     cat >>conftest.$ac_ext <<_ACEOF
7727     /* end confdefs.h. */
7728     #ifndef __cplusplus
7729     typedef int foo_t;
7730     static $ac_kw foo_t static_foo () {return 0; }
7731     $ac_kw foo_t foo () {return 0; }
7732     #endif
7733 pcg 1.1
7734 pcg 1.11 _ACEOF
7735     rm -f conftest.$ac_objext
7736 ayin 1.108 if { (ac_try="$ac_compile"
7737     case "(($ac_try" in
7738     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7739     *) ac_try_echo=$ac_try;;
7740     esac
7741     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7742     (eval "$ac_compile") 2>conftest.er1
7743 pcg 1.11 ac_status=$?
7744     grep -v '^ *+' conftest.er1 >conftest.err
7745     rm -f conftest.er1
7746     cat conftest.err >&5
7747     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 ayin 1.108 (exit $ac_status); } && {
7749     test -z "$ac_cxx_werror_flag" ||
7750     test ! -s conftest.err
7751     } && test -s conftest.$ac_objext; then
7752     ac_cv_c_inline=$ac_kw
7753 pcg 1.1 else
7754 pcg 1.11 echo "$as_me: failed program was:" >&5
7755     sed 's/^/| /' conftest.$ac_ext >&5
7756    
7757 ayin 1.108
7758 pcg 1.1 fi
7759 ayin 1.108
7760     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7761     test "$ac_cv_c_inline" != no && break
7762 pcg 1.1 done
7763    
7764     fi
7765 ayin 1.108 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7766     echo "${ECHO_T}$ac_cv_c_inline" >&6; }
7767 pcg 1.11
7768 pcg 1.1
7769 pcg 1.11 case $ac_cv_c_inline in
7770 pcg 1.1 inline | yes) ;;
7771 pcg 1.11 *)
7772     case $ac_cv_c_inline in
7773     no) ac_val=;;
7774     *) ac_val=$ac_cv_c_inline;;
7775     esac
7776     cat >>confdefs.h <<_ACEOF
7777     #ifndef __cplusplus
7778     #define inline $ac_val
7779     #endif
7780     _ACEOF
7781     ;;
7782 pcg 1.1 esac
7783    
7784    
7785    
7786 ayin 1.108 { echo "$as_me:$LINENO: checking for mode_t" >&5
7787     echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
7788 pcg 1.11 if test "${ac_cv_type_mode_t+set}" = set; then
7789     echo $ECHO_N "(cached) $ECHO_C" >&6
7790     else
7791     cat >conftest.$ac_ext <<_ACEOF
7792     /* confdefs.h. */
7793     _ACEOF
7794     cat confdefs.h >>conftest.$ac_ext
7795     cat >>conftest.$ac_ext <<_ACEOF
7796     /* end confdefs.h. */
7797     $ac_includes_default
7798 ayin 1.108 typedef mode_t ac__type_new_;
7799 pcg 1.11 int
7800     main ()
7801     {
7802 ayin 1.108 if ((ac__type_new_ *) 0)
7803 pcg 1.11 return 0;
7804 ayin 1.108 if (sizeof (ac__type_new_))
7805 pcg 1.11 return 0;
7806     ;
7807     return 0;
7808     }
7809     _ACEOF
7810     rm -f conftest.$ac_objext
7811 ayin 1.108 if { (ac_try="$ac_compile"
7812     case "(($ac_try" in
7813     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7814     *) ac_try_echo=$ac_try;;
7815     esac
7816     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7817     (eval "$ac_compile") 2>conftest.er1
7818 pcg 1.11 ac_status=$?
7819     grep -v '^ *+' conftest.er1 >conftest.err
7820     rm -f conftest.er1
7821     cat conftest.err >&5
7822     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823 ayin 1.108 (exit $ac_status); } && {
7824     test -z "$ac_cxx_werror_flag" ||
7825     test ! -s conftest.err
7826     } && test -s conftest.$ac_objext; then
7827 pcg 1.11 ac_cv_type_mode_t=yes
7828 pcg 1.1 else
7829 pcg 1.11 echo "$as_me: failed program was:" >&5
7830     sed 's/^/| /' conftest.$ac_ext >&5
7831 pcg 1.1
7832 ayin 1.108 ac_cv_type_mode_t=no
7833 pcg 1.1 fi
7834 ayin 1.108
7835     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7836 pcg 1.1 fi
7837 ayin 1.108 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
7838     echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
7839 pcg 1.11 if test $ac_cv_type_mode_t = yes; then
7840 pcg 1.1 :
7841     else
7842    
7843 pcg 1.11 cat >>confdefs.h <<_ACEOF
7844     #define mode_t int
7845     _ACEOF
7846 pcg 1.1
7847     fi
7848    
7849 ayin 1.108 { echo "$as_me:$LINENO: checking for pid_t" >&5
7850     echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
7851 pcg 1.11 if test "${ac_cv_type_pid_t+set}" = set; then
7852     echo $ECHO_N "(cached) $ECHO_C" >&6
7853     else
7854     cat >conftest.$ac_ext <<_ACEOF
7855     /* confdefs.h. */
7856     _ACEOF
7857     cat confdefs.h >>conftest.$ac_ext
7858     cat >>conftest.$ac_ext <<_ACEOF
7859     /* end confdefs.h. */
7860     $ac_includes_default
7861 ayin 1.108 typedef pid_t ac__type_new_;
7862 pcg 1.11 int
7863     main ()
7864     {
7865 ayin 1.108 if ((ac__type_new_ *) 0)
7866 pcg 1.11 return 0;
7867 ayin 1.108 if (sizeof (ac__type_new_))
7868 pcg 1.11 return 0;
7869     ;
7870     return 0;
7871     }
7872     _ACEOF
7873     rm -f conftest.$ac_objext
7874 ayin 1.108 if { (ac_try="$ac_compile"
7875     case "(($ac_try" in
7876     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7877     *) ac_try_echo=$ac_try;;
7878     esac
7879     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7880     (eval "$ac_compile") 2>conftest.er1
7881 pcg 1.11 ac_status=$?
7882     grep -v '^ *+' conftest.er1 >conftest.err
7883     rm -f conftest.er1
7884     cat conftest.err >&5
7885     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 ayin 1.108 (exit $ac_status); } && {
7887     test -z "$ac_cxx_werror_flag" ||
7888     test ! -s conftest.err
7889     } && test -s conftest.$ac_objext; then
7890 pcg 1.11 ac_cv_type_pid_t=yes
7891 pcg 1.1 else
7892 pcg 1.11 echo "$as_me: failed program was:" >&5
7893     sed 's/^/| /' conftest.$ac_ext >&5
7894 pcg 1.1
7895 ayin 1.108 ac_cv_type_pid_t=no
7896 pcg 1.1 fi
7897 ayin 1.108
7898     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7899 pcg 1.1 fi
7900 ayin 1.108 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7901     echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
7902 pcg 1.11 if test $ac_cv_type_pid_t = yes; then
7903     :
7904 pcg 1.1 else
7905    
7906 pcg 1.11 cat >>confdefs.h <<_ACEOF
7907 pcg 1.1 #define pid_t int
7908 pcg 1.11 _ACEOF
7909 pcg 1.1
7910     fi
7911    
7912 ayin 1.108 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7913     echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7914 pcg 1.11 if test "${ac_cv_type_uid_t+set}" = set; then
7915     echo $ECHO_N "(cached) $ECHO_C" >&6
7916 pcg 1.1 else
7917 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
7918     /* confdefs.h. */
7919     _ACEOF
7920     cat confdefs.h >>conftest.$ac_ext
7921     cat >>conftest.$ac_ext <<_ACEOF
7922     /* end confdefs.h. */
7923 pcg 1.1 #include <sys/types.h>
7924 pcg 1.11
7925     _ACEOF
7926 pcg 1.1 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7927 pcg 1.11 $EGREP "uid_t" >/dev/null 2>&1; then
7928 pcg 1.1 ac_cv_type_uid_t=yes
7929     else
7930     ac_cv_type_uid_t=no
7931     fi
7932     rm -f conftest*
7933    
7934     fi
7935 ayin 1.108 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7936     echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7937 pcg 1.11 if test $ac_cv_type_uid_t = no; then
7938 pcg 1.1
7939 pcg 1.11 cat >>confdefs.h <<\_ACEOF
7940 pcg 1.1 #define uid_t int
7941 pcg 1.11 _ACEOF
7942    
7943 pcg 1.1
7944 pcg 1.11 cat >>confdefs.h <<\_ACEOF
7945 pcg 1.1 #define gid_t int
7946 pcg 1.11 _ACEOF
7947 pcg 1.1
7948     fi
7949    
7950    
7951 ayin 1.108 { echo "$as_me:$LINENO: checking for short" >&5
7952     echo $ECHO_N "checking for short... $ECHO_C" >&6; }
7953 pcg 1.11 if test "${ac_cv_type_short+set}" = set; then
7954     echo $ECHO_N "(cached) $ECHO_C" >&6
7955     else
7956     cat >conftest.$ac_ext <<_ACEOF
7957     /* confdefs.h. */
7958     _ACEOF
7959     cat confdefs.h >>conftest.$ac_ext
7960     cat >>conftest.$ac_ext <<_ACEOF
7961     /* end confdefs.h. */
7962     $ac_includes_default
7963 ayin 1.108 typedef short ac__type_new_;
7964 pcg 1.11 int
7965     main ()
7966     {
7967 ayin 1.108 if ((ac__type_new_ *) 0)
7968 pcg 1.11 return 0;
7969 ayin 1.108 if (sizeof (ac__type_new_))
7970 pcg 1.11 return 0;
7971     ;
7972     return 0;
7973     }
7974     _ACEOF
7975     rm -f conftest.$ac_objext
7976 ayin 1.108 if { (ac_try="$ac_compile"
7977     case "(($ac_try" in
7978     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7979     *) ac_try_echo=$ac_try;;
7980     esac
7981     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7982     (eval "$ac_compile") 2>conftest.er1
7983 pcg 1.11 ac_status=$?
7984     grep -v '^ *+' conftest.er1 >conftest.err
7985     rm -f conftest.er1
7986     cat conftest.err >&5
7987     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988 ayin 1.108 (exit $ac_status); } && {
7989     test -z "$ac_cxx_werror_flag" ||
7990     test ! -s conftest.err
7991     } && test -s conftest.$ac_objext; then
7992 root 1.42 ac_cv_type_short=yes
7993 pcg 1.11 else
7994     echo "$as_me: failed program was:" >&5
7995     sed 's/^/| /' conftest.$ac_ext >&5
7996    
7997 ayin 1.108 ac_cv_type_short=no
7998 pcg 1.11 fi
7999 ayin 1.108
8000     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8001 pcg 1.11 fi
8002 ayin 1.108 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8003     echo "${ECHO_T}$ac_cv_type_short" >&6; }
8004 pcg 1.11
8005 ayin 1.108 # The cast to long int works around a bug in the HP C Compiler
8006     # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8007     # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8008     # This bug is HP SR number 8606223364.
8009     { echo "$as_me:$LINENO: checking size of short" >&5
8010     echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8011 root 1.42 if test "${ac_cv_sizeof_short+set}" = set; then
8012 pcg 1.11 echo $ECHO_N "(cached) $ECHO_C" >&6
8013     else
8014     if test "$cross_compiling" = yes; then
8015     # Depending upon the size, compute the lo and hi bounds.
8016     cat >conftest.$ac_ext <<_ACEOF
8017     /* confdefs.h. */
8018     _ACEOF
8019     cat confdefs.h >>conftest.$ac_ext
8020     cat >>conftest.$ac_ext <<_ACEOF
8021     /* end confdefs.h. */
8022     $ac_includes_default
8023 ayin 1.108 typedef short ac__type_sizeof_;
8024 pcg 1.11 int
8025     main ()
8026     {
8027 ayin 1.108 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8028 pcg 1.11 test_array [0] = 0
8029    
8030     ;
8031     return 0;
8032     }
8033     _ACEOF
8034     rm -f conftest.$ac_objext
8035 ayin 1.108 if { (ac_try="$ac_compile"
8036     case "(($ac_try" in
8037     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8038     *) ac_try_echo=$ac_try;;
8039     esac
8040     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8041     (eval "$ac_compile") 2>conftest.er1
8042 pcg 1.11 ac_status=$?
8043     grep -v '^ *+' conftest.er1 >conftest.err
8044     rm -f conftest.er1
8045     cat conftest.err >&5
8046     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 ayin 1.108 (exit $ac_status); } && {
8048     test -z "$ac_cxx_werror_flag" ||
8049     test ! -s conftest.err
8050     } && test -s conftest.$ac_objext; then
8051 pcg 1.11 ac_lo=0 ac_mid=0
8052     while :; do
8053     cat >conftest.$ac_ext <<_ACEOF
8054     /* confdefs.h. */
8055     _ACEOF
8056     cat confdefs.h >>conftest.$ac_ext
8057     cat >>conftest.$ac_ext <<_ACEOF
8058     /* end confdefs.h. */
8059     $ac_includes_default
8060 ayin 1.108 typedef short ac__type_sizeof_;
8061 pcg 1.11 int
8062     main ()
8063     {
8064 ayin 1.108 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8065 pcg 1.11 test_array [0] = 0
8066    
8067     ;
8068     return 0;
8069     }
8070     _ACEOF
8071     rm -f conftest.$ac_objext
8072 ayin 1.108 if { (ac_try="$ac_compile"
8073     case "(($ac_try" in
8074     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8075     *) ac_try_echo=$ac_try;;
8076     esac
8077     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8078     (eval "$ac_compile") 2>conftest.er1
8079 pcg 1.11 ac_status=$?
8080     grep -v '^ *+' conftest.er1 >conftest.err
8081     rm -f conftest.er1
8082     cat conftest.err >&5
8083     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084 ayin 1.108 (exit $ac_status); } && {
8085     test -z "$ac_cxx_werror_flag" ||
8086     test ! -s conftest.err
8087     } && test -s conftest.$ac_objext; then
8088 pcg 1.11 ac_hi=$ac_mid; break
8089     else
8090     echo "$as_me: failed program was:" >&5
8091     sed 's/^/| /' conftest.$ac_ext >&5
8092    
8093 ayin 1.108 ac_lo=`expr $ac_mid + 1`
8094     if test $ac_lo -le $ac_mid; then
8095     ac_lo= ac_hi=
8096     break
8097     fi
8098     ac_mid=`expr 2 '*' $ac_mid + 1`
8099 pcg 1.11 fi
8100 ayin 1.108
8101     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8102 pcg 1.11 done
8103     else
8104     echo "$as_me: failed program was:" >&5
8105     sed 's/^/| /' conftest.$ac_ext >&5
8106    
8107 ayin 1.108 cat >conftest.$ac_ext <<_ACEOF
8108 pcg 1.11 /* confdefs.h. */
8109     _ACEOF
8110     cat confdefs.h >>conftest.$ac_ext
8111     cat >>conftest.$ac_ext <<_ACEOF
8112     /* end confdefs.h. */
8113     $ac_includes_default
8114 ayin 1.108 typedef short ac__type_sizeof_;
8115 pcg 1.11 int
8116     main ()
8117     {
8118 ayin 1.108 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8119 pcg 1.11 test_array [0] = 0
8120    
8121     ;
8122     return 0;
8123     }
8124     _ACEOF
8125     rm -f conftest.$ac_objext
8126 ayin 1.108 if { (ac_try="$ac_compile"
8127     case "(($ac_try" in
8128     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8129     *) ac_try_echo=$ac_try;;
8130     esac
8131     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8132     (eval "$ac_compile") 2>conftest.er1
8133 pcg 1.11 ac_status=$?
8134     grep -v '^ *+' conftest.er1 >conftest.err
8135     rm -f conftest.er1
8136     cat conftest.err >&5
8137     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 ayin 1.108 (exit $ac_status); } && {
8139     test -z "$ac_cxx_werror_flag" ||
8140     test ! -s conftest.err
8141     } && test -s conftest.$ac_objext; then
8142 pcg 1.11 ac_hi=-1 ac_mid=-1
8143     while :; do
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 ayin 1.108 typedef short ac__type_sizeof_;
8152 pcg 1.11 int
8153     main ()
8154     {
8155 ayin 1.108 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8156 pcg 1.11 test_array [0] = 0
8157    
8158     ;
8159     return 0;
8160     }
8161     _ACEOF
8162     rm -f conftest.$ac_objext
8163 ayin 1.108 if { (ac_try="$ac_compile"
8164     case "(($ac_try" in
8165     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8166     *) ac_try_echo=$ac_try;;
8167     esac
8168     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8169     (eval "$ac_compile") 2>conftest.er1
8170 pcg 1.11 ac_status=$?
8171     grep -v '^ *+' conftest.er1 >conftest.err
8172     rm -f conftest.er1
8173     cat conftest.err >&5
8174     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 ayin 1.108 (exit $ac_status); } && {
8176     test -z "$ac_cxx_werror_flag" ||
8177     test ! -s conftest.err
8178     } && test -s conftest.$ac_objext; then
8179 pcg 1.11 ac_lo=$ac_mid; break
8180     else
8181     echo "$as_me: failed program was:" >&5
8182     sed 's/^/| /' conftest.$ac_ext >&5
8183    
8184 ayin 1.108 ac_hi=`expr '(' $ac_mid ')' - 1`
8185     if test $ac_mid -le $ac_hi; then
8186     ac_lo= ac_hi=
8187     break
8188     fi
8189     ac_mid=`expr 2 '*' $ac_mid`
8190 pcg 1.11 fi
8191 ayin 1.108
8192     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8193 pcg 1.11 done
8194     else
8195     echo "$as_me: failed program was:" >&5
8196     sed 's/^/| /' conftest.$ac_ext >&5
8197 pcg 1.1
8198 ayin 1.108 ac_lo= ac_hi=
8199 pcg 1.1 fi
8200 ayin 1.108
8201     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8202 pcg 1.11 fi
8203 ayin 1.108
8204     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8205 pcg 1.11 # Binary search between lo and hi bounds.
8206     while test "x$ac_lo" != "x$ac_hi"; do
8207     ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8208     cat >conftest.$ac_ext <<_ACEOF
8209     /* confdefs.h. */
8210     _ACEOF
8211     cat confdefs.h >>conftest.$ac_ext
8212     cat >>conftest.$ac_ext <<_ACEOF
8213     /* end confdefs.h. */
8214     $ac_includes_default
8215 ayin 1.108 typedef short ac__type_sizeof_;
8216 pcg 1.11 int
8217     main ()
8218     {
8219 ayin 1.108 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8220 pcg 1.11 test_array [0] = 0
8221 pcg 1.1
8222 pcg 1.11 ;
8223     return 0;
8224     }
8225     _ACEOF
8226     rm -f conftest.$ac_objext
8227 ayin 1.108 if { (ac_try="$ac_compile"
8228     case "(($ac_try" in
8229     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8230     *) ac_try_echo=$ac_try;;
8231     esac
8232     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8233     (eval "$ac_compile") 2>conftest.er1
8234 pcg 1.11 ac_status=$?
8235     grep -v '^ *+' conftest.er1 >conftest.err
8236     rm -f conftest.er1
8237     cat conftest.err >&5
8238     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 ayin 1.108 (exit $ac_status); } && {
8240     test -z "$ac_cxx_werror_flag" ||
8241     test ! -s conftest.err
8242     } && test -s conftest.$ac_objext; then
8243 pcg 1.11 ac_hi=$ac_mid
8244     else
8245     echo "$as_me: failed program was:" >&5
8246     sed 's/^/| /' conftest.$ac_ext >&5
8247 pcg 1.1
8248 ayin 1.108 ac_lo=`expr '(' $ac_mid ')' + 1`
8249 pcg 1.11 fi
8250 ayin 1.108
8251     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8252 pcg 1.11 done
8253     case $ac_lo in
8254 root 1.42 ?*) ac_cv_sizeof_short=$ac_lo;;
8255 ayin 1.108 '') if test "$ac_cv_type_short" = yes; then
8256     { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8257 pcg 1.11 See \`config.log' for more details." >&5
8258 ayin 1.108 echo "$as_me: error: cannot compute sizeof (short)
8259 pcg 1.11 See \`config.log' for more details." >&2;}
8260 ayin 1.108 { (exit 77); exit 77; }; }
8261     else
8262     ac_cv_sizeof_short=0
8263     fi ;;
8264 pcg 1.11 esac
8265 pcg 1.1 else
8266 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
8267     /* confdefs.h. */
8268     _ACEOF
8269     cat confdefs.h >>conftest.$ac_ext
8270     cat >>conftest.$ac_ext <<_ACEOF
8271     /* end confdefs.h. */
8272     $ac_includes_default
8273 ayin 1.108 typedef short ac__type_sizeof_;
8274     static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8275     static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8276 pcg 1.1 #include <stdio.h>
8277 pcg 1.11 #include <stdlib.h>
8278     int
8279     main ()
8280 pcg 1.1 {
8281 pcg 1.11
8282     FILE *f = fopen ("conftest.val", "w");
8283     if (! f)
8284 ayin 1.108 return 1;
8285     if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8286 pcg 1.11 {
8287 ayin 1.108 long int i = longval ();
8288     if (i != ((long int) (sizeof (ac__type_sizeof_))))
8289     return 1;
8290 pcg 1.11 fprintf (f, "%ld\n", i);
8291     }
8292     else
8293     {
8294 ayin 1.108 unsigned long int i = ulongval ();
8295     if (i != ((long int) (sizeof (ac__type_sizeof_))))
8296     return 1;
8297 pcg 1.11 fprintf (f, "%lu\n", i);
8298     }
8299 ayin 1.108 return ferror (f) || fclose (f) != 0;
8300 pcg 1.11
8301     ;
8302     return 0;
8303 pcg 1.1 }
8304 pcg 1.11 _ACEOF
8305     rm -f conftest$ac_exeext
8306 ayin 1.108 if { (ac_try="$ac_link"
8307     case "(($ac_try" in
8308     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8309     *) ac_try_echo=$ac_try;;
8310     esac
8311     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8312     (eval "$ac_link") 2>&5
8313 pcg 1.11 ac_status=$?
8314     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8316 ayin 1.108 { (case "(($ac_try" in
8317     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8318     *) ac_try_echo=$ac_try;;
8319     esac
8320     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8321     (eval "$ac_try") 2>&5
8322 pcg 1.11 ac_status=$?
8323     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324     (exit $ac_status); }; }; then
8325 root 1.42 ac_cv_sizeof_short=`cat conftest.val`
8326 pcg 1.11 else
8327     echo "$as_me: program exited with status $ac_status" >&5
8328     echo "$as_me: failed program was:" >&5
8329     sed 's/^/| /' conftest.$ac_ext >&5
8330    
8331     ( exit $ac_status )
8332 ayin 1.108 if test "$ac_cv_type_short" = yes; then
8333     { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8334 pcg 1.11 See \`config.log' for more details." >&5
8335 ayin 1.108 echo "$as_me: error: cannot compute sizeof (short)
8336 pcg 1.11 See \`config.log' for more details." >&2;}
8337 ayin 1.108 { (exit 77); exit 77; }; }
8338     else
8339     ac_cv_sizeof_short=0
8340     fi
8341 pcg 1.11 fi
8342 ayin 1.108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8343 pcg 1.11 fi
8344     rm -f conftest.val
8345 ayin 1.104 fi
8346 ayin 1.108 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8347     echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
8348    
8349    
8350    
8351 pcg 1.11 cat >>confdefs.h <<_ACEOF
8352 root 1.42 #define SIZEOF_SHORT $ac_cv_sizeof_short
8353 pcg 1.11 _ACEOF
8354    
8355    
8356 ayin 1.108 { echo "$as_me:$LINENO: checking for int" >&5
8357     echo $ECHO_N "checking for int... $ECHO_C" >&6; }
8358 root 1.42 if test "${ac_cv_type_int+set}" = set; then
8359 pcg 1.11 echo $ECHO_N "(cached) $ECHO_C" >&6
8360     else
8361     cat >conftest.$ac_ext <<_ACEOF
8362     /* confdefs.h. */
8363     _ACEOF
8364     cat confdefs.h >>conftest.$ac_ext
8365     cat >>conftest.$ac_ext <<_ACEOF
8366     /* end confdefs.h. */
8367     $ac_includes_default
8368 ayin 1.108 typedef int ac__type_new_;
8369 pcg 1.11 int
8370     main ()
8371     {
8372 ayin 1.108 if ((ac__type_new_ *) 0)
8373 pcg 1.11 return 0;
8374 ayin 1.108 if (sizeof (ac__type_new_))
8375 pcg 1.11 return 0;
8376     ;
8377     return 0;
8378     }
8379     _ACEOF
8380     rm -f conftest.$ac_objext
8381 ayin 1.108 if { (ac_try="$ac_compile"
8382     case "(($ac_try" in
8383     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8384     *) ac_try_echo=$ac_try;;
8385     esac
8386     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8387     (eval "$ac_compile") 2>conftest.er1
8388 pcg 1.11 ac_status=$?
8389     grep -v '^ *+' conftest.er1 >conftest.err
8390     rm -f conftest.er1
8391     cat conftest.err >&5
8392     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 ayin 1.108 (exit $ac_status); } && {
8394     test -z "$ac_cxx_werror_flag" ||
8395     test ! -s conftest.err
8396     } && test -s conftest.$ac_objext; then
8397 root 1.42 ac_cv_type_int=yes
8398 pcg 1.11 else
8399     echo "$as_me: failed program was:" >&5
8400     sed 's/^/| /' conftest.$ac_ext >&5
8401    
8402 ayin 1.108 ac_cv_type_int=no
8403 pcg 1.11 fi
8404 ayin 1.108
8405     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8406 pcg 1.11 fi
8407 ayin 1.108 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
8408     echo "${ECHO_T}$ac_cv_type_int" >&6; }
8409 pcg 1.11
8410 ayin 1.108 # The cast to long int works around a bug in the HP C Compiler
8411     # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8412     # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8413     # This bug is HP SR number 8606223364.
8414     { echo "$as_me:$LINENO: checking size of int" >&5
8415     echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
8416 root 1.42 if test "${ac_cv_sizeof_int+set}" = set; then
8417 pcg 1.11 echo $ECHO_N "(cached) $ECHO_C" >&6
8418     else
8419     if test "$cross_compiling" = yes; then
8420     # Depending upon the size, compute the lo and hi bounds.
8421     cat >conftest.$ac_ext <<_ACEOF
8422     /* confdefs.h. */
8423     _ACEOF
8424     cat confdefs.h >>conftest.$ac_ext
8425     cat >>conftest.$ac_ext <<_ACEOF
8426     /* end confdefs.h. */
8427     $ac_includes_default
8428 ayin 1.108 typedef int ac__type_sizeof_;
8429 pcg 1.11 int
8430     main ()
8431     {
8432 ayin 1.108 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8433 pcg 1.11 test_array [0] = 0
8434    
8435     ;
8436     return 0;
8437     }
8438     _ACEOF
8439     rm -f conftest.$ac_objext
8440 ayin 1.108 if { (ac_try="$ac_compile"
8441     case "(($ac_try" in
8442     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8443     *) ac_try_echo=$ac_try;;
8444     esac
8445     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8446     (eval "$ac_compile") 2>conftest.er1
8447 pcg 1.11 ac_status=$?
8448     grep -v '^ *+' conftest.er1 >conftest.err
8449     rm -f conftest.er1
8450     cat conftest.err >&5
8451     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 ayin 1.108 (exit $ac_status); } && {
8453     test -z "$ac_cxx_werror_flag" ||
8454     test ! -s conftest.err
8455     } && test -s conftest.$ac_objext; then
8456 pcg 1.11 ac_lo=0 ac_mid=0
8457     while :; do
8458     cat >conftest.$ac_ext <<_ACEOF
8459     /* confdefs.h. */
8460     _ACEOF
8461     cat confdefs.h >>conftest.$ac_ext
8462     cat >>conftest.$ac_ext <<_ACEOF
8463     /* end confdefs.h. */
8464     $ac_includes_default
8465 ayin 1.108 typedef int ac__type_sizeof_;
8466 pcg 1.11 int
8467     main ()
8468     {
8469 ayin 1.108 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8470 pcg 1.11 test_array [0] = 0
8471    
8472     ;
8473     return 0;
8474     }
8475     _ACEOF
8476     rm -f conftest.$ac_objext
8477 ayin 1.108 if { (ac_try="$ac_compile"
8478     case "(($ac_try" in
8479     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8480     *) ac_try_echo=$ac_try;;
8481     esac
8482     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8483     (eval "$ac_compile") 2>conftest.er1
8484 pcg 1.11 ac_status=$?
8485     grep -v '^ *+' conftest.er1 >conftest.err
8486     rm -f conftest.er1
8487     cat conftest.err >&5
8488     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 ayin 1.108 (exit $ac_status); } && {
8490     test -z "$ac_cxx_werror_flag" ||
8491     test ! -s conftest.err
8492     } && test -s conftest.$ac_objext; then
8493 pcg 1.11 ac_hi=$ac_mid; break
8494     else
8495     echo "$as_me: failed program was:" >&5
8496     sed 's/^/| /' conftest.$ac_ext >&5
8497    
8498 ayin 1.108 ac_lo=`expr $ac_mid + 1`
8499     if test $ac_lo -le $ac_mid; then
8500     ac_lo= ac_hi=
8501     break
8502     fi
8503     ac_mid=`expr 2 '*' $ac_mid + 1`
8504 pcg 1.11 fi
8505 ayin 1.108
8506     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8507 pcg 1.11 done
8508     else
8509     echo "$as_me: failed program was:" >&5
8510     sed 's/^/| /' conftest.$ac_ext >&5
8511    
8512 ayin 1.108 cat >conftest.$ac_ext <<_ACEOF
8513 pcg 1.11 /* confdefs.h. */
8514     _ACEOF
8515     cat confdefs.h >>conftest.$ac_ext
8516     cat >>conftest.$ac_ext <<_ACEOF
8517     /* end confdefs.h. */
8518     $ac_includes_default
8519 ayin 1.108 typedef int ac__type_sizeof_;
8520 pcg 1.11 int
8521     main ()
8522     {
8523 ayin 1.108 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8524 pcg 1.11 test_array [0] = 0
8525    
8526     ;
8527     return 0;
8528     }
8529     _ACEOF
8530     rm -f conftest.$ac_objext
8531 ayin 1.108 if { (ac_try="$ac_compile"
8532     case "(($ac_try" in
8533     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8534     *) ac_try_echo=$ac_try;;
8535     esac
8536     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8537     (eval "$ac_compile") 2>conftest.er1
8538 pcg 1.11 ac_status=$?
8539     grep -v '^ *+' conftest.er1 >conftest.err
8540     rm -f conftest.er1
8541     cat conftest.err >&5
8542     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543 ayin 1.108 (exit $ac_status); } && {
8544     test -z "$ac_cxx_werror_flag" ||
8545     test ! -s conftest.err
8546     } && test -s conftest.$ac_objext; then
8547 pcg 1.11 ac_hi=-1 ac_mid=-1
8548     while :; do
8549     cat >conftest.$ac_ext <<_ACEOF
8550     /* confdefs.h. */
8551     _ACEOF
8552     cat confdefs.h >>conftest.$ac_ext
8553     cat >>conftest.$ac_ext <<_ACEOF
8554     /* end confdefs.h. */
8555     $ac_includes_default
8556 ayin 1.108 typedef int ac__type_sizeof_;
8557 pcg 1.11 int
8558     main ()
8559     {
8560 ayin 1.108 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8561 pcg 1.11 test_array [0] = 0
8562    
8563     ;
8564     return 0;
8565     }
8566     _ACEOF
8567     rm -f conftest.$ac_objext
8568 ayin 1.108 if { (ac_try="$ac_compile"
8569     case "(($ac_try" in
8570     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8571     *) ac_try_echo=$ac_try;;
8572     esac
8573     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8574     (eval "$ac_compile") 2>conftest.er1
8575 pcg 1.11 ac_status=$?
8576     grep -v '^ *+' conftest.er1 >conftest.err
8577     rm -f conftest.er1
8578     cat conftest.err >&5
8579     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 ayin 1.108 (exit $ac_status); } && {
8581     test -z "$ac_cxx_werror_flag" ||
8582     test ! -s conftest.err
8583     } && test -s conftest.$ac_objext; then
8584 pcg 1.11 ac_lo=$ac_mid; break
8585     else
8586     echo "$as_me: failed program was:" >&5
8587     sed 's/^/| /' conftest.$ac_ext >&5
8588    
8589 ayin 1.108 ac_hi=`expr '(' $ac_mid ')' - 1`
8590     if test $ac_mid -le $ac_hi; then
8591     ac_lo= ac_hi=
8592     break
8593     fi
8594     ac_mid=`expr 2 '*' $ac_mid`
8595 pcg 1.11 fi
8596 ayin 1.108
8597     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8598 pcg 1.11 done
8599     else
8600     echo "$as_me: failed program was:" >&5
8601     sed 's/^/| /' conftest.$ac_ext >&5
8602 pcg 1.1
8603 ayin 1.108 ac_lo= ac_hi=
8604 pcg 1.11 fi
8605 ayin 1.108
8606     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8607 pcg 1.1 fi
8608 ayin 1.108
8609     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8610 pcg 1.11 # Binary search between lo and hi bounds.
8611     while test "x$ac_lo" != "x$ac_hi"; do
8612     ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8613     cat >conftest.$ac_ext <<_ACEOF
8614     /* confdefs.h. */
8615     _ACEOF
8616     cat confdefs.h >>conftest.$ac_ext
8617     cat >>conftest.$ac_ext <<_ACEOF
8618     /* end confdefs.h. */
8619     $ac_includes_default
8620 ayin 1.108 typedef int ac__type_sizeof_;
8621 pcg 1.11 int
8622     main ()
8623     {
8624 ayin 1.108 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8625 pcg 1.11 test_array [0] = 0
8626 pcg 1.1
8627 pcg 1.11 ;
8628     return 0;
8629     }
8630     _ACEOF
8631     rm -f conftest.$ac_objext
8632 ayin 1.108 if { (ac_try="$ac_compile"
8633     case "(($ac_try" in
8634     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8635     *) ac_try_echo=$ac_try;;
8636     esac
8637     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8638     (eval "$ac_compile") 2>conftest.er1
8639 pcg 1.11 ac_status=$?
8640     grep -v '^ *+' conftest.er1 >conftest.err
8641     rm -f conftest.er1
8642     cat conftest.err >&5
8643     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 ayin 1.108 (exit $ac_status); } && {
8645     test -z "$ac_cxx_werror_flag" ||
8646     test ! -s conftest.err
8647     } && test -s conftest.$ac_objext; then
8648 pcg 1.11 ac_hi=$ac_mid
8649     else
8650     echo "$as_me: failed program was:" >&5
8651     sed 's/^/| /' conftest.$ac_ext >&5
8652 pcg 1.1
8653 ayin 1.108 ac_lo=`expr '(' $ac_mid ')' + 1`
8654 pcg 1.11 fi
8655 ayin 1.108
8656     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8657 pcg 1.11 done
8658     case $ac_lo in
8659 root 1.42 ?*) ac_cv_sizeof_int=$ac_lo;;
8660 ayin 1.108 '') if test "$ac_cv_type_int" = yes; then
8661     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
8662 pcg 1.11 See \`config.log' for more details." >&5
8663 ayin 1.108 echo "$as_me: error: cannot compute sizeof (int)
8664 pcg 1.11 See \`config.log' for more details." >&2;}
8665 ayin 1.108 { (exit 77); exit 77; }; }
8666     else
8667     ac_cv_sizeof_int=0
8668     fi ;;
8669 pcg 1.11 esac
8670 pcg 1.1 else
8671 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
8672     /* confdefs.h. */
8673     _ACEOF
8674     cat confdefs.h >>conftest.$ac_ext
8675     cat >>conftest.$ac_ext <<_ACEOF
8676     /* end confdefs.h. */
8677     $ac_includes_default
8678 ayin 1.108 typedef int ac__type_sizeof_;
8679     static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8680     static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8681 pcg 1.1 #include <stdio.h>
8682 pcg 1.11 #include <stdlib.h>
8683     int
8684     main ()
8685 pcg 1.1 {
8686 pcg 1.11
8687     FILE *f = fopen ("conftest.val", "w");
8688     if (! f)
8689 ayin 1.108 return 1;
8690     if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8691 pcg 1.11 {
8692 ayin 1.108 long int i = longval ();
8693     if (i != ((long int) (sizeof (ac__type_sizeof_))))
8694     return 1;
8695 pcg 1.11 fprintf (f, "%ld\n", i);
8696     }
8697     else
8698     {
8699 ayin 1.108 unsigned long int i = ulongval ();
8700     if (i != ((long int) (sizeof (ac__type_sizeof_))))
8701     return 1;
8702 pcg 1.11 fprintf (f, "%lu\n", i);
8703     }
8704 ayin 1.108 return ferror (f) || fclose (f) != 0;
8705 pcg 1.11
8706     ;
8707     return 0;
8708 pcg 1.1 }
8709 pcg 1.11 _ACEOF
8710     rm -f conftest$ac_exeext
8711 ayin 1.108 if { (ac_try="$ac_link"
8712     case "(($ac_try" in
8713     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8714     *) ac_try_echo=$ac_try;;
8715     esac
8716     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8717     (eval "$ac_link") 2>&5
8718 pcg 1.11 ac_status=$?
8719     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8721 ayin 1.108 { (case "(($ac_try" in
8722     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8723     *) ac_try_echo=$ac_try;;
8724     esac
8725     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8726     (eval "$ac_try") 2>&5
8727 pcg 1.11 ac_status=$?
8728     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729     (exit $ac_status); }; }; then
8730 root 1.42 ac_cv_sizeof_int=`cat conftest.val`
8731 pcg 1.11 else
8732     echo "$as_me: program exited with status $ac_status" >&5
8733     echo "$as_me: failed program was:" >&5
8734     sed 's/^/| /' conftest.$ac_ext >&5
8735    
8736     ( exit $ac_status )
8737 ayin 1.108 if test "$ac_cv_type_int" = yes; then
8738     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
8739 pcg 1.11 See \`config.log' for more details." >&5
8740 ayin 1.108 echo "$as_me: error: cannot compute sizeof (int)
8741 pcg 1.11 See \`config.log' for more details." >&2;}
8742 ayin 1.108 { (exit 77); exit 77; }; }
8743     else
8744     ac_cv_sizeof_int=0
8745     fi
8746 pcg 1.11 fi
8747 ayin 1.108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8748 pcg 1.11 fi
8749     rm -f conftest.val
8750 ayin 1.104 fi
8751 ayin 1.108 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
8752     echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
8753    
8754    
8755    
8756 pcg 1.11 cat >>confdefs.h <<_ACEOF
8757 root 1.42 #define SIZEOF_INT $ac_cv_sizeof_int
8758 pcg 1.11 _ACEOF
8759    
8760    
8761 ayin 1.108 { echo "$as_me:$LINENO: checking for long long" >&5
8762     echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8763 pcg 1.11 if test "${ac_cv_type_long_long+set}" = set; then
8764     echo $ECHO_N "(cached) $ECHO_C" >&6
8765     else
8766     cat >conftest.$ac_ext <<_ACEOF
8767     /* confdefs.h. */
8768     _ACEOF
8769     cat confdefs.h >>conftest.$ac_ext
8770     cat >>conftest.$ac_ext <<_ACEOF
8771     /* end confdefs.h. */
8772     $ac_includes_default
8773 ayin 1.108 typedef long long ac__type_new_;
8774 pcg 1.11 int
8775     main ()
8776     {
8777 ayin 1.108 if ((ac__type_new_ *) 0)
8778 pcg 1.11 return 0;
8779 ayin 1.108 if (sizeof (ac__type_new_))
8780 pcg 1.11 return 0;
8781     ;
8782     return 0;
8783     }
8784     _ACEOF
8785     rm -f conftest.$ac_objext
8786 ayin 1.108 if { (ac_try="$ac_compile"
8787     case "(($ac_try" in
8788     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8789     *) ac_try_echo=$ac_try;;
8790     esac
8791     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8792     (eval "$ac_compile") 2>conftest.er1
8793 pcg 1.11 ac_status=$?
8794     grep -v '^ *+' conftest.er1 >conftest.err
8795     rm -f conftest.er1
8796     cat conftest.err >&5
8797     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798 ayin 1.108 (exit $ac_status); } && {
8799     test -z "$ac_cxx_werror_flag" ||
8800     test ! -s conftest.err
8801     } && test -s conftest.$ac_objext; then
8802 pcg 1.11 ac_cv_type_long_long=yes
8803     else
8804     echo "$as_me: failed program was:" >&5
8805     sed 's/^/| /' conftest.$ac_ext >&5
8806    
8807 ayin 1.108 ac_cv_type_long_long=no
8808 pcg 1.11 fi
8809 ayin 1.108
8810     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8811 pcg 1.11 fi
8812 ayin 1.108 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8813     echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8814 pcg 1.11
8815 ayin 1.108 # The cast to long int works around a bug in the HP C Compiler
8816     # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8817     # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8818     # This bug is HP SR number 8606223364.
8819     { echo "$as_me:$LINENO: checking size of long long" >&5
8820     echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
8821 pcg 1.11 if test "${ac_cv_sizeof_long_long+set}" = set; then
8822     echo $ECHO_N "(cached) $ECHO_C" >&6
8823     else
8824     if test "$cross_compiling" = yes; then
8825     # Depending upon the size, compute the lo and hi bounds.
8826     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.108 typedef long long ac__type_sizeof_;
8834 pcg 1.11 int
8835     main ()
8836     {
8837 ayin 1.108 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8838 pcg 1.11 test_array [0] = 0
8839    
8840     ;
8841     return 0;
8842     }
8843     _ACEOF
8844     rm -f conftest.$ac_objext
8845 ayin 1.108 if { (ac_try="$ac_compile"
8846     case "(($ac_try" in
8847     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8848     *) ac_try_echo=$ac_try;;
8849     esac
8850     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8851     (eval "$ac_compile") 2>conftest.er1
8852 pcg 1.11 ac_status=$?
8853     grep -v '^ *+' conftest.er1 >conftest.err
8854     rm -f conftest.er1
8855     cat conftest.err >&5
8856     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 ayin 1.108 (exit $ac_status); } && {
8858     test -z "$ac_cxx_werror_flag" ||
8859     test ! -s conftest.err
8860     } && test -s conftest.$ac_objext; then
8861 pcg 1.11 ac_lo=0 ac_mid=0
8862     while :; do
8863     cat >conftest.$ac_ext <<_ACEOF
8864     /* confdefs.h. */
8865     _ACEOF
8866     cat confdefs.h >>conftest.$ac_ext
8867     cat >>conftest.$ac_ext <<_ACEOF
8868     /* end confdefs.h. */
8869     $ac_includes_default
8870 ayin 1.108 typedef long long ac__type_sizeof_;
8871 pcg 1.11 int
8872     main ()
8873     {
8874 ayin 1.108 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8875 pcg 1.11 test_array [0] = 0
8876    
8877     ;
8878     return 0;
8879     }
8880     _ACEOF
8881     rm -f conftest.$ac_objext
8882 ayin 1.108 if { (ac_try="$ac_compile"
8883     case "(($ac_try" in
8884     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8885     *) ac_try_echo=$ac_try;;
8886     esac
8887     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8888     (eval "$ac_compile") 2>conftest.er1
8889 pcg 1.11 ac_status=$?
8890     grep -v '^ *+' conftest.er1 >conftest.err
8891     rm -f conftest.er1
8892     cat conftest.err >&5
8893     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 ayin 1.108 (exit $ac_status); } && {
8895     test -z "$ac_cxx_werror_flag" ||
8896     test ! -s conftest.err
8897     } && test -s conftest.$ac_objext; then
8898 root 1.105 ac_hi=$ac_mid; break
8899     else
8900 pcg 1.11 echo "$as_me: failed program was:" >&5
8901     sed 's/^/| /' conftest.$ac_ext >&5
8902    
8903 ayin 1.108 ac_lo=`expr $ac_mid + 1`
8904     if test $ac_lo -le $ac_mid; then
8905     ac_lo= ac_hi=
8906     break
8907     fi
8908     ac_mid=`expr 2 '*' $ac_mid + 1`
8909 pcg 1.11 fi
8910 ayin 1.108
8911     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8912 pcg 1.11 done
8913     else
8914     echo "$as_me: failed program was:" >&5
8915     sed 's/^/| /' conftest.$ac_ext >&5
8916    
8917 ayin 1.108 cat >conftest.$ac_ext <<_ACEOF
8918 pcg 1.11 /* confdefs.h. */
8919     _ACEOF
8920     cat confdefs.h >>conftest.$ac_ext
8921     cat >>conftest.$ac_ext <<_ACEOF
8922     /* end confdefs.h. */
8923     $ac_includes_default
8924 ayin 1.108 typedef long long ac__type_sizeof_;
8925 pcg 1.11 int
8926     main ()
8927     {
8928 ayin 1.108 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8929 pcg 1.11 test_array [0] = 0
8930    
8931     ;
8932     return 0;
8933     }
8934     _ACEOF
8935     rm -f conftest.$ac_objext
8936 ayin 1.108 if { (ac_try="$ac_compile"
8937     case "(($ac_try" in
8938     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8939     *) ac_try_echo=$ac_try;;
8940     esac
8941     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8942     (eval "$ac_compile") 2>conftest.er1
8943 pcg 1.11 ac_status=$?
8944     grep -v '^ *+' conftest.er1 >conftest.err
8945     rm -f conftest.er1
8946     cat conftest.err >&5
8947     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948 ayin 1.108 (exit $ac_status); } && {
8949     test -z "$ac_cxx_werror_flag" ||
8950     test ! -s conftest.err
8951     } && test -s conftest.$ac_objext; then
8952 pcg 1.11 ac_hi=-1 ac_mid=-1
8953     while :; do
8954     cat >conftest.$ac_ext <<_ACEOF
8955     /* confdefs.h. */
8956     _ACEOF
8957     cat confdefs.h >>conftest.$ac_ext
8958     cat >>conftest.$ac_ext <<_ACEOF
8959     /* end confdefs.h. */
8960     $ac_includes_default
8961 ayin 1.108 typedef long long ac__type_sizeof_;
8962 pcg 1.11 int
8963     main ()
8964     {
8965 ayin 1.108 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8966 pcg 1.11 test_array [0] = 0
8967    
8968     ;
8969     return 0;
8970     }
8971     _ACEOF
8972     rm -f conftest.$ac_objext
8973 ayin 1.108 if { (ac_try="$ac_compile"
8974     case "(($ac_try" in
8975     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8976     *) ac_try_echo=$ac_try;;
8977     esac
8978     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8979     (eval "$ac_compile") 2>conftest.er1
8980 pcg 1.11 ac_status=$?
8981     grep -v '^ *+' conftest.er1 >conftest.err
8982     rm -f conftest.er1
8983     cat conftest.err >&5
8984     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 ayin 1.108 (exit $ac_status); } && {
8986     test -z "$ac_cxx_werror_flag" ||
8987     test ! -s conftest.err
8988     } && test -s conftest.$ac_objext; then
8989     ac_lo=$ac_mid; break
8990 pcg 1.11 else
8991     echo "$as_me: failed program was:" >&5
8992     sed 's/^/| /' conftest.$ac_ext >&5
8993    
8994 ayin 1.108 ac_hi=`expr '(' $ac_mid ')' - 1`
8995     if test $ac_mid -le $ac_hi; then
8996     ac_lo= ac_hi=
8997     break
8998     fi
8999     ac_mid=`expr 2 '*' $ac_mid`
9000 pcg 1.11 fi
9001 ayin 1.108
9002     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9003 pcg 1.11 done
9004     else
9005     echo "$as_me: failed program was:" >&5
9006     sed 's/^/| /' conftest.$ac_ext >&5
9007 pcg 1.1
9008 ayin 1.108 ac_lo= ac_hi=
9009 pcg 1.11 fi
9010 ayin 1.108
9011     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9012 pcg 1.1 fi
9013 ayin 1.108
9014     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9015 pcg 1.11 # Binary search between lo and hi bounds.
9016     while test "x$ac_lo" != "x$ac_hi"; do
9017     ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9018     cat >conftest.$ac_ext <<_ACEOF
9019     /* confdefs.h. */
9020     _ACEOF
9021     cat confdefs.h >>conftest.$ac_ext
9022     cat >>conftest.$ac_ext <<_ACEOF
9023     /* end confdefs.h. */
9024     $ac_includes_default
9025 ayin 1.108 typedef long long ac__type_sizeof_;
9026 pcg 1.11 int
9027     main ()
9028     {
9029 ayin 1.108 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9030 pcg 1.11 test_array [0] = 0
9031 pcg 1.1
9032 pcg 1.11 ;
9033     return 0;
9034     }
9035     _ACEOF
9036     rm -f conftest.$ac_objext
9037 ayin 1.108 if { (ac_try="$ac_compile"
9038     case "(($ac_try" in
9039     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9040     *) ac_try_echo=$ac_try;;
9041     esac
9042     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9043     (eval "$ac_compile") 2>conftest.er1
9044 pcg 1.11 ac_status=$?
9045     grep -v '^ *+' conftest.er1 >conftest.err
9046     rm -f conftest.er1
9047     cat conftest.err >&5
9048     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049 ayin 1.108 (exit $ac_status); } && {
9050     test -z "$ac_cxx_werror_flag" ||
9051     test ! -s conftest.err
9052     } && test -s conftest.$ac_objext; then
9053 pcg 1.11 ac_hi=$ac_mid
9054     else
9055     echo "$as_me: failed program was:" >&5
9056     sed 's/^/| /' conftest.$ac_ext >&5
9057 pcg 1.1
9058 ayin 1.108 ac_lo=`expr '(' $ac_mid ')' + 1`
9059 pcg 1.11 fi
9060 ayin 1.108
9061     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9062 pcg 1.11 done
9063     case $ac_lo in
9064     ?*) ac_cv_sizeof_long_long=$ac_lo;;
9065 ayin 1.108 '') if test "$ac_cv_type_long_long" = yes; then
9066     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
9067 pcg 1.11 See \`config.log' for more details." >&5
9068 ayin 1.108 echo "$as_me: error: cannot compute sizeof (long long)
9069 pcg 1.11 See \`config.log' for more details." >&2;}
9070 ayin 1.108 { (exit 77); exit 77; }; }
9071     else
9072     ac_cv_sizeof_long_long=0
9073     fi ;;
9074 pcg 1.11 esac
9075 pcg 1.1 else
9076 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
9077     /* confdefs.h. */
9078     _ACEOF
9079     cat confdefs.h >>conftest.$ac_ext
9080     cat >>conftest.$ac_ext <<_ACEOF
9081     /* end confdefs.h. */
9082     $ac_includes_default
9083 ayin 1.108 typedef long long ac__type_sizeof_;
9084     static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9085     static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9086 pcg 1.1 #include <stdio.h>
9087 pcg 1.11 #include <stdlib.h>
9088     int
9089     main ()
9090 pcg 1.1 {
9091 pcg 1.11
9092     FILE *f = fopen ("conftest.val", "w");
9093     if (! f)
9094 ayin 1.108 return 1;
9095     if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9096 pcg 1.11 {
9097 ayin 1.108 long int i = longval ();
9098     if (i != ((long int) (sizeof (ac__type_sizeof_))))
9099     return 1;
9100 pcg 1.11 fprintf (f, "%ld\n", i);
9101     }
9102     else
9103     {
9104 ayin 1.108 unsigned long int i = ulongval ();
9105     if (i != ((long int) (sizeof (ac__type_sizeof_))))
9106     return 1;
9107 pcg 1.11 fprintf (f, "%lu\n", i);
9108     }
9109 ayin 1.108 return ferror (f) || fclose (f) != 0;
9110 pcg 1.11
9111     ;
9112     return 0;
9113 pcg 1.1 }
9114 pcg 1.11 _ACEOF
9115     rm -f conftest$ac_exeext
9116 ayin 1.108 if { (ac_try="$ac_link"
9117     case "(($ac_try" in
9118     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9119     *) ac_try_echo=$ac_try;;
9120     esac
9121     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9122     (eval "$ac_link") 2>&5
9123 pcg 1.11 ac_status=$?
9124     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9126 ayin 1.108 { (case "(($ac_try" in
9127     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9128     *) ac_try_echo=$ac_try;;
9129     esac
9130     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9131     (eval "$ac_try") 2>&5
9132 pcg 1.11 ac_status=$?
9133     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134     (exit $ac_status); }; }; then
9135     ac_cv_sizeof_long_long=`cat conftest.val`
9136     else
9137     echo "$as_me: program exited with status $ac_status" >&5
9138     echo "$as_me: failed program was:" >&5
9139     sed 's/^/| /' conftest.$ac_ext >&5
9140    
9141     ( exit $ac_status )
9142 ayin 1.108 if test "$ac_cv_type_long_long" = yes; then
9143     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
9144 pcg 1.11 See \`config.log' for more details." >&5
9145 ayin 1.108 echo "$as_me: error: cannot compute sizeof (long long)
9146 pcg 1.11 See \`config.log' for more details." >&2;}
9147 ayin 1.108 { (exit 77); exit 77; }; }
9148     else
9149     ac_cv_sizeof_long_long=0
9150     fi
9151 pcg 1.11 fi
9152 ayin 1.108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9153 pcg 1.11 fi
9154     rm -f conftest.val
9155 ayin 1.104 fi
9156 ayin 1.108 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
9157     echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
9158    
9159    
9160    
9161 pcg 1.11 cat >>confdefs.h <<_ACEOF
9162     #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9163     _ACEOF
9164    
9165    
9166 ayin 1.108 { echo "$as_me:$LINENO: checking for int *" >&5
9167     echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
9168 pcg 1.11 if test "${ac_cv_type_int_p+set}" = set; then
9169     echo $ECHO_N "(cached) $ECHO_C" >&6
9170     else
9171     cat >conftest.$ac_ext <<_ACEOF
9172     /* confdefs.h. */
9173     _ACEOF
9174     cat confdefs.h >>conftest.$ac_ext
9175     cat >>conftest.$ac_ext <<_ACEOF
9176     /* end confdefs.h. */
9177     $ac_includes_default
9178 ayin 1.108 typedef int * ac__type_new_;
9179 pcg 1.11 int
9180     main ()
9181     {
9182 ayin 1.108 if ((ac__type_new_ *) 0)
9183 pcg 1.11 return 0;
9184 ayin 1.108 if (sizeof (ac__type_new_))
9185 pcg 1.11 return 0;
9186     ;
9187     return 0;
9188     }
9189     _ACEOF
9190     rm -f conftest.$ac_objext
9191 ayin 1.108 if { (ac_try="$ac_compile"
9192     case "(($ac_try" in
9193     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9194     *) ac_try_echo=$ac_try;;
9195     esac
9196     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9197     (eval "$ac_compile") 2>conftest.er1
9198 pcg 1.11 ac_status=$?
9199     grep -v '^ *+' conftest.er1 >conftest.err
9200     rm -f conftest.er1
9201     cat conftest.err >&5
9202     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203 ayin 1.108 (exit $ac_status); } && {
9204     test -z "$ac_cxx_werror_flag" ||
9205     test ! -s conftest.err
9206     } && test -s conftest.$ac_objext; then
9207 pcg 1.11 ac_cv_type_int_p=yes
9208     else
9209     echo "$as_me: failed program was:" >&5
9210     sed 's/^/| /' conftest.$ac_ext >&5
9211    
9212 ayin 1.108 ac_cv_type_int_p=no
9213 pcg 1.11 fi
9214 ayin 1.108
9215     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9216 pcg 1.11 fi
9217 ayin 1.108 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
9218     echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
9219 pcg 1.11
9220 ayin 1.108 # The cast to long int works around a bug in the HP C Compiler
9221     # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9222     # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9223     # This bug is HP SR number 8606223364.
9224     { echo "$as_me:$LINENO: checking size of int *" >&5
9225     echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
9226 pcg 1.11 if test "${ac_cv_sizeof_int_p+set}" = set; then
9227     echo $ECHO_N "(cached) $ECHO_C" >&6
9228     else
9229     if test "$cross_compiling" = yes; then
9230     # Depending upon the size, compute the lo and hi bounds.
9231     cat >conftest.$ac_ext <<_ACEOF
9232     /* confdefs.h. */
9233     _ACEOF
9234     cat confdefs.h >>conftest.$ac_ext
9235     cat >>conftest.$ac_ext <<_ACEOF
9236     /* end confdefs.h. */
9237     $ac_includes_default
9238 ayin 1.108 typedef int * ac__type_sizeof_;
9239 pcg 1.11 int
9240     main ()
9241     {
9242 ayin 1.108 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9243 pcg 1.11 test_array [0] = 0
9244    
9245     ;
9246     return 0;
9247     }
9248     _ACEOF
9249     rm -f conftest.$ac_objext
9250 ayin 1.108 if { (ac_try="$ac_compile"
9251     case "(($ac_try" in
9252     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9253     *) ac_try_echo=$ac_try;;
9254     esac
9255     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9256     (eval "$ac_compile") 2>conftest.er1
9257 pcg 1.11 ac_status=$?
9258     grep -v '^ *+' conftest.er1 >conftest.err
9259     rm -f conftest.er1
9260     cat conftest.err >&5
9261     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262 ayin 1.108 (exit $ac_status); } && {
9263     test -z "$ac_cxx_werror_flag" ||
9264     test ! -s conftest.err
9265     } && test -s conftest.$ac_objext; then
9266 pcg 1.11 ac_lo=0 ac_mid=0
9267     while :; do
9268     cat >conftest.$ac_ext <<_ACEOF
9269     /* confdefs.h. */
9270     _ACEOF
9271     cat confdefs.h >>conftest.$ac_ext
9272     cat >>conftest.$ac_ext <<_ACEOF
9273     /* end confdefs.h. */
9274     $ac_includes_default
9275 ayin 1.108 typedef int * ac__type_sizeof_;
9276 pcg 1.11 int
9277     main ()
9278     {
9279 ayin 1.108 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9280 pcg 1.11 test_array [0] = 0
9281    
9282     ;
9283     return 0;
9284     }
9285     _ACEOF
9286     rm -f conftest.$ac_objext
9287 ayin 1.108 if { (ac_try="$ac_compile"
9288     case "(($ac_try" in
9289     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9290     *) ac_try_echo=$ac_try;;
9291     esac
9292     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9293     (eval "$ac_compile") 2>conftest.er1
9294 pcg 1.11 ac_status=$?
9295     grep -v '^ *+' conftest.er1 >conftest.err
9296     rm -f conftest.er1
9297     cat conftest.err >&5
9298     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299 ayin 1.108 (exit $ac_status); } && {
9300     test -z "$ac_cxx_werror_flag" ||
9301     test ! -s conftest.err
9302     } && test -s conftest.$ac_objext; then
9303 pcg 1.11 ac_hi=$ac_mid; break
9304     else
9305     echo "$as_me: failed program was:" >&5
9306     sed 's/^/| /' conftest.$ac_ext >&5
9307    
9308 ayin 1.108 ac_lo=`expr $ac_mid + 1`
9309     if test $ac_lo -le $ac_mid; then
9310     ac_lo= ac_hi=
9311     break
9312     fi
9313     ac_mid=`expr 2 '*' $ac_mid + 1`
9314 pcg 1.11 fi
9315 ayin 1.108
9316     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9317 pcg 1.11 done
9318     else
9319     echo "$as_me: failed program was:" >&5
9320     sed 's/^/| /' conftest.$ac_ext >&5
9321    
9322 ayin 1.108 cat >conftest.$ac_ext <<_ACEOF
9323 pcg 1.11 /* confdefs.h. */
9324     _ACEOF
9325     cat confdefs.h >>conftest.$ac_ext
9326     cat >>conftest.$ac_ext <<_ACEOF
9327     /* end confdefs.h. */
9328     $ac_includes_default
9329 ayin 1.108 typedef int * ac__type_sizeof_;
9330 pcg 1.11 int
9331     main ()
9332     {
9333 ayin 1.108 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9334 pcg 1.11 test_array [0] = 0
9335    
9336     ;
9337     return 0;
9338     }
9339     _ACEOF
9340     rm -f conftest.$ac_objext
9341 ayin 1.108 if { (ac_try="$ac_compile"
9342     case "(($ac_try" in
9343     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9344     *) ac_try_echo=$ac_try;;
9345     esac
9346     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9347     (eval "$ac_compile") 2>conftest.er1
9348 pcg 1.11 ac_status=$?
9349     grep -v '^ *+' conftest.er1 >conftest.err
9350     rm -f conftest.er1
9351     cat conftest.err >&5
9352     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353 ayin 1.108 (exit $ac_status); } && {
9354     test -z "$ac_cxx_werror_flag" ||
9355     test ! -s conftest.err
9356     } && test -s conftest.$ac_objext; then
9357 pcg 1.11 ac_hi=-1 ac_mid=-1
9358     while :; do
9359     cat >conftest.$ac_ext <<_ACEOF
9360     /* confdefs.h. */
9361     _ACEOF
9362     cat confdefs.h >>conftest.$ac_ext
9363     cat >>conftest.$ac_ext <<_ACEOF
9364     /* end confdefs.h. */
9365     $ac_includes_default
9366 ayin 1.108 typedef int * ac__type_sizeof_;
9367 pcg 1.11 int
9368     main ()
9369     {
9370 ayin 1.108 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9371 pcg 1.11 test_array [0] = 0
9372    
9373     ;
9374     return 0;
9375     }
9376     _ACEOF
9377     rm -f conftest.$ac_objext
9378 ayin 1.108 if { (ac_try="$ac_compile"
9379     case "(($ac_try" in
9380     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9381     *) ac_try_echo=$ac_try;;
9382     esac
9383     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9384     (eval "$ac_compile") 2>conftest.er1
9385 pcg 1.11 ac_status=$?
9386     grep -v '^ *+' conftest.er1 >conftest.err
9387     rm -f conftest.er1
9388     cat conftest.err >&5
9389     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390 ayin 1.108 (exit $ac_status); } && {
9391     test -z "$ac_cxx_werror_flag" ||
9392     test ! -s conftest.err
9393     } && test -s conftest.$ac_objext; then
9394 pcg 1.11 ac_lo=$ac_mid; break
9395     else
9396     echo "$as_me: failed program was:" >&5
9397     sed 's/^/| /' conftest.$ac_ext >&5
9398    
9399 ayin 1.108 ac_hi=`expr '(' $ac_mid ')' - 1`
9400     if test $ac_mid -le $ac_hi; then
9401     ac_lo= ac_hi=
9402     break
9403     fi
9404     ac_mid=`expr 2 '*' $ac_mid`
9405 pcg 1.11 fi
9406 ayin 1.108
9407     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9408 pcg 1.11 done
9409     else
9410     echo "$as_me: failed program was:" >&5
9411     sed 's/^/| /' conftest.$ac_ext >&5
9412    
9413 ayin 1.108 ac_lo= ac_hi=
9414 pcg 1.11 fi
9415 ayin 1.108
9416     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9417 pcg 1.11 fi
9418 ayin 1.108
9419     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9420 pcg 1.11 # Binary search between lo and hi bounds.
9421     while test "x$ac_lo" != "x$ac_hi"; do
9422     ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9423     cat >conftest.$ac_ext <<_ACEOF
9424     /* confdefs.h. */
9425     _ACEOF
9426     cat confdefs.h >>conftest.$ac_ext
9427     cat >>conftest.$ac_ext <<_ACEOF
9428     /* end confdefs.h. */
9429     $ac_includes_default
9430 ayin 1.108 typedef int * ac__type_sizeof_;
9431 pcg 1.11 int
9432     main ()
9433     {
9434 ayin 1.108 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9435 pcg 1.11 test_array [0] = 0
9436    
9437     ;
9438     return 0;
9439     }
9440     _ACEOF
9441     rm -f conftest.$ac_objext
9442 ayin 1.108 if { (ac_try="$ac_compile"
9443     case "(($ac_try" in
9444     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9445     *) ac_try_echo=$ac_try;;
9446     esac
9447     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9448     (eval "$ac_compile") 2>conftest.er1
9449 pcg 1.11 ac_status=$?
9450     grep -v '^ *+' conftest.er1 >conftest.err
9451     rm -f conftest.er1
9452     cat conftest.err >&5
9453     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454 ayin 1.108 (exit $ac_status); } && {
9455     test -z "$ac_cxx_werror_flag" ||
9456     test ! -s conftest.err
9457     } && test -s conftest.$ac_objext; then
9458 pcg 1.11 ac_hi=$ac_mid
9459     else
9460     echo "$as_me: failed program was:" >&5
9461     sed 's/^/| /' conftest.$ac_ext >&5
9462 pcg 1.1
9463 ayin 1.108 ac_lo=`expr '(' $ac_mid ')' + 1`
9464 pcg 1.1 fi
9465 ayin 1.108
9466     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9467 pcg 1.11 done
9468     case $ac_lo in
9469     ?*) ac_cv_sizeof_int_p=$ac_lo;;
9470 ayin 1.108 '') if test "$ac_cv_type_int_p" = yes; then
9471     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
9472 pcg 1.11 See \`config.log' for more details." >&5
9473 ayin 1.108 echo "$as_me: error: cannot compute sizeof (int *)
9474 pcg 1.11 See \`config.log' for more details." >&2;}
9475 ayin 1.108 { (exit 77); exit 77; }; }
9476     else
9477     ac_cv_sizeof_int_p=0
9478     fi ;;
9479 pcg 1.11 esac
9480 pcg 1.1 else
9481 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
9482     /* confdefs.h. */
9483     _ACEOF
9484     cat confdefs.h >>conftest.$ac_ext
9485     cat >>conftest.$ac_ext <<_ACEOF
9486     /* end confdefs.h. */
9487     $ac_includes_default
9488 ayin 1.108 typedef int * ac__type_sizeof_;
9489     static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9490     static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9491 pcg 1.1 #include <stdio.h>
9492 pcg 1.11 #include <stdlib.h>
9493     int
9494     main ()
9495 pcg 1.1 {
9496 pcg 1.11
9497     FILE *f = fopen ("conftest.val", "w");
9498     if (! f)
9499 ayin 1.108 return 1;
9500     if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9501 pcg 1.11 {
9502 ayin 1.108 long int i = longval ();
9503     if (i != ((long int) (sizeof (ac__type_sizeof_))))
9504     return 1;
9505 pcg 1.11 fprintf (f, "%ld\n", i);
9506     }
9507     else
9508     {
9509 ayin 1.108 unsigned long int i = ulongval ();
9510     if (i != ((long int) (sizeof (ac__type_sizeof_))))
9511     return 1;
9512 pcg 1.11 fprintf (f, "%lu\n", i);
9513     }
9514 ayin 1.108 return ferror (f) || fclose (f) != 0;
9515 pcg 1.11
9516     ;
9517     return 0;
9518 pcg 1.1 }
9519 pcg 1.11 _ACEOF
9520     rm -f conftest$ac_exeext
9521 ayin 1.108 if { (ac_try="$ac_link"
9522     case "(($ac_try" in
9523     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9524     *) ac_try_echo=$ac_try;;
9525     esac
9526     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9527     (eval "$ac_link") 2>&5
9528 pcg 1.11 ac_status=$?
9529     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9531 ayin 1.108 { (case "(($ac_try" in
9532     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9533     *) ac_try_echo=$ac_try;;
9534     esac
9535     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9536     (eval "$ac_try") 2>&5
9537 pcg 1.11 ac_status=$?
9538     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539     (exit $ac_status); }; }; then
9540     ac_cv_sizeof_int_p=`cat conftest.val`
9541     else
9542     echo "$as_me: program exited with status $ac_status" >&5
9543     echo "$as_me: failed program was:" >&5
9544     sed 's/^/| /' conftest.$ac_ext >&5
9545    
9546     ( exit $ac_status )
9547 ayin 1.108 if test "$ac_cv_type_int_p" = yes; then
9548     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
9549 pcg 1.11 See \`config.log' for more details." >&5
9550 ayin 1.108 echo "$as_me: error: cannot compute sizeof (int *)
9551 pcg 1.11 See \`config.log' for more details." >&2;}
9552 ayin 1.108 { (exit 77); exit 77; }; }
9553     else
9554     ac_cv_sizeof_int_p=0
9555     fi
9556 pcg 1.11 fi
9557 ayin 1.108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9558 pcg 1.11 fi
9559     rm -f conftest.val
9560 ayin 1.104 fi
9561 ayin 1.108 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
9562     echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
9563    
9564    
9565    
9566 pcg 1.11 cat >>confdefs.h <<_ACEOF
9567 pcg 1.1 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
9568 pcg 1.11 _ACEOF
9569 pcg 1.1
9570    
9571    
9572    
9573 ayin 1.108 { echo "$as_me:$LINENO: checking for int16_t" >&5
9574     echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
9575 pcg 1.11 if test "${rxvt_cv_int16_t+set}" = set; then
9576     echo $ECHO_N "(cached) $ECHO_C" >&6
9577 pcg 1.1 else
9578 pcg 1.11 cat >conftest.$ac_ext <<_ACEOF
9579     /* confdefs.h. */
9580     _ACEOF
9581     cat confdefs.h >>conftest.$ac_ext
9582     cat >>conftest.$ac_ext <<_ACEOF
9583     /* end confdefs.h. */
9584 pcg 1.1 #include <stdint.h>
9585 pcg 1.11 int
9586     main ()
9587     {
9588 pcg 1.1 int16_t dummy;
9589 pcg 1.11 ;
9590     return 0;
9591     }
9592     _ACEOF
9593     rm -f conftest.$ac_objext
9594 ayin 1.108 if { (ac_try="$ac_compile"
9595     case "(($ac_try" in
9596     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9597     *) ac_try_echo=$ac_try;;
9598     esac
9599     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9600     (eval "$ac_compile") 2>conftest.er1
9601 pcg 1.11 ac_status=$?
9602     grep -v '^ *+' conftest.er1 >conftest.err
9603     rm -f conftest.er1
9604     cat conftest.err >&5
9605     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 ayin 1.108 (exit $ac_status); } && {
9607     test -z "$ac_cxx_werror_flag" ||
9608     test ! -s conftest.err
9609     } && test -s conftest.$ac_objext; then
9610 pcg 1.1 rxvt_cv_int16_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.108 if test "$ac_cv_sizeof_char" -ge 2; then
9616 pcg 1.1 rxvt_cv_int16_t=" char"
9617     else
9618 root 1.50 if test "$ac_cv_sizeof_short" -ge 2; then
9619 pcg 1.1 rxvt_cv_int16_t=" short"
9620     else
9621 root 1.50 if test "$ac_cv_sizeof_int" -ge 2; then
9622 pcg 1.1 rxvt_cv_int16_t=" int"
9623     else
9624 root 1.50 if test "$ac_cv_sizeof_long" -ge 2; then
9625 pcg 1.1 rxvt_cv_int16_t=" long"
9626     else
9627 root 1.50 if test "$ac_cv_sizeof_long_long" -ge 2; then
9628 pcg 1.1 rxvt_cv_int16_t=" long long"
9629     else
9630     rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
9631     fi
9632     fi
9633     fi
9634     fi
9635     fi
9636     fi
9637 ayin 1.108
9638     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9639 pcg 1.1 fi
9640 ayin 1.108 { echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5
9641     echo "${ECHO_T}$rxvt_cv_int16_t" >&6; }
9642 pcg 1.1 if test x"$rxvt_cv_int16_t" != xyes; then
9643     rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;"
9644     else
9645     if test x"" = x; then
9646     rxvt_int16_typedef="/* typedef short int16_t; */"
9647     else
9648     rxvt_int16_typedef="/* typedef short int16_t; */"
9649     fi
9650 pcg 1.11 fi
9651 pcg 1.1
9652 ayin 1.108 { echo "$as_me:$LINENO: checking for uint16_t" >&5
9653     echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
9654 pcg 1.11 if test "${rxvt_cv_uint16_t+set}" = set; then
9655     echo $ECHO_N "(cached) $ECHO_C" >&6
9656     else
9657     cat >conftest.$ac_ext <<_ACEOF
9658     /* confdefs.h. */
9659     _ACEOF
9660     cat confdefs.h >>conftest.$ac_ext
9661     cat >>conftest.$ac_ext <<_ACEOF
9662     /* end confdefs.h. */
9663 pcg 1.1 #include <stdint.h>
9664 pcg 1.11 int
9665     main ()
9666     {
9667 pcg 1.1 uint16_t dummy;
9668 pcg 1.11 ;
9669     return 0;
9670     }
9671     _ACEOF
9672     rm -f conftest.$ac_objext
9673 ayin 1.108 if { (ac_try="$ac_compile"
9674     case "(($ac_try" in
9675     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9676     *) ac_try_echo=$ac_try;;
9677     esac
9678     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9679     (eval "$ac_compile") 2>conftest.er1
9680 pcg 1.11 ac_status=$?
9681     grep -v '^ *+' conftest.er1 >conftest.err
9682     rm -f conftest.er1
9683     cat conftest.err >&5
9684     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 ayin 1.108 (exit $ac_status); } && {
9686     test -z "$ac_cxx_werror_flag" ||
9687     test ! -s conftest.err
9688     } && test -s conftest.$ac_objext; then
9689 pcg 1.1 rxvt_cv_uint16_t=yes
9690     else
9691 pcg 1.11 echo "$as_me: failed program was:" >&5
9692     sed 's/^/| /' conftest.$ac_ext >&5
9693    
9694 ayin 1.108 if test "$ac_cv_sizeof_char" -ge 2; then
9695 pcg 1.1 rxvt_cv_uint16_t="unsigned char"
9696     else
9697 root 1.50 if test "$ac_cv_sizeof_short" -ge 2; then
9698 pcg 1.1 rxvt_cv_uint16_t="unsigned short"
9699     else
9700 root 1.50 if test "$ac_cv_sizeof_int" -ge 2; then
9701 pcg 1.1 rxvt_cv_uint16_t="unsigned int"
9702     else
9703 root 1.50 if test "$ac_cv_sizeof_long" -ge 2; then
9704 pcg 1.1 rxvt_cv_uint16_t="unsigned long"
9705     else
9706 root 1.50 if test "$ac_cv_sizeof_long_long" -ge 2; then
9707 pcg 1.1 rxvt_cv_uint16_t="unsigned long long"
9708     else
9709     rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default
9710     fi
9711     fi
9712     fi
9713     fi
9714     fi
9715     fi
9716 ayin 1.108
9717     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9718 pcg 1.1 fi
9719 ayin 1.108 { echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5
9720     echo "${ECHO_T}$rxvt_cv_uint16_t" >&6; }
9721 pcg 1.1 if test x"$rxvt_cv_uint16_t" != xyes; then
9722     rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;"
9723     else
9724     if test x"unsigned" = x; then
9725     rxvt_uint16_typedef="/* typedef short uint16_t; */"
9726     else
9727     rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */"
9728     fi
9729 pcg 1.11 fi
9730 pcg 1.1
9731 ayin 1.108 { echo "$as_me:$LINENO: checking for int32_t" >&5
9732     echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
9733 pcg 1.11 if test "${rxvt_cv_int32_t+set}" = set; then
9734     echo $ECHO_N "(cached) $ECHO_C" >&6
9735     else
9736     cat >conftest.$ac_ext <<_ACEOF
9737     /* confdefs.h. */
9738     _ACEOF
9739     cat confdefs.h >>conftest.$ac_ext
9740     cat >>conftest.$ac_ext <<_ACEOF
9741     /* end confdefs.h. */
9742 pcg 1.1 #include <stdint.h>
9743 pcg 1.11 int
9744     main ()
9745     {
9746 pcg 1.1 int32_t dummy;
9747 pcg 1.11 ;
9748     return 0;
9749     }
9750     _ACEOF
9751     rm -f conftest.$ac_objext
9752 ayin 1.108 if { (ac_try="$ac_compile"
9753     case "(($ac_try" in
9754     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9755     *) ac_try_echo=$ac_try;;
9756     esac
9757     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9758     (eval "$ac_compile") 2>conftest.er1
9759 pcg 1.11 ac_status=$?
9760     grep -v '^ *+' conftest.er1 >conftest.err
9761     rm -f conftest.er1
9762     cat conftest.err >&5
9763     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 ayin 1.108 (exit $ac_status); } && {
9765     test -z "$ac_cxx_werror_flag" ||
9766     test ! -s conftest.err
9767     } && test -s conftest.$ac_objext; then
9768 pcg 1.1 rxvt_cv_int32_t=yes
9769     else
9770 pcg 1.11 echo "$as_me: failed program was:" >&5
9771     sed 's/^/| /' conftest.$ac_ext >&5
9772    
9773 ayin 1.108 if test "$ac_cv_sizeof_char" -ge 4; then
9774 pcg 1.1 rxvt_cv_int32_t=" char"
9775     else
9776 root 1.50 if test "$ac_cv_sizeof_short" -ge 4; then
9777 pcg 1.1 rxvt_cv_int32_t=" short"
9778     else
9779 root 1.50 if test "$ac_cv_sizeof_int" -ge 4; then
9780 pcg 1.1 rxvt_cv_int32_t=" int"
9781     else
9782 root 1.50 if test "$ac_cv_sizeof_long" -ge 4; then
9783 pcg 1.1 rxvt_cv_int32_t=" long"
9784     else
9785 root 1.50 if test "$ac_cv_sizeof_long_long" -ge 4; then
9786 pcg 1.1 rxvt_cv_int32_t=" long long"
9787     else
9788     rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
9789     fi
9790     fi
9791     fi
9792     fi
9793     fi
9794     fi
9795 ayin 1.108
9796     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9797 pcg 1.1 fi
9798 ayin 1.108 { echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5
9799     echo "${ECHO_T}$rxvt_cv_int32_t" >&6; }
9800 pcg 1.1 if test x"$rxvt_cv_int32_t" != xyes; then
9801     rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;"
9802     else
9803     if test x"" = x; then
9804     rxvt_int32_typedef="/* typedef int int32_t; */"
9805     else
9806     rxvt_int32_typedef="/* typedef int int32_t; */"
9807     fi
9808 pcg 1.11 fi
9809 pcg 1.1
9810 ayin 1.108 { echo "$as_me:$LINENO: checking for uint32_t" >&5
9811     echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
9812 pcg 1.11 if test "${rxvt_cv_uint32_t+set}" = set; then
9813     echo $ECHO_N "(cached) $ECHO_C" >&6
9814     else
9815     cat >conftest.$ac_ext <<_ACEOF
9816     /* confdefs.h. */
9817     _ACEOF
9818     cat confdefs.h >>conftest.$ac_ext
9819     cat >>conftest.$ac_ext <<_ACEOF
9820     /* end confdefs.h. */
9821 pcg 1.1 #include <stdint.h>
9822 pcg 1.11 int
9823     main ()
9824     {
9825 pcg 1.1 uint32_t dummy;
9826 pcg 1.11 ;
9827     return 0;
9828     }
9829     _ACEOF
9830     rm -f conftest.$ac_objext
9831 ayin 1.108 if { (ac_try="$ac_compile"
9832     case "(($ac_try" in
9833     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9834     *) ac_try_echo=$ac_try;;
9835     esac
9836     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9837     (eval "$ac_compile") 2>conftest.er1
9838 pcg 1.11 ac_status=$?
9839     grep -v '^ *+' conftest.er1 >conftest.err
9840     rm -f conftest.er1
9841     cat conftest.err >&5
9842     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 ayin 1.108 (exit $ac_status); } && {
9844     test -z "$ac_cxx_werror_flag" ||
9845     test ! -s conftest.err
9846     } && test -s conftest.$ac_objext; then
9847 pcg 1.1 rxvt_cv_uint32_t=yes
9848     else
9849 pcg 1.11 echo "$as_me: failed program was:" >&5
9850     sed 's/^/| /' conftest.$ac_ext >&5
9851    
9852 ayin 1.108 if test "$ac_cv_sizeof_char" -ge 4; then
9853 pcg 1.1 rxvt_cv_uint32_t="unsigned char"
9854     else
9855 root 1.50 if test "$ac_cv_sizeof_short" -ge 4; then
9856 pcg 1.1 rxvt_cv_uint32_t="unsigned short"
9857     else
9858 root 1.50 if test "$ac_cv_sizeof_int" -ge 4; then
9859 pcg 1.1 rxvt_cv_uint32_t="unsigned int"
9860     else
9861 root 1.50 if test "$ac_cv_sizeof_long" -ge 4; then
9862 pcg 1.1 rxvt_cv_uint32_t="unsigned long"
9863     else
9864 root 1.50 if test "$ac_cv_sizeof_long_long" -ge 4; then
9865 pcg 1.1 rxvt_cv_uint32_t="unsigned long long"
9866     else
9867     rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default
9868     fi
9869     fi
9870     fi
9871     fi
9872     fi
9873     fi
9874 ayin 1.108
9875     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9876 pcg 1.1 fi
9877 ayin 1.108 { echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5
9878     echo "${ECHO_T}$rxvt_cv_uint32_t" >&6; }
9879 pcg 1.1 if test x"$rxvt_cv_uint32_t" != xyes; then
9880     rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;"
9881     else
9882     if test x"unsigned" = x; then
9883     rxvt_uint32_typedef="/* typedef int uint32_t; */"
9884     else
9885     rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
9886     fi
9887 pcg 1.11 fi
9888 pcg 1.1
9889 root 1.50 if test "$ac_cv_sizeof_int_p" -eq 8; then
9890 pcg 1.1 rxvt_intp_define="#define intp_t int64_t"
9891     rxvt_u_intp_define="#define u_intp_t u_int64_t"
9892     else
9893 root 1.50 if test "$ac_cv_sizeof_int_p" -eq 4; then
9894 pcg 1.1 rxvt_intp_define="#define intp_t int32_t"
9895     rxvt_u_intp_define="#define u_intp_t u_int32_t"
9896     else
9897 root 1.50 if test "$ac_cv_sizeof_int_p" -eq 2; then
9898 pcg 1.1 rxvt_intp_define="#define intp_t int16_t"
9899     rxvt_u_intp_define="#define u_intp_t u_int16_t"
9900     else
9901     rxvt_intp_define="#error set intp_t"
9902     rxvt_u_intp_define="#error set u_intp_t"
9903     fi
9904     fi
9905     fi
9906    
9907    
9908    
9909 ayin 1.108 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
9910     echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
9911 pcg 1.11 if test "${ac_cv_type_signal+set}" = set; then
9912     echo $ECHO_N "(cached) $ECHO_C" >&6
9913     else
9914     cat >conftest.$ac_ext <<_ACEOF
9915     /* confdefs.h. */
9916     _ACEOF
9917     cat confdefs.h >>conftest.$ac_ext
9918     cat >>conftest.$ac_ext <<_ACEOF
9919     /* end confdefs.h. */
9920 pcg 1.1 #include <sys/types.h>
9921     #include <signal.h>
9922    
9923 pcg 1.11 int
9924     main ()
9925     {
9926 ayin 1.108 return *(signal (0, 0)) (0) == 1;
9927 pcg 1.11 ;
9928     return 0;
9929     }
9930     _ACEOF
9931     rm -f conftest.$ac_objext
9932 ayin 1.108 if { (ac_try="$ac_compile"
9933     case "(($ac_try" in
9934     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9935     *) ac_try_echo=$ac_try;;
9936     esac
9937     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9938     (eval "$ac_compile") 2>conftest.er1
9939 pcg 1.11 ac_status=$?
9940     grep -v '^ *+' conftest.er1 >conftest.err
9941     rm -f conftest.er1
9942     cat conftest.err >&5
9943     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944 ayin 1.108 (exit $ac_status); } && {
9945     test -z "$ac_cxx_werror_flag" ||
9946     test ! -s conftest.err
9947     } && test -s conftest.$ac_objext; then
9948     ac_cv_type_signal=int
9949 pcg 1.1 else
9950 pcg 1.11 echo "$as_me: failed program was:" >&5
9951     sed 's/^/| /' conftest.$ac_ext >&5
9952    
9953 ayin 1.108 ac_cv_type_signal=void
9954 pcg 1.1 fi
9955 ayin 1.108
9956     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9957 pcg 1.1 fi
9958 ayin 1.108 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9959     echo "${ECHO_T}$ac_cv_type_signal" >&6; }
9960 pcg 1.1
9961 pcg 1.11 cat >>confdefs.h <<_ACEOF
9962 pcg 1.1 #define RETSIGTYPE $ac_cv_type_signal
9963 pcg 1.11 _ACEOF
9964 pcg 1.1
9965    
9966    
9967 root 1.76
9968 pcg 1.11
9969    
9970 root 1.83 for ac_func in \
9971     unsetenv \
9972     setutent \
9973     on_exit \
9974    
9975     do
9976     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9977 ayin 1.108 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9978     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9979     if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9980 root 1.83 echo $ECHO_N "(cached) $ECHO_C" >&6
9981     else
9982     cat >conftest.$ac_ext <<_ACEOF
9983     /* confdefs.h. */
9984     _ACEOF
9985     cat confdefs.h >>conftest.$ac_ext
9986     cat >>conftest.$ac_ext <<_ACEOF
9987     /* end confdefs.h. */
9988     /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9989     For example, HP-UX 11i <limits.h> declares gettimeofday. */
9990     #define $ac_func innocuous_$ac_func
9991    
9992     /* System header to define __stub macros and hopefully few prototypes,
9993     which can conflict with char $ac_func (); below.
9994     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9995     <limits.h> exists even on freestanding compilers. */
9996    
9997     #ifdef __STDC__
9998     # include <limits.h>
9999     #else
10000     # include <assert.h>
10001     #endif
10002    
10003     #undef $ac_func
10004 pcg 1.11
10005 ayin 1.108 /* Override any GCC internal prototype to avoid an error.
10006     Use char because int might match the return type of a GCC
10007     builtin and then its argument prototype would still apply. */
10008 root 1.83 #ifdef __cplusplus
10009     extern "C"
10010     #endif
10011     char $ac_func ();
10012     /* The GNU C library defines this for functions which it implements
10013     to always fail with ENOSYS. Some functions are actually named
10014     something starting with __ and the normal name is an alias. */
10015 ayin 1.108 #if defined __stub_$ac_func || defined __stub___$ac_func
10016 root 1.83 choke me
10017     #endif
10018 pcg 1.11
10019 root 1.83 int
10020     main ()
10021     {
10022 ayin 1.108 return $ac_func ();
10023 root 1.83 ;
10024     return 0;
10025     }
10026     _ACEOF
10027     rm -f conftest.$ac_objext conftest$ac_exeext
10028 ayin 1.108 if { (ac_try="$ac_link"
10029     case "(($ac_try" in
10030     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10031     *) ac_try_echo=$ac_try;;
10032     esac
10033     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10034     (eval "$ac_link") 2>conftest.er1
10035 root 1.83 ac_status=$?
10036     grep -v '^ *+' conftest.er1 >conftest.err
10037     rm -f conftest.er1
10038     cat conftest.err >&5
10039     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040 ayin 1.108 (exit $ac_status); } && {
10041     test -z "$ac_cxx_werror_flag" ||
10042     test ! -s conftest.err
10043     } && test -s conftest$ac_exeext &&
10044     $as_test_x conftest$ac_exeext; then
10045 root 1.83 eval "$as_ac_var=yes"
10046     else
10047     echo "$as_me: failed program was:" >&5
10048     sed 's/^/| /' conftest.$ac_ext >&5
10049 pcg 1.11
10050 ayin 1.108 eval "$as_ac_var=no"
10051 root 1.83 fi
10052 ayin 1.108
10053     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10054 root 1.83 conftest$ac_exeext conftest.$ac_ext
10055     fi
10056 ayin 1.108 ac_res=`eval echo '${'$as_ac_var'}'`
10057     { echo "$as_me:$LINENO: result: $ac_res" >&5
10058     echo "${ECHO_T}$ac_res" >&6; }
10059 root 1.83 if test `eval echo '${'$as_ac_var'}'` = yes; then
10060     cat >>confdefs.h <<_ACEOF
10061     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10062     _ACEOF
10063 pcg 1.11
10064 root 1.83 fi
10065     done
10066 pcg 1.11
10067    
10068    
10069 root 1.92 support_utmp=yes
10070     support_wtmp=yes
10071     support_lastlog=yes
10072    
10073 ayin 1.108 # Check whether --enable-utmp was given.
10074 root 1.92 if test "${enable_utmp+set}" = set; then
10075 ayin 1.108 enableval=$enable_utmp; if test x$enableval = xyes -o x$enableval = xno; then
10076 root 1.92 support_utmp=$enableval
10077     fi
10078 ayin 1.108 fi
10079 ayin 1.102
10080 ayin 1.108
10081     # Check whether --enable-wtmp was given.
10082 root 1.92 if test "${enable_wtmp+set}" = set; then
10083 ayin 1.108 enableval=$enable_wtmp; if test x$enableval = xyes -o x$enableval = xno; then
10084 root 1.92 support_wtmp=$enableval
10085     fi
10086 ayin 1.108 fi
10087 ayin 1.102
10088 ayin 1.108
10089     # Check whether --enable-lastlog was given.
10090 root 1.92 if test "${enable_lastlog+set}" = set; then
10091 ayin 1.108 enableval=$enable_lastlog; if test x$enableval = xyes -o x$enableval = xno; then
10092 root 1.92 support_lastlog=$enableval
10093     fi
10094 ayin 1.108 fi
10095    
10096 root 1.92
10097     if test x$support_utmp = xyes; then
10098    
10099     cat >>confdefs.h <<\_ACEOF
10100     #define UTMP_SUPPORT 1
10101     _ACEOF
10102    
10103     fi
10104     if test x$support_wtmp = xyes; then
10105    
10106     cat >>confdefs.h <<\_ACEOF
10107     #define WTMP_SUPPORT 1
10108     _ACEOF
10109    
10110     fi
10111     if test x$support_lastlog = xyes; then
10112    
10113     cat >>confdefs.h <<\_ACEOF
10114     #define LASTLOG_SUPPORT 1
10115     _ACEOF
10116    
10117     fi
10118    
10119 pcg 1.11
10120 root 1.88
10121    
10122     for ac_func in \
10123     ttyslot \
10124     updwtmp \
10125     updwtmpx \
10126    
10127     do
10128     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10129 ayin 1.108 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10130     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10131     if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10132 root 1.88 echo $ECHO_N "(cached) $ECHO_C" >&6
10133     else
10134     cat >conftest.$ac_ext <<_ACEOF
10135     /* confdefs.h. */
10136     _ACEOF
10137     cat confdefs.h >>conftest.$ac_ext
10138     cat >>conftest.$ac_ext <<_ACEOF
10139     /* end confdefs.h. */
10140     /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10141     For example, HP-UX 11i <limits.h> declares gettimeofday. */
10142     #define $ac_func innocuous_$ac_func
10143    
10144     /* System header to define __stub macros and hopefully few prototypes,
10145     which can conflict with char $ac_func (); below.
10146     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10147     <limits.h> exists even on freestanding compilers. */
10148    
10149     #ifdef __STDC__
10150     # include <limits.h>
10151     #else
10152     # include <assert.h>
10153     #endif
10154    
10155     #undef $ac_func
10156    
10157 ayin 1.108 /* Override any GCC internal prototype to avoid an error.
10158     Use char because int might match the return type of a GCC
10159     builtin and then its argument prototype would still apply. */
10160 root 1.88 #ifdef __cplusplus
10161     extern "C"
10162     #endif
10163     char $ac_func ();
10164     /* The GNU C library defines this for functions which it implements
10165     to always fail with ENOSYS. Some functions are actually named
10166     something starting with __ and the normal name is an alias. */
10167 ayin 1.108 #if defined __stub_$ac_func || defined __stub___$ac_func
10168 root 1.88 choke me
10169     #endif
10170    
10171     int
10172     main ()
10173     {
10174 ayin 1.108 return $ac_func ();
10175 root 1.88 ;
10176     return 0;
10177     }
10178     _ACEOF
10179     rm -f conftest.$ac_objext conftest$ac_exeext
10180 ayin 1.108 if { (ac_try="$ac_link"
10181     case "(($ac_try" in
10182     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10183     *) ac_try_echo=$ac_try;;
10184     esac
10185     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10186     (eval "$ac_link") 2>conftest.er1
10187 root 1.88 ac_status=$?
10188     grep -v '^ *+' conftest.er1 >conftest.err
10189     rm -f conftest.er1
10190     cat conftest.err >&5
10191     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192 ayin 1.108 (exit $ac_status); } && {
10193     test -z "$ac_cxx_werror_flag" ||
10194     test ! -s conftest.err
10195     } && test -s conftest$ac_exeext &&
10196     $as_test_x conftest$ac_exeext; then
10197 root 1.88 eval "$as_ac_var=yes"
10198     else
10199     echo "$as_me: failed program was:" >&5
10200     sed 's/^/| /' conftest.$ac_ext >&5
10201    
10202 ayin 1.108 eval "$as_ac_var=no"
10203 root 1.88 fi
10204 ayin 1.108
10205     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10206 root 1.88 conftest$ac_exeext conftest.$ac_ext
10207     fi
10208 ayin 1.108 ac_res=`eval echo '${'$as_ac_var'}'`
10209     { echo "$as_me:$LINENO: result: $ac_res" >&5
10210     echo "${ECHO_T}$ac_res" >&6; }
10211 root 1.88 if test `eval echo '${'$as_ac_var'}'` = yes; then
10212     cat >>confdefs.h <<_ACEOF
10213     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10214     _ACEOF
10215    
10216     fi
10217     done
10218    
10219    
10220    
10221    
10222    
10223     for ac_header in \
10224     utmp.h \
10225     utmpx.h \
10226     lastlog.h \
10227    
10228     do
10229     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10230 ayin 1.108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10231     { echo "$as_me:$LINENO: checking for $ac_header" >&5
10232     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10233     if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10234 root 1.88 echo $ECHO_N "(cached) $ECHO_C" >&6
10235     fi
10236 ayin 1.108 ac_res=`eval echo '${'$as_ac_Header'}'`
10237     { echo "$as_me:$LINENO: result: $ac_res" >&5
10238     echo "${ECHO_T}$ac_res" >&6; }
10239 root 1.88 else
10240     # Is the header compilable?
10241 ayin 1.108 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10242     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10243 root 1.88 cat >conftest.$ac_ext <<_ACEOF
10244     /* confdefs.h. */
10245     _ACEOF
10246     cat confdefs.h >>conftest.$ac_ext
10247     cat >>conftest.$ac_ext <<_ACEOF
10248     /* end confdefs.h. */
10249     $ac_includes_default
10250     #include <$ac_header>
10251     _ACEOF
10252     rm -f conftest.$ac_objext
10253 ayin 1.108 if { (ac_try="$ac_compile"
10254     case "(($ac_try" in
10255     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10256     *) ac_try_echo=$ac_try;;
10257     esac
10258     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10259     (eval "$ac_compile") 2>conftest.er1
10260 root 1.88 ac_status=$?
10261     grep -v '^ *+' conftest.er1 >conftest.err
10262     rm -f conftest.er1
10263     cat conftest.err >&5
10264     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265 ayin 1.108 (exit $ac_status); } && {
10266     test -z "$ac_cxx_werror_flag" ||
10267     test ! -s conftest.err
10268     } && test -s conftest.$ac_objext; then
10269 root 1.88 ac_header_compiler=yes
10270     else
10271     echo "$as_me: failed program was:" >&5
10272     sed 's/^/| /' conftest.$ac_ext >&5
10273    
10274 ayin 1.108 ac_header_compiler=no
10275 root 1.88 fi
10276 ayin 1.108
10277     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10278     { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10279     echo "${ECHO_T}$ac_header_compiler" >&6; }
10280 root 1.88
10281     # Is the header present?
10282 ayin 1.108 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10283     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10284 root 1.88 cat >conftest.$ac_ext <<_ACEOF
10285     /* confdefs.h. */
10286     _ACEOF
10287     cat confdefs.h >>conftest.$ac_ext
10288     cat >>conftest.$ac_ext <<_ACEOF
10289     /* end confdefs.h. */
10290     #include <$ac_header>
10291     _ACEOF
10292 ayin 1.108 if { (ac_try="$ac_cpp conftest.$ac_ext"
10293     case "(($ac_try" in
10294     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10295     *) ac_try_echo=$ac_try;;
10296     esac
10297     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10298     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10299 root 1.88 ac_status=$?
10300     grep -v '^ *+' conftest.er1 >conftest.err
10301     rm -f conftest.er1
10302     cat conftest.err >&5
10303     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 ayin 1.108 (exit $ac_status); } >/dev/null && {
10305     test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10306     test ! -s conftest.err
10307     }; then
10308 root 1.88 ac_header_preproc=yes
10309     else
10310     echo "$as_me: failed program was:" >&5
10311     sed 's/^/| /' conftest.$ac_ext >&5
10312    
10313     ac_header_preproc=no
10314     fi
10315 ayin 1.108
10316 root 1.88 rm -f conftest.err conftest.$ac_ext
10317 ayin 1.108 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10318     echo "${ECHO_T}$ac_header_preproc" >&6; }
10319 root 1.88
10320     # So? What about this header?
10321     case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10322     yes:no: )
10323     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10324     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10325     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10326     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10327     ac_header_preproc=yes
10328     ;;
10329     no:yes:* )
10330     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10331     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10332     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10333     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10334     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10335     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10336     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10337     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10338     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10339     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10340     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10341     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10342 ayin 1.108
10343 root 1.88 ;;
10344     esac
10345 ayin 1.108 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10346     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10347     if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10348 root 1.88 echo $ECHO_N "(cached) $ECHO_C" >&6
10349     else
10350     eval "$as_ac_Header=\$ac_header_preproc"
10351     fi
10352 ayin 1.108 ac_res=`eval echo '${'$as_ac_Header'}'`
10353     { echo "$as_me:$LINENO: result: $ac_res" >&5
10354     echo "${ECHO_T}$ac_res" >&6; }
10355 root 1.88
10356     fi
10357     if test `eval echo '${'$as_ac_Header'}'` = yes; then
10358     cat >>confdefs.h <<_ACEOF
10359     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10360     _ACEOF
10361    
10362     fi
10363    
10364     done
10365    
10366    
10367    
10368     if test "${ac_cv_header_utmp_h+set}" = set; then
10369 ayin 1.108 { echo "$as_me:$LINENO: checking for utmp.h" >&5
10370     echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; }
10371 root 1.88 if test "${ac_cv_header_utmp_h+set}" = set; then
10372     echo $ECHO_N "(cached) $ECHO_C" >&6
10373     fi
10374 ayin 1.108 { echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
10375     echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; }
10376 root 1.88 else
10377     # Is the header compilable?
10378 ayin 1.108 { echo "$as_me:$LINENO: checking utmp.h usability" >&5
10379     echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6; }
10380 root 1.88 cat >conftest.$ac_ext <<_ACEOF
10381     /* confdefs.h. */
10382     _ACEOF
10383     cat confdefs.h >>conftest.$ac_ext
10384     cat >>conftest.$ac_ext <<_ACEOF
10385     /* end confdefs.h. */
10386     $ac_includes_default
10387     #include <utmp.h>
10388     _ACEOF
10389     rm -f conftest.$ac_objext
10390 ayin 1.108 if { (ac_try="$ac_compile"
10391     case "(($ac_try" in
10392     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10393     *) ac_try_echo=$ac_try;;
10394     esac
10395     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10396     (eval "$ac_compile") 2>conftest.er1
10397 root 1.88 ac_status=$?
10398     grep -v '^ *+' conftest.er1 >conftest.err
10399     rm -f conftest.er1
10400     cat conftest.err >&5
10401     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402 ayin 1.108 (exit $ac_status); } && {
10403     test -z "$ac_cxx_werror_flag" ||
10404     test ! -s conftest.err
10405     } && test -s conftest.$ac_objext; then
10406 root 1.88 ac_header_compiler=yes
10407     else
10408     echo "$as_me: failed program was:" >&5
10409     sed 's/^/| /' conftest.$ac_ext >&5
10410    
10411 ayin 1.108 ac_header_compiler=no
10412 root 1.88 fi
10413 ayin 1.108
10414     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10415     { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10416     echo "${ECHO_T}$ac_header_compiler" >&6; }
10417 root 1.88
10418     # Is the header present?
10419 ayin 1.108 { echo "$as_me:$LINENO: checking utmp.h presence" >&5
10420     echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6; }
10421 root 1.88 cat >conftest.$ac_ext <<_ACEOF
10422     /* confdefs.h. */
10423     _ACEOF
10424     cat confdefs.h >>conftest.$ac_ext
10425     cat >>conftest.$ac_ext <<_ACEOF
10426     /* end confdefs.h. */
10427     #include <utmp.h>
10428     _ACEOF
10429 ayin 1.108 if { (ac_try="$ac_cpp conftest.$ac_ext"
10430     case "(($ac_try" in
10431     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10432     *) ac_try_echo=$ac_try;;
10433     esac
10434     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10435     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10436 root 1.88 ac_status=$?
10437     grep -v '^ *+' conftest.er1 >conftest.err
10438     rm -f conftest.er1
10439     cat conftest.err >&5
10440     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441 ayin 1.108 (exit $ac_status); } >/dev/null && {
10442     test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10443     test ! -s conftest.err
10444     }; then
10445 root 1.88 ac_header_preproc=yes
10446     else
10447     echo "$as_me: failed program was:" >&5
10448     sed 's/^/| /' conftest.$ac_ext >&5
10449    
10450     ac_header_preproc=no
10451     fi
10452 ayin 1.108
10453 root 1.88 rm -f conftest.err conftest.$ac_ext
10454 ayin 1.108 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10455     echo "${ECHO_T}$ac_header_preproc" >&6; }
10456 root 1.88
10457     # So? What about this header?
10458     case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10459     yes:no: )
10460     { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
10461     echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10462     { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5
10463     echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;}
10464     ac_header_preproc=yes
10465     ;;
10466     no:yes:* )
10467     { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5
10468     echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;}
10469     { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5
10470     echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;}
10471     { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5
10472     echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;}
10473     { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5
10474     echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
10475     { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5
10476     echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;}
10477     { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5
10478     echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;}
10479 ayin 1.108
10480 root 1.88 ;;
10481     esac
10482 ayin 1.108 { echo "$as_me:$LINENO: checking for utmp.h" >&5
10483     echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; }
10484 root 1.88 if test "${ac_cv_header_utmp_h+set}" = set; then
10485     echo $ECHO_N "(cached) $ECHO_C" >&6
10486     else
10487     ac_cv_header_utmp_h=$ac_header_preproc
10488     fi
10489 ayin 1.108 { echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
10490     echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; }
10491 root 1.88
10492     fi
10493     if test $ac_cv_header_utmp_h = yes; then
10494 ayin 1.108 { echo "$as_me:$LINENO: checking for struct utmp" >&5
10495     echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6; }
10496 root 1.88 if test "${struct_utmp+set}" = set; then
10497     echo $ECHO_N "(cached) $ECHO_C" >&6
10498     else
10499     cat >conftest.$ac_ext <<_ACEOF
10500     /* confdefs.h. */
10501     _ACEOF
10502     cat confdefs.h >>conftest.$ac_ext
10503     cat >>conftest.$ac_ext <<_ACEOF
10504     /* end confdefs.h. */
10505     #include <sys/types.h>
10506     #include <utmp.h>
10507     int
10508     main ()
10509     {
10510     struct utmp ut;
10511     ;
10512     return 0;
10513     }
10514     _ACEOF
10515     rm -f conftest.$ac_objext
10516 ayin 1.108 if { (ac_try="$ac_compile"
10517     case "(($ac_try" in
10518     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10519     *) ac_try_echo=$ac_try;;
10520     esac
10521     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10522     (eval "$ac_compile") 2>conftest.er1
10523 root 1.88 ac_status=$?
10524     grep -v '^ *+' conftest.er1 >conftest.err
10525     rm -f conftest.er1
10526     cat conftest.err >&5
10527     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528 ayin 1.108 (exit $ac_status); } && {
10529     test -z "$ac_cxx_werror_flag" ||
10530     test ! -s conftest.err
10531     } && test -s conftest.$ac_objext; then
10532 root 1.88 struct_utmp=yes
10533     else
10534     echo "$as_me: failed program was:" >&5
10535     sed 's/^/| /' conftest.$ac_ext >&5
10536    
10537 ayin 1.108 struct_utmp=no
10538 root 1.88 fi
10539 ayin 1.108
10540     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10541 root 1.88 fi
10542 ayin 1.108 { echo "$as_me:$LINENO: result: $struct_utmp" >&5
10543     echo "${ECHO_T}$struct_utmp" >&6; }
10544 root 1.88 if test x$struct_utmp = xyes; then
10545    
10546     cat >>confdefs.h <<\_ACEOF
10547     #define HAVE_STRUCT_UTMP 1
10548     _ACEOF
10549    
10550     fi
10551    
10552    
10553 ayin 1.108 { echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5
10554     echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6; }
10555 root 1.88 if test "${struct_utmp_host+set}" = set; then
10556     echo $ECHO_N "(cached) $ECHO_C" >&6
10557     else
10558     cat >conftest.$ac_ext <<_ACEOF
10559     /* confdefs.h. */
10560     _ACEOF
10561     cat confdefs.h >>conftest.$ac_ext
10562     cat >>conftest.$ac_ext <<_ACEOF
10563     /* end confdefs.h. */
10564     #include <sys/types.h>
10565     #include <utmp.h>
10566     int
10567     main ()
10568     {
10569     struct utmp ut; ut.ut_host;
10570     ;
10571     return 0;
10572     }
10573     _ACEOF
10574     rm -f conftest.$ac_objext
10575 ayin 1.108 if { (ac_try="$ac_compile"
10576     case "(($ac_try" in
10577     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10578     *) ac_try_echo=$ac_try;;
10579     esac
10580     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10581     (eval "$ac_compile") 2>conftest.er1
10582 root 1.88 ac_status=$?
10583     grep -v '^ *+' conftest.er1 >conftest.err
10584     rm -f conftest.er1
10585     cat conftest.err >&5
10586     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 ayin 1.108 (exit $ac_status); } && {
10588     test -z "$ac_cxx_werror_flag" ||
10589     test ! -s conftest.err
10590     } && test -s conftest.$ac_objext; then
10591 root 1.88 struct_utmp_host=yes
10592     else
10593     echo "$as_me: failed program was:" >&5
10594     sed 's/^/| /' conftest.$ac_ext >&5
10595    
10596 ayin 1.108 struct_utmp_host=no
10597 root 1.88 fi
10598 ayin 1.108
10599     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10600 root 1.88 fi
10601 ayin 1.108 { echo "$as_me:$LINENO: result: $struct_utmp_host" >&5
10602     echo "${ECHO_T}$struct_utmp_host" >&6; }
10603 root 1.88 if test x$struct_utmp_host = xyes; then
10604    
10605     cat >>confdefs.h <<\_ACEOF
10606     #define HAVE_UTMP_HOST 1
10607     _ACEOF
10608    
10609     fi
10610    
10611 ayin 1.108 { echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5
10612     echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6; }
10613 root 1.88 if test "${struct_utmp_pid+set}" = set; then
10614     echo $ECHO_N "(cached) $ECHO_C" >&6
10615     else
10616     cat >conftest.$ac_ext <<_ACEOF
10617     /* confdefs.h. */
10618     _ACEOF
10619     cat confdefs.h >>conftest.$ac_ext
10620     cat >>conftest.$ac_ext <<_ACEOF
10621     /* end confdefs.h. */
10622     #include <sys/types.h>
10623     #include <utmp.h>
10624     int
10625     main ()
10626     {
10627     struct utmp ut; ut.ut_pid;
10628     ;
10629     return 0;
10630     }
10631     _ACEOF
10632     rm -f conftest.$ac_objext
10633 ayin 1.108 if { (ac_try="$ac_compile"
10634     case "(($ac_try" in
10635     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10636     *) ac_try_echo=$ac_try;;
10637     esac
10638     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10639     (eval "$ac_compile") 2>conftest.er1
10640 root 1.88 ac_status=$?
10641     grep -v '^ *+' conftest.er1 >conftest.err
10642     rm -f conftest.er1
10643     cat conftest.err >&5
10644     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 ayin 1.108 (exit $ac_status); } && {
10646     test -z "$ac_cxx_werror_flag" ||
10647     test ! -s conftest.err
10648     } && test -s conftest.$ac_objext; then
10649 root 1.88 struct_utmp_pid=yes
10650     else
10651     echo "$as_me: failed program was:" >&5
10652     sed 's/^/| /' conftest.$ac_ext >&5
10653    
10654 ayin 1.108 struct_utmp_pid=no
10655 root 1.88 fi
10656 ayin 1.108
10657     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10658 root 1.88 fi
10659 ayin 1.108 { echo "$as_me:$LINENO: result: $struct_utmp_pid" >&5
10660     echo "${ECHO_T}$struct_utmp_pid" >&6; }
10661 root 1.88 if test x$struct_utmp_pid = xyes; then
10662    
10663     cat >>confdefs.h <<\_ACEOF
10664     #define HAVE_UTMP_PID 1
10665     _ACEOF
10666    
10667     fi
10668    
10669     fi
10670    
10671    
10672    
10673     if test "${ac_cv_header_utmpx_h+set}" = set; then
10674 ayin 1.108 { echo "$as_me:$LINENO: checking for utmpx.h" >&5
10675     echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; }
10676 root 1.88 if test "${ac_cv_header_utmpx_h+set}" = set; then
10677     echo $ECHO_N "(cached) $ECHO_C" >&6
10678     fi
10679 ayin 1.108 { echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
10680     echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; }
10681 root 1.88 else
10682     # Is the header compilable?
10683 ayin 1.108 { echo "$as_me:$LINENO: checking utmpx.h usability" >&5
10684     echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6; }
10685 root 1.88 cat >conftest.$ac_ext <<_ACEOF
10686     /* confdefs.h. */
10687     _ACEOF
10688     cat confdefs.h >>conftest.$ac_ext
10689     cat >>conftest.$ac_ext <<_ACEOF
10690     /* end confdefs.h. */
10691     $ac_includes_default
10692     #include <utmpx.h>
10693     _ACEOF
10694     rm -f conftest.$ac_objext
10695 ayin 1.108 if { (ac_try="$ac_compile"
10696     case "(($ac_try" in
10697     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10698     *) ac_try_echo=$ac_try;;
10699     esac
10700     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10701     (eval "$ac_compile") 2>conftest.er1
10702 root 1.88 ac_status=$?
10703     grep -v '^ *+' conftest.er1 >conftest.err
10704     rm -f conftest.er1
10705     cat conftest.err >&5
10706     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707 ayin 1.108 (exit $ac_status); } && {
10708     test -z "$ac_cxx_werror_flag" ||
10709     test ! -s conftest.err
10710     } && test -s conftest.$ac_objext; then
10711 root 1.88 ac_header_compiler=yes
10712     else
10713     echo "$as_me: failed program was:" >&5
10714     sed 's/^/| /' conftest.$ac_ext >&5
10715    
10716 ayin 1.108 ac_header_compiler=no
10717 root 1.88 fi
10718 ayin 1.108
10719     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10720     { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10721     echo "${ECHO_T}$ac_header_compiler" >&6; }
10722 root 1.88
10723     # Is the header present?
10724 ayin 1.108 { echo "$as_me:$LINENO: checking utmpx.h presence" >&5
10725     echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6; }
10726 root 1.88 cat >conftest.$ac_ext <<_ACEOF
10727     /* confdefs.h. */
10728     _ACEOF
10729     cat confdefs.h >>conftest.$ac_ext
10730     cat >>conftest.$ac_ext <<_ACEOF
10731     /* end confdefs.h. */
10732     #include <utmpx.h>
10733     _ACEOF
10734 ayin 1.108 if { (ac_try="$ac_cpp conftest.$ac_ext"
10735     case "(($ac_try" in
10736     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10737     *) ac_try_echo=$ac_try;;
10738     esac
10739     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10740     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10741 root 1.88 ac_status=$?
10742     grep -v '^ *+' conftest.er1 >conftest.err
10743     rm -f conftest.er1
10744     cat conftest.err >&5
10745     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746 ayin 1.108 (exit $ac_status); } >/dev/null && {
10747     test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10748     test ! -s conftest.err
10749     }; then
10750 root 1.88 ac_header_preproc=yes
10751     else
10752     echo "$as_me: failed program was:" >&5
10753     sed 's/^/| /' conftest.$ac_ext >&5
10754    
10755     ac_header_preproc=no
10756     fi
10757 ayin 1.108
10758 root 1.88 rm -f conftest.err conftest.$ac_ext
10759 ayin 1.108 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10760     echo "${ECHO_T}$ac_header_preproc" >&6; }
10761 root 1.88
10762     # So? What about this header?
10763     case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10764     yes:no: )
10765     { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5
10766     echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10767     { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5
10768     echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;}
10769     ac_header_preproc=yes
10770     ;;
10771     no:yes:* )
10772     { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5
10773     echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;}
10774     { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5
10775     echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;}
10776     { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5
10777     echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;}
10778     { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5
10779     echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;}
10780     { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5
10781     echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;}
10782     { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5
10783     echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;}
10784 ayin 1.108
10785 root 1.88 ;;
10786     esac
10787 ayin 1.108 { echo "$as_me:$LINENO: checking for utmpx.h" >&5
10788     echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; }
10789 root 1.88 if test "${ac_cv_header_utmpx_h+set}" = set; then
10790     echo $ECHO_N "(cached) $ECHO_C" >&6
10791     else
10792     ac_cv_header_utmpx_h=$ac_header_preproc
10793     fi
10794 ayin 1.108 { echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
10795     echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; }
10796 root 1.88
10797     fi
10798     if test $ac_cv_header_utmpx_h = yes; then
10799 ayin 1.108 { echo "$as_me:$LINENO: checking for struct utmpx" >&5
10800     echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6; }
10801 root 1.88 if test "${struct_utmpx+set}" = set; then
10802     echo $ECHO_N "(cached) $ECHO_C" >&6
10803     else
10804     cat >conftest.$ac_ext <<_ACEOF
10805     /* confdefs.h. */
10806     _ACEOF
10807     cat confdefs.h >>conftest.$ac_ext
10808     cat >>conftest.$ac_ext <<_ACEOF
10809     /* end confdefs.h. */
10810     #include <sys/types.h>
10811     #include <utmpx.h>
10812     int
10813     main ()
10814     {
10815     struct utmpx ut;
10816     ;
10817     return 0;
10818     }
10819     _ACEOF
10820     rm -f conftest.$ac_objext
10821 ayin 1.108 if { (ac_try="$ac_compile"
10822     case "(($ac_try" in
10823     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10824     *) ac_try_echo=$ac_try;;
10825     esac
10826     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10827     (eval "$ac_compile") 2>conftest.er1
10828 root 1.88 ac_status=$?
10829     grep -v '^ *+' conftest.er1 >conftest.err
10830     rm -f conftest.er1
10831     cat conftest.err >&5
10832     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833 ayin 1.108 (exit $ac_status); } && {
10834     test -z "$ac_cxx_werror_flag" ||
10835     test ! -s conftest.err
10836     } && test -s conftest.$ac_objext; then
10837 root 1.105 struct_utmpx=yes
10838 root 1.88 else
10839     echo "$as_me: failed program was:" >&5
10840     sed 's/^/| /' conftest.$ac_ext >&5
10841    
10842 ayin 1.108 struct_utmpx=no
10843 root 1.88 fi
10844 ayin 1.108
10845     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10846 root 1.88 fi
10847 ayin 1.108 { echo "$as_me:$LINENO: result: $struct_utmpx" >&5
10848     echo "${ECHO_T}$struct_utmpx" >&6; }
10849 root 1.88 if test x$struct_utmpx = xyes; then
10850    
10851     cat >>confdefs.h <<\_ACEOF
10852     #define HAVE_STRUCT_UTMPX 1
10853     _ACEOF
10854    
10855     fi
10856    
10857    
10858 ayin 1.108 { echo "$as_me:$LINENO: checking for host in utmpx struct" >&5
10859     echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6; }
10860 root 1.88 if test "${struct_utmpx_host+set}" = set; then
10861     echo $ECHO_N "(cached) $ECHO_C" >&6
10862     else
10863     cat >conftest.$ac_ext <<_ACEOF
10864     /* confdefs.h. */
10865     _ACEOF
10866     cat confdefs.h >>conftest.$ac_ext
10867     cat >>conftest.$ac_ext <<_ACEOF
10868     /* end confdefs.h. */
10869     #include <sys/types.h>
10870     #include <utmpx.h>
10871     int
10872     main ()
10873     {
10874     struct utmpx utx; utx.ut_host;
10875     ;
10876     return 0;
10877     }
10878     _ACEOF
10879     rm -f conftest.$ac_objext
10880 ayin 1.108 if { (ac_try="$ac_compile"
10881     case "(($ac_try" in
10882     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10883     *) ac_try_echo=$ac_try;;
10884     esac
10885     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10886     (eval "$ac_compile") 2>conftest.er1
10887 root 1.88 ac_status=$?
10888     grep -v '^ *+' conftest.er1 >conftest.err
10889     rm -f conftest.er1
10890     cat conftest.err >&5
10891     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 ayin 1.108 (exit $ac_status); } && {
10893     test -z "$ac_cxx_werror_flag" ||
10894     test ! -s conftest.err
10895     } && test -s conftest.$ac_objext; then
10896 root 1.88 struct_utmpx_host=yes
10897     else
10898     echo "$as_me: failed program was:" >&5
10899     sed 's/^/| /' conftest.$ac_ext >&5
10900    
10901 ayin 1.108 struct_utmpx_host=no
10902 root 1.88 fi
10903 ayin 1.108
10904     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10905 root 1.88 fi
10906 ayin 1.108 { echo "$as_me:$LINENO: result: $struct_utmpx_host" >&5
10907     echo "${ECHO_T}$struct_utmpx_host" >&6; }
10908 root 1.88 if test x$struct_utmpx_host = xyes; then
10909    
10910     cat >>confdefs.h <<\_ACEOF
10911     #define HAVE_UTMPX_HOST 1
10912     _ACEOF
10913    
10914     fi
10915    
10916 ayin 1.108 { echo "$as_me:$LINENO: checking for session in utmpx struct" >&5
10917     echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6; }
10918 root 1.88 if test "${struct_utmpx_session+set}" = set; then
10919     echo $ECHO_N "(cached) $ECHO_C" >&6
10920     else
10921     cat >conftest.$ac_ext <<_ACEOF
10922     /* confdefs.h. */
10923     _ACEOF
10924     cat confdefs.h >>conftest.$ac_ext
10925     cat >>conftest.$ac_ext <<_ACEOF
10926     /* end confdefs.h. */
10927     #include <sys/types.h>
10928     #include <utmpx.h>
10929     int
10930     main ()
10931     {
10932     struct utmpx utx; utx.ut_session;
10933     ;
10934     return 0;
10935     }
10936     _ACEOF
10937     rm -f conftest.$ac_objext
10938 ayin 1.108 if { (ac_try="$ac_compile"
10939     case "(($ac_try" in
10940     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10941     *) ac_try_echo=$ac_try;;
10942     esac
10943     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10944     (eval "$ac_compile") 2>conftest.er1
10945 root 1.88 ac_status=$?
10946     grep -v '^ *+' conftest.er1 >conftest.err
10947     rm -f conftest.er1
10948     cat conftest.err >&5
10949     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 ayin 1.108 (exit $ac_status); } && {
10951     test -z "$ac_cxx_werror_flag" ||
10952     test ! -s conftest.err
10953     } && test -s conftest.$ac_objext; then
10954     struct_utmpx_session=yes
10955     else
10956     echo "$as_me: failed program was:" >&5
10957 root 1.88 sed 's/^/| /' conftest.$ac_ext >&5
10958    
10959 ayin 1.108 struct_utmpx_session=no
10960 root 1.88 fi
10961 ayin 1.108
10962     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10963 root 1.88 fi
10964 ayin 1.108 { echo "$as_me:$LINENO: result: $struct_utmpx_session" >&5
10965     echo "${ECHO_T}$struct_utmpx_session" >&6; }
10966 root 1.88 if test x$struct_utmpx_session = xyes; then
10967    
10968     cat >>confdefs.h <<\_ACEOF
10969     #define HAVE_UTMPX_SESSION 1
10970     _ACEOF
10971    
10972     fi
10973    
10974     fi
10975    
10976    
10977 ayin 1.108 { echo "$as_me:$LINENO: checking for struct lastlog" >&5
10978     echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6; }
10979 root 1.88 if test "${struct_lastlog+set}" = set; then
10980     echo $ECHO_N "(cached) $ECHO_C" >&6
10981     else
10982     cat >conftest.$ac_ext <<_ACEOF
10983     /* confdefs.h. */
10984     _ACEOF
10985     cat confdefs.h >>conftest.$ac_ext
10986     cat >>conftest.$ac_ext <<_ACEOF
10987     /* end confdefs.h. */
10988     #include <sys/types.h>
10989     #include <utmp.h>
10990     #ifdef HAVE_LASTLOG_H
10991     #include <lastlog.h>
10992     #endif
10993    
10994     int
10995     main ()
10996     {
10997     struct lastlog ll;
10998     ;
10999     return 0;
11000     }
11001     _ACEOF
11002     rm -f conftest.$ac_objext
11003 ayin 1.108 if { (ac_try="$ac_compile"
11004     case "(($ac_try" in
11005     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11006     *) ac_try_echo=$ac_try;;
11007     esac
11008     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11009     (eval "$ac_compile") 2>conftest.er1
11010 root 1.88 ac_status=$?
11011     grep -v '^ *+' conftest.er1 >conftest.err
11012     rm -f conftest.er1
11013     cat conftest.err >&5
11014     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015 ayin 1.108 (exit $ac_status); } && {
11016     test -z "$ac_cxx_werror_flag" ||
11017     test ! -s conftest.err
11018     } && test -s conftest.$ac_objext; then
11019 root 1.88 struct_lastlog=yes
11020     else
11021     echo "$as_me: failed program was:" >&5
11022     sed 's/^/| /' conftest.$ac_ext >&5
11023    
11024 ayin 1.108 struct_lastlog=no
11025 root 1.88 fi
11026 ayin 1.108
11027     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11028 root 1.88 fi
11029 ayin 1.108 { echo "$as_me:$LINENO: result: $struct_lastlog" >&5
11030     echo "${ECHO_T}$struct_lastlog" >&6; }
11031 root 1.88 if test x$struct_lastlog = xyes; then
11032    
11033     cat >>confdefs.h <<\_ACEOF
11034     #define HAVE_STRUCT_LASTLOG 1
11035     _ACEOF
11036    
11037     fi
11038    
11039 ayin 1.108 { echo "$as_me:$LINENO: checking for struct lastlogx" >&5
11040     echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6; }
11041 root 1.88 if test "${struct_lastlogx+set}" = set; then
11042     echo $ECHO_N "(cached) $ECHO_C" >&6
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 <sys/types.h>
11051     #include <utmpx.h>
11052     #ifdef HAVE_LASTLOG_H
11053     #include <lastlog.h>
11054     #endif
11055    
11056     int
11057     main ()
11058     {
11059     struct lastlogx ll;
11060     ;
11061     return 0;
11062     }
11063     _ACEOF
11064     rm -f conftest.$ac_objext
11065 ayin 1.108 if { (ac_try="$ac_compile"
11066     case "(($ac_try" in
11067     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11068     *) ac_try_echo=$ac_try;;
11069     esac
11070     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11071     (eval "$ac_compile") 2>conftest.er1
11072 root 1.88 ac_status=$?
11073     grep -v '^ *+' conftest.er1 >conftest.err
11074     rm -f conftest.er1
11075     cat conftest.err >&5
11076     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077 ayin 1.108 (exit $ac_status); } && {
11078     test -z "$ac_cxx_werror_flag" ||
11079     test ! -s conftest.err
11080     } && test -s conftest.$ac_objext; then
11081 root 1.88 struct_lastlogx=yes
11082     else
11083     echo "$as_me: failed program was:" >&5
11084     sed 's/^/| /' conftest.$ac_ext >&5
11085    
11086 ayin 1.108 struct_lastlogx=no
11087 root 1.88 fi
11088 ayin 1.108
11089     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11090 root 1.88 fi
11091 ayin 1.108 { echo "$as_me:$LINENO: result: $struct_lastlogx" >&5
11092     echo "${ECHO_T}$struct_lastlogx" >&6; }
11093 root 1.88 if test x$struct_lastlogx = xyes; then
11094    
11095     cat >>confdefs.h <<\_ACEOF
11096     #define HAVE_STRUCT_LASTLOGX 1
11097     _ACEOF
11098    
11099     fi
11100    
11101    
11102 ayin 1.108 { echo "$as_me:$LINENO: checking where utmp is located" >&5
11103     echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6; }
11104 root 1.88 if test "${path_utmp+set}" = set; then
11105     echo $ECHO_N "(cached) $ECHO_C" >&6
11106     else
11107     if test "$cross_compiling" = yes; then
11108     { echo "$as_me:$LINENO: WARNING: Define UTMP_FILE in config.h manually" >&5
11109     echo "$as_me: WARNING: Define UTMP_FILE in config.h manually" >&2;}
11110     else
11111     cat >conftest.$ac_ext <<_ACEOF
11112     /* confdefs.h. */
11113     _ACEOF
11114     cat confdefs.h >>conftest.$ac_ext
11115     cat >>conftest.$ac_ext <<_ACEOF
11116     /* end confdefs.h. */
11117     #include <stdio.h>
11118 ayin 1.102 #include <stdlib.h>
11119 root 1.88 #include <sys/types.h>
11120     #include <utmp.h>
11121     #include <errno.h>
11122     main()
11123     {
11124     char **u, *utmplist[] = {
11125     "/var/run/utmp", "/var/adm/utmp", "/etc/utmp", "/usr/etc/utmp", "/usr/adm/utmp", NULL };
11126     FILE *a, *f=fopen("conftestval", "w");
11127     if (!f) exit(1);
11128     #ifdef UTMP_FILE
11129     fprintf(f, "%s\n", UTMP_FILE);
11130     exit(0);
11131     #endif
11132     #ifdef _PATH_UTMP
11133     fprintf(f, "%s\n", _PATH_UTMP);
11134     exit(0);
11135     #endif
11136     for (u = utmplist; *u; u++) {
11137     if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
11138     fprintf(f, "%s\n", *u);
11139     exit(0);
11140     }
11141     }
11142     exit(0);
11143     }
11144     _ACEOF
11145     rm -f conftest$ac_exeext
11146 ayin 1.108 if { (ac_try="$ac_link"
11147     case "(($ac_try" in
11148     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11149     *) ac_try_echo=$ac_try;;
11150     esac
11151     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11152     (eval "$ac_link") 2>&5
11153 root 1.88 ac_status=$?
11154     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11156 ayin 1.108 { (case "(($ac_try" in
11157     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11158     *) ac_try_echo=$ac_try;;
11159     esac
11160     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11161     (eval "$ac_try") 2>&5
11162 root 1.88 ac_status=$?
11163     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164     (exit $ac_status); }; }; then
11165     path_utmp=`cat conftestval`
11166     else
11167     echo "$as_me: program exited with status $ac_status" >&5
11168     echo "$as_me: failed program was:" >&5
11169     sed 's/^/| /' conftest.$ac_ext >&5
11170    
11171     ( exit $ac_status )
11172     path_utmp=
11173     fi
11174 ayin 1.108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11175 root 1.88 fi
11176 ayin 1.108
11177    
11178 root 1.88 fi
11179 ayin 1.108 { echo "$as_me:$LINENO: result: $path_utmp" >&5
11180     echo "${ECHO_T}$path_utmp" >&6; }
11181 root 1.88 if test x$path_utmp != x; then
11182    
11183     cat >>confdefs.h <<_ACEOF
11184     #define UTMP_FILE "$path_utmp"
11185     _ACEOF
11186    
11187     fi
11188    
11189    
11190 ayin 1.108 { echo "$as_me:$LINENO: checking where utmpx is located" >&5
11191     echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6; }
11192 root 1.88 if test "${path_utmpx+set}" = set; then
11193     echo $ECHO_N "(cached) $ECHO_C" >&6
11194     else
11195     if test "$cross_compiling" = yes; then
11196     { echo "$as_me:$LINENO: WARNING: Define UTMPX_FILE in config.h manually" >&5
11197     echo "$as_me: WARNING: Define UTMPX_FILE in config.h manually" >&2;}
11198     else
11199     cat >conftest.$ac_ext <<_ACEOF
11200     /* confdefs.h. */
11201     _ACEOF
11202     cat confdefs.h >>conftest.$ac_ext
11203     cat >>conftest.$ac_ext <<_ACEOF
11204     /* end confdefs.h. */
11205     #include <stdio.h>
11206 ayin 1.102 #include <stdlib.h>
11207 root 1.88 #include <sys/types.h>
11208     #include <utmpx.h>
11209     #include <errno.h>
11210     #include <sys/stat.h>
11211     #ifdef HAVE_STRING_H
11212     #include <string.h>
11213     #endif
11214     main()
11215     {
11216     char **u, *p, *utmplist[] = {
11217     #ifdef UTMPX_FILE
11218     UTMPX_FILE,
11219     #endif
11220     #ifdef _PATH_UTMPX
11221     _PATH_UTMPX,
11222     #endif
11223     "/var/adm/utmpx", "/etc/utmpx", NULL };
11224     FILE *a, *f=fopen("conftestval", "w");
11225     struct stat statu, statux;
11226     if (!f) exit(1);
11227     for (u = utmplist; *u; u++) {
11228     if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
11229     if (stat(*u, &statux) < 0)
11230     continue;
11231     p = strdup(*u);
11232     p[strlen(p) - 1] = '\0';
11233     if (stat(p, &statu) >= 0
11234     && (statu.st_mtime - statux.st_mtime > 86400))
11235     continue;
11236     fprintf(f, "%s\n", *u);
11237     exit(0);
11238     }
11239     }
11240     exit(0);
11241     }
11242     _ACEOF
11243     rm -f conftest$ac_exeext
11244 ayin 1.108 if { (ac_try="$ac_link"
11245     case "(($ac_try" in
11246     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11247     *) ac_try_echo=$ac_try;;
11248     esac
11249     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11250     (eval "$ac_link") 2>&5
11251 root 1.88 ac_status=$?
11252     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11254 ayin 1.108 { (case "(($ac_try" in
11255     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11256     *) ac_try_echo=$ac_try;;
11257     esac
11258     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11259     (eval "$ac_try") 2>&5
11260 root 1.88 ac_status=$?
11261     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262     (exit $ac_status); }; }; then
11263     path_utmpx=`cat conftestval`
11264     else
11265     echo "$as_me: program exited with status $ac_status" >&5
11266     echo "$as_me: failed program was:" >&5
11267     sed 's/^/| /' conftest.$ac_ext >&5
11268    
11269     ( exit $ac_status )
11270     path_utmpx=
11271     fi
11272 ayin 1.108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11273 root 1.88 fi
11274 ayin 1.108
11275    
11276 root 1.88 fi
11277 ayin 1.108 { echo "$as_me:$LINENO: result: $path_utmpx" >&5
11278     echo "${ECHO_T}$path_utmpx" >&6; }
11279 root 1.88 if test x$path_utmpx != x; then
11280    
11281     cat >>confdefs.h <<_ACEOF
11282     #define UTMPX_FILE "$path_utmpx"
11283     _ACEOF
11284    
11285     fi
11286    
11287    
11288 ayin 1.108 { echo "$as_me:$LINENO: checking where wtmp is located" >&5
11289     echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6; }
11290 root 1.88 if test "${path_wtmp+set}" = set; then
11291     echo $ECHO_N "(cached) $ECHO_C" >&6
11292     else
11293     if test "$cross_compiling" = yes; then
11294     { echo "$as_me:$LINENO: WARNING: Define WTMP_FILE in config.h manually" >&5
11295     echo "$as_me: WARNING: Define WTMP_FILE in config.h manually" >&2;}
11296     else
11297     cat >conftest.$ac_ext <<_ACEOF
11298     /* confdefs.h. */
11299     _ACEOF
11300     cat confdefs.h >>conftest.$ac_ext
11301     cat >>conftest.$ac_ext <<_ACEOF
11302     /* end confdefs.h. */
11303     #include <stdio.h>
11304 ayin 1.102 #include <stdlib.h>
11305 root 1.88 #include <sys/types.h>
11306     #ifdef HAVE_UTMP_H
11307     #include <utmp.h>
11308     #endif
11309     #include <errno.h>
11310     main()
11311     {
11312     char **w, *wtmplist[] = {
11313     "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL };
11314     FILE *a, *f=fopen("conftestval", "w");
11315     if (!f) exit(1);
11316     #ifdef WTMP_FILE
11317     fprintf(f, "%s\n", WTMP_FILE);
11318     exit(0);
11319     #endif
11320     #ifdef _PATH_WTMP
11321     fprintf(f, "%s\n", _PATH_WTMP);
11322     exit(0);
11323     #endif
11324     for (w = wtmplist; *w; w++) {
11325     if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11326     fprintf(f, "%s\n", *w);
11327     exit(0);
11328     }
11329     }
11330     exit(0);
11331     }
11332     _ACEOF
11333     rm -f conftest$ac_exeext
11334 ayin 1.108 if { (ac_try="$ac_link"
11335     case "(($ac_try" in
11336     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11337     *) ac_try_echo=$ac_try;;
11338     esac
11339     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11340     (eval "$ac_link") 2>&5
11341 root 1.88 ac_status=$?
11342     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11344 ayin 1.108 { (case "(($ac_try" in
11345     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11346     *) ac_try_echo=$ac_try;;
11347     esac
11348     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11349     (eval "$ac_try") 2>&5
11350 root 1.88 ac_status=$?
11351     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352     (exit $ac_status); }; }; then
11353     path_wtmp=`cat conftestval`
11354     else
11355     echo "$as_me: program exited with status $ac_status" >&5
11356     echo "$as_me: failed program was:" >&5
11357     sed 's/^/| /' conftest.$ac_ext >&5
11358    
11359     ( exit $ac_status )
11360     path_wtmp=
11361     fi
11362 ayin 1.108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11363 root 1.88 fi
11364 ayin 1.108
11365    
11366 root 1.88 fi
11367 ayin 1.108 { echo "$as_me:$LINENO: result: $path_wtmp" >&5
11368     echo "${ECHO_T}$path_wtmp" >&6; }
11369 root 1.88 if test x$path_wtmp != x; then
11370    
11371     cat >>confdefs.h <<_ACEOF
11372     #define WTMP_FILE "$path_wtmp"
11373     _ACEOF
11374    
11375     fi
11376    
11377 ayin 1.108 { echo "$as_me:$LINENO: checking where wtmpx is located" >&5
11378     echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6; }
11379 root 1.88 if test "${path_wtmpx+set}" = set; then
11380     echo $ECHO_N "(cached) $ECHO_C" >&6
11381     else
11382     if test "$cross_compiling" = yes; then
11383     { echo "$as_me:$LINENO: WARNING: Define WTMPX_FILE in config.h manually" >&5
11384     echo "$as_me: WARNING: Define WTMPX_FILE in config.h manually" >&2;}
11385     else
11386     cat >conftest.$ac_ext <<_ACEOF
11387     /* confdefs.h. */
11388     _ACEOF
11389     cat confdefs.h >>conftest.$ac_ext
11390     cat >>conftest.$ac_ext <<_ACEOF
11391     /* end confdefs.h. */
11392     #include <stdio.h>
11393 ayin 1.102 #include <stdlib.h>
11394 root 1.88 #ifdef HAVE_UTMPX_H
11395     #include <utmpx.h>
11396     #endif
11397     #include <errno.h>
11398     main()
11399     {
11400     char **w, *wtmplist[] = {
11401     "/var/log/wtmpx", "/var/adm/wtmpx", NULL };
11402     FILE *a, *f=fopen("conftestval", "w");
11403     if (!f) exit(1);
11404     #ifdef WTMPX_FILE
11405     fprintf(f, "%s\n", WTMPX_FILE);
11406     exit(0);
11407     #endif
11408     #ifdef _PATH_WTMPX
11409     fprintf(f, "%s\n", _PATH_WTMPX);
11410     exit(0);
11411     #endif
11412     for (w = wtmplist; *w; w++) {
11413     if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11414     fprintf(f, "%s\n", *w);
11415     exit(0);
11416     }
11417     }
11418     exit(0);
11419     }
11420     _ACEOF
11421     rm -f conftest$ac_exeext
11422 ayin 1.108 if { (ac_try="$ac_link"
11423     case "(($ac_try" in
11424     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11425     *) ac_try_echo=$ac_try;;
11426     esac
11427     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11428     (eval "$ac_link") 2>&5
11429 root 1.88 ac_status=$?
11430     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11432 ayin 1.108 { (case "(($ac_try" in
11433     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11434     *) ac_try_echo=$ac_try;;
11435     esac
11436     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11437     (eval "$ac_try") 2>&5
11438 root 1.88 ac_status=$?
11439     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11440     (exit $ac_status); }; }; then
11441     path_wtmpx=`cat conftestval`
11442     else
11443     echo "$as_me: program exited with status $ac_status" >&5
11444     echo "$as_me: failed program was:" >&5
11445     sed 's/^/| /' conftest.$ac_ext >&5
11446    
11447     ( exit $ac_status )
11448     path_wtmpx=
11449     fi
11450 ayin 1.108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11451 root 1.88 fi
11452 ayin 1.108
11453    
11454 root 1.88 fi
11455 ayin 1.108 { echo "$as_me:$LINENO: result: $path_wtmpx" >&5
11456     echo "${ECHO_T}$path_wtmpx" >&6; }
11457 root 1.88 if test x$path_wtmpx != x; then
11458    
11459     cat >>confdefs.h <<_ACEOF
11460     #define WTMPX_FILE "$path_wtmpx"
11461     _ACEOF
11462    
11463     fi
11464    
11465 ayin 1.108 { echo "$as_me:$LINENO: checking where lastlog is located" >&5
11466     echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6; }
11467 root 1.88 if test "${path_lastlog+set}" = set; then
11468     echo $ECHO_N "(cached) $ECHO_C" >&6
11469     else
11470     if test "$cross_compiling" = yes; then
11471     { echo "$as_me:$LINENO: WARNING: Define LASTLOG_FILE in config.h manually" >&5
11472     echo "$as_me: WARNING: Define LASTLOG_FILE in config.h manually" >&2;}
11473     else
11474     cat >conftest.$ac_ext <<_ACEOF
11475     /* confdefs.h. */
11476     _ACEOF
11477     cat confdefs.h >>conftest.$ac_ext
11478     cat >>conftest.$ac_ext <<_ACEOF
11479     /* end confdefs.h. */
11480     #include <stdio.h>
11481 ayin 1.102 #include <stdlib.h>
11482 root 1.88 #include <sys/types.h>
11483     #ifdef HAVE_UTMPX_H
11484     #include <utmpx.h>
11485     #elif defined(HAVE_UTMP_H)
11486     #include <utmp.h>
11487     #endif
11488     #ifdef HAVE_LASTLOG_H
11489     #include <lastlog.h>
11490     #endif
11491     #include <errno.h>
11492     main()
11493     {
11494     char **w, *lastloglist[] = { "/var/log/lastlog", NULL };
11495     FILE *a, *f=fopen("conftestval", "w");
11496     if (!f) exit(1);
11497     #ifdef LASTLOG_FILE
11498     fprintf(f, "%s\n", LASTLOG_FILE);
11499     exit(0);
11500     #endif
11501     #ifdef _PATH_LASTLOG
11502     fprintf(f, "%s\n", _PATH_LASTLOG);
11503     exit(0);
11504     #endif
11505     for (w = lastloglist; *w; w++) {
11506     if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11507     fprintf(f, "%s\n", *w);
11508     exit(0);
11509     }
11510     }
11511     exit(0);
11512     }
11513     _ACEOF
11514     rm -f conftest$ac_exeext
11515 ayin 1.108 if { (ac_try="$ac_link"
11516     case "(($ac_try" in
11517     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11518     *) ac_try_echo=$ac_try;;
11519     esac
11520     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11521     (eval "$ac_link") 2>&5
11522 root 1.88 ac_status=$?
11523     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11525 ayin 1.108 { (case "(($ac_try" in
11526     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11527     *) ac_try_echo=$ac_try;;
11528     esac
11529     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11530     (eval "$ac_try") 2>&5
11531 root 1.88 ac_status=$?
11532     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533     (exit $ac_status); }; }; then
11534     path_lastlog=`cat conftestval`
11535     else
11536     echo "$as_me: program exited with status $ac_status" >&5
11537     echo "$as_me: failed program was:" >&5
11538     sed 's/^/| /' conftest.$ac_ext >&5
11539    
11540     ( exit $ac_status )
11541     path_lastlog=
11542     fi
11543 ayin 1.108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11544 root 1.88 fi
11545 ayin 1.108
11546    
11547 root 1.88 fi
11548 ayin 1.108 { echo "$as_me:$LINENO: result: $path_lastlog" >&5
11549     echo "${ECHO_T}$path_lastlog" >&6; }
11550 root 1.88 if test x$path_lastlog != x; then
11551    
11552     cat >>confdefs.h <<_ACEOF
11553     #define LASTLOG_FILE "$path_lastlog"
11554     _ACEOF
11555    
11556     if test -d "$path_lastlog"; then
11557    
11558     cat >>confdefs.h <<\_ACEOF
11559     #define LASTLOG_IS_DIR 1
11560     _ACEOF
11561    
11562     fi
11563     fi
11564    
11565 ayin 1.108 { echo "$as_me:$LINENO: checking where lastlogx is located" >&5
11566     echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; }
11567 root 1.88 if test "${path_lastlogx+set}" = set; then
11568     echo $ECHO_N "(cached) $ECHO_C" >&6
11569     else
11570     if test "$cross_compiling" = yes; then
11571     { echo "$as_me:$LINENO: WARNING: Define LASTLOGX_FILE in config.h manually" >&5
11572     echo "$as_me: WARNING: Define LASTLOGX_FILE in config.h manually" >&2;}
11573     else
11574     cat >conftest.$ac_ext <<_ACEOF
11575     /* confdefs.h. */
11576     _ACEOF
11577     cat confdefs.h >>conftest.$ac_ext
11578     cat >>conftest.$ac_ext <<_ACEOF
11579     /* end confdefs.h. */
11580     #include <stdio.h>
11581 ayin 1.102 #include <stdlib.h>
11582 root 1.88 #ifdef HAVE_UTMPX_H
11583     #include <utmpx.h>
11584     #endif
11585     #include <errno.h>
11586     main()
11587     {
11588     char **w, *wtmplist[] = { "/var/log/lastlogx", "/var/adm/lastlogx", NULL };
11589     FILE *a, *f=fopen("conftestval", "w");
11590     if (!f) exit(1);
11591     #ifdef LASTLOGX_FILE
11592     fprintf(f, "%s\n", LASTLOGX_FILE);
11593     exit(0);
11594     #endif
11595     #ifdef _PATH_LASTLOGX
11596     fprintf(f, "%s\n", _PATH_LASTLOGX);
11597     exit(0);
11598     #endif
11599     for (w = wtmplist; *w; w++) {
11600     if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11601     fprintf(f, "%s\n", *w);
11602     exit(0);
11603     }
11604     }
11605     exit(0);
11606     }
11607     _ACEOF
11608     rm -f conftest$ac_exeext
11609 ayin 1.108 if { (ac_try="$ac_link"
11610     case "(($ac_try" in
11611     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11612     *) ac_try_echo=$ac_try;;
11613     esac
11614     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11615     (eval "$ac_link") 2>&5
11616 root 1.88 ac_status=$?
11617     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11619 ayin 1.108 { (case "(($ac_try" in
11620     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11621     *) ac_try_echo=$ac_try;;
11622     esac
11623     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11624     (eval "$ac_try") 2>&5
11625 root 1.88 ac_status=$?
11626     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627     (exit $ac_status); }; }; then
11628     path_lastlogx=`cat conftestval`
11629     else
11630     echo "$as_me: program exited with status $ac_status" >&5
11631     echo "$as_me: failed program was:" >&5
11632     sed 's/^/| /' conftest.$ac_ext >&5
11633    
11634     ( exit $ac_status )
11635     path_lastlogx=
11636     fi
11637 ayin 1.108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11638 root 1.88 fi
11639 ayin 1.108
11640    
11641 root 1.88 fi
11642 ayin 1.108 { echo "$as_me:$LINENO: result: $path_lastlogx" >&5
11643     echo "${ECHO_T}$path_lastlogx" >&6; }
11644 root 1.88 if test x$path_lastlogx != x; then
11645    
11646     cat >>confdefs.h <<_ACEOF
11647     #define LASTLOGX_FILE "$path_lastlogx"
11648     _ACEOF
11649    
11650     fi
11651    
11652    
11653    
11654 ayin 1.108 { echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
11655     echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6; }
11656 root 1.88 if test "${rxvt_cv_path_ttytab+set}" = set; then
11657     echo $ECHO_N "(cached) $ECHO_C" >&6
11658     else
11659     for ttys_file in /etc/ttys /etc/ttytab;
11660     do
11661     if test -f "$ttys_file" ; then
11662     rxvt_cv_path_ttytab=$ttys_file
11663     break
11664     fi
11665     done
11666    
11667     fi
11668 ayin 1.108 { echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5
11669     echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6; }
11670 root 1.88 if test x$rxvt_cv_path_ttytab != x; then
11671    
11672     cat >>confdefs.h <<_ACEOF
11673     #define TTYTAB_FILENAME "$rxvt_cv_path_ttytab"
11674     _ACEOF
11675    
11676     fi
11677    
11678    
11679     ac_save_LIBS=$LIBS
11680     ac_save_CFLAGS=$CFLAGS
11681     CFLAGS="$CFLAGS $X_CFLAGS"
11682     LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
11683 ayin 1.108 { echo "$as_me:$LINENO: checking for working Xlocale" >&5
11684     echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; }
11685 root 1.88 if test "${rxvt_cv_func_xlocale+set}" = set; then
11686     echo $ECHO_N "(cached) $ECHO_C" >&6
11687     else
11688     if test "$cross_compiling" = yes; then
11689 root 1.105 :
11690 root 1.88 else
11691     cat >conftest.$ac_ext <<_ACEOF
11692     /* confdefs.h. */
11693     _ACEOF
11694     cat confdefs.h >>conftest.$ac_ext
11695     cat >>conftest.$ac_ext <<_ACEOF
11696     /* end confdefs.h. */
11697     #include <X11/Xlib.h>
11698 ayin 1.102 #include <stdlib.h>
11699 root 1.88 main() {
11700     char *p;
11701     if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
11702     exit (XSupportsLocale() ? 0 : 1);
11703     else
11704     exit (1);}
11705     _ACEOF
11706     rm -f conftest$ac_exeext
11707 ayin 1.108 if { (ac_try="$ac_link"
11708     case "(($ac_try" in
11709     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11710     *) ac_try_echo=$ac_try;;
11711     esac
11712     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11713     (eval "$ac_link") 2>&5
11714 root 1.88 ac_status=$?
11715     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11717 ayin 1.108 { (case "(($ac_try" in
11718     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11719     *) ac_try_echo=$ac_try;;
11720     esac
11721     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11722     (eval "$ac_try") 2>&5
11723 root 1.88 ac_status=$?
11724     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725     (exit $ac_status); }; }; then
11726     rxvt_cv_func_xlocale=yes
11727     else
11728     echo "$as_me: program exited with status $ac_status" >&5
11729     echo "$as_me: failed program was:" >&5
11730     sed 's/^/| /' conftest.$ac_ext >&5
11731    
11732     ( exit $ac_status )
11733     rxvt_cv_func_xlocale=no
11734     fi
11735 ayin 1.108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11736 root 1.88 fi
11737 ayin 1.108
11738    
11739 root 1.88 fi
11740 ayin 1.108 { echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5
11741     echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6; }
11742 root 1.105 if test x$support_xim = xyes; then
11743     if test x$rxvt_cv_func_xlocale = xyes; then
11744 root 1.88
11745     cat >>confdefs.h <<\_ACEOF
11746 root 1.105 #define USE_XIM 1
11747 root 1.88 _ACEOF
11748    
11749 root 1.105 fi
11750 root 1.88 fi
11751    
11752 ayin 1.108 { echo "$as_me:$LINENO: checking for working X setlocale" >&5
11753     echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6; }
11754 root 1.88 if test "${rxvt_cv_func_xsetlocale+set}" = set; then
11755     echo $ECHO_N "(cached) $ECHO_C" >&6
11756     else
11757     cat >conftest.$ac_ext <<_ACEOF
11758     /* confdefs.h. */
11759     _ACEOF
11760     cat confdefs.h >>conftest.$ac_ext
11761     cat >>conftest.$ac_ext <<_ACEOF
11762     /* end confdefs.h. */
11763     #define X_LOCALE 1
11764     #include <X11/Xlocale.h>
11765     int
11766     main ()
11767     {
11768     setlocale(LC_CTYPE, "");
11769     ;
11770     return 0;
11771     }
11772     _ACEOF
11773     rm -f conftest.$ac_objext conftest$ac_exeext
11774 ayin 1.108 if { (ac_try="$ac_link"
11775     case "(($ac_try" in
11776     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11777     *) ac_try_echo=$ac_try;;
11778     esac
11779     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11780     (eval "$ac_link") 2>conftest.er1
11781 root 1.88 ac_status=$?
11782     grep -v '^ *+' conftest.er1 >conftest.err
11783     rm -f conftest.er1
11784     cat conftest.err >&5
11785     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 ayin 1.108 (exit $ac_status); } && {
11787     test -z "$ac_cxx_werror_flag" ||
11788     test ! -s conftest.err
11789     } && test -s conftest$ac_exeext &&
11790     $as_test_x conftest$ac_exeext; then
11791 root 1.88 rxvt_cv_func_xsetlocale=yes
11792     else
11793     echo "$as_me: failed program was:" >&5
11794     sed 's/^/| /' conftest.$ac_ext >&5
11795    
11796 ayin 1.108 rxvt_cv_func_xsetlocale=no
11797 root 1.88 fi
11798 ayin 1.108
11799     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11800 root 1.88 conftest$ac_exeext conftest.$ac_ext
11801     fi
11802 ayin 1.108 { echo "$as_me:$LINENO: result: $rxvt_cv_func_xsetlocale" >&5
11803     echo "${ECHO_T}$rxvt_cv_func_xsetlocale" >&6; }
11804 root 1.88 if test x$rxvt_cv_func_xsetlocale = xyes; then
11805    
11806     cat >>confdefs.h <<\_ACEOF
11807     #define HAVE_XSETLOCALE 1
11808     _ACEOF
11809    
11810     fi
11811     LIBS=$ac_save_LIBS
11812     CFLAGS=$ac_save_CFLAGS
11813    
11814 ayin 1.108 { echo "$as_me:$LINENO: checking for working plain setlocale" >&5
11815     echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; }
11816 root 1.88 if test "${rxvt_cv_func_setlocale+set}" = set; then
11817     echo $ECHO_N "(cached) $ECHO_C" >&6
11818     else
11819     cat >conftest.$ac_ext <<_ACEOF
11820     /* confdefs.h. */
11821     _ACEOF
11822     cat confdefs.h >>conftest.$ac_ext
11823     cat >>conftest.$ac_ext <<_ACEOF
11824     /* end confdefs.h. */
11825     #include <clocale>
11826     int
11827     main ()
11828     {
11829     setlocale(LC_CTYPE, "");
11830     ;
11831     return 0;
11832     }
11833     _ACEOF
11834     rm -f conftest.$ac_objext conftest$ac_exeext
11835 ayin 1.108 if { (ac_try="$ac_link"
11836     case "(($ac_try" in
11837     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11838     *) ac_try_echo=$ac_try;;
11839     esac
11840     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11841     (eval "$ac_link") 2>conftest.er1
11842 root 1.88 ac_status=$?
11843     grep -v '^ *+' conftest.er1 >conftest.err
11844     rm -f conftest.er1
11845     cat conftest.err >&5
11846     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 ayin 1.108 (exit $ac_status); } && {
11848     test -z "$ac_cxx_werror_flag" ||
11849     test ! -s conftest.err
11850     } && test -s conftest$ac_exeext &&
11851     $as_test_x conftest$ac_exeext; then
11852 root 1.88 rxvt_cv_func_setlocale=yes
11853     else
11854     echo "$as_me: failed program was:" >&5
11855     sed 's/^/| /' conftest.$ac_ext >&5
11856    
11857 ayin 1.108 rxvt_cv_func_setlocale=no
11858 root 1.88 fi
11859 ayin 1.108
11860     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11861 root 1.88 conftest$ac_exeext conftest.$ac_ext
11862     fi
11863 ayin 1.108 { echo "$as_me:$LINENO: result: $rxvt_cv_func_setlocale" >&5
11864     echo "${ECHO_T}$rxvt_cv_func_setlocale" >&6; }
11865 root 1.88 if test x$rxvt_cv_func_setlocale = xyes; then
11866    
11867     cat >>confdefs.h <<\_ACEOF
11868     #define HAVE_SETLOCALE 1
11869     _ACEOF
11870    
11871     fi
11872    
11873 ayin 1.108 { echo "$as_me:$LINENO: checking for working nl_langinfo" >&5
11874     echo $ECHO_N "checking for working nl_langinfo... $ECHO_C" >&6; }
11875 root 1.88 if test "${rxvt_cv_func_nl_langinfo+set}" = set; then
11876     echo $ECHO_N "(cached) $ECHO_C" >&6
11877     else
11878     cat >conftest.$ac_ext <<_ACEOF
11879     /* confdefs.h. */
11880     _ACEOF
11881     cat confdefs.h >>conftest.$ac_ext
11882     cat >>conftest.$ac_ext <<_ACEOF
11883     /* end confdefs.h. */
11884     #include <langinfo.h>
11885     int
11886     main ()
11887     {
11888     nl_langinfo(CODESET);
11889     ;
11890     return 0;
11891     }
11892     _ACEOF
11893     rm -f conftest.$ac_objext conftest$ac_exeext
11894 ayin 1.108 if { (ac_try="$ac_link"
11895     case "(($ac_try" in
11896     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11897     *) ac_try_echo=$ac_try;;
11898     esac
11899     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11900     (eval "$ac_link") 2>conftest.er1
11901 root 1.88 ac_status=$?
11902     grep -v '^ *+' conftest.er1 >conftest.err
11903     rm -f conftest.er1
11904     cat conftest.err >&5
11905     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906 ayin 1.108 (exit $ac_status); } && {
11907     test -z "$ac_cxx_werror_flag" ||
11908     test ! -s conftest.err
11909     } && test -s conftest$ac_exeext &&
11910     $as_test_x conftest$ac_exeext; then
11911 root 1.88 rxvt_cv_func_nl_langinfo=yes
11912     else
11913     echo "$as_me: failed program was:" >&5
11914     sed 's/^/| /' conftest.$ac_ext >&5
11915    
11916 ayin 1.108 rxvt_cv_func_nl_langinfo=no
11917 root 1.88 fi
11918 ayin 1.108
11919     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11920 root 1.88 conftest$ac_exeext conftest.$ac_ext
11921     fi
11922 ayin 1.108 { echo "$as_me:$LINENO: result: $rxvt_cv_func_nl_langinfo" >&5
11923     echo "${ECHO_T}$rxvt_cv_func_nl_langinfo" >&6; }
11924 root 1.88 if test x$rxvt_cv_func_nl_langinfo = xyes; then
11925    
11926     cat >>confdefs.h <<\_ACEOF
11927     #define HAVE_NL_LANGINFO 1
11928     _ACEOF
11929    
11930     fi
11931    
11932    
11933 ayin 1.108 { echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5
11934     echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6; }
11935 root 1.88 if test "${can_pass_fds+set}" = set; then
11936     echo $ECHO_N "(cached) $ECHO_C" >&6
11937     else
11938     cat >conftest.$ac_ext <<_ACEOF
11939     /* confdefs.h. */
11940     _ACEOF
11941     cat confdefs.h >>conftest.$ac_ext
11942     cat >>conftest.$ac_ext <<_ACEOF
11943     /* end confdefs.h. */
11944    
11945 root 1.93 #include <cstddef> // broken bsds (is that redundant?) need this
11946 root 1.88 #include <sys/types.h>
11947     #include <sys/socket.h>
11948     #include <sys/uio.h>
11949    
11950     int
11951     main ()
11952     {
11953    
11954     {
11955     msghdr msg;
11956     iovec iov;
11957     char buf [100];
11958     char data = 0;
11959    
11960     iov.iov_base = &data;
11961     iov.iov_len = 1;
11962    
11963     msg.msg_iov = &iov;
11964     msg.msg_iovlen = 1;
11965     msg.msg_control = buf;
11966     msg.msg_controllen = sizeof buf;
11967    
11968     cmsghdr *cmsg = CMSG_FIRSTHDR (&msg);
11969     cmsg->cmsg_level = SOL_SOCKET;
11970     cmsg->cmsg_type = SCM_RIGHTS;
11971     cmsg->cmsg_len = 100;
11972    
11973     *(int *)CMSG_DATA (cmsg) = 5;
11974    
11975     return sendmsg (3, &msg, 0);
11976     }
11977    
11978     ;
11979     return 0;
11980     }
11981     _ACEOF
11982     rm -f conftest.$ac_objext conftest$ac_exeext
11983 ayin 1.108 if { (ac_try="$ac_link"
11984     case "(($ac_try" in
11985     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11986     *) ac_try_echo=$ac_try;;
11987     esac
11988     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11989     (eval "$ac_link") 2>conftest.er1
11990 root 1.88 ac_status=$?
11991     grep -v '^ *+' conftest.er1 >conftest.err
11992     rm -f conftest.er1
11993     cat conftest.err >&5
11994     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995 ayin 1.108 (exit $ac_status); } && {
11996     test -z "$ac_cxx_werror_flag" ||
11997     test ! -s conftest.err
11998     } && test -s conftest$ac_exeext &&
11999     $as_test_x conftest$ac_exeext; then
12000 root 1.88 can_pass_fds=yes
12001     else
12002     echo "$as_me: failed program was:" >&5
12003     sed 's/^/| /' conftest.$ac_ext >&5
12004    
12005 ayin 1.108 can_pass_fds=no
12006 root 1.88 fi
12007 ayin 1.108
12008     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12009 root 1.88 conftest$ac_exeext conftest.$ac_ext
12010     fi
12011 ayin 1.108 { echo "$as_me:$LINENO: result: $can_pass_fds" >&5
12012     echo "${ECHO_T}$can_pass_fds" >&6; }
12013 root 1.88 if test x$can_pass_fds = xyes; then
12014    
12015     cat >>confdefs.h <<\_ACEOF
12016     #define HAVE_UNIX_FDPASS 1
12017     _ACEOF
12018    
12019     else
12020     { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5
12021     echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;}
12022     { (exit 1); exit 1; }; }
12023     fi
12024    
12025    
12026 ayin 1.108 { echo "$as_me:$LINENO: checking for broken XIM callback" >&5
12027     echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6; }
12028 root 1.88 if test "${rxvt_broken_ximcb+set}" = set; then
12029 pcg 1.11 echo $ECHO_N "(cached) $ECHO_C" >&6
12030     else
12031 root 1.88 cat >conftest.$ac_ext <<_ACEOF
12032    
12033     #include <X11/Xlib.h>
12034    
12035     void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
12036    
12037     void f() {
12038     XIMCallback cb;
12039     cb.callback = im_destroy_cb;
12040     }
12041    
12042     _ACEOF
12043     rm -f conftest.$ac_objext
12044 ayin 1.108 if { (ac_try="$ac_compile"
12045     case "(($ac_try" in
12046     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12047     *) ac_try_echo=$ac_try;;
12048     esac
12049     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12050     (eval "$ac_compile") 2>conftest.er1
12051 root 1.88 ac_status=$?
12052     grep -v '^ *+' conftest.er1 >conftest.err
12053     rm -f conftest.er1
12054     cat conftest.err >&5
12055     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 ayin 1.108 (exit $ac_status); } && {
12057     test -z "$ac_cxx_werror_flag" ||
12058     test ! -s conftest.err
12059     } && test -s conftest.$ac_objext; then
12060 root 1.88 rxvt_broken_ximcb=yes
12061     else
12062     echo "$as_me: failed program was:" >&5
12063     sed 's/^/| /' conftest.$ac_ext >&5
12064    
12065 ayin 1.108 rxvt_broken_ximcb=no
12066 root 1.88 fi
12067 ayin 1.108
12068     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12069 root 1.88 fi
12070 ayin 1.108 { echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
12071     echo "${ECHO_T}$rxvt_broken_ximcb" >&6; }
12072 root 1.88
12073     if test x$rxvt_broken_ximcb = xyes; then
12074    
12075     cat >>confdefs.h <<\_ACEOF
12076     #define XIMCB_PROTO_BROKEN 1
12077     _ACEOF
12078    
12079     fi
12080    
12081    
12082    
12083    
12084    
12085    
12086    
12087     for ac_header in \
12088     pty.h \
12089     util.h \
12090     libutil.h \
12091     sys/ioctl.h \
12092     sys/stropts.h \
12093    
12094 root 1.83 do
12095 root 1.88 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12096 ayin 1.108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12097     { echo "$as_me:$LINENO: checking for $ac_header" >&5
12098     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12099     if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12100 root 1.88 echo $ECHO_N "(cached) $ECHO_C" >&6
12101     fi
12102 ayin 1.108 ac_res=`eval echo '${'$as_ac_Header'}'`
12103     { echo "$as_me:$LINENO: result: $ac_res" >&5
12104     echo "${ECHO_T}$ac_res" >&6; }
12105 root 1.88 else
12106     # Is the header compilable?
12107 ayin 1.108 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12108     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12109 root 1.88 cat >conftest.$ac_ext <<_ACEOF
12110     /* confdefs.h. */
12111     _ACEOF
12112     cat confdefs.h >>conftest.$ac_ext
12113     cat >>conftest.$ac_ext <<_ACEOF
12114     /* end confdefs.h. */
12115     $ac_includes_default
12116     #include <$ac_header>
12117     _ACEOF
12118     rm -f conftest.$ac_objext
12119 ayin 1.108 if { (ac_try="$ac_compile"
12120     case "(($ac_try" in
12121     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12122     *) ac_try_echo=$ac_try;;
12123     esac
12124     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12125     (eval "$ac_compile") 2>conftest.er1
12126 root 1.88 ac_status=$?
12127     grep -v '^ *+' conftest.er1 >conftest.err
12128     rm -f conftest.er1
12129     cat conftest.err >&5
12130     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 ayin 1.108 (exit $ac_status); } && {
12132     test -z "$ac_cxx_werror_flag" ||
12133     test ! -s conftest.err
12134     } && test -s conftest.$ac_objext; then
12135 root 1.88 ac_header_compiler=yes
12136     else
12137     echo "$as_me: failed program was:" >&5
12138     sed 's/^/| /' conftest.$ac_ext >&5
12139    
12140 ayin 1.108 ac_header_compiler=no
12141 root 1.88 fi
12142 ayin 1.108
12143     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12144     { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12145     echo "${ECHO_T}$ac_header_compiler" >&6; }
12146 root 1.88
12147     # Is the header present?
12148 ayin 1.108 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12149     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12150 root 1.88 cat >conftest.$ac_ext <<_ACEOF
12151     /* confdefs.h. */
12152     _ACEOF
12153     cat confdefs.h >>conftest.$ac_ext
12154     cat >>conftest.$ac_ext <<_ACEOF
12155     /* end confdefs.h. */
12156     #include <$ac_header>
12157     _ACEOF
12158 ayin 1.108 if { (ac_try="$ac_cpp conftest.$ac_ext"
12159     case "(($ac_try" in
12160     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12161     *) ac_try_echo=$ac_try;;
12162     esac
12163     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12164     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12165 root 1.88 ac_status=$?
12166     grep -v '^ *+' conftest.er1 >conftest.err
12167     rm -f conftest.er1
12168     cat conftest.err >&5
12169     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170 ayin 1.108 (exit $ac_status); } >/dev/null && {
12171     test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12172     test ! -s conftest.err
12173     }; then
12174 root 1.88 ac_header_preproc=yes
12175     else
12176     echo "$as_me: failed program was:" >&5
12177     sed 's/^/| /' conftest.$ac_ext >&5
12178    
12179     ac_header_preproc=no
12180     fi
12181 ayin 1.108
12182 root 1.88 rm -f conftest.err conftest.$ac_ext
12183 ayin 1.108 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12184     echo "${ECHO_T}$ac_header_preproc" >&6; }
12185 root 1.88
12186     # So? What about this header?
12187     case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
12188     yes:no: )
12189     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12190     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12191     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12192     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12193     ac_header_preproc=yes
12194     ;;
12195     no:yes:* )
12196     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12197     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12198     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12199     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12200     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12201     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12202     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12203     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12204     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12205     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12206     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12207     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12208 ayin 1.108
12209 root 1.88 ;;
12210     esac
12211 ayin 1.108 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12212     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12213     if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12214 root 1.88 echo $ECHO_N "(cached) $ECHO_C" >&6
12215     else
12216     eval "$as_ac_Header=\$ac_header_preproc"
12217     fi
12218 ayin 1.108 ac_res=`eval echo '${'$as_ac_Header'}'`
12219     { echo "$as_me:$LINENO: result: $ac_res" >&5
12220     echo "${ECHO_T}$ac_res" >&6; }
12221 root 1.88
12222     fi
12223     if test `eval echo '${'$as_ac_Header'}'` = yes; then
12224     cat >>confdefs.h <<_ACEOF
12225     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12226     _ACEOF
12227 root 1.83
12228 pcg 1.11 fi
12229 root 1.83
12230 root 1.88 done
12231    
12232 root 1.83
12233    
12234    
12235    
12236    
12237    
12238 root 1.94
12239    
12240    
12241    
12242 root 1.88 for ac_func in \
12243     revoke \
12244     _getpty \
12245     getpt \
12246     posix_openpt \
12247     isastream \
12248 root 1.94 setuid \
12249     seteuid \
12250     setreuid \
12251     setresuid \
12252 root 1.83
12253 root 1.88 do
12254     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12255 ayin 1.108 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12256     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12257     if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12258 root 1.83 echo $ECHO_N "(cached) $ECHO_C" >&6
12259     else
12260     cat >conftest.$ac_ext <<_ACEOF
12261     /* confdefs.h. */
12262     _ACEOF
12263     cat confdefs.h >>conftest.$ac_ext
12264     cat >>conftest.$ac_ext <<_ACEOF
12265     /* end confdefs.h. */
12266 root 1.88 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12267     For example, HP-UX 11i <limits.h> declares gettimeofday. */
12268     #define $ac_func innocuous_$ac_func
12269    
12270     /* System header to define __stub macros and hopefully few prototypes,
12271     which can conflict with char $ac_func (); below.
12272     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12273     <limits.h> exists even on freestanding compilers. */
12274    
12275     #ifdef __STDC__
12276     # include <limits.h>
12277     #else
12278     # include <assert.h>
12279     #endif
12280    
12281     #undef $ac_func
12282    
12283 ayin 1.108 /* Override any GCC internal prototype to avoid an error.
12284     Use char because int might match the return type of a GCC
12285     builtin and then its argument prototype would still apply. */
12286 root 1.88 #ifdef __cplusplus
12287     extern "C"
12288     #endif
12289     char $ac_func ();
12290     /* The GNU C library defines this for functions which it implements
12291     to always fail with ENOSYS. Some functions are actually named
12292     something starting with __ and the normal name is an alias. */
12293 ayin 1.108 #if defined __stub_$ac_func || defined __stub___$ac_func
12294 root 1.88 choke me
12295     #endif
12296    
12297 root 1.83 int
12298     main ()
12299     {
12300 ayin 1.108 return $ac_func ();
12301 root 1.56 ;
12302     return 0;
12303     }
12304     _ACEOF
12305     rm -f conftest.$ac_objext conftest$ac_exeext
12306 ayin 1.108 if { (ac_try="$ac_link"
12307     case "(($ac_try" in
12308     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12309     *) ac_try_echo=$ac_try;;
12310     esac
12311     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12312     (eval "$ac_link") 2>conftest.er1
12313 root 1.56 ac_status=$?
12314     grep -v '^ *+' conftest.er1 >conftest.err
12315     rm -f conftest.er1
12316     cat conftest.err >&5
12317     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 ayin 1.108 (exit $ac_status); } && {
12319     test -z "$ac_cxx_werror_flag" ||
12320     test ! -s conftest.err
12321     } && test -s conftest$ac_exeext &&
12322     $as_test_x conftest$ac_exeext; then
12323 root 1.88 eval "$as_ac_var=yes"
12324 root 1.56 else
12325     echo "$as_me: failed program was:" >&5
12326     sed 's/^/| /' conftest.$ac_ext >&5
12327    
12328 ayin 1.108 eval "$as_ac_var=no"
12329 root 1.56 fi
12330 ayin 1.108
12331     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12332 root 1.56 conftest$ac_exeext conftest.$ac_ext
12333     fi
12334 ayin 1.108 ac_res=`eval echo '${'$as_ac_var'}'`
12335     { echo "$as_me:$LINENO: result: $ac_res" >&5
12336     echo "${ECHO_T}$ac_res" >&6; }
12337 root 1.88 if test `eval echo '${'$as_ac_var'}'` = yes; then
12338     cat >>confdefs.h <<_ACEOF
12339     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12340     _ACEOF
12341    
12342     fi
12343     done
12344    
12345    
12346     have_clone=no
12347    
12348 ayin 1.108 { echo "$as_me:$LINENO: checking for /dev/ptym/clone" >&5
12349     echo $ECHO_N "checking for /dev/ptym/clone... $ECHO_C" >&6; }
12350 root 1.88 if test -e /dev/ptym/clone; then
12351 ayin 1.108 { echo "$as_me:$LINENO: result: yes" >&5
12352     echo "${ECHO_T}yes" >&6; }
12353 root 1.88
12354     cat >>confdefs.h <<\_ACEOF
12355     #define HAVE_DEV_CLONE 1
12356     _ACEOF
12357    
12358 root 1.83
12359     cat >>confdefs.h <<\_ACEOF
12360 root 1.88 #define CLONE_DEVICE "/dev/ptym/clone"
12361 root 1.56 _ACEOF
12362    
12363 root 1.88 have_clone=yes
12364     else
12365 ayin 1.108 { echo "$as_me:$LINENO: result: no" >&5
12366     echo "${ECHO_T}no" >&6; }
12367 root 1.56 fi
12368    
12369 ayin 1.108 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
12370     echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
12371 root 1.88 if test -e /dev/ptc; then
12372 ayin 1.108 { echo "$as_me:$LINENO: result: yes" >&5
12373     echo "${ECHO_T}yes" >&6; }
12374 root 1.88
12375     cat >>confdefs.h <<\_ACEOF
12376     #define HAVE_DEV_PTC 1
12377     _ACEOF
12378    
12379    
12380     cat >>confdefs.h <<\_ACEOF
12381     #define CLONE_DEVICE "/dev/ptc"
12382     _ACEOF
12383    
12384     have_clone=yes
12385 root 1.31 else
12386 ayin 1.108 { echo "$as_me:$LINENO: result: no" >&5
12387     echo "${ECHO_T}no" >&6; }
12388 root 1.88 fi
12389    
12390     case $host in
12391     *-*-cygwin*)
12392     have_clone=yes
12393    
12394     cat >>confdefs.h <<\_ACEOF
12395     #define CLONE_DEVICE "/dev/ptmx"
12396     _ACEOF
12397    
12398     ;;
12399     *)
12400 ayin 1.108 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
12401     echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
12402 root 1.88 if test -e /dev/ptmx; then
12403 ayin 1.108 { echo "$as_me:$LINENO: result: yes" >&5
12404     echo "${ECHO_T}yes" >&6; }
12405 root 1.88
12406     cat >>confdefs.h <<\_ACEOF
12407     #define HAVE_DEV_PTMX 1
12408     _ACEOF
12409    
12410    
12411     cat >>confdefs.h <<\_ACEOF
12412     #define CLONE_DEVICE "/dev/ptmx"
12413     _ACEOF
12414    
12415     have_clone=yes
12416     else
12417 ayin 1.108 { echo "$as_me:$LINENO: result: no" >&5
12418     echo "${ECHO_T}no" >&6; }
12419 root 1.88 fi
12420     ;;
12421     esac
12422    
12423     if test x$ac_cv_func_getpt = xyes -o x$ac_cv_func_posix_openpt = xyes -o x$have_clone = xyes; then
12424 ayin 1.108 { echo "$as_me:$LINENO: checking for UNIX98 ptys" >&5
12425     echo $ECHO_N "checking for UNIX98 ptys... $ECHO_C" >&6; }
12426 root 1.83 cat >conftest.$ac_ext <<_ACEOF
12427     /* confdefs.h. */
12428     _ACEOF
12429     cat confdefs.h >>conftest.$ac_ext
12430     cat >>conftest.$ac_ext <<_ACEOF
12431     /* end confdefs.h. */
12432 root 1.88 #include <stdlib.h>
12433 root 1.83 int
12434     main ()
12435     {
12436 root 1.88 grantpt(0);unlockpt(0);ptsname(0);
12437 root 1.83 ;
12438     return 0;
12439 root 1.31 }
12440     _ACEOF
12441 root 1.83 rm -f conftest.$ac_objext conftest$ac_exeext
12442 ayin 1.108 if { (ac_try="$ac_link"
12443     case "(($ac_try" in
12444     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12445     *) ac_try_echo=$ac_try;;
12446     esac
12447     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12448     (eval "$ac_link") 2>conftest.er1
12449 root 1.31 ac_status=$?
12450     grep -v '^ *+' conftest.er1 >conftest.err
12451     rm -f conftest.er1
12452     cat conftest.err >&5
12453     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454 ayin 1.108 (exit $ac_status); } && {
12455     test -z "$ac_cxx_werror_flag" ||
12456     test ! -s conftest.err
12457     } && test -s conftest$ac_exeext &&
12458     $as_test_x conftest$ac_exeext; then
12459 root 1.88 unix98_pty=yes
12460    
12461     cat >>confdefs.h <<\_ACEOF
12462     #define UNIX98_PTY 1
12463     _ACEOF
12464    
12465 ayin 1.108 { echo "$as_me:$LINENO: result: yes" >&5
12466     echo "${ECHO_T}yes" >&6; }
12467 root 1.31 else
12468     echo "$as_me: failed program was:" >&5
12469     sed 's/^/| /' conftest.$ac_ext >&5
12470    
12471 ayin 1.108 { echo "$as_me:$LINENO: result: no" >&5
12472     echo "${ECHO_T}no" >&6; }
12473 root 1.31 fi
12474 ayin 1.108
12475     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12476 root 1.83 conftest$ac_exeext conftest.$ac_ext
12477 root 1.31 fi
12478    
12479 root 1.88 if test -z "$unix98_pty"; then
12480 root 1.31
12481 root 1.88 for ac_func in openpty
12482     do
12483     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12484 ayin 1.108 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12485     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12486     if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12487 root 1.66 echo $ECHO_N "(cached) $ECHO_C" >&6
12488     else
12489     cat >conftest.$ac_ext <<_ACEOF
12490     /* confdefs.h. */
12491     _ACEOF
12492     cat confdefs.h >>conftest.$ac_ext
12493     cat >>conftest.$ac_ext <<_ACEOF
12494     /* end confdefs.h. */
12495 root 1.88 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12496     For example, HP-UX 11i <limits.h> declares gettimeofday. */
12497     #define $ac_func innocuous_$ac_func
12498    
12499     /* System header to define __stub macros and hopefully few prototypes,
12500     which can conflict with char $ac_func (); below.
12501     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12502     <limits.h> exists even on freestanding compilers. */
12503    
12504     #ifdef __STDC__
12505     # include <limits.h>
12506     #else
12507     # include <assert.h>
12508     #endif
12509    
12510     #undef $ac_func
12511    
12512 ayin 1.108 /* Override any GCC internal prototype to avoid an error.
12513     Use char because int might match the return type of a GCC
12514     builtin and then its argument prototype would still apply. */
12515 root 1.88 #ifdef __cplusplus
12516     extern "C"
12517     #endif
12518     char $ac_func ();
12519     /* The GNU C library defines this for functions which it implements
12520     to always fail with ENOSYS. Some functions are actually named
12521     something starting with __ and the normal name is an alias. */
12522 ayin 1.108 #if defined __stub_$ac_func || defined __stub___$ac_func
12523 root 1.88 choke me
12524     #endif
12525    
12526 root 1.66 int
12527     main ()
12528     {
12529 ayin 1.108 return $ac_func ();
12530 root 1.66 ;
12531     return 0;
12532     }
12533     _ACEOF
12534     rm -f conftest.$ac_objext conftest$ac_exeext
12535 ayin 1.108 if { (ac_try="$ac_link"
12536     case "(($ac_try" in
12537     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12538     *) ac_try_echo=$ac_try;;
12539     esac
12540     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12541     (eval "$ac_link") 2>conftest.er1
12542 root 1.66 ac_status=$?
12543     grep -v '^ *+' conftest.er1 >conftest.err
12544     rm -f conftest.er1
12545     cat conftest.err >&5
12546     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 ayin 1.108 (exit $ac_status); } && {
12548     test -z "$ac_cxx_werror_flag" ||
12549     test ! -s conftest.err
12550     } && test -s conftest$ac_exeext &&
12551     $as_test_x conftest$ac_exeext; then
12552 root 1.88 eval "$as_ac_var=yes"
12553 root 1.66 else
12554     echo "$as_me: failed program was:" >&5
12555     sed 's/^/| /' conftest.$ac_ext >&5
12556    
12557 ayin 1.108 eval "$as_ac_var=no"
12558 root 1.66 fi
12559 ayin 1.108
12560     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12561 root 1.66 conftest$ac_exeext conftest.$ac_ext
12562     fi
12563 ayin 1.108 ac_res=`eval echo '${'$as_ac_var'}'`
12564     { echo "$as_me:$LINENO: result: $ac_res" >&5
12565     echo "${ECHO_T}$ac_res" >&6; }
12566 root 1.88 if test `eval echo '${'$as_ac_var'}'` = yes; then
12567     cat >>confdefs.h <<_ACEOF
12568     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12569 root 1.83 _ACEOF
12570    
12571 root 1.88 else
12572 ayin 1.108 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
12573     echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
12574 root 1.88 if test "${ac_cv_lib_util_openpty+set}" = set; then
12575 root 1.66 echo $ECHO_N "(cached) $ECHO_C" >&6
12576     else
12577 root 1.88 ac_check_lib_save_LIBS=$LIBS
12578     LIBS="-lutil $LIBS"
12579     cat >conftest.$ac_ext <<_ACEOF
12580     /* confdefs.h. */
12581     _ACEOF
12582     cat confdefs.h >>conftest.$ac_ext
12583     cat >>conftest.$ac_ext <<_ACEOF
12584     /* end confdefs.h. */
12585 root 1.87
12586 ayin 1.108 /* Override any GCC internal prototype to avoid an error.
12587     Use char because int might match the return type of a GCC
12588     builtin and then its argument prototype would still apply. */
12589 root 1.88 #ifdef __cplusplus
12590     extern "C"
12591     #endif
12592     char openpty ();
12593     int
12594     main ()
12595     {
12596 ayin 1.108 return openpty ();
12597 root 1.88 ;
12598     return 0;
12599 root 1.66 }
12600     _ACEOF
12601 root 1.88 rm -f conftest.$ac_objext conftest$ac_exeext
12602 ayin 1.108 if { (ac_try="$ac_link"
12603     case "(($ac_try" in
12604     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12605     *) ac_try_echo=$ac_try;;
12606     esac
12607     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12608     (eval "$ac_link") 2>conftest.er1
12609 root 1.66 ac_status=$?
12610     grep -v '^ *+' conftest.er1 >conftest.err
12611     rm -f conftest.er1
12612     cat conftest.err >&5
12613     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 ayin 1.108 (exit $ac_status); } && {
12615     test -z "$ac_cxx_werror_flag" ||
12616     test ! -s conftest.err
12617     } && test -s conftest$ac_exeext &&
12618     $as_test_x conftest$ac_exeext; then
12619 root 1.88 ac_cv_lib_util_openpty=yes
12620 root 1.66 else
12621     echo "$as_me: failed program was:" >&5
12622     sed 's/^/| /' conftest.$ac_ext >&5
12623    
12624 ayin 1.108 ac_cv_lib_util_openpty=no
12625 root 1.88 fi
12626 ayin 1.108
12627     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12628 root 1.88 conftest$ac_exeext conftest.$ac_ext
12629     LIBS=$ac_check_lib_save_LIBS
12630 root 1.66 fi
12631 ayin 1.108 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
12632     echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
12633 root 1.88 if test $ac_cv_lib_util_openpty = yes; then
12634     cat >>confdefs.h <<\_ACEOF
12635     #define HAVE_OPENPTY 1
12636     _ACEOF
12637     LIBS="$LIBS -lutil"
12638 root 1.66 fi
12639 root 1.87
12640 root 1.88 fi
12641     done
12642 pcg 1.1
12643     fi
12644    
12645    
12646 root 1.90
12647 ayin 1.108 { echo "$as_me:$LINENO: checking for tty group" >&5
12648     echo $ECHO_N "checking for tty group... $ECHO_C" >&6; }
12649 root 1.90 if test "${tty_group+set}" = set; then
12650     echo $ECHO_N "(cached) $ECHO_C" >&6
12651     else
12652     if test "$cross_compiling" = yes; then
12653     tty_group=no
12654     else
12655     cat >conftest.$ac_ext <<_ACEOF
12656     /* confdefs.h. */
12657     _ACEOF
12658     cat confdefs.h >>conftest.$ac_ext
12659     cat >>conftest.$ac_ext <<_ACEOF
12660     /* end confdefs.h. */
12661    
12662     #include <sys/types.h>
12663     #include <sys/stat.h>
12664     #include <unistd.h>
12665     #include <grp.h>
12666    
12667     main()
12668     {
12669     struct stat st;
12670     struct group *gr;
12671     char *tty;
12672     gr = getgrnam("tty");
12673     tty = ttyname(0);
12674     if (gr != 0
12675     && tty != 0
12676     && (stat(tty, &st)) == 0
12677     && st.st_gid == gr->gr_gid)
12678     return 0;
12679     else
12680     return 1;
12681     }
12682     _ACEOF
12683     rm -f conftest$ac_exeext
12684 ayin 1.108 if { (ac_try="$ac_link"
12685     case "(($ac_try" in
12686     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12687     *) ac_try_echo=$ac_try;;
12688     esac
12689     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12690     (eval "$ac_link") 2>&5
12691 root 1.90 ac_status=$?
12692     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12694 ayin 1.108 { (case "(($ac_try" in
12695     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12696     *) ac_try_echo=$ac_try;;
12697     esac
12698     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12699     (eval "$ac_try") 2>&5
12700 root 1.90 ac_status=$?
12701     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702     (exit $ac_status); }; }; then
12703     tty_group=yes
12704     else
12705     echo "$as_me: program exited with status $ac_status" >&5
12706     echo "$as_me: failed program was:" >&5
12707     sed 's/^/| /' conftest.$ac_ext >&5
12708    
12709     ( exit $ac_status )
12710     tty_group=no
12711     fi
12712 ayin 1.108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12713 root 1.90 fi
12714 ayin 1.108
12715    
12716 root 1.90 fi
12717 ayin 1.108 { echo "$as_me:$LINENO: result: $tty_group" >&5
12718     echo "${ECHO_T}$tty_group" >&6; }
12719 root 1.90 if test x$tty_group = xyes; then
12720    
12721     cat >>confdefs.h <<\_ACEOF
12722     #define TTY_GID_SUPPORT 1
12723     _ACEOF
12724    
12725     fi
12726    
12727 root 1.39 if test x$support_xft = xyes; then
12728 root 1.86 # Extract the first word of "pkg-config", so it can be a program name with args.
12729     set dummy pkg-config; ac_word=$2
12730 ayin 1.108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12731     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12732 root 1.86 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12733     echo $ECHO_N "(cached) $ECHO_C" >&6
12734     else
12735     case $PKG_CONFIG in
12736     [\\/]* | ?:[\\/]*)
12737     ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12738     ;;
12739     *)
12740     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12741     for as_dir in $PATH
12742     do
12743     IFS=$as_save_IFS
12744     test -z "$as_dir" && as_dir=.
12745     for ac_exec_ext in '' $ac_executable_extensions; do
12746 ayin 1.108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12747 root 1.86 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12748     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12749     break 2
12750     fi
12751     done
12752     done
12753 ayin 1.108 IFS=$as_save_IFS
12754 root 1.86
12755     test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12756     ;;
12757     esac
12758     fi
12759     PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12760     if test -n "$PKG_CONFIG"; then
12761 ayin 1.108 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12762     echo "${ECHO_T}$PKG_CONFIG" >&6; }
12763 root 1.86 else
12764 ayin 1.108 { echo "$as_me:$LINENO: result: no" >&5
12765     echo "${ECHO_T}no" >&6; }
12766 root 1.86 fi
12767    
12768 ayin 1.108
12769 root 1.90 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
12770     LIBS="$LIBS `$PKG_CONFIG xft --libs`"
12771     CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
12772     else
12773     # Extract the first word of "xft-config", so it can be a program name with args.
12774 root 1.86 set dummy xft-config; ac_word=$2
12775 ayin 1.108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12776     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12777 root 1.86 if test "${ac_cv_path_XFT_CONFIG+set}" = set; then
12778     echo $ECHO_N "(cached) $ECHO_C" >&6
12779     else
12780     case $XFT_CONFIG in
12781     [\\/]* | ?:[\\/]*)
12782     ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path.
12783     ;;
12784     *)
12785     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12786     for as_dir in $PATH
12787     do
12788     IFS=$as_save_IFS
12789     test -z "$as_dir" && as_dir=.
12790     for ac_exec_ext in '' $ac_executable_extensions; do
12791 ayin 1.108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12792 root 1.86 ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12793     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12794     break 2
12795     fi
12796     done
12797     done
12798 ayin 1.108 IFS=$as_save_IFS
12799 root 1.86
12800     test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no"
12801     ;;
12802     esac
12803     fi
12804     XFT_CONFIG=$ac_cv_path_XFT_CONFIG
12805     if test -n "$XFT_CONFIG"; then
12806 ayin 1.108 { echo "$as_me:$LINENO: result: $XFT_CONFIG" >&5
12807     echo "${ECHO_T}$XFT_CONFIG" >&6; }
12808 root 1.86 else
12809 ayin 1.108 { echo "$as_me:$LINENO: result: no" >&5
12810     echo "${ECHO_T}no" >&6; }
12811 root 1.86 fi
12812    
12813 ayin 1.108
12814 root 1.86 if test $XFT_CONFIG != no; then
12815     LIBS="$LIBS `$XFT_CONFIG --libs`"
12816     CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
12817     fi
12818     fi
12819 root 1.34
12820    
12821 root 1.39 for ac_header in X11/Xft/Xft.h
12822     do
12823     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12824 ayin 1.108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12825     { echo "$as_me:$LINENO: checking for $ac_header" >&5
12826     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12827     if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12828 root 1.39 echo $ECHO_N "(cached) $ECHO_C" >&6
12829 root 1.34 fi
12830 ayin 1.108 ac_res=`eval echo '${'$as_ac_Header'}'`
12831     { echo "$as_me:$LINENO: result: $ac_res" >&5
12832     echo "${ECHO_T}$ac_res" >&6; }
12833 root 1.39 else
12834     # Is the header compilable?
12835 ayin 1.108 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12836     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12837 root 1.39 cat >conftest.$ac_ext <<_ACEOF
12838     /* confdefs.h. */
12839 root 1.26 _ACEOF
12840 root 1.39 cat confdefs.h >>conftest.$ac_ext
12841     cat >>conftest.$ac_ext <<_ACEOF
12842     /* end confdefs.h. */
12843     $ac_includes_default
12844     #include <$ac_header>
12845 root 1.31 _ACEOF
12846 root 1.39 rm -f conftest.$ac_objext
12847 ayin 1.108 if { (ac_try="$ac_compile"
12848     case "(($ac_try" in
12849     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12850     *) ac_try_echo=$ac_try;;
12851     esac
12852     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12853     (eval "$ac_compile") 2>conftest.er1
12854 root 1.39 ac_status=$?
12855     grep -v '^ *+' conftest.er1 >conftest.err
12856     rm -f conftest.er1
12857     cat conftest.err >&5
12858     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 ayin 1.108 (exit $ac_status); } && {
12860     test -z "$ac_cxx_werror_flag" ||
12861     test ! -s conftest.err
12862     } && test -s conftest.$ac_objext; then
12863 root 1.39 ac_header_compiler=yes
12864     else
12865     echo "$as_me: failed program was:" >&5
12866     sed 's/^/| /' conftest.$ac_ext >&5
12867 root 1.31
12868 ayin 1.108 ac_header_compiler=no
12869 root 1.31 fi
12870 ayin 1.108
12871     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12872     { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12873     echo "${ECHO_T}$ac_header_compiler" >&6; }
12874 pcg 1.24
12875 root 1.39 # Is the header present?
12876 ayin 1.108 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12877     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12878 root 1.39 cat >conftest.$ac_ext <<_ACEOF
12879     /* confdefs.h. */
12880 pcg 1.24 _ACEOF
12881 root 1.39 cat confdefs.h >>conftest.$ac_ext
12882     cat >>conftest.$ac_ext <<_ACEOF
12883     /* end confdefs.h. */
12884     #include <$ac_header>
12885 pcg 1.11 _ACEOF
12886 ayin 1.108 if { (ac_try="$ac_cpp conftest.$ac_ext"
12887     case "(($ac_try" in
12888     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12889     *) ac_try_echo=$ac_try;;
12890     esac
12891     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12892     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12893 root 1.39 ac_status=$?
12894     grep -v '^ *+' conftest.er1 >conftest.err
12895     rm -f conftest.er1
12896     cat conftest.err >&5
12897     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898 ayin 1.108 (exit $ac_status); } >/dev/null && {
12899     test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12900     test ! -s conftest.err
12901     }; then
12902 root 1.39 ac_header_preproc=yes
12903     else
12904     echo "$as_me: failed program was:" >&5
12905     sed 's/^/| /' conftest.$ac_ext >&5
12906 pcg 1.1
12907 root 1.39 ac_header_preproc=no
12908 pcg 1.1 fi
12909 ayin 1.108
12910 root 1.39 rm -f conftest.err conftest.$ac_ext
12911 ayin 1.108 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12912     echo "${ECHO_T}$ac_header_preproc" >&6; }
12913 pcg 1.1
12914 root 1.39 # So? What about this header?
12915     case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
12916     yes:no: )
12917     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12918     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12919     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12920     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12921     ac_header_preproc=yes
12922     ;;
12923     no:yes:* )
12924     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12925     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12926     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12927     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12928     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12929     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12930     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12931     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12932     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12933     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12934     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12935     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12936 ayin 1.108
12937 root 1.39 ;;
12938     esac
12939 ayin 1.108 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12940     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12941     if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12942 root 1.39 echo $ECHO_N "(cached) $ECHO_C" >&6
12943     else
12944     eval "$as_ac_Header=\$ac_header_preproc"
12945 pcg 1.1 fi
12946 ayin 1.108 ac_res=`eval echo '${'$as_ac_Header'}'`
12947     { echo "$as_me:$LINENO: result: $ac_res" >&5
12948     echo "${ECHO_T}$ac_res" >&6; }
12949 pcg 1.1
12950     fi
12951 root 1.39 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12952     cat >>confdefs.h <<_ACEOF
12953     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12954 pcg 1.11 _ACEOF
12955 pcg 1.1
12956 root 1.39 else
12957     support_xft=no
12958 pcg 1.1 fi
12959 pcg 1.11
12960 root 1.39 done
12961 pcg 1.1
12962 pcg 1.11
12963 ayin 1.108 { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5
12964     echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; }
12965 root 1.39 if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then
12966     echo $ECHO_N "(cached) $ECHO_C" >&6
12967     else
12968     ac_check_lib_save_LIBS=$LIBS
12969     LIBS="-lXft $LIBS"
12970     cat >conftest.$ac_ext <<_ACEOF
12971     /* confdefs.h. */
12972     _ACEOF
12973     cat confdefs.h >>conftest.$ac_ext
12974     cat >>conftest.$ac_ext <<_ACEOF
12975     /* end confdefs.h. */
12976    
12977 ayin 1.108 /* Override any GCC internal prototype to avoid an error.
12978     Use char because int might match the return type of a GCC
12979     builtin and then its argument prototype would still apply. */
12980 root 1.39 #ifdef __cplusplus
12981     extern "C"
12982     #endif
12983     char XftDrawString32 ();
12984     int
12985     main ()
12986     {
12987 ayin 1.108 return XftDrawString32 ();
12988 root 1.39 ;
12989     return 0;
12990     }
12991     _ACEOF
12992     rm -f conftest.$ac_objext conftest$ac_exeext
12993 ayin 1.108 if { (ac_try="$ac_link"
12994     case "(($ac_try" in
12995     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12996     *) ac_try_echo=$ac_try;;
12997     esac
12998     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12999     (eval "$ac_link") 2>conftest.er1
13000 root 1.39 ac_status=$?
13001     grep -v '^ *+' conftest.er1 >conftest.err
13002     rm -f conftest.er1
13003     cat conftest.err >&5
13004     echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005 ayin 1.108 (exit $ac_status); } && {
13006     test -z "$ac_cxx_werror_flag" ||
13007     test ! -s conftest.err
13008     } && test -s conftest$ac_exeext &&
13009     $as_test_x conftest$ac_exeext; then
13010 root 1.39 ac_cv_lib_Xft_XftDrawString32=yes
13011     else
13012     echo "$as_me: failed program was:" >&5
13013     sed 's/^/| /' conftest.$ac_ext >&5
13014    
13015 ayin 1.108 ac_cv_lib_Xft_XftDrawString32=no
13016 root 1.39 fi
13017 ayin 1.108
13018     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13019 root 1.39 conftest$ac_exeext conftest.$ac_ext
13020     LIBS=$ac_check_lib_save_LIBS
13021     fi
13022 ayin 1.108 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5
13023     echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; }
13024 root 1.39 if test $ac_cv_lib_Xft_XftDrawString32 = yes; then
13025     cat >>confdefs.h <<_ACEOF
13026     #define HAVE_LIBXFT 1
13027     _ACEOF
13028    
13029     LIBS="-lXft $LIBS"
13030    
13031     else
13032     support_xft=no
13033     fi
13034    
13035    
13036     if test x$support_xft = xyes; then
13037    
13038     cat >>confdefs.h <<\_ACEOF
13039     #define XFT 1
13040     _ACEOF
13041    
13042     fi
13043     fi
13044     if test x$support_styles = xyes; then
13045    
13046     cat >>confdefs.h <<\_ACEOF
13047     #define ENABLE_STYLES 1
13048     _ACEOF
13049    
13050     fi
13051     if test x$support_iso14755 = xyes; then
13052    
13053     cat >>confdefs.h <<\_ACEOF
13054     #define ISO_14755 1
13055     _ACEOF
13056    
13057     fi
13058     if test x$support_8bitctrls = xyes; then
13059    
13060     cat >>confdefs.h <<\_ACEOF
13061     #define EIGHT_BIT_CONTROLS 1
13062     _ACEOF
13063    
13064     fi
13065     if test x$support_fading = xyes; then
13066    
13067     cat >>confdefs.h <<\_ACEOF
13068     #define OFF_FOCUS_FADING 1
13069     _ACEOF
13070    
13071     fi
13072     if test x$support_tinting = xyes; then
13073    
13074     cat >>confdefs.h <<\_ACEOF
13075     #define TINTING 1
13076     _ACEOF
13077    
13078     fi
13079     if test x$support_inheritpixmap = xyes; then
13080    
13081     cat >>confdefs.h <<\_ACEOF
13082 root 1.105 #define ENABLE_TRANSPARENCY 1
13083 root 1.39 _ACEOF
13084    
13085     fi
13086     if test x$support_keepscrolling = xno; then
13087    
13088     cat >>confdefs.h <<\_ACEOF
13089     #define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
13090     _ACEOF
13091    
13092     fi
13093     if test x$support_selectionscrolling = xyes; then
13094    
13095     cat >>confdefs.h <<\_ACEOF
13096     #define SELECTION_SCROLLING 1
13097     _ACEOF
13098    
13099     fi
13100 pcg 1.1 if test x$support_mousewheel = xyes; then
13101 pcg 1.11
13102     cat >>confdefs.h <<\_ACEOF
13103 pcg 1.1 #define MOUSE_WHEEL 1
13104 pcg 1.11 _ACEOF
13105 pcg 1.1
13106     fi
13107     if test x$support_mouseslipwheel = xyes; then
13108 pcg 1.11
13109     cat >>confdefs.h <<\_ACEOF
13110 pcg 1.1 #define MOUSE_SLIP_WHEELING 1
13111 pcg 1.11 _ACEOF
13112 pcg 1.1
13113     fi
13114 root 1.103 if test x$support_xpm = xyes -o x$support_afterimage = xyes ; then
13115 pcg 1.11
13116     cat >>confdefs.h <<\_ACEOF
13117 pcg 1.1 #define XPM_BACKGROUND 1
13118 pcg 1.11 _ACEOF
13119 pcg 1.1
13120     fi
13121 root 1.103
13122     if test x$support_afterimage = xyes; then
13123    
13124     cat >>confdefs.h <<\_ACEOF
13125     #define HAVE_AFTERIMAGE 1
13126     _ACEOF
13127    
13128     fi
13129    
13130     if test x$support_afterstep = xyes; then
13131    
13132     cat >>confdefs.h <<\_ACEOF
13133     #define AFTERSTEP_INTEGRATION 1
13134     _ACEOF
13135    
13136     fi
13137    
13138 pcg 1.1 if test x$support_scroll_rxvt = xyes; then
13139 pcg 1.11
13140     cat >>confdefs.h <<\_ACEOF
13141 pcg 1.1 #define RXVT_SCROLLBAR 1
13142 pcg 1.11 _ACEOF
13143 pcg 1.1
13144     scrolltypes="rxvt"
13145     fi
13146     if test x$support_scroll_next = xyes; then
13147 pcg 1.11
13148     cat >>confdefs.h <<\_ACEOF
13149 pcg 1.1 #define NEXT_SCROLLBAR 1
13150 pcg 1.11 _ACEOF
13151 pcg 1.1
13152     scrolltypes="$scrolltypes next"
13153     fi
13154     if test x$support_scroll_xterm = xyes; then
13155 pcg 1.11
13156     cat >>confdefs.h <<\_ACEOF
13157 pcg 1.1 #define XTERM_SCROLLBAR 1
13158 pcg 1.11 _ACEOF
13159 pcg 1.1
13160     scrolltypes="$scrolltypes xterm"
13161     fi
13162 pcg 1.11 if test x$support_scroll_plain = xyes; then
13163    
13164     cat >>confdefs.h <<\_ACEOF
13165     #define PLAIN_SCROLLBAR 1
13166     _ACEOF
13167    
13168     scrolltypes="$scrolltypes plain"
13169     fi
13170 pcg 1.1 if test x$support_pointer_blank = xyes; then
13171 pcg 1.11
13172     cat >>confdefs.h <<\_ACEOF
13173 pcg 1.1 #define POINTER_BLANK 1
13174 pcg 1.11 _ACEOF
13175 pcg 1.1
13176     fi
13177 pcg 1.11 if test x$support_text_blink = xyes; then
13178    
13179     cat >>confdefs.h <<\_ACEOF
13180     #define TEXT_BLINK 1
13181     _ACEOF
13182 pcg 1.1
13183     fi
13184     if test x$support_unicode3 = xyes; then
13185 pcg 1.11
13186     cat >>confdefs.h <<\_ACEOF
13187 pcg 1.1 #define UNICODE_3 1
13188 pcg 1.11 _ACEOF
13189 pcg 1.1
13190     fi
13191 pcg 1.18 if test x$support_combining = xyes; then
13192    
13193     cat >>confdefs.h <<\_ACEOF
13194 pcg 1.20 #define ENABLE_COMBINING 1
13195 pcg 1.18 _ACEOF
13196    
13197     fi
13198 pcg 1.1 if test x$codesets = xall; then
13199 root 1.40 codesets=jp,jp-ext,kr,zh,zh-ext
13200 pcg 1.1 fi
13201 pcg 1.11
13202     cat >>confdefs.h <<\_ACEOF
13203 pcg 1.1 #define ENCODING_EU 1
13204 pcg 1.11 _ACEOF
13205 pcg 1.1
13206 pcg 1.13
13207 pcg 1.11 cat >>confdefs.h <<\_ACEOF
13208 pcg 1.1 #define ENCODING_VN 1
13209 pcg 1.11 _ACEOF
13210 pcg 1.13
13211 root 1.34 for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
13212 pcg 1.13 case "$codeset" in
13213 pcg 1.11 JP )
13214     cat >>confdefs.h <<\_ACEOF
13215 pcg 1.1 #define ENCODING_JP 1
13216 pcg 1.11 _ACEOF
13217 pcg 1.1 ;;
13218 pcg 1.11 JP_EXT )
13219     cat >>confdefs.h <<\_ACEOF
13220 pcg 1.1 #define ENCODING_JP_EXT 1
13221 pcg 1.11 _ACEOF
13222 pcg 1.1 ;;
13223 pcg 1.11 KR )
13224     cat >>confdefs.h <<\_ACEOF
13225 pcg 1.1 #define ENCODING_KR 1
13226 pcg 1.11 _ACEOF
13227 pcg 1.1 ;;
13228 root 1.40 ZH )
13229 pcg 1.11 cat >>confdefs.h <<\_ACEOF
13230 root 1.40 #define ENCODING_ZH 1
13231 pcg 1.11 _ACEOF
13232 pcg 1.1 ;;
13233 root 1.40 ZH_EXT )
13234 pcg 1.11 cat >>confdefs.h <<\_ACEOF
13235 root 1.40 #define ENCODING_ZH_EXT 1
13236 pcg 1.11 _ACEOF
13237 pcg 1.1 ;;
13238     esac
13239     done
13240    
13241 root 1.60 IF_PERL=\#
13242     if test x$support_perl = xyes; then
13243     # Extract the first word of "perl5", so it can be a program name with args.
13244     set dummy perl5; ac_word=$2
13245 ayin 1.108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13246     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13247 root 1.60 if test "${ac_cv_path_PERL+set}" = set; then
13248     echo $ECHO_N "(cached) $ECHO_C" >&6
13249     else
13250     case $PERL in
13251     [\\/]* | ?:[\\/]*)
13252     ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
13253     ;;
13254     *)
13255     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13256     for as_dir in $PATH
13257     do
13258     IFS=$as_save_IFS
13259     test -z "$as_dir" && as_dir=.
13260     for ac_exec_ext in '' $ac_executable_extensions; do
13261 ayin 1.108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13262 root 1.60 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
13263     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13264     break 2
13265     fi
13266     done
13267     done
13268 ayin 1.108 IFS=$as_save_IFS
13269 root 1.60
13270     ;;
13271     esac
13272     fi
13273     PERL=$ac_cv_path_PERL
13274     if test -n "$PERL"; then
13275 ayin 1.108 { echo "$as_me:$LINENO: result: $PERL" >&5
13276     echo "${ECHO_T}$PERL" >&6; }
13277 root 1.60 else
13278 ayin 1.108 { echo "$as_me:$LINENO: result: no" >&5
13279     echo "${ECHO_T}no" >&6; }
13280 root 1.60 fi
13281    
13282 ayin 1.108
13283 root 1.60 # Extract the first word of "perl", so it can be a program name with args.
13284     set dummy perl; ac_word=$2
13285 ayin 1.108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13286     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13287 root 1.60 if test "${ac_cv_path_PERL+set}" = set; then
13288     echo $ECHO_N "(cached) $ECHO_C" >&6
13289     else
13290     case $PERL in
13291     [\\/]* | ?:[\\/]*)
13292     ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
13293     ;;
13294     *)
13295     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13296     for as_dir in $PATH
13297     do
13298     IFS=$as_save_IFS
13299     test -z "$as_dir" && as_dir=.
13300     for ac_exec_ext in '' $ac_executable_extensions; do
13301 ayin 1.108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13302 root 1.60 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
13303     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13304     break 2
13305     fi
13306     done
13307     done
13308 ayin 1.108 IFS=$as_save_IFS
13309 root 1.60
13310     ;;
13311     esac
13312     fi
13313     PERL=$ac_cv_path_PERL
13314     if test -n "$PERL"; then
13315 ayin 1.108 { echo "$as_me:$LINENO: result: $PERL" >&5
13316     echo "${ECHO_T}$PERL" >&6; }
13317 root 1.60 else
13318 ayin 1.108 { echo "$as_me:$LINENO: result: no" >&5
13319     echo "${ECHO_T}no" >&6; }
13320 root 1.60 fi
13321    
13322    
13323 ayin 1.108
13324     { echo "$as_me:$LINENO: checking for $PERL suitability" >&5
13325     echo $ECHO_N "checking for $PERL suitability... $ECHO_C" >&6; }
13326 root 1.60 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then
13327    
13328 root 1.62 save_CXXFLAGS="$CXXFLAGS"
13329     save_LIBS="$LIBS"
13330     CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`"
13331     LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`"
13332     cat >conftest.$ac_ext <<_ACEOF
13333     /* confdefs.h. */
13334     _ACEOF
13335     cat confdefs.h >>conftest.$ac_ext
13336     cat >>conftest.$ac_ext <<_ACEOF
13337     /* end confdefs.h. */
13338    
13339     #include <EXTERN.h>
13340     #include <perl.h>
13341     #include <XSUB.h>
13342    
13343     int
13344     main ()
13345     {
13346    
13347     PerlInterpreter *perl = perl_alloc ();
13348    
13349     ;
13350     return 0;
13351     }
13352     _ACEOF
13353     rm -f conftest.$ac_objext conftest$ac_exeext
13354 ayin 1.108 if { (ac_try="$ac_link"
13355     case "(($ac_try" in
13356     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13357     *) ac_try_echo=$ac_try;;
13358     esac
13359     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13360     (eval "$ac_link") 2>conftest.er1
13361 root 1.62 ac_status=$?
13362     grep -v '^ *+' conftest.er1 >conftest.err
13363     rm -f conftest.er1
13364     cat conftest.err >&5
13365     echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366 ayin 1.108 (exit $ac_status); } && {
13367     test -z "$ac_cxx_werror_flag" ||
13368     test ! -s conftest.err
13369     } && test -s conftest$ac_exeext &&
13370     $as_test_x conftest$ac_exeext; then
13371 root 1.62 rxvt_perl_link=yes
13372     else
13373     echo "$as_me: failed program was:" >&5
13374     sed 's/^/| /' conftest.$ac_ext >&5
13375    
13376 ayin 1.108 rxvt_perl_link=no
13377 root 1.62 fi
13378 ayin 1.108
13379     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13380 root 1.62 conftest$ac_exeext conftest.$ac_ext
13381     CXXFLAGS="$save_CXXFLAGS"
13382     LIBS="$save_LIBS"
13383    
13384     if test x$rxvt_perl_link = xyes; then
13385 ayin 1.108 { echo "$as_me:$LINENO: result: ok" >&5
13386     echo "${ECHO_T}ok" >&6; }
13387 root 1.62
13388 root 1.60 cat >>confdefs.h <<\_ACEOF
13389     #define ENABLE_PERL 1
13390     _ACEOF
13391    
13392 root 1.62 IF_PERL=
13393     PERL_O=rxvtperl.o
13394     PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
13395     PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
13396     PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`"
13397     else
13398 root 1.77 { { echo "$as_me:$LINENO: error: no, unable to link" >&5
13399     echo "$as_me: error: no, unable to link" >&2;}
13400     { (exit 1); exit 1; }; }
13401 root 1.62 fi
13402 root 1.60 else
13403 root 1.77 { { echo "$as_me:$LINENO: error: no working perl found, or perl not version >= 5.8" >&5
13404     echo "$as_me: error: no working perl found, or perl not version >= 5.8" >&2;}
13405     { (exit 1); exit 1; }; }
13406 root 1.60 fi
13407     fi
13408    
13409    
13410    
13411    
13412    
13413    
13414    
13415 root 1.66 if test x$support_perl = xyes; then
13416 root 1.64 support_frills=yes
13417     fi
13418    
13419 ayin 1.106 if test x$support_frills = xyes; then
13420    
13421     cat >>confdefs.h <<\_ACEOF
13422     #define ENABLE_FRILLS 1
13423     _ACEOF
13424    
13425     fi
13426    
13427 pcg 1.1
13428    
13429    
13430    
13431    
13432    
13433    
13434    
13435    
13436    
13437 root 1.103
13438    
13439 pcg 1.1 test "$program_prefix" != NONE &&
13440 ayin 1.108 program_transform_name="s&^&$program_prefix&;$program_transform_name"
13441 pcg 1.1 # Use a double $ so make ignores it.
13442     test "$program_suffix" != NONE &&
13443 ayin 1.108 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
13444 pcg 1.11 # Double any \ or $. echo might interpret backslashes.
13445     # By default was `s,x,x', remove it if useless.
13446     cat <<\_ACEOF >conftest.sed
13447     s/[\\$]/&&/g;s/;s,x,x,$//
13448     _ACEOF
13449     program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
13450 ayin 1.108 rm -f conftest.sed
13451 pcg 1.1
13452    
13453    
13454    
13455    
13456     if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
13457     include_stdint_h="#include <stdint.h>"
13458     else
13459     include_stdint_h="/* #include <stdint.h> */"
13460 pcg 1.11 fi
13461 pcg 1.1 if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
13462 pcg 1.18 include_stdarg_h="#include <cstdarg>"
13463 pcg 1.1 else
13464 pcg 1.18 include_stdarg_h="/* #include <cstdarg> */"
13465 pcg 1.11 fi
13466 pcg 1.1 if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
13467 pcg 1.18 include_stdlib_h="#include <cstdlib>"
13468 pcg 1.1 else
13469 pcg 1.18 include_stdlib_h="/* #include <cstdlib> */"
13470 pcg 1.11 fi
13471 pcg 1.1 if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
13472     include_unistd_h="#include <unistd.h>"
13473     else
13474     include_unistd_h="/* #include <unistd.h> */"
13475 pcg 1.11 fi
13476 pcg 1.1 if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
13477 pcg 1.18 include_string_h="#include <cstring>"
13478 pcg 1.1 else
13479 pcg 1.18 include_string_h="/* #include <cstring> */"
13480 pcg 1.11 fi
13481 pcg 1.1 if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
13482     include_fcntl_h="#include <fcntl.h>"
13483     else
13484     include_fcntl_h="/* #include <fcntl.h> */"
13485 pcg 1.11 fi
13486 pcg 1.1 if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
13487     include_util_h="#include <util.h>"
13488     else
13489     include_util_h="/* #include <util.h> */"
13490 pcg 1.11 fi
13491 pcg 1.1 if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
13492     include_assert_h="#include <assert.h>"
13493     else
13494     include_assert_h="/* #include <assert.h> */"
13495 pcg 1.11 fi
13496 pcg 1.1 if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
13497     include_sys_ioctl_h="#include <sys/ioctl.h>"
13498     else
13499     include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
13500 pcg 1.11 fi
13501 pcg 1.1 if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
13502     include_sys_select_h="#include <sys/select.h>"
13503     else
13504     include_sys_select_h="/* #include <sys/select.h> */"
13505 pcg 1.11 fi
13506 pcg 1.1 if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
13507     include_sys_strredir_h="#include <sys/strredir.h>"
13508     else
13509     include_sys_strredir_h="/* #include <sys/strredir.h> */"
13510 pcg 1.11 fi
13511 pcg 1.1 if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
13512     include_sys_time_h="#include <sys/time.h>"
13513     else
13514     include_sys_time_h="/* #include <sys/time.h> */"
13515 pcg 1.11 fi
13516 pcg 1.1 if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
13517     include_time_h="#include <time.h>"
13518     else
13519     include_time_h="/* #include <time.h> */"
13520 pcg 1.11 fi
13521 pcg 1.1
13522 ayin 1.108 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h"
13523 root 1.32
13524 pcg 1.11 cat >confcache <<\_ACEOF
13525 pcg 1.1 # This file is a shell script that caches the results of configure
13526     # tests run on this system so they can be shared between configure
13527 pcg 1.11 # scripts and configure runs, see configure's option --config-cache.
13528     # It is not useful on other systems. If it contains results you don't
13529     # want to keep, you may remove or edit it.
13530 pcg 1.1 #
13531 pcg 1.11 # config.status only pays attention to the cache file if you give it
13532     # the --recheck option to rerun configure.
13533 pcg 1.1 #
13534 pcg 1.11 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13535     # loading this file, other *unset* `ac_cv_foo' will be assigned the
13536     # following values.
13537    
13538     _ACEOF
13539    
13540 pcg 1.1 # The following way of writing the cache mishandles newlines in values,
13541     # but we know of no workaround that is simple, portable, and efficient.
13542 ayin 1.108 # So, we kill variables containing newlines.
13543 pcg 1.1 # Ultrix sh set writes to stderr and can't be redirected directly,
13544     # and sets the high bit in the cache file unless we assign to the vars.
13545 ayin 1.108 (
13546     for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13547     eval ac_val=\$$ac_var
13548     case $ac_val in #(
13549     *${as_nl}*)
13550     case $ac_var in #(
13551     *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13552     echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
13553     esac
13554     case $ac_var in #(
13555     _ | IFS | as_nl) ;; #(
13556     *) $as_unset $ac_var ;;
13557     esac ;;
13558     esac
13559     done
13560    
13561 pcg 1.11 (set) 2>&1 |
13562 ayin 1.108 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13563     *${as_nl}ac_space=\ *)
13564 pcg 1.11 # `set' does not quote correctly, so add quotes (double-quote
13565     # substitution turns \\\\ into \\, and sed turns \\ into \).
13566     sed -n \
13567     "s/'/'\\\\''/g;
13568     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13569 ayin 1.108 ;; #(
13570 pcg 1.11 *)
13571     # `set' quotes correctly as required by POSIX, so do not add quotes.
13572 ayin 1.108 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13573 pcg 1.11 ;;
13574 ayin 1.108 esac |
13575     sort
13576     ) |
13577 pcg 1.11 sed '
13578 ayin 1.108 /^ac_cv_env_/b end
13579 pcg 1.11 t clear
13580 ayin 1.108 :clear
13581 pcg 1.11 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13582     t end
13583 ayin 1.108 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13584     :end' >>confcache
13585     if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13586     if test -w "$cache_file"; then
13587     test "x$cache_file" != "x/dev/null" &&
13588     { echo "$as_me:$LINENO: updating cache $cache_file" >&5
13589     echo "$as_me: updating cache $cache_file" >&6;}
13590 pcg 1.11 cat confcache >$cache_file
13591 pcg 1.1 else
13592 ayin 1.108 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13593     echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13594 pcg 1.1 fi
13595     fi
13596     rm -f confcache
13597    
13598     test "x$prefix" = xNONE && prefix=$ac_default_prefix
13599     # Let make expand exec_prefix.
13600     test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13601    
13602 pcg 1.11 DEFS=-DHAVE_CONFIG_H
13603    
13604     ac_libobjs=
13605     ac_ltlibobjs=
13606     for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13607     # 1. Remove the extension, and $U if already installed.
13608 ayin 1.108 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13609     ac_i=`echo "$ac_i" | sed "$ac_script"`
13610     # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13611     # will be set to the directory where LIBOBJS objects are built.
13612     ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13613     ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13614 pcg 1.11 done
13615     LIBOBJS=$ac_libobjs
13616    
13617     LTLIBOBJS=$ac_ltlibobjs
13618    
13619 pcg 1.1
13620    
13621     : ${CONFIG_STATUS=./config.status}
13622 pcg 1.11 ac_clean_files_save=$ac_clean_files
13623     ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13624     { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13625     echo "$as_me: creating $CONFIG_STATUS" >&6;}
13626     cat >$CONFIG_STATUS <<_ACEOF
13627     #! $SHELL
13628     # Generated by $as_me.
13629 pcg 1.1 # Run this file to recreate the current configuration.
13630     # Compiler output produced by configure, useful for debugging
13631 pcg 1.11 # configure, is in config.log if it exists.
13632    
13633     debug=false
13634     ac_cs_recheck=false
13635     ac_cs_silent=false
13636     SHELL=\${CONFIG_SHELL-$SHELL}
13637     _ACEOF
13638    
13639     cat >>$CONFIG_STATUS <<\_ACEOF
13640     ## --------------------- ##
13641     ## M4sh Initialization. ##
13642     ## --------------------- ##
13643    
13644 ayin 1.108 # Be more Bourne compatible
13645     DUALCASE=1; export DUALCASE # for MKS sh
13646 pcg 1.11 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13647     emulate sh
13648     NULLCMD=:
13649     # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13650     # is contrary to our usage. Disable this feature.
13651     alias -g '${1+"$@"}'='"$@"'
13652 ayin 1.108 setopt NO_GLOB_SUBST
13653     else
13654     case `(set -o) 2>/dev/null` in
13655     *posix*) set -o posix ;;
13656     esac
13657    
13658     fi
13659    
13660    
13661    
13662    
13663     # PATH needs CR
13664     # Avoid depending upon Character Ranges.
13665     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13666     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13667     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13668     as_cr_digits='0123456789'
13669     as_cr_alnum=$as_cr_Letters$as_cr_digits
13670    
13671     # The user is always right.
13672     if test "${PATH_SEPARATOR+set}" != set; then
13673     echo "#! /bin/sh" >conf$$.sh
13674     echo "exit 0" >>conf$$.sh
13675     chmod +x conf$$.sh
13676     if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13677     PATH_SEPARATOR=';'
13678     else
13679     PATH_SEPARATOR=:
13680     fi
13681     rm -f conf$$.sh
13682 ayin 1.106 fi
13683    
13684     # Support unset when possible.
13685     if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13686     as_unset=unset
13687 root 1.105 else
13688 ayin 1.106 as_unset=false
13689 pcg 1.11 fi
13690    
13691    
13692 ayin 1.108 # IFS
13693     # We need space, tab and new line, in precisely that order. Quoting is
13694     # there to prevent editors from complaining about space-tab.
13695     # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13696     # splitting by setting IFS to empty value.)
13697     as_nl='
13698     '
13699     IFS=" "" $as_nl"
13700    
13701     # Find who we are. Look in the path if we contain no directory separator.
13702     case $0 in
13703     *[\\/]* ) as_myself=$0 ;;
13704     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13705     for as_dir in $PATH
13706     do
13707     IFS=$as_save_IFS
13708     test -z "$as_dir" && as_dir=.
13709     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13710     done
13711     IFS=$as_save_IFS
13712    
13713     ;;
13714     esac
13715     # We did not find ourselves, most probably we were run as `sh COMMAND'
13716     # in which case we are not to be found in the path.
13717     if test "x$as_myself" = x; then
13718     as_myself=$0
13719     fi
13720     if test ! -f "$as_myself"; then
13721     echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13722     { (exit 1); exit 1; }
13723     fi
13724    
13725 ayin 1.106 # Work around bugs in pre-3.0 UWIN ksh.
13726 ayin 1.108 for as_var in ENV MAIL MAILPATH
13727     do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13728     done
13729 ayin 1.106 PS1='$ '
13730     PS2='> '
13731 root 1.105 PS4='+ '
13732    
13733     # NLS nuisances.
13734     for as_var in \
13735     LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13736     LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13737     LC_TELEPHONE LC_TIME
13738     do
13739     if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13740     eval $as_var=C; export $as_var
13741     else
13742 ayin 1.108 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13743 ayin 1.104 fi
13744 root 1.105 done
13745    
13746     # Required to use basename.
13747 ayin 1.108 if expr a : '\(a\)' >/dev/null 2>&1 &&
13748     test "X`expr 00001 : '.*\(...\)'`" = X001; then
13749 root 1.105 as_expr=expr
13750     else
13751     as_expr=false
13752     fi
13753    
13754 ayin 1.108 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13755 root 1.105 as_basename=basename
13756     else
13757     as_basename=false
13758     fi
13759    
13760    
13761     # Name of the executable.
13762 ayin 1.108 as_me=`$as_basename -- "$0" ||
13763 root 1.105 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13764     X"$0" : 'X\(//\)$' \| \
13765 ayin 1.108 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13766 root 1.105 echo X/"$0" |
13767 ayin 1.108 sed '/^.*\/\([^/][^/]*\)\/*$/{
13768     s//\1/
13769     q
13770     }
13771     /^X\/\(\/\/\)$/{
13772     s//\1/
13773     q
13774     }
13775     /^X\/\(\/\).*/{
13776     s//\1/
13777     q
13778     }
13779     s/.*/./; q'`
13780    
13781     # CDPATH.
13782     $as_unset CDPATH
13783 root 1.105
13784    
13785 ayin 1.108
13786     as_lineno_1=$LINENO
13787     as_lineno_2=$LINENO
13788     test "x$as_lineno_1" != "x$as_lineno_2" &&
13789     test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13790 pcg 1.11
13791     # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13792     # uniformly replaced by the line number. The first 'sed' inserts a
13793 ayin 1.108 # line-number line after each line using $LINENO; the second 'sed'
13794     # does the real work. The second script uses 'N' to pair each
13795     # line-number line with the line containing $LINENO, and appends
13796     # trailing '-' during substitution so that $LINENO is not a special
13797     # case at line end.
13798 pcg 1.11 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13799 ayin 1.108 # scripts with optimization help from Paolo Bonzini. Blame Lee
13800     # E. McMahon (1931-1989) for sed's syntax. :-)
13801     sed -n '
13802     p
13803     /[$]LINENO/=
13804     ' <$as_myself |
13805 pcg 1.11 sed '
13806 ayin 1.108 s/[$]LINENO.*/&-/
13807     t lineno
13808     b
13809     :lineno
13810 pcg 1.11 N
13811 ayin 1.108 :loop
13812     s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13813 pcg 1.11 t loop
13814 ayin 1.108 s/-\n.*//
13815 pcg 1.11 ' >$as_me.lineno &&
13816 ayin 1.108 chmod +x "$as_me.lineno" ||
13817     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13818 pcg 1.11 { (exit 1); exit 1; }; }
13819    
13820     # Don't try to exec as it changes $[0], causing all sort of problems
13821     # (the dirname of $[0] is not the place where we might find the
13822 ayin 1.108 # original and so on. Autoconf is especially sensitive to this).
13823     . "./$as_me.lineno"
13824 pcg 1.11 # Exit status is that of the last command.
13825     exit
13826     }
13827    
13828    
13829 ayin 1.108 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13830     as_dirname=dirname
13831     else
13832     as_dirname=false
13833     fi
13834    
13835     ECHO_C= ECHO_N= ECHO_T=
13836     case `echo -n x` in
13837     -n*)
13838     case `echo 'x\c'` in
13839     *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13840     *) ECHO_C='\c';;
13841     esac;;
13842     *)
13843     ECHO_N='-n';;
13844 pcg 1.11 esac
13845    
13846 ayin 1.108 if expr a : '\(a\)' >/dev/null 2>&1 &&
13847     test "X`expr 00001 : '.*\(...\)'`" = X001; then
13848 pcg 1.11 as_expr=expr
13849     else
13850     as_expr=false
13851     fi
13852    
13853     rm -f conf$$ conf$$.exe conf$$.file
13854 ayin 1.108 if test -d conf$$.dir; then
13855     rm -f conf$$.dir/conf$$.file
13856     else
13857     rm -f conf$$.dir
13858     mkdir conf$$.dir
13859     fi
13860 pcg 1.11 echo >conf$$.file
13861     if ln -s conf$$.file conf$$ 2>/dev/null; then
13862 ayin 1.108 as_ln_s='ln -s'
13863     # ... but there are two gotchas:
13864     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13865     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13866     # In both cases, we have to default to `cp -p'.
13867     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13868 pcg 1.11 as_ln_s='cp -p'
13869     elif ln conf$$.file conf$$ 2>/dev/null; then
13870     as_ln_s=ln
13871     else
13872     as_ln_s='cp -p'
13873     fi
13874 ayin 1.108 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13875     rmdir conf$$.dir 2>/dev/null
13876 pcg 1.11
13877     if mkdir -p . 2>/dev/null; then
13878     as_mkdir_p=:
13879     else
13880     test -d ./-p && rmdir ./-p
13881     as_mkdir_p=false
13882     fi
13883    
13884 ayin 1.108 if test -x / >/dev/null 2>&1; then
13885     as_test_x='test -x'
13886     else
13887     if ls -dL / >/dev/null 2>&1; then
13888     as_ls_L_option=L
13889     else
13890     as_ls_L_option=
13891     fi
13892     as_test_x='
13893     eval sh -c '\''
13894     if test -d "$1"; then
13895     test -d "$1/.";
13896     else
13897     case $1 in
13898     -*)set "./$1";;
13899     esac;
13900     case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13901     ???[sx]*):;;*)false;;esac;fi
13902     '\'' sh
13903     '
13904     fi
13905     as_executable_p=$as_test_x
13906 pcg 1.11
13907     # Sed expression to map a string onto a valid CPP name.
13908     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13909    
13910     # Sed expression to map a string onto a valid variable name.
13911     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13912    
13913    
13914     exec 6>&1
13915    
13916 ayin 1.108 # Save the log message, to keep $[0] and so on meaningful, and to
13917 pcg 1.11 # report actual input values of CONFIG_FILES etc. instead of their
13918 ayin 1.108 # values after options handling.
13919     ac_log="
13920 pcg 1.11 This file was extended by $as_me, which was
13921 ayin 1.108 generated by GNU Autoconf 2.61. Invocation command line was
13922 pcg 1.11
13923     CONFIG_FILES = $CONFIG_FILES
13924     CONFIG_HEADERS = $CONFIG_HEADERS
13925     CONFIG_LINKS = $CONFIG_LINKS
13926     CONFIG_COMMANDS = $CONFIG_COMMANDS
13927     $ $0 $@
13928    
13929 ayin 1.108 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13930     "
13931    
13932 pcg 1.11 _ACEOF
13933    
13934 ayin 1.108 cat >>$CONFIG_STATUS <<_ACEOF
13935 pcg 1.11 # Files that config.status was made for.
13936 ayin 1.108 config_files="$ac_config_files"
13937     config_headers="$ac_config_headers"
13938 ayin 1.106
13939 ayin 1.108 _ACEOF
13940 pcg 1.11
13941     cat >>$CONFIG_STATUS <<\_ACEOF
13942     ac_cs_usage="\
13943     \`$as_me' instantiates files from templates according to the
13944     current configuration.
13945    
13946     Usage: $0 [OPTIONS] [FILE]...
13947    
13948     -h, --help print this help, then exit
13949 ayin 1.108 -V, --version print version number and configuration settings, then exit
13950 pcg 1.11 -q, --quiet do not print progress messages
13951     -d, --debug don't remove temporary files
13952     --recheck update $as_me by reconfiguring in the same conditions
13953     --file=FILE[:TEMPLATE]
13954     instantiate the configuration file FILE
13955     --header=FILE[:TEMPLATE]
13956     instantiate the configuration header FILE
13957    
13958     Configuration files:
13959     $config_files
13960    
13961     Configuration headers:
13962     $config_headers
13963    
13964     Report bugs to <bug-autoconf@gnu.org>."
13965 ayin 1.108
13966 ayin 1.106 _ACEOF
13967 pcg 1.11 cat >>$CONFIG_STATUS <<_ACEOF
13968     ac_cs_version="\\
13969     config.status
13970 ayin 1.108 configured by $0, generated by GNU Autoconf 2.61,
13971     with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13972 pcg 1.11
13973 ayin 1.108 Copyright (C) 2006 Free Software Foundation, Inc.
13974 pcg 1.11 This config.status script is free software; the Free Software Foundation
13975     gives unlimited permission to copy, distribute and modify it."
13976 ayin 1.108
13977     ac_pwd='$ac_pwd'
13978     srcdir='$srcdir'
13979     INSTALL='$INSTALL'
13980 pcg 1.11 _ACEOF
13981    
13982     cat >>$CONFIG_STATUS <<\_ACEOF
13983     # If no file are specified by the user, then we need to provide default
13984     # value. By we need to know if files were specified by the user.
13985     ac_need_defaults=:
13986     while test $# != 0
13987 pcg 1.1 do
13988 pcg 1.11 case $1 in
13989     --*=*)
13990 ayin 1.108 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13991     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13992 pcg 1.11 ac_shift=:
13993     ;;
13994 ayin 1.108 *)
13995 pcg 1.11 ac_option=$1
13996     ac_optarg=$2
13997     ac_shift=shift
13998     ;;
13999     esac
14000    
14001     case $ac_option in
14002     # Handling of the options.
14003 pcg 1.1 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14004 pcg 1.11 ac_cs_recheck=: ;;
14005 ayin 1.108 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14006     echo "$ac_cs_version"; exit ;;
14007     --debug | --debu | --deb | --de | --d | -d )
14008 pcg 1.11 debug=: ;;
14009     --file | --fil | --fi | --f )
14010     $ac_shift
14011     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14012     ac_need_defaults=false;;
14013     --header | --heade | --head | --hea )
14014     $ac_shift
14015     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14016     ac_need_defaults=false;;
14017 ayin 1.108 --he | --h)
14018     # Conflict between --help and --header
14019     { echo "$as_me: error: ambiguous option: $1
14020     Try \`$0 --help' for more information." >&2
14021     { (exit 1); exit 1; }; };;
14022     --help | --hel | -h )
14023     echo "$ac_cs_usage"; exit ;;
14024 pcg 1.11 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14025     | -silent | --silent | --silen | --sile | --sil | --si | --s)
14026     ac_cs_silent=: ;;
14027    
14028     # This is an error.
14029 ayin 1.108 -*) { echo "$as_me: error: unrecognized option: $1
14030     Try \`$0 --help' for more information." >&2
14031 pcg 1.11 { (exit 1); exit 1; }; } ;;
14032    
14033 ayin 1.108 *) ac_config_targets="$ac_config_targets $1"
14034     ac_need_defaults=false ;;
14035 pcg 1.11
14036     esac
14037     shift
14038     done
14039    
14040     ac_configure_extra_args=
14041    
14042     if $ac_cs_silent; then
14043     exec 6>/dev/null
14044     ac_configure_extra_args="$ac_configure_extra_args --silent"
14045     fi
14046    
14047     _ACEOF
14048     cat >>$CONFIG_STATUS <<_ACEOF
14049     if \$ac_cs_recheck; then
14050 ayin 1.108 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14051     CONFIG_SHELL=$SHELL
14052     export CONFIG_SHELL
14053     exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14054 pcg 1.11 fi
14055    
14056     _ACEOF
14057 ayin 1.108 cat >>$CONFIG_STATUS <<\_ACEOF
14058     exec 5>>config.log
14059     {
14060     echo
14061     sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14062     ## Running $as_me. ##
14063     _ASBOX
14064     echo "$ac_log"
14065     } >&5
14066 pcg 1.11
14067 ayin 1.108 _ACEOF
14068     cat >>$CONFIG_STATUS <<_ACEOF
14069     _ACEOF
14070 ayin 1.106
14071 ayin 1.108 cat >>$CONFIG_STATUS <<\_ACEOF
14072 ayin 1.106
14073 ayin 1.108 # Handling of arguments.
14074 pcg 1.11 for ac_config_target in $ac_config_targets
14075     do
14076 ayin 1.108 case $ac_config_target in
14077     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
14078     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14079     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14080     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14081     "src/rxvtlib.h") CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
14082    
14083 pcg 1.11 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14084     echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14085     { (exit 1); exit 1; }; };;
14086 pcg 1.1 esac
14087     done
14088    
14089 ayin 1.108
14090 pcg 1.11 # If the user did not use the arguments to specify the items to instantiate,
14091     # then the envvar interface is used. Set only those that are not.
14092     # We use the long form for the default assignment because of an extremely
14093     # bizarre bug on SunOS 4.1.3.
14094     if $ac_need_defaults; then
14095     test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14096     test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14097     fi
14098    
14099     # Have a temporary directory for convenience. Make it in the build tree
14100 ayin 1.108 # simply because there is no reason against having it here, and in addition,
14101 pcg 1.11 # creating and moving files from /tmp can sometimes cause problems.
14102 ayin 1.108 # Hook for its removal unless debugging.
14103     # Note that there is a small window in which the directory will not be cleaned:
14104     # after its creation but before its name has been assigned to `$tmp'.
14105 pcg 1.11 $debug ||
14106     {
14107 ayin 1.108 tmp=
14108     trap 'exit_status=$?
14109     { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14110     ' 0
14111 pcg 1.11 trap '{ (exit 1); exit 1; }' 1 2 13 15
14112     }
14113     # Create a (secure) tmp directory for tmp files.
14114    
14115     {
14116 ayin 1.108 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14117 pcg 1.11 test -n "$tmp" && test -d "$tmp"
14118     } ||
14119     {
14120 ayin 1.108 tmp=./conf$$-$RANDOM
14121     (umask 077 && mkdir "$tmp")
14122 pcg 1.11 } ||
14123     {
14124     echo "$me: cannot create a temporary directory in ." >&2
14125     { (exit 1); exit 1; }
14126     }
14127    
14128 ayin 1.108 #
14129     # Set up the sed scripts for CONFIG_FILES section.
14130     #
14131    
14132     # No need to generate the scripts if there are no CONFIG_FILES.
14133     # This happens for instance when ./config.status config.h
14134     if test -n "$CONFIG_FILES"; then
14135    
14136 ayin 1.106 _ACEOF
14137    
14138 ayin 1.108
14139    
14140     ac_delim='%!_!# '
14141     for ac_last_try in false false false false false :; do
14142     cat >conf$$subs.sed <<_ACEOF
14143     SHELL!$SHELL$ac_delim
14144     PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
14145     PACKAGE_NAME!$PACKAGE_NAME$ac_delim
14146     PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
14147     PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
14148     PACKAGE_STRING!$PACKAGE_STRING$ac_delim
14149     PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
14150     exec_prefix!$exec_prefix$ac_delim
14151     prefix!$prefix$ac_delim
14152     program_transform_name!$program_transform_name$ac_delim
14153     bindir!$bindir$ac_delim
14154     sbindir!$sbindir$ac_delim
14155     libexecdir!$libexecdir$ac_delim
14156     datarootdir!$datarootdir$ac_delim
14157     datadir!$datadir$ac_delim
14158     sysconfdir!$sysconfdir$ac_delim
14159     sharedstatedir!$sharedstatedir$ac_delim
14160     localstatedir!$localstatedir$ac_delim
14161     includedir!$includedir$ac_delim
14162     oldincludedir!$oldincludedir$ac_delim
14163     docdir!$docdir$ac_delim
14164     infodir!$infodir$ac_delim
14165     htmldir!$htmldir$ac_delim
14166     dvidir!$dvidir$ac_delim
14167     pdfdir!$pdfdir$ac_delim
14168     psdir!$psdir$ac_delim
14169     libdir!$libdir$ac_delim
14170     localedir!$localedir$ac_delim
14171     mandir!$mandir$ac_delim
14172     DEFS!$DEFS$ac_delim
14173     ECHO_C!$ECHO_C$ac_delim
14174     ECHO_N!$ECHO_N$ac_delim
14175     ECHO_T!$ECHO_T$ac_delim
14176     LIBS!$LIBS$ac_delim
14177     build_alias!$build_alias$ac_delim
14178     host_alias!$host_alias$ac_delim
14179     target_alias!$target_alias$ac_delim
14180     build!$build$ac_delim
14181     build_cpu!$build_cpu$ac_delim
14182     build_vendor!$build_vendor$ac_delim
14183     build_os!$build_os$ac_delim
14184     host!$host$ac_delim
14185     host_cpu!$host_cpu$ac_delim
14186     host_vendor!$host_vendor$ac_delim
14187     host_os!$host_os$ac_delim
14188     VERSION!$VERSION$ac_delim
14189     DATE!$DATE$ac_delim
14190     LSMDATE!$LSMDATE$ac_delim
14191     LIBVERSION!$LIBVERSION$ac_delim
14192     CC!$CC$ac_delim
14193     CFLAGS!$CFLAGS$ac_delim
14194     LDFLAGS!$LDFLAGS$ac_delim
14195     CPPFLAGS!$CPPFLAGS$ac_delim
14196     ac_ct_CC!$ac_ct_CC$ac_delim
14197     EXEEXT!$EXEEXT$ac_delim
14198     OBJEXT!$OBJEXT$ac_delim
14199     CXX!$CXX$ac_delim
14200     CXXFLAGS!$CXXFLAGS$ac_delim
14201     ac_ct_CXX!$ac_ct_CXX$ac_delim
14202     CPP!$CPP$ac_delim
14203     INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
14204     INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
14205     INSTALL_DATA!$INSTALL_DATA$ac_delim
14206     GREP!$GREP$ac_delim
14207     EGREP!$EGREP$ac_delim
14208     LINKER!$LINKER$ac_delim
14209     INSTALL_LIBRXVT!$INSTALL_LIBRXVT$ac_delim
14210     RXVTNAME!$RXVTNAME$ac_delim
14211     TIC!$TIC$ac_delim
14212     XMKMF!$XMKMF$ac_delim
14213     CXXCPP!$CXXCPP$ac_delim
14214     X_CFLAGS!$X_CFLAGS$ac_delim
14215     X_PRE_LIBS!$X_PRE_LIBS$ac_delim
14216     X_LIBS!$X_LIBS$ac_delim
14217     X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
14218     afterimage_config!$afterimage_config$ac_delim
14219     XPM_CPPFLAGS!$XPM_CPPFLAGS$ac_delim
14220     XPM_CFLAGS!$XPM_CFLAGS$ac_delim
14221     XPM_LIBS!$XPM_LIBS$ac_delim
14222     rxvt_int16_typedef!$rxvt_int16_typedef$ac_delim
14223     rxvt_uint16_typedef!$rxvt_uint16_typedef$ac_delim
14224     rxvt_int32_typedef!$rxvt_int32_typedef$ac_delim
14225     rxvt_uint32_typedef!$rxvt_uint32_typedef$ac_delim
14226     rxvt_intp_define!$rxvt_intp_define$ac_delim
14227     rxvt_u_intp_define!$rxvt_u_intp_define$ac_delim
14228     PKG_CONFIG!$PKG_CONFIG$ac_delim
14229     XFT_CONFIG!$XFT_CONFIG$ac_delim
14230     PERL!$PERL$ac_delim
14231     PERLLIB!$PERLLIB$ac_delim
14232     PERLFLAGS!$PERLFLAGS$ac_delim
14233     PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim
14234     IF_PERL!$IF_PERL$ac_delim
14235     PERL_O!$PERL_O$ac_delim
14236     AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim
14237     AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim
14238     include_stdint_h!$include_stdint_h$ac_delim
14239     include_stdarg_h!$include_stdarg_h$ac_delim
14240     _ACEOF
14241    
14242     if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
14243     break
14244     elif $ac_last_try; then
14245     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14246     echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14247     { (exit 1); exit 1; }; }
14248     else
14249     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14250     fi
14251     done
14252    
14253     ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14254     if test -n "$ac_eof"; then
14255     ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14256     ac_eof=`expr $ac_eof + 1`
14257     fi
14258    
14259     cat >>$CONFIG_STATUS <<_ACEOF
14260     cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
14261     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14262     _ACEOF
14263     sed '
14264     s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14265     s/^/s,@/; s/!/@,|#_!!_#|/
14266     :n
14267     t n
14268     s/'"$ac_delim"'$/,g/; t
14269     s/$/\\/; p
14270     N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14271     ' >>$CONFIG_STATUS <conf$$subs.sed
14272     rm -f conf$$subs.sed
14273 ayin 1.106 cat >>$CONFIG_STATUS <<_ACEOF
14274 ayin 1.108 CEOF$ac_eof
14275     _ACEOF
14276    
14277 ayin 1.106
14278 ayin 1.108 ac_delim='%!_!# '
14279     for ac_last_try in false false false false false :; do
14280     cat >conf$$subs.sed <<_ACEOF
14281     include_stdlib_h!$include_stdlib_h$ac_delim
14282     include_unistd_h!$include_unistd_h$ac_delim
14283     include_string_h!$include_string_h$ac_delim
14284     include_fcntl_h!$include_fcntl_h$ac_delim
14285     include_util_h!$include_util_h$ac_delim
14286     include_assert_h!$include_assert_h$ac_delim
14287     include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim
14288     include_sys_select_h!$include_sys_select_h$ac_delim
14289     include_sys_strredir_h!$include_sys_strredir_h$ac_delim
14290     include_sys_time_h!$include_sys_time_h$ac_delim
14291     include_time_h!$include_time_h$ac_delim
14292     LIBOBJS!$LIBOBJS$ac_delim
14293     LTLIBOBJS!$LTLIBOBJS$ac_delim
14294     _ACEOF
14295 root 1.105
14296 ayin 1.108 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 13; then
14297     break
14298     elif $ac_last_try; then
14299     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14300     echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14301     { (exit 1); exit 1; }; }
14302     else
14303     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14304 root 1.105 fi
14305 ayin 1.108 done
14306    
14307     ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14308     if test -n "$ac_eof"; then
14309     ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14310     ac_eof=`expr $ac_eof + 1`
14311     fi
14312 ayin 1.104
14313 ayin 1.108 cat >>$CONFIG_STATUS <<_ACEOF
14314     cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
14315     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14316 root 1.105 _ACEOF
14317 ayin 1.108 sed '
14318     s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14319     s/^/s,@/; s/!/@,|#_!!_#|/
14320     :n
14321     t n
14322     s/'"$ac_delim"'$/,g/; t
14323     s/$/\\/; p
14324     N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14325     ' >>$CONFIG_STATUS <conf$$subs.sed
14326     rm -f conf$$subs.sed
14327     cat >>$CONFIG_STATUS <<_ACEOF
14328     :end
14329     s/|#_!!_#|//g
14330     CEOF$ac_eof
14331     _ACEOF
14332    
14333    
14334     # VPATH may cause trouble with some makes, so we remove $(srcdir),
14335     # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14336     # trailing colons and then remove the whole line if VPATH becomes empty
14337     # (actually we leave an empty line to preserve line numbers).
14338     if test "x$srcdir" = x.; then
14339     ac_vpsub='/^[ ]*VPATH[ ]*=/{
14340     s/:*\$(srcdir):*/:/
14341     s/:*\${srcdir}:*/:/
14342     s/:*@srcdir@:*/:/
14343     s/^\([^=]*=[ ]*\):*/\1/
14344     s/:*$//
14345     s/^[^=]*=[ ]*$//
14346     }'
14347     fi
14348    
14349 pcg 1.11 cat >>$CONFIG_STATUS <<\_ACEOF
14350 ayin 1.108 fi # test -n "$CONFIG_FILES"
14351    
14352    
14353     for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
14354     do
14355     case $ac_tag in
14356     :[FHLC]) ac_mode=$ac_tag; continue;;
14357     esac
14358     case $ac_mode$ac_tag in
14359     :[FHL]*:*);;
14360     :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14361     echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14362     { (exit 1); exit 1; }; };;
14363     :[FH]-) ac_tag=-:-;;
14364     :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14365     esac
14366     ac_save_IFS=$IFS
14367     IFS=:
14368     set x $ac_tag
14369     IFS=$ac_save_IFS
14370     shift
14371     ac_file=$1
14372     shift
14373    
14374     case $ac_mode in
14375     :L) ac_source=$1;;
14376     :[FH])
14377     ac_file_inputs=
14378     for ac_f
14379     do
14380     case $ac_f in
14381     -) ac_f="$tmp/stdin";;
14382     *) # Look for the file first in the build tree, then in the source tree
14383     # (if the path is not absolute). The absolute path cannot be DOS-style,
14384     # because $ac_f cannot contain `:'.
14385     test -f "$ac_f" ||
14386     case $ac_f in
14387     [\\/$]*) false;;
14388     *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14389     esac ||
14390     { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14391     echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14392     { (exit 1); exit 1; }; };;
14393     esac
14394     ac_file_inputs="$ac_file_inputs $ac_f"
14395     done
14396    
14397     # Let's still pretend it is `configure' which instantiates (i.e., don't
14398     # use $as_me), people would be surprised to read:
14399     # /* config.h. Generated by config.status. */
14400     configure_input="Generated from "`IFS=:
14401     echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
14402     if test x"$ac_file" != x-; then
14403     configure_input="$ac_file. $configure_input"
14404     { echo "$as_me:$LINENO: creating $ac_file" >&5
14405     echo "$as_me: creating $ac_file" >&6;}
14406     fi
14407    
14408     case $ac_tag in
14409     *:-:* | *:-) cat >"$tmp/stdin";;
14410     esac
14411     ;;
14412 ayin 1.102 esac
14413    
14414 ayin 1.108 ac_dir=`$as_dirname -- "$ac_file" ||
14415 pcg 1.11 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14416     X"$ac_file" : 'X\(//\)[^/]' \| \
14417     X"$ac_file" : 'X\(//\)$' \| \
14418 ayin 1.108 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14419 pcg 1.11 echo X"$ac_file" |
14420 ayin 1.108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14421     s//\1/
14422     q
14423     }
14424     /^X\(\/\/\)[^/].*/{
14425     s//\1/
14426     q
14427     }
14428     /^X\(\/\/\)$/{
14429     s//\1/
14430     q
14431     }
14432     /^X\(\/\).*/{
14433     s//\1/
14434     q
14435     }
14436     s/.*/./; q'`
14437     { as_dir="$ac_dir"
14438     case $as_dir in #(
14439     -*) as_dir=./$as_dir;;
14440     esac
14441     test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14442 pcg 1.11 as_dirs=
14443 ayin 1.108 while :; do
14444     case $as_dir in #(
14445     *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14446     *) as_qdir=$as_dir;;
14447     esac
14448     as_dirs="'$as_qdir' $as_dirs"
14449     as_dir=`$as_dirname -- "$as_dir" ||
14450 pcg 1.11 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14451     X"$as_dir" : 'X\(//\)[^/]' \| \
14452     X"$as_dir" : 'X\(//\)$' \| \
14453 ayin 1.108 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14454 pcg 1.11 echo X"$as_dir" |
14455 ayin 1.108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14456     s//\1/
14457     q
14458     }
14459     /^X\(\/\/\)[^/].*/{
14460     s//\1/
14461     q
14462     }
14463     /^X\(\/\/\)$/{
14464     s//\1/
14465     q
14466     }
14467     /^X\(\/\).*/{
14468     s//\1/
14469     q
14470     }
14471     s/.*/./; q'`
14472     test -d "$as_dir" && break
14473 pcg 1.11 done
14474 ayin 1.108 test -z "$as_dirs" || eval "mkdir $as_dirs"
14475     } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14476     echo "$as_me: error: cannot create directory $as_dir" >&2;}
14477 pcg 1.11 { (exit 1); exit 1; }; }; }
14478     ac_builddir=.
14479    
14480 ayin 1.108 case "$ac_dir" in
14481     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14482     *)
14483 pcg 1.11 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14484 ayin 1.108 # A ".." for each directory in $ac_dir_suffix.
14485     ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
14486     case $ac_top_builddir_sub in
14487     "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14488     *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14489     esac ;;
14490     esac
14491     ac_abs_top_builddir=$ac_pwd
14492     ac_abs_builddir=$ac_pwd$ac_dir_suffix
14493     # for backward compatibility:
14494     ac_top_builddir=$ac_top_build_prefix
14495 pcg 1.11
14496     case $srcdir in
14497 ayin 1.108 .) # We are building in place.
14498 pcg 1.11 ac_srcdir=.
14499 ayin 1.108 ac_top_srcdir=$ac_top_builddir_sub
14500     ac_abs_top_srcdir=$ac_pwd ;;
14501     [\\/]* | ?:[\\/]* ) # Absolute name.
14502 pcg 1.11 ac_srcdir=$srcdir$ac_dir_suffix;
14503 ayin 1.108 ac_top_srcdir=$srcdir
14504     ac_abs_top_srcdir=$srcdir ;;
14505     *) # Relative name.
14506     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14507     ac_top_srcdir=$ac_top_build_prefix$srcdir
14508     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14509 pcg 1.11 esac
14510 ayin 1.108 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14511 pcg 1.11
14512    
14513 ayin 1.108 case $ac_mode in
14514     :F)
14515     #
14516     # CONFIG_FILE
14517     #
14518 pcg 1.1
14519 pcg 1.11 case $INSTALL in
14520     [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14521 ayin 1.108 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14522 pcg 1.1 esac
14523 ayin 1.108 _ACEOF
14524 pcg 1.1
14525 ayin 1.108 cat >>$CONFIG_STATUS <<\_ACEOF
14526     # If the template does not know about datarootdir, expand it.
14527     # FIXME: This hack should be removed a few years after 2.60.
14528     ac_datarootdir_hack=; ac_datarootdir_seen=
14529    
14530     case `sed -n '/datarootdir/ {
14531     p
14532     q
14533     }
14534     /@datadir@/p
14535     /@docdir@/p
14536     /@infodir@/p
14537     /@localedir@/p
14538     /@mandir@/p
14539     ' $ac_file_inputs` in
14540     *datarootdir*) ac_datarootdir_seen=yes;;
14541     *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14542     { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14543     echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14544     _ACEOF
14545     cat >>$CONFIG_STATUS <<_ACEOF
14546     ac_datarootdir_hack='
14547     s&@datadir@&$datadir&g
14548     s&@docdir@&$docdir&g
14549     s&@infodir@&$infodir&g
14550     s&@localedir@&$localedir&g
14551     s&@mandir@&$mandir&g
14552     s&\\\${datarootdir}&$datarootdir&g' ;;
14553     esac
14554 root 1.105 _ACEOF
14555 ayin 1.108
14556     # Neutralize VPATH when `$srcdir' = `.'.
14557     # Shell code in configure.ac might set extrasub.
14558     # FIXME: do we really want to maintain this feature?
14559 root 1.105 cat >>$CONFIG_STATUS <<_ACEOF
14560 pcg 1.11 sed "$ac_vpsub
14561     $extrasub
14562     _ACEOF
14563     cat >>$CONFIG_STATUS <<\_ACEOF
14564     :t
14565     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14566 ayin 1.108 s&@configure_input@&$configure_input&;t t
14567     s&@top_builddir@&$ac_top_builddir_sub&;t t
14568     s&@srcdir@&$ac_srcdir&;t t
14569     s&@abs_srcdir@&$ac_abs_srcdir&;t t
14570     s&@top_srcdir@&$ac_top_srcdir&;t t
14571     s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14572     s&@builddir@&$ac_builddir&;t t
14573     s&@abs_builddir@&$ac_abs_builddir&;t t
14574     s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14575     s&@INSTALL@&$ac_INSTALL&;t t
14576     $ac_datarootdir_hack
14577     " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
14578    
14579     test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14580     { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14581     { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14582     { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14583     which seems to be undefined. Please make sure it is defined." >&5
14584     echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14585     which seems to be undefined. Please make sure it is defined." >&2;}
14586 ayin 1.106
14587 ayin 1.108 rm -f "$tmp/stdin"
14588 pcg 1.11 case $ac_file in
14589 ayin 1.108 -) cat "$tmp/out"; rm -f "$tmp/out";;
14590     *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
14591 pcg 1.1 esac
14592 ayin 1.108 ;;
14593     :H)
14594     #
14595     # CONFIG_HEADER
14596     #
14597     _ACEOF
14598    
14599     # Transform confdefs.h into a sed script `conftest.defines', that
14600     # substitutes the proper values into config.h.in to produce config.h.
14601     rm -f conftest.defines conftest.tail
14602     # First, append a space to every undef/define line, to ease matching.
14603     echo 's/$/ /' >conftest.defines
14604     # Then, protect against being on the right side of a sed subst, or in
14605     # an unquoted here document, in config.status. If some macros were
14606     # called several times there might be several #defines for the same
14607     # symbol, which is useless. But do not sort them, since the last
14608     # AC_DEFINE must be honored.
14609     ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14610     # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
14611     # NAME is the cpp macro being defined, VALUE is the value it is being given.
14612     # PARAMS is the parameter list in the macro definition--in most cases, it's
14613     # just an empty string.
14614     ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
14615     ac_dB='\\)[ (].*,\\1define\\2'
14616     ac_dC=' '
14617     ac_dD=' ,'
14618 pcg 1.1
14619 ayin 1.108 uniq confdefs.h |
14620     sed -n '
14621     t rset
14622     :rset
14623     s/^[ ]*#[ ]*define[ ][ ]*//
14624     t ok
14625     d
14626     :ok
14627     s/[\\&,]/\\&/g
14628     s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
14629     s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
14630     ' >>conftest.defines
14631 ayin 1.104
14632 ayin 1.108 # Remove the space that was appended to ease matching.
14633     # Then replace #undef with comments. This is necessary, for
14634 pcg 1.1 # example, in the case of _POSIX_SOURCE, which is predefined and required
14635     # on some systems where configure will not decide to define it.
14636 ayin 1.108 # (The regexp can be short, since the line contains either #define or #undef.)
14637     echo 's/ $//
14638     s,^[ #]*u.*,/* & */,' >>conftest.defines
14639    
14640     # Break up conftest.defines:
14641     ac_max_sed_lines=50
14642    
14643     # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
14644     # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
14645     # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
14646     # et cetera.
14647     ac_in='$ac_file_inputs'
14648     ac_out='"$tmp/out1"'
14649     ac_nxt='"$tmp/out2"'
14650    
14651     while :
14652     do
14653     # Write a here document:
14654     cat >>$CONFIG_STATUS <<_ACEOF
14655     # First, check the format of the line:
14656     cat >"\$tmp/defines.sed" <<\\CEOF
14657     /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
14658     /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
14659     b
14660     :def
14661 pcg 1.11 _ACEOF
14662 ayin 1.108 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
14663 pcg 1.11 echo 'CEOF
14664 ayin 1.108 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
14665     ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
14666     sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
14667     grep . conftest.tail >/dev/null || break
14668 pcg 1.11 rm -f conftest.defines
14669     mv conftest.tail conftest.defines
14670     done
14671 ayin 1.108 rm -f conftest.defines conftest.tail
14672 pcg 1.11
14673 ayin 1.108 echo "ac_result=$ac_in" >>$CONFIG_STATUS
14674 pcg 1.11 cat >>$CONFIG_STATUS <<\_ACEOF
14675     if test x"$ac_file" != x-; then
14676 ayin 1.108 echo "/* $configure_input */" >"$tmp/config.h"
14677     cat "$ac_result" >>"$tmp/config.h"
14678     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
14679 pcg 1.11 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14680     echo "$as_me: $ac_file is unchanged" >&6;}
14681     else
14682     rm -f $ac_file
14683 ayin 1.108 mv "$tmp/config.h" $ac_file
14684 pcg 1.1 fi
14685 pcg 1.11 else
14686 ayin 1.108 echo "/* $configure_input */"
14687     cat "$ac_result"
14688 pcg 1.1 fi
14689 ayin 1.108 rm -f "$tmp/out12"
14690     ;;
14691    
14692    
14693     esac
14694    
14695     done # for ac_tag
14696 pcg 1.11
14697 pcg 1.1
14698 pcg 1.11 { (exit 0); exit 0; }
14699     _ACEOF
14700     chmod +x $CONFIG_STATUS
14701     ac_clean_files=$ac_clean_files_save
14702 pcg 1.1
14703    
14704 pcg 1.11 # configure is writing to config.log, and then calls config.status.
14705     # config.status does its own redirection, appending to config.log.
14706     # Unfortunately, on DOS this fails, as config.log is still kept open
14707     # by configure, so config.status won't be able to write to it; its
14708     # output is simply discarded. So we exec the FD to /dev/null,
14709     # effectively closing config.log, so it can be properly (re)opened and
14710     # appended to by config.status. When coming back to configure, we
14711     # need to make the FD available again.
14712     if test "$no_create" != yes; then
14713     ac_cs_success=:
14714     ac_config_status_args=
14715     test "$silent" = yes &&
14716     ac_config_status_args="$ac_config_status_args --quiet"
14717     exec 5>/dev/null
14718     $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14719     exec 5>>config.log
14720     # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14721     # would make configure fail if this is the last instruction.
14722     $ac_cs_success || { (exit 1); exit 1; }
14723     fi
14724 pcg 1.1
14725    
14726     echo "Configuration:
14727    
14728     Rxvt version: $VERSION : $DATE
14729     Source code location: $srcdir
14730     Install path: ${prefix}/bin
14731 pcg 1.13 Compiler: $CXX
14732 root 1.100 Compiler flags: $CXXFLAGS
14733 pcg 1.13 Linker: $LINKER"
14734 pcg 1.1
14735     if test x$support_xpm = xyes; then
14736     echo " Xpm library: $XPM_LIBS"
14737     fi
14738    
14739 root 1.103 if test x$support_afterimage = xyes; then
14740     echo " AfterImage support: yes"
14741     fi
14742    
14743     if test x$support_afterstep = xyes; then
14744 ayin 1.104 echo " AfterStep integration: yes"
14745 root 1.103 fi
14746    
14747 pcg 1.1 if test x$term != x; then
14748 pcg 1.18 echo " set TERM to: $term"
14749 pcg 1.1 fi
14750     if test x$terminfo != x; then
14751 pcg 1.18 echo " set TERMINFO to: $terminfo"
14752     fi
14753     echo " default resource name: $RESNAME"
14754     echo " resource class: $RESCLASS"
14755     if test x$RESFALLBACK != x; then
14756     echo " resource class fallback: $RESFALLBACK"
14757 pcg 1.1 fi
14758 pcg 1.18 echo
14759 root 1.89 echo " embedded perl: $support_perl"
14760     echo
14761 pcg 1.1 if test x$support_xpm = xneedsmanualspecification; then
14762     echo ".----------------------------------------------------------------."
14763     echo ". WARNING: --enable-xpm-background was specified however the ."
14764     echo ". XPM includes files and libraries could not be found. ."
14765     echo ". XPM backgrounds are now being DISABLED! If you want ."
14766     echo ". to use them you should rerun configure with the ."
14767     echo ". appropriate --with-xpm-includes=/path/to/xpm/includes ."
14768     echo ". and --with-xpm-library=/path/to/xpm/library lines. ."
14769     echo ".----------------------------------------------------------------."
14770     fi
14771     if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then
14772     echo ".----------------------------------------------------------------."
14773     echo ". WARNING: --enable-xim was specified however the locale support ."
14774     echo ". functions could not be found. ."
14775     echo ". XIM is now being DISABLED! ."
14776     echo ".----------------------------------------------------------------."
14777     fi
14778 pcg 1.20
14779 root 1.96 echo "*** Optionally check src/feature.h for further, rarely used options ***"
14780 pcg 1.20 echo
14781